/* Effred SIM console. Two type families only: one sans for text, one mono for times, IDs and code. */
:root {
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --num: tabular-nums;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #f6f5f1; --side: #f1efea; --panel: #ffffff; --line: #e7e4dd; --line2: #efede8;
  --text: #191917; --muted: #6d6b65; --faint: #9b988f; --ink: #141413;
  --ok: #15803d; --ok-bg: #e2f4e8; --ok-line: #2f9e5b;
  --warn: #b45309; --warn-bg: #fdf0d5; --warn-line: #e0a100;
  --bad: #c2261d; --bad-bg: #fde7e4; --bad-line: #e5483a;
  --info: #1d4ed8; --info-bg: #e3ebfd;
  --accent: #15803d;
  --r: 14px; --r-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 20, 19, .04), 0 1px 1px rgba(20, 20, 19, .03);
  --shadow-lg: 0 18px 50px -12px rgba(20, 20, 19, .25), 0 4px 12px rgba(20, 20, 19, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01", "ss03"; font-optical-sizing: auto; }
.kpi .v, .mono, table.t td, .mini .v, .chart text { font-variant-numeric: tabular-nums; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.018em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ───── layout ───── */
.shell { display: grid; grid-template-columns: 264px 1fr; height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 14px 12px; overflow-y: auto; gap: 2px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; font-weight: 700; font-size: 17px; text-decoration: none; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--muted); margin-bottom: 10px; cursor: text; }
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; }
.kbd { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--muted); background: var(--side); }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 10px; text-decoration: none; color: #3c3b37; font-weight: 500; border: 1px solid transparent; }
.nav a:hover { background: rgba(0,0,0,.035); }
.nav a.on { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); color: var(--text); }
.nav a .count { margin-left: auto; font: 600 11px var(--mono); padding: 1px 7px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); }
.nav a .count.red { background: var(--bad-bg); color: var(--bad); }
.navh { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 16px 11px 6px; }
.apps a { padding: 6px 11px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-line); flex: none; display: inline-block; }
.dot.warn { background: var(--warn-line); } .dot.bad { background: var(--bad-line); } .dot.off { background: #c9c6bd; }
.dot.pulse { box-shadow: 0 0 0 0 rgba(229,72,58,.5); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(229,72,58,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,58,0); } }
.side .grow { flex: 1; min-height: 16px; }
.agents { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.agents .ic { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 4px; position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #fde3dc; color: #c2410c; display: grid; place-items: center; font-weight: 650; font-size: 12.5px; flex: none; }
.me .who { flex: 1; min-width: 0; line-height: 1.25; } .me .who b { display: block; font-weight: 600; }
.me .who span { font-size: 12.5px; color: var(--muted); }

.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--bg); min-height: 70px; flex-wrap: wrap; }
.top { flex-wrap: nowrap; }
.top h1 { font-size: 22px; letter-spacing: -.025em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.top > .pill, .top > .btn, .top > .select, .top > .live, .top > .iconbtn, .top > .avatar, .top > .admin-badge { flex: none; }
.top .sp { flex: 1; }
.content { flex: 1; overflow-y: auto; padding: 24px 28px 48px; }
.content.flush { padding-top: 0; }
.iconbtn.menu-btn { display: none; }

/* approval banner */
.alertbar { display: flex; align-items: center; gap: 12px; background: var(--warn-bg); border-bottom: 1px solid #f2d79c; padding: 10px 28px; color: #7a4a06; font-weight: 500; }
.alertbar .dot { background: var(--warn-line); box-shadow: 0 0 0 0 rgba(224,161,0,.6); animation: pulsew 1.6s infinite; }
@keyframes pulsew { 70% { box-shadow: 0 0 0 7px rgba(224,161,0,0); } }
.alertbar .grow { flex: 1; }

/* ───── controls ───── */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 14px; font-weight: 550; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow); line-height: 1.2; }
.btn:hover { border-color: #d6d2c8; background: #fcfbf9; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #2a2a28; }
.btn.green { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,.04); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; cursor: pointer; position: relative; color: #3c3b37; }
.iconbtn:hover { background: rgba(0,0,0,.05); }
.iconbtn .badge { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad-line); border: 2px solid var(--bg); }
.select { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 0 10px 0 12px; height: 38px; box-shadow: var(--shadow); }
.select select { border: 0; background: transparent; outline: 0; height: 36px; padding-right: 4px; cursor: pointer; }
.live { display: inline-flex; align-items: center; gap: 8px; background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 0 14px; height: 38px; font-weight: 600; }
.live .dot { background: var(--ok-line); animation: pulseg 2s infinite; }
@keyframes pulseg { 0% { box-shadow: 0 0 0 0 rgba(47,158,91,.5); } 70% { box-shadow: 0 0 0 6px rgba(47,158,91,0); } 100% { box-shadow: none; } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 550; background: #efede8; color: #44433f; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
.pill.dark { background: var(--ink); color: #fff; }
.pill .dot { width: 7px; height: 7px; }
.pill.blink .dot { animation: pulsew 1.6s infinite; background: var(--warn-line); }
.tag { font: 600 12px var(--mono); letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: #efede8; color: #3c3b37; white-space: nowrap; }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); padding: 0 28px; background: var(--bg); overflow-x: auto; }
.tabs a { padding: 13px 0 12px; text-decoration: none; color: #55534e; font-weight: 500; border-bottom: 2px solid transparent; display: flex; gap: 7px; align-items: center; white-space: nowrap; }
.tabs a.on { color: var(--text); border-color: var(--ink); font-weight: 600; }
.tabs .n { font: 12px var(--mono); background: #ebe8e1; border-radius: 6px; padding: 1px 6px; }
.seg { display: inline-flex; background: #ece9e2; border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 500; color: #55534e; }
.seg button.on { background: var(--panel); box-shadow: var(--shadow); color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: #3c3b37; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .field input, .field select, .field textarea { border: 1px solid #dcd8cf; background: #fff; border-radius: 10px; padding: 9px 12px; outline: 0; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 90px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #8f8b80; box-shadow: 0 0 0 3px rgba(20,20,19,.07); }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.stack > * + * { margin-top: 16px; }

/* ───── cards ───── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card .hd { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line2); }
.card .hd h3 { font-size: 15.5px; }
.card .hd .sp { flex: 1; }
.card .bd { padding: 18px 20px; }
.card .ft { padding: 12px 20px; border-top: 1px solid var(--line2); display: flex; align-items: center; gap: 10px; }
.kpi { padding: 18px 20px; }
.kpi .t { display: flex; justify-content: space-between; color: #44433f; font-weight: 500; }
.kpi .t svg { color: var(--muted); }
.kpi .v { font-size: 32px; font-weight: 650; letter-spacing: -.03em; margin: 8px 0 4px; line-height: 1.1; }
.kpi .v small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi .s { font-size: 14px; font-weight: 500; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 13px; align-items: center; }
.legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--bad-line); margin-right: 6px; vertical-align: middle; }
.legend i.band { height: 10px; background: #ebe9e3; }
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font: 10.5px var(--mono); fill: #8d8a81; }
.chart .gl { stroke: #efede8; }

/* service map */
.map { position: relative; background-image: radial-gradient(#e4e1da 1px, transparent 1px); background-size: 18px 18px; border-radius: 0 0 var(--r) var(--r); }
.node rect { fill: #fff; stroke: #e2dfd7; }
.node.warn rect { stroke: var(--warn-line); stroke-width: 1.5; fill: #fffaf0; }
.node.bad rect { stroke: var(--bad-line); stroke-width: 1.5; fill: #fff6f5; }
.node text.n { font: 600 13.5px var(--sans); fill: var(--text); }
.node text.m { font: 11.5px var(--mono); fill: #77746b; }
.edge { stroke: #d4d0c6; stroke-width: 1.4; fill: none; }
.edge.hot { stroke: var(--bad-line); stroke-dasharray: 5 4; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0 20px; }
.tl li { display: grid; grid-template-columns: 38px 86px auto 1fr; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line2); }
.tl li:last-child { border-bottom: 0; }
.tl .b { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.tl .b svg { width: 16px; height: 16px; }
.tl .b.person { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.tl .b.warn { background: var(--warn-line); } .tl .b.okb { background: var(--ok); }
.tl .time { font: 14px var(--mono); color: #6d6b65; }
.tl .txt { font-size: 15px; }
.tl .who { font-size: 12.5px; color: var(--muted); }
.tl li.new { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.mini { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.mini .l { color: #6d6b65; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.mini .l svg { width: 16px; height: 16px; }
.mini .v { font-size: 18px; font-weight: 650; margin: 8px 0 2px; }
.bar { height: 7px; background: #eeebe5; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ok-line); border-radius: 99px; transition: width .6s; }
.bar > i.warn { background: var(--warn-line); } .bar > i.bad { background: var(--bad-line); } .bar > i.ink { background: var(--ink); }

/* tables */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fbfaf8; white-space: nowrap; }
table.t td { padding: 12px 16px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #fbfaf7; }
.tablewrap { overflow-x: auto; }

/* integrations */
.icard { display: flex; flex-direction: column; padding: 20px; }
.icard .h { display: flex; gap: 14px; align-items: flex-start; }
.ilogo { width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 750; font-size: 14px; flex: none; letter-spacing: -.02em; }
.icard .d { color: #44433f; margin: 14px 0 16px; flex: 1; font-size: 14.5px; }
.icard .f { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line2); padding-top: 12px; font-weight: 550; }
.icard .f .mono { color: var(--muted); font-weight: 400; }
.kebab { margin-left: auto; position: relative; }

/* infra cards */
.meter { display: grid; grid-template-columns: 74px 1fr 42px; gap: 12px; align-items: center; margin: 9px 0; font-size: 14px; color: #44433f; }
.meter .mono { text-align: right; }

/* code / policy editor */
.code { background: #141413; color: #e8e6df; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.code .hd { color: #b9b6ad; border-color: #2a2a28; font: 13px var(--mono); padding: 14px 20px; display: flex; align-items: center; gap: 8px; }
.code .hd b { color: #fff; font-weight: 500; }
.code .hd .dots { margin-left: auto; display: flex; gap: 6px; } .code .hd .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a37; }
.code pre { margin: 0; padding: 16px 0; font: 14px/1.75 var(--mono); overflow-x: auto; }
.code pre span.ln { display: inline-block; width: 46px; text-align: right; padding-right: 16px; color: #66645d; user-select: none; }
.code .line { display: block; padding-right: 20px; } .code .line.hl { background: rgba(224,161,0,.13); }
.code .k { color: #f3f1ea; } .code .s { color: #f19570; } .code .g { color: #8fd6a6; } .code .y { color: #f2c860; } .code .c { color: #7b7970; font-style: italic; }
.code textarea { width: 100%; min-height: 420px; background: transparent; color: #e8e6df; border: 0; outline: 0; resize: vertical; font: 14px/1.75 var(--mono); padding: 16px 20px; }

/* approval card */
.approve { border: 1.5px solid var(--warn-line); background: #fffdf7; border-radius: var(--r); box-shadow: 0 0 0 4px rgba(224,161,0,.1), var(--shadow); }
.approve .bd { padding: 20px; }
.approve h3 { font-size: 18px; margin: 10px 0 6px; line-height: 1.3; }

/* EVA */
.eva { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw; background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; z-index: 40; transform: translateX(105%); transition: transform .25s ease; }
.eva.open { transform: none; }
.eva .hd { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.eva .hd b { font-size: 18px; flex: 1; }
.evaav { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 11px var(--mono); flex: none; }
.eva .log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.eva .q { align-self: flex-end; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 16px 16px 4px 16px; max-width: 85%; }
.eva .a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.eva .used { border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 13px; display: flex; gap: 8px; align-items: center; color: #44433f; margin-bottom: 8px; }
.eva .used svg { color: var(--ok); width: 15px; height: 15px; }
.eva .ans p { margin: 0 0 8px; }
.eva .ans .chartbox { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 6px; }
.eva .sugg { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 10px; }
.eva .sugg button { border: 1px solid var(--line); background: #fbfaf8; border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.eva form { display: flex; gap: 8px; margin: 0 18px; border: 1px solid #dcd8cf; border-radius: 14px; padding: 6px 6px 6px 14px; align-items: center; }
.eva form input { flex: 1; border: 0; outline: 0; padding: 8px 0; min-width: 0; }
.eva .foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 10px 18px 14px; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b3afa5; margin-right: 4px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.evafab { position: fixed; right: 24px; bottom: 24px; z-index: 30; border-radius: 99px; padding: 12px 18px 12px 12px; box-shadow: var(--shadow-lg); }

/* modal & toast & popover */
.overlay { position: fixed; inset: 0; background: rgba(20,20,19,.32); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; width: 560px; max-width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal.wide { width: 760px; }
.modal .hd { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line2); }
.modal .hd h3 { flex: 1; font-size: 17px; }
.modal .bd { padding: 20px 22px; }
.modal .ft { padding: 14px 22px; border-top: 1px solid var(--line2); display: flex; gap: 10px; justify-content: flex-end; }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: rise .25s; max-width: 90vw; }
.toast.err { background: var(--bad); }
.pop { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 45; min-width: 200px; padding: 6px; }
.pop a, .pop button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; border: 0; background: transparent; cursor: pointer; text-align: left; }
.pop a:hover, .pop button:hover { background: #f4f2ee; }
.notif { width: 380px; max-height: 460px; overflow: auto; padding: 0; }
.notif .it { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line2); text-decoration: none; }
.notif .it:hover { background: #faf9f6; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: #b8b4aa; margin-bottom: 8px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 0; }
.sicon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #cfcbc1; }
.sicon.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.sicon.running { border-color: var(--info); border-top-color: transparent; animation: spin .9s linear infinite; }
.sicon.skipped { border-style: dashed; }
.sicon svg { width: 13px; height: 13px; stroke-width: 2.4; }
@keyframes spin { to { transform: rotate(360deg); } }
.evidence { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.evidence:last-child { border-bottom: 0; }
.evidence .ic { width: 34px; height: 34px; border-radius: 9px; background: #f1efea; display: grid; place-items: center; color: #44433f; }
.wizard-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wizard-cats button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.wizard-cats button:hover { border-color: #bdb9ae; }
.wizard-cats .ilogo { width: 36px; height: 36px; font-size: 12px; border-radius: 9px; }
.stepper { display: flex; gap: 8px; margin-bottom: 18px; }
.stepper span { flex: 1; height: 4px; border-radius: 4px; background: #ebe8e1; } .stepper span.on { background: var(--ink); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f3f1ec; color: #44433f; font-size: 13.5px; }
.notice.ok { background: var(--ok-bg); color: #14532d; } .notice.bad { background: var(--bad-bg); color: #7f1d1d; } .notice.warn { background: var(--warn-bg); color: #7a4a06; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; }
.section-title h2 { font-size: 17px; }
.admin-badge { font: 600 11px var(--mono); background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 7px; letter-spacing: .05em; }
.rb-step { display: grid; grid-template-columns: 26px 1fr 130px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rb-step .n { font: 12px var(--mono); color: var(--muted); text-align: center; }
.hbar { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.hbar i { flex: 1; background: var(--ok); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.hbar i.future { background: #ebe8e1; }
.hbar i.over { background: var(--warn-line); }

/* ───── login ───── */
.login { display: grid; grid-template-columns: 1.12fr 1fr; min-height: 100vh; background: #fff; }
.login .art { background: #0d0e0d; color: #fff; padding: 44px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; isolation: isolate; }
.login .art .hero { position: absolute; inset: 34% 0 0 0; background-size: cover; background-position: 50% 60%; z-index: -2;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%); mask-image: linear-gradient(to bottom, transparent 0%, #000 34%); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.1) translateY(-10px); } }
.login .art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 380px at 12% 0%, rgba(47,158,91,.16), transparent 70%), linear-gradient(to top, rgba(13,14,13,.55), transparent 30%); pointer-events: none; }
.login .art .brand { color: #fff; padding: 0; font-size: 18px; }
.login .art .logo { background: #fff; color: #0d0e0d; }
.login .eyebrow { margin-top: 64px; display: inline-flex; align-self: flex-start; align-items: center; gap: 9px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #9fe3b8; border: 1px solid rgba(159,227,184,.25); background: rgba(47,158,91,.1); padding: 6px 12px; border-radius: 99px; }
.login .eyebrow .dot { width: 7px; height: 7px; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.login .art h1 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 700; max-width: 600px; }
.login .art h1 em { font-style: normal; background: linear-gradient(92deg, #ffffff 0%, #9fe3b8 55%, #3ddc84 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login .art p.lead { color: #b9b7af; font-size: 16.5px; line-height: 1.6; max-width: 480px; margin: 0; }
.login .stages { list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.login .stages li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-weight: 550; font-size: 14px; color: #e9e7e0; backdrop-filter: blur(6px); }
.login .stages b { font: 600 11px var(--mono); color: #3ddc84; background: rgba(61,220,132,.12); padding: 2px 6px; border-radius: 6px; }
.login .glass { position: absolute; z-index: 2; width: 300px; padding: 15px 17px; border-radius: 16px; color: #fff; font-size: 13.5px;
  background: rgba(22,24,22,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.login .glass b { display: block; font-size: 15px; margin: 10px 0 3px; font-weight: 600; }
.login .glass span:not(.pill):not(.mono) { color: #b9b7af; }
.login .glass .mono { color: #9fe3b8; font-size: 12px; }
.login .glass .pill.ok { background: rgba(61,220,132,.15); color: #7ee2a2; } .login .glass .pill.warn { background: rgba(240,180,40,.16); color: #f5c451; }
.login .glass.g1 { left: 56px; bottom: 56px; animation: bob 7s ease-in-out infinite; }
.login .glass.g2 { right: 48px; bottom: 170px; width: 270px; animation: bob 8s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.login .form { display: flex; flex-direction: column; justify-content: center; padding: 48px; background: radial-gradient(600px 300px at 100% 0%, #f4f3ef, transparent 70%), #fff; }
.login .box { width: 100%; max-width: 408px; margin: 0 auto; }
.login .box > .brand { padding: 0 0 44px; font-size: 18px; }
.login .box h2 { font-size: 32px; letter-spacing: -.03em; margin-bottom: 8px; font-weight: 700; }
.login .box .sub { color: var(--muted); margin: 0 0 30px; font-size: 15.5px; }
.login .field input { padding: 12px 14px; border-radius: 12px; font-size: 15px; background: #fbfaf8; }
.login .field input:focus { background: #fff; border-color: #2f9e5b; box-shadow: 0 0 0 4px rgba(47,158,91,.12); }
.login .pw { position: relative; }
.login .pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 7px; border-radius: 8px; }
.login .pw button:hover { background: #efede8; }
.login .submit { width: 100%; justify-content: center; padding: 13px; font-size: 15.5px; border-radius: 12px; gap: 10px; transition: transform .15s, box-shadow .15s; }
.login .submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(20,20,19,.55); }
.login .err { margin-bottom: 16px; }
.login .assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.login .assure div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.login .assure svg { width: 20px; height: 20px; color: var(--ok); }
.login .legal { margin-top: 30px; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ───── responsive ───── */
@media (max-width: 1280px) { .grid4 { grid-template-columns: repeat(2, 1fr); } .split { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .grid3 { grid-template-columns: 1fr 1fr; } .login .glass.g2 { display: none; } }
@media (max-height: 780px) { .login .glass { display: none; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 48; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .shell.navopen .side { transform: none; }
  .iconbtn.menu-btn { display: grid; }
  .top { padding: 12px 16px; } .content { padding: 16px 16px 90px; } .tabs { padding: 0 16px; } .alertbar { padding: 10px 16px; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .tl li { grid-template-columns: 34px 1fr; } .tl .time { grid-column: 2; } .tl .tag { grid-column: 2; justify-self: start; } .tl .txt { grid-column: 2; }
  .hide-m { display: none !important; }
  .top > .pill { display: none; } .top h1 { flex: 1 1 auto; font-size: 18px; }
  .login { grid-template-columns: 1fr; } .login .art { display: none; } .login .form { padding: 28px 22px; }
  .login .assure { grid-template-columns: 1fr 1fr 1fr; }
  .wizard-cats { grid-template-columns: 1fr 1fr; }
}

/* ───── print (PDF export of reports) ───── */
@media print {
  body { background: #fff; }
  .side, .top, .tabs, .alertbar, .evafab, .eva, .noprint, .toasts { display: none !important; }
  .shell { display: block; height: auto; } .main, .content { overflow: visible; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .printonly { display: block !important; }
}
.printonly { display: none; }
