@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #071019;
  --bg-soft: #0b1724;
  --surface: rgba(15, 30, 45, .78);
  --surface-solid: #0f1e2d;
  --surface-2: #16283a;
  --text: #f4f8fb;
  --muted: #9fb2c4;
  --line: rgba(145, 190, 220, .18);
  --primary: #4a7eff;
  --primary-strong: #75a0ff;
  --green: #35f58a;
  --orange: #ff7a39;
  --yellow: #ffcf40;
  --danger: #ff6b78;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
  --radius: 22px;
  --font: 'Manrope', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --header-h: 76px;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #eef5f8;
  --bg-soft: #e6f0f4;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #fff;
  --surface-2: #eaf2f6;
  --text: #10202f;
  --muted: #5f7385;
  --line: rgba(31, 75, 104, .14);
  --primary: #245edb;
  --primary-strong: #1647b5;
  --shadow: 0 24px 70px rgba(31, 71, 95, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.65; overflow-x: hidden; isolation: isolate; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary-strong); text-underline-offset: .2em; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--yellow); color: #111; padding: .7rem 1rem; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; background-image: linear-gradient(rgba(74,126,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(74,126,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), #000 14%, #000 82%, rgba(0,0,0,.32)); }
.ambient canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .82; }
html[data-theme='light'] .ambient canvas { opacity: .62; }
.ambient i { position: absolute; width: 36vw; aspect-ratio: 1; border-radius: 50%; filter: blur(95px); opacity: .13; animation: drift 18s ease-in-out infinite alternate; }
.ambient i:nth-child(1) { background: var(--primary); left: -15vw; top: 5vh; }
.ambient i:nth-child(2) { background: var(--green); right: -18vw; top: 30vh; animation-delay: -6s; }
.ambient i:nth-child(3) { background: var(--orange); left: 34vw; bottom: -28vw; animation-delay: -11s; }
@keyframes drift { to { transform: translate3d(8vw, 5vh, 0) scale(1.18); } }

.site-header { height: var(--header-h); position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 2rem; padding: 0 clamp(1rem, 4vw, 4.5rem); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(20px); }
.version-notice { position: sticky; top: var(--header-h); z-index: 29; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(1rem, 4vw, 4.5rem); color: var(--text); background: color-mix(in srgb, var(--primary) 24%, var(--surface-solid)); border-bottom: 1px solid color-mix(in srgb, var(--primary) 55%, var(--line)); box-shadow: var(--shadow); }
.version-notice > div { display: flex; align-items: center; gap: .65rem; }
.version-notice > div > i { color: var(--green); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; flex: none; }
.brand img { filter: drop-shadow(0 7px 18px rgba(53,245,138,.16)); }
.brand span { display: grid; line-height: 1.12; }
.brand b { font-size: 1.05rem; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-family: var(--mono); font-size: .65rem; }
.main-nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9rem; padding: .7rem .85rem; border-radius: 12px; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }
.mobile-console { display: none; }
.header-actions { display: flex; align-items: center; gap: .45rem; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; display: inline-grid; place-items: center; cursor: pointer; color: var(--text); background: var(--surface); transition: transform .2s, border-color .2s; }
.icon-button:hover { transform: translateY(-2px); border-color: var(--primary); }
.nav-toggle { display: none; }

main { min-height: calc(100vh - var(--header-h) - 180px); }
.page-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3rem, 7vw, 7rem) 0; animation: reveal .5s both; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green); margin: 0 0 1rem; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.25rem; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 66ch; }
.button { border: 0; display: inline-flex; gap: .55rem; align-items: center; justify-content: center; min-height: 44px; padding: .72rem 1rem; border-radius: 13px; text-decoration: none; cursor: pointer; font-weight: 800; color: #fff; background: var(--primary); box-shadow: 0 10px 25px rgba(48, 104, 235, .22); transition: transform .2s, filter .2s; }
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button-quiet { color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.button-danger { background: var(--danger); }
.button-small { min-height: 36px; padding: .45rem .7rem; font-size: .85rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

.hero { min-height: min(800px, calc(100vh - var(--header-h))); position: relative; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 2%, color-mix(in srgb, var(--bg) 92%, transparent) 35%, color-mix(in srgb, var(--bg) 15%, transparent) 75%), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; opacity: .9; animation: hero-in 1.5s ease both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } }
.hero-content { width: min(1180px, calc(100% - 2rem)); margin: auto; padding: 6rem 0; }
.hero h1 { max-width: 10ch; }
.hero h1 span { display: block; color: transparent; background: linear-gradient(90deg, var(--green), #4bd6e8 45%, var(--primary-strong)); background-clip: text; }
.hero .lede { max-width: 48ch; }
.status-pill { display: inline-flex; gap: .55rem; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .45rem .8rem; color: var(--muted); font-family: var(--mono); font-size: .75rem; margin-bottom: 1.4rem; }
.status-pill i { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 0 rgba(53,245,138,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(53,245,138,0); } }
.orbit { position: absolute; width: clamp(260px, 34vw, 520px); aspect-ratio: 1; left: 4vw; bottom: -42%; border: 1px solid rgba(53,245,138,.22); border-radius: 50%; animation: rotate 22s linear infinite; pointer-events: none; }
.orbit::before { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); top: 13%; left: 12%; box-shadow: 0 0 22px var(--yellow); }
@keyframes rotate { to { transform: rotate(360deg); } }

.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(16px); border-radius: var(--radius); padding: 1.4rem; overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 60%, var(--line)); }
.card-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 2rem; color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface-2)); font-size: 1.15rem; }
.card p { color: var(--muted); }
.card a.stretched::after { content: ''; position: absolute; inset: 0; }
.tech-ticker { border-block: 1px solid var(--line); padding: .9rem 0; overflow: hidden; font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.tech-ticker div { display: inline-flex; gap: 3rem; min-width: max-content; animation: ticker 28s linear infinite; }
.tech-ticker span::before { content: '✦'; color: var(--orange); margin-right: 1rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 6vw, 6rem); }
.page-titlebar { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.page-titlebar h1 { margin-bottom: 0; }
.prose { font-size: 1.05rem; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { margin-top: 2.2em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose pre { overflow: auto; padding: 1rem; border-radius: 16px; background: #050c12; color: #dcecff; border: 1px solid var(--line); }
.prose code { font-family: var(--mono); font-size: .9em; }
.prose blockquote { margin-inline: 0; padding: .4rem 1.2rem; border-left: 3px solid var(--green); background: color-mix(in srgb, var(--green) 6%, transparent); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { padding: .7rem; border: 1px solid var(--line); text-align: left; }
.prose img { display: block; width: auto; max-width: 100%; height: auto; margin: 1.5rem auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.page-meta { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.page-meta .card { padding: 1rem; }

.login-shell { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 2rem; position: relative; overflow: hidden; }
.login-panel { width: min(100%, 460px); text-align: center; padding: clamp(1.8rem, 6vw, 3.5rem); border: 1px solid var(--line); border-radius: 30px; background: var(--surface); backdrop-filter: blur(22px); box-shadow: var(--shadow); position: relative; z-index: 2; }
.login-panel .brand-orbit { width: 118px; height: 118px; margin: 0 auto 1.5rem; position: relative; }
.login-panel .brand-orbit img { width: 100%; animation: breathe 4s ease-in-out infinite; }
.login-panel .brand-orbit::after { content: ''; position: absolute; inset: -15px; border: 1px dashed var(--green); border-radius: 50%; animation: rotate 12s linear infinite; }
@keyframes breathe { 50% { transform: scale(1.04); filter: drop-shadow(0 0 24px rgba(53,245,138,.23)); } }
.login-panel h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
.login-panel .button { width: 100%; margin-top: 1rem; }
.login-bits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.login-bits i { position: absolute; color: var(--primary); font-family: var(--mono); opacity: .18; animation: fall 9s linear infinite; }
.login-bits i:nth-child(2n) { color: var(--green); animation-duration: 12s; }
@keyframes fall { from { transform: translateY(-15vh) rotate(0); } to { transform: translateY(115vh) rotate(180deg); } }

.admin-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.admin-sidebar { padding: 1rem; border-right: 1px solid var(--line); background: var(--surface); }
.admin-sidebar nav { display: grid; gap: .35rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.admin-sidebar a { display: flex; align-items: center; gap: .7rem; padding: .75rem; color: var(--muted); text-decoration: none; border-radius: 12px; font-weight: 700; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--text); background: var(--surface-2); }
.admin-main { padding: clamp(1rem, 4vw, 3rem); min-width: 0; }
.admin-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-topline h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 700px; }
.data-table th, .data-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .actions { position: sticky; right: 0; background: var(--surface-solid); box-shadow: -12px 0 20px color-mix(in srgb, var(--bg) 50%, transparent); }
.truncate { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.truncate:focus, .truncate:hover { white-space: normal; overflow: visible; }
.badge { display: inline-flex; padding: .28rem .55rem; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-family: var(--mono); }
.badge-published { color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface-2)); }
.badge-draft { color: var(--yellow); }
.badge-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface-2)); }

.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.field { grid-column: span 6; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field-third { grid-column: span 4; }
.field label { display: block; font-weight: 800; margin-bottom: .4rem; }
.field input, .field textarea, .field select { width: 100%; color: var(--text); background: var(--surface-solid); border: 1px solid var(--line); border-radius: 12px; padding: .78rem .85rem; }
.field textarea { resize: vertical; min-height: 110px; }
.field .editor { min-height: 420px; font: .9rem/1.65 var(--mono); tab-size: 2; }
.field-help { display: flex; align-items: start; gap: .45rem; color: var(--muted); font-size: .78rem; margin: .45rem 0 0; }
.field-help a { margin-left: auto; }
.switch-field { display: flex; align-items: center; gap: .7rem; min-height: 46px; }
.editor-tabs { display: flex; gap: .4rem; margin-bottom: .6rem; }
.editor-preview { min-height: 420px; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; background: var(--surface-solid); }
.hidden { display: none !important; }

.image-picker { border: 1px dashed color-mix(in srgb, var(--primary) 55%, var(--line)); border-radius: 18px; padding: 1rem; background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }
.picker-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.picker-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; margin-top: 1rem; }
.preview-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item button { position: absolute; top: .35rem; right: .35rem; width: 32px; height: 32px; border: 0; border-radius: 50%; color: white; background: rgba(5,10,15,.82); cursor: pointer; }
.media-search { width: min(100%, 620px); margin-bottom: 1.25rem; }
.media-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 1rem; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.media-preview { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); color: var(--muted); text-decoration: none; }
.media-preview > img { width: 100%; height: 100%; object-fit: contain; }
.media-file-icon { width: 100%; display: grid; place-items: center; gap: .7rem; padding: 1rem; }
.media-file-icon > i { font-size: 2.2rem; color: var(--orange); }
.media-storage-error { color: var(--danger); text-align: center; }
.media-file-icon audio { width: 100%; max-width: 280px; }
.media-card-body { display: grid; gap: .55rem; padding: .9rem; }
.media-card-body small { color: var(--muted); }
.media-card-body code { padding: .45rem; overflow-wrap: anywhere; border-radius: 8px; background: var(--surface-2); font-size: .72rem; }
.role-grid { display: grid; grid-template-columns: minmax(210px, .7fr) 1.5fr; gap: 1rem; }
.role-list { display: grid; gap: .5rem; }
.role-item { text-align: left; border: 1px solid var(--line); border-radius: 13px; padding: .8rem; background: var(--surface); color: var(--text); cursor: pointer; }
.role-item.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.check-row { display: flex; gap: .6rem; align-items: start; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; }
.check-row small { display: block; color: var(--muted); }
.audit-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.audit-filter .field { grid-column: auto; }
.audit-filter .button-row { grid-column: 1 / -1; }
.audit-table { min-width: 1100px; }
.audit-table details { max-width: 360px; }
.audit-table summary { cursor: pointer; color: var(--primary-strong); }
.audit-table pre { max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: .6rem; border-radius: 9px; background: var(--bg); color: var(--text); font: .72rem/1.5 var(--mono); }
.audit-table tr.audit-error td { background: color-mix(in srgb, var(--danger) 5%, var(--surface-solid)); }
.audit-request { border: 0; padding: 0; color: var(--primary-strong); background: transparent; cursor: pointer; }
.audit-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; color: var(--muted); }

.empty-state, .error-state { padding: 4rem 1.5rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state i, .error-state i { display: block; font-size: 2rem; color: var(--orange); margin-bottom: 1rem; }
.route-loading { min-height: 60vh; display: flex; align-items: center; justify-content: center; gap: .35rem; color: var(--muted); }
.route-loading span { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: dots .8s ease-in-out infinite alternate; }
.route-loading span:nth-child(2) { animation-delay: .2s; background: var(--orange); }
.route-loading span:nth-child(3) { animation-delay: .4s; background: var(--primary); }
.route-loading em { font: normal .75rem var(--mono); margin-left: .6rem; }
@keyframes dots { to { transform: translateY(-8px); } }
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; display: grid; gap: .6rem; }
.toast { max-width: 380px; padding: .85rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; background: var(--surface-solid); box-shadow: var(--shadow); animation: reveal .25s both; }
.toast.error { border-left-color: var(--danger); }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem clamp(1rem, 4vw, 4.5rem); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 3rem; color: var(--muted); }
.site-footer > div { display: flex; align-items: center; gap: .7rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1rem; }
.site-footer a { color: var(--muted); }
.copyright { grid-column: 1 / -1; font-family: var(--mono); font-size: .72rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .main-nav { display: none; position: absolute; top: calc(100% + .5rem); left: 1rem; right: 1rem; flex-direction: column; align-items: stretch; padding: .6rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-solid); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .admin-link span { display: none; }
  .hero::after { background: linear-gradient(90deg, var(--bg), color-mix(in srgb, var(--bg) 72%, transparent)), linear-gradient(0deg, var(--bg), transparent 55%); }
  .hero-media { object-position: 62% center; opacity: .65; }
  .grid-3 { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .page-meta { position: static; }
  .page-titlebar { align-items: center; }
  .admin-shell { grid-template-columns: 72px minmax(0, 1fr); }
  .admin-sidebar a span { display: none; }
  .admin-sidebar a { justify-content: center; }
  .role-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .version-notice { position: static; align-items: stretch; flex-direction: column; }
  .page-titlebar { display: grid; }
  .site-header { gap: .5rem; padding-inline: .75rem; }
  .brand small { display: none; }
  .brand img { width: 40px; height: 40px; }
  .header-actions { margin-left: auto; }
  .admin-link { display: none; }
  .main-nav .mobile-console { display: block; }
  .page-shell { width: min(100% - 1.2rem, 1180px); }
  .hero-content { width: min(100% - 1.2rem, 1180px); }
  .hero-content, .hero .lede { min-width: 0; max-width: calc(100vw - 1.2rem); overflow-wrap: anywhere; }
  .hero-media { object-position: 68%; }
  .hero h1 { font-size: clamp(2.5rem, 15vw, 4.3rem); }
  .section-heading { align-items: start; flex-direction: column; }
  .field, .field-third { grid-column: 1 / -1; }
  .audit-filter { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .admin-shell { display: block; }
  .admin-sidebar { position: sticky; top: var(--header-h); z-index: 20; border-right: 0; border-bottom: 1px solid var(--line); padding: .4rem; overflow-x: auto; }
  .admin-sidebar nav { display: flex; position: static; min-width: max-content; }
  .admin-main { padding: 1rem .6rem 2rem; }
  .admin-topline { align-items: start; flex-direction: column; }
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  table.data-table, .data-table tbody, .data-table tr, .data-table td { display: block; min-width: 0; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tr { border: 1px solid var(--line); border-radius: 16px; margin-bottom: .8rem; background: var(--surface); overflow: hidden; }
  .data-table td { border-bottom: 1px solid var(--line); padding-left: 42%; position: relative; min-height: 45px; }
  .data-table td::before { content: attr(data-label); position: absolute; left: .8rem; width: 36%; color: var(--muted); font-size: .7rem; text-transform: uppercase; }
  .data-table .actions { position: static; padding-left: .8rem; box-shadow: none; }
  .data-table .actions::before { display: none; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; }
  .toast-region { left: .6rem; right: .6rem; bottom: .6rem; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .ambient canvas { opacity: .48; }
}
