[hidden] {
    display: none !important;
}

.share-hero {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.share-hero h1 {
    max-width: 900px;
    margin: 0 auto 1.1rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(2.45rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.share-hero h1 span,
.response-entry h1 span {
    color: var(--coral-dark);
}

.share-hero p,
.response-context,
.response-section p,
.import-panel p,
.response-send-note,
.response-warning {
    color: var(--ink-soft);
    line-height: 1.7;
}

.page-status {
    min-height: 1.5rem;
    max-width: 980px;
    margin: 0 auto 1rem;
    color: var(--coral-dark);
    font-weight: 750;
}

.share-builder {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--surface);
    border: 3px solid var(--ink);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}

.builder-copy {
    position: sticky;
    top: 100px;
    align-self: start;
}

.builder-copy h2,
.output-header h2,
.response-entry h1,
.response-section h2,
.import-panel h2,
.response-results h2 {
    margin-bottom: 0.9rem;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.builder-copy p,
.response-section p,
.import-panel p {
    line-height: 1.7;
}

.field {
    min-width: 0;
    margin-bottom: 1rem;
}

.field > label,
.response-summary-field > label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-size: 0.87rem;
    font-weight: 800;
}

.optional-label {
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea,
.copy-row input,
.response-summary-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0.7rem 0.8rem;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--radius-small);
    font: inherit;
}

.field textarea,
.response-summary-field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.copy-row input:focus,
.response-summary-field textarea:focus {
    outline: 4px solid var(--cobalt);
    outline-offset: 2px;
}

.response-options-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding-top: 0.35rem;
    border-top: 2px solid var(--line-soft);
}

.security-note {
    margin: 0.25rem 0 1.2rem;
    padding: 0.8rem 0.9rem;
    color: var(--ink);
    background: rgba(246, 201, 69, 0.28);
    border-left: 4px solid var(--coral);
    font-size: 0.86rem;
    line-height: 1.55;
}

.share-output {
    margin-top: 2rem;
}

.output-header,
.response-entry-heading,
.response-results-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.output-header h2,
.response-entry h1,
.response-results h2 {
    margin-bottom: 0;
}

.response-entry {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 3px solid var(--ink);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}

.response-entry h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
}

.response-entry-heading {
    align-items: center;
}

.response-context {
    margin: 0 0 1.2rem;
}

.response-form {
    max-width: 700px;
    margin: 0 auto;
}

.response-card-output {
    max-width: 760px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 3px solid var(--ink);
}

.response-card-output textarea {
    min-height: 230px;
    resize: vertical;
}

.response-card-actions,
.response-actions,
.import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.response-completed-link-field {
    margin-top: 1.3rem;
}

.response-send-note,
.response-warning {
    font-size: 0.86rem;
}

.party-code-badge {
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem;
    color: var(--white);
    background: var(--navy);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.output-intro {
    max-width: 760px;
    margin-bottom: 1.5rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

.copy-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.copy-row input {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-row .btn {
    flex: 0 0 auto;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.guest-brief {
    margin-top: 1.5rem;
    padding: clamp(1.2rem, 4vw, 2.5rem);
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
}

.brief-kicker,
.response-section .kicker,
.import-panel .kicker,
.response-results .kicker {
    margin-bottom: 0.75rem;
    color: var(--coral-dark);
    font-size: 0.77rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.brief-title {
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.brief-description {
    max-width: 760px;
    margin-bottom: 1.4rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.brief-details,
.response-item-details {
    display: grid;
    grid-template-columns: minmax(100px, 0.35fr) minmax(0, 1fr);
    gap: 0.45rem 1rem;
    margin: 0 0 1.6rem;
    padding: 1rem;
    background: var(--paper);
    border: 2px solid var(--line-soft);
    border-radius: var(--radius-small);
}

.brief-details dt,
.response-item-details dt {
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brief-details dd,
.response-item-details dd {
    min-width: 0;
    overflow-wrap: anywhere;
}

.brief-section,
.brief-note,
.host-checklist {
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 2px solid var(--line-soft);
}

.brief-section h4,
.brief-note h4,
.host-checklist h4,
.response-item h3 {
    margin-bottom: 0.65rem;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.1;
}

.brief-section ul,
.brief-section ol,
.host-checklist ul {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.35rem;
}

.supplies-list {
    list-style: none;
    padding-left: 0;
}

.schedule-list {
    font-family: var(--font-heading);
    font-weight: 750;
}

.supplies-list li,
.steps-list li,
.host-checklist li {
    overflow-wrap: anywhere;
}

.brief-note p {
    color: var(--ink-soft);
    line-height: 1.7;
}

.host-checklist {
    padding: 1rem;
    background: rgba(185, 217, 199, 0.4);
    border: 2px solid var(--ink);
    border-radius: var(--radius-small);
}

.host-checklist h4 {
    margin-top: 0;
}

.brief-link {
    margin-top: 1.5rem;
    overflow-wrap: anywhere;
    font-size: 0.85rem;
    font-weight: 750;
}

.response-section,
.import-panel,
.response-results {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
}

.response-section {
    background: var(--sun);
}

.response-section-heading {
    max-width: 800px;
}

.response-section h2,
.import-panel h2,
.response-results h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.response-link-panel {
    margin-top: 1.4rem;
    padding: 1rem;
    background: rgba(255, 253, 248, 0.7);
    border: 2px solid var(--ink);
    border-radius: var(--radius-small);
}

.response-link-panel .page-status {
    min-height: 0;
    margin-bottom: 0.5rem;
}

.import-panel {
    background: var(--mint);
}

.import-panel > div:first-child {
    max-width: 780px;
}

.response-results {
    background: var(--surface);
}

.response-results-heading {
    align-items: center;
}

.response-counts {
    margin: 0.65rem 0;
    color: var(--ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.response-list {
    display: grid;
    gap: 0.8rem;
    margin: 1.2rem 0;
}

.response-item {
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--line-soft);
    border-radius: var(--radius-small);
}

.response-item h3 {
    margin-top: 0;
    overflow-wrap: anywhere;
}

.response-item-details {
    margin-bottom: 0;
}

.response-summary-field {
    margin-top: 1.2rem;
}

.response-summary-field textarea {
    min-height: 180px;
    background: var(--white);
}

@media (max-width: 800px) {
    .share-builder {
        grid-template-columns: 1fr;
    }

    .builder-copy {
        position: static;
    }
}

@media (max-width: 560px) {
    .share-builder,
    .response-entry,
    .response-section,
    .import-panel,
    .response-results {
        padding: 1.1rem;
    }

    .output-header,
    .response-entry-heading,
    .response-results-heading {
        display: block;
    }

    .party-code-badge,
    .response-entry-heading .btn,
    .response-results-heading .btn {
        display: inline-block;
        margin-top: 0.9rem;
    }

    .response-options-fields {
        grid-template-columns: 1fr;
    }

    .copy-row,
    .share-actions,
    .response-card-actions,
    .response-actions,
    .import-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .copy-row .btn,
    .share-actions .btn,
    .response-card-actions .btn,
    .response-actions .btn,
    .import-actions .btn {
        width: 100%;
    }

    .brief-details,
    .response-item-details {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .brief-details dd,
    .response-item-details dd {
        margin-bottom: 0.55rem;
    }
}

@media (max-width: 360px) {
    .share-hero h1 {
        font-size: 2.2rem;
    }

    .share-builder,
    .response-entry,
    .guest-brief,
    .response-section,
    .import-panel,
    .response-results {
        border-width: 2px;
        box-shadow: 3px 3px 0 var(--ink);
    }
}

@media print {
    body {
        background: white;
        color: #000;
    }

    body::before,
    header,
    footer,
    .share-hero,
    .share-builder,
    .page-status,
    .output-header,
    .copy-row,
    .share-actions,
    .response-section,
    .import-panel,
    .response-form,
    .response-card-actions,
    .response-completed-link-field,
    .response-send-note,
    .response-warning,
    .brief-link {
        display: none !important;
    }

    main {
        width: 100%;
        min-height: 0;
        padding: 0;
    }

    .share-output,
    .response-entry {
        margin: 0;
    }

    .guest-brief,
    .response-entry,
    .response-card-output {
        box-shadow: none;
        border-color: #000;
    }

    .response-card-output {
        display: block !important;
        padding-top: 1rem;
    }

    a {
        color: #000;
    }
}
