:root {
  --bg: #0B0F15;
  --ink: #E8EDF3;
  --ink-2: #A9B3C1;
  --ink-3: #8C97A8;
  --teal: #19C8B4;
  --teal-2: #7FE3D7;
  --on-teal: #06231F;
  --amber: #EBA443;
  --amber-2: #F2BC6E;
  --red: #F07272;
  --red-2: #F48A8A;
  --blue: #6F8FFF;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.14);
  --rule: rgba(255, 255, 255, 0.08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif; font-size: 15px; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.teal { color: var(--teal); }
.amber { color: var(--amber-2); }
.red { color: var(--red-2); }
.hidden { display: none !important; }

/* ambient light behind the glass */
.blobs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blobs i { position: absolute; border-radius: 50%; display: block; }
.blobs i:nth-child(1) { width: 380px; height: 380px; top: -130px; right: -150px; background: radial-gradient(circle, rgba(25, 200, 180, .34) 0%, rgba(25, 200, 180, 0) 70%); }
.blobs i:nth-child(2) { width: 420px; height: 420px; top: 40%; left: -220px; background: radial-gradient(circle, rgba(64, 120, 255, .22) 0%, rgba(64, 120, 255, 0) 70%); }
.blobs i:nth-child(3) { width: 340px; height: 340px; bottom: -150px; right: -110px; background: radial-gradient(circle, rgba(25, 200, 180, .18) 0%, rgba(25, 200, 180, 0) 70%); }
body.warn-glow .blobs i:nth-child(2) { background: radial-gradient(circle, rgba(235, 164, 67, .26) 0%, rgba(235, 164, 67, 0) 70%); }

#app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: calc(18px + var(--safe-t)) 20px calc(110px + var(--safe-b)); display: flex; flex-direction: column; gap: 22px; }
.glass { background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.card { border-radius: 22px; padding: 16px 18px; }
.card.strong { background: rgba(255, 255, 255, .06); border-color: var(--line-2); border-radius: 24px; }
.card.teal-tint { background: rgba(25, 200, 180, .08); border-color: rgba(25, 200, 180, .4); }
.card.amber-tint { background: rgba(235, 164, 67, .08); border-color: rgba(235, 164, 67, .4); }
section { display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.4px; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
h3 { margin: 0; font-size: 14px; font-weight: 600; }
.sub { font-size: 13px; color: var(--ink-2); }
.small { font-size: 12px; }
.label { font-size: 13px; font-weight: 600; color: #C9D1DC; }

header.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
header.top .back { margin-right: auto; }
.round-btn { width: 46px; height: 46px; border-radius: 23px; display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; flex: none; padding: 0; }
.round-btn .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 4px; background: var(--amber); box-shadow: 0 0 8px rgba(235, 164, 67, .8); }

/* hero */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.hero .row1 { display: flex; justify-content: space-between; align-items: center; }
.hero .big { font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; display: flex; align-items: center; gap: 10px; }
.hero .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.hero .bottom .meta { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.glow-ico { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(25, 200, 180, .2); border: 1px solid rgba(25, 200, 180, .55); box-shadow: 0 0 18px rgba(25, 200, 180, .45); flex: none; }
.glow-ico.amber { background: rgba(235, 164, 67, .18); border-color: rgba(235, 164, 67, .6); box-shadow: 0 0 22px rgba(235, 164, 67, .45); }
.glow-ico.red { background: rgba(240, 114, 114, .18); border-color: rgba(240, 114, 114, .6); box-shadow: 0 0 22px rgba(240, 114, 114, .45); }
.glow-ico.lg { width: 48px; height: 48px; border-radius: 15px; }
.eye { background: none; border: 0; padding: 4px; cursor: pointer; display: inline-flex; }

/* shortcut tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; }
.tile span.box { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.tile.on { color: var(--ink); font-weight: 600; }
.tile.on span.box { background: rgba(25, 200, 180, .22); border: 1px solid rgba(25, 200, 180, .6); box-shadow: 0 0 22px rgba(25, 200, 180, .45); }

/* budget mini cards */
.minis { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 4); gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.minis::-webkit-scrollbar { display: none; }
.mini { border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mini .n { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .v { font-size: 13px; font-weight: 600; white-space: nowrap; }
.mini .v small { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.mini.over { border-color: rgba(240, 114, 114, .45); }
.bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.bar.lg { height: 8px; border-radius: 4px; }
.bar.xl { height: 10px; border-radius: 5px; }
.bar.glow > i { box-shadow: 0 0 12px rgba(25, 200, 180, .7); }

/* rows */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 12px 14px; width: 100%; text-align: left; cursor: pointer; }
.row .ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; background: rgba(140, 151, 168, .16); border: 1px solid rgba(140, 151, 168, .4); }
.row .ico.teal { background: rgba(25, 200, 180, .16); border-color: rgba(25, 200, 180, .55); box-shadow: 0 0 14px rgba(25, 200, 180, .3); }
.row .ico.amber { background: rgba(235, 164, 67, .16); border-color: rgba(235, 164, 67, .55); box-shadow: 0 0 14px rgba(235, 164, 67, .3); }
.row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .mid b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .mid span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { font-size: 14px; font-weight: 600; white-space: nowrap; }
.list { border-radius: 20px; padding: 4px 16px; display: flex; flex-direction: column; }
.list > .li { display: flex; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--rule); }
.list > .li:last-child { border-bottom: 0; }
.list > .li .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list > .li .grow b { font-size: 14px; font-weight: 600; }
.list > .li .grow span { font-size: 12px; color: var(--ink-2); }
.swatch { width: 8px; height: 28px; border-radius: 4px; flex: none; }
.day-head { font-size: 12px; color: var(--ink-3); margin: 6px 4px -2px; font-weight: 600; }

/* buttons + inputs */
.btn { height: 52px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass-2); color: var(--ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; cursor: pointer; }
.btn.primary { background: var(--teal); color: var(--on-teal); border: 0; box-shadow: 0 0 24px rgba(25, 200, 180, .45); }
.btn.small { height: 40px; border-radius: 12px; font-size: 13px; padding: 0 14px; }
.btn.danger { color: var(--red-2); border-color: rgba(240, 114, 114, .4); }
.btn:disabled { opacity: .5; }
.btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 14px; }
.seg button { flex: 1; height: 38px; border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 500; padding: 0 14px; cursor: pointer; }
.seg button.on { border-color: rgba(25, 200, 180, .5); background: rgba(25, 200, 180, .18); color: #E8FFFB; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #D5DCE5; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip.on { border-color: rgba(25, 200, 180, .65); background: rgba(25, 200, 180, .2); box-shadow: 0 0 14px rgba(25, 200, 180, .3); color: #E8FFFB; font-weight: 600; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.input, select.input, textarea.input { height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); padding: 0 14px; font-size: 16px; color: var(--ink); width: 100%; outline: none; }
textarea.input { height: 90px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: rgba(25, 200, 180, .7); box-shadow: 0 0 18px rgba(25, 200, 180, .22); }
.input.big { height: 58px; font-size: 18px; font-weight: 500; border-radius: 18px; border-color: rgba(25, 200, 180, .7); box-shadow: 0 0 20px rgba(25, 200, 180, .25); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kv { display: flex; flex-direction: column; gap: 3px; }
.kv span { font-size: 12px; color: var(--ink-3); }
.kv b { font-size: 14px; font-weight: 600; }
.toggle { width: 52px; height: 32px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .1); padding: 2px; display: flex; justify-content: flex-start; cursor: pointer; flex: none; }
.toggle i { width: 26px; height: 26px; border-radius: 13px; background: var(--ink); display: block; }
.toggle.on { background: var(--teal); border-color: var(--teal); justify-content: flex-end; box-shadow: 0 0 14px rgba(25, 200, 180, .5); }
.toggle.on i { background: var(--on-teal); }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; background: rgba(0, 0, 0, .3); border-radius: 10px; padding: 10px 12px; color: var(--teal-2); }
ol.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: #C9D1DC; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* floating nav */
nav.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); width: min(calc(100% - 32px), 488px); height: 66px; border-radius: 33px; background: rgba(20, 26, 36, .6); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); display: flex; justify-content: space-around; align-items: center; padding: 0 6px; z-index: 20; }
nav.dock a { width: 48px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-3); }
nav.dock a i { width: 4px; height: 4px; border-radius: 2px; display: block; }
nav.dock a.on { color: var(--teal); }
nav.dock a.on i { background: var(--teal); box-shadow: 0 0 6px var(--teal); }
nav.dock a.fab { width: 54px; height: 54px; border-radius: 27px; background: var(--teal); box-shadow: 0 0 0 6px rgba(25, 200, 180, .16), 0 0 28px rgba(25, 200, 180, .6); color: var(--on-teal); }

/* sheets */
.scrim { position: fixed; inset: 0; background: rgba(4, 7, 11, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 40; animation: fade .18s ease-out; }
.sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); width: min(calc(100% - 24px), 500px); max-height: calc(100dvh - 60px - var(--safe-t)); overflow-y: auto; border-radius: 30px; background: rgba(24, 30, 40, .82); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); padding: 12px 20px 22px; z-index: 41; display: flex; flex-direction: column; gap: 16px; animation: up .22s cubic-bezier(.2, .8, .2, 1); }
.sheet .grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); flex: none; }
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(16px + var(--safe-t)); padding: 12px 18px; border-radius: 16px; background: rgba(24, 30, 40, .9); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); z-index: 60; font-size: 14px; max-width: calc(100% - 40px); animation: fade .2s; }
.toast.err { border-color: rgba(240, 114, 114, .5); }

/* lock */
.lock { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px; background: rgba(11, 15, 21, .7); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); text-align: center; }
.lock .logo { width: 72px; height: 72px; border-radius: 22px; background: var(--teal); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(25, 200, 180, .5); }
.lock .btn { width: 100%; max-width: 320px; }
.spin { width: 22px; height: 22px; border: 2.5px solid rgba(255, 255, 255, .2); border-top-color: var(--teal); border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.skeleton { height: 160px; border-radius: 24px; }
.empty { text-align: center; padding: 26px 16px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- screens (views.js) ---------- */
.round-btn { color: var(--ink); }
.glow-ico.plain { background: rgba(255, 255, 255, .06); border-color: var(--line); box-shadow: none; color: var(--ink); }
h1.h-sm { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-3); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.hero .big .eye { margin-top: 4px; }
.tile.on span.box { color: #E8FFFB; }
.mini { text-decoration: none; }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
.axis .cur { color: var(--ink); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 12px; background: rgba(25, 200, 180, .16); border: 1px solid rgba(25, 200, 180, .45); color: var(--teal-2); font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .4px; background: rgba(25, 200, 180, .18); color: var(--teal-2); vertical-align: 2px; }

/* lists made of buttons / links / labels */
.list > button.li, .list > a.li, .list > label.li { background: none; border: 0; border-bottom: 1px solid var(--rule); width: 100%; text-align: left; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.list > button.li:last-child, .list > a.li:last-child, .list > label.li:last-child { border-bottom: 0; }
.list > .li > b.num, .list > .li > .num { white-space: nowrap; }
details.li-more { border-bottom: 0; }
details.li-more > summary.li { display: flex; align-items: center; gap: 12px; min-height: 54px; }
details.li-more .sub-li { display: flex; align-items: center; gap: 12px; min-height: 40px; padding-left: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
details.li-more .sub-li .grow { flex: 1; }

/* quick add */
.preview .pv-amt { font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.preview .kvs { padding-top: 12px; border-top: 1px solid var(--line); gap: 14px 16px; }
.date-inline { background: none; border: 0; padding: 0; margin: 0; height: 21px; font-size: 14px; font-weight: 600; color: var(--ink); color-scheme: dark; width: 100%; min-width: 0; outline: none; -webkit-appearance: none; appearance: none; text-align: left; }
.date-inline::-webkit-date-and-time-value { text-align: left; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 18px; padding: 12px 16px; }
.bottom-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--safe-b)); width: min(calc(100% - 40px), 480px); display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; z-index: 20; }
.bottom-bar .btn { height: 54px; border-radius: 18px; }
.bottom-bar .btn:not(.primary) { background: rgba(24, 30, 40, .7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.bottom-bar .btn.primary { font-size: 15px; box-shadow: 0 0 26px rgba(25, 200, 180, .5); }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

/* flow */
.seg.inline button { flex: none; height: 36px; }

/* recurring */
.rec-hero { position: relative; overflow: hidden; min-height: 176px; justify-content: space-between; padding: 20px; background: rgba(255, 255, 255, .07); }
.hero-stripes { position: absolute; right: -10px; top: 0; pointer-events: none; }
.ap-li { flex-direction: column; align-items: stretch !important; gap: 8px !important; padding: 12px 0 !important; min-height: 0 !important; }
.ap-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ap-top b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-top span { white-space: nowrap; font-size: 13px; }
.ap-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.ap-seg i { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.ap-seg i.on { background: var(--teal); }
.avatar { width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #C9D1DC; flex: none; }

/* goal */
.gbars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; height: 72px; }
.gbars i { display: block; background: rgba(255, 255, 255, .14); border-radius: 5px; }
.gbars i.on { background: var(--teal); box-shadow: 0 0 14px rgba(25, 200, 180, .6); }
.gbars i.plan { background: rgba(25, 200, 180, .12); border: 1px dashed rgba(25, 200, 180, .7); }

/* transactions */
.search { position: relative; }
.search > span { position: absolute; left: 14px; top: 15px; display: flex; pointer-events: none; }
.search .input { padding-left: 42px; }
.search .input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
select.chip { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #A9B3C1 50%), linear-gradient(135deg, #A9B3C1 50%, transparent 50%); background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px; background-repeat: no-repeat; max-width: 100%; }
.chip svg { vertical-align: -2px; }

/* settings */
details.set { border-radius: 20px; }
details.set > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 66px; }
details.set > summary .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
details.set > summary .grow b { font-size: 15px; font-weight: 600; }
details.set > summary .grow span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.set > summary .chev { color: var(--ink-3); display: flex; transition: transform .2s; }
details.set[open] > summary .chev { transform: rotate(90deg); }
details.set .set-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--rule); }
details.set .list { background: rgba(255, 255, 255, .035); }
.money-in { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 14px; }
.input.sm { height: 40px; width: 84px; font-size: 15px; text-align: right; border-radius: 12px; padding: 0 10px; }
.shift-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 48px; gap: 8px; }
.shift-form .input { padding: 0 8px; font-size: 14px; color-scheme: dark; }
.shift-form .btn { height: 48px; padding: 0; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .code { flex: 1; min-width: 0; }
.copy-row .round-btn { width: 42px; height: 42px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--teal-2); }
input[type=time].input, input[type=date].input { color-scheme: dark; }
details.li-more > summary.li .grow { flex: 1; min-width: 0; }
.bottom-bar .btn { padding: 0 12px; white-space: nowrap; }
body[data-view="add"] #app { padding-bottom: calc(96px + var(--safe-b)); }
.hero .bottom > div:last-child svg { display: block; }
@media (min-width: 375px) { .hero .meta .fit { white-space: nowrap; } }
.mini .v { overflow: hidden; text-overflow: ellipsis; }
/* A tall sheet scrolls instead of squashing its buttons; iOS date inputs stay inside their column. */
.sheet > *, .sheet .stack > * { flex-shrink: 0; }
.grid2 > label, .grid2 > div { min-width: 0; }
input[type=date].input, input[type=time].input { -webkit-appearance: none; appearance: none; min-width: 0; width: 100%; display: block; text-align: left; }
input[type=date].input::-webkit-date-and-time-value, input[type=time].input::-webkit-date-and-time-value { text-align: left; }
