/* Inline "Share your story" form on the .artifact-question prompt boxes.
   Lives inside the existing gray prompt box (.artifact-question), reusing its
   ink tokens so the button + form read as part of the same panel. */

.pbc-story-box .pbc-story-prompt {
    margin: 0;
}

.pbc-story-box .pbc-story-cta-row {
    margin: 0.75rem 0 0 0;
}

.pbc-story-open {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background: var(--ink, #1a1a1a);
    color: #fff;
    border: 1px solid var(--ink, #1a1a1a);
    border-radius: 2px;
    padding: 0.45rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    transition: opacity 0.15s ease;
}

.pbc-story-open:hover {
    opacity: 0.85;
}

.pbc-story-open[disabled] {
    opacity: 0.5;
    cursor: default;
}

/* The revealed form */
.pbc-story-form {
    margin: 0.85rem 0 0 0;
}

.pbc-story-field {
    margin: 0 0 0.7rem 0;
    display: flex;
    flex-direction: column;
}

.pbc-story-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
    margin-bottom: 0.25rem;
}

.pbc-story-req {
    color: #b3261e;
}

.pbc-story-field input,
.pbc-story-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 0.5rem 0.6rem;
    font: inherit;
    font-size: 0.9rem;
    background: #fff;
    color: var(--ink, #1a1a1a);
}

.pbc-story-field input:focus,
.pbc-story-field textarea:focus {
    outline: none;
    border-color: var(--ink, #1a1a1a);
    box-shadow: 0 0 0 1px var(--ink, #1a1a1a);
}

.pbc-story-field textarea {
    resize: vertical;
    min-height: 6.5rem;
}

.pbc-story-privacy {
    margin: 0 0 0.7rem 0;
    color: var(--ink-2, #555);
}

.pbc-story-actions {
    margin: 0;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.pbc-story-submit {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background: var(--ink, #1a1a1a);
    color: #fff;
    border: 1px solid var(--ink, #1a1a1a);
    border-radius: 2px;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.15s ease;
}

.pbc-story-submit:hover {
    opacity: 0.85;
}

.pbc-story-submit[disabled] {
    opacity: 0.5;
    cursor: default;
}

.pbc-story-cancel {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background: transparent;
    color: var(--ink-2, #555);
    border: none;
    padding: 0.45rem 0.3rem;
    font-size: 0.9rem;
    text-decoration: underline;
}

.pbc-story-cancel:hover {
    color: var(--ink, #1a1a1a);
}

.pbc-story-error {
    margin: 0.6rem 0 0 0;
    color: #b3261e;
    font-size: 0.88rem;
    font-weight: 600;
}

.pbc-story-thanks {
    margin: 0.5rem 0 0 0;
    color: var(--ink, #1a1a1a);
    font-size: 0.95rem;
    line-height: 1.5;
}
