@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #f3f5fa; --surface: #ffffff; --surface2: #f7f9fd; --ink: #0f1b33; --muted: #5b6785; --line: #e3e8f2; --line2: #eef1f7;
  --field: #ffffff; --ro: #f4f6fb; --accent: #2f5bea; --accent-hover: #1d3fb8; --accent-ink: #ffffff; --accent-soft: #e7ecfb;
  --ok: #0b7d6e; --ok-bg: #dcf5f0; --warn: #9a5b00; --warn-bg: #fdf0da; --err: #c62a2f; --err-bg: #fde4e4; --err-line: #f5c2c3;
  --mut: #4a5674; --mut-bg: #eef1f7; --dark: #0b1530; --dark-ink: #ffffff;
  /* navigation */
  --nav-bg: #0b1530; --nav-bg2: #14214a; --nav-on: #1d2b5c; --nav-ink: #c7d0e4; --nav-muted: #8c99b8; --nav-line: #23335f;
  /* chart colours: blue, teal, amber, red, violet, orange, grey */
  --c1: #2f5bea; --c2: #0e9f8e; --c3: #f2a53a; --c4: #e5484d; --c5: #7c5cfc; --c6: #e86a2e; --c7: #a3adc2;
  --t1: #e7ecfb; --t2: #dcf5f0; --t3: #fdf0da; --t4: #fde4e4; --t5: #ece7ff; --t6: #fdeadf; --t7: #eef1f7;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --surface: #121a2e; --surface2: #0f1628; --ink: #e8edf7; --muted: #98a4bf; --line: #24304d; --line2: #1c2741;
    --field: #0f1628; --ro: #172038; --accent: #7a9bff; --accent-hover: #a3baff; --accent-ink: #0b1530; --accent-soft: #1b2a52;
    --ok: #5fd6bf; --ok-bg: #0f3330; --warn: #f2c063; --warn-bg: #3a2b0f; --err: #ff8f92; --err-bg: #3c1619; --err-line: #5c2427;
    --mut: #b9c3d9; --mut-bg: #1c2741; --dark: #e8edf7; --dark-ink: #0b1120;
    --nav-bg: #070d1c; --nav-bg2: #101a35; --nav-on: #1a2850; --nav-line: #1c2a4f;
    --c1: #7a9bff; --c2: #3cc9b3; --c3: #f5b955; --c4: #ff7a7e; --c5: #a48dff; --c6: #ff9a5c; --c7: #6b7896;
    --t1: #1b2a52; --t2: #0f3330; --t3: #3a2b0f; --t4: #3c1619; --t5: #251d4f; --t6: #3b2213; --t7: #1c2741;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #121a2e; --surface2: #0f1628; --ink: #e8edf7; --muted: #98a4bf; --line: #24304d; --line2: #1c2741;
  --field: #0f1628; --ro: #172038; --accent: #7a9bff; --accent-hover: #a3baff; --accent-ink: #0b1530; --accent-soft: #1b2a52;
  --ok: #5fd6bf; --ok-bg: #0f3330; --warn: #f2c063; --warn-bg: #3a2b0f; --err: #ff8f92; --err-bg: #3c1619; --err-line: #5c2427;
  --mut: #b9c3d9; --mut-bg: #1c2741; --dark: #e8edf7; --dark-ink: #0b1120;
  --nav-bg: #070d1c; --nav-bg2: #101a35; --nav-on: #1a2850; --nav-line: #1c2a4f;
  --c1: #7a9bff; --c2: #3cc9b3; --c3: #f5b955; --c4: #ff7a7e; --c5: #a48dff; --c6: #ff9a5c; --c7: #6b7896;
  --t1: #1b2a52; --t2: #0f3330; --t3: #3a2b0f; --t4: #3c1619; --t5: #251d4f; --t6: #3b2213; --t7: #1c2741;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 15px; margin: 0; }
.lead { color: var(--muted); margin: 2px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
code { font-family: Consolas, monospace; font-size: 12.5px; background: var(--mut-bg); padding: 1px 6px; border-radius: 4px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.mark { width: 34px; height: 34px; border-radius: 8px; background: var(--dark); color: var(--dark-ink); display: grid; place-items: center; font-size: 11px; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0; flex-wrap: wrap; }
.who small { font-weight: 400; color: var(--muted); }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; }

/* shell */
.shell { display: flex; flex-wrap: wrap; min-height: calc(100vh - 59px); }
.side { flex: 1 1 230px; max-width: 100%; background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; }
@media (min-width: 900px) { .side { max-width: 260px; } }
.side h3 { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 10px 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; }
.scope { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--surface2); }
.scope form { display: grid; gap: 6px; }
.dn { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.main { flex: 999 1 560px; min-width: 0; padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 600px) { .main { padding: 18px 16px 40px; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.hd { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hd p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.pad { padding: 16px 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 18px; padding: 18px; }
.full { grid-column: 1 / -1; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > .wide { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cols > .narrow { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; text-decoration: none; color: var(--ink); display: block; }
.stat:hover { color: var(--ink); border-color: var(--accent); }
.stat b { display: block; font-size: 26px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 13px; }
.stat b.err { color: var(--err); } .stat b.warn { color: var(--warn); } .stat b.ok { color: var(--ok); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }

/* forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.req { color: var(--err); }
input, select, textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); color: var(--ink); font: inherit; }
input[type=file] { padding: 7px; }
input[readonly] { background: var(--ro); color: var(--muted); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); margin: 0; min-height: 32px; }
.chk input, td input[type=checkbox], th input[type=checkbox] { width: 18px; height: 18px; min-height: 0; flex: none; }
.note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.errmsg { display: block; font-size: 12.5px; color: var(--err); margin-top: 4px; }
.errmsg:empty { display: none; }
.input-validation-error { border-color: var(--err); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > .grow { flex: 1; min-width: 200px; }
.right { justify-content: flex-end; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 7px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { color: var(--accent-ink); background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.sec { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.sec:hover { background: var(--bg); color: var(--ink); }
.btn.danger { background: var(--surface); color: var(--err); border-color: var(--err-line); }
.btn.danger:hover { background: var(--err-bg); color: var(--err); }
.btn.block { width: 100%; }
.btn[disabled], button[disabled] { opacity: .48; cursor: not-allowed; pointer-events: none; }
.linkbtn[disabled] { opacity: .48; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.linkbtn.red { color: var(--err); }
.actions { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
.actions form { margin: 0; }

/* alerts & pills */
.alert { border-radius: 8px; padding: 10px 14px; font-weight: 600; font-size: 13.5px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--accent-soft); color: var(--accent); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.err { background: var(--err-bg); color: var(--err); } .pill.mut { background: var(--mut-bg); color: var(--mut); }
.pill.blue { background: var(--accent-soft); color: var(--accent); } .pill.dark { background: var(--dark); color: var(--dark-ink); }
.pwbox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--ok); border-radius: 8px; background: var(--ok-bg); }
.pwbox code { font-size: 16px; background: var(--surface); padding: 4px 10px; user-select: all; }

/* tables */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface2); white-space: nowrap; }
td { padding: 9px 14px; border-bottom: 1px solid var(--line2); white-space: nowrap; vertical-align: top; }
td.wrap { white-space: normal; min-width: 220px; }
tr.on td { background: var(--accent-soft); }
td.c, th.c { text-align: center; }
.y { color: var(--ok); font-weight: 700; } .n { color: var(--muted); }
.old { color: var(--err); text-decoration: line-through; } .new { color: var(--ok); font-weight: 600; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; color: var(--muted); }
.selbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px; background: var(--accent-soft); border-bottom: 1px solid var(--line); font-weight: 600; }
.selbar select, .selbar input { width: auto; min-width: 180px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: end; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; padding: 16px 18px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* report tiles, steps, misc */
.reps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.rep { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.rep:hover { color: var(--ink); border-color: var(--accent); }
.rep b { font-size: 18px; }
.rep.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--muted); }
.step b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mut-bg); font-size: 12px; }
.step.done b { background: var(--ok); color: #fff; } .step.on { border-color: var(--accent); color: var(--accent); } .step.on b { background: var(--accent); color: var(--accent-ink); }
.sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 16px 18px; }
.sum div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.sum b { display: block; font-size: 22px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.lock { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; background: var(--mut-bg); color: var(--mut); font-size: 12.5px; font-weight: 600; }
.loginwrap { min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: linear-gradient(160deg, #eef3ff, #f3f5fa); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .loginwrap { background: var(--bg); } }
:root[data-theme="dark"] .loginwrap { background: var(--bg); }
.login { width: 100%; max-width: 400px; box-sizing: border-box; margin: 0; padding: 32px 30px 26px; border-radius: 16px; box-shadow: 0 14px 36px rgba(11,21,48,.10); }
.lbrand { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 14px; }
.lbrand img { display: block; }
.lwm { font-size: 30px; line-height: 1.15; color: var(--ink); }
.lbrand h1 { margin: 0; font: 400 14px var(--font); color: var(--muted); }
.login .center { text-align: center; margin: 0; }
.lfoot { margin: 18px 0 0; font-size: 12px; color: #8c99b8; text-align: center; }
.login form { display: grid; gap: 14px; margin-top: 22px; }
ul.plain { margin: 0; padding: 14px 18px 14px 36px; display: grid; gap: 8px; font-size: 13px; }
.mt { margin: 18px 0 0; } .m0 { margin: 0; } .nowrap { white-space: nowrap; } .w-auto { width: auto; }
.hidden-field { display: none; }

/* OU tree */
.tree summary { cursor: pointer; padding: 6px 0; font-weight: 600; }
.tree summary::marker { color: var(--muted); }
.tree .kids { margin-left: 7px; padding-left: 16px; border-left: 1px solid var(--line); }
.tree .leaf { padding: 6px 0 6px 18px; }
.tree a { text-decoration: none; }
.tree a:hover { text-decoration: underline; }
.cnt { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 99px; background: var(--mut-bg); color: var(--mut); font-size: 12px; font-weight: 600; }

/* setup wizard */
.wiz { display: flex; flex-wrap: wrap; min-height: 100vh; }
.wiz-rail { flex: 1 1 260px; max-width: 100%; background: var(--surface); border-right: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) { .wiz-rail { max-width: 300px; } }
.wiz-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wiz-steps a, .wiz-steps span { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 600; }
.wiz-steps a:hover { background: var(--bg); color: var(--ink); }
.wiz-steps b { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid var(--line); }
.wiz-steps li.done a, .wiz-steps li.done span { color: var(--ok); } .wiz-steps li.done b { background: var(--ok-bg); border-color: transparent; }
.wiz-steps li.on span { background: var(--dark); color: var(--dark-ink); } .wiz-steps li.on b { background: var(--dark-ink); color: var(--dark); border-color: transparent; }
.wiz-main { flex: 999 1 560px; min-width: 0; padding: 40px 48px 64px; display: flex; flex-direction: column; gap: 18px; max-width: 1040px; }
@media (max-width: 600px) { .wiz-main { padding: 24px 16px 40px; } }
.wiz-main h1 { font-size: 26px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wiz-head { display: flex; flex-direction: column; gap: 10px; }
.wiz-form .grid { padding: 20px; }
.wiz-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding: 0 20px 20px; }
form.wiz-actions, div.wiz-actions { padding: 0; }
.wiz-note { display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
progress.bar { width: 100%; height: 8px; margin-top: 10px; accent-color: var(--accent); }

/* check lists (setup, domain status) */
ul.checks { list-style: none; margin: 0; padding: 4px 0; }
ul.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 18px; border-bottom: 1px solid var(--line2); }
ul.checks li:last-child { border-bottom: 0; }
ul.checks .ic { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--mut-bg); color: var(--mut); }
ul.checks li.y .ic { background: var(--ok-bg); color: var(--ok); }
ul.checks li.bad .ic { background: var(--err-bg); color: var(--err); }
ul.checks li.warnc .ic { background: var(--warn-bg); color: var(--warn); }
.bad { color: var(--err); font-weight: 700; } .warnc { color: var(--warn); font-weight: 700; }
details summary { cursor: pointer; color: var(--accent); }

/* settings */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.status-panel { display: flex; flex-direction: column; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 18px; padding: 16px 18px; }
.perm-grid h3 { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 0; }
textarea { min-height: 90px; resize: vertical; }


/* ================= v0.2.2 look: navy menu, top bar, cards, colour tiles, charts ================= */
h1 { font-family: var(--display); font-size: 26px; letter-spacing: -.01em; }
h2 { font-family: var(--display); font-size: 15.5px; font-weight: 600; }
.card { border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15, 27, 51, .04); }
.hd { padding: 16px 20px; }
.btn { border-radius: 9px; }
input, select, textarea { border-radius: 9px; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }

/* shell */
body.app { min-height: 100vh; }
.app .shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.app .side { flex: 1 1 248px; max-width: 100%; background: var(--nav-bg); color: var(--nav-ink); border-right: 0; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 900px) {
  .app .shell { flex-wrap: nowrap; }
  .app .side { flex: 0 0 248px; max-width: 248px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.app .side .logo { color: #ffffff; padding: 0 6px 12px; }
.app .side .logo small { color: var(--nav-muted); }
.app .side .mark { background: var(--c1); color: #ffffff; font-family: var(--display); font-size: 13px; }
.app .side h3 { color: var(--nav-muted); margin: 16px 10px 6px; }
.app .side .scope { background: var(--nav-bg2); border: 0; border-radius: 10px; padding: 10px; }
.app .side .scope label { color: var(--nav-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.app .side .scope select { background: var(--nav-bg); color: #ffffff; border-color: var(--nav-line); min-height: 38px; }
.app .nav a { color: var(--nav-ink); font-weight: 500; min-height: 40px; }
.app .nav a:hover { background: var(--nav-bg2); color: #ffffff; }
.app .nav a.on { background: var(--nav-on); color: #ffffff; font-weight: 700; }
.app .nav a.on svg { color: var(--c1); }
.side-foot { margin-top: auto; padding: 12px; border-radius: 10px; background: var(--nav-bg2); display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--nav-muted); }
.side-foot b { color: #ffffff; font-weight: 600; word-break: break-all; }
.st-ok { color: #7fe0c4; } .st-warn { color: #f5c26b; }
.app .col { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 64px; padding: 10px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .topbar { padding: 10px 16px; } }
.search { flex: 1 1 280px; max-width: 560px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); margin: 0; }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search input { border: 0; background: transparent; min-height: 40px; padding: 0; }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.who { margin-left: auto; }
.who small { display: block; font-size: 11.5px; }
.app .main { padding: 24px 28px 56px; gap: 18px; }
@media (max-width: 600px) { .app .main { padding: 18px 16px 40px; } }
.top .mark { background: var(--c1); color: #fff; }

/* colour KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); } }
.kpi { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(15, 27, 51, .04); }
.kpi:hover { color: var(--ink); border-color: var(--accent); }
.kpi .lbl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kpi .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.kpi .ic svg { width: 16px; height: 16px; }
.kpi .val { font-family: var(--display); font-size: 27px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.kpi .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi svg.meter { width: 100%; height: 6px; }
.meter .bg { fill: var(--line2); }
/* colour classes for icons, bars and chart parts */
.k1 { color: var(--c1); background: var(--t1); } .k2 { color: var(--c2); background: var(--t2); } .k3 { color: var(--c3); background: var(--t3); }
.k4 { color: var(--c4); background: var(--t4); } .k5 { color: var(--c5); background: var(--t5); } .k6 { color: var(--c6); background: var(--t6); } .k7 { color: var(--mut); background: var(--t7); }
.f1 { fill: var(--c1); } .f2 { fill: var(--c2); } .f3 { fill: var(--c3); } .f4 { fill: var(--c4); } .f5 { fill: var(--c5); } .f6 { fill: var(--c6); } .f7 { fill: var(--c7); }
.s1 { stroke: var(--c1); } .s2 { stroke: var(--c2); } .s3 { stroke: var(--c3); } .s4 { stroke: var(--c4); } .s5 { stroke: var(--c5); } .s6 { stroke: var(--c6); } .s7 { stroke: var(--c7); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dot.k1 { background: var(--c1); } .dot.k2 { background: var(--c2); } .dot.k3 { background: var(--c3); } .dot.k4 { background: var(--c4); }
.dot.k5 { background: var(--c5); } .dot.k6 { background: var(--c6); } .dot.k7 { background: var(--c7); }

/* charts */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 20px; }
svg.donut { width: 168px; height: 168px; flex: none; }
.donut circle { fill: none; stroke-width: 22; }
.donut .track { stroke: var(--line2); }
.donut .big { font-family: var(--display); font-size: 22px; font-weight: 700; fill: var(--ink); }
.donut .cap { font-size: 11px; fill: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 160px; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { margin-left: auto; }
.bars { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.bars .bar-row { display: flex; flex-direction: column; gap: 5px; }
.bars .bar-row div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.bars .bar-row span { color: var(--muted); }
.bars svg { width: 100%; height: 12px; border-radius: 6px; }
.bars svg .bg { fill: var(--line2); }
.attn { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.attn a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.attn a:hover { color: var(--ink); filter: brightness(.98); }
.attn .num { font-family: var(--display); font-size: 20px; font-weight: 700; min-width: 64px; }
.attn .t { flex: 1; font-weight: 600; } .attn .t small { display: block; font-weight: 400; color: var(--muted); }
.attn .go { font-weight: 700; }
.feed { list-style: none; margin: 0; padding: 4px 20px 12px; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed .pill { min-width: 84px; text-align: center; }
.feed .when { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty { padding: 18px 20px; color: var(--muted); }

/* report tiles: colour per category */
.rep { border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(15, 27, 51, .04); }
.rep b { font-family: var(--display); font-size: 20px; }
.rep .cat { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.rep.on { background: var(--accent-soft); }
.tx1 { color: var(--c1); } .tx2 { color: var(--c2); } .tx3 { color: var(--warn); } .tx4 { color: var(--c4); } .tx5 { color: var(--c5); } .tx6 { color: var(--c6); } .tx7 { color: var(--muted); }

/* bars: square-ended SVG inside a rounded track (rounded ends no longer stretch) */
.track { display: block; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line2); }
.track.thin { height: 6px; border-radius: 3px; }
.track svg { display: block; width: 100%; height: 100%; }
.bars a { color: var(--ink); text-decoration: none; } .bars a:hover { color: var(--accent); }
/* needs attention: number left, text right */
.attn a { display: grid; grid-template-columns: minmax(70px, auto) 1fr; align-items: center; gap: 14px; }
.attn .t small b { color: inherit; }
.attn a.k1 .num { color: var(--c1); } .attn a.k3 .num { color: var(--warn); } .attn a.k4 .num { color: var(--c4); }
.attn a.k5 .num { color: var(--c5); } .attn a.k6 .num { color: var(--c6); }
.attn a .t { color: var(--ink); }
/* report cards (as in the preview) */
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(15, 27, 51, .04); }
.rcard.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.rcard .band { display: block; height: 6px; }
.f1-bg { background: var(--c1); } .f2-bg { background: var(--c2); } .f3-bg { background: var(--c3); } .f4-bg { background: var(--c4); }
.f5-bg { background: var(--c5); } .f6-bg { background: var(--c6); } .f7-bg { background: var(--c7); }
.rcard .body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.rcard .tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.rcard .ttl { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 14px; }
.rcard .ttl:hover { color: var(--accent); }
.rcard .num { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.rcard .acts { display: flex; gap: 14px; font-size: 12.5px; font-weight: 600; margin-top: auto; padding-top: 4px; }
.rcard .acts a { text-decoration: none; }
/* two-step sign-in */
.qr { display: grid; place-items: center; padding: 10px; background: #ffffff; border-radius: 12px; border: 1px solid var(--line); margin: 14px 0 8px; }
.qr img { display: block; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.codes code { font-size: 15px; padding: 8px; text-align: center; }

/* column charts (dashboard: activity, password expiry) */
.charts.two { margin-top: 16px; margin-bottom: 16px; }
.colchart { padding: 16px 20px 4px; }
.colchart svg { display: block; width: 100%; height: 150px; }
.colchart .base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.colchart rect:hover { opacity: .75; }
.colchart .axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.legend.inline { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; padding: 8px 20px 16px; }
.legend.inline b { margin-left: 4px; }
.pad-x { padding: 0 20px 16px; }

/* menu counts */
.nav a .cnt { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.12); color: inherit; opacity: .85; }

/* reports: find + category chips */
.rfind { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.rfind input[type=search] { flex: 0 1 280px; min-height: 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.chip b { color: var(--muted); font-weight: 600; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.hidden { display: none !important; }

/* users: side panel for the picked user */
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
/* v0.5: the list uses the full width; the picked item opens in a drawer over it (Esc, ✕ or a click outside closes) */
.upanel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 60; overflow-y: auto; border-radius: 0; border: 0; border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(11, 21, 48, .18); animation: drawer-in .18s ease-out; }
.upanel.wide-panel { width: min(560px, 100vw); }
.drawer-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(15, 27, 51, .22); cursor: pointer; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .upanel { animation: none; } }
.upanel { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.uhead { display: flex; align-items: center; gap: 12px; }
.uhead h2 { margin: 0; font-size: 16px; }
.uhead .x { margin-left: auto; font-size: 22px; line-height: 1; color: var(--muted); text-decoration: none; padding: 2px 6px; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c1); color: #fff; font-weight: 700; }
.ulist { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 13px; }
.ulist dt { color: var(--muted); }
.ulist dd { margin: 0; word-break: break-word; }
.uacts { display: flex; flex-wrap: wrap; gap: 8px; }

/* v0.2.6 object pages */
.stack { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ustat { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar.k1 { background: var(--t1); color: var(--c1); } .avatar.k2 { background: var(--t2); color: var(--c2); }
.avatar.k3 { background: var(--t3); color: var(--c3); } .avatar.k5 { background: var(--t5); color: var(--c5); } .avatar.k6 { background: var(--t6); color: var(--c6); }
.upanel .chips { margin-top: 6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); align-items: center; }
.tabs a { padding: 12px 10px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs a b { font-weight: 600; font-size: 11.5px; color: var(--muted); margin-left: 3px; }
.tabs .end { margin-left: auto; font-size: 12.5px; }
td.nest { padding-left: 34px; }
.ou-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .ou-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.subous { list-style: none; margin: 0; padding: 0; }
.subous li { display: flex; flex-direction: column; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--line2); }
.subous li > div { display: flex; justify-content: space-between; gap: 10px; }
.subous .track svg { height: 10px; }
.danger-zone { border-color: var(--err-bg); }
.danger-zone .hd h2 { color: var(--err); }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
a.who { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

/* v0.2.7 reports: categories → list → options + results */
.page-head .rfind input { width: 340px; max-width: 100%; }
.rgrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .rgrid { grid-template-columns: 220px 320px minmax(0, 1fr); } }
.rcats { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.rcats .eyebrow { padding: 6px 10px 8px; }
.rcats a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.rcats a:hover { background: var(--bg); }
.rcats a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.rcats a b { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.rlist .ritem { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-top: 1px solid var(--line2); border-left: 3px solid transparent; color: var(--ink); text-decoration: none; }
.rlist .ritem span { font-size: 12.5px; color: var(--muted); }
.rlist .ritem .tag { align-self: flex-start; }
.rlist .ritem:hover { background: var(--bg); }
.rlist .ritem.on { background: var(--accent-soft); border-left-color: var(--accent); }
.rlist .ritem.on b { color: var(--accent); }
.rrun .hd h2 { margin: 6px 0 2px; font-size: 17px; }
.ropts { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 18px; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0; }
.ropts > div { min-width: 160px; }
.ropts > div:first-of-type { flex: 1 1 260px; }
.rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.rhead .big { font: 700 22px "Space Grotesk", sans-serif; }
.row.end { margin-left: auto; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.pager { display: inline-flex; gap: 14px; align-items: center; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }

/* v0.2.7 OUs: tree + selected OU on one page */
.ougrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .ougrid { grid-template-columns: 360px minmax(0, 1fr); } .outree { position: sticky; top: 16px; } }
.outree { display: flex; flex-direction: column; max-height: calc(100vh - 120px); overflow: hidden; }
.outree .tree { overflow: auto; padding: 4px 12px 14px; }
.pad-s { padding: 12px; border-bottom: 1px solid var(--line); margin: 0; }
.tree .leaf.on, .tree summary.on { background: var(--accent-soft); border-radius: 8px; }
.tree .leaf.on a, .tree summary.on a { font-weight: 700; color: var(--accent); }
.oudetail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ouhead { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px; }
.ouname { margin: 2px 0 6px; font: 700 22px "Space Grotesk", sans-serif; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 300px; padding: 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 32px rgba(15, 27, 51, .18); }
.btn.block { width: 100%; }

/* v0.2.7 compact side-panel forms: two columns, actions always visible */

.phead { display: flex; align-items: center; gap: 10px; margin: -18px -18px 0; padding: 12px 18px; background: var(--bg); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.phead h2 { margin: 0; font-size: 16px; }
.phead .x { font-size: 22px; line-height: 1; color: var(--muted); text-decoration: none; padding: 2px 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0; }
.grid2 .full { grid-column: 1 / -1; }
.pfoot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }

/* v0.2.8 menu: + New, sections */
.col { min-width: 0; }
.page-head .rfind { max-width: 100%; }
.page-head .rfind input { width: min(340px, 100%); }
.newmenu { position: relative; margin: 4px 0 6px; }
.newmenu > summary { list-style: none; cursor: pointer; justify-content: center; }
.newmenu > summary::-webkit-details-marker { display: none; }
.newmenu-body { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 8px; box-shadow: 0 16px 40px rgba(11, 21, 48, .35); }
.newmenu-body .eyebrow { padding: 6px 10px; font-size: 11px; }
.newmenu-body a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.newmenu-body a:hover { background: var(--accent-soft); }
.newmenu-body .ic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; font-weight: 800; }
.newmenu-body small { display: block; color: var(--muted); font-size: 12px; }

/* v0.2.9 background-job progress */
.progress { height: 8px; border-radius: 4px; overflow: hidden; background: var(--line2); margin: 12px 0 8px; }
.progress svg { display: block; width: 100%; height: 8px; }

/* v0.2.10 setup: service account or gMSA */
.wiz-sub { margin: 8px 0 0; font-size: 16px; }
.acct-choice { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .acct-choice { grid-template-columns: 1fr 1.25fr; } }
.acct { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; cursor: pointer; border: 1px solid var(--line); }
.acct:has(input[type=radio]:checked), .acct.on { border: 2px solid var(--accent); box-shadow: 0 8px 24px rgba(47, 91, 234, .12); }
.acct-hd { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.acct .grid { padding: 0; }
.acct-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line2); padding-top: 12px; }
.acct-steps li span { display: block; }

/* v0.2.11: radios and checkboxes never take the text-field size */
input[type=radio], input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; border-radius: 50%; accent-color: var(--accent); }
input[type=checkbox] { border-radius: 4px; }
.acct-hd b { flex: 1; }
.acct-mode { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* v0.3.0 Sylvadir brand: leaf mark + two-tone wordmark */
.brandmark { width: 34px; height: 34px; flex: none; display: block; }
.wm { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.wm > span { color: #14b8a6; }
.app .side .logo .wm { color: #fff; }

/* ---------- licence (v0.4) ---------- */
.licbar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 10px; font-size: 13px; border: 1px solid; }
.licbar .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.licbar .btn { margin-left: auto; height: 30px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
.licbar > .muted { margin-left: auto; }
.licbar.trial { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.licbar.soon { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.licbar.ended { background: var(--err-bg); color: var(--err); border-color: transparent; }
.licbar span { color: inherit; }

.lichero { position: relative; overflow: hidden; border-radius: 18px; padding: 28px 32px; display: flex; align-items: center; gap: 30px; color: rgba(255,255,255,.75); }
.lichero.trial, .lichero.active { background: linear-gradient(120deg, #0b1530, #1e2f6b 60%, #2f5bea); }
.lichero.soon { background: linear-gradient(120deg, #2a1a05, #6b4410 60%, #b7791f); }
.lichero.ended { background: linear-gradient(120deg, #2a0b0b, #6b1414 60%, #b91c1c); }
.lichero b { color: #fff; }
.lichero p { margin: 0; font-size: 14px; }
.lh-bg { position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; opacity: .08; pointer-events: none; }
.lh-main { position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lh-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lh-title h2 { margin: 0; font: 700 22px var(--display); color: #fff; }
.lh-pill { padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 12px; font-weight: 700; }
.lichero.active .lh-pill { color: #5eead4; border-color: rgba(94,234,212,.4); }
.lichero.trial .lh-pill { color: #a5b4fc; }
.lichero.soon .lh-pill { color: #fcd34d; }
.lichero.ended .lh-pill { color: #fca5a5; }
.lh-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.lh-actions .btn.lh-w { background: #fff; color: #0f1b33; border: 0; }
.lh-actions .btn.lh-o { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.lh-ring { position: relative; width: 132px; height: 132px; flex: none; }
.lh-ring svg { display: block; }
.rg-track { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 10; }
.rg-fill { fill: none; stroke: #14b8a6; stroke-width: 10; stroke-linecap: round; }
.lichero.soon .rg-fill { stroke: #fbbf24; } .lichero.ended .rg-fill { stroke: #fca5a5; }
.rg-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rg-text b { font: 700 30px var(--display); line-height: 1; }
.rg-text b span { font-size: 18px; color: rgba(255,255,255,.7); }
.rg-text small { font-size: 11px; margin-top: 4px; }

.licstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.licstat { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.licstat p { margin: 0; font-size: 12.5px; color: var(--muted); }
.ls-hd { font-size: 13px; font-weight: 600; color: var(--muted); }
.ls-big { font: 700 22px var(--display); color: var(--ink); }
.ls-bar { width: 100%; height: 8px; display: block; }
.lb-track { fill: var(--line); } .lb-fill { fill: #14b8a6; } .lb-over { fill: var(--warn); }
.licstat .ls-warn { color: var(--warn); font-weight: 600; }

.licgrid { display: grid; grid-template-columns: 1.15fr 1fr .8fr; gap: 16px; margin-top: 16px; align-items: start; }
.seatlist { padding: 4px 18px; }
.seat { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.seat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.seat-who small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .chip { padding: 2px 9px; font-size: 11.5px; }
.seat .chip.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.seat .chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.seat .chip.free { background: var(--mut-bg); color: var(--muted); border-color: transparent; }
.okc { color: var(--ok); }
.seat-rel { margin: 0; } .seat-rel .btn { height: 26px; padding: 0 10px; font-size: 12px; }
.reqcode { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.reqcode code { flex: 1; font-size: 12px; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.uploadlic { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.uploadlic textarea { width: 100%; box-sizing: border-box; font: 12px ui-monospace, monospace; margin-top: 6px; }
.tline { list-style: none; margin: 0; padding: 8px 18px 16px; }
.tline li { position: relative; padding: 0 0 14px 22px; display: flex; flex-direction: column; font-size: 13px; }
.tline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #14b8a6; }
.tline li::after { content: ""; position: absolute; left: 5px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.tline li:last-child::after { display: none; }
.tline li.next::before { background: var(--line2); }
.tline small { color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .licstats, .licgrid { grid-template-columns: 1fr; } .lichero { flex-direction: column; align-items: flex-start; } }

/* ---------- reports (v0.5) ---------- */
.rfavs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.rfav { padding: 16px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.rfav-top { display: flex; align-items: center; gap: 8px; }
.rfav-top .rstar { margin-left: auto; }
.rfav-name { font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.rfav-name:hover { color: var(--accent); }
.rstar button { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--line2); padding: 2px 4px; }
.rstar button.on { color: #f5b301; }
.rstar button:hover { color: #f5b301; }
.rtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 8px; }
.rtile { padding: 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: border-color .12s, transform .12s; }
.rtile:hover { border-color: var(--accent); transform: translateY(-1px); }
.rtile.on { border: 2px solid var(--accent); padding: 15px; }
.rtile .ic, .rrow .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.rtile .ic svg, .rrow .ic svg { width: 19px; height: 19px; }
.rmain { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .rmain { grid-template-columns: minmax(0, 1fr); } }
.rrow { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line2); }
.rrow .ic { width: 34px; height: 34px; border-radius: 9px; }
.rrow-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.rrow-name span { font-size: 12.5px; color: var(--muted); }
.rrow-name:hover b { color: var(--accent); }
.rrow-last { width: 200px; flex: none; }
@media (max-width: 1300px) { .rrow-last { display: none; } }
.rrecent { padding-bottom: 8px; }
.rrec { display: flex; flex-direction: column; gap: 2px; padding: 9px 18px; border-top: 1px solid var(--line2); color: var(--ink); text-decoration: none; font-size: 13px; }
.rrec:hover b { color: var(--accent); }
.rback { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-size: 13.5px; }
.rback .rstar { margin-left: auto; }
.rback .rstar button { font-size: 13px; color: var(--muted); }
.rback .rstar button.on { color: #b88600; }

/* ---------- v0.5.1 polish: collapsible sidebar (<900px), confirm dialog, theme toggle ---------- */
.side-head { display: flex; align-items: center; gap: 8px; }
.side-head .logo { flex: 1; min-width: 0; }
.side-close { display: none; background: none; border: 0; color: var(--nav-ink); font-size: 24px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.menu-btn { display: none; }
.side-scrim { display: none; }
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .side-close { display: inline-flex; }
  .app .side { position: fixed; top: 0; left: 0; bottom: 0; width: 270px; max-width: 85vw; z-index: 80; overflow-y: auto; transform: translateX(-105%); transition: transform .18s ease-out; box-shadow: 12px 0 36px rgba(11,21,48,.35); }
  .app .side.open { transform: translateX(0); }
  .side-scrim.open { display: block; position: fixed; inset: 0; z-index: 75; background: rgba(11,21,48,.45); }
}
.theme-btn { min-height: 34px; padding: 0 10px; font-size: 12.5px; }

dialog.cdialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 0; width: min(440px, 92vw); box-shadow: 0 20px 50px rgba(11,21,48,.28); }
dialog.cdialog::backdrop { background: rgba(11,21,48,.45); backdrop-filter: blur(2px); }
.cd-box { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.cd-box h2 { margin: 0; font-size: 17px; }
.cd-box p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cd-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.bt { border-top: 1px solid var(--line); }
.pt { padding-top: 12px; }
.pad-chips { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.u-sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

