@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Source+Sans+3:wght@400;500;600&display=swap');

/* SpacePod — warm editorial with quiet contrast */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #F5F0EB;
    --text: #2C2420;
    --muted: #746558;
    --quiet: #A7998B;
    --accent: #8B5E34;
    --accent-hover: #6E4A28;
    --surface: #FCF8F3;
    --surface-strong: #FFFDFC;
    --border: rgba(44, 36, 32, 0.08);
    --border-strong: rgba(44, 36, 32, 0.14);
    --shadow: 0 8px 24px rgba(44, 36, 32, 0.06);
    --shadow-hover: 0 18px 38px rgba(44, 36, 32, 0.09);
    --highlight: #F0DCC4;
    --radius: 18px;
    --radius-small: 12px;
}

body {
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(240, 220, 196, 0.22), transparent 34%),
        linear-gradient(180deg, #f8f3ee 0%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

p { max-width: 70ch; }

/* Layout */
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
    padding: 24px 0;
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: rgba(245, 240, 235, 0.82);
    border-bottom: 1px solid rgba(44, 36, 32, 0.05);
    z-index: 10;
}
nav .container-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: color 0.15s, opacity 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    letter-spacing: 0.01em;
    font-family: inherit;
}
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 10px 24px rgba(139, 94, 52, 0.18); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-secondary:hover { background: rgba(252, 248, 243, 0.9); color: var(--text); }
.btn-large { padding: 16px 36px; font-size: 15px; }
.btn-nav { padding: 8px 20px; font-size: 13px; color: #fff !important; }
.btn-cta { color: #fff !important; margin-top: 36px; }
.nav-active { color: var(--text) !important; }
.link-accent { color: var(--accent); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }
.no-results-sub { margin-top: 8px; font-size: 14px; color: var(--muted); }


/* ===========================
   LANDING PAGE
   =========================== */

.hero {
    padding: 124px 0 84px;
    text-align: center;
}
.hero h1 {
    font-size: clamp(48px, 7vw, 70px);
    line-height: 1.02;
    margin-bottom: 22px;
}
.hero .hero-sub {
    font-size: 19px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}
.hero-compact {
    padding: 48px 0 24px;
}
.hero-compact h1 { font-size: 28px; margin-bottom: 12px; }

/* How it works */
.how-it-works { padding: 24px 0 88px; }
.steps-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}
.step-h {
    flex: 1;
    max-width: 240px;
    text-align: center;
    background: rgba(252, 248, 243, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
}
.step-h h3 { font-size: 21px; margin-bottom: 10px; }
.step-h p { font-size: 14px; color: var(--muted); line-height: 1.62; margin: 0 auto; }
.step-number {
    width: 28px; height: 28px;
    background: var(--accent); color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 12px;
    margin: 0 auto 14px;
}
.step-arrow {
    font-size: 18px; color: var(--quiet);
    padding: 48px 6px 0; flex-shrink: 0;
}

/* Demo section */
.demo-section { padding: 0 0 96px; }
.demo-card {
    padding: 56px 48px;
    background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}
.demo-card h3 { font-size: 28px; margin-bottom: 10px; }
.demo-card > p { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* Search box (shared) */
.search-box { display: flex; gap: 10px; }
.search-box input {
    flex: 1; padding: 16px 20px; font-size: 16px;
    font-family: inherit; border: 1px solid var(--border); border-radius: 16px;
    outline: none; background: rgba(255, 253, 249, 0.92);
    box-shadow: var(--shadow); color: var(--text);
    transition: box-shadow 0.25s;
}
.search-box input::placeholder { color: var(--quiet); }
.search-box input:focus { box-shadow: var(--shadow-hover), 0 0 0 2px rgba(139, 94, 52, 0.12); }
.search-box button {
    padding: 16px 28px; font-size: 15px; font-weight: 500;
    font-family: inherit; background: var(--accent); color: #fff;
    border: none; border-radius: 16px; cursor: pointer;
    transition: background 0.2s, transform 0.2s; letter-spacing: 0.01em;
}
.search-box button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.demo-search .search-box { max-width: 520px; margin: 0 auto; }

/* Demo results */
.demo-results { padding-bottom: 48px; }
.results-count { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.result {
    padding: 24px; background: var(--surface);
    border-radius: 10px; margin-bottom: 12px;
    box-shadow: var(--shadow); transition: box-shadow 0.2s;
}
.result:hover { box-shadow: var(--shadow-hover); }
.result-meta { font-size: 11px; color: var(--quiet); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.8px; }
.result-title { font-family: Georgia, serif; font-size: 16px; margin-bottom: 8px; }
.result-snippet { font-size: 14px; color: var(--muted); line-height: 1.65; }
.result-snippet mark { background: var(--highlight); color: var(--text); padding: 2px 3px; border-radius: 2px; }
.demo-cta { text-align: center; padding: 48px 24px; margin-top: 32px; }
.demo-cta p { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.demo-cta p strong { color: var(--text); }
.demo-cta .btn { margin-top: 20px; }
.no-results { text-align: center; padding: 72px 0; color: var(--muted); }
.search-empty-state { max-width: 560px; margin: 0 auto; }
.search-empty-lead {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 6px;
}
.search-empty-copy {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}
.example-queries {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.example-query {
    text-decoration: none;
    cursor: pointer;
    color: var(--muted);
    background: rgba(252, 248, 243, 0.82);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.example-query:hover {
    color: var(--text);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

/* Search loading */
.search-loading { display: none; text-align: center; padding: 72px 0; }
.search-loading.active { display: block; }
.search-loading .mic { width: 48px; height: 48px; margin: 0 auto 20px; position: relative; }
.search-loading .mic-body { width: 20px; height: 32px; background: var(--accent); border-radius: 10px; margin: 0 auto; animation: mic-pulse 1.2s ease-in-out infinite; }
.search-loading .mic-stand { width: 2px; height: 12px; background: var(--quiet); margin: 4px auto 0; }
.search-loading .mic-base { width: 24px; height: 2px; background: var(--quiet); margin: 0 auto; border-radius: 1px; }
.on-air-dot { width: 8px; height: 8px; background: #c0392b; border-radius: 50%; display: inline-block; margin-right: 8px; animation: on-air-blink 1s ease-in-out infinite; }
.search-loading p { font-size: 14px; color: var(--muted); margin-top: 16px; }
.search-loading .on-air-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--quiet); margin-bottom: 4px; }
@keyframes mic-pulse { 0%, 100% { opacity: 0.4; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.1); } }
@keyframes on-air-blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }


/* ===========================
   DASHBOARD (conversational)
   =========================== */

.converse { padding: 84px 0 110px; }

/* Empty state: generous vertical space */
.converse-empty-state {
    text-align: center;
    padding: 140px 0 96px;
}

/* Centered welcome / header */
.converse-center {
    text-align: center;
    padding-bottom: 54px;
}
.converse h1 {
    font-size: clamp(38px, 5vw, 52px);
    margin-bottom: 14px;
}
.converse-center > p,
.converse > p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
}
.converse-or {
    margin-top: 24px;
    font-size: 13px;
}
.converse-or a {
    color: var(--quiet);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
}
.converse-or a:hover { color: var(--muted); }
.converse-aside {
    text-align: center;
    font-size: 13px;
    color: var(--quiet);
    margin-top: 20px;
    font-style: italic;
}

/* Primary input */
.converse-input {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}
.converse-input input {
    flex: 1; padding: 18px 24px; font-size: 16px;
    font-family: inherit; border: 1px solid var(--border); border-radius: 18px;
    outline: none; background: rgba(255, 253, 249, 0.92);
    box-shadow: var(--shadow); color: var(--text);
    transition: box-shadow 0.25s;
}
.converse-input input::placeholder { color: var(--quiet); }
.converse-input input:focus { box-shadow: var(--shadow-hover), 0 0 0 2px rgba(139, 94, 52, 0.12); }
.converse-input button {
    padding: 18px 32px; font-size: 15px; font-weight: 500;
    font-family: inherit; background: var(--accent); color: #fff;
    border: none; border-radius: 18px; cursor: pointer;
    transition: background 0.2s; letter-spacing: 0.3px; white-space: nowrap;
}
.converse-input button:hover { background: var(--accent-hover); }

/* Quiet secondary input */
.converse-input-quiet input {
    background: transparent; box-shadow: none;
    border: 1px solid var(--border); padding: 14px 18px; font-size: 14px;
}
.converse-input-quiet input:focus { box-shadow: 0 0 0 2px rgba(139, 94, 52, 0.08); border-color: transparent; }
.converse-input-quiet button {
    background: transparent; color: var(--muted);
    border: 1px solid var(--border); padding: 14px 20px; font-size: 14px;
}
.converse-input-quiet button:hover { background: var(--surface); color: var(--text); }

/* Answer display */
.converse-answer { margin-bottom: 52px; }
.converse-you {
    font-family: "Fraunces", Georgia, serif;
    font-size: 28px; line-height: 1.18;
    margin-bottom: 26px; color: var(--text);
}
.converse-reply {
    font-size: 16px; line-height: 1.85; color: var(--text);
    padding: 36px 40px;
    background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-top: 4px solid rgba(139, 94, 52, 0.35);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.converse-reply p { margin-bottom: 16px; }
.converse-reply p:last-child { margin-bottom: 0; }
.converse-reply strong { color: var(--text); }
.converse-reply h3 { font-size: 17px; margin: 0 0 12px; }
.converse-reply h4 { font-size: 15px; margin: 16px 0 8px; }

/* Citations: expandable, inspectable */
.converse-citations {
    margin-top: 24px;
    background: rgba(252, 248, 243, 0.68);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
}
.converse-citations-toggle {
    font-size: 13px; color: var(--quiet);
    cursor: pointer; letter-spacing: 0.2px;
    list-style: none;
    transition: color 0.15s;
}
.converse-citations-toggle:hover { color: var(--muted); }
.converse-citations-toggle::marker { content: ''; }
.converse-citations-toggle::before { content: '+ '; }
.converse-citations[open] .converse-citations-toggle::before { content: '- '; }
.converse-citations-list { margin-top: 12px; }
.converse-cite-item {
    display: flex; gap: 12px; padding: 8px 0;
    font-size: 13px; border-bottom: 1px solid var(--border);
}
.converse-cite-item:last-child { border-bottom: none; }
.converse-cite-show {
    color: var(--quiet); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.5px;
    min-width: 100px; flex-shrink: 0; padding-top: 1px;
}
.converse-cite-ep { color: var(--muted); }
.converse-nothing {
    color: var(--muted); font-size: 15px; padding: 24px 0;
}

/* Library shelf: quiet context */
.shelf {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center;
    margin-top: 48px;
}
.shelf-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px;
    font-size: 12px; color: var(--muted);
    background: rgba(252, 248, 243, 0.88);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(44, 36, 32, 0.06);
}
.shelf-n { color: var(--quiet); font-size: 11px; }
.shelf-manage {
    text-decoration: none; color: var(--quiet);
    border: 1px dashed var(--border);
    background: transparent; box-shadow: none;
    transition: color 0.15s;
}
.shelf-manage:hover { color: var(--muted); }

/* Podcast/episode search results */
.search-results-section { padding-bottom: 48px; }
.sr-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.sr-item:last-child { border-bottom: none; }
.sr-info { flex: 1; min-width: 0; }
.sr-title { display: block; font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.4; }
.sr-show { display: block; font-size: 12px; color: var(--quiet); margin-top: 2px; }
.sr-add {
    padding: 8px 18px; font-size: 13px; font-family: inherit;
    background: var(--accent); color: #fff; border: none;
    border-radius: 6px; cursor: pointer; transition: background 0.2s;
    white-space: nowrap; margin-left: 16px; flex-shrink: 0;
}
.sr-add:hover { background: var(--accent-hover); }

/* Loading state: brain pulse */
.converse-loading {
    display: none;
    text-align: center;
    padding: 72px 0 48px;
}
.converse-loading.active { display: block; }
.converse-loading p {
    font-size: 14px;
    color: var(--quiet);
    margin-top: 20px;
    letter-spacing: 0.2px;
}
.brain-pulse {
    display: inline-block;
    color: var(--accent);
}
.brain-pulse svg {
    animation: brain-color 2.4s ease-in-out infinite;
}
.brain-left {
    animation: brain-shift-left 2.4s ease-in-out infinite;
}
.brain-right {
    animation: brain-shift-right 2.4s ease-in-out infinite;
}
@keyframes brain-color {
    0%, 100% { color: var(--quiet); }
    30% { color: var(--accent); }
    60% { color: var(--muted); }
}
@keyframes brain-shift-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-1px); }
}
@keyframes brain-shift-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(1px); }
}

/* Progress bar */
.progress-bar-track {
    height: 4px; background: rgba(0,0,0,0.04);
    border-radius: 2px; overflow: hidden;
    max-width: 200px; margin: 20px auto 0;
}
.progress-bar-fill {
    height: 100%; background: var(--accent);
    border-radius: 2px; min-width: 4px;
}
.progress-bar-pulse { animation: pulse-width 2s ease-in-out infinite; }
@keyframes pulse-width { 0%, 100% { width: 5%; } 50% { width: 20%; } }


/* ===========================
   LIBRARY PAGE
   =========================== */

.library-page { padding: 56px 0 108px; }
.library-header { margin-bottom: 32px; }
.library-header h2 { font-size: 36px; margin-bottom: 8px; }
.library-stats { font-size: 14px; color: var(--muted); }
.library-add { margin-bottom: 36px; }
.library-empty { text-align: center; padding: 72px 0; color: var(--muted); }
.shows-header { margin-bottom: 24px; }
.shows-header h2 { font-size: 34px; margin-bottom: 8px; }
.shows-header p { color: var(--muted); }
.shows-list {
    background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.show-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}
.show-item:last-child { border-bottom: none; }
.show-name { font-size: 15px; color: var(--text); }
.btn-compact { padding: 8px 16px; font-size: 13px; }
.feed-form-empty {
    text-align: center;
    padding: 44px 28px;
    background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.feed-form-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-spotify { background: #1DB954; color: #fff !important; }
.btn-spotify:hover { background: #179c46; }
.search-nudge-spaced { margin-top: 24px; }
.search-nudge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(252, 248, 243, 0.84);
}
.search-nudge p { color: var(--muted); }

/* Library groups */
.lib-group { margin-bottom: 40px; }
.lib-group-label {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--quiet); margin-bottom: 8px;
}
.lib-group-hint {
    font-size: 13px; color: var(--muted);
    margin-bottom: 16px; line-height: 1.5;
}
.lib-list {
    background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.lib-item {
    padding: 16px 22px; display: flex;
    justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}
.lib-item:last-child { border-bottom: none; }
.lib-info { flex: 1; min-width: 0; }
.lib-show {
    display: block; font-size: 11px; color: var(--quiet);
    text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 2px;
}
.lib-title { display: block; font-size: 14px; color: var(--text); }
.lib-status {
    font-size: 11px; padding: 4px 10px;
    border-radius: 4px; font-weight: 500;
    flex-shrink: 0; margin-left: 12px;
}
.lib-status-processing { background: var(--highlight); color: var(--accent); }
.lib-status-failed { background: #FAE8E4; color: #9B3424; }


/* ===========================
   AUTH
   =========================== */

.auth-page { padding: 120px 0; }
.auth-form {
    max-width: 420px; margin: 0 auto; padding: 44px;
    background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
    border-radius: 22px; box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.auth-form h2 { margin-bottom: 28px; text-align: center; font-size: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--muted); letter-spacing: 0.3px; }
.form-group input {
    width: 100%; padding: 12px 14px; font-size: 15px;
    font-family: inherit; border: 1px solid var(--border); border-radius: 8px;
    outline: none; background: var(--bg); color: var(--text);
    transition: box-shadow 0.2s;
}
.form-group input:focus { box-shadow: 0 0 0 2px rgba(139, 94, 52, 0.12); border-color: transparent; }
.auth-submit { width: 100%; margin-top: 8px; }
.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}


/* ===========================
   SHARED
   =========================== */

/* Flash messages */
.flash { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.flash-error { background: #FAE8E4; color: #9B3424; }
.flash-success { background: #EBF0E6; color: #4A6741; }

/* Upgrade banner */
.upgrade-banner {
    padding: 20px 24px; background: var(--surface);
    border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px; box-shadow: var(--shadow);
}
.upgrade-banner p { font-size: 14px; }

/* Episode list (library page) */
.episode {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.episode:last-child { border-bottom: none; }
.episode-info { flex: 1; }
.episode-show { font-size: 11px; color: var(--quiet); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 2px; }
.episode-title { font-size: 14px; }
.episode-status { font-size: 11px; padding: 4px 10px; border-radius: 4px; letter-spacing: 0.2px; font-weight: 500; }
.status-fetched { background: #EBF0E6; color: #4A6741; }
.status-missing { background: var(--bg); color: var(--muted); }
.status-processing { background: var(--highlight); color: var(--accent); }
.status-failed { background: #FAE8E4; color: #9B3424; }
.status-queued { background: var(--bg); color: var(--muted); }

/* Footer */
footer {
    padding: 56px 0; text-align: center;
    font-size: 13px; color: var(--quiet);
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 640px) {
    .hero { padding: 80px 0 48px; }
    .hero h1 { font-size: 40px; }
    .converse-empty-state { padding: 80px 0 64px; }
    .converse h1 { font-size: 34px; }
    .converse-input { flex-direction: column; }
    .converse-input button { width: 100%; }
    .converse-you { font-size: 20px; }
    .converse-reply { padding: 24px; }
    .steps-horizontal { flex-direction: column; align-items: center; gap: 24px; }
    .step-arrow { display: none; }
    .auth-form { padding: 28px; }
    .sr-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .sr-add { margin-left: 0; }
    .shelf { gap: 6px; }
    .shelf-pill { font-size: 11px; padding: 4px 10px; }
    .lib-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .lib-status { margin-left: 0; }
    .converse-cite-item { flex-direction: column; gap: 2px; }
    .converse-cite-show { min-width: auto; }
    .demo-card { padding: 36px 24px; }
    .upgrade-banner { flex-direction: column; gap: 12px; text-align: center; }
    .search-nudge,
    .show-item { flex-direction: column; align-items: flex-start; }
    .feed-form-actions { flex-direction: column; }
}

/* Accessibility: focus states */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
