/* Oxmaint Community – UI */
:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f0f3f8;
    --border: #e2e7ef;
    --text: #172033;
    --muted: #64708a;
    --primary: #1f6feb;
    --primary-600: #1859c4;
    --primary-soft: #e8f0fe;
    --success: #12805c;
    --success-soft: #e3f6ee;
    --warning: #a15c00;
    --warning-soft: #fff4e0;
    --danger: #c43d3d;
    --danger-soft: #fdeaea;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e131c; --surface: #161d2a; --surface-2: #1d2636; --border: #2a3447;
        --text: #e6ebf4; --muted: #95a1b8; --primary: #5b9bff; --primary-600: #7aafff; --primary-soft: #1b2a44;
        --success: #4cc79a; --success-soft: #133328; --warning: #f0b65a; --warning-soft: #3a2c14;
        --danger: #ff7b7b; --danger-soft: #3a1b1d;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.d-block { display: block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; }
.header-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.header-search input { border: 0; background: transparent; padding: 9px 0; width: 100%; font: inherit; color: var(--text); outline: none; }
.header-search:focus-within { border-color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.main-nav > a:not(.btn) { color: var(--text); font-weight: 500; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

.user-menu { position: relative; }
.user-menu-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; color: var(--text); font: inherit; padding: 4px; border-radius: 8px; }
.user-menu-btn:hover { background: var(--surface-2); }
.user-menu-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.user-menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); padding: 6px; }
.user-menu-list a, .user-menu-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.user-menu-list a:hover, .user-menu-list button:hover { background: var(--surface-2); text-decoration: none; }
.user-menu-list form { margin: 0; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }

.site-main { flex: 1; padding: 24px 0 48px; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 20px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn-sm { padding: 6px 12px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .875rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--primary); }
.link-btn.danger:hover { color: var(--danger); }

/* Cards & layout */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card-title { font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.profile-layout { grid-template-columns: 300px minmax(0, 1fr); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-info { background: var(--primary-soft); color: var(--primary); }
.alert-error { background: var(--danger-soft); color: var(--danger); }

/* Hero */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; margin-bottom: 24px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #1f6feb 0%, #3b4fd8 55%, #6a3fd1 100%); }
.hero h1 { font-size: 1.9rem; }
.hero p { opacity: .92; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero .btn-primary { background: #fff; color: #1f3fbf; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.hero-stats { display: flex; gap: 12px; margin: 0; }
.hero-stats div { background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 12px 18px; text-align: center; min-width: 96px; }
.hero-stats dt { font-size: .8rem; opacity: .85; }
.hero-stats dd { margin: 0; font-size: 1.4rem; font-weight: 700; }

/* Lists */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.list-head h2 { margin: 0; display: flex; gap: 10px; align-items: baseline; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.list-head .tabs { margin-bottom: 0; }
.tab { padding: 6px 12px; border-radius: 7px; color: var(--muted); font-size: .875rem; font-weight: 500; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.question-list { list-style: none; margin: 0; padding: 0; }
.question-card { display: flex; gap: 20px; padding: 18px 20px; margin-bottom: 12px; }
.qc-stats { display: flex; flex-direction: column; gap: 6px; min-width: 84px; font-size: .8rem; text-align: right; }
.qc-stat strong { font-size: 1rem; }
.qc-stat.has-answers { color: var(--success); background: var(--success-soft); border-radius: 8px; padding: 2px 8px; text-align: center; }
.qc-main { min-width: 0; flex: 1; }
.qc-main h3 { margin-bottom: 4px; }
.qc-main h3 a { color: var(--text); }
.qc-main h3 a:hover { color: var(--primary); }
.qc-main p { margin-bottom: 8px; font-size: .92rem; overflow-wrap: anywhere; }
.qc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.author { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.author:hover { text-decoration: none; color: var(--primary); }

.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--primary-soft); color: var(--primary); }
.tag:hover { text-decoration: none; }
.tag-admin { background: #ede7fe; color: #6a3fd1; }
.tag-approved { background: var(--success-soft); color: var(--success); }
.tag-pending { background: var(--warning-soft); color: var(--warning); }
.tag-rejected { background: var(--danger-soft); color: var(--danger); }
.pill { display: inline-block; min-width: 20px; padding: 0 7px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 18px; }

.cat-list, .people-list, .link-list, .activity-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: .92rem; }
.cat-list a:hover { background: var(--surface-2); text-decoration: none; }
.cat-list a.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.count { color: var(--muted); font-size: .8rem; }
.people-list li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.link-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.link-list li:last-child { border-bottom: 0; }
.activity-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.activity-list li:last-child { border-bottom: 0; }
.activity-list p { margin: 2px 0 0; }
.tips ul { padding-left: 18px; margin: 0; }
.tips li { margin-bottom: 6px; font-size: .92rem; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.page-num, .page-btn { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 500; font-size: .9rem; }
.page-num:hover, .page-btn:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.page-num.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.is-disabled { opacity: .45; pointer-events: none; }
.page-gap { padding: 0 4px; color: var(--muted); }
.page-info { flex-basis: 100%; text-align: center; margin-top: 4px; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.input-prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); color: var(--muted); font-size: .85rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.input-prefix input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.empty-state { text-align: center; padding: 40px 20px; }
.breadcrumbs { font-size: .875rem; margin-bottom: 10px; color: var(--muted); }

/* Avatars */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; vertical-align: middle; }
.avatar-initials { display: inline-grid; place-items: center; width: var(--s); height: var(--s); font-size: calc(var(--s) * .4); font-weight: 700; color: #fff; background: hsl(var(--h) 55% 48%); }

/* Question & answers */
.question-full h1 { font-size: 1.5rem; overflow-wrap: anywhere; }
.question-body { margin: 16px 0; overflow-wrap: anywhere; }
.answers { margin-bottom: 16px; }
.answer { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.answer.is-reply { background: transparent; border: 0; border-left: 2px solid var(--border); border-radius: 0; box-shadow: none; padding: 10px 0 4px 14px; margin: 8px 0 0; }
.answer.is-pending > .answer-main > .answer-body { opacity: .75; }
.answer:target { outline: 2px solid var(--primary); outline-offset: 2px; }
.answer-vote { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 36px; }
.vote-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.vote-btn:hover:not([disabled]) { border-color: var(--primary); color: var(--primary); }
.vote-btn.is-voted { background: var(--primary); border-color: var(--primary); color: #fff; }
.vote-btn[disabled] { cursor: not-allowed; opacity: .55; }
.vote-count { font-weight: 700; font-size: .95rem; }
.answer-main { flex: 1; min-width: 0; }
.answer-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.answer-body { overflow-wrap: anywhere; }
.answer-actions { display: flex; gap: 16px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.answer-actions form { margin: 0; }
.replies { margin-top: 6px; }
.replies.is-collapsed { display: none; }
.replies .replies .replies .replies .answer.is-reply { padding-left: 8px; } /* keep deep threads readable */
.pending-note { background: var(--warning-soft); color: var(--warning); border-radius: 8px; padding: 6px 10px; font-size: .85rem; margin-bottom: 8px; }
.reply-form, .edit-form { margin-top: 10px; }
.answer-form-card textarea { min-height: 140px; }
.login-prompt { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.login-prompt p { margin: 0; flex: 1; min-width: 220px; }
.empty-answers { padding: 8px 0 16px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .9rem; }
.field > span { color: var(--text); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field-error { color: var(--danger); font-size: .82rem; font-weight: 500; margin: 0; }
.hint { color: var(--muted); font-size: .8rem; font-weight: 400; margin: 0; }
.form-message { margin: 0; font-size: .88rem; }
.form-message.is-error { color: var(--danger); }
.form-message.is-success { color: var(--success); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { margin-top: 4px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-card h1 { margin-bottom: 16px; }
.form-section { font-size: 1rem; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.narrow-center { max-width: 760px; margin: 0 auto; }
.avatar-edit { display: flex; gap: 16px; align-items: center; }

.auth-wrap { display: flex; justify-content: center; padding: 16px 0; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; }
.auth-card.wide { max-width: 720px; }
.auth-switch { text-align: center; margin: 16px 0 0; font-size: .92rem; }

/* Profile */
.profile-card { text-align: center; }
.profile-avatar { margin-bottom: 10px; }
.profile-card h1 { font-size: 1.35rem; margin-bottom: 2px; }
.profile-title { font-weight: 500; }
.profile-facts { text-align: left; margin: 16px 0; border-top: 1px solid var(--border); padding-top: 12px; }
.profile-facts div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: .9rem; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; text-align: right; }
.profile-links { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; }
.badge { display: inline-block; margin: 6px 0; padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.badge-new { background: var(--surface-2); color: var(--muted); }
.badge-bronze { background: #f6e3d3; color: #8a4b1c; }
.badge-silver { background: #e7ebf0; color: #4a5568; }
.badge-gold { background: #fff1c2; color: #8a6200; }
.badge-platinum { background: #dff3f6; color: #13707f; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 4px; }
.stat { display: flex; flex-direction: column; padding: 16px; color: inherit; }
a.stat:hover { text-decoration: none; border-color: var(--warning); }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-warn .stat-value { color: var(--warning); }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { position: sticky; top: 80px; padding: 14px; }
.admin-nav nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .92rem; }
.admin-nav a:hover { background: var(--surface-2); text-decoration: none; }
.admin-nav a.is-active { background: var(--primary-soft); color: var(--primary); }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px; }
.filters input[type=search], .filters input[name=name] { flex: 1; min-width: 200px; width: auto; }
.filters select { width: auto; }
.bulk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; }
.mod-item { border-left: 4px solid var(--border); }
.mod-item.status-pending { border-left-color: var(--warning); }
.mod-item.status-approved { border-left-color: var(--success); }
.mod-item.status-rejected { border-left-color: var(--danger); }
.mod-head { display: flex; gap: 12px; align-items: flex-start; }
.mod-head > div { flex: 1; min-width: 0; }
.mod-head input { margin-top: 5px; }
.mod-body { margin: 10px 0; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; overflow-wrap: anywhere; }
.mod-actions, .row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.row-actions input { width: auto; }
.reason { color: var(--warning); }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.radio-card { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.provider { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.provider.is-enabled { border-color: var(--primary); }
.provider-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.switch { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.switch input { width: 18px; height: 18px; }
.priority { display: flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); }
.priority input { width: 64px !important; padding: 4px 8px !important; }
.provider-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 14px 0; border-top: 1px solid var(--border); margin-top: 8px; }
.test-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 6px 0 10px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), #6a3fd1); border-radius: 999px; transition: width .4s ease; }
.form-actions form { margin: 0; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; flex-wrap: wrap; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .85rem; font-weight: 500; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--border); color: var(--text); font-size: .75rem; font-weight: 700; }
.steps li.is-done { color: var(--success); }
.steps li.is-done::before { content: "✓"; background: var(--success); color: #fff; }
.steps li.is-current { background: var(--primary-soft); color: var(--primary); }
.steps li.is-current::before { background: var(--primary); color: #fff; }
.col-list { list-style: none; padding: 0; margin: 0; }
.col-list li { padding: 4px 0; }
.radio-cards.two { grid-template-columns: 1fr 1fr; }
.radio-card.is-disabled { opacity: .55; cursor: not-allowed; }
.member-count { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .9rem; }
.member-count input { width: 80px !important; padding: 6px 8px !important; }
.table.small th, .table.small td { padding: 8px 10px; white-space: nowrap; }
@media (max-width: 720px) { .radio-cards.two { grid-template-columns: 1fr; } }
.code-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: .8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 6px 0 14px; }
.stat-value.small-value { font-size: 1rem; line-height: 1.6; }
.tag-ai { background: linear-gradient(90deg, #1f6feb, #6a3fd1); color: #fff; }
.tag-ai-soft { background: var(--surface-2); color: var(--muted); font-weight: 500; }
.ai-note { font-size: .8rem; color: var(--muted); border-left: 3px solid #6a3fd1; padding: 2px 0 2px 8px; margin: 8px 0 0; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: .85em; }

/* Responsive */
@media (max-width: 960px) {
    .layout, .profile-layout, .admin-layout { grid-template-columns: 1fr; }
    .admin-nav { position: static; }
    .admin-nav nav { flex-direction: row; flex-wrap: wrap; }
    .hero { flex-direction: column; align-items: flex-start; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .radio-cards, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
    .header-search { order: 3; max-width: none; flex-basis: 100%; }
    .nav-toggle { display: block; }
    .main-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; order: 4; }
    .main-nav.is-open { display: flex; }
    .user-menu-list { position: static; box-shadow: none; margin-top: 6px; }
    .form-grid { grid-template-columns: 1fr; }
    .question-card { flex-direction: column; gap: 8px; }
    .qc-stats { flex-direction: row; text-align: left; min-width: 0; }
    .hero { padding: 22px; }
    .hero-stats { flex-wrap: wrap; }
    .auth-card { padding: 22px; }
    .provider-grid { grid-template-columns: 1fr; }
}
