:root {
  --ink: #333333;
  --pine: #221715;
  --pine-soft: #493a37;
  --paper: #f7f7f7;
  --paper-strong: #ffffff;
  --acid: #fcc800;
  --muted: #666666;
  --line: #e1dedb;
  --n: #f2685c;
  --m: #fcc800;
  --b: #337ab7;
  --c: #715450;
  --z: #6d4c9d;
  color-scheme: light;
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 980px; min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 72% -14%, rgba(252,200,0,.12), transparent 34rem), var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(51,122,183,.3); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Songti SC", "STSong", serif; letter-spacing: -.055em; }

.ledger-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image: linear-gradient(rgba(34,23,21,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(34,23,21,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.overline { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.button { min-height: 44px; padding: 0 17px; border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(1.02); }
.button:active { transform: translateY(0) scale(.98); }
.button[disabled] { opacity: .55; cursor: wait; transform: none; }
.button.primary { color: var(--acid); background: var(--pine); box-shadow: 0 10px 24px rgba(34,23,21,.18); }
.button.dark { color: white; background: var(--pine); }
.button.acid { color: var(--pine); background: var(--acid); box-shadow: inset 0 0 0 1px rgba(34,23,21,.1); }
.button.quiet { color: var(--ink); background: #eeeeee; }
.button.danger { margin-right: auto; color: #a63f36; background: #fde9e7; }
.button.wide { width: 100%; }
.form-error { min-height: 20px; color: #b54b42; font-size: 12px; line-height: 1.55; }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 40px; }
.admin-login::before { content: ""; position: fixed; inset: 0 50% 0 0; z-index: -2; background: var(--pine); clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.admin-login::after { content: "N  M  B  C"; position: fixed; left: 4vw; bottom: 4vh; z-index: -1; color: rgba(252,200,0,.09); font-family: "DIN Alternate", sans-serif; font-size: clamp(70px, 9vw, 150px); font-weight: 900; letter-spacing: -.05em; }
.admin-login-card { width: min(440px, calc(100vw - 80px)); margin-left: 30%; padding: 42px; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: rgba(255,255,255,.95); box-shadow: 0 34px 90px rgba(34,23,21,.22); backdrop-filter: blur(20px); animation: card-enter .5s cubic-bezier(.2,.8,.2,1) both; }
.login-back { display: inline-block; margin-bottom: 34px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.admin-seal { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 24px; transform: rotate(-3deg); border: 2px solid var(--pine); border-radius: 22px 8px 22px 8px; color: var(--pine); }
.admin-seal span { font-family: "DIN Alternate", sans-serif; font-size: 27px; font-weight: 900; line-height: 1; }
.admin-seal i { margin-top: -10px; font-family: "Songti SC", serif; font-size: 12px; font-style: normal; }
.admin-login-card h1 { margin: 7px 0 11px; font-size: 46px; }
.login-description { color: var(--muted); font-size: 14px; }
.admin-login-form { display: grid; gap: 10px; margin-top: 31px; }
.admin-login-form label, .range-panel label span, .record-filters label span, .password-form label span, .dialog-fields label span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.admin-login-form input, .range-panel input, .record-filters input, .record-filters select, .batch-field input, .batch-field select, .password-form input, .password-form select, .dialog-fields input, .dialog-fields select {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white;
}
.admin-login-form input, .password-form input, .password-form select { padding: 0 14px; }
.admin-login-form .remember-device { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; letter-spacing: 0; cursor: pointer; }
.admin-login-form .remember-device input { flex: none; width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--pine); cursor: pointer; }
.admin-login-form .remember-device span { display: grid; gap: 1px; }
.admin-login-form .remember-device small { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 228px; display: flex; flex-direction: column; padding: 26px 20px; color: #ffffff; background: var(--pine); }
.sidebar::after { content: ""; position: absolute; right: 0; top: 0; width: 4px; height: 100%; background: linear-gradient(var(--n) 0 25%, var(--m) 25% 50%, var(--b) 50% 75%, var(--c) 75%); }
.admin-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-emblem { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(252,200,0,.5); border-radius: 14px; color: var(--acid); font-family: "DIN Alternate", sans-serif; font-size: 24px; font-weight: 900; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { font-family: "Songti SC", serif; font-size: 17px; }
.admin-brand small { margin-top: 3px; color: rgba(255,255,255,.46); font-size: 8px; letter-spacing: .2em; }
.side-nav { display: grid; gap: 7px; margin-top: 64px; }
.side-nav a { display: grid; grid-template-columns: 28px 1fr; align-items: center; min-height: 47px; padding: 0 13px; border-radius: 13px; color: rgba(255,255,255,.64); font-size: 13px; font-weight: 700; text-decoration: none; transition: color .18s ease, background .18s ease; }
.side-nav a span { color: rgba(252,200,0,.46); font-family: "DIN Alternate", sans-serif; font-size: 10px; }
.side-nav a:hover, .side-nav a.active { color: var(--pine); background: var(--acid); }
.side-nav a:hover span, .side-nav a.active span { color: var(--pine); }
.sidebar-foot { display: grid; gap: 10px; margin-top: auto; }
.sidebar-foot a, .sidebar-foot button { min-height: 40px; padding: 0 11px; border: 1px solid rgba(255,255,255,.11); border-radius: 11px; color: rgba(255,255,255,.68); background: transparent; font-size: 11px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.sidebar-foot a { display: flex; align-items: center; }

.admin-main { grid-column: 2; width: min(100% - 64px, 1380px); margin: 0 auto; padding: 38px 0 70px; }
.admin-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.admin-header h1 { margin-top: 5px; font-size: 41px; }
.header-status { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.56); font-size: 11px; }
.header-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(252,200,0,.16); }

.range-panel { display: grid; grid-template-columns: minmax(138px, .8fr) minmax(230px, 1fr) 150px 20px 150px auto auto; align-items: end; gap: 10px; padding: 18px; border-radius: 20px; color: #ffffff; background: var(--pine); box-shadow: 0 20px 50px rgba(34,23,21,.18); }
.range-panel h2 { margin-top: 4px; font-size: 24px; }
.range-panel .overline, .range-panel label span { color: rgba(255,255,255,.5); }
.range-panel label { display: grid; gap: 6px; }
.range-panel input { padding: 0 10px; border-color: rgba(255,255,255,.11); color: white; background: rgba(255,255,255,.08); color-scheme: dark; font-family: "DIN Alternate", sans-serif; font-size: 13px; }
.range-arrow { align-self: center; color: rgba(255,255,255,.34); text-align: center; }
.range-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.range-shortcuts button { min-height: 35px; padding: 0 7px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; color: rgba(255,255,255,.64); background: rgba(255,255,255,.06); font-size: 10px; font-weight: 700; cursor: pointer; }
.range-shortcuts button:hover { color: var(--pine); background: var(--acid); }

.metric-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.metric-card { position: relative; min-height: 158px; padding: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.92); border-radius: 19px; background: rgba(255,255,255,.82); box-shadow: 0 10px 28px rgba(34,23,21,.065); }
.metric-card::after { content: ""; position: absolute; right: -26px; bottom: -34px; width: 95px; height: 95px; border: 18px solid rgba(34,23,21,.035); border-radius: 50%; }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; margin: 16px 0 8px; font-family: "DIN Alternate", "Avenir Next Condensed", sans-serif; font-size: 48px; line-height: .85; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.total-card { color: var(--acid); background: var(--pine-soft); border-color: transparent; }
.total-card span, .total-card small { color: rgba(255,255,255,.58); }
.alert-card strong { color: var(--n); }

.category-board, .chart-panel, .records-board, .security-panel { margin-top: 14px; padding: 22px; border: 1px solid rgba(255,255,255,.9); border-radius: 20px; background: rgba(255,255,255,.84); box-shadow: 0 10px 30px rgba(34,23,21,.06); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-title h2 { margin-top: 3px; font-size: 25px; }
.section-title > p { color: var(--muted); font-size: 10px; }
.category-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.category-stat { position: relative; min-height: 126px; padding: 16px; overflow: hidden; border-radius: 16px; color: white; }
.category-stat.N, .category-stat.M { color: var(--ink); }
.category-stat.N { background: var(--n); }.category-stat.M { background: var(--m); }.category-stat.B { background: var(--b); }.category-stat.C { background: var(--c); }.category-stat.Z { background: var(--z); }
.category-stat b { display: block; font-family: "DIN Alternate", sans-serif; font-size: 27px; }
.category-stat strong { position: absolute; right: 15px; top: 12px; font-family: "DIN Alternate", sans-serif; font-size: 40px; }
.category-stat span { position: absolute; left: 16px; right: 14px; bottom: 13px; font-size: 10px; font-weight: 700; line-height: 1.4; opacity: .78; }

.category-donut { min-height: 300px; padding-top: 7px; border-top: 1px solid var(--line); }
.donut-layout { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(330px, 1.1fr); align-items: center; gap: clamp(28px, 6vw, 88px); padding: 18px clamp(12px, 3vw, 42px) 5px; }
.donut-visual { position: relative; width: min(100%, 330px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.donut-visual::before, .donut-visual::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.donut-visual::before { inset: 2%; border: 1px dashed rgba(34,23,21,.14); animation: orbit-turn 36s linear infinite; }
.donut-visual::after { inset: 18%; background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.99), rgba(247,247,247,.86)); box-shadow: 0 20px 55px rgba(34,23,21,.12), inset 0 0 0 1px rgba(255,255,255,.94); }
.donut-visual svg { position: relative; z-index: 2; width: 88%; height: 88%; overflow: visible; filter: drop-shadow(0 12px 16px rgba(34,23,21,.11)); transform: rotate(-90deg); }
.donut-track, .donut-segment { fill: none; stroke-width: 31; }
.donut-track { stroke: #e6e4e3; }
.donut-segment { cursor: pointer; transform-origin: 120px 120px; transition: opacity .22s ease, stroke-width .22s ease, filter .22s ease; animation: donut-reveal .65s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--segment-delay); }
.donut-segment.active { stroke-width: 37; filter: drop-shadow(0 5px 5px rgba(34,23,21,.18)); }
.donut-segment.muted { opacity: .2; }
.donut-center { position: absolute; z-index: 3; width: 42%; display: grid; justify-items: center; text-align: center; pointer-events: none; }
.donut-center span, .donut-center small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.donut-center strong { margin: 7px 0 5px; font-family: "DIN Alternate", "Avenir Next Condensed", sans-serif; font-size: clamp(48px, 5vw, 68px); line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.donut-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.donut-details-intro { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4px; }
.donut-details-intro strong { font-family: "Songti SC", serif; font-size: 18px; }
.donut-details-intro span { color: var(--muted); font-family: "DIN Alternate", sans-serif; font-size: 9px; }
.donut-detail { position: relative; min-height: 116px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr 4px; gap: 5px 10px; padding: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); cursor: default; transition: transform .2s ease, opacity .2s ease, border-color .2s ease, box-shadow .2s ease; }
.donut-detail::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--category-color); }
.donut-detail.N { --category-color: var(--n); }.donut-detail.M { --category-color: var(--m); }.donut-detail.B { --category-color: var(--b); }.donut-detail.C { --category-color: var(--c); }.donut-detail.Z { --category-color: var(--z); }
.donut-detail:hover, .donut-detail:focus-visible, .donut-detail.active { transform: translateY(-2px); border-color: var(--category-color); box-shadow: 0 10px 25px rgba(34,23,21,.09); outline: none; }
.donut-detail.muted { opacity: .38; }
.donut-identity { min-width: 0; display: flex; align-items: center; gap: 8px; }
.donut-identity b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: white; background: var(--category-color); font-family: "DIN Alternate", sans-serif; font-size: 13px; }
.donut-detail.N .donut-identity b, .donut-detail.M .donut-identity b { color: var(--ink); }
.donut-identity span { color: var(--muted); font-size: 9px; font-weight: 700; line-height: 1.35; }
.donut-detail > strong { align-self: center; font-family: "DIN Alternate", sans-serif; font-size: 31px; line-height: 1; }
.donut-detail > em { align-self: end; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; }
.donut-detail > i { position: relative; grid-column: 1 / -1; overflow: hidden; border-radius: 999px; background: #e6e4e3; }
.donut-detail > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--share); border-radius: inherit; background: var(--category-color); animation: share-grow .55s ease-out both; }

.records-title { margin-bottom: 13px; }
.record-pill { padding: 7px 11px; border-radius: 999px; color: var(--pine); background: var(--acid); font-family: "DIN Alternate", sans-serif; font-size: 11px; font-weight: 900; }
.record-filters { display: grid; grid-template-columns: 155px 155px 170px minmax(200px, 1fr); gap: 9px; margin-bottom: 14px; padding: 12px; border-radius: 14px; background: #f0f0f0; }
.record-filters label { display: grid; gap: 5px; }
.record-filters input, .record-filters select { min-height: 40px; padding: 0 11px; font-size: 12px; }
.search-field { justify-self: end; width: min(100%, 320px); }
.batch-toolbar { display: grid; grid-template-columns: minmax(190px, 1fr) 170px 190px auto auto auto; align-items: end; gap: 9px; margin-bottom: 14px; padding: 12px; border: 1px solid rgba(34,23,21,.14); border-radius: 14px; background: linear-gradient(105deg, #fff7d3, #f7f7f7); box-shadow: inset 4px 0 0 var(--acid); }
.batch-summary { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding-left: 8px; }
.batch-summary span { color: var(--pine); font-size: 12px; font-weight: 900; }
.batch-summary button { width: max-content; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.batch-field { display: grid; gap: 5px; }
.batch-field > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.batch-field input, .batch-field select { min-height: 40px; padding: 0 10px; font-size: 11px; }
.batch-shift-field > div { display: grid; grid-template-columns: 1fr auto; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.batch-shift-field input { min-width: 0; border: 0; border-radius: 0; }
.batch-shift-field em { padding-right: 10px; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 700; }
.batch-note-field > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 6px; }
.batch-note-field input { min-width: 0; }
.batch-toolbar .button { min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 10px; white-space: nowrap; }
.batch-toolbar .button[disabled] { cursor: not-allowed; }
.button.batch-danger { color: #9e3c30; background: #ffe5df; box-shadow: inset 0 0 0 1px rgba(158,60,48,.12); }
.button.batch-restore { color: #245f91; background: #eaf3fa; box-shadow: inset 0 0 0 1px rgba(51,122,183,.15); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: white; }
table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 12px; }
th { height: 42px; padding: 0 13px; color: var(--muted); background: #f1f1f1; font-size: 9px; letter-spacing: .08em; text-align: left; }
td { height: 57px; padding: 0 13px; border-top: 1px solid #ededed; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #fafafa; }
tbody tr.selected, tbody tr.selected:hover { background: #fff8d6; }
.selection-column { width: 46px; padding-right: 5px; text-align: center; }
.selection-column input { width: 17px; height: 17px; margin: 0; accent-color: var(--pine); cursor: pointer; }
.category-chip { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: white; font-family: "DIN Alternate", sans-serif; font-size: 15px; font-weight: 900; }
.category-chip.N, .category-chip.M { color: var(--ink); }.category-chip.N { background: var(--n); }.category-chip.M { background: var(--m); }.category-chip.B { background: var(--b); }.category-chip.C { background: var(--c); }.category-chip.Z { background: var(--z); }
.status-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 8px; border-radius: 999px; color: #245f91; background: #eaf3fa; font-size: 10px; font-weight: 800; }
.status-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-chip.deleted { color: #9e3c30; background: #ffe5df; }
.wait-chip, .service-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-family: "DIN Alternate", sans-serif; font-size: 11px; font-weight: 800; white-space: nowrap; }
.duration-cell { display: grid; justify-items: start; gap: 4px; }
.wait-chip { color: #4a4342; background: #f0efee; }
.wait-chip.live { color: #7a5c00; background: #fff2c2; }
.service-chip { color: #1f5e91; background: #eaf3fa; }
.service-chip.live { color: #0f4b7a; background: #d7ebf8; }
.note-column { max-width: 260px; color: #4a4342; font-size: 11px; line-height: 1.5; }
.dialog-fields label.full { grid-column: 1 / -1; }
.dialog-fields textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font-family: inherit; font-size: 12px; line-height: 1.6; resize: vertical; }
.dialog-fields input:disabled { color: var(--muted); background: #f4f4f4; }
.table-action { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--pine); background: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.table-action.restore { border-color: #bfd6e8; color: #245f91; background: #f1f7fb; }
.action-column { width: 84px; text-align: right; }
td.action-column { text-align: right; }
.table-empty { padding: 48px; color: var(--muted); text-align: center; font-size: 12px; }

.security-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; padding: 30px; color: #ffffff; background: var(--pine); border-color: transparent; }
.security-copy h2 { margin: 5px 0 13px; font-size: 29px; }
.security-copy p:last-child { max-width: 360px; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.8; }
.security-panel .overline { color: rgba(252,200,0,.72); }
.password-form { display: grid; grid-template-columns: repeat(2, 1fr); align-items: end; gap: 10px; }
.password-form label { display: grid; gap: 6px; }
.password-form label span { color: rgba(255,255,255,.54); }
.password-form input, .password-form select { min-height: 43px; border-color: rgba(255,255,255,.12); color: white; background: rgba(255,255,255,.08); }
.password-form select { color-scheme: dark; }
.password-form .form-error { grid-column: 1 / 3; }
.password-form .button { grid-column: 2; }
.password-warning { margin: 16px 0 0; padding: 11px 13px; border: 1px solid rgba(252,200,0,.3); border-radius: 12px; color: #fff2b4; background: rgba(252,200,0,.1); font-size: 12px; line-height: 1.55; }
.admin-footer { padding: 28px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

.record-dialog { width: min(620px, calc(100vw - 80px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--paper-strong); box-shadow: 0 35px 100px rgba(34,23,21,.3); }
.record-dialog::backdrop { background: rgba(34,23,21,.56); backdrop-filter: blur(4px); }
.record-dialog form { padding: 25px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }
.dialog-head h2 { margin-top: 4px; font-size: 27px; }
.dialog-head button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--muted); background: #eeeeee; font-size: 23px; cursor: pointer; }
.dialog-fields { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.dialog-fields label { display: grid; gap: 6px; }
.dialog-fields input, .dialog-fields select { padding: 0 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.admin-toast { position: fixed; right: 26px; bottom: 26px; z-index: 100; min-width: 260px; max-width: 410px; padding: 15px 18px; border-radius: 13px; color: white; background: var(--pine); box-shadow: 0 18px 45px rgba(34,23,21,.24); font-size: 12px; font-weight: 700; animation: toast-enter .25s ease both; }

@keyframes card-enter { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes toast-enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes donut-reveal { from { opacity: 0; stroke-dashoffset: 528; } }
@keyframes share-grow { from { width: 0; } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .range-panel { grid-template-columns: 130px minmax(210px, 1fr) 140px 16px 140px; }
  .range-panel > .button { grid-row: 2; }
  .range-panel > .button.dark { grid-column: 4 / 6; }
  .range-panel > .button.acid { grid-column: 5; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .donut-layout { grid-template-columns: minmax(270px, .85fr) minmax(300px, 1.15fr); gap: 24px; padding-inline: 4px; }
  .batch-toolbar { grid-template-columns: minmax(190px, 1fr) 160px 180px; }
  #applyBatchEdit { grid-column: 1; }
  #batchDelete { grid-column: 2; }
  #batchRestore { grid-column: 3; }
  .security-panel { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 1020px) {
  .admin-main { width: calc(100% - 36px); }
  .sidebar { width: 205px; }
  .admin-shell { grid-template-columns: 205px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
