:root {
  color-scheme: dark;
  --bg: #101311;
  --sidebar: #131713;
  --panel: #161b17;
  --raised: #1a211a;
  --border: #2b352c;
  --soft: #242e25;
  --text: #eef2e8;
  --muted: #a6b2a3;
  --quiet: #849284;
  --accent: #c5f575;
  --accent-fg: #17210e;
  --amber: #f2c078;
  --red: #f2a28e;
  --blue: #adc5ed;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: var(--accent); text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
svg.ico { display: block; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code, .mono { font-family: var(--mono); }
code { overflow-wrap: anywhere; }
strong { font-weight: 650; }
h1, h2, h3, p { margin: 0; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 8; transform: translateY(-160%); background: var(--accent); color: var(--accent-fg); padding: 9px 13px; border-radius: 7px; }
.skip-link:focus { transform: none; }
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--border); height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; min-height: 420px; padding: 27px 17px 16px; z-index: 3; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-size: 19px; font-weight: 720; letter-spacing: -.55px; padding: 0 3px; white-space: nowrap; }
.logo { display: grid; width: 36px; height: 36px; place-items: center; color: var(--accent); }
.logo svg { width: 35px; height: 35px; }
.brand small { display: block; margin-top: 3px; color: var(--quiet); font: 8px var(--mono); letter-spacing: 1.08px; }
.version { color: var(--accent); background: #25321c; border: 1px solid #35482a; border-radius: 5px; padding: 3px 5px; align-self: flex-start; margin-top: 2px; font: 9px var(--mono); letter-spacing: .4px; }
.project-picker { margin: 44px 1px 22px; }
.eyebrow { display: block; color: var(--quiet); font: 10px var(--mono); font-weight: 650; letter-spacing: 1.15px; }
.project-picker .eyebrow { margin: 0 0 9px 6px; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap select { width: 100%; appearance: none; padding: 12px 31px 12px 40px; font-weight: 650; text-overflow: ellipsis; cursor: pointer; }
.project-icon { position: absolute; left: 10px; width: 22px; height: 22px; border-radius: 5px; background: #293825; display: grid; place-items: center; color: var(--accent); font: 12px var(--mono); pointer-events: none; }
#project-chevron { position: absolute; right: 11px; color: var(--muted); pointer-events: none; }
#project-chevron .ico { width: 14px; height: 14px; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-group .eyebrow { margin: 0 0 6px 8px; }
.nav-link { width: 100%; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 8px 10px; text-align: left; margin-bottom: 3px; font-size: 13px; }
.nav-link:hover, .side-action:hover { color: var(--text); background: var(--raised); }
.nav-link.active { color: var(--accent); border-color: #34482a; background: #202c1a; font-weight: 650; }
.nav-link .nav-count { margin-left: auto; font: 10px var(--mono); color: var(--quiet); }
.side-bottom { margin-top: auto; }
.side-action { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: var(--text); min-height: 38px; font-size: 12px; font-weight: 650; }
.side-action .ico { color: var(--accent); width: 15px; height: 15px; }
.side-foot { display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 13px 2px 0; font-size: 11px; color: var(--quiet); }
.signal { width: 7px; height: 7px; border-radius: 50%; background: var(--quiet); flex: none; }
.signal.live { background: var(--accent); box-shadow: 0 0 10px #b8f47145; }
.signal.warn { background: var(--amber); }
#main { min-width: 0; outline: none; display: flex; flex-direction: column; }
.topbar { min-height: 64px; padding: 0 34px; border-bottom: 1px solid var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.breadcrumbs, .top-actions { display: flex; align-items: center; gap: 13px; min-width: 0; }
.breadcrumbs { color: var(--quiet); font-size: 12px; }
.breadcrumbs strong { color: var(--text); white-space: nowrap; }
.slash { font: 12px var(--mono); color: #536456; }
.updated { font: 10px var(--mono); color: var(--quiet); white-space: nowrap; }
.icon-button { display: grid; place-items: center; width: 33px; height: 33px; flex: none; border: 1px solid var(--border); color: var(--muted); border-radius: 7px; background: var(--panel); }
.icon-button:hover { color: var(--accent); border-color: #526740; }
.icon-button .ico { width: 16px; height: 16px; }
.mobile-menu { display: none; }
.content, .main-foot { width: min(100%, 1510px); margin: 0 auto; padding-inline: 34px; }
.content { padding-top: 29px; padding-bottom: 24px; flex: 1; }
.main-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 20px; color: var(--quiet); font: 10px var(--mono); letter-spacing: .6px; }
.main-foot span:first-child { color: var(--muted); }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.view-head .eyebrow { color: var(--accent); margin-bottom: 8px; }
.view-head h1 { font-size: clamp(27px, 3.4vw, 42px); letter-spacing: -1.65px; line-height: 1.06; font-weight: 740; }
.view-head p { color: var(--muted); font-size: 13px; margin-top: 9px; line-height: 1.55; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; background: var(--raised); border: 1px solid var(--border); border-radius: 7px; padding: 7px 11px; color: var(--text); font-weight: 640; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: #64794e; }
.btn .ico { width: 15px; height: 15px; }
.btn.primary { color: var(--accent-fg); background: var(--accent); border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { background: #dbffa5; border-color: #dbffa5; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.warn { color: var(--amber); border-color: #5c4630; }
.btn.small { min-height: 29px; font-size: 11px; }
.hero { isolation: isolate; overflow: hidden; position: relative; display: flex; align-items: stretch; min-height: 175px; border: 1px solid #3c4e35; border-radius: 13px; background: radial-gradient(ellipse at 87% 72%, #26391f 0%, #1a2418 44%, #192218 68%, #182017 100%); margin-bottom: 18px; }
.hero-content { width: 100%; z-index: 1; padding: 20px 24px 17px; }
.hero .eyebrow { color: #bdcfb0; }
.hero h2 { margin: 7px 0 5px; font-size: clamp(25px, 3vw, 36px); font-weight: 740; letter-spacing: -1.25px; line-height: 1.06; overflow-wrap: anywhere; }
.hero p { color: #b1bfa9; line-height: 1.45; font-size: 12px; }
.hero-values { display: flex; align-items: flex-start; gap: 23px; margin-top: 16px; }
.hero-stat { min-width: 76px; }
.hero-stat + .hero-stat { border-left: 1px solid #3c5035; padding-left: 20px; }
.hero-stat strong { display: block; font: 700 20px var(--mono); line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero-stat small { display: block; margin-top: 5px; color: #b1bfa9; font-size: 10px; }
.hero-stat.active strong { color: var(--accent); }
.hero-stat.attention strong { color: var(--amber); }
.hero-visual { position: absolute; right: 5px; top: 0; bottom: 0; width: min(46%, 520px); z-index: -1; opacity: .85; display: flex; align-items: stretch; }
.hero-visual svg { width: 100%; height: 100%; display: block; }
.hero-coord { position: absolute; top: 14px; right: 19px; font: 8px var(--mono); letter-spacing: 1px; color: #9bb78e; }
.hero-badge { position: absolute; right: 18px; bottom: 13px; }
.panel { border: 1px solid var(--border); border-radius: 11px; background: var(--panel); min-width: 0; overflow: hidden; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 17px 13px; gap: 9px; }
.panel-head > div { min-width: 0; }
.panel-head h2, .panel-head h3 { color: var(--text); display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.3; letter-spacing: -.15px; }
.panel-head h2 > .ico, .panel-head h3 > .ico { width: 17px; height: 17px; color: var(--accent); }
.panel-head p { margin-top: 4px; color: var(--quiet); font-size: 11px; line-height: 1.45; }
.panel-body { padding: 0 17px 16px; }
.panel .btn.text-link { padding: 0; min-height: 19px; border: 0; color: var(--muted); background: transparent; align-self: center; font-weight: 550; }
.panel .btn.text-link:hover { color: var(--accent); }
.pipeline { margin-bottom: 17px; }
.pipeline .panel-head { padding-bottom: 6px; }
.legend { display: flex; align-items: center; gap: 12px; color: var(--quiet); font-size: 10px; padding-top: 2px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.good { color: var(--accent); }
.attention { color: var(--amber); }
.dim { color: var(--quiet); }
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(75px, 1fr); gap: 5px; overflow: auto; padding: 3px 15px 11px; scrollbar-width: thin; }
.stage { min-width: 0; position: relative; background: transparent; color: var(--quiet); border: 1px solid transparent; border-radius: 7px; padding: 4px 3px 7px; text-align: center; }
.stage:hover:not(:disabled), .stage.selected { border-color: #4b6041; background: #222c21; }
.stage:disabled { opacity: .73; }
.stage::before { content: ""; position: absolute; left: calc(-50% + 13px); right: calc(50% + 10px); height: 1px; top: 20px; background: #3d4b3d; pointer-events: none; }
.stage:first-child::before { display: none; }
.stage.active::before { background: #709749; }
.stage-index { display: grid; place-items: center; position: relative; width: 29px; height: 29px; margin: 1px auto 6px; background: #202820; border: 1px solid #374737; color: #a2ad9f; font: 10px var(--mono); border-radius: 8px; }
.stage.active .stage-index { background: #303f20; color: var(--accent); border-color: #719b43; }
.stage.attention .stage-index { background: #332b1d; color: var(--amber); border-color: #775a33; }
.stage-name { display: block; line-height: 1.25; color: var(--text); font-size: 10px; font-weight: 640; white-space: nowrap; }
.stage-meta { display: block; font: 10px var(--mono); margin-top: 5px; white-space: nowrap; }
.stage.active .stage-meta { color: var(--accent); }
.stage.attention .stage-meta { color: var(--amber); }
.dashboard-grid, .secondary-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(255px, 1fr); gap: 17px; align-items: start; }
.secondary-grid { margin-top: 17px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.dashboard-grid > .panel { min-height: 207px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; border: 1px solid #3d4b3d; background: #242c24; color: var(--muted); padding: 3px 6px; font: 10px var(--mono); line-height: 1.2; white-space: nowrap; }
.badge.moving, .badge.ok { background: #293b20; border-color: #475e36; color: var(--accent); }
.badge.waiting, .badge.stop_operator, .badge.attention, .badge.intake { background: #362a1d; border-color: #58442c; color: var(--amber); }
.badge.stop_lead, .badge.error { background: #39261f; border-color: #604032; color: var(--red); }
.badge.queue, .badge.blue { color: var(--blue); border-color: #364559; background: #222b35; }
.badge.done { color: #b9c6b6; }
.table-wrap { overflow-x: auto; scrollbar-width: thin; }
.orders-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.orders-table th { color: var(--quiet); font: 9px var(--mono); letter-spacing: .55px; text-transform: uppercase; padding: 8px 9px; border-top: 1px solid var(--soft); background: #141915; white-space: nowrap; }
.orders-table td { border-top: 1px solid var(--soft); padding: 10px 9px; color: var(--muted); vertical-align: middle; }
.orders-table td:first-child, .orders-table th:first-child { padding-left: 16px; }
.orders-table td:last-child, .orders-table th:last-child { padding-right: 13px; }
.orders-table tr:hover td { background: #1d251d; }
.order-name { display: flex; align-items: baseline; gap: 7px; border: 0; background: transparent; text-align: left; color: var(--text); padding: 0; font-size: 12px; font-weight: 640; line-height: 1.35; }
.order-name:hover { color: var(--accent); }
.order-number { font: 10px var(--mono); color: var(--accent); white-space: nowrap; }
.order-stage { min-width: 76px; }
.order-stage small, .row-meta { display: block; margin-top: 3px; font-size: 10px; color: var(--quiet); line-height: 1.3; }
.row-arrow { color: var(--quiet); }
.row-arrow .ico { width: 13px; height: 13px; }
.attention-list { display: grid; padding: 0 10px 10px; gap: 7px; }
.decision-row { display: grid; grid-template-columns: 23px minmax(0,1fr) 13px; align-items: center; gap: 8px; padding: 8px; min-height: 49px; text-align: left; border: 1px solid #453928; border-radius: 7px; background: #221f18; color: var(--text); width: 100%; }
.decision-row:hover { border-color: #876739; background: #292317; }
.decision-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 5px; background: #3c2e1b; color: var(--amber); }
.decision-icon .ico, .decision-arrow .ico { width: 13px; height: 13px; }
.decision-content { min-width: 0; }
.decision-content strong { display: block; font-size: 11px; line-height: 1.25; }
.decision-content small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #c2af92; line-height: 1.35; font-size: 10px; margin-top: 3px; }
.decision-arrow { color: var(--amber); }
.empty { padding: 14px 17px 17px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.empty .ico { margin-bottom: 8px; color: var(--quiet); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }
.loading-box { padding: 22px 0; color: var(--muted); display: flex; gap: 10px; align-items: center; font-size: 13px; }
.spinner { display: inline-block; width: 15px; height: 15px; flex: none; border-radius: 50%; border: 1px solid #435640; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.timeline { padding: 0 17px 12px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 7px minmax(0,1fr) max-content; gap: 9px; padding: 9px 0; color: var(--muted); font-size: 11px; }
.timeline-item + .timeline-item { border-top: 1px solid var(--soft); }
.timeline-item .dot { color: var(--accent); margin-top: 5px; width: 5px; height: 5px; }
.timeline-item strong { color: var(--text); }
.timeline-item p { color: var(--quiet); margin-top: 4px; line-height: 1.4; overflow-wrap: anywhere; }
.timeline-item time { color: var(--quiet); font: 10px var(--mono); }
.timeline-item button { color: var(--text); font-size: inherit; background: transparent; border: 0; padding: 0; text-align: left; }
.timeline-item button:hover { color: var(--accent); }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.metric { background: #1b221b; border: 1px solid var(--border); padding: 9px; border-radius: 7px; }
.metric strong { display: block; font: 650 16px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.metric span { display: block; color: var(--muted); font-size: 10px; line-height: 1.3; margin-top: 5px; }
.metrics-note { color: var(--quiet); margin-top: 10px; font-size: 11px; line-height: 1.5; }
.stack { display: grid; gap: 15px; align-content: start; }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px,1fr); gap: 16px; align-items: start; }
.filters, .form-row, .inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters { padding: 0 16px 13px; }
.filters select, .filters input { min-width: 120px; }
.filters input { flex: 1 1 165px; }
.form { display: grid; gap: 13px; }
label.field { display: grid; gap: 6px; min-width: 0; font-size: 12px; color: var(--text); font-weight: 620; }
.field > small, .hint { font-weight: 400; color: var(--quiet); font-size: 11px; line-height: 1.45; }
.form-row > .field { flex: 1 1 150px; }
input:not([type=checkbox]), select, textarea { min-width: 0; min-height: 36px; border: 1px solid #364437; border-radius: 7px; background: #171e17; color: var(--text); font-size: 12px; padding: 8px 9px; }
textarea { resize: vertical; line-height: 1.5; min-height: 88px; }
input::placeholder, textarea::placeholder { color: #849083; }
input[type=file] { width: 100%; }
input[type=file]::file-selector-button { color: var(--text); background: #283526; border: 1px solid #3d4d3b; padding: 4px 7px; margin-right: 8px; border-radius: 5px; }
.notice { border: 1px solid #485946; color: #c0cdbd; background: #202a20; padding: 9px 11px; font-size: 12px; line-height: 1.5; border-radius: 7px; overflow-wrap: anywhere; }
.notice.warn { color: #f0d3aa; background: #2b241a; border-color: #5e4a30; }
.notice.error { color: #f6c0b1; background: #2f211d; border-color: #67473c; }
.form-status:empty { display: none; }
.kv { display: grid; grid-template-columns: minmax(80px,auto) minmax(0,1fr); gap: 8px 13px; font-size: 12px; line-height: 1.45; margin: 0; align-items: start; }
.kv dt { color: var(--quiet); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 9px 0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.info-list li + li { border-top: 1px solid var(--soft); }
.info-list small { display: block; margin-top: 4px; color: var(--quiet); }
.entity { border: 1px solid var(--border); border-radius: 8px; background: #19201a; padding: 10px 11px; }
.entity + .entity { margin-top: 7px; }
.entity summary { cursor: pointer; font-size: 12px; overflow-wrap: anywhere; }
.entity summary code { color: var(--quiet); display: block; margin: 5px 0 0 13px; font-size: 10px; }
.entity p { margin-top: 7px; line-height: 1.5; font-size: 12px; color: var(--muted); }
.evidence { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.55 var(--mono); max-height: 410px; overflow: auto; padding: 9px; background: #111711; border: 1px solid var(--soft); border-radius: 6px; }
.resource-row { padding: 10px 0; display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; font-size: 12px; }
.resource-row + .resource-row { border-top: 1px solid var(--soft); }
.resource-row small { display: block; font-size: 11px; color: var(--quiet); margin-top: 4px; }
.resource-row .badge { align-self: flex-start; }
.resource-row code { overflow-wrap: anywhere; }
.meter { height: 4px; width: 100%; max-width: 190px; background: #303a30; border-radius: 4px; margin-top: 5px; }
.meter span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.chat { display: grid; gap: 9px; padding-bottom: 12px; }
.message { padding: 10px 12px; background: #1d261d; border: 1px solid var(--border); border-radius: 8px; overflow-wrap: anywhere; }
.message.user { background: #252a1b; margin-left: 12%; }
.message .eyebrow { margin-bottom: 5px; }
.message p { white-space: pre-wrap; color: var(--text); font-size: 13px; line-height: 1.55; }
dialog { color: var(--text); border: 1px solid #485c43; background: var(--bg); border-radius: 12px; padding: 0; max-width: calc(100% - 25px); max-height: calc(100% - 30px); }
dialog::backdrop { background: #080c08ab; backdrop-filter: blur(2px); }
.drawer { position: fixed; width: 610px; height: 100dvh; max-height: 100dvh; inset: 0 0 0 auto; margin: 0; border-radius: 13px 0 0 13px; }
.approval { width: 520px; }
.dialog-head { position: sticky; top: 0; z-index: 1; background: var(--panel); border-bottom: 1px solid var(--border); padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dialog-head h2 { font-size: 20px; margin-top: 5px; letter-spacing: -.35px; }
.dialog-body { padding: 16px 18px; }
.dialog-body .panel { background: var(--panel); }
#toast { position: fixed; right: 16px; bottom: 16px; z-index: 7; max-width: min(390px, calc(100% - 32px)); }
#toast:empty { display: none; }
.toast-box { background: #263423; border: 1px solid #56724b; padding: 10px 13px; border-radius: 8px; font-size: 12px; color: var(--text); overflow-wrap: anywhere; }
.login-wrap { width: min(440px,100%); margin: 10vh auto 0; }
.login-wrap .panel-head h2 { font-size: 21px; }
@media (max-width: 1150px) {
  .shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .topbar, .content, .main-foot { padding-inline: 24px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.5fr) minmax(235px,1fr); }
  .orders-table td, .orders-table th { padding-inline: 6px; }
}
@media (max-width: 925px) {
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .dashboard-grid > .panel { min-height: 0; }
  .dashboard-grid > .decisions-panel { grid-row: 1; }
  .attention-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split { grid-template-columns: minmax(0,1fr); }
  .hero-visual { width: 50%; }
}
@media (max-width: 700px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; width: min(260px,83vw); left: 0; inset-block: 0; padding-inline: 15px; transform: translateX(-101%); transition: transform .2s ease; visibility: hidden; }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  .scrim { position: fixed; z-index: 2; inset: 0; background: #080b08a8; }
  .mobile-menu { display: grid; }
  .topbar { min-height: 53px; padding-inline: 13px; }
  .breadcrumbs, .top-actions { gap: 8px; }
  .crumb-root, .breadcrumbs .slash { display: none; }
  .content, .main-foot { padding-inline: 13px; }
  .content { padding-top: 20px; }
  .view-head { margin-bottom: 15px; }
  .view-head h1 { letter-spacing: -1px; }
  .view-head p { font-size: 12px; }
  .hero-content { padding: 16px 13px; }
  .hero-values { gap: 9px; }
  .hero-stat + .hero-stat { padding-left: 10px; }
  .hero-visual { opacity: .48; }
  .hero-coord, .hero-badge { display: none; }
  .legend { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .panel-head { padding-inline: 12px; }
  .panel-body { padding-inline: 12px; }
  .flow { padding-inline: 9px; }
  .secondary-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 420px) {
  .view-head { flex-wrap: wrap; gap: 11px; align-items: flex-start; }
  .attention-list { grid-template-columns: minmax(0,1fr); }
  .hero-stat strong { font-size: 17px; }
  .hero-stat { min-width: 64px; }
  .hide-mobile { display: none; }
  .drawer { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.sr-only { position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.knowledge-results { margin-top: 14px; }
.check-field { color: var(--text); display: flex; align-items: flex-start; gap: 7px; font-size: 12px; line-height: 1.4; }
.check-field input { accent-color: var(--accent); margin: 1px 0 0; }
.telegram-config { margin-top: 13px; }
.telegram-config form { margin-top: 12px; }
.orders-table .badge { max-width: 100%; white-space: normal; }
.dialog-body .inline-actions { margin-top: 5px; }
@media (max-width: 420px) {
  .orders-table td:first-child, .orders-table th:first-child { padding-left: 10px; }
  .orders-table td:last-child, .orders-table th:last-child { padding-right: 5px; }
  .order-name { display: block; font-size: 11px; }
  .order-number { display: block; margin-bottom: 2px; }
  .order-stage { min-width: 54px; }
}
button.row-arrow { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid transparent; border-radius: 5px; padding: 0; background: transparent; }
button.row-arrow:hover { border-color: var(--border); color: var(--accent); }
.modal-toast:empty { display: none; }
.modal-toast:not(:empty) { margin-bottom: 9px; }
textarea.declaration { min-height: 245px; font: 11px/1.6 var(--mono); }
.message .inline-actions { margin-top: 8px; }
fieldset.run-after { min-width: 0; border: 1px solid var(--border); border-radius: 7px; margin: 0; padding: 10px; }
