:root {
  --ink: #18221f;
  --muted: #69736f;
  --line: #e2e7e4;
  --paper: #f5f7f5;
  --panel: #ffffff;
  --night: #111a18;
  --night-2: #192522;
  --accent: #c9ff47;
  --accent-dark: #80a81d;
  --green: #1b8d63;
  --amber: #b77916;
  --red: #c34848;
  --violet: #6f63d9;
  --shadow: 0 16px 50px rgba(31, 47, 42, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { overflow-x: hidden; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .88fr) 1.12fr; background: var(--panel); }
.login-card { width: min(480px, calc(100% - 64px)); margin: auto; padding: 44px 0; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--night); color: var(--accent); font: 800 27px/1 Georgia, serif; transform: skew(-6deg); box-shadow: 7px 7px 0 var(--accent); }
.brand-mark.small { width: 39px; height: 39px; border-radius: 11px; font-size: 21px; box-shadow: 4px 4px 0 var(--accent); }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-card .eyebrow { margin-top: 58px; }
.login-card h1 { margin: 0; max-width: 440px; font-size: clamp(44px, 5vw, 68px); line-height: .96; letter-spacing: -.055em; }
.muted, .page-head > div > p:last-child { color: var(--muted); }
.login-card > .muted { max-width: 400px; margin: 24px 0 34px; font-size: 17px; line-height: 1.6; }
label { display: grid; gap: 8px; color: #47504d; font-size: 12px; font-weight: 750; }
input, textarea, select { width: 100%; border: 1px solid #d8dfdb; border-radius: 10px; outline: none; background: #fff; color: var(--ink); transition: .18s border, .18s box-shadow; }
input, select { height: 44px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #98bd39; box-shadow: 0 0 0 3px rgba(201, 255, 71, .26); }
.login-card input { height: 52px; margin-bottom: 12px; }
button { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 10px 15px; cursor: pointer; font-weight: 750; transition: .16s transform, .16s background, .16s border, .16s opacity; }
button:hover { border-color: #bdc9c3; background: #f9faf9; }
button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .45; }
.primary { border-color: var(--night); background: var(--night); color: #fff; }
.primary:hover { border-color: #263531; background: #263531; }
.wide { width: 100%; }
.quiet { background: transparent; }
.danger { border-color: var(--red); background: var(--red); color: #fff; }
.danger:hover { border-color: #a83838; background: #a83838; }
.danger.ghost { margin-right: auto; background: #fff; color: var(--red); }
.hint { margin: 20px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
code { border-radius: 4px; background: #eef1ef; padding: 2px 5px; color: #53605c; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.trust-line { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: #7f8985; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.trust-line span { margin: 0 10px; color: var(--green); }
.error { min-height: 17px; margin: 8px 0 0; color: var(--red); font-size: 12px; }
.login-art { position: relative; min-height: 100vh; overflow: hidden; background: var(--night); color: #fff; }
.login-art::before { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at 78% 15%, rgba(201,255,71,.18), transparent 29%), radial-gradient(circle at 0 100%, rgba(201,255,71,.1), transparent 35%), linear-gradient(125deg, transparent 46%, rgba(255,255,255,.025) 46% 47%, transparent 47%); }
.hero-letter { position: absolute; top: 47%; left: 54%; color: rgba(201,255,71,.94); font: 900 clamp(230px, 31vw, 510px)/.7 Georgia, serif; transform: translate(-50%, -50%) skew(-8deg); filter: drop-shadow(24px 24px 0 rgba(0,0,0,.22)); }
.orbit { position: absolute; top: 47%; left: 54%; border: 1px solid rgba(201,255,71,.2); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); }
.o1 { width: 46%; aspect-ratio: 1; }
.o2 { width: 70%; aspect-ratio: 1; }
.o3 { width: 94%; aspect-ratio: 1; }
.login-note { position: absolute; right: 7%; bottom: 7%; max-width: 380px; }
.login-note .badge { color: var(--night); background: var(--accent); }
.login-note h2 { margin: 17px 0 12px; font-size: clamp(30px, 3vw, 47px); line-height: 1; letter-spacing: -.045em; }
.login-note p { color: #9cacA6; }

#shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 260px; display: flex; flex-direction: column; padding: 23px 16px 18px; background: var(--night); color: #fff; }
.brand { display: flex; align-items: center; gap: 14px; padding: 1px 10px 24px; color: #fff; text-decoration: none; font-size: 19px; letter-spacing: -.02em; }
.brand b { color: var(--accent); }
.brand small { display: block; margin-top: 3px; color: #82908b; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.workspace { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; padding: 13px 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.035); }
.workspace div { min-width: 0; flex: 1; }
.workspace strong, .workspace small { display: block; }
.workspace strong { font-size: 12px; }
.workspace small { margin-top: 3px; color: #81918b; font-size: 9px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,255,71,.1); }
.tag, .badge { display: inline-flex; align-items: center; border-radius: 5px; padding: 4px 7px; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.tag { background: rgba(201,255,71,.13); color: #bce844; }
#nav { display: grid; gap: 4px; }
#nav a { display: flex; align-items: center; gap: 12px; border-radius: 8px; padding: 11px 12px; color: #99a6a1; text-decoration: none; font-size: 13px; font-weight: 650; }
#nav a span { width: 17px; color: #6e7b76; text-align: center; }
#nav a:hover { background: rgba(255,255,255,.045); color: #fff; }
#nav a.active { background: var(--accent); color: var(--night); }
#nav a.active span { color: var(--night); }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 10px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-bottom .shield { color: var(--accent); }
.sidebar-bottom b, .sidebar-bottom small { display: block; }
.sidebar-bottom b { font-size: 10px; }
.sidebar-bottom small { margin-top: 3px; color: #71807a; font-size: 8px; }
.main { min-width: 0; min-height: 100vh; overflow-x: hidden; margin-left: 260px; }
.topbar { position: sticky; z-index: 10; top: 0; height: 67px; display: flex; align-items: center; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.93); backdrop-filter: blur(16px); }
#menu-button { display: none; }
.breadcrumb { color: #8b9591; font-size: 12px; }
.breadcrumb span { margin: 0 8px; color: #c4cbc8; }
.breadcrumb strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.badge { background: #edf0ee; color: #6b7672; }
.badge.success { background: #e3f5ec; color: var(--green); }
.badge.warning { background: #fff0d9; color: var(--amber); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; padding: 0; background: var(--night); color: var(--accent); font-size: 10px; }
main { min-height: calc(100vh - 108px); padding: 38px clamp(24px, 4vw, 58px) 55px; }
footer { display: flex; gap: 20px; justify-content: space-between; padding: 18px clamp(24px, 4vw, 58px); border-top: 1px solid var(--line); color: #9ca5a1; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
footer span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.page-head { display: flex; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.page-head h1 { margin: 0; font-size: clamp(31px, 3vw, 45px); line-height: 1.05; letter-spacing: -.045em; }
.page-head > div > p:last-child { max-width: 720px; margin: 12px 0 0; font-size: 14px; line-height: 1.55; }
.page-actions { align-self: flex-end; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.metric { position: relative; overflow: hidden; min-height: 130px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: 0 3px 18px rgba(28,45,39,.025); }
.metric::after { position: absolute; right: -13px; bottom: -26px; width: 78px; height: 78px; border-radius: 50%; background: #eff2f0; content: ""; }
.metric.green::after { background: #dff4e9; }
.metric.amber::after { background: #fff0d5; }
.metric.violet::after { background: #e9e6ff; }
.metric span, .metric small, .metric strong { position: relative; z-index: 1; display: block; }
.metric span { color: #8a9490; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metric strong { margin: 15px 0 9px; font-size: 28px; letter-spacing: -.04em; text-transform: capitalize; }
.metric small { color: #8b9591; font-size: 10px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: 0 3px 18px rgba(28,45,39,.025); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.split.wide-left { grid-template-columns: 1.4fr .8fr; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-head > div { min-width: 0; }
.panel-head h2 { margin: 0; overflow-wrap: anywhere; font-size: 18px; letter-spacing: -.025em; }
.panel-head a { color: var(--green); font-size: 11px; font-weight: 750; text-decoration: none; }
.capability-list > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px 21px; border-bottom: 1px solid #edf0ee; }
.capability-list > div:last-child { border: 0; }
.capability-list b, .capability-list small { display: block; }
.capability-list b { font-size: 12px; }
.capability-list small { overflow: hidden; margin-top: 4px; color: #84908b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.capability-list em { color: var(--green); font-size: 9px; font-style: normal; font-weight: 800; }
.cap-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #eff9f4; color: var(--green); font-size: 11px; }
.bar-list { display: grid; padding: 9px 20px 17px; }
.bar-list button { position: relative; display: grid; grid-template-columns: minmax(65px, 1fr) 2fr auto; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid #eef1ef; border-radius: 0; padding: 11px 0; background: transparent; text-align: left; font-size: 10px; }
.bar-list progress { width: 100%; height: 4px; overflow: hidden; border: 0; border-radius: 3px; background: #edf0ee; }
.bar-list progress::-webkit-progress-bar { background: #edf0ee; }
.bar-list progress::-webkit-progress-value { border-radius: 3px; background: var(--accent-dark); }
.bar-list progress::-moz-progress-bar { border-radius: 3px; background: var(--accent-dark); }
.bar-list b { color: #8a9490; font-size: 9px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.quick-grid button { min-height: 143px; padding: 19px; text-align: left; }
.quick-grid button > span { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 8px; background: var(--night); color: var(--accent); }
.quick-grid b, .quick-grid small { display: block; }
.quick-grid b { font-size: 13px; }
.quick-grid small { margin-top: 8px; color: #87918d; font-size: 10px; font-weight: 500; line-height: 1.5; }
.system-strip { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 13px 17px; border-radius: 9px; background: #e8ece9; color: #6e7874; font-size: 10px; }
.system-strip span:nth-last-child(-n+2) { margin-left: auto; }
.system-strip span:last-child { margin-left: 0; }

.toolbar { display: flex; align-items: center; gap: 10px; padding: 15px; border-bottom: 1px solid var(--line); }
.search { position: relative; display: block; flex: 1; }
.search span { position: absolute; z-index: 1; top: 50%; left: 14px; transform: translateY(-50%); color: #8b9691; }
.search input { padding-left: 36px; }
.toolbar select { width: min(270px, 31%); }
.count { margin-left: auto; padding: 0 8px; color: #8b9591; font-size: 10px; white-space: nowrap; }
.table { width: 100%; overflow: hidden; }
.tr { width: 100%; display: grid; grid-template-columns: minmax(230px, 1.25fr) 1fr 1fr .7fr; align-items: center; gap: 15px; border: 0; border-bottom: 1px solid #edf0ee; border-radius: 0; padding: 13px 20px; background: #fff; text-align: left; font-size: 11px; font-weight: 550; }
.tr:last-child { border-bottom: 0; }
.tr:not(.th):hover { background: #fafcf9; }
.tr.th { background: #f8faf8; color: #89938f; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr b, .tr small { display: block; }
.tr small { margin-top: 3px; overflow: hidden; color: #8b9591; font-size: 9px; text-overflow: ellipsis; }
.state { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #b5bcb9; }
.state.live { background: var(--green); box-shadow: 0 0 0 3px #dff5eb; }
.state.bad { background: var(--red); }
.back { display: inline-block; margin: -9px 0 20px; color: #69746f; font-size: 11px; font-weight: 750; text-decoration: none; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .55fr); gap: 18px; }
.player-main, .player-side { display: grid; align-content: start; gap: 18px; }
.document-list > button { width: 100%; display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 21px; text-align: left; }
.document-list > button:last-child { border: 0; }
.document-list > button > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #edf1ee; color: #65716c; font: 10px ui-monospace, monospace; }
.document-list b, .document-list small { display: block; }
.document-list b { font-size: 12px; }
.document-list small { margin-top: 4px; color: #909a96; font-size: 9px; }
.document-list em { color: var(--green); font-size: 10px; font-style: normal; }
.player-main > .panel:nth-child(2) { padding-bottom: 18px; }
.player-main > .panel:nth-child(2) > .search, .entity-results, .inline-form, .fine-print { margin-right: 21px; margin-left: 21px; }
.player-main > .panel:nth-child(2) > .search { margin-top: 18px; }
.entity-results { max-height: 250px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; }
.entity-results > p { margin: 0; padding: 18px; color: #8a9490; font-size: 10px; }
.entity-results button { width: 100%; display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 13px; text-align: left; }
.entity-results button.selected { background: #f1fadd; box-shadow: inset 3px 0 var(--accent-dark); }
.entity-results button span { color: var(--green); font-size: 9px; text-transform: uppercase; }
.entity-results button b { font-size: 11px; }
.inline-form { display: flex; align-items: end; gap: 10px; margin-top: 12px; }
.inline-form label { width: 150px; }
.inline-form button { height: 44px; }
.fine-print { color: #89938f; font-size: 9px; line-height: 1.5; }
.action-panel { padding: 20px; }
.action-panel h2 { margin: 0 0 18px; font-size: 17px; }
.action-panel label { margin-bottom: 12px; }
.action-panel > small { display: block; margin-top: 11px; color: #8a9490; font-size: 9px; line-height: 1.5; }
.danger-zone { width: 100%; padding: 15px 18px; border-color: #f0d6d6; background: #fff7f7; color: #a64343; text-align: left; }
.danger-zone span, .danger-zone small { display: block; }
.danger-zone small { margin-top: 4px; color: #b47c7c; font-size: 9px; font-weight: 500; }

.entity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.entity-grid article { min-width: 0; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px; background: #fff; }
.entity-glyph { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--night); color: var(--accent); font: 700 18px Georgia, serif; }
.entity-grid article div { min-width: 0; }
.entity-grid small, .entity-grid b, .entity-grid code { display: block; }
.entity-grid small { color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.entity-grid b { margin: 4px 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.entity-grid code { overflow: hidden; background: none; padding: 0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.entity-grid dl { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 5px 8px; margin: 2px 0 0; padding-top: 10px; border-top: 1px solid #edf0ee; font-size: 8px; }
.entity-grid dt { color: #97a09c; text-transform: uppercase; }
.entity-grid dd { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.resource-list button { width: 100%; display: grid; grid-template-columns: 37px minmax(0, 1fr) auto 20px; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 13px 19px; text-align: left; }
.resource-list button:last-child { border: 0; }
.file-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #edf1ee; color: #61706a; font: 9px ui-monospace, monospace; }
.resource-list b, .resource-list small { display: block; }
.resource-list b { font-size: 11px; }
.resource-list small { margin-top: 4px; overflow: hidden; color: #8d9793; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.resource-list em { border-radius: 5px; background: #eff5eb; padding: 4px 7px; color: #628327; font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.resource-list i { color: #87928d; font-style: normal; }
.code-panel pre { max-height: 65vh; overflow: auto; margin: 0; padding: 22px; background: #151f1c; color: #dbe8e1; font: 11px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.warning-note { margin: 15px 20px; border-left: 3px solid var(--amber); padding: 9px 12px; background: #fff8eb; color: #815c25; font-size: 10px; line-height: 1.5; }
.records .tr { grid-template-columns: repeat(4, minmax(90px, 1fr)) 70px; }
.records .tr > span:last-child { color: var(--green); text-align: right; font-size: 9px; font-weight: 800; }
.coverage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.coverage-grid article { display: grid; grid-template-columns: 45px 1fr; gap: 14px; min-height: 160px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.coverage-grid article > span { color: #c6ceca; font-size: 12px; font-weight: 800; }
.coverage-grid small { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.coverage-grid h2 { margin: 7px 0 10px; font-size: 17px; }
.coverage-grid p { margin: 0; color: #78827e; font-size: 11px; line-height: 1.6; }
.empty { display: grid; place-items: center; min-height: 390px; padding: 50px; border: 1px dashed #cad2ce; border-radius: 13px; text-align: center; }
.empty.compact { min-height: 250px; border: 0; border-radius: 0; }
.empty b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--night); color: var(--accent); font-size: 18px; }
.empty h2 { margin: 14px 0 7px; font-size: 18px; }
.empty p { margin: 0; color: #87918d; font-size: 11px; }
.empty button { margin-top: 18px; }
.error-state b { background: var(--red); color: #fff; }
.loading { min-height: 65vh; display: grid; place-content: center; justify-items: center; }
.loading span { width: 30px; height: 30px; border: 3px solid #dce2df; border-top-color: var(--accent-dark); border-radius: 50%; animation: spin .7s linear infinite; }
.loading strong { margin-top: 15px; font-size: 12px; }
.loading small { margin-top: 5px; color: #909a96; font-size: 9px; }
@keyframes spin { to { transform: rotate(360deg); } }

dialog { width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); overflow: hidden; border: 0; border-radius: 15px; padding: 0; color: var(--ink); box-shadow: 0 30px 100px rgba(8,18,14,.35); }
dialog::backdrop { background: rgba(10,18,15,.63); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.dialog-head h2, .confirm-dialog h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; padding: 0; }
#editor-body { max-height: calc(86vh - 145px); overflow: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfa; }
.json-editor { min-height: 55vh; border: 0; border-radius: 0; padding: 20px 23px; background: #17211e; color: #d7e3dd; font: 11px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.json-editor:focus { box-shadow: inset 0 0 0 2px var(--accent-dark); }
.simulation { min-height: 300px; max-height: 62vh; overflow: auto; margin: 0; padding: 22px; background: #17211e; color: #d7e3dd; font: 11px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px; }
.field:has(textarea) { grid-column: 1 / -1; }
.field > span { display: flex; justify-content: space-between; text-transform: capitalize; }
.field > span small { color: #9ba49f; font-size: 8px; text-transform: uppercase; }
.confirm-dialog { width: min(470px, calc(100vw - 32px)); padding: 25px; overflow: visible; }
.confirm-dialog p { color: #6f7975; font-size: 12px; line-height: 1.55; }
.confirm-dialog .dialog-actions { margin: 20px -25px -25px; border-radius: 0 0 15px 15px; }
#toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 48px)); border-radius: 10px; padding: 13px 17px; background: var(--night); color: #fff; box-shadow: var(--shadow); font-size: 11px; font-weight: 750; }
#toast.ok { border-left: 4px solid var(--accent); }
#toast.error { border-left: 4px solid #ff6666; }

@media (max-width: 1100px) {
  .metrics, .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .entity-grid { grid-template-columns: repeat(2, 1fr); }
  .split.wide-left, .player-layout { grid-template-columns: 1fr; }
  .player-side { grid-template-columns: repeat(2, 1fr); }
  .danger-zone { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .nav-open .sidebar { transform: translateX(0); box-shadow: 30px 0 80px rgba(0,0,0,.25); }
  .main { margin-left: 0; }
  #menu-button { display: grid; margin-right: 12px; }
  .topbar { padding: 0 15px; }
  .top-actions .quiet { display: none; }
  main { padding: 28px 16px 45px; }
  .page-head { display: block; }
  .page-actions { margin-top: 16px; }
  .metrics, .quick-grid, .coverage-grid, .entity-grid, .player-side { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .toolbar .search { min-width: 100%; }
  .toolbar select { width: calc(100% - 100px); }
  .tr { grid-template-columns: minmax(170px, 1fr) 90px; }
  .tr > span:nth-child(2), .tr > span:nth-child(3) { display: none; }
  .records .tr { grid-template-columns: 1fr 70px; }
  .records .tr > span:nth-child(n+2):not(:last-child) { display: none; }
  .fields { grid-template-columns: 1fr; }
  .field:has(textarea) { grid-column: auto; }
  .code-panel .panel-head { display: block; }
  .code-panel .panel-head .tag { margin-top: 10px; }
  .system-strip { flex-wrap: wrap; }
  .system-strip span:nth-last-child(-n+2) { margin-left: 0; }
}

.sidebar-links{display:grid;gap:3px;margin:16px 8px 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.1)}.sidebar-links a{color:#adbdb6;text-decoration:none;font-size:12px;padding:7px 8px}.sidebar-links a:hover{color:var(--accent)}.online-chart{width:100%;height:260px;background:#13201c;border-radius:12px;display:block}.online-chart-grid{stroke:#34453e;stroke-width:1}.online-chart-line{fill:none;stroke:#c9ff47;stroke-width:3;stroke-linejoin:round}.online-chart-fill{fill:rgba(201,255,71,.12)}.online-chart-label{fill:#9aac9f;font:12px system-ui}.sidebar{overflow-y:auto}@media(max-width:700px){.online-chart{height:200px}}
