/* Techner Shield console */
:root {
  --navy-900: #071230; --navy-800: #0b1a3f; --navy-700: #12245a; --navy-600: #1b3170;
  --blue: #1d5bd8; --blue-600: #1a4fc0; --blue-50: #eef4ff; --blue-100: #dbe7ff;
  --ink: #0f1b33; --ink-2: #334155; --muted: #64748b; --line: #e6eaf2; --bg: #f3f6fb;
  --green: #16a34a; --green-50: #e8f7ee; --amber: #f59e0b; --amber-50: #fff6e0; --orange: #f97316;
  --red: #e5383b; --red-50: #fdecec; --slate-50: #f6f8fb;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 27, 51, .05), 0 4px 16px rgba(15, 27, 51, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------------ login */
.login { min-height: 100vh; display: flex; flex-direction: column; background: #eef3fb; }
.login-main { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 0; }
.login-hero { position: relative; overflow: hidden; color: #fff; padding: 64px 72px; background: radial-gradient(1200px 600px at 30% 110%, #1d4ed8 0%, rgba(29, 78, 216, 0) 60%), radial-gradient(800px 500px at 90% 10%, #1e40af 0%, rgba(30, 64, 175, 0) 60%), linear-gradient(160deg, #061230 0%, #0a1d4d 55%, #0b2a7a 100%); clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.login-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(147, 197, 253, .35) 1px, transparent 1.4px); background-size: 14px 14px; mask-image: radial-gradient(500px 280px at 72% 22%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(500px 280px at 72% 22%, #000 0%, transparent 70%); opacity: .8; }
.login-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(3, 10, 30, .55)); }
.hero-inner { position: relative; z-index: 2; max-width: 620px; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 74px; height: 84px; filter: drop-shadow(0 8px 24px rgba(59, 130, 246, .5)); }
.brand h1 { margin: 0; font-size: 40px; font-weight: 750; letter-spacing: -.02em; }
.brand h1 span { color: #4c9bff; }
.brand p { margin: 4px 0 0; color: #c7d6f5; font-size: 17px; }
.hero-rule { width: 64px; height: 3px; background: #3b82f6; border-radius: 2px; margin: 34px 0 30px; }
.hero-title { font-size: 46px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.hero-title span { color: #4c9bff; }
.hero-sub { font-size: 19px; line-height: 1.5; color: #d8e3fa; margin: 0 0 30px; max-width: 520px; }
.hero-feats { display: grid; gap: 14px; }
.hero-feat { display: flex; align-items: center; gap: 16px; font-size: 17px; }
.hero-feat .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(37, 99, 235, .55); box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .35); }
.hero-feat .ic svg { width: 22px; height: 22px; }
.hero-art { position: absolute; z-index: 1; left: 42%; bottom: 40px; width: 300px; opacity: .95; }
.login-side { display: grid; place-items: center; padding: 40px 32px; background: linear-gradient(180deg, #f4f7fd, #eaf0fa); }
.login-card { width: 100%; max-width: 520px; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(15, 27, 51, .12); padding: 40px 36px 28px; text-align: center; }
.login-card .logo { width: 72px; height: 82px; margin: 0 auto 10px; display: block; }
.login-card h2 { margin: 0; font-size: 34px; font-weight: 780; letter-spacing: -.02em; }
.login-card h2 span { color: var(--blue); }
.login-card .sub { color: var(--ink-2); font-size: 18px; margin: 10px 0 26px; }
.field { position: relative; margin-bottom: 16px; text-align: left; }
.field svg.i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-2); width: 20px; height: 20px; }
.field input { width: 100%; height: 54px; border: 1px solid #d5dbe7; border-radius: 10px; padding: 0 48px 0 50px; font-size: 16px; outline: none; transition: .15s; background: #fff; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 91, 216, .12); }
.field .eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; padding: 6px; color: var(--ink-2); }
.field .eye svg.i { position: static; transform: none; }
.login-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 20px; font-size: 15px; }
.login-row label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.login-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
.btn-primary-lg { width: 100%; height: 54px; border: 0; border-radius: 10px; background: linear-gradient(180deg, #1f5fe0, #1748c4); color: #fff; font-size: 17px; font-weight: 650; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 16px rgba(29, 78, 216, .3); }
.btn-primary-lg:disabled { opacity: .6; cursor: default; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-ms { width: 100%; height: 54px; border: 1px solid #d5dbe7; border-radius: 10px; background: #fff; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; }
.trust { margin-top: 24px; color: var(--muted); font-size: 13px; }
.login-foot { background: #0b1a3f; color: #c7d3ec; display: flex; justify-content: space-between; padding: 16px 40px; font-size: 13px; }
.login-foot a { color: #c7d3ec; margin-left: 18px; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; text-align: left; font-size: 14px; }
.alert.err { background: var(--red-50); color: #a1191c; }
.alert.ok { background: var(--green-50); color: #13703a; }
.alert.info { background: var(--blue-50); color: #173f99; }
.otp { display: flex; gap: 10px; justify-content: center; margin: 8px 0 22px; }
.otp input { width: 54px; height: 62px; text-align: center; font-size: 26px; font-weight: 700; border: 1px solid #d5dbe7; border-radius: 10px; outline: none; }
.otp input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 91, 216, .12); }
.mfa-setup { display: grid; grid-template-columns: 200px 1fr; gap: 22px; text-align: left; align-items: center; margin-bottom: 18px; }
.mfa-setup .qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.mfa-setup ol { margin: 0; padding-left: 18px; color: var(--ink-2); line-height: 1.6; font-size: 14px; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--slate-50); border: 1px dashed #c9d2e3; border-radius: 8px; padding: 8px 10px; font-size: 13px; word-break: break-all; margin-top: 8px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0 20px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; }
.codes div { background: var(--slate-50); border-radius: 8px; padding: 10px; }
.link-btn { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; font-weight: 550; }

/* ------------------------------------------------------------------ shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; flex: none; background: linear-gradient(180deg, #0a1636 0%, #0b1a42 60%, #0a1638 100%); color: #cfd8ee; display: flex; flex-direction: column; padding: 22px 16px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand-s { display: flex; gap: 12px; align-items: center; padding: 0 6px 22px; }
.side .brand-s img { width: 40px; height: 46px; }
.side .brand-s b { display: block; color: #fff; font-size: 18px; font-weight: 700; }
.side .brand-s small { color: #93a3c6; font-size: 12px; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; color: #cfd8ee; font-weight: 520; font-size: 15px; margin-bottom: 4px; }
.nav a:hover { background: rgba(255, 255, 255, .05); }
.nav a.on { background: linear-gradient(180deg, #1f5fe0, #1a4fc0); color: #fff; box-shadow: 0 6px 18px rgba(29, 78, 216, .35); }
.nav a svg.i { width: 21px; height: 21px; }
.nav .badge { margin-left: auto; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; }
.nav .sep { height: 1px; background: rgba(255, 255, 255, .07); margin: 10px 6px; }
.side .agent-box { margin-top: auto; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 14px; font-size: 13px; line-height: 1.6; }
.side .agent-box .dot { display: inline-block; width: 8px; height: 8px; background: #22c55e; border-radius: 50%; margin-right: 6px; }
.side .agent-box b { color: #4ade80; }
.side .company { display: flex; align-items: center; gap: 10px; padding: 18px 8px 0; color: #fff; }
.side .company .tm { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.side .company small { display: block; color: #8ea0c6; font-size: 11px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 78px; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top .title { display: flex; align-items: center; gap: 12px; }
.top .title .ti { width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.top h1 { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.01em; }
.top .when { color: var(--ink-2); border-left: 1px solid #d5dbe7; padding-left: 16px; display: flex; align-items: center; gap: 8px; }
.top .when .live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.top .spacer { flex: 1; }
.search { position: relative; width: 340px; }
.search input { width: 100%; height: 44px; border: 1px solid #dbe1ec; border-radius: 22px; padding: 0 44px 0 18px; background: #fff; outline: none; }
.search svg.i { position: absolute; right: 16px; top: 13px; color: var(--ink-2); }
.pill-2fa { display: flex; align-items: center; gap: 8px; background: #dff5e6; color: #13703a; height: 40px; padding: 0 16px; border-radius: 20px; font-weight: 600; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, #1f5fe0, #1748c4); color: #fff; font-weight: 700; display: grid; place-items: center; cursor: pointer; border: 0; }
.menu { position: absolute; right: 28px; top: 70px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 240px; padding: 8px; z-index: 40; }
.menu .who { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who small { color: var(--muted); display: block; }
.menu a, .menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--slate-50); }
.content { padding: 4px 28px 32px; }

/* ------------------------------------------------------------------ cards & grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-h h3 { margin: 0; font-size: 18px; font-weight: 700; }
.card-h .ico { color: var(--navy-700); }
.card-h .more { margin-left: auto; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
.s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.kpi { position: relative; overflow: hidden; padding: 20px 22px 16px; min-height: 160px; }
.kpi .row { display: flex; gap: 14px; position: relative; z-index: 2; }
.kpi .kico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.kpi .kico svg.i { width: 38px; height: 38px; stroke-width: 1.7; }
.kpi .lbl { font-size: 17px; font-weight: 650; }
.kpi .val { font-size: 34px; font-weight: 750; letter-spacing: -.02em; margin-top: 6px; }
.kpi .val small { font-size: 24px; font-weight: 500; color: var(--ink-2); }
.kpi .delta { font-weight: 650; font-size: 14px; margin-left: 10px; }
.kpi .note { color: var(--ink-2); font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .row > div { min-width: 0; }
.kpi .spark { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; z-index: 1; }
.kpi .bar { height: 5px; border-radius: 3px; background: #e5eaf3; margin-top: 16px; position: relative; z-index: 2; }
.kpi .bar i { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.kpi.red { background: linear-gradient(180deg, #fff, #fff4f4); }
.kpi.amber { background: linear-gradient(180deg, #fff, #fff8ec); }
.up { color: var(--green); } .down { color: var(--red); }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.legend { display: grid; gap: 14px; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.legend .d { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.legend b { margin-left: auto; font-weight: 700; padding-left: 20px; }
.hbars { display: grid; gap: 18px; }
.hbar { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 14px; font-size: 16px; }
.hbar .track { height: 18px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 4px; }
.hbar b { text-align: right; }
.protect { background: linear-gradient(180deg, #f2f6ff, #e8efff); border-radius: 12px; padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.protect h4 { margin: 0; font-size: 18px; }
.protect p { margin: 0; color: var(--ink-2); font-size: 13.5px; }

/* ------------------------------------------------------------------ tables, pills, buttons */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-weight: 550; color: var(--ink-2); font-size: 13px; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 10px; border-bottom: 1px solid #f0f2f7; 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: #f8faff; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill.green { background: #dff5e6; color: #13703a; } .pill.amber { background: #fff1d6; color: #9a5b00; }
.pill.red { background: #fde3e3; color: #b4161a; } .pill.blue { background: #e3edff; color: #1a4fc0; }
.pill.gray { background: #eef1f6; color: #475569; } .pill.purple { background: #efe8ff; color: #5b34c7; }
.sev { display: inline-block; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; min-width: 54px; text-align: center; }
.sev.critical { background: #fde3e3; color: #b4161a; } .sev.high { background: #fde3e3; color: #c2262a; }
.sev.medium { background: #fff1d6; color: #b26b00; } .sev.low { background: #e3edff; color: #1a4fc0; } .sev.info { background: #e3edff; color: #1a4fc0; }
.cc { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 800; color: #fff; background: #64748b; margin-right: 8px; }
.mini { display: flex; flex-direction: column; gap: 4px; min-width: 70px; }
.mini .track { height: 5px; background: #e8ecf3; border-radius: 3px; overflow: hidden; width: 70px; }
.mini .track i { display: block; height: 100%; border-radius: 3px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid #d5dbe7; background: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #b9c3d6; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-600); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.warn { background: #fff6e0; border-color: #f6d48a; color: #8a5300; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search { width: 300px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid #d5dbe7; background: #fff; border-radius: 18px; height: 34px; padding: 0 14px; cursor: pointer; font-weight: 550; font-size: 13px; display: inline-flex; align-items: center; color: var(--ink); }
.chip.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty svg.i { width: 40px; height: 40px; color: #b8c2d6; display: block; margin: 0 auto 10px; }

/* device page */
.dev-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.dev-head .dico { width: 56px; height: 56px; border-radius: 14px; background: #e8efff; color: var(--blue); display: grid; place-items: center; }
.dev-head .dico svg.i { width: 30px; height: 30px; }
.dev-head h2 { margin: 0; font-size: 24px; }
.dev-head .meta { color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-size: 13.5px; }
.dev-head .acts { margin-left: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #dfe4ee; margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 12px 16px; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--blue); border-bottom-color: var(--blue); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 520; word-break: break-word; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px; }
.stat .l { color: var(--muted); font-size: 13px; font-weight: 550; }
.stat .v { font-size: 26px; font-weight: 750; margin-top: 4px; }
.gauge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.gauge-row .g b { display: block; font-size: 22px; }
.chart-box { width: 100%; }
.range { display: flex; gap: 4px; margin-left: auto; }
.timeline { border-left: 2px solid #e1e6f0; margin-left: 8px; padding-left: 18px; }
.timeline .e { position: relative; padding-bottom: 16px; }
.timeline .e::before { content: ""; position: absolute; left: -25px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 1px #c9d6f3; }
.timeline .e small { color: var(--muted); display: block; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 520; }
.banner.red { background: var(--red-50); color: #9c1518; border: 1px solid #f6c7c8; }
.banner.amber { background: var(--amber-50); color: #8a5300; border: 1px solid #f6dfa6; }
.banner.blue { background: var(--blue-50); color: #173f99; border: 1px solid #cddcfb; }
.banner .btns { margin-left: auto; }

/* forms */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label.f { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; }
.form label.f span.h { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.input, select.input, textarea.input { height: 40px; border: 1px solid #d5dbe7; border-radius: 9px; padding: 0 12px; outline: none; background: #fff; width: 100%; }
textarea.input { height: auto; padding: 10px 12px; min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 91, 216, .12); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; width: 42px; height: 24px; background: #cfd6e3; border-radius: 12px; position: relative; cursor: pointer; transition: .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { left: 21px; }
.tagbox { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid #d5dbe7; border-radius: 9px; padding: 6px; min-height: 40px; align-items: center; background: #fff; }
.tagbox .tag { background: var(--blue-50); color: var(--blue-600); border-radius: 6px; padding: 4px 8px; font-weight: 650; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.tagbox .tag button { border: 0; background: none; cursor: pointer; color: inherit; padding: 0; font-size: 15px; line-height: 1; }
.tagbox input { border: 0; outline: none; flex: 1; min-width: 120px; height: 28px; }
.section-t { font-size: 15px; font-weight: 700; margin: 6px 0 2px; }
.hint { color: var(--muted); font-size: 13px; }
.subnav { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
pre.code { background: #0b1220; color: #e2e8f0; border-radius: 10px; padding: 14px; overflow-x: auto; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 16, 38, .45); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); padding: 24px; max-height: 90vh; overflow-y: auto; }
.modal.wide { max-width: 760px; }
.modal h3 { margin: 0 0 6px; font-size: 20px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
#toast-root { position: fixed; right: 24px; bottom: 24px; display: grid; gap: 10px; z-index: 200; }
.toast { background: var(--navy-800); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); max-width: 420px; }
.toast.err { background: #b4161a; }

@media (max-width: 1280px) { .s3 { grid-column: span 6; } .s4, .s5, .s7, .s8 { grid-column: span 12; } .s6 { grid-column: span 12; } .search { width: 220px; } }
@media (max-width: 900px) { .side { display: none; } .login-main { grid-template-columns: 1fr; } .login-hero { display: none; } .stat-row { grid-template-columns: 1fr 1fr; } }
.switch input[type=radio] { appearance: auto; -webkit-appearance: radio; width: 18px; height: 18px; background: none; border-radius: 50%; accent-color: var(--blue); }
.switch input[type=radio]::after { display: none; }
