:root {
    color-scheme: light;
    --bg: #eef4f1;
    --panel: #fbfdfb;
    --ink: #14120f;
    --muted: #5f6c70;
    --line: rgba(15, 23, 42, 0.12);
    --soft: rgba(255, 255, 255, 0.68);
    --accent: #0f172a;
    --accent-2: #0f766e;
    --nope: #b42318;
    --yep: #1d4ed8;
    --gold: #a16207;
    --shadow: 0 28px 90px rgba(15, 23, 42, 0.16);
    --shadow-soft: 0 16px 42px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.24), transparent 30rem),
        radial-gradient(circle at 92% 8%, rgba(244, 114, 182, 0.18), transparent 24rem),
        radial-gradient(circle at 58% 100%, rgba(251, 191, 36, 0.18), transparent 28rem),
        linear-gradient(135deg, #f8fbfa 0%, var(--bg) 58%, #edf2ff 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select,
textarea {
    font: inherit;
}

svg {
    width: 1em;
    height: 1em;
    stroke-width: 2.25;
}

.app-shell {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 20px 16px 34px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #14120f;
    color: #fff7eb;
    box-shadow: 0 10px 28px rgba(20, 18, 15, 0.22);
}

.brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.top-note {
    border: 1px solid rgba(20, 18, 15, 0.12);
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.account-note {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu {
    position: relative;
}

.user-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    max-width: 240px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-menu summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.user-menu nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 850;
}

.user-menu nav a:hover {
    background: rgba(15, 23, 42, 0.06);
}

.hero,
.results-summary,
.empty-state,
.auth-panel {
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 253, 251, 0.78));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-shell {
    max-width: 720px;
}

.auth-panel {
    padding: 26px;
}

.auth-panel h1 {
    max-width: 620px;
    margin: 10px 0 12px;
    font-size: clamp(2rem, 6vw, 4.25rem);
    line-height: 0.94;
}

.auth-google-button {
    margin-top: 18px;
    max-width: 340px;
}

.auth-google-button.is-blocked {
    cursor: not-allowed;
    opacity: 0.58;
}

.embedded-browser-note {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(180, 35, 24, 0.18);
    border-radius: 18px;
    background: rgba(254, 242, 242, 0.88);
}

.embedded-browser-note strong {
    display: block;
    margin-bottom: 6px;
}

.embedded-browser-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.embedded-browser-note[hidden] {
    display: none;
}

.setup-note {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.setup-note p {
    margin: 8px 0 12px;
    color: var(--muted);
}

.setup-note pre {
    margin: 0;
    padding: 14px;
    overflow-x: auto;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.5;
}

.settings-panel {
    display: grid;
    gap: 14px;
}

.settings-form {
    display: grid;
    gap: 16px;
}

.setting-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.setting-toggle strong {
    display: block;
    margin-bottom: 5px;
}

.setting-toggle small {
    display: block;
    max-width: 460px;
    color: var(--muted);
    line-height: 1.45;
}

.setting-toggle input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: var(--accent-2);
}

.settings-save-button {
    max-width: 220px;
}

.settings-saved {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0f766e;
    font-weight: 850;
}

.app-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    max-width: min(320px, calc(100vw - 32px));
    padding: 13px 15px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 14px;
    background: #e9fbf6;
    color: #0f766e;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.install-prompt {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 12px;
    width: min(380px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 14px;
    background: rgba(251, 253, 251, 0.96);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.install-prompt-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
}

.install-prompt-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.install-prompt p {
    align-self: center;
    margin: 0;
    color: var(--ink);
    font-size: 0.91rem;
    font-weight: 800;
    line-height: 1.3;
}

.install-prompt-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.install-prompt .compact-button {
    min-height: 38px;
    padding: 8px 11px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(15, 118, 110, 0.06) 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: 24px;
}

.hero-main {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.eyebrow,
.section-label,
.mini-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow svg {
    width: 15px;
    height: 15px;
}

.hero h1,
.results-summary h1 {
    margin: 0;
    max-width: 13ch;
    font-size: clamp(2.35rem, 10vw, 4.7rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.lede,
.count-line,
.empty-state p,
.sheet-panel p {
    color: var(--muted);
    line-height: 1.55;
}

.lede {
    max-width: 35rem;
    margin: 18px 0 0;
    font-size: 1.06rem;
}

.search-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.chip-search-form {
    gap: 18px;
}

.chip-picker {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 20px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.62);
}

.chip-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.chip-picker h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.1;
}

.input-shell {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    border: 1px solid rgba(180, 35, 24, 0.20);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 34px rgba(45, 34, 20, 0.08);
    padding: 14px;
}

.input-shell > svg {
    width: 22px;
    height: 22px;
    margin-top: 4px;
    color: var(--nope);
}

textarea {
    width: 100%;
    min-height: 138px;
    resize: vertical;
    border: 0;
    padding: 0;
    color: var(--ink);
    background: transparent;
    font-size: 1.08rem;
    line-height: 1.5;
}

textarea:focus {
    outline: 0;
}

textarea::placeholder {
    color: #a09589;
}

.quick-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-examples button,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid rgba(180, 35, 24, 0.18);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 245, 243, 0.92);
    color: var(--nope);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 850;
}

.selectable-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    border: 1px solid rgba(20, 18, 15, 0.10);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 900;
}

.selectable-chip svg {
    width: 15px;
    height: 15px;
}

.selectable-chip.chip-nope.is-selected {
    border-color: rgba(180, 35, 24, 0.26);
    background: rgba(255, 245, 243, 0.98);
    color: var(--nope);
    box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.12);
}

.selectable-chip.chip-yep.is-selected {
    border-color: rgba(29, 78, 216, 0.22);
    background: #eaf1ff;
    color: var(--yep);
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.10);
}

.selectable-chip.chip-provider.is-selected {
    border-color: rgba(15, 118, 110, 0.34);
    background: #ecfdf5;
    color: #0f766e;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.provider-picker-head {
    align-items: flex-start;
}

.region-select-label {
    position: relative;
    flex: 0 0 auto;
}

.region-select-label::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 13px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #0f766e;
    border-bottom: 2px solid #0f766e;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.region-select-label select {
    min-height: 38px;
    max-width: 190px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 8px 34px 8px 12px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 900;
    appearance: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.06);
}

.region-select-label select:focus {
    outline: 3px solid rgba(15, 118, 110, 0.18);
    border-color: rgba(15, 118, 110, 0.44);
}

.provider-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.deep-nope-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: auto;
    margin-top: 12px;
    border-color: rgba(124, 58, 237, 0.28) !important;
    border-radius: 999px;
    padding: 8px 12px;
    background: #f5f3ff !important;
    color: #5b21b6 !important;
    cursor: pointer;
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.deep-nope-button strong {
    display: inline;
    font-size: 0.88rem;
}

.deep-nope-button svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.deep-nope-button small {
    display: none;
}

.discovery-filter-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.discovery-filter-button {
    margin-top: 0;
}

.discovery-filter-button small {
    display: inline;
    margin-left: 6px;
    color: currentColor;
    opacity: 0.72;
    font-size: 0.78rem;
}

.advanced-nope-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.advanced-nope-modal.is-open {
    display: flex;
}

.advanced-nope-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(20, 18, 15, 0.42);
    cursor: pointer;
}

.advanced-nope-panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    border: 1px solid rgba(20, 18, 15, 0.10);
    border-radius: 22px;
    padding: 16px;
    background: rgba(255, 252, 247, 0.98);
    box-shadow: 0 28px 70px rgba(20, 18, 15, 0.28);
}

.advanced-nope-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.advanced-nope-head h2 {
    margin: 4px 0 0;
    font-size: 1.25rem;
}

.advanced-nope-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-strip {
    border-radius: 14px;
    padding: 11px 12px;
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    font-size: 0.88rem;
    font-weight: 900;
}

.compact-button {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 12px;
    font-size: 0.84rem;
}

.quick-examples svg {
    width: 15px;
    height: 15px;
}

.chip {
    cursor: default;
}

.chip-yep {
    border-color: rgba(29, 78, 216, 0.15);
    background: #eaf1ff;
    color: var(--yep);
}

.chip-neutral {
    border-color: rgba(20, 18, 15, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--muted);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 900;
}

.primary-button {
    width: 100%;
    padding: 14px 18px;
    background: var(--accent);
    color: white;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}

.primary-button:hover {
    background: #000;
}

.secondary-button {
    width: 100%;
    margin-top: 14px;
    padding: 13px 18px;
    background: var(--accent-2);
    color: white;
}

.ghost-button {
    padding: 12px 16px;
    background: rgba(20, 18, 15, 0.06);
    color: var(--ink);
}

.group-home-cta,
.group-entry-panel,
.group-status-card,
.group-complete-panel,
.group-waiting-state,
.group-empty-state {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.group-home-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
}

.group-home-cta h2,
.group-entry-panel h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.group-home-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.group-entry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}

.group-entry-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.group-join-room-form {
    margin-top: 16px;
}

.group-select,
.group-code-input {
    width: 100%;
    border: 1px solid rgba(20, 18, 15, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font: inherit;
    font-weight: 800;
}

.group-select {
    min-height: 48px;
    padding: 0 12px;
}

.group-code-input {
    min-height: 52px;
    padding: 0 14px;
    text-transform: uppercase;
}

#display-name {
    text-transform: none;
}

.group-alert {
    margin: 14px 0 0;
    border-radius: 14px;
    padding: 12px;
    background: rgba(190, 18, 60, 0.08);
    color: #9f1239;
    font-weight: 800;
}

.group-alert.is-success {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
}

.group-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
}

.group-status-card p {
    margin: 0;
}

.group-participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.group-participant-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(20, 18, 15, 0.10);
    border-radius: 999px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.group-participant-list .group-participant-control {
    gap: 4px;
    border: 0;
    padding: 0;
    background: transparent;
}

.group-participant-list .group-participant-control > span {
    min-height: 44px;
}

.group-participant-list span.is-done {
    border-color: rgba(15, 118, 110, 0.20);
    background: rgba(15, 118, 110, 0.10);
    color: #0f766e;
}

.group-remove-participant-form {
    display: inline-flex;
    margin: 0;
}

.group-remove-participant-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #be123c;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(190, 18, 60, 0.22);
}

.group-remove-participant-button:hover {
    background: #9f1239;
}

.group-remove-participant-button svg {
    width: 17px;
    height: 17px;
}

.group-chip-form {
    margin-top: 16px;
}

.group-host-actions {
    margin: 0 0 16px;
}

.group-waiting-state,
.group-empty-state {
    margin-top: 16px;
}

.group-complete-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
}

.group-complete-panel h2 {
    margin: 8px 0 8px;
    font-size: 1.45rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.group-complete-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.group-complete-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.group-final-summary {
    margin-top: 14px;
}

.mood-sheet,
.chip-sheet,
.filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
}

.mood-sheet.is-open,
.chip-sheet.is-open,
.filter-sheet.is-open {
    display: block;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 20, 0.48);
}

.sheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: min(100%, 720px);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: #fbfdfb;
    box-shadow: 0 -24px 80px rgba(23, 27, 34, 0.28);
    padding: 14px 18px 18px;
}

.sheet-handle {
    width: 48px;
    height: 5px;
    border-radius: 999px;
    margin: 0 auto 16px;
    background: #d4c8b8;
}

.sheet-panel h2 {
    margin: 0 0 8px;
    font-size: 1.65rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.sheet-panel p {
    margin: 0 0 14px;
}

.sheet-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.field-label {
    display: block;
    margin: 14px 0 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chip-sheet-content {
    max-height: min(54vh, 520px);
    overflow: auto;
    margin-top: 14px;
    padding-right: 2px;
}

.chip-group + .chip-group {
    margin-top: 16px;
}

.chip-group h3 {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.edit-chip-form {
    margin-top: 14px;
}

.sample-row {
    margin-top: 10px;
}

.tmdb-attribution {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    border: 1px solid rgba(20, 18, 15, 0.10);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--muted);
}

.tmdb-attribution p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.tmdb-badge {
    flex: 0 0 auto;
    border-radius: 8px;
    padding: 6px 8px;
    background: #0d253f;
    color: #90cea1;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.results-summary,
.empty-state {
    padding: 18px;
}

.filter-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.filter-summary p {
    margin: 0;
    color: var(--ink);
    line-height: 1.35;
}

.browse-summary h1 {
    margin-bottom: 10px;
}

.browse-lede {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    overflow-x: auto;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
    white-space: nowrap;
}

.breadcrumb-trail a {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb-trail strong {
    color: var(--ink);
}

.browse-refine-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.64);
}

.browse-refine-note {
    margin-top: 18px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 16px;
    padding: 13px;
    background: rgba(236, 253, 245, 0.62);
}

.browse-refine-note p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.browse-refine-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.browse-refine-head p {
    max-width: 650px;
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.browse-apply-button {
    max-width: 280px;
}

.filter-summary .ghost-button {
    width: 100%;
}

.planner-note {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.result-sort {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.result-sort a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    padding: 9px 10px;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}

.result-sort a.is-active {
    border-color: rgba(15, 118, 110, 0.26);
    background: #e9fbf6;
    color: #0f766e;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.result-sort svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}

.inline-debug-link {
    display: inline-flex;
    margin-left: 6px;
    color: #0f766e;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.debug-disabled {
    margin-top: 14px;
    border: 1px solid rgba(180, 35, 24, 0.16);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 245, 243, 0.86);
    color: var(--nope);
    font-size: 0.86rem;
    font-weight: 800;
}

.debug-disabled code {
    font: 0.82rem/1.2 Consolas, "Liberation Mono", monospace;
}

.debug-panel {
    margin-top: 14px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.debug-panel summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 13px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 900;
}

.keyword-mapper-results {
    overflow-x: auto;
}

.keyword-mapper-results table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.keyword-mapper-results th,
.keyword-mapper-results td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    font-size: 0.84rem;
}

.keyword-mapper-results th {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.keyword-mapper-results tr:last-child td {
    border-bottom: 0;
}

.debug-grid {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.debug-grid h2 {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.debug-grid pre {
    max-height: 280px;
    margin: 0;
    overflow: auto;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    padding: 10px;
    background: #101820;
    color: #d9fff3;
    font: 0.78rem/1.45 Consolas, "Liberation Mono", monospace;
}

@keyframes narrowIn {
    from {
        width: 10%;
        opacity: 0.45;
    }

    to {
        width: 78%;
        opacity: 1;
    }
}

.summary-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.feedback-panel {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 14px;
    padding: 13px;
    background: #ffffff;
}

.feedback-panel p {
    margin: 0;
    color: var(--ink);
    font-weight: 900;
}

.feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-actions .ghost-button {
    min-height: 40px;
}

.feedback-actions .ghost-button.is-selected {
    background: #e9fbf6;
    color: #0f766e;
}

.feedback-actions .ghost-button:disabled {
    cursor: default;
    opacity: 0.74;
}

.feedback-status {
    color: var(--muted) !important;
    font-size: 0.86rem;
    font-weight: 800 !important;
}

.result-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.curated-list-grid {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.curated-list-tile,
.curated-admin-form,
.curated-admin-section,
.curated-admin-sidebar {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.curated-list-tile h2,
.curated-admin-section h2 {
    margin: 10px 0 8px;
}

.curated-list-tile h2 a {
    color: inherit;
    text-decoration: none;
}

.curated-list-tile p,
.curated-list-body {
    color: var(--muted);
    line-height: 1.65;
}

.curated-list-actions,
.curated-admin-search,
.curated-public-link {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.curated-public-link .group-code-input {
    flex: 1 1 260px;
    text-transform: none;
}

.curated-admin-layout,
.curated-admin-main,
.curated-admin-form,
.curated-admin-section,
.curated-admin-items,
.curated-search-results {
    display: grid;
    gap: 16px;
}

.curated-admin-layout {
    margin-top: 18px;
}

.curated-admin-sidebar {
    align-content: start;
    display: grid;
    gap: 8px;
}

.curated-admin-list-link {
    display: grid;
    gap: 4px;
    border-radius: 12px;
    padding: 10px;
    color: inherit;
    text-decoration: none;
}

.curated-admin-list-link small,
.curated-search-results small {
    color: var(--muted);
}

.curated-admin-list-link.is-active {
    background: #e9fbf6;
    color: #0f766e;
}

.curated-admin-form textarea,
.curated-admin-section textarea,
.curated-admin-items input[type="number"] {
    width: 100%;
    border: 1px solid rgba(24, 38, 48, 0.14);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.curated-normal-case .group-code-input {
    text-transform: none;
}

.curated-search-results article,
.curated-admin-items article {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(24, 38, 48, 0.1);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.curated-search-results article {
    grid-template-columns: 48px 1fr auto;
    align-items: center;
}

.curated-search-results img,
.curated-search-match img {
    width: 48px;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    object-fit: cover;
}

.curated-search-results div,
.curated-admin-items form,
.curated-admin-items label {
    display: grid;
    gap: 6px;
}

.curated-search-match {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    border: 1px solid rgba(24, 38, 48, 0.1);
    border-radius: 14px;
    padding: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.curated-search-match:hover,
.curated-search-match:focus-visible {
    border-color: rgba(15, 118, 110, 0.35);
    background: #e9fbf6;
}

.curated-search-match span {
    display: grid;
    gap: 4px;
}

.curated-search-match small {
    color: var(--muted);
}

.insights-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.insights-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.insights-periods a {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.insights-periods a.is-active {
    background: #0f766e;
    color: #fff;
}

.insights-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.insights-metric-card,
.insights-panel {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.insights-metric-card {
    display: grid;
    gap: 6px;
}

.insights-metric-card > strong {
    font-size: clamp(1.7rem, 5vw, 2.7rem);
    line-height: 1;
}

.insights-metric-card small {
    color: var(--muted);
    font-weight: 800;
}

.insights-metric-card small.is-up {
    color: #0f766e;
}

.insights-metric-card small.is-down {
    color: #be123c;
}

.insights-metric-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #e9fbf6;
    color: #0f766e;
}

.insights-panel {
    margin-top: 16px;
}

.insights-panel-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.insights-panel-heading h2,
.insights-ranked-pair h3 {
    margin: 4px 0 0;
}

.insights-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
}

.insights-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.insights-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
}

.insights-trend {
    display: flex;
    gap: 5px;
    min-height: 210px;
    overflow-x: auto;
    padding: 10px 0 2px;
}

.insights-trend-day {
    display: grid;
    grid-template-rows: 180px auto;
    gap: 6px;
    min-width: 30px;
    text-align: center;
}

.insights-trend-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 2px;
    border-bottom: 1px solid rgba(24, 38, 48, 0.12);
}

.insights-trend-bars i {
    width: 5px;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
}

.insights-trend-day small {
    color: var(--muted);
    font-size: 0.62rem;
    transform: rotate(-45deg);
}

.insights-legend .visitors,
.insights-trend-bars .visitors {
    background: #0f766e;
}

.insights-legend .searches,
.insights-trend-bars .searches {
    background: #f59e0b;
}

.insights-legend .views,
.insights-trend-bars .views {
    background: #7c3aed;
}

.insights-legend .watch,
.insights-trend-bars .watch {
    background: #2563eb;
}

.insights-two-column {
    display: grid;
    gap: 16px;
}

.insights-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.insights-quality-grid div {
    display: grid;
    gap: 4px;
    border-radius: 14px;
    padding: 12px;
    background: rgba(233, 251, 246, 0.72);
}

.insights-quality-grid strong {
    font-size: 1.3rem;
}

.insights-quality-grid span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.insights-ranked-pair {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.insights-ranked-pair p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 0;
    border-bottom: 1px solid rgba(24, 38, 48, 0.08);
    padding-bottom: 7px;
    color: var(--muted);
    font-weight: 800;
}

.insights-table-wrap {
    overflow-x: auto;
}

.insights-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.insights-table th,
.insights-table td {
    border-bottom: 1px solid rgba(24, 38, 48, 0.09);
    padding: 10px 8px;
    text-align: left;
    white-space: nowrap;
}

.insights-table th {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.insights-table a {
    color: inherit;
    font-weight: 900;
}

@media (min-width: 760px) {
    .curated-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .curated-admin-layout {
        grid-template-columns: minmax(210px, 0.3fr) minmax(0, 1fr);
        align-items: start;
    }

    .insights-metric-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .insights-two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insights-ranked-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.result-card {
    display: grid;
    grid-template-columns: 106px 1fr;
    gap: 14px;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #d9d2c8;
}

.poster-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.poster img,
.poster-placeholder {
    width: 100%;
    height: 100%;
}

.poster img {
    display: block;
    object-fit: cover;
}

.poster-placeholder {
    display: grid;
    place-items: center;
    padding: 10px;
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

.result-body {
    min-width: 0;
}

.title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.title-row h2 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.result-title-link {
    color: inherit;
    text-decoration: none;
}

.result-title-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.title-row p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.list-state-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.list-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 999px;
    padding: 5px 8px;
    background: #ffffff;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 900;
}

.list-state-watchlist {
    background: #eef6ff;
    color: #1d4ed8;
}

.list-state-watched {
    background: #e9fbf6;
    color: #0f766e;
}

.list-state-hidden {
    background: #fff7ed;
    color: #9a3412;
}

.rating {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #e8f8ee;
    color: #067647;
    padding: 6px 8px;
    font-weight: 900;
    font-size: 0.78rem;
}

.overview {
    display: -webkit-box;
    margin: 11px 0;
    overflow: hidden;
    color: #4d463e;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.reason-block {
    border-top: 1px solid rgba(20, 18, 15, 0.09);
    margin-top: 10px;
    padding-top: 10px;
}

.reason-block p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.action-grid form {
    display: contents;
}

.action-grid button,
.action-grid .card-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border: 1px solid rgba(20, 18, 15, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 900;
    text-align: center;
}

.is-hidden {
    display: none;
}

.is-hidden.is-visible {
    display: block;
}

.app-shell.movie-shell {
    max-width: 1120px;
}

.movie-hero,
.movie-panel,
.movie-seo-panel,
.movie-action-panel {
    border: 1px solid rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.movie-hero {
    position: relative;
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 16px;
    overflow: hidden;
    border-radius: 24px;
    padding: 14px;
}

.movie-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--movie-backdrop);
    background-position: center;
    background-size: cover;
    opacity: 0.18;
}

.movie-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(251, 253, 251, 0.98), rgba(251, 253, 251, 0.86));
}

.movie-hero-poster {
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.20);
}

.movie-hero-copy {
    min-width: 0;
}

.movie-hero h1 {
    margin: 8px 0 8px;
    font-size: clamp(2rem, 6vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.movie-tagline {
    margin: 0 0 10px;
    color: #334155;
    font-size: 1.02rem;
    font-weight: 850;
}

.movie-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.movie-facts a,
.movie-facts span,
.browse-chip-row a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.76);
    color: #24313f;
    font-size: 0.82rem;
    font-weight: 900;
}

.movie-overview {
    max-width: 720px;
    color: #3f4b55;
    line-height: 1.55;
}

.movie-primary-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 620px;
    margin-top: 16px;
}

.movie-primary-actions .primary-button,
.movie-primary-actions .secondary-button,
.movie-primary-actions .ghost-button {
    width: 100%;
    margin: 0;
}

.movie-action-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    border-radius: 18px;
    padding: 12px;
}

.movie-action-panel form {
    display: contents;
}

.movie-action-panel .card-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    border: 1px solid rgba(20, 18, 15, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
}

.movie-action-panel .card-action-link.is-selected,
.action-grid .card-action-link.is-selected,
.action-grid button.is-selected {
    background: #e9fbf6;
    color: #0f766e;
}

.movie-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.movie-panel,
.movie-seo-panel {
    border-radius: 20px;
    padding: 16px;
}

.movie-panel p,
.movie-seo-panel p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.person-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.72);
}

.person-link img {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.person-link span {
    min-width: 0;
}

.person-link strong,
.person-link small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-link strong {
    font-size: 0.9rem;
}

.person-link small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.movie-meta-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.movie-meta-list strong {
    display: block;
    color: var(--ink);
}

.movie-meta-list a {
    color: #0f766e;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.provider-pill-row {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.provider-pill {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    max-width: 100%;
    width: 100%;
    padding: 9px 10px 9px 9px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink) !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.provider-pill:hover {
    border-color: rgba(15, 118, 110, 0.26);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

.provider-pill img {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
}

.provider-pill svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: #0f766e;
}

.provider-pill span {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
}

.provider-pill strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.15;
}

.provider-pill small {
    display: block;
    overflow: hidden;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browse-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.movie-provider-link {
    width: 100%;
    margin-top: 14px;
}

.movie-seo-panel {
    margin-top: 14px;
}

.movie-seo-panel h2 {
    margin: 0;
    font-size: 1.35rem;
}

.loading-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(11, 18, 24, 0.46);
}

.is-searching .loading-layer {
    display: grid;
}

.loading-layer div {
    width: min(100%, 320px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    padding: 22px;
    background: #fbfdfb;
    box-shadow: var(--shadow);
    text-align: center;
}

.loading-layer span {
    display: block;
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border: 4px solid rgba(15, 118, 110, 0.18);
    border-top-color: var(--accent-2);
    border-radius: 999px;
    animation: spin 780ms linear infinite;
}

.loading-layer strong {
    display: block;
    font-size: 1.06rem;
}

.loading-layer p {
    margin: 7px 0 0;
    color: var(--muted);
}

@keyframes spin {
    to {
        rotate: 360deg;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 430px) {
    .app-shell {
        padding: 18px 12px 28px;
    }

    .hero {
        padding: 18px;
        border-radius: 22px;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 12vw, 3.6rem);
    }

    .result-card {
        grid-template-columns: 94px 1fr;
        gap: 12px;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .movie-hero {
        grid-template-columns: 94px 1fr;
        border-radius: 20px;
    }

    .movie-hero h1 {
        font-size: clamp(1.75rem, 10vw, 2.8rem);
    }

    .movie-primary-actions,
    .movie-action-panel,
    .movie-detail-grid,
    .people-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 760px) {
    .app-shell {
        padding-top: 28px;
    }

    .hero {
        padding: 34px;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feedback-panel {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .feedback-status {
        grid-column: 1 / -1;
    }

    .filter-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
        align-items: center;
    }

    .filter-summary .ghost-button {
        width: auto;
        min-width: 104px;
    }

    .result-sort {
        display: flex;
        flex-wrap: wrap;
    }

    .result-sort a {
        min-width: 126px;
    }

    .sheet-actions {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .sheet-actions .ghost-button {
        min-width: 104px;
    }
}

/* UI revamp overrides */
body {
    background: linear-gradient(180deg, #f7faf8 0%, #eef5f1 48%, #f8fafc 100%);
}

.app-shell {
    max-width: 980px;
}

.topbar {
    margin-bottom: 14px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.top-note {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ffffff;
}

.hero,
.results-summary,
.empty-state {
    border-color: rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
}

.hero {
    padding: 18px;
}

.hero::before {
    display: none;
}

.hero-main {
    max-width: 720px;
}

.hero h1,
.results-summary h1 {
    max-width: 15ch;
    font-size: clamp(2rem, 9vw, 3.55rem);
    line-height: 1;
}

.lede {
    margin-top: 12px;
    max-width: 31rem;
    font-size: 1rem;
}

.example-note,
.picker-helper,
.submit-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.example-note {
    color: #374151;
    font-weight: 800;
}

.trust-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.chip-picker {
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.chip-picker h2 {
    font-size: 1rem;
}

.eyebrow,
.section-label,
.mini-label {
    margin-bottom: 8px;
    letter-spacing: 0.06em;
}

.dealbreaker-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.clear-chip-button {
    min-height: 32px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.86);
    color: #374151;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 900;
}

.clear-chip-button:hover {
    border-color: rgba(180, 35, 24, 0.24);
    color: var(--nope);
}

.selectable-chip {
    min-height: 44px;
    border-width: 2px;
    border-radius: 12px;
    padding: 9px 12px;
    background: #fff;
    color: #1f2937;
}

.selectable-chip.is-selected::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.selectable-chip.chip-nope.is-selected {
    border-color: rgba(180, 35, 24, 0.62);
    background: #fee2df;
    color: #8f241b;
    box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.16);
}

.selectable-chip.chip-yep.is-selected {
    border-color: rgba(15, 118, 110, 0.58);
    background: #d8f7ef;
    color: #0a5f59;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
}

.selectable-chip.chip-provider.is-selected {
    border-color: rgba(15, 118, 110, 0.58);
    background: #dcfce7;
    color: #0a5f59;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
}

.selected-strip {
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 12px;
    background: #eefaf6;
    color: #0f5f59;
    line-height: 1.35;
}

.primary-button,
.secondary-button,
.ghost-button {
    min-height: 46px;
    border-radius: 12px;
}

.primary-button {
    background: #111827;
}

.submit-note {
    margin-top: -14px;
    color: #6b7280;
    font-size: 0.76rem;
    text-align: center;
}

.secondary-button {
    background: #0f766e;
}

.ghost-button {
    background: rgba(15, 23, 42, 0.06);
}

.compact-button {
    min-height: 40px;
}

.sheet-backdrop {
    border: 0;
    padding: 0;
    cursor: pointer;
}

.action-grid button:disabled {
    cursor: default;
    opacity: 0.74;
}

.action-grid .is-selected {
    background: #e9fbf6;
    color: #0f766e;
}

.sheet-panel {
    border-radius: 20px 20px 0 0;
    padding: 14px 16px 16px;
}

.chip-sheet-content {
    max-height: min(58vh, 540px);
}

.sheet-actions {
    position: sticky;
    bottom: 0;
    padding-top: 10px;
    background: linear-gradient(180deg, rgba(251, 253, 251, 0), #fbfdfb 28%);
}

.results-summary {
    padding: 16px;
}

.filter-summary {
    border-radius: 14px;
    background: #ffffff;
}

.summary-grid {
    gap: 12px;
}

.results-provider-note {
    margin-top: 12px;
}

.result-list {
    gap: 12px;
}

.result-card {
    grid-template-columns: 92px 1fr;
    gap: 12px;
    border-color: rgba(15, 23, 42, 0.10);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.poster {
    border-radius: 12px;
}

.title-row h2 {
    font-size: 1.05rem;
    line-height: 1.18;
}

.overview {
    margin: 9px 0;
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
}

.reason-block {
    margin-top: 8px;
    padding-top: 8px;
}

.reason-block p {
    font-size: 0.86rem;
}

.action-grid {
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
}

.action-grid button,
.action-grid .card-action-link {
    min-height: 40px;
    border-radius: 10px;
    padding: 0 10px;
}

.action-grid .card-primary-action {
    background: #111827;
    color: white;
}

.empty-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.empty-actions .primary-button,
.empty-actions .ghost-button {
    width: 100%;
}

.tmdb-attribution {
    display: grid;
    gap: 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
}

.tmdb-attribution .footer-tagline {
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 900;
}

.tmdb-attribution .tmdb-disclaimer {
    color: #7a858a;
    font-size: 0.72rem;
    font-weight: 650;
}

.popular-combos {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.popular-combos h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.popular-combos p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.popular-combo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border: 2px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    padding: 9px 12px;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.86rem;
    font-weight: 900;
}

.preset-chip:hover {
    border-color: rgba(15, 118, 110, 0.34);
    background: #e9fbf6;
    color: #0f5f59;
}

.preset-chip svg {
    width: 15px;
    height: 15px;
}

.selected-pill.is-locked {
    cursor: default;
    opacity: 0.9;
}

.selected-pill.is-locked svg {
    width: 13px;
    height: 13px;
}

.campaign-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.campaign-hero {
    --campaign-accent: #0f766e;
    --campaign-accent-2: #2563eb;
    --campaign-surface: #ffffff;
    --campaign-text: #172033;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--campaign-surface) 88%, #ffffff), #ffffff 58%),
        var(--campaign-surface);
    color: var(--campaign-text);
}

.campaign-hero .eyebrow {
    border-color: color-mix(in srgb, var(--campaign-accent) 28%, transparent);
    background: color-mix(in srgb, var(--campaign-accent) 10%, #ffffff);
    color: var(--campaign-accent);
}

.campaign-hero .primary-button {
    background: linear-gradient(135deg, var(--campaign-accent), var(--campaign-accent-2));
}

.campaign-hero .preset-chip:hover,
.campaign-hero .selectable-chip:hover {
    border-color: color-mix(in srgb, var(--campaign-accent) 34%, transparent);
}

.campaign-theme-pride {
    position: relative;
    overflow: hidden;
}

.campaign-theme-pride::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 9px;
    background: linear-gradient(
        to bottom,
        #e11d48 0 16.66%,
        #f97316 16.66% 33.33%,
        #facc15 33.33% 50%,
        #22c55e 50% 66.66%,
        #2563eb 66.66% 83.33%,
        #7c3aed 83.33% 100%
    );
    pointer-events: none;
}

.campaign-theme-pride .hero-main {
    position: relative;
}

.campaign-theme-pride .lede {
    color: #513247;
}

.campaign-theme-pride .search-form {
    border-color: rgba(190, 24, 93, 0.18);
    box-shadow: 0 24px 70px rgba(190, 24, 93, 0.10);
}

.campaign-theme-mexico {
    position: relative;
    overflow: hidden;
}

.campaign-theme-mexico::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 12px;
    background: linear-gradient(
        to bottom,
        #006847 0 33.33%,
        #ffffff 33.33% 66.66%,
        #ce1126 66.66% 100%
    );
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.08);
    pointer-events: none;
}

.campaign-theme-mexico.campaign-hero {
    border-color: rgba(0, 104, 71, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 255, 249, 0.92) 48%, rgba(255, 246, 247, 0.88)),
        var(--campaign-surface);
    box-shadow: 0 20px 56px rgba(0, 104, 71, 0.12);
}

.campaign-theme-mexico .hero-main {
    position: relative;
}

.campaign-theme-mexico .eyebrow {
    border-color: rgba(0, 104, 71, 0.24);
    background: #e8f7ef;
    color: #006847;
}

.campaign-theme-mexico h1 {
    color: #13241d;
}

.campaign-theme-mexico .lede {
    color: #3f5149;
}

.campaign-theme-mexico .search-form {
    border-color: rgba(0, 104, 71, 0.16);
    box-shadow: 0 24px 70px rgba(0, 104, 71, 0.10);
}

.campaign-theme-mexico .primary-button {
    background: linear-gradient(135deg, #006847, #ce1126);
    box-shadow: 0 14px 34px rgba(0, 104, 71, 0.22);
}

.campaign-theme-mexico .chip-yep.is-selected,
.campaign-theme-mexico .selected-pill-mood {
    border-color: rgba(0, 104, 71, 0.42);
    background: #e5f7ed;
    color: #006847;
}

.campaign-theme-mexico .chip-nope.is-selected,
.campaign-theme-mexico .selected-pill-nope {
    border-color: rgba(206, 17, 38, 0.34);
    background: #fff0f2;
    color: #9f1239;
}

.campaign-theme-mexico.campaign-results .results-summary {
    border-color: rgba(0, 104, 71, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 255, 249, 0.9) 58%, rgba(255, 246, 247, 0.86)),
        var(--campaign-surface);
    box-shadow: 0 22px 60px rgba(0, 104, 71, 0.10);
}

.campaign-results .results-summary {
    border-color: color-mix(in srgb, var(--campaign-accent) 20%, transparent);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--campaign-surface) 78%, #ffffff), #ffffff 72%),
        var(--campaign-surface);
    box-shadow: 0 22px 60px color-mix(in srgb, var(--campaign-accent) 9%, transparent);
}

.campaign-results .section-label,
.campaign-results .mini-label {
    color: var(--campaign-accent);
}

.campaign-results .filter-summary,
.campaign-results .feedback-panel,
.campaign-results .result-end-state {
    border-color: color-mix(in srgb, var(--campaign-accent) 18%, transparent);
}

.group-home-cta {
    gap: 14px;
    margin-top: 34px;
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.group-home-cta h2 {
    font-size: 1.28rem;
}

.group-home-cta p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.group-home-actions {
    gap: 10px;
}

.group-home-actions .secondary-button,
.group-home-actions .ghost-button {
    width: 100%;
    margin: 0;
}

.group-home-helper {
    font-size: 0.8rem !important;
}

.results-summary .section-label {
    max-width: 38rem;
    line-height: 1.35;
}

.trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.trailer-modal.is-open {
    display: block;
}

.trailer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(8, 13, 18, 0.66);
    cursor: pointer;
}

.trailer-panel {
    position: absolute;
    right: 12px;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 860px;
    max-height: calc(100vh - 24px);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
    background: #0b1117;
    color: #fff;
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
}

.trailer-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
}

.trailer-head h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trailer-open-link {
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 900;
}

.trailer-close-button {
    min-height: 40px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.trailer-frame-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 132px);
    background: #05080c;
}

.trailer-frame-wrap iframe,
.trailer-message {
    width: 100%;
    height: 100%;
}

.trailer-frame-wrap iframe {
    display: block;
    border: 0;
}

.trailer-frame-wrap iframe[hidden],
.trailer-message[hidden],
.trailer-help[hidden],
.trailer-open-link[hidden] {
    display: none !important;
}

.trailer-message {
    display: grid;
    place-items: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 850;
    text-align: center;
}

.trailer-help {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 10px 12px 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.35;
}

.vote-status-bar,
.vote-results-panel,
.share-thought-panel {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: #ffffff;
}

.vote-status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    color: #0f5f59;
    font-size: 0.88rem;
    font-weight: 900;
}

.vote-status-bar span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.vote-results-panel {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 14px;
}

.vote-results-panel h2,
.share-thought-panel h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
}

.vote-results-panel p {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.curated-vote-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.curated-vote-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 16px;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.curated-vote-card.is-picked {
    border-color: rgba(15, 118, 110, 0.38);
    box-shadow: 0 14px 34px rgba(15, 118, 110, 0.12);
}

.curated-vote-poster {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #e5e7eb;
}

.curated-vote-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.curated-vote-poster span {
    display: grid;
    height: 100%;
    place-items: center;
    padding: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
}

.curated-vote-body {
    display: grid;
    align-content: space-between;
    gap: 12px;
    min-width: 0;
}

.curated-vote-body h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.18;
}

.curated-vote-body p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.curated-vote-body .primary-button {
    min-height: 42px;
    padding: 10px 12px;
}

.vote-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.vote-meter span {
    display: block;
    min-width: 2px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #2563eb);
}

.curated-vote-body .vote-count-line {
    margin-top: 6px;
    color: #111827;
}

.share-thought-panel {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
}

.share-thought-panel textarea {
    min-height: 86px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.96rem;
}

.share-card-preview {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px 14px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #ffffff, #eefaf6);
}

.share-card-preview img {
    grid-row: 1 / span 5;
    width: 92px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.share-card-preview span,
.share-card-preview small {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.share-card-preview strong {
    color: #111827;
    font-size: 1.45rem;
    line-height: 1.08;
}

.share-card-preview p,
.share-card-preview em {
    margin: 0;
    color: #374151;
    font-weight: 850;
    line-height: 1.4;
}

.share-card-preview em {
    color: #0f766e;
    font-size: 0.88rem;
    font-style: normal;
}

.share-card-actions {
    display: grid;
    gap: 8px;
}

.share-card-actions .secondary-button,
.share-card-actions .ghost-button {
    width: 100%;
    margin: 0;
}

@media (max-width: 430px) {
    .app-shell {
        padding: 14px 12px 28px;
    }

    .topbar {
        gap: 8px;
    }

    .brand {
        gap: 8px;
        font-size: 0.96rem;
    }

    .hero {
        padding: 14px;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .chip-search-form {
        gap: 12px;
        margin-top: 18px;
    }

    .chip-picker {
        padding: 10px;
    }

    .chip-picker-head {
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .selectable-chip {
        min-height: 36px;
        border-radius: 10px;
        padding: 6px 9px;
        gap: 5px;
        font-size: 0.82rem;
    }

    .selectable-chip svg {
        width: 14px;
        height: 14px;
    }

    .chip-row,
    .popular-combo-row {
        gap: 6px;
    }

    .preset-chip {
        min-height: 36px;
        padding: 7px 9px;
        font-size: 0.82rem;
    }

    .result-card {
        grid-template-columns: 86px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .rating {
        padding: 5px 7px;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .action-grid button,
    .action-grid .card-action-link {
        width: 100%;
    }
}

@media (min-width: 760px) {
    .hero {
        padding: 26px;
    }

    .chip-search-form {
        gap: 16px;
    }

    .group-home-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .result-card {
        grid-template-columns: 118px 1fr;
    }

    .vote-results-panel {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .curated-vote-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .share-thought-panel {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
        align-items: start;
    }

    .share-thought-panel .field-label,
    .share-thought-panel textarea,
    .share-card-actions {
        grid-column: 1;
    }

    .share-card-preview {
        grid-column: 2;
        grid-row: 1 / span 4;
    }

    .empty-actions {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .action-grid {
        grid-template-columns: 1fr;
    }

    .action-grid button,
    .action-grid .card-action-link {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

.guided-picker-section[hidden],
.contextual-chip-group[hidden] {
    display: none !important;
}

.guided-picker-section {
    scroll-margin-top: 20px;
}

.contextual-picker {
    display: grid;
    gap: 12px;
}

.contextual-chip-group {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.contextual-chip-group summary {
    cursor: pointer;
    padding: 12px 14px;
    color: var(--text);
    font-weight: 800;
    list-style: none;
}

.contextual-chip-group summary::-webkit-details-marker {
    display: none;
}

.contextual-chip-group summary::after {
    content: "+";
    float: right;
    color: var(--muted);
}

.contextual-chip-group[open] summary::after {
    content: "-";
}

.contextual-chip-group .chip-row {
    padding: 0 12px 12px;
}

.guided-selected-strip {
    align-items: flex-start;
}

.selected-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.selected-summary [data-selected-count] {
    color: var(--muted);
    font-weight: 700;
}

.selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
}

button.selected-pill {
    cursor: pointer;
}

.selected-pill svg {
    width: 14px;
    height: 14px;
}

.selected-pill-nope {
    background: rgba(251, 113, 133, 0.14);
    border-color: rgba(251, 113, 133, 0.32);
}

.selected-pill-mood {
    background: rgba(52, 211, 153, 0.14);
    border-color: rgba(52, 211, 153, 0.32);
}

.selected-pill-provider {
    background: rgba(125, 211, 252, 0.14);
    border-color: rgba(125, 211, 252, 0.32);
}

.footer-link {
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--text);
}

.legal-page {
    width: min(880px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding: 28px 0 10px;
}

.legal-page h1 {
    margin: 0;
    font-size: clamp(2.1rem, 6vw, 4rem);
    letter-spacing: 0;
}

.legal-page h2 {
    margin: 14px 0 0;
    font-size: 1.2rem;
}

.legal-page p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.legal-page .lede {
    color: var(--text);
    font-weight: 800;
}

.legal-note {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    font-size: 0.95rem;
}
