/* Truckpenny app screens. Shared look (colours, buttons, fields, dialogs) comes from /_s/ui/base.css. */
.app { min-height: 100vh; min-height: 100dvh; }
.nojs { padding: 24px; text-align: center; }
h1 { font-size: 30px; margin: 0; }
.a-auth { max-width: 460px; margin: 0 auto; padding: 28px 18px 40px; display: flex; flex-direction: column; gap: 18px; }
.a-logo img { height: 34px; width: auto; display: block; }
.a-logo.sm img { height: 28px; }
.a-card { padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.a-lead { margin: -4px 0 4px; color: var(--ink-2); font-size: 17px; }
.a-form { display: flex; flex-direction: column; gap: 14px; }
.a-hint { margin: 0; font-size: 14px; color: var(--ink-3); text-align: center; }
.a-fine { margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.a-msg { margin: 0; color: var(--bad); font-weight: 600; } .a-msg:empty { display: none; }
.a-or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; margin: 4px 0; }
.a-or::before, .a-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.a-switch { margin: 6px 0 0; text-align: center; color: var(--ink-2); }
.a-switch a, .a-link { font-weight: 700; }
.a-link { background: none; border: 0; padding: 6px 10px; font: inherit; color: var(--copper-dark); text-decoration: underline; cursor: pointer; border-radius: 8px; }
.a-link:hover { color: var(--asphalt); background: var(--hover); }
.a-ts:empty { display: none; } .a-ts { min-height: 65px; }
.a-kind { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.a-kind legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
@media (min-width: 480px) { .a-kind { grid-template-columns: 1fr 1fr; } .a-kind legend { grid-column: 1 / -1; } }
.a-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--field); border-radius: var(--r); padding: 12px 14px; cursor: pointer; background: var(--white); }
.a-opt:hover { background: var(--hover); }
.a-opt:has(input:checked) { border-color: var(--copper); background: var(--peach-soft); box-shadow: 0 0 0 1px var(--copper); }
.a-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--copper); flex: none; }
.a-opt span { display: flex; flex-direction: column; gap: 2px; } .a-opt small { color: var(--ink-3); font-size: 14px; }
.a-code { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.a-pk-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--peach); display: flex; align-items: center; justify-content: center; }
.a-pk-ic svg { width: 30px; height: 30px; fill: none; stroke: var(--copper-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-langs { display: flex; justify-content: center; gap: 8px; }
.a-langs button { border: 1px solid var(--field); background: var(--white); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; cursor: pointer; color: var(--asphalt); min-height: 40px; }
.a-langs button:hover { background: var(--hover); }
.a-langs button.on { background: var(--asphalt); color: var(--on); border-color: var(--asphalt); }
.a-top { background: rgba(245,244,241,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(8px); }
.a-top-in { max-width: 960px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 14px; }
.a-who { margin-left: auto; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.a-out { min-height: 40px; padding: 0 14px; flex: none; }
.a-wrap { max-width: 960px; margin: 0 auto; padding: 28px 18px 48px; display: flex; flex-direction: column; gap: 18px; }
.a-trial { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; background: var(--peach); border-radius: var(--r); padding: 14px 16px; }
.a-trial span { color: var(--ink-2); }
.a-nudge { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.a-nudge p { margin: 0; }
.a-next { padding: 22px; } .a-next h2 { font-size: 21px; margin: 0 0 6px; } .a-next p { margin: 0; color: var(--ink-2); }
@media (max-width: 480px) { .a-who { display: none; } .a-out { margin-left: auto; } h1 { font-size: 27px; } }
.btn-big { min-height: 56px; font-size: 17px; padding: 0 26px; }
/* papers */
.a-muted { color: var(--ink-3); margin: 0; }
.a-add { padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.a-add h2 { font-size: 21px; margin: 0 0 4px; } .a-add p { margin: 0; color: var(--ink-2); }
.a-add-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.a-add:has(#pf:focus-visible) .a-add-btn { outline: 3px solid var(--asphalt); outline-offset: 2px; }
.a-busy { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; width: 100%; padding: 14px 0; }
.a-busy .spin { width: 28px; height: 28px; border-width: 3px; color: var(--copper); }
.a-busy span:last-child { color: var(--ink-3); font-size: 14px; overflow-wrap: anywhere; }
.a-papers h2 { font-size: 21px; margin: 6px 0 10px; }
.a-prows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.a-prow { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.a-prow:hover { background: var(--peach-soft); border-color: var(--field); }
.a-pic { position: relative; flex: none; width: 36px; height: 40px; }
.a-pic svg { width: 36px; height: 40px; fill: var(--peach-soft); stroke: var(--copper-dark); stroke-width: 1.3; stroke-linejoin: round; }
.a-pic i { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-style: normal; font-size: 9px; font-weight: 800; color: var(--copper-dark); }
.a-pmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.a-pmain b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .a-pmain small { color: var(--ink-3); font-size: 14px; }
.a-pside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.a-pside b { font-variant-numeric: tabular-nums; } .a-flag { color: var(--warn); font-weight: 700; font-size: 13px; }
.a-back { margin: -8px 0 -6px; } .a-back .a-link { padding-left: 0; }
.a-ptitle { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; } .a-ptitle h1 { overflow-wrap: anywhere; }
.a-warnmsg { color: var(--warn); background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; }
.a-pgrid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .a-pgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .a-docbox { position: sticky; top: 76px; } }
.a-docbox { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.a-doc { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; }
iframe.a-doc { height: 70vh; min-height: 420px; } img.a-doc { height: auto; }
.a-open { align-self: center; font-weight: 700; padding: 4px 8px; }
.a-rcol { display: flex; flex-direction: column; gap: 16px; }
.a-res { padding: 20px; display: flex; flex-direction: column; gap: 14px; } .a-res h2 { font-size: 19px; margin: 8px 0 0; }
.a-rhead { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; } .a-rhead span { color: var(--ink-3); }
.a-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a-nums div { background: var(--line-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.a-nums span { font-size: 13px; font-weight: 700; color: var(--ink-3); } .a-nums b { font-size: 20px; font-variant-numeric: tabular-nums; }
.a-math { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--line-2); font-weight: 600; }
.a-math.ok { background: var(--safe-soft); color: var(--safe-ink); } .a-math.bad { background: var(--bad-bg); color: var(--bad); }
/* "Where every $100 went": its own tinted panel, a $100 note, one stacked bar, rows with colour dots */
.a-p100 { background: var(--p100-bg); border: 1px solid var(--p100-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.a-p100-h { display: flex; align-items: center; gap: 14px; } .a-p100-h h3 { font-size: 19px; margin: 0; } .a-p100-h p { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); }
.a-bill { flex: none; font-weight: 800; font-size: 17px; color: var(--safe-ink); background: var(--safe-soft); border: 2px dashed var(--ok); border-radius: 10px; padding: 8px 10px; font-variant-numeric: tabular-nums; }
.a-stack { display: flex; height: 26px; border-radius: 8px; overflow: hidden; gap: 2px; background: var(--white); }
.a-stack em { display: block; height: 100%; min-width: 3px; }
.a-split { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.a-split li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; padding: 4px 0; border-bottom: 1px dashed var(--p100-line); }
.a-split li span { display: flex; align-items: center; gap: 8px; } .a-split li span i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.a-split b { font-variant-numeric: tabular-nums; }
/* a week or year that lost money: the profit row is red, not green (Orhan: good = green, bad = red) */
.a-split li.kept.lost { background: var(--bad-bg); color: var(--bad); }
.a-split li.kept.lost i { background: var(--bad); }
.a-split li.kept { grid-column: 1 / -1; font-weight: 800; font-size: 17px; border: 0; background: var(--safe-soft); color: var(--safe-ink); border-radius: 10px; padding: 10px 12px; }
.a-split .c0 i, .a-stack .c0 { background: #D9772F; } .a-split .c1 i, .a-stack .c1 { background: #3F6FB5; } .a-split .c2 i, .a-stack .c2 { background: #8A5BB8; }
.a-split .c3 i, .a-stack .c3 { background: #C9A227; } .a-split .c4 i, .a-stack .c4 { background: #8C8E96; } .a-split .kept i, .a-stack .kept { background: var(--ok); }
:root { --p100-bg: #FBF7F1; --p100-line: #EADFCF; }
@media (max-width: 599px) { .a-split { grid-template-columns: 1fr; gap: 6px; } .a-p100 { padding: 14px; } }
/* plain bar list (Money → where costs went) */
.a-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.a-bars li { display: grid; grid-template-columns: minmax(90px, 130px) 1fr 72px; gap: 12px; align-items: center; font-size: 15px; }
.a-bars i { height: 12px; background: var(--line-2); border-radius: 99px; overflow: hidden; } .a-bars em { display: block; height: 100%; background: var(--ink-3); border-radius: 99px; }
.a-bars b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .a-bars li { grid-template-columns: 1fr auto; gap: 4px 12px; } .a-bars i { grid-column: 1 / -1; grid-row: 2; } }
.a-find { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.a-find li { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 14px; }
.a-ok { margin: 0; color: var(--safe-ink); font-weight: 600; } .a-note { margin: 0; color: var(--ink-2); }
.a-lines summary { cursor: pointer; font-weight: 700; padding: 6px 0; } .a-lines summary:hover { text-decoration: underline; }
.a-lines td small { display: block; color: var(--ink-3); font-size: 13px; } .a-lines td.n { white-space: nowrap; }
.a-confirm { background: var(--safe-soft); border: 1px solid #bcdcc8; border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.btn-ok { background: var(--safe); color: #fff; border-color: var(--safe); }
.btn-ok:hover { background: var(--safe-ink); border-color: var(--safe-ink); color: #fff; }
.a-confirm h2 { font-size: 20px; margin: 0; } .a-confirm p { margin: 0; color: var(--ink-2); }
.a-del { align-self: flex-start; color: var(--bad); }
@media (max-width: 899px) { iframe.a-doc { height: 55vh; min-height: 320px; } }
/* money */
.a-mcard { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.a-mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.a-mhead h2 { font-size: 21px; margin: 0; } .a-mhead .btn { min-height: 40px; padding: 0 14px; }
.a-mbig { display: flex; flex-direction: column; gap: 2px; }
.a-mbig span { font-weight: 700; color: var(--ink-3); font-size: 14px; }
.a-mbig b { font-family: var(--f-head, inherit); font-size: 40px; line-height: 1.1; color: var(--safe-ink); font-variant-numeric: tabular-nums; }
.a-mbig small { color: var(--ink-3); font-size: 14px; }
b.neg, .a-mbig b.neg { color: var(--bad); }
.a-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .a-n3 { grid-template-columns: 1fr 1fr; } .a-n3 div:last-child { grid-column: 1 / -1; } .a-mbig b { font-size: 34px; } }
.a-pm { margin: 0; color: var(--ink-2); } .a-pm small { color: var(--ink-3); }
.a-year { display: flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 700; color: var(--ink-2); }
.a-year select { min-width: 150px; }
.a-sec { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; } .a-sec h2 { font-size: 20px; margin: 0; }
.a-bars.a-costs li { grid-template-columns: minmax(110px, 160px) 1fr 100px; }
.a-bars.a-costs li span small { display: block; color: var(--ink-3); font-size: 13px; }
.a-nc p { margin: 0; color: var(--ink-2); } .a-nc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.a-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.a-table th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.a-table td { padding: 10px; border-bottom: 1px solid var(--line-2); }
.a-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-click tbody tr { cursor: pointer; } .a-click tbody tr:hover, .a-click tbody tr:focus-visible { background: var(--peach-soft); outline: none; }
/* automatic checks */
.a-checks { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; border-color: #ecd3a3; background: var(--warn-bg); }
.a-checks h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; }
.a-cnt { background: var(--warn); color: #fff; border-radius: 99px; font-size: 14px; min-width: 26px; height: 26px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; }
.a-checks > p { margin: 0; color: var(--ink-2); }
.a-checks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.a-checks li { background: var(--white); border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.a-checks li p { margin: 0; flex: 1 1 320px; }
.a-ckb { display: flex; gap: 8px; } .a-ckb .btn { min-height: 40px; padding: 0 14px; }
/* letter to the carrier */
.a-narrow { max-width: 760px; }
.a-lcard { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--copper); border-radius: var(--r-lg); padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; }
.a-lic { width: 44px; height: 44px; border-radius: 12px; background: var(--peach); display: flex; align-items: center; justify-content: center; align-self: start; }
.a-lic svg { width: 24px; height: 24px; fill: none; stroke: var(--copper-dark); stroke-width: 1.8; stroke-linejoin: round; }
.a-ltxt h2 { font-size: 19px; margin: 0 0 4px; } .a-ltxt p { margin: 0; color: var(--ink-2); }
.a-lnote { display: block; margin-top: 6px; color: var(--safe-ink); font-weight: 600; font-size: 14px; } .a-lnote:empty { display: none; }
.a-lcard .btn { grid-column: 1 / -1; width: 100%; min-height: 52px; }
.a-ltform { gap: 16px; }
.a-ltitems { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.a-ltitems legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.a-ltform .check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.a-ltform .check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--copper); }
.a-ltform textarea { font-family: var(--f-body); font-size: 16px; line-height: 1.5; min-height: 320px; resize: vertical; }
.a-ltbtns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 599px) { .a-ltbtns .btn { width: 100%; } }
.a-ltsafe { padding: 12px 14px; }

/* ---------- shell: side menu (wide screens) / bottom tabs (phones) ---------- */
.a-shell { min-height: 100vh; min-height: 100dvh; }
.a-main { outline: none; display: block; }
.a-main .a-wrap { max-width: 1240px; }
.a-side { display: none; }
/* the account's kind (0.4.14, Orhan chose "C"): one quiet line under the logo — no box; opens Settings */
.a-kindtag { font-size: 12.5px; color: var(--ink-3); text-decoration: none; white-space: nowrap; letter-spacing: .01em; }
.a-kindtag:hover, .a-kindtag:focus-visible { color: var(--copper-dark); text-decoration: underline; text-underline-offset: 3px; }
.a-mtop .a-kindtag { margin-left: auto; }
.a-mtop { position: sticky; top: 0; z-index: 30; background: rgba(245,244,241,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.a-mtop .a-logo img { height: 28px; }
.a-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,.05); }
.a-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--ink-3); text-decoration: none; font-size: 12px; font-weight: 700; border-radius: 12px; position: relative; cursor: pointer; min-height: 52px; justify-content: center; }
.a-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-tab:hover { color: var(--asphalt); background: var(--hover); }
.a-tab.on { color: var(--copper-dark); }
.a-tab-add { color: var(--on); }
.a-tab-add svg { width: 46px; height: 46px; padding: 11px; background: var(--copper); border-radius: 50%; stroke-width: 2.4; margin-top: -18px; box-shadow: 0 6px 16px rgba(181,86,42,.35); }
.a-tab-add span { color: var(--copper-dark); }
.a-tab-add:hover { background: none; } .a-tab-add:hover svg { background: var(--copper-dark); }
.a-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--warn); color: #fff; font-size: 11px; font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
.a-badge[hidden] { display: none; }
/* room at the bottom so the corner "Tell us" button never covers the last card or button */
.a-main { padding-bottom: 96px; }
@media (max-width: 999px) { .a-main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); } }
@media (min-width: 1000px) {
  .a-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .a-mtop, .a-tabs { display: none; }
  .a-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 22px 16px; background: var(--white); border-right: 1px solid var(--line); overflow-y: auto; }
  .a-side .a-logo img { height: 32px; margin: 2px 8px 0; }
  .a-side .a-kindtag { margin: -19px 0 2px 48px; align-self: flex-start; line-height: 1.2; }
  .a-side-add { width: 100%; min-height: 48px; gap: 8px; }
  .a-side-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .a-navs { display: flex; flex-direction: column; gap: 2px; }
  .a-nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; position: relative; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; width: 100%; text-align: left; }
  .a-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .a-nav:hover { background: var(--hover); color: var(--asphalt); }
  .a-nav.on { background: var(--peach); color: var(--copper-dark); }
  .a-nav .a-badge { position: static; margin-left: auto; }
  .a-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
  .a-acct { display: flex; flex-direction: column; padding: 0 12px 6px; min-width: 0; }
  .a-acct b, .a-acct small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .a-acct small { color: var(--ink-3); }
  .a-ver { padding: 0 12px; color: var(--ink-3); font-size: 12px; }
  .a-main .a-wrap { padding: 32px 36px 56px; }
}
/* home dashboard */
.a-hello { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; justify-content: space-between; }
.a-hello .a-trial { padding: 10px 16px; }
.a-grid { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
.a-col-main, .a-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
#checks:empty { display: none; } /* nothing to check: no empty slot pushing the right column down */
@media (max-width: 999px) { .a-col-side { order: -1; } .a-dash .a-add { display: none; } } /* phones add from the + tab */
@media (min-width: 1000px) { .a-grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); } }
.a-add { flex-direction: column; align-items: stretch; } .a-add .btn { width: 100%; }
.a-recent { gap: 10px; } .a-more { font-weight: 700; font-size: 15px; } .a-checks .a-more { align-self: flex-start; }
.a-head-btn { gap: 8px; margin-left: auto; } .a-head-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* upload overlay */
.a-upl { position: fixed; inset: 0; z-index: 90; background: rgba(28,24,20,.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.a-upl[hidden] { display: none; }
.a-uplbox { background: var(--white); border-radius: var(--r-lg); padding: 28px 26px; max-width: 380px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.a-uplbox .spin { width: 34px; height: 34px; border-width: 3px; color: var(--copper); }
.a-uplbox span:last-child { color: var(--ink-3); font-size: 14px; overflow-wrap: anywhere; }
/* many papers at once (0.4.16) */
.a-uplbox.a-bulk { max-width: 440px; }
.a-uplbox.a-bulk small { color: var(--ink-3); font-size: 13px; }
.a-uplbox.a-bulk .a-bulkname { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.a-bulkbar { width: 100%; height: 8px; border-radius: 99px; background: var(--peach-soft); overflow: hidden; }
.a-bulkbar span { display: block; height: 100%; background: var(--copper); border-radius: 99px; transition: width .4s; }
.a-uplbox.a-bulk.done { align-items: stretch; text-align: left; gap: 12px; }
.a-uplbox.a-bulk.done h2 { margin: 0; font-size: 22px; }
.a-bulkres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.a-bulkres li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.a-bulkres li.ok b { color: var(--ok); } .a-bulkres li.warn b { color: var(--warn); } .a-bulkres li.bad b { color: var(--bad); }
.a-bulknote { margin: 0; font-size: 14px; color: var(--ink-2); } .a-bulknote.bad { color: var(--bad); }
.a-uplbox.a-bulk.done .a-link { align-self: center; background: none; border: 0; font: inherit; color: var(--ink-3); cursor: pointer; padding: 6px; }
.a-nobank { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.a-nobank p { margin: 0; font-size: 14px; line-height: 1.45; flex: 1 1 240px; color: inherit; }
.a-nobank .btn { flex: none; }
.a-okall { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--safe-soft); }
.a-okall p { margin: 0; font-size: 14px; color: var(--ink-2); flex: 1 1 260px; }
/* settings / more */
.a-setgrid { display: grid; gap: 18px; grid-template-columns: 1fr; } @media (min-width: 900px) { .a-setgrid { grid-template-columns: 1fr 1fr; } }
.a-setgrid p { margin: 0; }
.a-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; } .a-dl dt { color: var(--ink-3); font-weight: 700; font-size: 14px; } .a-dl dd { margin: 0; overflow-wrap: anywhere; }
.a-setgrid .a-langs { justify-content: flex-start; }
.a-morelist { padding: 6px; display: flex; flex-direction: column; }
.a-morerow { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 12px; color: inherit; text-decoration: none; position: relative; }
.a-morerow:hover { background: var(--hover); }
.a-morerow svg { width: 24px; height: 24px; fill: none; stroke: var(--copper-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.a-morerow span { display: flex; flex-direction: column; } .a-morerow small { color: var(--ink-3); }
.a-morerow .a-badge { position: static; margin-left: auto; }
.a-main .a-wrap.a-narrow { max-width: 860px; }
.a-empty { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.a-setgrid .btn { align-self: flex-start; width: auto; }
@media (max-width: 999px) {
  .a-grid { display: flex; flex-direction: column; align-items: stretch; } /* the grid's align-items:start would shrink the cards */
  .a-col-main, .a-col-side { display: contents; }
  .a-col-main .a-mcard { order: 1; } #checks { order: 3; } .a-links { order: 4; } /* phones: the number, then the To-Do, then the links */
}
@media (max-width: 599px) { .a-bars.a-costs li { grid-template-columns: 1fr auto; } }

/* ---------- dark theme (data-theme is always resolved by js/theme.js: one set of rules) ---------- */
/* pager (Papers) */
.a-count { margin-left: 12px; font-family: var(--f-body, inherit); font-size: 16px; font-weight: 500; color: var(--ink-3); }
.a-pager { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 4px; }
.a-pnums { display: flex; gap: 6px; align-items: center; }
.a-pnum { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--field); background: var(--white); color: var(--asphalt); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.a-pnum:hover { background: var(--hover); }
.a-pnum.on { background: var(--copper); border-color: var(--copper); color: var(--on); }
.a-pgap { color: var(--ink-3); padding: 0 2px; }
.a-pside-btn { min-height: 44px; text-decoration: none; } .a-pside-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.a-pof { display: none; color: var(--ink-3); font-weight: 600; }
@media (max-width: 599px) { .a-pnums { display: none; } .a-pof { display: inline; } .a-pager { justify-content: space-between; } }

/* demo: which demo? (owner-operator / fleet), the switch in the demo bar, the fleet note */
.a-dmpick { display: flex; flex-direction: column; gap: 12px; }
.a-dmopt { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 16px; border: 1px solid var(--field); border-radius: 16px; background: var(--white); color: var(--asphalt); font: inherit; cursor: pointer; }
.a-dmopt:hover { background: var(--hover); border-color: var(--copper); }
.a-dmopt svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--copper-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a-dmopt > span:not(.spin) { display: flex; flex-direction: column; gap: 2px; flex: 1; } .a-dmopt.busy { justify-content: center; color: var(--ink-2); } .a-dmopt b { font-size: 18px; } .a-dmopt small { color: var(--ink-3); font-size: 14px; }
.a-dmopt i { font-style: normal; font-size: 20px; color: var(--copper-dark); }
.a-dmtabs { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.a-dmtabs a { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.a-dmtabs a:hover { background: var(--hover); color: var(--asphalt); }
.a-dmtabs a.on { background: var(--copper); color: var(--on); }
.a-demo > span { flex: 1 1 300px; }
.a-dmfleet { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.a-wrap .a-dmfleet { margin: 10px auto 0; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.a-dmfleet svg { width: 44px; height: 44px; fill: none; stroke: var(--copper-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.a-dmfleet h1 { font-size: 26px; } .a-dmfleet p { margin: 0; color: var(--ink-2); }
.a-dmbtns { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
@media (min-width: 600px) { .a-wrap .a-dmbtns { flex-direction: row; } }

/* Money: year buttons */
.a-years { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.a-years a, .a-years button { border: 0; background: none; font: inherit; cursor: pointer; min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 10px; font-weight: 700; color: var(--ink-2); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-years button:hover, .a-years a:hover { background: var(--hover); color: var(--asphalt); }
.a-years button.on, .a-years a.on { background: var(--copper); color: var(--on); }

/* bank: "did the money reach your bank?" box on a settlement, deposit pills, statement page */
.a-bankbox { border: 1px solid var(--line); border-left: 5px solid var(--ink-3); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--white); }
.a-bankbox h2 { font-size: 16px; margin: 0; } .a-bankbox p { margin: 0; font-weight: 600; }
.a-bankbox.ok { border-left-color: var(--ok); background: var(--safe-soft); } .a-bankbox.ok p { color: var(--safe-ink); }
.a-bankbox.bad { border-left-color: var(--bad); background: var(--bad-bg); } .a-bankbox.bad p { color: var(--bad); }
.a-bankbox .btn { min-height: 40px; gap: 8px; white-space: nowrap; }
/* an icon inside any button: small line drawing in the text colour (an unstyled svg took space and showed nothing) */
.btn > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.a-bpill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.a-bpill.paid { background: var(--safe-soft); color: var(--safe-ink); } .a-bpill.short, .a-bpill.missing { background: var(--bad-bg); color: var(--bad); }
.a-banksum { margin: 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; } .a-banksum.ok { background: var(--safe-soft); color: var(--safe-ink); } .a-banksum.bad { background: var(--bad-bg); color: var(--bad); }
.a-deps td small { display: block; color: var(--ink-3); font-size: 13px; }
.a-lines tr.a-hit td { background: var(--safe-soft); }
.a-lines td.neg { color: var(--ink-2); }

/* true profit (settlements minus costs paid from the bank) */
.a-true { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 16px; border-radius: 14px; background: var(--safe-soft); }
.a-true span { font-weight: 700; color: var(--safe-ink); } .a-true b { font-family: var(--f-head, inherit); font-size: 30px; color: var(--safe-ink); font-variant-numeric: tabular-nums; }
.a-true small { flex-basis: 100%; color: var(--ink-2); font-size: 14px; }
.a-truehome { display: block; margin-top: 4px; font-weight: 700; color: var(--safe-ink) !important; }

/* simple pass (0.3.53, Orhan approved the pictures): one number, a short To-Do, folds for the details */
.a-profit { display: flex; flex-direction: column; gap: 2px; }
.a-profit > span { font-weight: 700; color: var(--ink-3); font-size: 15px; }
.a-profit > b { font-family: var(--f-head); font-size: 46px; line-height: 1.05; color: var(--safe-ink); font-variant-numeric: tabular-nums; }
.a-profit > b.neg { color: var(--bad); }
.a-profit > small { color: var(--ink-3); font-size: 14px; font-weight: 500; margin-top: 2px; }
.a-how { margin-top: 10px; font-weight: 700; color: var(--copper-dark); text-underline-offset: 3px; align-self: flex-start; }
.a-stair { display: flex; flex-direction: column; margin-top: 14px; }
.a-stair div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 16px; }
.a-stair div b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-stair div.res { border-top: 2px solid var(--asphalt); font-weight: 700; color: var(--safe-ink); }
.a-balert { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bad-bg); color: var(--bad); border-radius: 14px; padding: 13px 16px; font-weight: 700; text-decoration: none; }
.a-balert:hover { filter: brightness(.97); } .a-balert i { font-style: normal; }
.a-links { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.a-links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-2); color: var(--asphalt); text-decoration: none; font-weight: 600; font-size: 17px; min-height: 54px; }
.a-links a:last-child { border-bottom: 0; } .a-links a:hover { background: var(--hover); } .a-links a i { font-style: normal; color: var(--ink-3); }
.a-todo { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.a-todo h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.a-todo ul { list-style: none; margin: 0; padding: 0; }
.a-todo li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.a-todo li:last-child { border-bottom: 0; }
.a-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; } .a-dot.r { background: #C2412D; } .a-dot.y { background: #D8A23A; }
.a-tdt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .a-tdt b { font-size: 17px; } .a-tdt small { color: var(--ink-3); font-size: 14px; }
.a-todo .btn { min-height: 44px; flex: none; }
.a-fold { padding: 0; overflow: hidden; }
.a-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 17px 18px; font-weight: 700; font-size: 17px; min-height: 56px; }
.a-fold > summary::-webkit-details-marker { display: none; }
.a-fold > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.a-fold[open] > summary::after { transform: rotate(45deg); }
.a-fold > summary:hover { background: var(--hover); }
.a-fold > :not(summary) { margin: 0 18px 16px; }
.a-fold > table { width: calc(100% - 36px); }
.a-fold > h3.a-fh { font-size: 16px; margin-top: 6px; margin-bottom: 8px; } .a-fold > p.a-muted, .a-fold > p { margin-top: -4px; }
@media (prefers-reduced-motion: reduce) { .a-fold > summary::after { transition: none; } }
/* bank line type: a tag that opens a sheet of big buttons */
.a-bctag { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--copper-dark); cursor: pointer; white-space: nowrap; }
.a-bctag:hover { text-decoration: underline; }
.a-bctag.why { background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 6px 12px; } /* "What was this for?" */ .a-bctag.fixed { color: var(--safe-ink); cursor: default; } .a-bctag.fixed:hover { text-decoration: none; }
dialog.a-sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; background: var(--white); color: var(--asphalt); }
@media (min-width: 700px) { dialog.a-sheet { margin: auto; border-radius: 22px; } }
dialog.a-sheet::backdrop { background: rgba(23, 24, 28, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); } /* a lightbox: the page behind dims */
dialog.a-sheet { box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.a-sheet-in { padding: 14px 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.a-grab { width: 44px; height: 5px; border-radius: 9px; background: var(--field); margin: 0 auto 6px; }
.a-sheet h2 { font-size: 19px; margin: 0; overflow-wrap: anywhere; } .a-sheet p { margin: 0; color: var(--ink-3); }
.a-sub { font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.a-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.a-choices button { min-height: 52px; border: 1px solid var(--field); border-radius: 14px; background: var(--white); color: var(--asphalt); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; padding: 0 8px; }
.a-choices button:hover { background: var(--hover); }
.a-choices button.on { border: 2px solid var(--copper); background: var(--peach-soft); color: var(--copper-dark); }

/* Papers filter: type chips (scroll sideways on phones) + year */
.a-pfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; padding: 2px; } /* wraps onto a second line: a hidden scrolling strip hid "Bank", "Receipts"… on phones (audit Nov 28 2026) */
.a-chips::-webkit-scrollbar { display: none; }
.a-chips a { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--field); background: var(--white); color: var(--asphalt); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.a-chips a:hover { background: var(--hover); }
.a-chips a.on { background: var(--copper); border-color: var(--copper); color: var(--on); }
.a-fn { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); }
.a-chips a.on .a-fn { background: rgba(255,255,255,.22); color: var(--on); }
.a-pyear select { min-height: 42px; min-width: 130px; }
.a-pfnote { margin: -4px 0 12px; color: var(--ink-3); font-size: 14px; } .a-pfnote a { font-weight: 700; color: var(--copper-dark); }

/* sign-up wizard: progress bar, step count, Back */
.a-wz { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.a-wzbar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; } .a-wzbar span { display: block; height: 100%; background: var(--copper); border-radius: 99px; transition: width .3s; }
.a-wzrow { display: flex; justify-content: space-between; align-items: center; min-height: 32px; } .a-wzn { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.a-wzback { padding: 4px 0; }
.a-stepper { display: flex; gap: 8px; align-items: center; } .a-stepper input { width: 100px; text-align: center; font-size: 20px; font-weight: 700; } .a-stepper .btn { min-width: 52px; font-size: 22px; }
@media (prefers-reduced-motion: reduce) { .a-wzbar span { transition: none; } }
/* tour: a spotlight on one part of the screen and a small window next to it */
.a-tspot { position: fixed; z-index: 90; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(23, 24, 28, .58); outline: 3px solid var(--copper-bright, #E08A52); pointer-events: none; transition: all .2s; }
.a-ttip { position: fixed; z-index: 91; background: var(--white); color: var(--asphalt); border-radius: 16px; padding: 16px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .28); display: flex; flex-direction: column; gap: 6px; }
.a-ttip h2 { font-size: 19px; margin: 0; } .a-ttip p { margin: 0; color: var(--ink-2); }
.a-tn { font-size: 13px; font-weight: 700; color: var(--copper-dark); }
.a-tbtn { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 8px; } .a-tbtn .a-link { margin-right: auto; padding-left: 0; }
.a-tour-again { text-align: center; margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .a-tspot { transition: none; } }

/* add a paper on phones: camera or file (0.3.60) */
.a-addopt { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px; border: 1px solid var(--field); border-radius: 16px; background: var(--white); color: var(--asphalt); cursor: pointer; }
.a-addopt:hover, .a-addopt:focus-visible { background: var(--hover); }
.a-addopt svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--copper-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-addopt span { display: flex; flex-direction: column; gap: 2px; } .a-addopt b { font-size: 17px; } .a-addopt small { color: var(--ink-3); font-size: 14px; }
/* install card + iPhone steps */
.a-inst { padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; }
.a-inst > svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--copper-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.a-inst p { margin: 2px 0 10px; color: var(--ink-3); }
.a-inst-btns { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
#inst:empty { display: none; }
.a-iosteps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.a-iosteps li { display: flex; gap: 12px; align-items: center; counter-increment: s; font-size: 16px; }
.a-iosteps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--peach); color: var(--asphalt); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.a-iosteps svg { width: 34px; height: 34px; flex: none; padding: 6px; border-radius: 10px; background: var(--hover); fill: none; stroke: #2F7DF6; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
button.a-morerow { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
button.a-morerow[hidden] { display: none; }
/* home: the $100 in one glance (0.3.61) */
.a-h100 { display: block; color: inherit; text-decoration: none; border-radius: 16px; }
.a-h100:hover .a-p100 { border-color: var(--copper); } .a-h100:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
@media (max-width: 999px) { .a-h100, #h100 { order: 2; } }
/* taxes (0.3.64) */
.a-tax { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.a-tax h2 { margin: 0; font-size: 19px; }
.a-taxbig, .a-taxnext { display: flex; flex-direction: column; gap: 2px; }
.a-taxbig span, .a-taxnext span { color: var(--ink-3); font-weight: 600; font-size: 15px; }
.a-taxbig b { font-family: var(--f-head); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.a-taxnext { border-top: 1px solid var(--line-2); padding-top: 12px; } .a-taxnext b { font-size: 19px; font-variant-numeric: tabular-nums; }
.a-taxbig small, .a-taxnext small { color: var(--ink-3); font-size: 14px; }
.a-taxpaid { margin: 0; color: var(--safe-ink); font-weight: 600; }
.a-tax .a-hint { margin: 0; text-align: left; } .a-tax .a-hint a { color: var(--copper-dark); }
.a-profit > small.a-taxline { color: var(--ink-2); font-weight: 600; }
/* receipts (0.3.65) */
.a-opts { display: flex; flex-direction: column; gap: 8px; }
.a-opts.a-need .a-opt { border-color: var(--bad); }
.a-hint.a-left { text-align: left; margin: 0; }
/* IFTA (0.3.67) */
#iftabox { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
#iftabox .a-table { width: 100%; } .a-ifta tfoot td { border-top: 2px solid var(--line-2); font-weight: 600; }
.a-iq { margin: 0; }
/* my truck (0.3.68) */
.a-truck { align-items: start; }
.a-sech { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .a-sech h2 { margin: 0; }
.a-rems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.a-rem { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; }
.a-rem.overdue { border-color: var(--bad); background: rgba(196, 59, 44, .06); } .a-rem.soon { border-color: #E3B04B; background: rgba(227, 176, 75, .10); }
.a-remt { display: flex; flex-direction: column; } .a-remt small { color: var(--ink-3); }
.a-rempill { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--hover); color: var(--ink-2); white-space: nowrap; }
.a-rempill.overdue { background: var(--bad); color: var(--on); } .a-rempill.soon { background: #F6DFA8; color: #5C4300; }
.a-remb { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.a-milesnow { margin: 0 0 8px; font-weight: 600; }
.a-oil { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--hover); margin-bottom: 12px; }
.a-oil span { color: var(--ink-3); font-weight: 600; } .a-oil b { font-family: var(--f-head); font-size: 24px; } .a-oil small { color: var(--ink-3); }
.a-oil.soon { background: #FBF0D5; } .a-oil.overdue { background: rgba(196, 59, 44, .10); } .a-oil.overdue b { color: var(--bad); }
.a-btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.a-oilevery { max-width: none; }
.a-danger { color: var(--bad); }
.a-fold td small { display: block; color: var(--ink-3); }
.a-oilbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 420px; }
.a-oilbtns .btn { width: 100%; justify-content: center; } .a-oilbtns .btn-p { grid-column: 1 / -1; }
/* my truck layout (0.3.71, Orhan: "komple düzenle") */
.a-truck { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .a-truck { grid-template-columns: 1fr 1fr; align-items: stretch; } .a-trlog { grid-column: 1 / -1; } }
.a-trc { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.a-trh { display: flex; align-items: center; gap: 12px; } .a-trh h2 { margin: 0; flex: 1; font-size: 19px; }
.a-tri { width: 38px; height: 38px; border-radius: 12px; background: var(--peach-soft); display: grid; place-items: center; flex: none; }
.a-tri svg { width: 20px; height: 20px; fill: none; stroke: var(--copper-dark); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.a-trempty { border: 1.5px dashed var(--field); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.a-trempty p { margin: 0; color: var(--ink-3); }
.a-trchips { display: flex; flex-wrap: wrap; gap: 8px; }
.a-trchip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--field); background: var(--white); color: var(--asphalt); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.a-trchip:hover { background: var(--hover); border-color: var(--copper); }
.a-trchip svg { width: 16px; height: 16px; fill: none; stroke: var(--copper-dark); stroke-width: 2.2; stroke-linecap: round; }
.a-oil.empty { border: 1.5px dashed var(--field); background: none; } .a-oil.empty span { color: var(--ink-3); font-weight: 500; }
.a-truck .a-milesnow { margin: 0; } .a-truck .a-oil { margin: 0; }
.a-oilbtns { max-width: none; }
.a-oilevery { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.a-oilevery label { font-weight: 600; } .a-oilevery select { flex: 1; min-width: 180px; max-width: 260px; }
.a-trc .a-hint { margin: 0; }
.a-trnote { margin-top: 12px; }
.a-trlog .a-cnt { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--hover); color: var(--ink-2); }
@media (min-width: 700px) { .a-rem { grid-template-columns: 1fr auto; } .a-remb { grid-column: auto; } }
.a-remb .btn { min-height: 38px; padding: 0 14px; }
.a-trlog td small { display: block; color: var(--ink-3); }
.a-xbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; display: inline-grid; place-items: center; color: var(--ink-3); }
.a-xbtn:hover { background: var(--bad-bg, #FBE7E4); color: var(--bad); border-color: rgba(142, 42, 30, .25); }
.a-xbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.a-remt small { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.a-logl { list-style: none; margin: 0; padding: 0; }
.a-logl li { display: grid; grid-template-columns: 96px 1fr auto 38px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.a-logl li:last-child { border-bottom: 0; }
.a-logd { color: var(--ink-3); font-variant-numeric: tabular-nums; } .a-logw { display: flex; flex-direction: column; min-width: 0; } .a-logw small { color: var(--ink-3); }
.a-logm { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .a-logl li { grid-template-columns: 1fr auto 38px; } .a-logd { grid-column: 1 / -1; font-size: 13px; margin-bottom: -6px; } }
.a-wait { margin: 18px 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; justify-items: start; }
.a-wait h2 { margin: 0; font-size: 1.05rem; }
.a-wait .a-muted { margin: 0; }
.a-wl { list-style: none; margin: 0; padding: 0; width: 100%; }
.a-wl li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.a-wl li:last-child { border-bottom: 0; }
.a-wl li span { display: grid; gap: 2px; min-width: 0; } .a-wl small { color: var(--ink-3); }
.a-wsum { margin: 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; width: 100%; box-sizing: border-box; }
.a-wsum.ok { background: var(--safe-soft); color: var(--safe-ink); } .a-wsum.bad { background: var(--bad-bg); color: var(--bad); }
.a-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* invited people (viewers): nothing that changes the account is shown */
.a-ro label[for="pf"], .a-ro .a-confirm, .a-ro .a-del, .a-ro .a-lcard, .a-ro [data-click="checkFine"], .a-ro [data-click="readPaper"], .a-ro [data-click="waitEdit"], .a-ro [data-click="waitDel"],
.a-ro [data-click="remEdit"], .a-ro [data-click="remDone"], .a-ro [data-click="remDel"], .a-ro [data-click="logEdit"], .a-ro [data-click="logDel"], .a-ro .a-oilbtns, .a-ro .a-trchip { display: none !important; }
.a-robar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--safe-soft); color: var(--safe-ink); font-weight: 600; }
.a-robar svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.a-robar span { flex: 1 1 220px; } .a-robar a { color: inherit; }
.a-tml { list-style: none; margin: 4px 0 12px; padding: 0; }
.a-tml li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.a-tml li.a-tminv { grid-template-columns: 1fr auto auto; }
.a-tml li span { display: grid; gap: 2px; min-width: 0; } .a-tml small { color: var(--ink-3); overflow-wrap: anywhere; }
.a-tmrole { font-style: normal; font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); }
.a-ivl { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.a-ivl li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.a-ivl svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--safe-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.a-exnote { margin: 8px 0 0; font-weight: 600; color: var(--safe-ink); min-height: 1.2em; }
/* fleets: truck picker on a paper, profit by truck on Money */
.a-truckpick { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.a-truckpick label, .a-truckpick > span { font-weight: 700; } .a-truckpick select { width: auto; min-width: 200px; flex: 1 1 200px; max-width: 360px; }
.a-trucks { margin: 22px 0; } .a-trucks > .a-hint { margin-top: 12px; } .a-trucks > h2 { margin: 0 0 12px; font-size: 1.2rem; }
.a-tkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.a-tkcard { padding: 18px; display: grid; gap: 4px; align-content: start; }
.a-tkcard header { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; margin-bottom: 8px; }
.a-tkcard header small { grid-column: 2; color: var(--ink-3); }
.a-tkic { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; background: var(--safe-soft); color: var(--safe-ink); display: grid; place-items: center; }
.a-tkic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-tkl { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.a-tkcard strong { font-size: 28px; line-height: 1.1; color: var(--safe-ink); font-variant-numeric: tabular-nums; } .a-tkcard strong.neg { color: var(--bad); }
.a-tkpm { color: var(--ink-3); }
.a-tkcard ul { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.a-tkcard li { display: flex; justify-content: space-between; gap: 10px; } .a-tkcard li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.a-tkcard.muted { border-style: dashed; } .a-tkcard.muted .a-tkic { background: var(--line-2); color: var(--ink-3); }
.a-tkshared { margin-top: 14px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.a-tkshared span { display: grid; gap: 2px; font-weight: 700; } .a-tkshared small { font-weight: 400; color: var(--ink-3); } .a-tkshared b { font-size: 18px; white-space: nowrap; }
/* drivers (fleet) */
.a-1099 { padding: 18px 20px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.a-1099 > div { flex: 1 1 420px; } .a-1099 h2 { margin: 0 0 6px; } .a-1099 p { margin: 4px 0; }
.a-dvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 16px; }
.a-dvcard { padding: 18px; display: grid; gap: 4px; align-content: start; color: inherit; text-decoration: none; }
.a-dvcard:hover { background: var(--hover); } .a-dvcard.warn { border-color: var(--bad); }
.a-dvcard header { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; margin-bottom: 8px; }
.a-dvcard header small { grid-column: 2; color: var(--ink-3); } .a-dvcard header b { overflow-wrap: anywhere; }
.a-dvcard strong { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.a-dvcard footer { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; } .a-dvcard .pill { font-style: normal; }
#dvbox > .a-hint { margin-top: 14px; }
.a-w9 { border-left: 4px solid var(--bad); } .a-w9.ok { border-left-color: var(--safe-ink); }
.a-w9btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.a-h2 { margin: 26px 0 10px; font-size: 1.2rem; }
/* Friday pay list */
.a-pay { padding: 18px 20px; margin-bottom: 18px; } .a-pay h2 { margin: 0 0 4px; } .a-pay > .a-muted { margin: 10px 0 0; font-size: 14px; }
.a-paytot { margin: 0 0 6px; font-weight: 700; color: var(--ink-2); }
.a-payl { list-style: none; margin: 0; padding: 0; }
.a-payl li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.a-payl li:last-child { border-bottom: 0; } .a-payl li > span:first-child { display: grid; gap: 2px; min-width: 0; } .a-payl small { color: var(--ink-3); }
.a-payl .n { font-variant-numeric: tabular-nums; font-size: 17px; } .a-paywhen { font-size: 14px; color: var(--ink-2); }
.a-payl li.late .a-paywhen { color: var(--bad); font-weight: 700; } .a-payl li.paid_bank .a-paywhen, .a-payl li.paid_hand .a-paywhen { color: var(--safe-ink); }
.a-payok { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--safe-ink); margin: 6px 0; }
.a-payok svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.a-payrec { margin-top: 8px; } .a-payrec > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
@media (max-width: 640px) { .a-payl li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; } .a-paywhen { grid-column: 1; grid-row: 2; } .a-payl li > :last-child { grid-column: 2; grid-row: 2; } }
/* "Your mile": three numbers (paid, costs, left a mile), then every cost a mile to the cent */
.a-mile { display: flex; flex-direction: column; gap: 14px; }
.a-mile-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .a-mile-h h2 { margin: 0; font-size: 19px; } .a-mile-h small { color: var(--ink-3); font-size: 13px; }
.a-mile3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.a-mile3 > div { background: var(--line-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.a-mile3 span { font-size: 13px; font-weight: 700; color: var(--ink-3); line-height: 1.25; }
.a-mile3 b { font-family: var(--f-head, inherit); font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.a-mile3 small { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.a-mile3 .good { background: var(--safe-soft); } .a-mile3 .good span, .a-mile3 .good b { color: var(--safe-ink); }
.a-mile3 .bad { background: var(--bad-bg); } .a-mile3 .bad span, .a-mile3 .bad b { color: var(--bad); }
.a-mile .a-how { align-self: flex-start; }
.a-mile-s { margin: -4px 0 0; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.a-mile-d > summary { cursor: pointer; font-weight: 700; color: var(--copper-dark); padding: 4px 0; list-style-position: inside; }
.a-mile-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.a-mile-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.a-mile-rows b { font-variant-numeric: tabular-nums; }
.a-mile-rows li.tv { color: var(--copper-dark); font-weight: 600; }
.a-mile-rows li.tot { grid-column: 1 / -1; border: 0; background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-weight: 800; font-size: 16px; }
.a-tv-b { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 599px) { .a-mile3 { gap: 6px; } .a-mile3 > div { padding: 10px; } .a-mile3 b { font-size: 21px; } .a-mile3 span { font-size: 12px; } .a-mile-rows { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 999px) { #hmile, .a-col-main .a-mile { order: 2; } }
/* plan and billing (0.3.93) */
.a-planbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.a-planbar.bad { background: var(--bad-bg); color: var(--bad); } .a-planbar > svg { width: 20px; height: 20px; flex: none; } .a-planbar span { flex: 1 1 260px; } .a-planbar .btn { flex: none; }
.a-plan h3.a-bh { margin: 16px 0 10px; font-size: 16px; }
.a-bseg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--line-2); margin-bottom: 14px; }
.a-bseg button { border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 700; padding: 9px 8px; cursor: pointer; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.a-bseg button[aria-pressed="true"] { background: var(--white); color: var(--copper); box-shadow: inset 0 0 0 2px var(--copper); }
.a-bseg button:hover:not([aria-pressed="true"]) { background: var(--hover); }
#planbox { align-self: stretch; width: 100%; }
.btn-dangero { background: transparent; border-color: var(--bad); color: var(--bad); } .btn-dangero:hover { background: var(--bad-bg); color: var(--bad); }
.a-del { border-color: var(--bad-bg); } .a-dellist { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); } .a-sheet .a-form { gap: 12px; } .a-exnote:empty { display: none; } .a-notc { font-size: 14px; margin: 10px 0 0; } .a-setgrid .a-plan .btn-wide { width: 100%; align-self: stretch; }
.seg-gift { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--safe-soft); color: var(--safe-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.a-bstep { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; font-weight: 700; }
.a-stepper { display: flex; align-items: center; gap: 10px; } .a-stepper .btn { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 20px; } .a-stepper b { min-width: 2ch; text-align: center; font-size: 20px; font-variant-numeric: tabular-nums; }
.a-btotal { font-size: 18px; font-weight: 800; margin: 4px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.a-bsum { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; } .a-bsum span { font-weight: 700; }
.a-bwarn { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.a-bnote { font-size: 13px; margin-top: 10px; }
.a-bbtns [hidden], .a-plan [hidden] { display: none !important; }
.a-bbtns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.a-ended { max-width: 640px; margin: 24px auto; display: flex; flex-direction: column; gap: 12px; } .a-ended h1 { margin: 0; } .a-ended-b { display: flex; gap: 10px; flex-wrap: wrap; }
.a-ptype { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 15px; }
.a-ptype .a-link { font-weight: 700; }
#ptsheet .a-addopt { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.a-mathoff { border-color: var(--bad); background: var(--bad-bg); }
.a-mathoff h2 { color: var(--bad); }
.a-mobtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.a-mobtns .btn { width: 100%; }
.a-moacc { display: block; margin-top: 10px; font-size: 14px; text-align: left; }
@media (max-width: 420px) { .a-mobtns { grid-template-columns: 1fr; } }
.a-refnote { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--safe-soft); color: var(--safe-ink); font-weight: 700; }
.a-refnote svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.4; }
/* "Bring a friend" stands out in green (Orhan): soft green card, green icon and Share button, in both themes via the --safe variables */
.a-sec.a-refer { background: var(--safe-soft); border: 1px solid color-mix(in srgb, var(--safe) 35%, transparent); }
.a-refer h2 { display: flex; align-items: center; gap: 10px; }
.a-refer h2 svg { width: 24px; height: 24px; flex: none; stroke: var(--safe); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-refer .a-muted, .a-refer .a-refstats { color: var(--ink-2); }
.a-refer .btn-p { background: var(--safe); border-color: var(--safe); color: var(--on, #fff); }
.a-refer .btn-p:hover { background: color-mix(in srgb, var(--safe) 85%, #000); }
.a-refer .btn-s { background: var(--white); }
.a-reflink { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.a-reflink input { min-width: 0; font-size: 14px; }
.a-refstats { margin: 10px 0 0; color: var(--ink-3); font-size: 14px; }
/* accountants: wizard / listing form, home cards, the client's yes / no */
.a-acrow { display: grid; grid-template-columns: 1fr 96px; gap: 12px; }
.a-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 14px; font-size: 15px; cursor: pointer; }
.a-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--copper); flex: none; }
.a-aclist { list-style: none; margin: 0; padding: 0; }
.a-aclist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.a-aclist li:first-child { border-top: 0; }
.a-aclist li span { display: flex; flex-direction: column; min-width: 0; }
.a-aclist li b { overflow-wrap: anywhere; }
.a-aclist li small { color: var(--ok); font-size: 13px; }
/* the "Tell us" button: bottom-right on every signed-in page; on phones above the bottom tabs, icon only */
.a-fab { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px;
  background: var(--asphalt); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.a-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-fab:hover { background: var(--copper); } .a-fab:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
@media (max-width: 999px) { .a-fab { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 13px; } .a-fab span { display: none; } }
@media print { .a-fab { display: none; } }
@media (min-width: 1000px) { dialog.a-sheet.a-fbpop { margin: auto 24px 84px auto; max-width: 420px; } dialog.a-sheet.a-fbpop::backdrop { background: rgba(23, 24, 28, .25); } }
.a-tabs.a-tabs3 { grid-template-columns: repeat(3, 1fr); }
.a-fbline { margin: 4px 0 10px; text-align: center; font-size: 14px; }
.a-fb textarea { min-height: 120px; }
.a-acbadge { display: block; margin: 4px 0 14px; max-width: 100%; height: auto; }
#acsnip { font-family: ui-monospace, Menlo, monospace; font-size: 13px; min-height: 72px; }
.a-askacct { border: 2px solid var(--copper); margin-bottom: 18px; padding: var(--cpy, 20px) var(--cpx, 22px); }
.a-aclist + .a-hint, .a-sec .a-empty + .a-hint { text-align: left; margin: 12px 0 0; }
.a-askacct h2 { margin: 0 0 6px; font-size: 19px; }
.a-askacct p { margin: 0 0 14px; }
.a-askacct-b { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .a-reflink { grid-template-columns: 1fr 1fr; } .a-reflink input { grid-column: 1 / -1; } }
/* a cost added by hand (0.4.23) */
.a-head-btns { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; } .a-head-btns .a-head-btn { margin-left: 0; }
.a-handlink { display: block; margin: 14px auto 2px; font-weight: 700; }
.a-manfor { border: 0; padding: 0; margin: 0 0 14px; } .a-manfor legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.a-chip { position: relative; } .a-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.a-chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--field); background: var(--white); color: var(--asphalt); font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; }
.a-chip:hover span { background: var(--hover); }
.a-chip input:checked + span { background: var(--copper); border-color: var(--copper); color: var(--on); }
.a-chip input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.a-manpaid { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--safe-soft); color: var(--asphalt); margin: 0 0 14px; }
.a-manpaid svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--safe); stroke-width: 2; stroke-linecap: round; margin-top: 2px; }
.a-manpaid b { display: block; } .a-manpaid small { display: block; color: var(--ink-3); margin-top: 2px; }
.a-nofile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 220px; padding: 28px 22px; }
.card.a-nofile > svg { width: 40px; height: 40px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-nofile p { color: var(--ink-3); max-width: 34ch; margin: 0 0 6px; }
.a-nofile .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.a-ysel select { width: auto; min-width: 150px; min-height: 44px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .a-head-btns { margin: 4px 0 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .a-head-btns .a-head-btn { justify-content: center; padding-left: 10px; padding-right: 10px; }
}
.a-refer .a-refstats { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--safe) 25%, transparent); text-align: center; }

/* a note under the last card of a page: room above it, in line with the cards' text (0.4.25) */
.a-hint.a-footnote { margin: 18px 4px 8px; line-height: 1.5; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --lime: #121315; --white: #1B1D21; --hover: #272A30; --line: #2D3037; --line-2: #24272C; --field: #3C4048;
  --asphalt: #ECEBE8; --ink-2: #C9C8C3; --ink-3: #A2A3A9;
  --copper: #B4572A; --copper-dark: #F0A274; --peach: #3A2920; --peach-soft: #251E1A;
  --safe: #1F7A4A; --safe-ink: #86D9AA; --safe-soft: #16301F; --ok: #5CC48A;
  --warn-bg: #33280F; --warn: #F2C46B; --bad-bg: #3A1D19; --bad: #FF9E8E;
}
:root[data-theme="dark"] .btn-p:hover { background: #9A4722; }
:root[data-theme="dark"] .btn-danger { background: #A53A2C; } :root[data-theme="dark"] .btn-danger:hover { background: #8E2A1E; }
:root[data-theme="dark"] .toast, :root[data-theme="dark"] .update-bar, :root[data-theme="dark"] .btn-dark { background: #34373F; color: #FFFFFF; border-color: #4A4E57; }
:root[data-theme="dark"] .a-langs button.on, :root[data-theme="dark"] .a-themes button.on { background: #ECEBE8; color: #121315; border-color: #ECEBE8; } /* the chosen one must stand out */
:root[data-theme="dark"] .toast.err { background: #8E2A1E; }
:root[data-theme="dark"] .a-badge, :root[data-theme="dark"] .a-cnt { color: #1B1D21; }
:root[data-theme="dark"] .a-mtop { background: rgba(18,19,21,.94); }
:root[data-theme="dark"] .a-tabs { box-shadow: 0 -4px 20px rgba(0,0,0,.4); }
:root[data-theme="dark"] .a-tspot { box-shadow: 0 0 0 9999px rgba(0, 0, 0, .72); } :root[data-theme="dark"] .a-ttip { border: 1px solid #3A3D44; }
:root[data-theme="dark"] .a-checks { border-color: #5A4515; }
:root[data-theme="dark"] .a-confirm { border-color: #2B5A3C; }
:root[data-theme="dark"] .safe span { color: #CDEBD8; }
:root[data-theme="dark"] { --p100-bg: #20232A; --p100-line: #343841; }
:root[data-theme="dark"] .a-split .c0 i, :root[data-theme="dark"] .a-stack .c0 { background: #F0924E; } :root[data-theme="dark"] .a-split .c1 i, :root[data-theme="dark"] .a-stack .c1 { background: #6F9BE0; } :root[data-theme="dark"] .a-split .c2 i, :root[data-theme="dark"] .a-stack .c2 { background: #B48BE0; } :root[data-theme="dark"] .a-split .c3 i, :root[data-theme="dark"] .a-stack .c3 { background: #E2C054; } :root[data-theme="dark"] .a-split .c4 i, :root[data-theme="dark"] .a-stack .c4 { background: #A2A3A9; }
:root[data-theme="dark"] .a-doc, :root[data-theme="dark"] .a-docbox img { background: #FFFFFF; } /* papers stay paper-white */
:root[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C9C8C3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] dialog.dlg::backdrop, :root[data-theme="dark"] dialog.a-sheet::backdrop { background: rgba(0,0,0,.72); }
:root[data-theme="dark"] dialog.a-sheet { border: 1px solid #3A3D44; box-shadow: 0 -10px 40px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .a-upl { background: rgba(0,0,0,.6); }
/* logo: dark letters on light, white letters on dark */
.lg-d { display: none !important; }
:root[data-theme="dark"] .lg-l { display: none !important; } :root[data-theme="dark"] .lg-d { display: block !important; }
/* theme choice */
.a-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a-themes button { border: 1px solid var(--field); background: var(--white); color: var(--asphalt); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.a-themes button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-themes button:hover { background: var(--hover); }
.a-themes button.on { background: var(--asphalt); color: var(--lime); border-color: var(--asphalt); }
.a-themes button { justify-content: center; text-align: center; line-height: 1.2; padding: 8px 10px; }
@media (max-width: 560px) { .a-themes button { flex-direction: column; gap: 4px; border-radius: 14px; padding: 10px 6px; font-size: 14px; } } /* three in one row on phones: icon above the word */
/* second choices on the sign-in card: copper outline, clearly a button next to the copper passkey button */
.btn-o { background: var(--peach-soft); border: 2px solid var(--copper); color: var(--copper-dark); font-weight: 700; }
.btn-o:hover { background: var(--peach); color: var(--copper-dark); }
.a-themebtn { margin-left: auto; }
:root[data-theme="dark"] .safe, :root[data-theme="dark"] .safe-pill { background: #175A36; }
/* help */
.a-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .a-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.a-steps li { counter-increment: st; background: var(--line-2); border-radius: 14px; padding: 14px 16px 14px 56px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.a-steps li::before { content: counter(st); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--copper); color: var(--on); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.a-steps span { color: var(--ink-2); }
.a-pages { margin: 0; display: grid; gap: 10px 24px; grid-template-columns: 1fr; } @media (min-width: 900px) { .a-pages { grid-template-columns: 1fr 1fr; } }
.a-pages dt { font-weight: 700; } .a-pages dd { margin: 2px 0 0; color: var(--ink-2); }
.a-faq { display: flex; flex-direction: column; } .a-faq details { border-bottom: 1px solid var(--line); } .a-faq details[hidden] { display: none; }
.a-faq summary { cursor: pointer; font-weight: 700; padding: 14px 4px; } .a-faq summary:hover { color: var(--copper-dark); }
/* open/close arrow drawn inside the row (the browser's own marker hung outside the card) */
.a-faq summary, .a-lines summary { list-style: none; display: flex; align-items: center; gap: 12px; }
.a-faq summary::-webkit-details-marker, .a-lines summary::-webkit-details-marker { display: none; }
.a-faq summary::before, .a-lines summary::before { content: ''; flex: none; width: 8px; height: 8px; margin: 0 4px 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.a-faq details[open] > summary::before, .a-lines details[open] > summary::before, .a-lines[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .a-faq summary::before, .a-lines summary::before { transition: none; } }
.a-faq p { margin: 0 4px 14px; color: var(--ink-2); }
.a-contact p { margin: 0; }
/* demo account */
/* sign-in (0.4.11): the e-mail code behind one link; trial and demo as two tiles under the card */
.a-emalt { display: block; margin: 2px auto 0; background: none; border: 0; padding: 8px; font: inherit; font-size: 15px; color: var(--copper-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.a-emalt:hover, .a-emalt:focus-visible { color: var(--ink); }
.a-emform[hidden], .a-emalt[hidden] { display: none; }
.a-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a-alttile { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.a-alttile b { font-size: 16px; color: var(--ink); } .a-alttile span { font-size: 14px; color: var(--ink-2); line-height: 1.4; flex: 1; }
.a-alttile .btn { margin-top: 8px; }
@media (max-width: 420px) { .a-alt { grid-template-columns: 1fr; } }
.a-demobox { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.a-demobox p { margin: 0; font-size: 14px; color: var(--ink-3); text-align: center; }
.a-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; background: var(--peach); color: var(--asphalt); padding: 12px 18px; border-bottom: 1px solid var(--line); }
.a-demo .btn { min-height: 40px; padding: 0 16px; }
@media (min-width: 1000px) { .a-demo { padding: 12px 36px; } }
:root[data-theme="dark"] .a-bars em { background: #8C8E96; }
:root[data-theme="dark"] .a-iosteps svg { stroke: #6EA8FF; } :root[data-theme="dark"] .a-iosteps li::before { background: #4A3427; color: #F2EEE8; }

:root[data-theme="dark"] .a-rempill.soon { background: #5C4A1E; color: #F6DFA8; } :root[data-theme="dark"] .a-oil.soon { background: #3A3220; } :root[data-theme="dark"] .a-rem.soon { background: rgba(227, 176, 75, .08); }
:root[data-theme="dark"] .a-tri { background: #3A2A20; } :root[data-theme="dark"] .a-tri svg, :root[data-theme="dark"] .a-trchip svg { stroke: #F0A57A; }
:root[data-theme="dark"] .a-xbtn:hover { background: rgba(240, 115, 95, .14); color: #F0A090; }
:root[data-theme="dark"] .a-trlog .a-cnt { background: #34363E; color: #ECEAE5; }

/* one inner spacing for the cards that sit next to each other (Orhan, 0.3.88: "kartların iç paddingleri aynı değil"):
   20px top/bottom, 22px left/right on wide screens, 18px on phones — profit, $100, To-Do, tax, link list and folds */
:root { --cpy: 20px; --cpx: 22px; }
@media (max-width: 599px) { :root { --cpy: 18px; --cpx: 18px; } }
.a-mcard, .a-mile, .a-todo, .a-tax, .a-p100:not(.a-p100-in) { padding: var(--cpy) var(--cpx); }
.a-p100:not(.a-p100-in) { border-radius: var(--r-lg); } /* the $100 block inside a paper's card keeps its own smaller box */
.a-links a, .a-fold > summary { padding-left: var(--cpx); padding-right: var(--cpx); }

:root[data-theme="dark"] .a-mathoff { border-color: var(--bad); background: var(--bad-bg); }
:root[data-theme="dark"] .a-refer .btn-p { background: var(--safe); border-color: var(--safe); }
:root[data-theme="dark"] .a-refer .btn-p:hover { background: #2A8E58; }
:root[data-theme="dark"] .a-refer h2 svg { stroke: var(--safe-ink); }
:root[data-theme="dark"] .a-refer .btn-s { background: var(--white); }
:root[data-theme="dark"] .a-fab { background: #F2EFE9; color: #17181C; }
:root[data-theme="dark"] .a-fab:hover { background: var(--copper); color: #fff; }
/* the conversation in the corner box */
.a-fab { position: fixed; } .a-fab .a-fab-n { position: absolute; top: -6px; right: -6px; }
.a-fab-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font: 700 12px/22px inherit; font-style: normal; text-align: center; display: inline-block; }
.a-fab-n[hidden] { display: none; }
.a-fb-h3 { font-size: 15px; margin: 4px 0 0; }
.a-fbthreads { display: grid; gap: 6px; }
.a-fbth { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: inherit; font: inherit; cursor: pointer; }
.a-fbth:hover { border-color: var(--copper); }
.a-fbth span { display: flex; flex-direction: column; min-width: 0; } .a-fbth small { color: var(--ink-3); overflow-wrap: anywhere; }
.a-fbnew summary { cursor: pointer; font-weight: 700; color: var(--copper-ink, var(--copper)); padding: 6px 0; }
.a-fbback { align-self: flex-start; }
.a-fbmsgs { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 4px 0; }
.a-fbm { max-width: 86%; padding: 10px 12px; border-radius: 16px; }
.a-fbm p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--asphalt); }
.a-fbm small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.a-fbm.us { align-self: flex-start; background: var(--safe-soft); border-bottom-left-radius: 4px; }
.a-fbm.them { align-self: flex-end; background: var(--hover); border-bottom-right-radius: 4px; }
