:root {
  --navy: #14213d; --navy-2: #1d2f57; --gold: #e9c46a; --gold-2: #d4a73c;
  --bg: #f4f5f8; --panel: #ffffff; --line: #e3e6ee; --line-2: #eef0f5;
  --text: #1b2236; --muted: #677089; --primary: #1f4b99; --primary-2: #183c7b;
  --danger: #c0392b; --ok: #1e8e5a; --warn: #b7791f;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.08);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1424; --panel: #151d31; --line: #26304a; --line-2: #1c2539;
    --text: #e6e9f2; --muted: #93a0bd; --primary: #5b8def; --primary-2: #4a7ad6; --navy-2: #0b1222;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14.5px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.ic { width: 18px; height: 18px; flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 550;
  cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { border-color: #c7cdda; background: var(--line-2); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; justify-content: center; height: 42px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  color: var(--text); font: inherit; }
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .humancheck:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 1px; border-color: var(--primary); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 13px; }
.field small { color: var(--muted); font-size: 12.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 140px; }
.check { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; cursor: pointer; }
.err-text { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0 10px; }
.code-input { font-family: var(--mono); font-size: 22px !important; letter-spacing: .35em; text-align: center; height: 52px !important; }

/* ---------- auth pages ---------- */
.auth { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); }
.auth-art { background: radial-gradient(1200px 600px at 10% 10%, #22386a 0%, var(--navy) 55%, #0b1430 100%);
  color: #dfe6f5; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; color: #fff; }
.brand img { width: 36px; height: 36px; }
.auth-art h1 { font-size: 34px; line-height: 1.15; color: #fff; max-width: 460px; font-weight: 650; }
.auth-art p { max-width: 440px; color: #b8c3dc; }
.auth-points { display: grid; gap: 12px; margin-top: 26px; }
.auth-points div { display: flex; gap: 10px; align-items: center; color: #cdd6ea; }
.auth-points .ic { color: var(--gold); }
.auth-main { display: grid; place-items: center; padding: 32px; background: var(--panel); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 24px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; }
.auth-foot { margin-top: 18px; display: flex; justify-content: space-between; font-size: 13px; }
.linkbtn { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; padding: 0; }
.qr { display: block; width: 190px; height: 190px; margin: 6px auto 12px; border-radius: 8px; background: #fff; padding: 6px; }
.secret { font-family: var(--mono); font-size: 12.5px; word-break: break-all; background: var(--line-2); padding: 8px 10px; border-radius: 6px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 14px; background: var(--line-2);
  border-radius: 8px; font-family: var(--mono); margin: 12px 0; }
.choice { display: grid; gap: 10px; margin-bottom: 16px; }
.choice button { text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel); color: var(--text); cursor: pointer; font: inherit; }
.choice button:hover { border-color: var(--primary); }
.choice b { display: block; }
.choice small { color: var(--muted); }
.pill { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: #e7f6ee; color: var(--ok); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- human check ---------- */
.humancheck { position: relative; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; margin: 4px 0 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--line-2); cursor: pointer; user-select: none; }
.hc-box { width: 22px; height: 22px; border: 2px solid #9aa4bb; border-radius: 5px; background: var(--panel); display: grid; place-items: center; }
.hc-label { font-weight: 550; flex: 1; }
.hc-brand { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.hc-brand .ic { width: 14px; height: 14px; }
.humancheck.busy .hc-box { border-color: var(--primary); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.humancheck.done .hc-box { background: var(--ok); border-color: var(--ok); }
.humancheck.done .hc-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.humancheck.err { border-color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- meter ---------- */
.meter { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: -6px; margin-bottom: 14px; }
.meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.meter[data-score="1"] span { width: 25%; background: var(--danger); }
.meter[data-score="2"] span { width: 50%; background: var(--warn); }
.meter[data-score="3"] span { width: 75%; background: #4c9a2a; }
.meter[data-score="4"] span { width: 100%; background: var(--ok); }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100%; }
.side { background: var(--navy); color: #c9d3ea; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 4px 10px 22px; }
.nav { display: grid; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; font: inherit; font-weight: 520; cursor: pointer; text-align: left; }
.nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav button.on { background: rgba(233,196,106,.14); color: #fff; }
.nav button.on .ic { color: var(--gold); }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7f8bab; padding: 16px 12px 6px; }
.usage { margin-top: auto; padding: 14px 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.usage .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin: 8px 0 4px; }
.usage .bar span { display: block; height: 100%; background: var(--gold); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 26px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.top h1 { font-size: 18px; flex: 1; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-2); color: var(--gold); display: grid; place-items: center; font-weight: 700; }
.content { padding: 24px 26px 80px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; left: 0; top: 0; width: 250px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: inline-grid; }
  .content { padding: 16px; }
  .top { padding: 0 14px; }
  .who .email { display: none; }
}

/* ---------- panels/tables ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h3 { font-size: 15px; flex: 1; }
.panel-body { padding: 16px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 15px; margin-bottom: 14px; }
.crumbs button { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.crumbs button:hover { background: var(--line-2); color: var(--text); }
.crumbs button:last-child { color: var(--text); font-weight: 650; }
.crumbs .sep { color: #a6aec2; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--line-2); }
.t td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: color-mix(in srgb, var(--line-2) 60%, transparent); }
.t .num { text-align: right; white-space: nowrap; }
.t .acts { text-align: right; white-space: nowrap; width: 1%; }
.nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nm button { border: 0; background: none; color: var(--text); font: inherit; font-weight: 550; cursor: pointer; padding: 0; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.nm button:hover { color: var(--primary); text-decoration: underline; }
.nm .ic { color: var(--muted); }
.nm .ic.fold { color: var(--gold-2); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--line-2); color: var(--muted); }
.tag.blue { background: #e8effc; color: #1f4b99; }
.tag.green { background: #e7f6ee; color: #1e8e5a; }
.tag.red { background: #fbeceb; color: #c0392b; }
.tag.gold { background: #fbf3dc; color: #8a6514; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ic { width: 42px; height: 42px; color: #b3bbcd; margin-bottom: 8px; }
.drop { outline: 2px dashed var(--primary); outline-offset: -8px; background: color-mix(in srgb, var(--primary) 6%, var(--panel)); }
.stack { display: grid; gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 580; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--primary); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; background: #fff8e6; color: #6b4d0e; border: 1px solid #f1dfae; font-size: 13.5px; margin-bottom: 14px; }
.notice.info { background: #eef4ff; color: #1d3f7a; border-color: #d3e1fb; }
@media (prefers-color-scheme: dark) {
  .notice { background: #2c2513; color: #f0d9a0; border-color: #4a3d18; }
  .notice.info { background: #16243f; color: #b9cdf5; border-color: #24365c; }
  .tag.blue { background: #1a2a4a; color: #9dbcf5; } .tag.green { background: #133325; color: #7fd6a8; }
  .tag.red { background: #3a1b1b; color: #f0a39a; } .tag.gold { background: #3a301a; color: #ecd08e; }
}

/* ---------- uploads tray ---------- */
.tray { position: fixed; right: 18px; bottom: 18px; width: 380px; max-width: calc(100vw - 36px); z-index: 20; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.tray-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--navy); color: #fff; font-weight: 600; }
.tray-head span { flex: 1; }
.tray-head .icon-btn { color: #c9d3ea; }
.tray-list { max-height: 320px; overflow: auto; }
.up { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.up-top { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.up-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.up-meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; }
.prog { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.prog span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .15s; }
.up.done .prog span { background: var(--ok); }
.up.err .prog span { background: var(--danger); }

/* ---------- modal & toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10,15,30,.5); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(2px); }
.modal { width: 100%; max-width: 480px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; padding: 16px 18px 6px; }
.modal-head h2 { flex: 1; font-size: 18px; }
.modal-body { padding: 10px 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 18px; }
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; }
.toast { padding: 10px 16px; border-radius: 8px; background: var(--navy); color: #fff; box-shadow: var(--shadow); font-weight: 520; transition: opacity .4s; }
.toast.err { background: var(--danger); }
.toast.out { opacity: 0; }
.linkbox { display: flex; gap: 6px; }
.linkbox input { font-family: var(--mono); font-size: 12.5px; }
.tree { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.tree button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 6px; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.tree button.on { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.tree .ic { color: var(--gold-2); }

/* ---------- share page ---------- */
.share-top { background: var(--navy); color: #fff; padding: 14px 24px; display: flex; align-items: center; gap: 14px; }
.share-top .brand { font-size: 17px; }
.share-wrap { max-width: 980px; margin: 0 auto; padding: 24px 16px 80px; }
.gate { max-width: 400px; margin: 8vh auto; }
.art-foot { color: #7f8bab; }
.grow { flex: 1; }
.choice button.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
details summary { cursor: pointer; font-size: 13px; }
.nm h2 { font-size: 18px; }

/* ---------- v1.1: gallery ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: var(--line-2); border-radius: 6px; overflow: hidden; cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.tile:hover img { transform: scale(1.04); }
.tile-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.tile-ph .ic { width: 34px; height: 34px; }
.tile-badge { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; border-radius: 999px; padding: 3px 6px; display: flex; }
.tile-badge .ic { width: 14px; height: 14px; fill: #fff; }
.tile-check { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.85); border: 2px solid #fff;
  display: none; place-items: center; color: transparent; }
.tile.sel { outline: 3px solid var(--primary); outline-offset: -3px; }
.tile.sel .tile-check, .tile:hover .tile-check { display: grid; }
.tile.sel .tile-check { background: var(--primary); color: #fff; }
.month { font-size: 15px; margin: 22px 0 10px; color: var(--muted); font-weight: 650; }
.album-title { font-size: 20px; margin: 4px 0 6px; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.album { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.album-cover { display: block; width: 100%; aspect-ratio: 4/3; border: 0; padding: 0; background: var(--line-2); cursor: pointer; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-meta { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 14px; }
.album-meta > div { flex: 1; min-width: 0; }
.center { text-align: center; margin: 18px 0; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(5,8,16,.94); display: grid; grid-template-columns: 60px 1fr 60px; grid-template-rows: 52px 1fr 52px; }
.lb-tools { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; padding: 10px 14px; }
.lb-tools .icon-btn { color: #dfe6f5; }
.lb-tools .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.lb-stage { display: grid; place-items: center; min-height: 0; min-width: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 4px; }
.lb-nav { border: 0; background: transparent; color: #cfd6e6; font-size: 44px; cursor: pointer; }
.lb-nav:hover { color: #fff; }
.lb-cap { grid-column: 1 / -1; color: #dfe6f5; text-align: center; padding: 14px; font-size: 13px; }
.lb-cap .muted { color: #8f9bb8; }

/* ---------- v1.1: observability ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 10px; padding: 12px 14px; }
.stat.warn { border-left-color: var(--warn); } .stat.bad { border-left-color: var(--danger); }
.stat-l { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.stat-v { font-size: 24px; font-weight: 700; margin: 2px 0; }
.stat-s { font-size: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.grid3 .panel + .panel { margin-top: 0; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke: var(--primary); stroke-width: 2; }
.chart .area { fill: color-mix(in srgb, var(--primary) 14%, transparent); }
.chart .bar-err { fill: color-mix(in srgb, var(--warn) 70%, transparent); }
.chart .bar-ev { fill: color-mix(in srgb, var(--danger) 80%, transparent); }
.legend { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
.lg { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: -8px; }
.lg.line { background: var(--primary); } .lg.err { background: var(--warn); } .lg.ev { background: var(--danger); }
.t.compact td, .t.compact th { padding: 7px 10px; font-size: 13px; }
.t tr.flag td { background: color-mix(in srgb, var(--danger) 7%, transparent); }
.t tr.clickable { cursor: pointer; }
.panel.scroll { overflow-x: auto; }
.ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.wrap { word-break: break-all; white-space: pre-wrap; }
.empty.small { padding: 22px; }
.toolbar input[type=search], .toolbar select { width: auto; min-width: 120px; height: 36px; }
.check.inline { margin: 0; }
.logview { background: #0b1222; color: #d5dcec; border-radius: 10px; padding: 12px 14px; font: 12.5px/1.55 var(--mono); max-height: 65vh; overflow: auto; }
.logline { white-space: pre-wrap; word-break: break-word; border-bottom: 1px solid rgba(255,255,255,.04); padding: 2px 0; }
.logline .muted { color: #7f8bab; } .logline .tag { background: #1d2a48; color: #9fb6e6; }
.logline.p0, .logline.p1, .logline.p2, .logline.p3 { color: #ff9a8e; }
.logline.p4 { color: #f3cf7a; }
pre.code { background: var(--line-2); padding: 12px; border-radius: 8px; font: 12px/1.5 var(--mono); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
.modal { max-width: 640px; }
.chart .dot { fill: var(--primary); }
