/* AEAP — ARS Edge Analytics Platform · Trial UI
   Committed dark enterprise theme. All colors explicit. */

:root {
  color-scheme: dark; /* committed dark design — opts out of browser auto-dark transforms */
  --bg: #0B1220;
  --surface: #121C2C;
  --surface-2: #18253A;
  --surface-3: #1F2F49;
  --line: #24344E;
  --line-soft: #1C2A40;
  --text: #E6EDF7;
  --muted: #8CA0BC;
  --faint: #5D7191;
  --accent: #27C4A8;
  --accent-dim: #1A8672;
  --accent-soft: rgba(39, 196, 168, 0.12);
  --amber: #F5A524;
  --red: #E4607A;
  --blue: #4C8DFF;
  --violet: #9B7BFF;
  --cyan: #57C7E3;
  --good: #27C4A8;
  --warn: #F5A524;
  --crit: #E4607A;
  --radius: 10px;
  --font: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0 0 .4em; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(39,196,168,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(76,141,255,.08), transparent 60%),
    var(--bg);
  padding: 24px;
}
.login-card {
  width: 400px; max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 34px 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.login-card .brand-mark { margin-bottom: 22px; }
.login-card h1 { font-size: 20px; letter-spacing: -.01em; }
.login-card .sub { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.login-card label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 5px; letter-spacing: .04em; text-transform: uppercase; }
.login-card input {
  width: 100%; padding: 10px 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font); font-size: 14px;
}
.login-card input:focus { border-color: var(--accent); outline: none; }
.login-note {
  margin-top: 18px; padding: 10px 12px;
  background: var(--accent-soft); border: 1px solid rgba(39,196,168,.25);
  border-radius: 8px; font-size: 12.5px; color: var(--text);
}
.login-foot { margin-top: 20px; font-size: 11.5px; color: var(--faint); text-align: center; }

/* ---------- Brand ---------- */
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent) 0%, #1490B4 100%);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #06251F; letter-spacing: -.02em;
}
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand-name small { display: block; font-weight: 400; font-size: 10.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- App shell ---------- */
.app { display: none; min-height: 100vh; }
.app.active { display: grid; grid-template-columns: 232px 1fr; }
.nav {
  background: var(--surface);
  border-right: 1px solid var(--line-soft);
  padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.nav .brand-mark { padding: 2px 8px 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; }
.nav-group-label {
  font-size: 10.5px; color: var(--faint); text-transform: uppercase;
  letter-spacing: .09em; padding: 12px 10px 5px;
}
.nav a.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--muted); font-size: 13.5px; text-decoration: none;
}
.nav a.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav a.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav a.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.nav-foot { margin-top: 18px; padding: 12px 10px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--faint); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 26px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11, 18, 32, .8);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px);
}
.topbar .crumb { color: var(--muted); font-size: 13px; }
.topbar .crumb b { color: var(--text); font-weight: 600; }
.topbar .spacer { flex: 1; }
.searchbox {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px; width: 300px; color: var(--faint);
  font-size: 13px;
}
.userchip {
  display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted);
}
.userchip .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-3); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 12px; color: var(--accent); font-weight: 600;
}

.page { padding: 26px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 21px; letter-spacing: -.015em; }
.page-head .lede { color: var(--muted); max-width: 68ch; margin: 0; }
.eyebrow {
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 6px;
}

/* ---------- Primitives ---------- */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h3 { font-size: 14.5px; margin-bottom: 10px; }
.card .card-sub { font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; }
.card.clickable { cursor: pointer; transition: border-color .15s, transform .15s; }
.card.clickable:hover { border-color: var(--accent-dim); transform: translateY(-1px); }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .stat-label { font-size: 11.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.stat .stat-value { font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .stat-delta { font-size: 12px; color: var(--muted); }
.stat .stat-delta .up { color: var(--good); }
.stat .stat-delta .down { color: var(--crit); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; padding: 2.5px 9px;
  border-radius: 99px; border: 1px solid var(--line); color: var(--muted);
  white-space: nowrap;
}
.pill.good { color: var(--good); border-color: rgba(39,196,168,.4); background: rgba(39,196,168,.08); }
.pill.warn { color: var(--warn); border-color: rgba(245,165,36,.4); background: rgba(245,165,36,.08); }
.pill.crit { color: var(--crit); border-color: rgba(228,96,122,.4); background: rgba(228,96,122,.08); }
.pill.info { color: var(--blue); border-color: rgba(76,141,255,.4); background: rgba(76,141,255,.08); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 8px; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
}
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06251F; font-weight: 600; }
.btn.primary:hover { background: #35D8BB; }
.btn.small { padding: 5px 11px; font-size: 12px; }
.btn.block { width: 100%; justify-content: center; margin-top: 22px; padding: 11px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
table.data {
  width: 100%; border-collapse: collapse; font-size: 13px;
  font-variant-numeric: tabular-nums;
}
table.data th {
  text-align: left; padding: 10px 14px; font-size: 11.5px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
  white-space: nowrap;
}
table.data td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255,255,255,.02); }
table.data td.num, table.data th.num { text-align: right; }

.chart { width: 100%; height: 300px; }
.chart.tall { height: 380px; }
.chart.short { height: 220px; }

select.field, input.field {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 11px; font-family: var(--font); font-size: 13px;
}
select.field:focus, input.field:focus { border-color: var(--accent); outline: none; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.field-group { display: flex; flex-direction: column; gap: 4px; }
.field-group > label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.tabs button {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: var(--font); font-size: 13.5px; padding: 9px 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
.tabs button:hover { color: var(--text); }

.progress { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.progress > i.warn { background: var(--warn); }
.progress > i.crit { background: var(--crit); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }

.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }

.banner {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid rgba(245,165,36,.35); background: rgba(245,165,36,.07);
  color: var(--text); border-radius: var(--radius);
  padding: 12px 16px; font-size: 13px; margin-bottom: 20px;
}
.banner b { color: var(--warn); }

/* Decision flow diagram */
.flow-node { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; rx: 8; }
.flow-node.model { stroke: var(--violet); }
.flow-node.rule { stroke: var(--blue); }
.flow-node.out-approve { stroke: var(--good); }
.flow-node.out-review { stroke: var(--warn); }
.flow-node.out-decline { stroke: var(--crit); }
.flow-label { fill: var(--text); font-size: 12px; font-family: var(--font); }
.flow-sub { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.flow-edge { stroke: var(--faint); stroke-width: 1.2; fill: none; marker-end: url(#arrow); }
.flow-edge-label { fill: var(--muted); font-size: 10px; font-family: var(--mono); }

/* Pipeline DAG */
.dag-node { fill: var(--surface-2); stroke: var(--line); }
.dag-node.ok { stroke: var(--good); }
.dag-node.run { stroke: var(--amber); }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: 100vh; }
.docs-toc {
  border-right: 1px solid var(--line-soft); background: var(--surface);
  padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.docs-toc .toc-h { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; padding: 14px 10px 4px; }
.docs-toc a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--muted); font-size: 13px; text-decoration: none; }
.docs-toc a:hover { color: var(--text); background: var(--surface-2); }
.docs-toc a.active { color: var(--accent); background: var(--accent-soft); }
.docs-body { padding: 40px 48px; max-width: 860px; }
.docs-body h1 { font-size: 26px; }
.docs-body h2 { font-size: 18px; margin-top: 2em; padding-top: .8em; border-top: 1px solid var(--line-soft); }
.docs-body h3 { font-size: 15px; margin-top: 1.6em; }
.docs-body p, .docs-body li { max-width: 72ch; color: #C6D2E4; }
.docs-body code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 1.5px 6px; border-radius: 5px;
}
.docs-body pre {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px 18px; overflow-x: auto;
}
.docs-body pre code { background: none; border: none; padding: 0; }
.docs-body table { border-collapse: collapse; font-size: 13px; width: 100%; }
.docs-body th, .docs-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.docs-body th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.docs-note {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 13px;
}
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; height: auto; display: none; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .docs-toc.open { display: block; }
  .docs-body { padding: 20px 16px; }
  .docs-body h1 { font-size: 22px; }
  .docs-body pre { font-size: 11.5px; }
  .docs-body table { display: block; overflow-x: auto; white-space: nowrap; }
}
.toc-btn {
  display: none; position: sticky; top: 0; z-index: 30; width: 100%;
  background: var(--surface); color: var(--text); border: none;
  border-bottom: 1px solid var(--line); padding: 12px 16px;
  font-family: var(--font); font-size: 13.5px; font-weight: 500;
  text-align: left; cursor: pointer;
}
.toc-btn::before { content: "\2630\00a0\00a0"; color: var(--accent); }
@media (max-width: 900px) { .toc-btn { display: block; } }

/* Process strip (workflow page) */
.proc-strip { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding: 8px 2px 4px; }
.proc-step {
  flex: 1 0 128px; background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 9px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 4px;
}
.proc-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-size: 11.5px; font-weight: 600;
  display: grid; place-items: center; margin-bottom: 2px;
}
.proc-title { font-size: 12.5px; font-weight: 600; }
.proc-desc { font-size: 11px; color: var(--muted); flex: 1; }
.proc-mod { font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.proc-arrow { align-self: center; color: var(--faint); flex: none; }

/* Banding bar */
.band-bar { position: relative; height: 26px; border-radius: 7px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.band-bar i { position: absolute; top: 0; bottom: 0; }
.band-bar b {
  position: absolute; top: 4px; transform: translateX(-50%);
  font-size: 10.5px; color: var(--text); font-family: var(--mono);
  background: rgba(11,18,32,.75); padding: 1px 5px; border-radius: 4px;
}

/* Enterprise BI frame (deliberate light canvas — Power BI idiom) */
.bi-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #F3F2F1; }
.bi-topbar {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px;
  background: #FFFFFF; border-bottom: 1px solid #E1DFDD;
  color: #252423; font-size: 13.5px;
}
.bi-logo { color: #F2C811; font-size: 16px; }
.bi-tab { color: #605E5C; font-size: 12.5px; padding: 4px 2px; cursor: default; }
.bi-tab.active { color: #252423; font-weight: 600; border-bottom: 2px solid #118DFF; }
.bi-chip {
  font-size: 11px; color: #605E5C; background: #F3F2F1;
  border: 1px solid #E1DFDD; border-radius: 99px; padding: 3px 10px;
}
.bi-body { padding: 16px 18px 20px; }
.bi-slicers { display: flex; gap: 14px; align-items: end; margin-bottom: 14px; flex-wrap: wrap; }
.bi-slicer label { display: block; font-size: 10.5px; color: #605E5C; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.bi-slicer select {
  background: #FFFFFF; color: #252423; border: 1px solid #C8C6C4;
  border-radius: 3px; padding: 6px 10px; font-size: 13px; font-family: "Segoe UI", var(--font); min-width: 170px;
}
.bi-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .bi-cards { grid-template-columns: repeat(2, 1fr); } }
.bi-card {
  background: #FFFFFF; border: 1px solid #E1DFDD; border-radius: 4px;
  padding: 12px 16px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.bi-card span { font-size: 11px; color: #605E5C; }
.bi-card b { font-size: 22px; color: #252423; font-weight: 600; font-variant-numeric: tabular-nums; }
.bi-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
@media (max-width: 900px) { .bi-grid { grid-template-columns: 1fr; } }
.bi-visual {
  background: #FFFFFF; border: 1px solid #E1DFDD; border-radius: 4px;
  padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.bi-visual h4 { margin: 0 0 4px; font-size: 12.5px; color: #252423; font-weight: 600; }

/* Delivery timeline (Gantt) */
.gantt { display: grid; grid-template-columns: 210px 1fr; gap: 6px 12px; align-items: center; font-size: 12.5px; }
.gantt .g-label { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt .g-label small { display: block; color: var(--faint); font-size: 10.5px; }
.gantt .g-track { position: relative; height: 22px; background: var(--surface-3); border-radius: 6px; }
.gantt .g-bar {
  position: absolute; top: 3px; bottom: 3px; border-radius: 5px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  display: flex; align-items: center; padding: 0 8px;
  font-size: 10px; color: #06251F; font-weight: 600; white-space: nowrap; overflow: hidden;
}
.gantt .g-bar.blue { background: linear-gradient(90deg, #2C5BB8, var(--blue)); color: #EAF1FF; }
.gantt .g-bar.violet { background: linear-gradient(90deg, #6E51C8, var(--violet)); color: #F1EAFF; }
.gantt .g-bar.amber { background: linear-gradient(90deg, #B87A14, var(--amber)); color: #2A1D02; }
.gantt .g-milestone {
  position: absolute; top: -2px; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: var(--amber); border: 1.5px solid #0B1220; border-radius: 2px;
}
.gantt-scale { display: grid; grid-template-columns: 210px 1fr; gap: 6px 12px; margin-bottom: 4px; }
.gantt-scale .g-weeks { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); font-family: var(--mono); }

/* ---------- Mobile (off-canvas nav drawer + fluid layout) ---------- */
.menu-btn {
  display: none; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 7px 11px; cursor: pointer;
  font-size: 16px; line-height: 1; flex: none;
}
.nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 39;
  background: rgba(5, 9, 16, .6); backdrop-filter: blur(2px);
}
.nav-backdrop.show { display: block; }

@media (max-width: 760px) {
  .app.active { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 40;
    width: 262px; height: 100dvh;
    transform: translateX(-103%);
    transition: transform .22s ease;
    box-shadow: 12px 0 40px rgba(0,0,0,.5);
  }
  .nav.open { transform: translateX(0); }

  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar .searchbox { display: none; }
  .topbar .crumb { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
  .userchip span { display: none; }         /* keep avatar + sign-out, drop username text */

  .page { padding: 16px 14px 28px; }
  .page-head h1 { font-size: 19px; }
  .grid { grid-template-columns: 1fr !important; } /* collapse all grids incl. inline column templates */
  .cols-4 { grid-template-columns: repeat(2, 1fr) !important; } /* stat tiles stay scannable 2-up */
  .card { padding: 14px 14px; }
  .stat .stat-value { font-size: 21px; }
  .chart { height: 250px; }
  .chart.tall { height: 300px; }

  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tabs button { white-space: nowrap; padding: 9px 11px; }
  .field-row { gap: 8px; }
  .field-row .field, .field-row select.field { min-width: 0; width: 100%; }
  .field-group { width: 100%; }

  /* Gantt: labels stack above their bars */
  .gantt, .gantt-scale { grid-template-columns: 1fr; }
  .gantt-scale span:first-child { display: none; }
  .gantt .g-label { margin-top: 6px; }

  .bi-topbar { flex-wrap: wrap; row-gap: 6px; }
  .bi-cards { grid-template-columns: repeat(2, 1fr) !important; }
  .login-card { padding: 26px 22px 24px; }
}
@media (max-width: 420px) {
  .cols-4 { grid-template-columns: 1fr !important; }
  .bi-cards { grid-template-columns: 1fr !important; }
}

img.brand-logo { background: #FFFFFF; object-fit: contain; padding: 2px; }
