/* Nexpert — battery digital-twin platform. Dark scientific theme. */
:root {
  --bg: #0a0e16;
  --bg2: #0f1422;
  --panel: #131a2a;
  --panel2: #182135;
  --line: #232d44;
  --line2: #2e3a55;
  --txt: #e6ecf7;
  --txt2: #9fb0cc;
  --txt3: #6b7a99;
  --acc: #34e2c4;      /* teal — Nexpert accent */
  --acc2: #5b8cff;     /* blue */
  --warn: #ffb454;
  --bad: #ff6b6b;
  --good: #4ade80;
  --cath: #ff7a59;     /* cathode orange */
  --anode: #9b8cff;    /* anode violet */
  --shadow: 0 8px 30px rgba(0,0,0,0.5);
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans); color: var(--txt); background: var(--bg);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(52,226,196,0.07), transparent 60%),
                    radial-gradient(900px 500px at 0% 10%, rgba(91,140,255,0.06), transparent 55%);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: var(--acc2); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 0 22px; height: 58px; background: rgba(10,14,22,0.82);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand .logo { width: 26px; height: 26px; }
.brand b { color: var(--acc); }
.brand .tag { font-size: 10px; color: var(--txt3); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 2px; }
.nav { display: flex; gap: 4px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav button {
  background: transparent; border: 0; color: var(--txt2); font-size: 13px; font-weight: 600;
  padding: 8px 13px; border-radius: 9px; display: flex; align-items: center; gap: 7px;
}
.nav button .n { font-family: var(--mono); font-size: 10px; color: var(--txt3); }
.nav button:hover { color: var(--txt); background: var(--panel); }
.nav button.active { color: var(--bg); background: var(--acc); }
.nav button.active .n { color: rgba(0,0,0,0.55); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pill { font-size: 11px; color: var(--txt2); background: var(--panel); border: 1px solid var(--line); padding: 5px 11px; border-radius: 99px; font-family: var(--mono); }
.pill .dot { color: var(--good); }

/* ---- Layout ---- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 26px 22px 80px; }
.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; margin-bottom: 14px; }
.hero h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 14px; }
.hero h1 .grad-text { background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--txt2); font-size: 15px; max-width: 50ch; }
.hero .cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line2); background: var(--panel); color: var(--txt); padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { border-color: var(--acc); }
.btn.primary { background: var(--acc); color: #04120e; border-color: var(--acc); }
.btn.primary:hover { filter: brightness(1.08); }

.flowmap { display: grid; grid-template-columns: 1fr; gap: 12px; }
.flowstep { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; cursor: pointer; transition: .15s; }
.flowstep:hover { border-color: var(--acc); transform: translateX(3px); }
.flowstep .badge { font-family: var(--mono); font-size: 10px; color: var(--acc); letter-spacing: 0.1em; text-transform: uppercase; }
.flowstep h3 { font-size: 16px; margin: 5px 0 4px; }
.flowstep p { font-size: 12.5px; color: var(--txt2); }
.flowstep .ico { position: absolute; right: 18px; top: 16px; font-size: 22px; opacity: 0.85; }

/* ---- Section grid ---- */
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 24px; letter-spacing: -0.02em; }
.section-head .layer-no { font-family: var(--mono); font-size: 12px; color: var(--acc); border: 1px solid var(--line2); border-radius: 7px; padding: 3px 9px; }
.section-head p { color: var(--txt2); font-size: 13.5px; flex: 1 1 280px; }

.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: 380px 1fr; }
.cols-2b { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cols-2, .cols-2b, .cols-3, .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.pad-sm { padding: 14px; }
.card h4 { font-size: 13px; font-weight: 700; color: var(--txt); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.card h4 .tag-c { color: var(--cath); } .card h4 .tag-a { color: var(--anode); }
.card .sub { font-size: 11.5px; color: var(--txt3); font-weight: 500; }

/* ---- Controls ---- */
.ctrl { margin-bottom: 15px; }
.ctrl label { display: flex; justify-content: space-between; font-size: 12px; color: var(--txt2); margin-bottom: 7px; font-weight: 600; }
.ctrl label .val { font-family: var(--mono); color: var(--acc); }
input[type=range] { -webkit-appearance: none; width: 100%; height: 5px; border-radius: 99px; background: var(--line2); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); cursor: pointer; box-shadow: 0 0 0 4px rgba(52,226,196,0.18); }
input[type=range].cath::-webkit-slider-thumb { background: var(--cath); box-shadow: 0 0 0 4px rgba(255,122,89,0.18); }
input[type=range].anode::-webkit-slider-thumb { background: var(--anode); box-shadow: 0 0 0 4px rgba(155,140,255,0.18); }
select, .seg {
  width: 100%; background: var(--panel2); color: var(--txt); border: 1px solid var(--line2);
  border-radius: 9px; padding: 9px 11px; font-size: 13px; font-family: inherit;
}
.seg { display: flex; gap: 4px; padding: 4px; }
.seg button { flex: 1; background: transparent; border: 0; color: var(--txt2); font-size: 12px; font-weight: 600; padding: 7px 4px; border-radius: 6px; }
.seg button.active { background: var(--acc); color: #04120e; }

/* ---- Readouts ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kpi { background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; }
.kpi .k { font-size: 10.5px; color: var(--txt3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.kpi .v { font-size: 22px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.02em; margin-top: 3px; }
.kpi .v small { font-size: 12px; color: var(--txt2); font-weight: 500; }
.kpi .d { font-size: 10.5px; margin-top: 3px; color: var(--txt3); }
.kpi.good .v { color: var(--good); } .kpi.warn .v { color: var(--warn); } .kpi.bad .v { color: var(--bad); }
.kpi.acc .v { color: var(--acc); }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar { }
.bar .lab { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--txt2); margin-bottom: 4px; }
.bar .lab b { color: var(--txt); font-family: var(--mono); }
.bar .track { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 99px; transition: width .35s ease; background: var(--acc); }

canvas.chart { width: 100%; height: 260px; display: block; }
canvas.chart.tall { height: 320px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 11.5px; color: var(--txt2); }
.legend i { display: inline-block; width: 11px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

.note { font-size: 11px; color: var(--txt3); margin-top: 10px; line-height: 1.5; }
.note b { color: var(--txt2); }
.tagrow { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.chip { font-size: 11px; font-family: var(--mono); color: var(--txt2); background: var(--panel2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 99px; }
.chip.on { color: var(--acc); border-color: var(--acc); }

.verdict { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel2); }
.verdict .lvl { font-size: 26px; }
.verdict .txt b { font-size: 14px; } .verdict .txt div { font-size: 12px; color: var(--txt2); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl th, table.tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--txt3); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
table.tbl td.num { font-family: var(--mono); text-align: right; }
table.tbl tr:hover td { background: var(--panel2); }

.banner { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 10px; padding: 11px 14px; font-size: 12.5px; color: var(--txt2); margin-bottom: 16px; }
.banner.cath { border-left-color: var(--cath); }
.banner.warn { border-left-color: var(--warn); }
.footer { text-align: center; color: var(--txt3); font-size: 11.5px; padding: 30px 0 10px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer b { color: var(--txt2); }
.spark { font-family: var(--mono); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.muted { color: var(--txt3); }
.flex { display: flex; gap: 10px; align-items: center; }
.flex.between { justify-content: space-between; }
.stage-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.stage-pills .sp { font-size: 10.5px; font-family: var(--mono); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--txt3); }
.stage-pills .sp.hot { color: var(--bad); border-color: var(--bad); background: rgba(255,107,107,0.08); }

/* ---- A11y ---- */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--panel); border: 1px solid var(--line2); color: var(--txt); padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: top .15s ease; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 5px; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(52,226,196,0.35); }

/* ---- Topbar tools ---- */
.toolbtns { display: flex; gap: 6px; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line2); color: var(--txt2); font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 9px; }
.tbtn:hover { color: var(--txt); border-color: var(--acc); }
.tbtn.primary { background: var(--acc); color: #04120e; border-color: var(--acc); }
.tbtn.primary:hover { filter: brightness(1.08); }
.lang-select { width: auto; min-width: 88px; background: var(--panel); border: 1px solid var(--line2); color: var(--txt2); font-size: 12px; font-weight: 600; padding: 7px 9px; border-radius: 9px; }
@media (max-width: 1180px) { #status-pill { display: none; } }
@media (max-width: 860px) { .tbtn span { display: none; } .brand .tag { display: none; } }
@media (max-width: 680px) { .nav button .n { display: none; } .topbar { gap: 10px; padding: 0 14px; } }

/* ---- Methodology ---- */
.lead { font-size: 16px; line-height: 1.7; color: var(--txt); max-width: 78ch; }
.m-h { font-size: 14px; margin-bottom: 10px; }
.m-b { font-size: 13px; line-height: 1.72; color: var(--txt2); }
.cite-text { font-family: var(--mono); font-size: 12px; color: var(--txt2); background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; line-height: 1.6; }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn.danger { border-color: rgba(255,107,107,0.4); color: var(--bad); }
.btn.block { display: block; width: 100%; text-align: left; margin-bottom: 8px; }

/* ---- Modal ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(4,7,12,0.66); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .18s ease; }
.modal-overlay[hidden] { display: none; }
.modal { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15px; letter-spacing: -0.01em; }
.modal-x { background: transparent; border: 0; color: var(--txt3); font-size: 16px; padding: 4px 8px; border-radius: 7px; }
.modal-x:hover { color: var(--txt); background: var(--panel2); }
.modal-body { padding: 18px; }
.export-opts .btn { font-size: 13px; }
.gate-b { font-size: 13px; color: var(--txt2); margin-bottom: 14px; line-height: 1.6; }
.gate-input { width: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: 9px; padding: 11px 13px; color: var(--txt); font-size: 14px; }
.gate-err { color: var(--bad); font-size: 12px; margin-top: 7px; }
.gate-actions { display: flex; gap: 8px; margin-top: 16px; }
.save-list { display: flex; flex-direction: column; gap: 8px; }
.save-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.save-row b { font-size: 13px; } .save-act { display: flex; gap: 6px; }

/* ---- Footer micro-attribution ---- */
.footer .attrib { margin-top: 10px; font-size: 9.5px; color: rgba(107,122,153,0.55); letter-spacing: 0.01em; }

/* ---- Library ---- */
.lib-tabs button.active { background: var(--acc); color: #04120e; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.lib-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; transition: border-color .15s; }
.lib-card:hover { border-color: var(--line2); }
.lib-card-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lib-code { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--acc); }
.lib-body { font-size: 11px; color: var(--txt3); }
.lib-title2 { font-size: 13px; color: var(--txt); }
.lib-scope { font-size: 12.5px; color: var(--txt2); line-height: 1.55; }
.lib-link { display: inline-block; margin-top: 9px; font-size: 11.5px; color: var(--acc2); }
.reg-chip { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; letter-spacing: 0.02em; }
.reg-global { background: rgba(91,140,255,0.14); color: #8fb0ff; }
.reg-us { background: rgba(91,140,255,0.14); color: #8fb0ff; }
.reg-eu { background: rgba(52,226,196,0.14); color: var(--acc); }
.reg-kr { background: rgba(255,122,89,0.16); color: #ff9a78; }
.reg-jp { background: rgba(255,107,107,0.14); color: #ff8f8f; }
.reg-cn { background: rgba(255,180,84,0.16); color: var(--warn); }
.reg-in { background: rgba(155,140,255,0.16); color: #b3a6ff; }
.lib-controls { margin-bottom: 16px; }
.lib-filter { width: 100%; max-width: 420px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 9px; color: var(--txt); font-size: 13px; padding: 9px 12px; margin-bottom: 12px; }
.fline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.flabel { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--txt3); font-weight: 700; margin-right: 4px; min-width: 52px; }
.fchip { background: var(--panel2); border: 1px solid var(--line); color: var(--txt2); font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 99px; }
.fchip:hover { border-color: var(--line2); color: var(--txt); }
.fchip.on { background: var(--acc); color: #04120e; border-color: var(--acc); }
.lib-count { font-size: 11.5px; color: var(--txt3); font-family: var(--mono); margin-top: 6px; }
.lib-topic { font-size: 10px; color: var(--txt3); background: var(--panel2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 99px; margin-left: auto; }
.paper-theme { color: var(--acc); font-weight: 600; }
.paper-cited { color: var(--warn); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 0 4px; }
.pager .btn[disabled] { opacity: 0.4; pointer-events: none; }
/* news feed */
.news-list { display: flex; flex-direction: column; }
.news-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 6px; border-bottom: 1px solid var(--line); color: var(--txt); transition: background .12s; }
.news-row:hover { background: var(--panel2); }
.news-main b { font-size: 13.5px; line-height: 1.45; font-weight: 600; }
.news-meta { font-size: 11.5px; color: var(--txt3); margin-top: 4px; }
.news-cat { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-right: 4px; }
.nc-news { background: rgba(91,140,255,0.16); color: #8fb0ff; }
.nc-paper { background: rgba(52,226,196,0.14); color: var(--acc); }
.nc-policy { background: rgba(255,180,84,0.16); color: var(--warn); }
.news-go { color: var(--txt3); flex-shrink: 0; font-size: 14px; }
.news-row:hover .news-go { color: var(--acc); }
.lib-search { display: flex; gap: 10px; margin-bottom: 18px; }
.lib-search input { flex: 1; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; color: var(--txt); font-size: 14px; padding: 11px 14px; }
.paper-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.paper-main b { font-size: 13.5px; color: var(--txt); line-height: 1.4; }
.paper-meta { font-size: 11.5px; color: var(--txt3); margin-top: 3px; }
.paper-doi { flex-shrink: 0; font-size: 11.5px; font-family: var(--mono); color: var(--acc2); border: 1px solid var(--line2); border-radius: 7px; padding: 4px 9px; align-self: center; }
.paper-doi:hover { border-color: var(--acc2); }

/* ---- AI assistant ---- */
.ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #04120e; border: 0; font-weight: 700;
  padding: 12px 18px; border-radius: 99px; box-shadow: 0 8px 24px rgba(52,226,196,0.3); font-size: 14px; }
.ai-fab:hover { filter: brightness(1.07); transform: translateY(-1px); }
.ai-fab.hidden { display: none; }
.ai-panel { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 90px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; animation: fade .2s ease; }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.ai-head b { font-size: 14px; } .ai-subt { font-size: 11px; color: var(--txt3); margin-top: 2px; }
.ai-mode { font-size: 9.5px; font-family: var(--mono); color: var(--warn); border: 1px solid var(--warn); border-radius: 5px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }
.ai-mode[hidden] { display: none; }
.ai-head-act { display: flex; gap: 4px; }
.ai-x { background: transparent; border: 0; color: var(--txt3); font-size: 15px; padding: 3px 7px; border-radius: 7px; }
.ai-x:hover { color: var(--txt); background: var(--panel); }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { display: flex; flex-direction: column; gap: 5px; max-width: 88%; }
.ai-msg.user { align-self: flex-end; align-items: flex-end; }
.ai-msg.bot { align-self: flex-start; }
.ai-bubble { font-size: 13px; line-height: 1.55; padding: 10px 13px; border-radius: 13px; }
.ai-msg.user .ai-bubble { background: var(--acc); color: #04120e; border-bottom-right-radius: 4px; }
.ai-msg.bot .ai-bubble { background: var(--panel2); color: var(--txt); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-bubble code { font-family: var(--mono); font-size: 12px; background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; }
.ai-chip { font-size: 11px; color: var(--acc); font-weight: 600; }
.ai-dots { color: var(--txt3); }
.ai-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.ai-input textarea { flex: 1; resize: none; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px;
  color: var(--txt); font-family: inherit; font-size: 13px; padding: 10px 12px; line-height: 1.4; max-height: 110px; }
.ai-send { background: var(--acc); color: #04120e; border: 0; width: 38px; height: 38px; border-radius: 10px; font-size: 15px; flex-shrink: 0; }
.ai-send:hover { filter: brightness(1.08); }
@media (max-width: 480px) { .ai-panel { right: 8px; bottom: 8px; height: calc(100vh - 70px); } .ai-fab span { display: none; } }

/* ---- Print ---- */
@media print {
  .topbar, .nav, .toolbtns, .lang-select, .cta, .tagrow, .flowmap, .footer, .skip-link, .banner { display: none !important; }
  body { background: #fff; color: #000; }
  .view { display: block !important; }
  .card { border-color: #ccc; break-inside: avoid; }
}
