/* Admin: calm, dense, functional. Same tokens as the site. */
body { background: var(--paper-2); }
.shell { display: grid; min-height: 100vh; }
@media (min-width: 960px) { .shell { grid-template-columns: 250px 1fr; } }
.side { background: var(--sheet); border-inline-end: 1px solid var(--line); padding: 16px; }
@media (min-width: 960px) { .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } .menu { display: none; } #nav { display: block !important; } }
@media (max-width: 959px) { #nav:not(.open) { display: none; } }
#nav a { display: block; padding: .38rem .6rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--t-sm); }
#nav a:hover, #nav a[aria-current] { background: var(--tint-blue); color: var(--ink); }
#nav .grp { margin: 1rem .6rem .3rem; font-size: var(--t-xs); color: var(--ink-3); font-weight: 700; }
.content { padding: clamp(16px, 3vw, 36px); max-width: 1180px; width: 100%; }
.content h1 { font-family: var(--f-body); font-size: var(--t-2xl); }
.content h2 { font-family: var(--f-body); font-size: var(--t-lg); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 2rem; }
.tile { display: grid; gap: .2rem; text-decoration: none; color: var(--ink); }
.tile strong { font: 700 2rem/1 var(--f-display); color: var(--blue); }
.tile span { font-size: var(--t-sm); color: var(--ink-2); }
.tbl { width: 100%; border-collapse: collapse; background: var(--sheet); border-radius: var(--r-md); overflow: hidden; font-size: var(--t-sm); }
.tbl td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.form-grid { display: grid; gap: .9rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.form-grid .field + .field { margin: 0; }
.form-grid > .field:has(textarea), .form-grid > .field:has(.kv), .form-grid > .field:has([data-packs]) { grid-column: 1 / -1; }
.field-row { align-self: end; padding-bottom: .7rem; }
.kv { display: grid; gap: .4rem; margin: .4rem 0; }
.pack-row { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-items: end; margin-bottom: .6rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.raw { white-space: pre-wrap; font-size: .75rem; background: var(--sheet); padding: 1rem; border-radius: var(--r-md); max-height: 60vh; overflow: auto; }
.req { margin-bottom: .8rem; }
.pages-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.shelf { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
body:not(.ready) .content { opacity: .4; }
