/* HMG Tools · shared app shell (keep identical across every HMG Tools app).
   Palette #8B0000 #ED1C24 #FFEDDF #747578 #000 · Impact display, Oswald labels (embedded), Arial body. */
:root {
  --bg: #080808;
  --bg-2: #0e0e0e;
  --panel: #141414;
  --panel-2: #1b1b1b;
  --panel-3: #232323;
  --line: #2a2a2a;
  --line-2: #363636;
  --cream: #ffeddf;
  --text: #efe3d8;
  --muted: #9a9b9e;
  --gray: #747578;
  --red: #ed1c24;
  --red-hi: #ff4a50;
  --dark-red: #8b0000;
  --ok: #3ddc84;
  --warn: #ffb020;
  --info: #5aa9ff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --grad-red: linear-gradient(135deg, #ff3b42 0%, #ed1c24 45%, #8b0000 100%);
  --grad-panel: linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, 0) 60%), #131313;
  --display: Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --label: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --top-h: 60px;
  --side-w: 290px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--text); font: 14px/1.5 var(--body);
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(237, 28, 36, .20), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(139, 0, 0, .28), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(139, 0, 0, .18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--red-hi); }
code { font-family: var(--mono); font-size: 12px; background: #000; border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; color: var(--cream); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: #444 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #555; background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 30; min-height: var(--top-h);
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .9) 38%, rgba(60, 0, 0, .72) 72%, rgba(139, 0, 0, .8) 100%),
    url("../img/hmg-texture.jpg") center / cover;
  border-bottom: 1px solid rgba(237, 28, 36, .55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 8px 30px rgba(0, 0, 0, .5);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--red) 20%, var(--red-hi) 50%, var(--red) 80%, transparent); opacity: .8; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 30px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.brand .app-name { font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: 1px; color: var(--cream); white-space: nowrap; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.brand .app-sub { font-family: var(--label); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brand .divider { width: 1px; height: 28px; background: linear-gradient(transparent, #555, transparent); }

.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); border-radius: 999px; margin-left: 10px; }
.tab { border: 0; background: none; padding: 6px 16px; border-radius: 999px; cursor: pointer; font-family: var(--label); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--cream); }
.tab[aria-selected="true"] { background: var(--grad-red); color: #fff; box-shadow: 0 4px 14px rgba(237, 28, 36, .35); }
.tab .badge { background: rgba(0, 0, 0, .35); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.offline-pill { display: flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(61, 220, 132, .3); font-family: var(--label); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #b9f5d2; white-space: nowrap; }
.offline-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .55); color: var(--cream); cursor: pointer; }
.icon-btn:hover { border-color: var(--red); background: rgba(237, 28, 36, .15); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
.side { position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 18px 14px 18px 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 20, 20, .85), rgba(8, 8, 8, .6)); }
.content { min-width: 0; padding: 20px 24px 40px; display: grid; gap: 18px; align-content: start; }
.view { display: grid; gap: 18px; align-content: start; min-width: 0; }
.view > *, .content > * { min-width: 0; }
.content-narrow { max-width: 1100px; }

.side h3 { margin: 4px 0 10px; font-family: var(--label); font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gray); font-weight: 600; }
.steps { list-style: none; margin: 0 0 18px; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--line-2), var(--line)); }
.steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; padding: 7px 6px 7px 0; border-radius: 8px; cursor: pointer; }
.steps li:hover .st-title { color: var(--cream); }
.steps .st-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #111; border: 2px solid var(--line-2); color: var(--muted); font-family: var(--label); font-size: 11px; letter-spacing: .5px; }
.steps .st-title { font-family: var(--label); font-size: 14px; letter-spacing: .8px; text-transform: uppercase; color: var(--text); line-height: 1.2; padding-top: 4px; }
.steps .st-text { grid-column: 2; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: -4px; }
.steps li.done .st-dot { background: #0d2418; border-color: var(--ok); color: var(--ok); }
.steps li.current .st-dot { background: var(--grad-red); border-color: var(--red-hi); color: #fff; box-shadow: 0 0 0 4px rgba(237, 28, 36, .18); }
.steps li.current .st-title { color: var(--cream); }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: rgba(0, 0, 0, .35); margin-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.side-card b { color: var(--cream); font-weight: normal; font-family: var(--label); letter-spacing: .8px; text-transform: uppercase; font-size: 12px; display: block; margin-bottom: 4px; }
.side-card ol, .side-card ul { margin: 6px 0 0; padding-left: 18px; }
.side-card li + li { margin-top: 3px; }

/* ---------------------------------------------------------------- cards */
.card { position: relative; background: var(--grad-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 34px rgba(0, 0, 0, .35); min-width: 0; }
.card.glow { border-color: rgba(237, 28, 36, .35); box-shadow: 0 0 0 1px rgba(237, 28, 36, .08), 0 18px 50px rgba(139, 0, 0, .25); }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 1.6px; font-size: 16px; color: var(--cream); display: flex; align-items: center; gap: 10px; }
.card-head .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(237, 28, 36, .28), rgba(139, 0, 0, .18)); border: 1px solid rgba(237, 28, 36, .35); color: var(--red-hi); }
.card-head .ico svg { width: 16px; height: 16px; }
.card-head .sub { color: var(--muted); font-size: 13px; }
.head-tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--muted); margin: 0; font-size: 13px; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #262626, #1a1a1a); padding: 8px 15px; border-radius: 8px; cursor: pointer; font-family: var(--label); letter-spacing: .9px; text-transform: uppercase; font-size: 13px; color: var(--cream); white-space: nowrap; }
.btn:hover { border-color: #555; background: linear-gradient(180deg, #2e2e2e, #1f1f1f); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--grad-red); border-color: var(--red-hi); color: #fff; box-shadow: 0 6px 18px rgba(237, 28, 36, .28); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn svg { width: 15px; height: 15px; }
.btn.link { background: none; border: 0; color: var(--red-hi); padding: 0; text-transform: none; letter-spacing: 0; font-family: var(--body); text-decoration: underline; box-shadow: none; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #0c0c0c; }
.seg button { border: 0; background: none; padding: 6px 12px; cursor: pointer; font-family: var(--label); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--cream); }

.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fields label, .field { display: grid; gap: 5px; font-family: var(--label); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.fields .wide { grid-column: 1 / -1; }
input[type=text], input[type=number], input[type=email], textarea, select {
  background: #0a0a0a; border: 1px solid var(--line-2); border-radius: 7px; padding: 8px 10px; color: var(--text);
  font-family: var(--body); font-size: 14px; letter-spacing: 0; text-transform: none; min-width: 0;
}
input:focus, textarea:focus, select:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(237, 28, 36, .18); }
textarea { resize: vertical; min-height: 70px; }
.check { display: inline-flex; gap: 8px; align-items: center; color: var(--text); font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--red); width: 16px; height: 16px; }

/* ---------------------------------------------------------------- drop zone */
.drop { position: relative; display: grid; gap: 6px; place-items: center; text-align: center; padding: 34px 16px; border: 2px dashed #3b3b3b; border-radius: 12px; cursor: pointer; background: radial-gradient(600px 180px at 50% 0%, rgba(237, 28, 36, .10), transparent 70%), #0b0b0b; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus { border-color: var(--red); outline: none; background: radial-gradient(600px 200px at 50% 0%, rgba(237, 28, 36, .18), transparent 70%), #0d0d0d; }
.drop .drop-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-red); color: #fff; box-shadow: 0 8px 24px rgba(237, 28, 36, .35); margin-bottom: 4px; }
.drop .drop-ico svg { width: 22px; height: 22px; }
.drop strong { font-family: var(--label); text-transform: uppercase; letter-spacing: 1.2px; font-size: 18px; color: var(--cream); font-weight: 600; }
.drop span { color: var(--text); }
.drop small { color: var(--muted); }
.drop.compact { padding: 12px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.drop.compact .drop-ico { width: 30px; height: 30px; margin: 0; border-radius: 8px; }
.drop.compact .drop-ico svg { width: 15px; height: 15px; }
.drop.compact strong { font-size: 14px; }
.drop.compact small { display: none; }
.drop-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .8); display: grid; place-items: center; border: 4px dashed var(--red); backdrop-filter: blur(4px); }
.drop-overlay div { font-family: var(--display); color: var(--cream); font-size: 44px; letter-spacing: 1px; }

.kvs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.kv { display: grid; padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); min-width: 110px; }
.kv span { font-family: var(--label); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.kv b { font-size: 14.5px; color: var(--cream); font-weight: normal; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 12px; }
.banner.warn { border: 1px solid rgba(255, 176, 32, .35); background: rgba(255, 176, 32, .08); color: #ffd98a; }
.banner.info { border: 1px solid rgba(90, 169, 255, .35); background: rgba(90, 169, 255, .08); color: #bcdcff; }
.banner.red { border: 1px solid rgba(237, 28, 36, .4); background: rgba(237, 28, 36, .1); color: #ffc6c8; }
.banner ul { margin: 0; padding-left: 18px; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .25); }
table.grid { width: 100%; border-collapse: collapse; }
.grid th { position: sticky; top: 0; background: #0e0e0e; text-align: left; font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td { padding: 8px 10px; border-bottom: 1px solid #1f1f1f; vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.grid .tc { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.grid .name { font-weight: bold; color: var(--cream); word-break: break-word; }
.grid .path { color: var(--muted); font-size: 11px; word-break: break-all; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note-in { width: 100%; min-width: 160px; padding: 5px 8px; font-size: 13px; background: #080808; border-color: #2c2c2c; }
.note-in:not(:placeholder-shown) { border-color: rgba(255, 237, 223, .35); background: #11100e; }

/* ---------------------------------------------------------------- modal / drawer */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.modal { position: fixed; z-index: 71; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 60px); overflow: auto; background: linear-gradient(180deg, #1a1a1a, #101010); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); }
.modal-hero { position: relative; padding: 26px 24px 20px; background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .75)), url("../img/hmg-texture.jpg") center / cover; border-radius: 14px 14px 0 0; }
.modal-hero img { height: 42px; display: block; margin-bottom: 12px; }
.modal-hero h2 { margin: 0; font-family: var(--display); font-size: 34px; letter-spacing: 1px; color: #fff; line-height: 1; }
.modal-hero p { margin: 6px 0 0; color: var(--cream); font-family: var(--label); letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.modal-body { padding: 18px 24px 22px; }
.modal-body h4 { margin: 16px 0 6px; font-family: var(--label); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gray); }
.modal-body p { margin: 0 0 8px; }
.modal .close { position: absolute; top: 12px; right: 12px; }
.drawer { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: linear-gradient(180deg, #181818, #0e0e0e); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--label); text-transform: uppercase; letter-spacing: 1.6px; font-size: 16px; color: var(--cream); }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-body { padding: 16px 18px; overflow: auto; display: grid; gap: 18px; align-content: start; }
.set-group { display: grid; gap: 10px; }
.set-group > b { font-family: var(--label); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gray); font-weight: 600; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .3); }
.set-row small { display: block; color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- shared widgets */
.exports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xcard { position: relative; display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #1d1d1d, #121212); cursor: pointer; transition: transform .12s, border-color .12s; }
.xcard:hover { transform: translateY(-2px); border-color: #555; }
.xcard:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.xcard.primary { background: linear-gradient(160deg, rgba(237, 28, 36, .35), rgba(139, 0, 0, .25) 60%, #151515); border-color: rgba(237, 28, 36, .6); }
.xcard .x-ico { font-family: var(--display); font-size: 15px; letter-spacing: 1px; padding: 4px 9px; border-radius: 6px; background: #000; color: var(--cream); border: 1px solid var(--line-2); margin-bottom: 6px; }
.xcard.primary .x-ico { background: var(--grad-red); border-color: var(--red-hi); color: #fff; }
.xcard b { font-family: var(--label); text-transform: uppercase; letter-spacing: 1px; font-size: 15px; color: var(--cream); font-weight: 600; }
.xcard small { color: var(--muted); font-size: 12.5px; }
.guide-list { margin: 0 0 10px; padding-left: 20px; }
.guide-list li { margin: 4px 0; }
.switch { appearance: none; -webkit-appearance: none; width: 40px; height: 23px; border-radius: 12px; background: #333; position: relative; cursor: pointer; flex: 0 0 auto; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--cream); transition: transform .15s; }
.switch:checked { background: var(--red); }
.switch:checked::after { transform: translateX(17px); }

.tag { display: inline-block; font-family: var(--label); font-size: 11px; letter-spacing: .6px; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.settings label { font-family: var(--label); font-size: 11.5px; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.settings select, .settings input { padding: 5px 8px; font-size: 13px; }
.settings input[type=number] { width: 64px; }
.count-pill { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--grad-red); color: #fff; font-size: 12px; text-align: center; letter-spacing: 0; }
.tag.good { border-color: #1f6e46; color: var(--ok); }
.tag.lib { border-color: #6b1a1a; color: #ff8a8f; }
.paper.landscape { width: 1056px; }
@media (max-width: 1100px) { .exports { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer + toast */
.app-foot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0 6px; color: var(--gray); font-family: var(--label); font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; }
.app-foot img { height: 16px; opacity: .9; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--cream); color: #000; padding: 10px 18px; border-radius: 999px; font-weight: bold; box-shadow: var(--shadow); max-width: 90vw; font-size: 13.5px; }
.toast.err { background: var(--red); color: #fff; }

/* ---------------------------------------------------------------- report "paper" preview */
.paper-wrap { background: #2a2a2a; border-radius: 10px; padding: 22px; overflow: auto; max-height: 78vh; border: 1px solid var(--line); box-shadow: inset 0 2px 12px rgba(0, 0, 0, .5); }
.paper { background: #fff; color: #000; width: 816px; max-width: none; margin: 0 auto; padding: 44px 48px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); border-radius: 2px; transform-origin: top center; }

/* desktop app window (macOS draws the traffic lights over the top bar) */
.is-desktop.is-mac .topbar { padding-left: 86px; }
.is-desktop .offline-pill { display: none; }
.is-desktop .topbar { -webkit-user-select: none; user-select: none; }

@media (max-width: 1020px) {
  :root { --side-w: 0px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .brand .app-sub, .brand .divider { display: none; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .tabs { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .tab { flex: 1; justify-content: center; padding: 6px 8px; }
  .offline-pill span.txt { display: none; }
  .content { padding: 14px; }
  .card { padding: 14px; }
  .paper { width: 100%; padding: 22px; }
}
@supports (padding: env(safe-area-inset-top)) {
  .topbar { padding-top: env(safe-area-inset-top); }
}
