/* Market Empire: Nusantara — dashboard strategi.
   Arah: meja kerja analis niaga. Netral dingin bernuansa nila (pewarna tradisional), angka tabular,
   aksen nila untuk tindakan; hijau/merah/kuning/biru hanya untuk makna. */
:root {
  --bg: #f3f3f7; --surface: #ffffff; --surface-2: #ecedf4; --surface-3: #e2e4ee;
  --ink: #1a1c2c; --ink-2: #464a63; --muted: #737892; --line: #d9dbe7; --line-2: #c7cada;
  --accent: #3b38a6; --accent-2: #5552c4; --accent-soft: #e6e5f7; --on-accent: #ffffff;
  --good: #1d8549; --good-soft: #e1f2e8; --bad: #c4352d; --bad-soft: #f9e3e1;
  --warn: #a8720a; --warn-soft: #fbf0d6; --info: #1f6fbf; --info-soft: #e1eefa;
  --land: #d5d3c7; --land-edge: #b9b6a6; --sea: #e5e9f2; --pasar: #9a978c;
  --shadow: 0 1px 2px rgba(24, 26, 48, .06), 0 4px 16px rgba(24, 26, 48, .06);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px; --r-sm: 7px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11121b; --surface: #191b27; --surface-2: #212435; --surface-3: #2a2e42;
    --ink: #e9eaf3; --ink-2: #b5b9d0; --muted: #8a8fab; --line: #2c3046; --line-2: #3a3f58;
    --accent: #9d9af5; --accent-2: #b3b0fa; --accent-soft: #2a2950; --on-accent: #14142b;
    --good: #4cc47f; --good-soft: #17301f; --bad: #f0706a; --bad-soft: #3a1c1b;
    --warn: #f0bb45; --warn-soft: #3a2f13; --info: #62acf2; --info-soft: #172a3d;
    --land: #3a3a36; --land-edge: #55544c; --sea: #161925; --pasar: #7d7b72;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11121b; --surface: #191b27; --surface-2: #212435; --surface-3: #2a2e42;
  --ink: #e9eaf3; --ink-2: #b5b9d0; --muted: #8a8fab; --line: #2c3046; --line-2: #3a3f58;
  --accent: #9d9af5; --accent-2: #b3b0fa; --accent-soft: #2a2950; --on-accent: #14142b;
  --good: #4cc47f; --good-soft: #17301f; --bad: #f0706a; --bad-soft: #3a1c1b;
  --warn: #f0bb45; --warn-soft: #3a2f13; --info: #62acf2; --info-soft: #172a3d;
  --land: #3a3a36; --land-edge: #55544c; --sea: #161925; --pasar: #7d7b72;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--f-body); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
h4 { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-family: var(--f-body); }
p { margin: 0; }
a { color: var(--accent); }
.num, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.pos { color: var(--good); } .neg { color: var(--bad); } .wrn { color: var(--warn); } .inf { color: var(--info); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- kerangka ---------- */
.app { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand svg { flex: none; }
.brand .t1 { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.brand .t2 { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.kpis { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.kpi { padding: 5px 12px; border-radius: var(--r-sm); background: var(--surface-2); display: grid; min-width: 112px; }
.kpi b { font-family: var(--f-mono); font-weight: 600; font-size: .98rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.clock { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: var(--r-sm); padding: 3px; }
.clock .date { font-family: var(--f-mono); font-size: .84rem; padding: 0 10px; white-space: nowrap; min-width: 150px; text-align: center; }
.tbtn { border: 0; background: transparent; padding: 6px 9px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.tbtn:hover { background: var(--surface-3); color: var(--ink); }
.tbtn.on { background: var(--accent); color: var(--on-accent); }
.tbtn svg { width: 15px; height: 15px; }
.menu-btns { display: flex; gap: 4px; }

.body { display: grid; grid-template-columns: 196px minmax(0, 1fr) 344px; min-height: 0; }
nav.side { border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
nav.side button {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px;
  cursor: pointer; text-align: left; color: var(--ink-2); font-weight: 550; position: relative;
}
nav.side button svg { width: 18px; height: 18px; flex: none; }
nav.side button:hover { background: var(--surface-2); color: var(--ink); }
nav.side button.act { background: var(--accent-soft); color: var(--accent); }
nav.side .badge { margin-left: auto; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--bad); color: #fff; }
nav.side .sep { height: 1px; background: var(--line); margin: 6px 4px; }
nav.side button.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 8px; box-shadow: 0 0 0 2px var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px transparent; } }
main.main { overflow-y: auto; min-width: 0; padding-block: 20px 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: 24px; }
aside.aside { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; min-width: 0; display: flex; flex-direction: column; }
.aside-sec { padding-block: 16px; padding-left: 16px; padding-right: max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); display: grid; gap: 12px; }

/* ---------- komponen ---------- */
.head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head .sub { color: var(--muted); max-width: 64ch; margin-top: 4px; }
.head .grow { flex: 1 1 260px; min-width: 0; }
.panel > *, .grid2 > *, .stack > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.panel + .panel, .stack > * + * { margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.grid2 > .panel { margin-top: 0; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 7px 13px; border-radius: var(--r-sm);
  cursor: pointer; font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.pri:hover { background: var(--accent-2); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.sm { padding: 4px 9px; font-size: .8rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); } .chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.info { background: var(--info-soft); color: var(--info); }
.chip.acc { background: var(--accent-soft); color: var(--accent); }
button.chip { border: 1px solid transparent; cursor: pointer; padding: 4px 11px; }
button.chip.sel { background: var(--accent); color: var(--on-accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.stat > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat b { font-family: var(--f-mono); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { color: var(--muted); font-size: .78rem; }
.stat.good { box-shadow: inset 3px 0 0 var(--good); } .stat.bad { box-shadow: inset 3px 0 0 var(--bad); } .stat.warn { box-shadow: inset 3px 0 0 var(--warn); }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: .9rem; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.kv .tot { border-top: 1px solid var(--line); padding-top: 5px; font-weight: 700; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .87rem; }
th, td { padding: 8px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--ink); }
th .arr { opacity: .7; margin-left: 3px; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
td:first-child > b { white-space: nowrap; }
tr.click:hover td { background: var(--surface-2); }
tr.sel td { background: var(--accent-soft); }
td input, td select { width: 100%; min-width: 84px; }
td input[type=number] { max-width: 108px; }
td select { max-width: 260px; min-width: 190px; }
.items-table table { min-width: 920px; }
.items-table td:first-child { min-width: 200px; }
.aside-sec th, .aside-sec td { padding: 6px 7px; }
.aside-sec table { font-size: .82rem; }
.empty { padding: 26px; text-align: center; color: var(--muted); }

input[type=number], input[type=text], select {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 6px; padding: 6px 8px; min-width: 0;
}
input[type=number] { font-variant-numeric: tabular-nums; }
input[type=range] { accent-color: var(--accent); width: 100%; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
label.fld { display: grid; gap: 4px; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; }

.meter { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.meter.good i { background: var(--good); } .meter.warn i { background: var(--warn); } .meter.bad i { background: var(--bad); } .meter.info i { background: var(--info); }

.banner { border-radius: var(--r-sm); padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.banner.warn { background: var(--warn-soft); color: var(--ink); } .banner.warn svg { color: var(--warn); }
.banner.bad { background: var(--bad-soft); } .banner.bad svg { color: var(--bad); }
.banner.good { background: var(--good-soft); } .banner.good svg { color: var(--good); }
.banner.info { background: var(--info-soft); } .banner.info svg { color: var(--info); }

.term { border-bottom: 1px dotted var(--muted); cursor: help; }
#tip { position: fixed; z-index: 60; max-width: 300px; background: var(--ink); color: var(--bg); padding: 9px 11px; border-radius: 8px; font-size: .82rem; line-height: 1.4; pointer-events: none; box-shadow: var(--shadow); }
#tip b { display: block; margin-bottom: 2px; }

/* peta */
.mapwrap { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--sea); }
.mapwrap canvas { display: block; width: 100%; height: clamp(260px, 42vw, 460px); touch-action: none; cursor: grab; }
.mapwrap .mapctl { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }
.mapwrap .legend { position: absolute; left: 10px; bottom: 10px; background: color-mix(in srgb, var(--surface) 88%, transparent); border-radius: 8px; padding: 6px 10px; font-size: .74rem; color: var(--ink-2); display: flex; gap: 12px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; display: grid; gap: 8px; cursor: pointer; text-align: left; min-width: 0; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card .kv { font-size: .82rem; gap: 3px 10px; }

/* rantai pasok */
.chain { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 4px 2px 8px; }
.node { flex: 0 0 auto; min-width: 128px; max-width: 170px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: var(--surface); display: grid; gap: 3px; font-size: .8rem; }
.node b { font-size: .86rem; }
.node.own { border-color: var(--good); box-shadow: inset 0 3px 0 var(--good); }
.node.mkt { border-style: dashed; }
.node.fac { background: var(--accent-soft); border-color: var(--accent); }
.arrow { flex: 0 0 34px; display: grid; place-items: center; color: var(--muted); font-size: .7rem; text-align: center; }
.arrow svg { width: 22px; height: 22px; }
.io { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 0; }
.io .col { display: grid; gap: 8px; }

/* notifikasi */
.notes { display: grid; gap: 0; }
.note { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: .84rem; cursor: default; }
.note.link { cursor: pointer; } .note.link:hover { background: var(--surface-2); }
.note i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--info); }
.note.good i { background: var(--good); } .note.bad i { background: var(--bad); } .note.warn i { background: var(--warn); }
.note time { display: block; font-size: .72rem; color: var(--muted); font-family: var(--f-mono); }

/* modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(12, 13, 26, .45); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; width: min(760px, 100%); max-height: calc(100% - 20px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); display: grid; }
.modal .mh { padding: 18px 20px 4px; display: flex; align-items: flex-start; gap: 10px; }
.modal .mh h2 { flex: 1; }
.modal .mb { padding: 12px 20px 18px; display: grid; gap: 14px; min-width: 0; }
.modal .mf { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--surface); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.opt { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; cursor: pointer; display: grid; gap: 2px; text-align: left; background: var(--surface); font-size: .84rem; }
.opt b { font-size: .9rem; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt:disabled { opacity: .5; cursor: not-allowed; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .88rem; box-shadow: var(--shadow); max-width: min(560px, calc(100% - 32px)); }
.toast.bad { background: var(--bad); color: #fff; }
.pausebar { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 40; background: var(--warn-soft); color: var(--ink); border: 1px solid var(--warn); padding: 8px 14px; border-radius: 10px; font-size: .86rem; display: flex; gap: 10px; align-items: center; max-width: min(640px, calc(100% - 32px)); box-shadow: var(--shadow); }

/* tutorial */
.coach { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: min(340px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 8px; }
.coach .stepn { font-family: var(--f-mono); font-size: .74rem; color: var(--accent); }
.coach.min { width: auto; padding: 8px 12px; }
.steps { display: flex; gap: 3px; } .steps i { height: 4px; flex: 1; border-radius: 9px; background: var(--surface-3); } .steps i.d { background: var(--accent); }

/* start screen */
.start { display: grid; gap: 16px; }
.start .hero { display: grid; gap: 6px; }
.start .hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }

canvas.chart { width: 100%; height: 190px; display: block; }
canvas.chart.tall { height: 240px; }
.spark { display: block; }
.goal { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.goal .ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.goal.done .ck { background: var(--good); border-color: var(--good); color: #fff; }
.goal.done span { color: var(--muted); text-decoration: line-through; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 54px; gap: 8px; align-items: center; font-size: .82rem; }
.bar .meter { height: 9px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.newsline { font-size: .86rem; padding: 7px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 86px 1fr; gap: 8px; }
.newsline:last-child { border-bottom: 0; }
.newsline time { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); padding-top: 2px; }

/* ---------- responsif ---------- */
@media (max-width: 1560px) {
  .menu-btns .tbtn span, .clock .tbtn span { display: none; }
  .kpi { min-width: 96px; }
}
@media (max-width: 1180px) {
  .body { grid-template-columns: 64px minmax(0, 1fr); }
  nav.side button span.lbl, nav.side .badge { display: none; }
  nav.side button { justify-content: center; padding: 10px 0; }
  aside.aside { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .body { overflow-y: auto; align-content: start; }
  main.main { overflow: visible; padding-bottom: 20px; }
  nav.side { grid-row: 1 / span 2; position: sticky; top: 0; height: 100%; max-height: 100vh; }
}
@media (max-width: 720px) {
  .app { height: auto; min-height: 100%; display: block; }
  .top { gap: 8px; }
  .brand .t1 { max-width: 46vw; }
  .kpis { order: 3; width: 100%; margin-left: 0; }
  .kpi { flex: 1 1 30%; min-width: 0; padding: 4px 8px; }
  .kpi b { font-size: .86rem; }
  .clock { order: 4; width: 100%; flex-wrap: wrap; gap: 2px; }
  .clock .date { min-width: 0; flex: 1 1 100%; padding: 4px; order: -1; }
  .clock .tbtn { flex: 1 1 0; justify-content: center; }
  .top .brand .t2 { display: none; }
  .menu-btns { margin-left: auto; }
  .body { display: block; overflow: visible; }
  nav.side { flex-direction: row; overflow-x: auto; position: sticky; top: 0; z-index: 4; height: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); }
  nav.side button { flex: none; width: auto; padding: 8px 10px; }
  nav.side button span.lbl { display: inline; font-size: .8rem; }
  nav.side .sep { display: none; }
  main.main { padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  aside.aside { border-top: 1px solid var(--line); }
  .io { grid-template-columns: 1fr; } .io .arrow { transform: rotate(90deg); margin: 0 auto; }
  .coach { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .pausebar { top: auto; bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
