/* My Money — deep green + gold. Tokens on :root, dark mode below. */
:root {
  --brand: #123a30; --brand-ink: #ffffff;
  --accent: #d9a12c; --accent-ink: #17120a; --accent-soft: rgba(217,161,44,.16); --accent-dark: #8a6410; --accent-text: var(--accent-dark);
  --bg: #f2f4f7; --card: #ffffff; --card-2: #f7f8fa; --ink: #111a22; --ink-2: #3b4652; --muted: #66727e; --line: #e3e7ec;
  --good: #16794a; --good-soft: rgba(22,121,74,.10); --bad: #b42318; --bad-soft: rgba(180,35,24,.08);
  --warn: #8a5300; --warn-soft: #fff5e1;
  --radius: 16px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #e0ad3e; --accent-ink: #17120a; --accent-soft: rgba(224,173,62,.16); --accent-text: var(--accent);
    --bg: #0d1217; --card: #161d24; --card-2: #1c252e; --ink: #e9eef3; --ink-2: #c3ccd5; --muted: #8e9ba7; --line: #26313b;
    --good: #45c486; --good-soft: rgba(69,196,134,.14); --bad: #ff8b80; --bad-soft: rgba(255,139,128,.12);
    --warn: #ffbf5e; --warn-soft: #2b2112;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "tnum" 1; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); }
h1 { font-size: 1.65rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: .1rem 0 .7rem; }
h2 { font-size: 1.05rem; letter-spacing: -.01em; font-weight: 700; margin: 1.3rem 0 .55rem; }
h3 { font-size: .95rem; margin: .8rem 0 .4rem; }
a { color: var(--accent-text); }
.ic { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.sm { width: 17px; height: 17px; } .ic.lg { width: 28px; height: 28px; }

/* ---- top bar + bottom menu ---- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--brand); color: var(--brand-ink); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-ink); color: var(--brand); font-size: .78rem; font-weight: 800; }
#who { display: flex; align-items: center; gap: 8px; font-size: .85rem; opacity: .92; max-width: 55%; overflow: hidden; white-space: nowrap; }
#who .avatar { background: rgba(255,255,255,.18); color: var(--brand-ink); }
main { max-width: 980px; margin: 0 auto; padding: 16px; }
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; display: flex; background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav { background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
}
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 9px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; min-height: var(--nav-h); }
.nav a .i { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 99px; transition: background .15s; }
.nav a.on { color: var(--accent-text); }
.nav a.on .i { background: var(--accent-soft); }
.badge { position: absolute; top: -3px; right: 4px; min-width: 18px; height: 18px; display: grid; place-items: center; background: var(--accent);
  border-radius: 99px; font-size: .65rem; font-weight: 800; padding: 0 5px; border: 2px solid var(--card); font-style: normal; color: var(--accent-ink); }
.badge.red { background: var(--bad); color: #fff; }
.badge.inline { position: static; display: inline-grid; border: 0; margin-left: 6px; vertical-align: 1px; }

/* ---- basics ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.muted { color: var(--muted); } .small { font-size: .84rem; } .center { text-align: center; } .pad { padding: 24px 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pos { color: var(--good); } .neg { color: var(--bad); }
.warn { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: .9rem; }
.okbar { display: flex; gap: 8px; justify-content: space-between; align-items: center; background: var(--good-soft); color: var(--good); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: .9rem; font-weight: 600; }
.err { color: var(--bad); font-size: .9rem; min-height: 1.2em; margin: 4px 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty .ic { width: 40px; height: 40px; stroke-width: 1.5; opacity: .6; display: block; margin: 0 auto 8px; }
.empty b { display: block; color: var(--ink-2); font-size: 1rem; margin-bottom: 2px; }

/* ---- form fields: every input looks the same ---- */
label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), select, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background-color: var(--card); min-height: 48px;
  font-size: 16px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: .95rem; font-weight: 500; margin: 6px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  transition: transform .08s, background .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.btn.danger { color: var(--bad); } .btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.block { width: 100%; } .btn.small { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn.icon { width: 40px; min-height: 40px; padding: 0; border-radius: 99px; }
.btn:disabled { opacity: .5; cursor: default; }
#sheet-body .btn.block { margin-top: 8px; }
.fab { position: fixed; right: max(16px, calc(50% - 474px)); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); z-index: 7;
  width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); cursor: pointer; }
.fab .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.seg { display: flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 6px; min-height: 40px; cursor: pointer; font-size: .88rem; font-weight: 600; border-radius: 9px; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--accent-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (prefers-color-scheme: dark) { .seg button.on { background: var(--accent-soft); } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 13px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 99px; cursor: pointer; white-space: nowrap; min-height: 38px; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.tabs button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }

/* ---- avatars, pills, tags ---- */
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text);
  font-size: .75rem; font-weight: 800; flex: none; letter-spacing: .02em; }
.avatar.sm { width: 24px; height: 24px; font-size: .62rem; }
.avatar.any { background: var(--card-2); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill.waiting { background: var(--warn-soft); color: var(--warn); } .pill.approved { background: var(--good-soft); color: var(--good); }
.pill.rejected { background: var(--bad-soft); color: var(--bad); } .pill.bokio { background: var(--accent-soft); color: var(--accent-text); }
.tag { display: inline-block; font-size: .7rem; padding: 2px 8px; border-radius: 99px; background: var(--card-2); color: var(--muted); margin-right: 5px; font-weight: 700; vertical-align: 1px; }
.tag.income { background: var(--good-soft); color: var(--good); } .tag.cost { background: var(--bad-soft); color: var(--bad); } .tag.payout { background: var(--accent-soft); color: var(--accent-text); }
.tag.disputed { background: var(--bad); color: #fff; }

/* ---- car page ---- */
.carhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plate { display: inline-block; font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; border: 2px solid var(--ink); border-radius: 9px; padding: 1px 10px 0;
  font-family: "DIN Alternate", "Arial Narrow", Arial, sans-serif; background: var(--card); }
.monthbar { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; }
.monthbar .m { flex: 1; text-align: center; font-weight: 700; }
.big { border-radius: 20px; padding: 18px; margin: 10px 0; color: var(--brand-ink); background: var(--brand); position: relative; overflow: hidden; }
.big::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.07); }
.big .k { opacity: .85; font-size: .9rem; } .big .v { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; }
.big.owe-company { background: #8a3b12; } .big.settled { background: #3b4a57; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; box-shadow: var(--shadow); }
.stat .k { font-size: .76rem; color: var(--muted); font-weight: 600; } .stat .v { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.subtabs { position: sticky; top: calc(50px + env(safe-area-inset-top)); z-index: 4; background: var(--bg); margin: 4px -16px 6px; padding: 6px 16px 8px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lines li:last-child { border-bottom: 0; }
.lines li.tap { cursor: pointer; }
.lines .d { font-size: .8rem; color: var(--muted); } .lines .t { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.lines .a { text-align: right; font-weight: 750; } .lines .b { text-align: right; font-size: .8rem; color: var(--muted); }

/* ---- tables ---- */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: .74rem; color: var(--muted); font-weight: 700; background: var(--card-2); position: sticky; top: 0; }
td.n, th.n { text-align: right; } tr.total td { font-weight: 800; background: var(--card-2); } tr.click { cursor: pointer; }
td.wrap { white-space: normal; min-width: 160px; }

/* ---- sheets, toast ---- */
.code { font: 700 1.6rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-align: center; padding: 14px; background: var(--card-2);
  border: 2px dashed var(--accent); border-radius: 14px; user-select: all; overflow-wrap: anywhere; }
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(5,10,15,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet[hidden] { display: none; }
.sheet-box { position: relative; background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.sheet-box::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 9px; background: var(--line); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-box { border-radius: 22px; } .sheet-box::before { display: none; } }
.sheet-x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
#sheet-body h2:first-child { margin-top: 0; padding-right: 40px; font-size: 1.2rem; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px); z-index: 30; max-width: 440px; margin: 0 auto;
  background: var(--ink); color: var(--card); padding: 13px 16px; border-radius: 14px; text-align: center; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: up .2s ease-out; }
.toast[hidden] { display: none; }
@keyframes up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- login ---- */
.login { max-width: 420px; margin: 8px auto; }
.hero { text-align: center; margin: 22px 0 18px; }
.hero .logo { width: 64px; height: 64px; border-radius: 18px; font-size: 1.4rem; margin: 0 auto 12px; background: var(--brand); color: var(--brand-ink); }
.hero h1 { margin: 0; } .hero p { color: var(--muted); margin: 4px 0 0; }

/* ---- lists ---- */
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
a.list-item { color: inherit; text-decoration: none; } .list-item.tap { cursor: pointer; }
.status-ok { color: var(--good); } .status-dup { color: var(--muted); } .status-err { color: var(--bad); }
pre.log { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .75rem; margin: 4px 0 0; color: var(--muted); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.card summary { cursor: pointer; } details.card[open] summary { margin-bottom: 10px; }
ol.small { margin: 4px 0 0 18px; padding: 0; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }

/* ---- documents ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tile .thumb { aspect-ratio: 4 / 3; background: var(--card-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile .thumb .ic { width: 38px; height: 38px; stroke-width: 1.4; }
.tile .meta { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile .ttl { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .pills { display: flex; gap: 4px; flex-wrap: wrap; }
.docimg { display: block; max-width: 100%; max-height: 50vh; margin: 8px auto; border-radius: 12px; border: 1px solid var(--line); }
.bokiobar { border-color: var(--accent); background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--card); }

/* ---- messages ---- */
.chathead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.chathead h1 { margin: 0; font-size: 1.3rem; }
.chat { display: flex; flex-direction: column; gap: 3px; padding: 4px 0 12px; }
.daysep { align-self: center; font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--card-2); border-radius: 99px; padding: 3px 10px; margin: 10px 0 6px; }
.msgrow { display: flex; gap: 8px; align-items: flex-end; }
.msgrow.mine { justify-content: flex-end; }
.msgrow .avatar { margin-bottom: 2px; }
.msgrow .spacer { width: 24px; flex: none; }
.bubble { max-width: 80%; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 8px 12px 6px; overflow-wrap: anywhere; box-shadow: var(--shadow); }
.mine .bubble { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-radius: 18px 18px 6px 18px; }
.bubble .who { font-size: .72rem; font-weight: 800; color: var(--accent-text); margin-bottom: 1px; }
.bubble .txt { white-space: pre-wrap; }
.bubble .meta { font-size: .68rem; opacity: .75; text-align: right; margin-top: 1px; }
.bubble a.ref { display: flex; gap: 6px; align-items: center; font-size: .8rem; margin: 2px 0 5px; padding: 6px 9px; border-radius: 10px; background: rgba(127,127,127,.15); color: inherit; text-decoration: none; }
.compose { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 5; background: var(--bg);
  border-top: 1px solid var(--line); padding: 8px 12px; }
.compose .in { max-width: 948px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.compose textarea { min-height: 46px; max-height: 140px; border-radius: 23px; padding: 12px 16px; resize: none; line-height: 1.3; }
.compose .send { width: 46px; height: 46px; border-radius: 99px; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.compose .send:disabled { opacity: .45; }
.compose .refnote { max-width: 948px; margin: 0 auto 6px; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--accent-text); font-weight: 600; }
.chatpad { height: 96px; }
.thread { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.thread:last-child { border-bottom: 0; }
.thread .avatar { width: 46px; height: 46px; font-size: .9rem; }
.thread .name { font-weight: 650; } .thread .last { font-size: .86rem; color: var(--muted); }
.thread.unread .name, .thread.unread .last { color: var(--ink); font-weight: 750; }
.thread .when { font-size: .75rem; color: var(--muted); text-align: right; white-space: nowrap; }

/* ---- tasks ---- */
.tgroup { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 2px 7px; display: flex; gap: 6px; align-items: center; }
.tgroup.late { color: var(--bad); }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; box-shadow: var(--shadow); transition: opacity .25s, transform .25s; }
.task.leaving { opacity: 0; transform: translateX(30px); }
.tcheck { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 99px; border: 2px solid var(--muted); flex: none; margin: 1px 0 0; cursor: pointer; display: grid; place-items: center; background: var(--card); }
.tcheck:checked { background: var(--good); border-color: var(--good); }
.tcheck:checked::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.task .tap { cursor: pointer; min-width: 0; flex: 1; }
.task .ttl { font-weight: 650; overflow-wrap: anywhere; }
.task.done .ttl { text-decoration: line-through; color: var(--muted); }
.task .tmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--muted); margin-top: 5px; align-items: center; }
.task .tmeta .late { color: var(--bad); font-weight: 700; }
.task .tmeta span { display: inline-flex; align-items: center; gap: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
input[type=color].colorpick { width: 56px; min-width: 56px; height: 48px; min-height: 48px; padding: 4px; border-radius: 12px; cursor: pointer; }
.swatch { width: 34px; height: 34px; border-radius: 99px; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
#nudge .mi { width: 36px; height: 36px; }
/* ---- profit, bars, year ---- */
.period { margin: 8px 0 0; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar .row { font-size: .92rem; }
.track { display: block; height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; margin-top: 5px; }
.fill { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .5s ease-out; }
.fill.income { background: var(--good); } .fill.cost { background: var(--bad); opacity: .8; }
.months { display: flex; flex-direction: column; }
.mrow { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.mrow:last-child { border-bottom: 0; }
.mrow .mn { font-weight: 700; color: var(--ink-2); font-size: .85rem; }
.mrow .mbars { display: flex; flex-direction: column; gap: 3px; }
.mrow .mbars .fill { height: 6px; }
.mrow .mp { font-weight: 750; font-size: .9rem; min-width: 96px; text-align: right; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; margin: 0 3px 0 6px; vertical-align: 0; }
.dot.income { background: var(--good); } .dot.cost { background: var(--bad); }
.carrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.carrow:last-child { border-bottom: 0; }
.carrow .track { margin-top: 6px; }
.plate.sm { font-size: .95rem; padding: 0 7px; border-width: 1.5px; border-radius: 7px; }
.tag.noreceipt { background: var(--warn-soft); color: var(--warn); }
.lines.voided li { opacity: .65; }
.readcard { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.readcard .ic { vertical-align: -3px; }
.readyc { border-color: var(--accent); }
.readyrow { align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.readyrow:last-of-type { border-bottom: 0; }
.readyrow input { margin-top: 3px; }

/* ---- orders / trips ---- */
.order { padding: 12px 14px; }
.order .tap { cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.order.st-new, .order.st-awaiting_payment { border-left: 4px solid var(--accent); }
.order.st-on_way { border-left: 4px solid var(--good); }
.order.st-cancelled, .order.st-expired { opacity: .7; }
.otime { display: inline-flex; align-items: center; gap: 6px; font-size: 1.02rem; }
.oroute { display: flex; flex-direction: column; gap: 2px; font-weight: 650; line-height: 1.3; }
.oacts { margin-top: 10px; }
.ink { color: var(--ink); }
.pill.ost-new, .pill.ost-awaiting_payment { background: var(--accent-soft); color: var(--accent-text); }
.pill.ost-confirmed { background: var(--card-2); color: var(--ink); border: 1px solid var(--line); }
.pill.ost-on_way { background: var(--good-soft); color: var(--good); }
.pill.ost-done { background: var(--good); color: #fff; }
.pill.ost-cancelled, .pill.ost-expired { background: var(--bad-soft); color: var(--bad); }
.stepline { display: flex; gap: 4px; margin: 10px 0 14px; }
.stepline span { flex: 1; text-align: center; font-size: .72rem; font-weight: 700; padding: 7px 2px; border-radius: 8px; background: var(--card-2); color: var(--muted); }
.stepline span.on { background: var(--accent); color: var(--accent-ink); }
.warnbox { display: flex; gap: 10px; align-items: center; background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.warnbox .ic { color: var(--warn); flex: none; }
.card.flat { box-shadow: none; background: var(--card-2); }
.list-item .right { text-align: right; overflow-wrap: anywhere; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
b.unread { color: var(--ink); } b.unread::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 9px; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.carpick { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.carpick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* ---- bank ---- */
.sortbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--card-2); }
.sortbar i { display: block; height: 100%; }
.sortbar .car, .dot.car { background: var(--good); }
.sortbar .co, .dot.co { background: var(--muted); }
.sortbar .open, .dot.open { background: var(--accent); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 9px; margin-right: 5px; vertical-align: 0; }
.row.small { gap: 14px; }
b.big { font-size: 1.5rem; }
.nowrap { white-space: nowrap; }
.splitrow { margin: 4px 0; } .splitrow input { max-width: 120px; }
.pos { color: var(--good); } .neg { color: var(--bad); }
.wrow.rejected { background: var(--bad-soft); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.wbtns { gap: 6px; flex: none; }
button.tapcard { width: 100%; text-align: left; cursor: pointer; font: inherit; }

/* ---- My Money ---- */
.hero-money { border-radius: 22px; padding: 18px 18px 16px; margin: 10px 0 12px; background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; }
.hero-money::after { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(217,161,44,.35), transparent 70%); }
.hero-money .k { opacity: .85; font-size: .9rem; } .hero-money .v { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 10px; }
.hero-money .io { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.hero-money .io div { background: rgba(255,255,255,.1); border-radius: 14px; padding: 9px 12px; }
.hero-money .io small { display: block; opacity: .8; font-size: .76rem; font-weight: 600; } .hero-money .io b { font-size: 1.08rem; }
.emo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--card-2); font-size: 1.05rem; flex: none; }
.txrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.txrow:last-child { border-bottom: 0; }
.txrow .mid { flex: 1; min-width: 0; } .txrow .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txrow .d { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txrow .a { font-weight: 760; white-space: nowrap; text-align: right; }
.txrow.unsorted .emo { background: var(--warn-soft); color: var(--warn); }
.daygrp { font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 2px 2px; }
.fill.over { background: var(--bad); } .fill.near { background: var(--warn); } .fill.okb { background: var(--good); }
.brow { padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; } .brow:last-child { border-bottom: 0; }
.brow .row { gap: 10px; flex-wrap: nowrap; }
.chipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.chipgrid .chip { text-align: left; border-radius: 12px; padding: 9px 10px; display: flex; gap: 7px; align-items: center; min-height: 44px; }
.trend { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding-top: 6px; }
.trend .mcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trend .pair { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.trend .pair i { display: block; width: 9px; border-radius: 4px 4px 0 0; min-height: 2px; }
.trend .pair i.in { background: var(--good); } .trend .pair i.out { background: var(--bad); opacity: .8; }
.trend small { font-size: .68rem; color: var(--muted); font-weight: 700; }
.alertbox { background: var(--bad-soft); border: 1.5px solid var(--bad); border-radius: 16px; padding: 14px; margin: 8px 0 12px; }
.alertbox h2 { margin: 0 0 4px; color: var(--bad); }
.amount-in { font-size: 1.6rem !important; font-weight: 800; text-align: center; letter-spacing: -.01em; }
.days { font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--card-2); color: var(--ink-2); white-space: nowrap; }
.days.soon { background: var(--warn-soft); color: var(--warn); } .days.late { background: var(--bad); color: #fff; }
.acc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.acc:last-child { border-bottom: 0; } .acc .mid { flex: 1; min-width: 0; } .acc .v { font-weight: 800; white-space: nowrap; }
.filebox { border: 2px dashed var(--line); border-radius: 16px; padding: 18px; text-align: center; cursor: pointer; display: block; }
.filebox:hover { border-color: var(--accent); }
.filebox input { display: none; }
.m0 { margin: 0; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .my10 { margin: 10px 0; } .w80 { width: 80px; flex: none; }
a.card { color: inherit; text-decoration: none; display: flex; }
[hidden] { display: none !important; }
