/* Steady: calm, warm paper colours; one accent per theme; big serif numbers. Fonts: DM Serif Display + Nunito (SIL OFL). */
@font-face { font-family: "Steady Serif"; src: url(fonts/DMSerifDisplay-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Steady Sans"; src: url(fonts/Nunito-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Steady Sans"; src: url(fonts/Nunito-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Steady Sans"; src: url(fonts/Nunito-Bold.ttf) format("truetype"); font-weight: 700 800; font-display: swap; }

:root {
  --sw-sage: #2F5D46; --sw-ocean: #1F5F7A; --sw-clay: #A4552F; --sw-plum: #6B3F69; --sw-honey: #9A6A12; --sw-rose: #A84862; --sw-slate: #3E4A5C;
  --acc: #2F5D46; --acc-2: #3F7A5C; --acc-soft: #E3EDE5; --on-acc: #FFFFFF;
  --bg: #F4F1EA; --card: #FFFDF8; --ink: #23302A; --muted: #6E776F; --line: #E4DED1; --hover: #EEE9DE;
  --good: #2E7D4F; --warn: #B7791F; --bad: #B4413B; --warn-soft: #FBF1DC; --bad-soft: #F8E3E1;
  --r: 18px; --shadow: 0 1px 2px rgba(40, 35, 25, .05), 0 6px 22px rgba(40, 35, 25, .06);
  --fs: 16px;
}
[data-theme=ocean] { --acc: #1F5F7A; --acc-2: #2F7896; --acc-soft: #E0EEF3; }
[data-theme=clay]  { --acc: #A4552F; --acc-2: #BD6A41; --acc-soft: #F6E6DC; }
[data-theme=plum]  { --acc: #6B3F69; --acc-2: #845182; --acc-soft: #EEE2EC; }
[data-theme=honey] { --acc: #8A5F0E; --acc-2: #A6741A; --acc-soft: #F7EBD2; }
[data-theme=rose]  { --acc: #A84862; --acc-2: #BF5D77; --acc-soft: #F7E3E8; }
[data-theme=slate] { --acc: #3E4A5C; --acc-2: #536178; --acc-soft: #E5E9EF; }
[data-mode=dark] {
  --bg: #141815; --card: #1D221F; --ink: #E8ECE6; --muted: #9AA39C; --line: #2E3530; --hover: #262C28;
  --acc-soft: #24302A; --warn-soft: #3A2F1A; --bad-soft: #3B2221; --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
[data-mode=dark][data-theme=sage]  { --acc: #3E7A5A; --acc-2: #4F8F6C; }
[data-mode=dark][data-theme=ocean] { --acc: #2B7898; --acc-2: #3A8BAC; --acc-soft: #1F2B31; }
[data-mode=dark][data-theme=clay]  { --acc: #B9653C; --acc-2: #C9774C; --acc-soft: #33261F; }
[data-mode=dark][data-theme=plum]  { --acc: #87588A; --acc-2: #996A9B; --acc-soft: #2D2330; }
[data-mode=dark][data-theme=honey] { --acc: #A67A1E; --acc-2: #B98B2C; --acc-soft: #312A1A; }
[data-mode=dark][data-theme=rose]  { --acc: #B65874; --acc-2: #C66A86; --acc-soft: #33212A; }
[data-mode=dark][data-theme=slate] { --acc: #56657E; --acc-2: #66768F; --acc-soft: #232830; }
.large { --fs: 19px; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs)/1.45 "Steady Sans", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
body.noscroll { overflow: hidden; }
a { color: var(--acc); text-decoration: none; }
h1, h2, .big, .big-s, .greet { font-family: "Steady Serif", Georgia, serif; font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: 2em; margin: .2em 0 .15em; line-height: 1.1; }
h2 { font-size: 1.4em; margin: 0; }
h3 { font-size: .78em; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .8em; display: flex; align-items: center; gap: .6em; font-weight: 800; }
h3 a, h3 .btn, h3 .muted { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 1.15em; font-weight: 700; }
h3 .muted + .btn { margin-left: .4em; }
.lede { color: var(--muted); margin: 0 0 1.2em; max-width: 46em; }
.muted { color: var(--muted); }
.small { font-size: .86em; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.plus { color: var(--good); }

/* layout */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; background: var(--card); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand b { display: block; font: 1.3em "Steady Serif", Georgia, serif; }
.brand i { display: block; font-style: normal; color: var(--muted); font-size: .8em; }
.logo svg { width: 34px; height: 34px; display: block; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .95em; }
.side nav a:hover { background: var(--hover); }
.side nav a.on { background: var(--acc-soft); color: var(--acc); }
.dot { margin-left: auto; background: var(--bad); color: #fff; border-radius: 99px; font-size: .72em; padding: 1px 7px; }
.side-foot { margin-top: auto; font-size: .78em; color: var(--muted); padding: 0 10px; }
main { min-width: 0; padding: 0 36px 60px; }
.top { display: flex; align-items: center; gap: 14px; padding: 18px 0 6px; }
.top .date { color: var(--muted); font-weight: 600; }
.add-top { margin-left: auto; }
.mob-brand { display: none; align-items: center; gap: 8px; font: 1.25em "Steady Serif", Georgia, serif; }
.mob-brand .logo svg { width: 28px; height: 28px; }
.tabs { display: none; }
.view { animation: rise .35s ease both; }
.calm .view, .calm * { animation: none !important; transition: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.grid-today { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.col-a, .col-b { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 20px; min-width: 0; }
.col-a .card, .col-b .card, .col-b .heads { margin-bottom: 0; }
.row { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.wrap { flex-wrap: wrap; }

/* the number */
.hero { background: linear-gradient(160deg, var(--acc-2), var(--acc) 60%); color: var(--on-acc); border-radius: 24px; padding: 24px 26px 22px; box-shadow: 0 10px 30px rgba(30, 50, 40, .18); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hero.over { background: linear-gradient(160deg, #C0624F, #9C3E35 60%); }
.hero .k { text-transform: uppercase; letter-spacing: .12em; font-size: .74em; font-weight: 800; opacity: .9; }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ringbox { display: flex; align-items: center; gap: 8px; text-align: right; font-size: .78em; position: relative; z-index: 1; }
.ringbox span b { display: block; font-size: 1.15em; } .ringbox span i { font-style: normal; opacity: .8; }
.ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; } .ring .r0 { stroke: rgba(255, 255, 255, .22); } .ring .r1 { stroke: #fff; stroke-linecap: round; }
.big { font-size: 4.4em; line-height: 1; margin: 10px 0 8px; }
.big small { font-size: .5em; vertical-align: .62em; margin-left: 2px; }
.fresh { display: inline-flex; align-items: center; gap: 8px; font-size: .86em; font-weight: 700; }
.fresh i { width: 9px; height: 9px; border-radius: 50%; background: #8FE3B0; box-shadow: 0 0 0 3px rgba(143, 227, 176, .25); }
.fresh.f-ok i { background: #F4D27A; box-shadow: 0 0 0 3px rgba(244, 210, 122, .25); }
.fresh.f-stale i { background: #F49A7A; box-shadow: 0 0 0 3px rgba(244, 154, 122, .25); }
.hero .sub { opacity: .88; font-size: .9em; margin-top: 4px; }
.calc { background: rgba(0, 0, 0, .16); border-radius: 14px; padding: 10px 14px; margin: 16px 0 14px; font-size: .9em; }
.calc div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.calc .tot { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 4px; padding-top: 8px; font-weight: 800; }
.hero-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.hero.empty p { opacity: .92; max-width: 30em; }

/* buttons, fields */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: .92em; padding: 9px 15px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.btn.on-acc { background: #fff; color: var(--acc); border-color: #fff; }
.btn.ghost-acc { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 11px; font-size: .82em; }
.btn .ic { width: 1.1em; height: 1.1em; }
.fld { display: block; font-size: .86em; font-weight: 700; color: var(--muted); margin: 12px 0; }
.fld input, .fld select, .script { display: block; width: 100%; margin-top: 5px; font: inherit; font-size: 1.12em; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-weight: 600; }
.fld input:focus, .fld select:focus, .script:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.fld.amt input { font: 2.2em "Steady Serif", Georgia, serif; padding: 8px 14px; }
.script { font-size: .98em; font-weight: 400; line-height: 1.5; resize: vertical; }
.err { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: .9em; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: .92em; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + span { background: var(--acc); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.row-s { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; margin: 12px 0; }
.row-s b { align-self: center; } .row-s i { grid-column: 2; font-style: normal; color: var(--muted); font-weight: 400; font-size: .9em; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 6px; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 7px 13px; font: inherit; font-weight: 700; font-size: .88em; cursor: pointer; }
.chip.on { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px; margin: 4px 0 8px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .88em; padding: 7px 14px; border-radius: 99px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--acc); box-shadow: var(--shadow); }

/* lists */
.list, .needs, .coming, .envs, .order { list-style: none; margin: 0; padding: 0; }
.list li, .coming li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.list li:first-child, .coming li:first-child { border-top: 0; }
.nm { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.nm i { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: .84em; }
.list li > b, .coming li > b { font-weight: 800; white-space: nowrap; }
.list li.paid .nm, .list li.paid > b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.list li.late .nm i { color: var(--bad); }
.tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: transparent; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.tick .ic { width: 16px; height: 16px; }
.tick.on { background: var(--good); border-color: var(--good); color: #fff; }
.tick:hover { border-color: var(--good); color: var(--good); }
.tick.on:hover { color: #fff; }
.dbox { width: 44px; text-align: center; background: var(--acc-soft); color: var(--acc); border-radius: 10px; padding: 4px 0; line-height: 1.05; flex: none; }
.dbox b { display: block; font-size: 1.1em; } .dbox i { font-style: normal; font-size: .68em; text-transform: uppercase; font-weight: 800; }
.tag { font-style: normal; font-size: .7em; background: var(--hover); color: var(--muted); border-radius: 6px; padding: 1px 6px; font-weight: 700; vertical-align: 2px; }
.tag.pay { background: var(--acc-soft); color: var(--good); }
.needs li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; background: var(--warn-soft); font-weight: 600; font-size: .93em; }
.needs li span { flex: 1; }
.needs .n-overdue { background: var(--bad-soft); }
.needs .n-soon, .needs .n-due { background: var(--acc-soft); }
.needs .calm-ok { background: var(--acc-soft); margin: 0; font-weight: 400; }
.needs .calm-ok .ic { color: var(--good); width: 1.6em; height: 1.6em; }
.heads { background: var(--warn-soft); border: 1px solid rgba(183, 121, 31, .25); border-radius: var(--r); padding: 16px 20px; }
.heads .k { text-transform: uppercase; letter-spacing: .1em; font-size: .72em; font-weight: 800; color: var(--warn); }
.heads b { font: 1.6em "Steady Serif", Georgia, serif; display: block; margin: 2px 0; }
.heads p { margin: 4px 0 12px; font-size: .92em; }

.bar { height: 9px; border-radius: 99px; background: var(--hover); overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--acc); }
.bar.amber i { background: var(--warn); } .bar.red i { background: var(--bad); }
.envs li { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(60px, 1.3fr) auto; align-items: center; gap: 12px; padding: 8px 0; }
.envs li > b { font-size: .88em; white-space: nowrap; text-align: right; }
.envs.wide li { grid-template-columns: minmax(110px, 1.2fr) minmax(60px, 1fr) auto auto; padding: 11px 0; border-top: 1px solid var(--line); }
.envs.wide li:first-child { border-top: 0; }
.per { padding: 10px 0; border-top: 1px solid var(--line); }
.per:first-of-type { border-top: 0; padding-top: 0; }
.per-h { display: flex; justify-content: space-between; font-size: .92em; margin-bottom: 6px; }
.per-h span { color: var(--good); font-weight: 700; }
.per.short .per-h span { color: var(--bad); } .per.short .bar i { background: var(--bad); }
.per-f { display: flex; justify-content: space-between; font-size: .8em; color: var(--muted); margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.card .stats div { background: var(--bg); }
.stats i { display: block; font-style: normal; color: var(--muted); font-size: .76em; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.stats b { font: 1.45em "Steady Serif", Georgia, serif; }
.order { counter-reset: o; } .order li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .93em; }
.order li span { color: var(--muted); }
.goal .goal-h { display: flex; justify-content: space-between; align-items: center; }
.big-s { font-size: 1.9em; margin: 6px 0 8px; } .big-s i { font: .5em "Steady Sans", sans-serif; color: var(--muted); }
.back li { flex-wrap: wrap; } .back li .acts { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.back li.soon .nm i { color: var(--bad); font-weight: 700; }

/* month */
.mon-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mon-h h2 { min-width: 9em; text-align: center; }
.mon-h .btn:last-child { margin-left: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wd { font-size: .72em; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 0 4px; }
.cell { min-height: 92px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cell.off { background: transparent; border-color: transparent; }
.cell.today { border: 2px solid var(--acc); }
.dn { font-weight: 800; font-size: .85em; display: flex; justify-content: space-between; gap: 4px; }
.dn i { font-style: normal; color: var(--muted); font-weight: 600; font-size: .9em; }
.ev { font-size: .72em; background: var(--hover); border-radius: 6px; padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ev.pay { background: var(--acc-soft); color: var(--good); }
.ev.done { color: var(--muted); text-decoration: line-through; }
.ev.back { background: var(--warn-soft); color: var(--warn); }

/* settings */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 5px 12px 5px 6px; font: inherit; font-weight: 700; font-size: .85em; cursor: pointer; }
.swatch i { width: 20px; height: 20px; border-radius: 50%; background: var(--sw); }
.swatch.on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-soft); }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card.more { display: flex; flex-direction: column; gap: 8px; color: var(--ink); margin: 0; }
.card.more .ic { color: var(--acc); width: 1.6em; height: 1.6em; }
.quick .qrow { display: grid; grid-template-columns: 1fr 96px 64px; gap: 8px; align-items: center; padding: 5px 0; }
.quick input:not([type=checkbox]) { font: inherit; font-weight: 600; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; }

/* sheet (forms) */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.sheet[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(20, 25, 22, .42); }
.panel { position: relative; background: var(--card); width: min(480px, 94vw); max-height: 90vh; overflow: auto; border-radius: 22px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: rise .25s ease both; }
.panel-h { display: flex; align-items: center; justify-content: space-between; }
.x { border: 0; background: var(--hover); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; font-size: 1.4em; line-height: 1; cursor: pointer; }
.panel-f { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.grow { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 12px 10px 18px; border-radius: 99px; display: flex; gap: 14px; align-items: center; z-index: 60; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: 92vw; }
.toast[hidden] { display: none; }

.simple .simple-hide { display: none; }

/* phones and small tablets */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  main { padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
  .top { padding-top: calc(12px + env(safe-area-inset-top)); }
  .top .date { display: none; }
  .mob-brand { display: flex; }
  .add-top { display: none; }
  .grid-today, .grid2, .grid3 { grid-template-columns: 1fr; gap: 16px; }
  .col-a, .col-b { gap: 16px; }
  h1 { font-size: 1.75em; }
  .big { font-size: 3.7em; }
  .hero { padding: 20px 20px 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell { min-height: 58px; padding: 4px; border-radius: 9px; }
  .ev { font-size: 0; height: 6px; padding: 0; border-radius: 3px; background: var(--muted); }
  .ev.pay { background: var(--good); } .ev.back { background: var(--warn); } .ev.done { background: var(--line); }
  .dn i { display: none; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68em; font-weight: 700; color: var(--muted); padding: 4px 0; }
  .tabs a.on { color: var(--acc); }
  .fab { justify-self: center; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; margin-top: -22px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); cursor: pointer; }
  .fab .ic { width: 26px; height: 26px; }
  .sheet { place-items: end center; }
  .panel { width: 100vw; border-radius: 22px 22px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .envs.wide li { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 6px; }
  .envs.wide li .nm { grid-column: 1; grid-row: 1; }
  .envs.wide li > b { grid-column: 2; grid-row: 1; }
  .envs.wide li > .btn { grid-column: 3; grid-row: 1; }
  .envs.wide li .bar { grid-column: 1 / -1; grid-row: 2; }
}
