/* MiraX One — dark first, light mode via [data-theme=light]. */
:root, [data-theme="dark"] {
  --bg: #0A0913;
  --bg2: #110F1E;
  --panel: #161329;
  --panel2: #1D1936;
  --line: #2A2547;
  --text: #ECEAF6;
  --muted: #A6A1C2;
  --cyan: #22D3E6;
  --violet: #7C3AED;
  --magenta: #E23BCB;
  --soft: #A78BFA;
  --ok: #34D399;
  --warn: #FBBF24;
  --bad: #F87171;
  --link: #67E3F0;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F7F6FB;
  --bg2: #EFEDF7;
  --panel: #FFFFFF;
  --panel2: #F4F2FB;
  --line: #E0DCEE;
  --text: #17142B;
  --muted: #5B5675;
  --cyan: #0E8FA0;
  --violet: #6D28D9;
  --magenta: #B8199F;
  --soft: #6D4ED8;
  --ok: #047857;
  --warn: #B45309;
  --bad: #B91C1C;
  --link: #0B6F7C;
  --shadow: 0 1px 2px rgba(20,16,50,.06), 0 6px 18px rgba(20,16,50,.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 "DM Sans", system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: Sora, "DM Sans", sans-serif; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; font-weight: 700; }
h2 { font-size: 1.12rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 .7em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.big { font: 700 2.4rem/1 Sora, sans-serif; margin: .2em 0 .3em; color: var(--soft); }
code { background: var(--panel2); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
pre { background: var(--panel2); padding: 12px; border-radius: 8px; overflow: auto; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 18px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--bg2); position: sticky; top: 0; z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 1.02rem Sora, sans-serif; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--magenta)); }
.crumb { color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.who { color: var(--muted); font-size: .88rem; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; }
.link { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; padding: 0; }
.inline { display: inline; margin: 0; }

/* client nav */
.clientnav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; padding: 10px 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand-switch, .sections { display: flex; flex-wrap: wrap; gap: 4px; }
.brand-switch { padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.brand-switch a { padding: 5px 12px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.brand-switch a:not(:first-child)::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bc); margin-right: 6px; vertical-align: 1px; }
.brand-switch a.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.brand-switch a:hover, .sections a:hover { text-decoration: none; color: var(--text); }
.sections a { padding: 6px 11px; border-radius: 8px; color: var(--muted); font-size: .92rem; }
.sections a.on { color: var(--text); background: color-mix(in srgb, var(--violet) 22%, transparent); }

main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 24px 48px; flex: 1; }
main.center { display: grid; place-items: center; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 18px; border-top: 1px solid var(--line); }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; text-align: left; }
.page-head p { margin: 0; max-width: 780px; }

/* grids and cards */
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.brands { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
a.card { color: var(--text); display: block; transition: border-color .15s, transform .15s; }
a.card:hover { text-decoration: none; border-color: var(--soft); transform: translateY(-1px); }
.panel.narrow { max-width: 520px; margin: 24px auto; }
.panel.warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }

.brand-card { border-top: 4px solid var(--bc); display: flex; flex-direction: column; gap: 10px; }
.brand-card h2 { margin: 0; }
.brand-card p { margin: 0; }
.brand-top { display: flex; gap: 12px; align-items: center; min-height: 56px; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; flex: none; }
.goal { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 10px 12px; background: var(--panel2); border-radius: 10px; }
.goal-now, .goal-to { font: 700 1.5rem Sora, sans-serif; }
.goal-to { color: var(--cyan); }
.arrow { color: var(--muted); }
.goal-lbl { width: 100%; font-size: .8rem; color: var(--muted); }
dl.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
dl.mini dt { font-size: .75rem; color: var(--muted); }
dl.mini dd { margin: 0; font-weight: 600; font-size: .9rem; }
ul.plain { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }

/* chips, badges */
.chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--bc, var(--soft)); color: var(--text); background: color-mix(in srgb, var(--bc, var(--soft)) 20%, transparent); }
.chip-all { --bc: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.status { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.st-draft { color: var(--soft); border: 1px dashed var(--soft); }
.st-review { color: var(--warn); border: 1px solid var(--warn); }
.st-ok { color: var(--ok); border: 1px solid var(--ok); }
.st-pub { color: var(--cyan); border: 1px solid var(--cyan); }
.is-draft { border-style: dashed; border-color: color-mix(in srgb, var(--soft) 60%, var(--line)); }
.draft-note { border: 1px dashed var(--soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; color: var(--soft); font-size: .9rem; }
.sev { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.sev-high { background: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--bad); }
.sev-medium { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
.sev-low { background: color-mix(in srgb, var(--muted) 22%, transparent); color: var(--muted); }
.acc { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.acc-have { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.acc-pending { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.acc-decision { color: var(--magenta); background: color-mix(in srgb, var(--magenta) 15%, transparent); }
.acc-conflict { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
.acc-not_applicable { color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 150px; }
.stat strong { font: 700 1.6rem Sora, sans-serif; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .88rem; }
.tabs a.on { color: var(--text); border-color: var(--soft); background: color-mix(in srgb, var(--violet) 18%, transparent); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.count { font-size: .75rem; color: var(--muted); margin-left: 3px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--panel2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.group td { background: var(--panel2); font-weight: 700; font-family: Sora, sans-serif; font-size: .9rem; }
td.trend { color: var(--cyan); width: 170px; }
.kpi-sec { margin-top: 26px; }
img.thumb { width: 44px; height: 30px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 8px; border: 1px solid var(--line); }

/* charts */
.spark { display: block; color: var(--cyan); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: calc(var(--h) + 46px); padding-top: 18px; overflow-x: auto; }
.bar { flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bf { width: 70%; min-height: 2px; background: linear-gradient(180deg, var(--cyan), var(--violet)); border-radius: 4px 4px 0 0; max-height: var(--h); }
.bv { font-size: .7rem; color: var(--muted); margin-bottom: 4px; white-space: nowrap; }
.bl { font-size: .68rem; color: var(--muted); margin-top: 6px; white-space: nowrap; }

/* findings, evidence */
.finding h3 { margin: 4px 0 6px; }
.finding-body { display: grid; gap: 14px; margin-bottom: 20px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
figure.ev { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
figure.ev img { width: 100%; height: 180px; object-fit: cover; object-position: top; display: block; background: #fff; }
figure.ev figcaption { padding: 10px 12px; font-size: .85rem; }
figure.ev.file a { display: block; padding: 18px 12px 0; }
.file-ico { height: 180px; display: grid; place-items: center; font-size: 3rem; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

/* knowledge */
details.kb { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 16px; }
details.kb summary { padding: 12px 0; cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
details.kb[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
details.kb .src { margin-top: 8px; }
.kb-cat { margin: 26px 0 10px; }
.prose { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 .8em; }
.prose li { margin-bottom: 4px; }
.prose li.sub { margin-left: 1.2em; list-style: circle; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.1em; }
.prose blockquote { border-left: 3px solid var(--soft); margin: 0 0 .8em; padding: 4px 12px; color: var(--muted); }
.prose .table-wrap { margin: 8px 0 14px; }

/* meetings */
.meeting .date { font-weight: 700; color: var(--cyan); }

/* tasks */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .board { grid-template-columns: 1fr; } }
.col { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.col h2 { font-size: .95rem; }
.task { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.task p { margin: 4px 0; }
.task.late { border-color: color-mix(in srgb, var(--bad) 60%, var(--line)); }
.task .blocked { color: var(--bad); }
.task-move select { width: 100%; margin-top: 6px; }

/* forms */
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); text-align: center; }
.auth-card form { text-align: left; }
label { display: block; margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
label.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
label.check input { width: auto; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 8px 12px; }
.btn { display: inline-block; border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 8px 14px; border-radius: 9px; font: 600 .9rem "DM Sans", sans-serif; cursor: pointer; }
.btn:hover { border-color: var(--soft); text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, var(--violet), var(--magenta)); border: 0; color: #fff; }
.btn.small { padding: 4px 10px; font-size: .8rem; }
.btn.wide { width: 100%; margin-top: 6px; }
.alert { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); border-radius: 9px; padding: 9px 12px; margin-bottom: 14px; text-align: left; }
.flash { background: color-mix(in srgb, var(--ok) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; overflow-wrap: anywhere; }
.empty { text-align: center; color: var(--muted); padding: 26px; border: 1px dashed var(--line); border-radius: 12px; }

@media (max-width: 640px) {
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .crumb, .who { display: none; }
  main { padding: 20px 16px 40px; }
  .clientnav { padding: 8px 16px; }
}

/* access tracker */
.row.spread { justify-content: space-between; }
.acc-none { color: var(--muted); }
.accbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--panel2); margin: 8px 0; }
.accbar .seg { display: block; height: 100%; }
.seg-have { background: var(--ok); }
.seg-conflict { background: var(--bad); }
.seg-decision { background: var(--magenta); }
.seg-pending { background: var(--warn); }
.seg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 5px 0 12px; vertical-align: 0; }
.seg-dot:first-child { margin-left: 0; }
.legend { text-align: center; color: var(--muted); margin: 6px 0 18px; }
.grid.acc-cards { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.acc-cards { grid-template-columns: repeat(2, 1fr); } }
.acc-card { border-top: 4px solid var(--bc); }
.acc-card h2 { margin: 0; }
.acc-card .pct { font: 700 1.4rem Sora, sans-serif; color: var(--ok); }
dl.mini.four { grid-template-columns: repeat(4, 1fr); text-align: center; }
dl.mini dd.c-have { color: var(--ok); } dl.mini dd.c-pending { color: var(--warn); } dl.mini dd.c-conflict { color: var(--bad); } dl.mini dd.c-decision { color: var(--magenta); }
table.accmatrix td.c, table.accmatrix th.c { text-align: center; white-space: nowrap; }
table.accmatrix .acc { cursor: help; }
.glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .glance-grid { grid-template-columns: repeat(2, 1fr); } }
.glance { border-left: 3px solid var(--bc); padding-left: 12px; }
.glance p { margin: 0; }
.acc-form { display: flex; gap: 6px; align-items: center; min-width: 330px; }
.acc-form select, .acc-form input { margin: 0; padding: 5px 8px; font-size: .82rem; }
.acc-form select { width: 150px; flex: none; }
.sources { margin-top: -10px; margin-bottom: 18px; }

/* access check/X table */
.mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: .95rem; line-height: 1; cursor: help; }
.mk-yes { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.mk-no { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.mk-na { color: var(--muted); }
.mk-none { color: var(--line); cursor: default; }
.mk-flag { color: var(--warn); font-weight: 800; margin-left: 2px; }
.mk-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin: 0 0 14px; }
.mk-legend .mk { width: 22px; height: 22px; font-size: .8rem; cursor: default; }
table.accmatrix { font-size: .95rem; }
table.accmatrix td:first-child { min-width: 260px; }
table.accmatrix th.c, table.accmatrix td.c { width: 110px; }
table.accmatrix tbody tr:hover td { background: var(--panel2); }
table.accmatrix tfoot td { background: var(--panel2); border-top: 2px solid var(--line); font-weight: 600; }
.colhead { color: var(--text); font-weight: 700; letter-spacing: .04em; border-bottom: 3px solid var(--bc); padding-bottom: 2px; }
.seg-no { background: var(--bad); }

/* MiraX logo: M + X in Orbitron */
.logo-mark { width: 34px; height: 34px; border-radius: 9px; font: 900 15px/1 Orbitron, Sora, sans-serif; letter-spacing: -.5px;
  background: linear-gradient(135deg, #22D3E6 0%, #7C3AED 55%, #E23BCB 100%); box-shadow: 0 0 14px rgba(124,58,237,.45); display: flex !important; align-items: center; justify-content: center; }
.logo-mark .lm { color: #fff; }
.logo-mark .lx { color: #0A0913; margin-left: -1px; }
.logo-word { font: 800 1.02rem Orbitron, Sora, sans-serif; letter-spacing: .02em; }
.logo-word .x { background: linear-gradient(135deg, #22D3E6, #E23BCB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-word .one { font-weight: 500; opacity: .8; margin-left: 4px; }

/* Logo v3: cursive "Mx" (Yellowtail) */
.logo-mark { font: 400 22px/1 Yellowtail, "Brush Script MT", cursive !important; letter-spacing: 0 !important; padding: 0 2px 3px 0; }
.logo-mark .lm { color: #fff; text-shadow: 0 1px 6px rgba(10,9,19,.35); }
.logo-mark .lx { color: #fff; margin-left: -3px; font-size: .82em; opacity: .92; }
.logo-mark { width: 40px !important; height: 40px !important; font-size: 26px !important; border-radius: 11px !important; }

/* KPI table */
.kpi-bar { display: flex; justify-content: center; margin-bottom: 14px; }
.seg-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); gap: 2px; }
.seg-toggle a { padding: 7px 16px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.seg-toggle a.on { background: color-mix(in srgb, var(--violet) 28%, transparent); color: var(--text); }
.seg-toggle a:hover { text-decoration: none; color: var(--text); }
.kpi-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.inline-field { margin: 0; font-size: .8rem; }
.inline-field select, .inline-field input { min-width: 180px; padding: 7px 10px; }
.inline-field.grow { flex: 0 1 280px; }
.kpi-meta { text-align: center; }
.kpi-scroll { max-height: 72vh; overflow: auto; }
table.kpi-table { font-size: .86rem; border-collapse: separate; border-spacing: 0; }
table.kpi-table th { position: sticky; top: 0; z-index: 2; white-space: nowrap; }
table.kpi-table .sticky { position: sticky; left: 0; z-index: 1; background: var(--panel); min-width: 250px; max-width: 320px; box-shadow: 1px 0 0 var(--line); }
table.kpi-table th.sticky { z-index: 3; background: var(--panel2); }
table.kpi-table tr.group td { position: sticky; top: 37px; z-index: 1; }
table.kpi-table tr.group td.sticky { z-index: 2; background: var(--panel2); }
table.kpi-table td.num { min-width: 86px; }
table.kpi-table td.empty { color: var(--line); text-align: center; }
table.kpi-table td.has-note { position: relative; cursor: help; }
table.kpi-table td.has-note::after { content: ""; position: absolute; top: 6px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
table.kpi-table td[title] { cursor: help; }
table.kpi-table tbody tr:not(.group):hover td { background: var(--panel2); }
.chg { font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chg.up { color: var(--cyan); } .chg.down { color: var(--magenta); }

/* Report library + lightbox viewer */
.tabs.center { justify-content: center; }
.grid.lib { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.grid.lib.logos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lib-card { display: flex; flex-direction: column; gap: 8px; }
.lib-card h3 { margin: 0; font-size: 1.02rem; }
.lib-card .row { margin: 0; }
.lib-desc { margin: 0; font-size: .92rem; }
.lib-inside summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--link); }
.lib-inside ul { margin: 8px 0 0; padding-left: 1.2em; font-size: .88rem; }
.lib-inside li { margin-bottom: 4px; }
.lib-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.logo-prev { display: block; width: 100%; height: 130px; border: 0; padding: 12px; border-radius: 10px; background: #fff; cursor: zoom-in; }
.logo-prev img { width: 100%; height: 100%; object-fit: contain; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(5, 4, 12, .82); display: flex; align-items: center; justify-content: center; padding: 2.5vh 2.5vw; }
.lb[hidden] { display: none; }
.lb-box { width: min(1200px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.lb-bar strong { font-family: Sora, sans-serif; font-size: .95rem; }
.lb-tools { display: flex; gap: 8px; }
.lb-body { flex: 1; background: #525659; display: flex; align-items: center; justify-content: center; overflow: auto; }
.lb-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.lb-body img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
