/* AeroDesk - one stylesheet, no build step, no external fonts. */

:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --ink: #16202f;
  --ink-2: #3b4658;
  --muted: #6a7589;
  --line: #e2e7ef;
  --line-2: #cfd7e3;
  --accent: #2458d6;
  --accent-ink: #ffffff;
  --accent-soft: #e8efff;
  --ok: #107a4a;
  --ok-soft: #e3f5ec;
  --warn: #9a5b00;
  --warn-soft: #fdf3dd;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e131b;
    --panel: #151c27;
    --panel-2: #111823;
    --ink: #e6ebf3;
    --ink-2: #c2cad8;
    --muted: #8d98ad;
    --line: #243044;
    --line-2: #31405a;
    --accent: #6f9bff;
    --accent-ink: #0b1220;
    --accent-soft: #1b2944;
    --ok: #4ade9a;
    --ok-soft: #12291f;
    --warn: #f5b454;
    --warn-soft: #2b2212;
    --bad: #ff8a80;
    --bad-soft: #2e1616;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 620; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- shell ---------- */

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 680; font-size: 15px; }
.brand img { width: 26px; height: 26px; }
.brand small { display: block; font-weight: 450; font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 10px 4px; }
.nav a {
  display: block; padding: 7px 10px; border-radius: 7px; color: var(--ink-2); font-weight: 500;
}
.nav a:hover { background: var(--panel-2); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.side .me { margin-top: 22px; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.side .me form { margin-top: 8px; }

.main { padding: 26px 32px 60px; min-width: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head p { margin: 4px 0 0; color: var(--muted); }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.head .actions input, .head .actions select { width: auto; min-width: 0; flex: 0 1 220px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav .label { display: none; }
  .main { padding: 18px 16px 40px; }
}

/* ---------- panels ---------- */

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.panel > .ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel > .ph p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.panel > .pb { padding: 16px 18px; }
.panel > .pb.flush { padding: 0; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .k { color: var(--muted); font-size: 12.5px; }
.tile .v { font-size: 24px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--muted); font-size: 12px; }

/* ---------- tables ---------- */

.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.wrap { white-space: normal; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .trunc { display: inline-block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.scroll { overflow-x: auto; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }

/* ---------- badges ---------- */

.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---------- forms ---------- */

label { display: block; font-weight: 550; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px;
}
textarea { min-height: 110px; font-family: var(--mono); font-size: 12.5px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; margin-bottom: 10px; }
.check input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--accent); }
.check span small { display: block; font-weight: 400; }
.inline { display: inline; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 13.5px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--bad); border-color: var(--line-2); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn.big { padding: 13px 24px; font-size: 15.5px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: default; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--bad-soft); color: var(--bad); }
.flash ul { margin: 6px 0 0; padding-left: 18px; font-weight: 400; }

/* ---------- categories picker ---------- */

.catgroup { border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; }
.catgroup > header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; }
.catgroup > header .tools { display: flex; gap: 6px; }
.catlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 14px; padding: 10px 12px; }
.catlist .check { margin: 3px 0; font-weight: 450; }
.catlist .n { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* ---------- tabs ---------- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--accent); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* ---------- key/value ---------- */

.kv { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.copy { display: flex; gap: 8px; align-items: center; }
.copy { margin-top: 6px; }
/* Policy values are read and copied whole: wrap them rather than hide them behind a scrollbar. */
.copy code { background: var(--panel-2); border: 1px solid var(--line); padding: 5px 8px; border-radius: 6px; flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------- bars ---------- */

.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { position: relative; height: 22px; background: var(--panel-2); border-radius: 5px; overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); border-right: 2px solid var(--accent); }
.bar .fill.bad { background: var(--bad-soft); border-color: var(--bad); }
.bar .lbl { position: relative; padding: 0 8px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}

.steps { margin: 8px 0 0; padding-left: 18px; }
.verdict { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; margin-bottom: 10px; }

/* ---------- login & portal ---------- */

.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.card .brand { padding: 0 0 18px; }
.card h1 { margin-bottom: 6px; }
.card .sub { color: var(--muted); margin-bottom: 22px; }
.card .btn { width: 100%; }
.card .alt { margin-top: 18px; text-align: center; font-size: 13px; }
.gmark { width: 18px; height: 18px; }

.portal { max-width: 880px; margin: 0 auto; padding: 28px 16px 60px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 12px; flex-wrap: wrap; }
.topbar .who { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.hero { text-align: center; padding: 42px 24px 36px; }
.hero h1 { font-size: 26px; margin-bottom: 8px; }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.hero .status { margin-top: 16px; min-height: 22px; color: var(--muted); }
.hero .status.err { color: var(--bad); }
.hero .buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.fact { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.fact .k { color: var(--muted); font-size: 12px; }
.fact .v { font-weight: 600; margin-top: 2px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ---------- focus and motion ---------- */

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- portal, redesigned ---------- */

.hero .lead { font-size: 15px; }
.hero .meta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: -10px 0 22px; }
.hero .meta b { color: var(--ink-2); font-weight: 600; }
.statusdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); margin-right: 6px; vertical-align: 0; }
.statusdot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.statusdot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.statusdot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }

.stepper { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 18px 0 0; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; background: var(--panel-2); }
.stepper li.now { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.stepper li.done { color: var(--ok); border-color: transparent; background: var(--ok-soft); }
.stepper li .n { font-weight: 700; font-variant-numeric: tabular-nums; }

.notice { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.notice h2 { margin-bottom: 8px; }
.notice p { color: var(--ink-2); white-space: pre-line; }

.meter { height: 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; margin: 8px 0 4px; }
.meter > i { display: block; height: 100%; background: var(--accent); }
.meter.hot > i { background: var(--warn); }
.meter.full > i { background: var(--bad); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.list li:first-child { border-top: 0; }
.list .trunc { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tip { font-size: 13px; color: var(--ink-2); }
.tip b { display: block; color: var(--ink); margin-bottom: 2px; }
kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--panel-2); }

/* ---------- the session screen ---------- */

body.session { height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: #0b0f16; }
.sbar { height: 42px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: var(--panel); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; transition: margin-top .18s ease; z-index: 5; }
.sbar .brand { padding: 0; font-size: 13.5px; gap: 8px; }
.sbar .brand img { width: 22px; height: 22px; }
.sbar .grow { flex: 1; min-width: 0; }
.sbar .clock { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sbar .btn { padding: 5px 10px; font-size: 12.5px; }
.sbar .watched { color: var(--warn); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.session.bar-hidden .sbar { margin-top: -42px; }
.sbar-peek { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 6; border-radius: 0 0 10px 10px; padding: 2px 14px 4px; font-size: 12px; background: var(--panel); border: 1px solid var(--line); border-top: 0; color: var(--muted); cursor: pointer; }
body.session:not(.bar-hidden) .sbar-peek { display: none; }
.stage { position: relative; flex: 1; min-height: 0; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0f16; }

.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 11, 17, .82); z-index: 4; padding: 16px; }
.overlay .card { max-width: 440px; text-align: center; }
.overlay .card .btn { width: auto; }
.overlay .card .row-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: var(--panel); border-left: 1px solid var(--line); z-index: 5; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,.25); }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer .body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.drawer textarea { min-height: 120px; }
.drawer section + section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.files { list-style: none; margin: 8px 0 0; padding: 0; }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.files li:first-child { border-top: 0; }
.files .fname { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .fmeta { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.drop { border: 2px dashed var(--line-2); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.drop input { display: none; }
.progress { height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 20; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 550; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.toast.err { background: var(--bad); color: #fff; }

/* ---------- dashboard additions ---------- */

.chart { display: block; width: 100%; height: 90px; }
.chart rect { fill: var(--accent); opacity: .85; }
.chart rect.zero { fill: var(--line-2); opacity: .6; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.checklist li:first-child { border-top: 0; }
.checklist .mark { font-weight: 700; width: 16px; }
.checklist .ok { color: var(--ok); }
.checklist .no { color: var(--warn); }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.preset { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); cursor: pointer; font: inherit; color: var(--ink); }
.preset:hover { border-color: var(--accent); }
.preset b { display: block; margin-bottom: 3px; }
.preset span { color: var(--muted); font-size: 12.5px; }
.savebar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin: 18px -2px 0; background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 -6px 20px rgba(0,0,0,.12); }
.savebar.idle { border-color: var(--line); box-shadow: none; }
.savebar .state { color: var(--muted); }
.savebar.dirty .state { color: var(--accent); font-weight: 600; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; cursor: pointer; margin: 0; }
.days input { accent-color: var(--accent); }
.unit { display: flex; align-items: center; gap: 8px; }
.unit input { flex: 1; }
.unit span { color: var(--muted); white-space: nowrap; font-size: 13px; }
.qr { background: #fff; padding: 10px; border-radius: 10px; width: 220px; height: 220px; display: block; margin: 8px auto 14px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; font-family: var(--mono); font-size: 15px; padding: 12px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; }
.filter { margin-bottom: 12px; }
.card.wide { max-width: 560px; }
.inline-spin { margin: 0 0 0 8px; }
.mono-block { font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; word-break: break-all; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0 12px; }
.steps-list { margin: 0; padding-left: 20px; }
.steps-list li { margin-bottom: 10px; overflow-wrap: anywhere; }
.ph p code, .kv dd.mono { overflow-wrap: anywhere; }
.log { font-family: var(--mono); font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; max-height: 360px; overflow: auto; }
.log:empty { display: none; }
