:root {
    --bg: #05040b;
    --bg-deep: #020107;
    --card: rgba(13, 10, 25, .76);
    --card-strong: rgba(20, 15, 38, .88);
    --glass: rgba(255, 255, 255, .075);
    --glass-strong: rgba(255, 255, 255, .115);
    --line: rgba(255, 255, 255, .12);
    --line-strong: rgba(255, 255, 255, .22);
    --text: #fff9ff;
    --soft: #dfd4ec;
    --muted: #a79ab8;
    --dim: #7e738d;
    --gold: #ffda8a;
    --gold-2: #ffe9ba;
    --rose: #ff5fb8;
    --violet: #8b6dff;
    --cyan: #6be7ff;
    --green: #8fffd6;
    --danger: #ff627b;
    --shadow: 0 30px 90px rgba(0, 0, 0, .48);
    --shadow-soft: 0 18px 60px rgba(0, 0, 0, .34);
    --max: 1180px;
    --radius-xl: 34px;
    --radius-lg: 25px;
    --radius-md: 17px;
}

* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: dark; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--bg-deep);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::selection { background: rgba(255, 218, 138, .95); color: #1c1022; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
h1, h2, h3, p, figure { margin-top: 0; }

.ambient {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 95, 184, .34), transparent 31%),
        radial-gradient(circle at 88% 20%, rgba(107, 231, 255, .22), transparent 30%),
        radial-gradient(circle at 47% 100%, rgba(139, 109, 255, .28), transparent 45%),
        linear-gradient(145deg, #05030b 0%, #100720 48%, #03101d 100%);
}
.ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0 36%, rgba(0, 0, 0, .58) 100%);
}
.ambient-orb {
    position: absolute;
    width: min(65vw, 760px);
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(76px);
    opacity: .48;
    animation: floatOrb 18s ease-in-out infinite;
}
.orb-one { left: -22vw; top: 4vh; background: rgba(255, 95, 184, .62); }
.orb-two { right: -20vw; top: 16vh; background: rgba(107, 231, 255, .54); animation-delay: -6s; }
.orb-three { left: 32vw; bottom: -42vh; background: rgba(139, 109, 255, .66); animation-delay: -11s; }
.ambient-grid {
    position: absolute;
    inset: -20%;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: rotate(-8deg);
}
.ambient-stars {
    position: absolute;
    inset: 0;
    opacity: .42;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.9) 1px, transparent 1.8px),
        radial-gradient(circle, rgba(255,255,255,.28) 1px, transparent 1.6px);
    background-position: 20px 30px, 58px 70px;
    background-size: 138px 138px, 76px 76px;
    mask-image: linear-gradient(to bottom, black 0 66%, transparent 96%);
}
@keyframes floatOrb { 50% { transform: translate3d(38px, -28px, 0) scale(1.08); } }

.topbar,
.page-shell {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}
.topbar {
    min-height: 70px;
    margin-top: 18px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    background: rgba(5, 3, 12, .62);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow-soft);
}
.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #1b0c22;
    background:
        radial-gradient(circle at 34% 24%, #fff7d3 0 15%, transparent 16%),
        linear-gradient(135deg, var(--gold), var(--rose) 57%, var(--cyan));
    box-shadow: 0 0 38px rgba(255, 95, 184, .3), inset 0 1px 0 rgba(255,255,255,.6);
    font-size: 1.26rem;
    font-weight: 950;
}
.brand-mark span { filter: drop-shadow(0 2px 8px rgba(0,0,0,.18)); }
.brand-text { min-width: 0; }
.brand strong,
.brand small { display: block; white-space: nowrap; }
.brand strong { font-size: 1.08rem; letter-spacing: -.045em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: .78rem; font-weight: 850; }
.topnav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.topnav a,
.topnav button {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--soft);
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.09);
    font-weight: 900;
}
.topnav a:hover,
.topnav button:hover { color: var(--text); background: rgba(255,255,255,.12); }
.inline-form { display: inline; margin: 0; }
.page-shell { margin-top: 34px; padding-bottom: 52px; }

.flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.flash {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255,255,255,.085);
    color: var(--soft);
    backdrop-filter: blur(18px);
    font-weight: 780;
    box-shadow: var(--shadow-soft);
}
.flash-error { border-color: rgba(255,98,123,.34); color: #ffd2dc; background: rgba(255,98,123,.13); }
.flash-success { border-color: rgba(143,255,214,.3); color: #d7fff2; background: rgba(143,255,214,.11); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .74rem;
    font-weight: 950;
}

.home-hero {
    min-height: calc(100vh - 142px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 500px);
    align-items: center;
    gap: clamp(32px, 7vw, 92px);
    padding: 8px 0 44px;
}
.hero-copy { max-width: 700px; }
.hero-copy h1 {
    margin: 18px 0 22px;
    max-width: 760px;
    font-size: clamp(3.45rem, 7.4vw, 7rem);
    line-height: .86;
    letter-spacing: -.1em;
    text-wrap: balance;
}
.hero-copy p {
    max-width: 590px;
    margin-bottom: 0;
    color: var(--soft);
    font-size: clamp(1.05rem, 1.45vw, 1.28rem);
    line-height: 1.75;
}
.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.hero-notes span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 15px;
    color: var(--soft);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
    font-weight: 850;
    font-size: .9rem;
}

.oracle-panel,
.answer-card,
.auth-card,
.admin-hero,
.admin-panel,
.question-detail-card,
.answer-editor,
.center-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035)),
        var(--card);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow);
}
.oracle-panel::before,
.answer-card::before,
.auth-card::before,
.admin-hero::before,
.admin-panel::before,
.question-detail-card::before,
.answer-editor::before,
.center-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% 0%, rgba(255, 218, 138, .18), transparent 34%),
        radial-gradient(circle at 100% 38%, rgba(107, 231, 255, .13), transparent 38%),
        linear-gradient(to bottom, rgba(255,255,255,.04), transparent 44%);
}
.oracle-panel > *,
.answer-card > *,
.auth-card > *,
.admin-hero > *,
.admin-panel > *,
.question-detail-card > *,
.answer-editor > *,
.center-card > * { position: relative; }

.oracle-panel { padding: clamp(20px, 2.7vw, 30px); }
.oracle-aura {
    position: relative;
    min-height: 214px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
}
.aura-core,
.portal-core {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #1c1024;
    background:
        radial-gradient(circle at 34% 25%, #fff8d9 0 15%, transparent 16%),
        linear-gradient(135deg, var(--gold), var(--rose) 57%, var(--cyan));
    box-shadow:
        0 0 46px rgba(255, 218, 138, .26),
        0 0 98px rgba(255, 95, 184, .34),
        0 34px 90px rgba(0,0,0,.52);
    font-size: 2.2rem;
    animation: pulseCore 2.8s ease-in-out infinite;
}
.aura-ring,
.portal-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255, 218, 138, .3);
    box-shadow: inset 0 0 76px rgba(107,231,255,.09), 0 0 48px rgba(255,95,184,.13);
}
.aura-ring-one { width: 196px; height: 196px; animation: spin 20s linear infinite; }
.aura-ring-two { width: 252px; height: 252px; opacity: .66; border-style: dashed; animation: spin 34s linear infinite reverse; }
@keyframes pulseCore { 50% { transform: scale(1.045); filter: brightness(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }

.oracle-form,
.auth-card,
.answer-editor,
.question-detail-card,
.admin-panel { display: grid; gap: 18px; }
.panel-title {
    display: flex;
    align-items: center;
    gap: 13px;
}
.panel-title > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: var(--gold);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    font-size: 1.3rem;
}
.panel-title h2,
.auth-card h1,
.answer-card h1,
.admin-hero h1,
.question-detail-card h1,
.answer-editor h2,
.center-card h1 {
    margin: 0;
    letter-spacing: -.06em;
    line-height: 1;
}
.panel-title h2 { font-size: clamp(1.55rem, 2.3vw, 2.08rem); }
.panel-title p,
.auth-card p,
.admin-hero p,
.answer-editor p,
.center-card p { margin: 7px 0 0; color: var(--muted); line-height: 1.6; }

.category-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 10px;
}
.category-fieldset legend,
.field-block > span {
    margin-bottom: 0;
    color: var(--soft);
    font-size: .9rem;
    font-weight: 900;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.category-pill { min-width: 0; }
.category-pill input { position: absolute; opacity: 0; pointer-events: none; }
.category-pill span {
    min-height: 46px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.22);
    color: var(--soft);
    font-weight: 900;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.category-pill:hover span { transform: translateY(-1px); border-color: rgba(255,218,138,.38); }
.category-pill input:checked + span {
    color: #1b0d23;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold), var(--rose));
    box-shadow: 0 12px 30px rgba(255,95,184,.2);
}
.field-block { display: grid; gap: 8px; color: var(--soft); font-weight: 880; }
input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.135);
    border-radius: 19px;
    background: rgba(2, 1, 7, .54);
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
input,
select { min-height: 54px; padding: 0 16px; }
textarea { min-height: 164px; padding: 15px 16px; resize: vertical; line-height: 1.62; }
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(255,218,138,.64);
    background: rgba(5, 3, 13, .78);
    box-shadow: 0 0 0 4px rgba(255,218,138,.12), inset 0 1px 0 rgba(255,255,255,.055);
}
::placeholder { color: rgba(223,212,236,.46); }
.form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.char-counter { color: var(--dim); font-size: .84rem; font-weight: 850; white-space: nowrap; }

.btn {
    min-height: 52px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    font-weight: 950;
    letter-spacing: -.02em;
    transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-wide { width: 100%; }
.btn-primary {
    color: #1b0d23;
    background: linear-gradient(135deg, var(--gold), var(--rose) 56%, var(--cyan));
    box-shadow: 0 18px 46px rgba(255,95,184,.25);
}
.btn-soft,
.btn-ghost { color: var(--soft); background: rgba(255,255,255,.078); }
.btn-danger { color: #fff; background: rgba(255,98,123,.18); border-color: rgba(255,98,123,.34); }

.oracle-stage {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 14px 0 44px;
}
.portal,
.auth-art {
    position: relative;
    width: min(58vw, 370px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: -86px;
    z-index: 1;
}
.portal-ring { inset: 6%; animation: spin 26s linear infinite; }
.portal-ring-two { inset: 18%; opacity: .72; border-style: dashed; animation-direction: reverse; animation-duration: 18s; }
.portal-core { width: 122px; height: 122px; font-size: 2rem; }
.portal-open .portal-core { animation: pulseCore 1.75s ease-in-out infinite; }
.answer-card {
    width: min(780px, 100%);
    padding: clamp(26px, 4.6vw, 48px);
    text-align: center;
}
.answer-card h1 { margin: 14px 0 24px; font-size: clamp(2.3rem, 5vw, 4.15rem); }
.question-box {
    text-align: left;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    padding: 18px 18px;
    background: rgba(0,0,0,.25);
}
.question-box span,
.oracle-answer span,
.row-meta span,
.detail-meta span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .72rem;
    font-weight: 950;
}
.question-box p { margin: 9px 0 0; color: var(--soft); line-height: 1.68; }
.waiting-box,
.oracle-answer {
    margin-top: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    padding: 22px;
    background: rgba(255,255,255,.063);
}
.waiting-box strong { display: block; margin-top: 12px; font-size: 1.13rem; }
.waiting-box p { margin: 8px 0 0; color: var(--muted); line-height: 1.62; }
.ritual-loader {
    width: 58px;
    height: 58px;
    margin: 0 auto;
    position: relative;
}
.ritual-loader span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,218,138,.22);
    animation: ritual 1.45s ease-in-out infinite;
}
.ritual-loader span:nth-child(2) { animation-delay: .16s; }
.ritual-loader span:nth-child(3) { animation-delay: .32s; }
.ritual-loader span:nth-child(4) { animation-delay: .48s; }
@keyframes ritual { 0% { transform: scale(.38); opacity: .95; } 100% { transform: scale(1.25); opacity: 0; } }
.oracle-answer { text-align: left; background: rgba(255,218,138,.09); }
.oracle-answer p { margin: 10px 0 0; color: #fff0d4; font-size: 1.13rem; line-height: 1.74; }
.action-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.hidden { display: none !important; }

.auth-shell {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 26px 0 48px;
}
.auth-art { margin-bottom: -120px; opacity: .86; }
.auth-card,
.center-card {
    width: min(490px, 100%);
    padding: clamp(24px, 4vw, 38px);
}
.auth-card h1,
.center-card h1 { margin: 13px 0 9px; font-size: clamp(2.25rem, 5vw, 3.45rem); }
.center-shell { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 28px 0 48px; }
.center-card { text-align: center; }
.center-card .btn { margin-top: 8px; }

.admin-hero {
    padding: clamp(22px, 3.2vw, 35px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    margin-bottom: 18px;
}
.admin-hero h1 { margin: 12px 0 0; font-size: clamp(2.35rem, 4.5vw, 4.2rem); }
.admin-metrics { display: flex; gap: 10px; }
.admin-metrics div {
    min-width: 112px;
    padding: 16px 17px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(255,255,255,.062);
    text-align: center;
}
.admin-metrics strong { display: block; font-size: 1.92rem; line-height: 1; letter-spacing: -.06em; }
.admin-metrics span { display: block; margin-top: 8px; color: var(--muted); font-size: .75rem; font-weight: 950; text-transform: uppercase; letter-spacing: .13em; }
.admin-panel { padding: clamp(18px, 2.6vw, 29px); }
.toolbar { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 14px; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
    min-height: 43px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(255,255,255,.06);
    color: var(--soft);
    font-weight: 900;
}
.tab span {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: var(--gold);
    font-size: .76rem;
}
.tab.active { color: #1b0d23; background: linear-gradient(135deg, var(--gold), var(--rose)); border-color: transparent; }
.tab.active span { color: #1b0d23; background: rgba(255,255,255,.3); }
.search-form { display: flex; gap: 8px; }
.search-form input { min-height: 48px; }
.search-form .btn { min-height: 48px; }
.live-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}
.live-badge {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.055);
    color: var(--soft);
    font-size: .84rem;
    font-weight: 850;
}
.live-badge span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #8fffd6;
    box-shadow: 0 0 0 6px rgba(143,255,214,.1), 0 0 18px rgba(143,255,214,.55);
}
.live-badge strong { color: #dffdef; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.live-badge em { color: var(--muted); font-style: normal; }
.live-badge.is-syncing span { animation: livePulse 1s ease-in-out infinite; }
.live-badge.is-error { border-color: rgba(255,112,149,.28); background: rgba(255,112,149,.08); }
.live-badge.is-error span { background: #ff7095; box-shadow: 0 0 0 6px rgba(255,112,149,.11), 0 0 18px rgba(255,112,149,.5); }
.live-badge.has-new { border-color: rgba(255,218,138,.34); background: rgba(255,218,138,.1); }
.live-badge.has-new span { background: var(--gold); box-shadow: 0 0 0 6px rgba(255,218,138,.12), 0 0 18px rgba(255,218,138,.55); }
@keyframes livePulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.68); opacity: .58; } }
.question-list { display: grid; gap: 12px; }
.question-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.105);
    border-radius: 25px;
    background: rgba(0,0,0,.2);
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.question-row:hover { transform: translateY(-1px); border-color: rgba(255,218,138,.26); background: rgba(255,255,255,.055); }
.question-row.is-new {
    border-color: rgba(255,218,138,.42);
    background: rgba(255,218,138,.115);
    animation: newQuestionGlow 3.2s ease forwards;
}
@keyframes newQuestionGlow {
    0% { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(255,218,138,.18), inset 3px 0 0 rgba(255,218,138,.9); }
    100% { transform: translateY(0); box-shadow: inset 3px 0 0 rgba(255,218,138,.72); }
}
.status-pending { box-shadow: inset 3px 0 0 rgba(255,218,138,.72); }
.status-answered { box-shadow: inset 3px 0 0 rgba(143,255,214,.58); }
.status-archived { opacity: .78; }
.row-meta,
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.row-meta span,
.detail-meta span {
    color: var(--muted);
    border: 1px solid rgba(255,255,255,.095);
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(255,255,255,.048);
}
.question-row h3 { margin: 0 0 7px; font-size: 1.17rem; letter-spacing: -.038em; }
.question-row p { margin: 0; color: var(--muted); line-height: 1.56; }
.row-answer { margin-top: 11px; color: #ffe9bd; font-size: .94rem; line-height: 1.52; }
.row-actions { display: grid; justify-items: end; gap: 9px; }
.empty-state { text-align: center; padding: 50px 16px; color: var(--muted); }
.empty-state > span { display: block; color: var(--gold); font-size: 2rem; margin-bottom: 10px; }
.empty-state h2 { margin-bottom: 8px; color: var(--text); letter-spacing: -.04em; }

.question-detail-grid {
    display: grid;
    grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.question-detail-card,
.answer-editor { padding: clamp(20px, 3vw, 31px); }
.back-link { color: var(--soft); font-weight: 900; margin-bottom: 8px; display: inline-flex; }
.back-link:hover { color: var(--gold-2); }
.question-detail-card h1 { margin: 12px 0 15px; font-size: clamp(2rem, 3.2vw, 3.15rem); }
.answer-editor h2 { margin: 12px 0 7px; font-size: clamp(2.05rem, 3.6vw, 3.35rem); }
.admin-question-box,
.admin-answer-preview { margin-top: 16px; }
.admin-answer-preview { background: rgba(255,218,138,.08); }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.template-chip {
    min-height: 68px;
    padding: 13px 14px;
    border-radius: 19px;
    border: 1px solid rgba(255,255,255,.105);
    color: var(--soft);
    background: rgba(0,0,0,.22);
    text-align: left;
    line-height: 1.36;
    font-weight: 800;
}
.template-chip:hover { border-color: rgba(255,218,138,.34); background: rgba(255,255,255,.07); }
.answer-form { display: grid; gap: 16px; }
.answer-form textarea { min-height: 230px; }
.danger-zone {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.danger-zone form { margin: 0; }

@media (max-width: 1020px) {
    .home-hero { grid-template-columns: 1fr; align-items: start; min-height: auto; padding-top: 12px; }
    .hero-copy { text-align: center; margin-inline: auto; }
    .hero-copy p { margin-inline: auto; }
    .hero-notes { justify-content: center; }
    .oracle-panel { max-width: 560px; width: 100%; margin-inline: auto; }
    .admin-hero { grid-template-columns: 1fr; }
    .admin-metrics { justify-content: stretch; }
    .admin-metrics div { flex: 1 1 0; min-width: 0; }
    .toolbar { grid-template-columns: 1fr; }
    .question-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .topbar,
    .page-shell { width: min(100% - 24px, var(--max)); }
    .topbar { min-height: 62px; margin-top: 12px; padding: 8px; border-radius: 22px; }
    .brand-mark { width: 44px; height: 44px; border-radius: 16px; }
    .brand strong { font-size: 1rem; }
    .brand small { display: none; }
    .topnav a,
    .topnav button { min-height: 38px; padding: 0 12px; font-size: .9rem; }
    .page-shell { margin-top: 22px; padding-bottom: 28px; }
    .home-hero { gap: 22px; padding: 4px 0 26px; }
    .hero-copy h1 { margin: 14px 0 16px; font-size: clamp(2.72rem, 16vw, 4rem); letter-spacing: -.082em; }
    .hero-copy p { font-size: 1rem; line-height: 1.64; }
    .hero-notes { gap: 8px; margin-top: 18px; }
    .hero-notes span { min-height: 36px; padding: 0 12px; font-size: .84rem; }
    .oracle-panel,
    .answer-card,
    .auth-card,
    .admin-hero,
    .admin-panel,
    .question-detail-card,
    .answer-editor,
    .center-card { border-radius: 25px; }
    .oracle-panel { padding: 18px; }
    .oracle-aura { min-height: 148px; }
    .aura-core { width: 100px; height: 100px; font-size: 1.65rem; }
    .aura-ring-one { width: 140px; height: 140px; }
    .aura-ring-two { width: 174px; height: 174px; }
    .panel-title { align-items: flex-start; }
    .panel-title > span { width: 42px; height: 42px; border-radius: 15px; }
    .panel-title h2 { font-size: 1.46rem; }
    .category-grid { grid-template-columns: 1fr; gap: 8px; }
    .category-pill span { min-height: 42px; }
    input,
    select { min-height: 50px; border-radius: 16px; }
    textarea { min-height: 142px; border-radius: 16px; }
    .form-bottom { align-items: stretch; flex-direction: column; }
    .char-counter { order: 2; text-align: center; }
    .btn { min-height: 50px; width: 100%; }
    .portal { width: min(82vw, 300px); margin-bottom: -70px; }
    .portal-core { width: 98px; height: 98px; font-size: 1.62rem; }
    .answer-card { padding: 24px 18px; }
    .answer-card h1 { margin: 12px 0 18px; font-size: clamp(2.05rem, 12vw, 3rem); }
    .question-box,
    .waiting-box,
    .oracle-answer { border-radius: 20px; padding: 16px; }
    .auth-shell { padding-top: 8px; }
    .auth-art { width: min(78vw, 270px); margin-bottom: -92px; }
    .auth-card,
    .center-card { padding: 24px 18px; }
    .auth-card h1,
    .center-card h1 { font-size: clamp(2.05rem, 12vw, 3rem); }
    .admin-hero { padding: 22px 18px; }
    .admin-hero h1 { font-size: clamp(2.25rem, 13vw, 3.35rem); }
    .admin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .admin-metrics div { padding: 13px 8px; border-radius: 18px; }
    .admin-metrics strong { font-size: 1.5rem; }
    .admin-metrics span { font-size: .66rem; letter-spacing: .1em; }
    .admin-panel { padding: 16px; }
    .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tab { justify-content: center; padding: 0 10px; }
    .search-form { display: grid; grid-template-columns: 1fr; }
    .live-toolbar { justify-content: stretch; }
    .live-badge { width: 100%; justify-content: center; padding: 0 11px; }
    .live-badge em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .question-row { grid-template-columns: 1fr; padding: 16px; border-radius: 21px; }
    .row-actions { justify-items: stretch; }
    .template-grid { grid-template-columns: 1fr; }
    .answer-form textarea { min-height: 190px; }
    .danger-zone { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .topbar,
    .page-shell { width: min(100% - 18px, var(--max)); }
    .brand { gap: 9px; }
    .brand-mark { width: 40px; height: 40px; }
    .topnav { gap: 5px; }
    .topnav a,
    .topnav button { padding: 0 10px; font-size: .84rem; }
    .hero-copy h1 { font-size: 2.58rem; }
    .oracle-panel { padding: 15px; }
    .admin-metrics { grid-template-columns: 1fr; }
}
