/* poslog - mobile-first, one-handed, light. Notices use named variables only.
   Lacquer theme: nude ground, aubergine ink, plum accent, system serif for money. */
:root {
    --bg: #f5eee8;
    --card: #fffaf6;
    --line: #eadfd6;
    --fg: #2b1f24;
    --muted: #6e5d63;
    --primary: #5e2a50;
    --primary-fg: #ffffff;
    --primary-soft: #f2e4ec;
    --ok-bg: #e6f0e4;   --ok-line: #a7c9a3;   --ok-fg: #25502a;
    --bad-bg: #fbe4dc;  --bad-line: #eaa590;  --bad-fg: #8a2a12;
    --warn-bg: #fbefd6; --warn-line: #e4c47c; --warn-fg: #664600;
    --info-bg: #e8eaf3; --info-line: #b3b9d9; --info-fg: #2e3566;
    --ink-muted: #c9b8bf;   /* secondary text on --fg surfaces */
    --ink-track: #47363d;   /* bar track on --fg surfaces */
    --blush: #e8c6d6;       /* bar fill on --fg surfaces */
    --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
    --radius: 18px;
    --tap: 52px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --shadow-1: 0 1px 2px rgba(43, 31, 36, .05), 0 0 0 1px rgba(43, 31, 36, .05);
    --shadow-2: 0 4px 12px rgba(43, 31, 36, .08), 0 16px 32px rgba(43, 31, 36, .10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--fg);
    font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
a { color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.big { font-size: 22px; font-weight: 600; margin: 8px 0; }
.mt { margin-top: 12px; }

/* layout */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 14px 16px 8px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.topbar-title { margin: 0; font-size: 20px; font-weight: 700; }
.app-main { padding: 8px 16px calc(84px + var(--safe-b)); max-width: 640px; margin: 0 auto; }
.bare-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.auth-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.brand h1 { margin: 0; font-size: 22px; }
.brand img { border-radius: 14px; }

/* tab bar */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    display: flex; background: var(--card); border-top: 1px solid var(--line);
    padding-bottom: var(--safe-b);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; min-height: var(--tap); color: var(--muted); text-decoration: none; font-size: 11px; }
.tab.is-active { color: var(--primary); font-weight: 600; }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number] {
    width: 100%; min-height: var(--tap); padding: 10px 12px; font-size: 17px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--fg);
}
input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.pin-input { width: 100%; min-height: 64px; font-size: 34px; letter-spacing: 14px; text-align: center; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--tap); padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--card); color: var(--fg); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.btn-block { display: flex; width: 100%; }
.btn-small { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.btn-danger { color: var(--bad-fg); border-color: var(--bad-line); background: var(--bad-bg); }

/* notices: named variables only, never literal colours */
.notice { padding: 10px 12px; border-radius: 10px; border: 1px solid; margin: 0 0 12px; font-size: 15px; }
.notice-ok   { background: var(--ok-bg);   border-color: var(--ok-line);   color: var(--ok-fg); }
.notice-bad  { background: var(--bad-bg);  border-color: var(--bad-line);  color: var(--bad-fg); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-fg); }
.notice-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-fg); }
a.notice { display: block; text-decoration: none; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); margin-left: 6px; }

/* lock overlay */
.lock-overlay { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lock-card { width: 100%; max-width: 340px; text-align: center; }
.lock-title { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
[hidden] { display: none !important; }

/* ---- logging screen ---- */
.card-title { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.today { padding: 14px 16px; }
.today-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.today-revenue { font-size: 34px; font-weight: 800; line-height: 1.1; }
.today-services { font-size: 15px; color: var(--muted); text-align: right; }
.sync-line { margin-top: 6px; }
.append-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--info-bg); border: 1px solid var(--info-line); color: var(--info-fg); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; font-size: 15px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-height: 92px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overflow: hidden; }
.tile-face { padding: 14px 14px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.tile-name { font-weight: 700; font-size: 17px; line-height: 1.2; }
.tile-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.tile.pinned .tile-name::after { content: " ★"; color: var(--warn-fg); font-size: 12px; }
.tile.open { grid-column: 1 / -1; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.tile.open .tile-face { min-height: 0; padding-bottom: 6px; flex-direction: row; align-items: center; }
.tile-pay { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.tile.open .tile-pay:empty { display: none; }
.chip { min-height: 48px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--primary); background: var(--primary); color: var(--primary-fg); font-size: 16px; font-weight: 700; flex: 1 1 auto; }
.chip-zero { background: var(--card); color: var(--fg); border-color: var(--line); }
.chip-back { flex: 0 0 auto; background: var(--card); color: var(--muted); border-color: var(--line); }
.more-btn { margin: 12px 0; }

.row-right { display: flex; align-items: center; gap: 8px; }
.list-head { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 0 4px; }
.list-tap { cursor: pointer; }

.toast { position: fixed; left: 12px; right: 12px; bottom: calc(76px + var(--safe-b)); z-index: 40; background: var(--fg); color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast-text { font-size: 15px; margin-bottom: 8px; }
.toast-actions { display: flex; gap: 8px; }
.toast-btn { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 700; font-size: 15px; }
.toast-extra { margin-top: 8px; }
.fix-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fix-chips .chip { min-height: 40px; padding: 6px 12px; font-size: 14px; flex: 0 0 auto; background: #fff; color: var(--fg); border-color: rgba(255,255,255,.5); }
.fix-chips .muted { color: rgba(255,255,255,.7); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 88vh; background: var(--bg); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; padding-bottom: var(--safe-b); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); border-radius: 18px 18px 0 0; }
.sheet .list { overflow: auto; padding: 0 16px; }
.sheet .list-row { min-height: 52px; }
.sheet-foot { padding: 12px 16px; background: var(--card); border-top: 1px solid var(--line); }
.editor-body { overflow: auto; padding: 12px 16px; }
.editor-section { margin-bottom: 14px; }
.editor-label { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.editor-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edit-item { display: grid; grid-template-columns: 1fr 88px 1fr 36px; gap: 6px; align-items: center; margin-bottom: 8px; }
.edit-name { min-height: 48px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 15px; font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-price { min-height: 48px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; text-align: right; }
.edit-type { min-height: 48px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: var(--card); color: var(--fg); }
.edit-del { min-height: 48px; border: 0; background: transparent; color: var(--muted); font-size: 22px; }
/* Extra / discount on a service line. Quiet: it is the exception, not the norm. */
.edit-adj { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 2px; }
.adj-btn { min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 14px; font-weight: 600; }
.adj-btn-on { border-color: var(--primary); background: var(--primary); color: var(--primary-fg); }
.edit-adj-fields { display: flex; gap: 6px; flex: 1 1 100%; }
.edit-adj-amt { width: 76px; flex: 0 0 76px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; text-align: right; }
.edit-adj-why { flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.edit-adj-hint { margin: 0 0 10px; }
.edit-fix { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; }
.edit-fix .edit-type { flex: 1; }
input[type=date], input[type=time] { width: 100%; min-height: var(--tap); padding: 8px 10px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--fg); }
.day-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.is-void { opacity: .55; text-decoration: line-through; }
.check { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.check input { width: 22px; height: 22px; }
.filter .field { margin-bottom: 8px; }
select.edit-type { -webkit-appearance: none; appearance: none; }
.settings-links .list-row { min-height: 52px; }
.settings-links a { text-decoration: none; color: var(--fg); display: flex; justify-content: space-between; width: 100%; }
.sort-btns { display: flex; gap: 4px; }
.sort-btns .btn { min-height: 36px; min-width: 36px; padding: 0 8px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); margin-left: 4px; }
.tag-bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-fg); margin-left: 0; margin-right: 4px; }
.tag-on { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-fg); }

/* ---- Article 11 ---- */
.a11 { display: block; text-decoration: none; color: var(--fg); }
.a11-head { display: flex; justify-content: space-between; align-items: center; }
.a11-state { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid; }
.a11-tracking .a11-state { background: var(--bg); border-color: var(--line); color: var(--muted); }
.a11-green .a11-state   { background: var(--ok-bg);   border-color: var(--ok-line);   color: var(--ok-fg); }
.a11-amber .a11-state   { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-fg); }
.a11-orange .a11-state  { background: var(--warn-bg); border-color: var(--warn-fg);  color: var(--warn-fg); }
.a11-red .a11-state, .a11-crossed .a11-state { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-fg); }
.a11-nums { font-size: 18px; margin: 6px 0 8px; }
.a11-bar { position: relative; height: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: visible; margin: 4px 0 10px; }
.a11-bar.big { height: 18px; margin: 12px 0 14px; }
.a11-fill { height: 100%; background: var(--primary); border-radius: 999px; }
.a11-amber .a11-fill, .a11-orange .a11-fill { background: var(--warn-fg); }
.a11-red .a11-fill, .a11-crossed .a11-fill { background: var(--bad-fg); }
.a11-marker { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--fg); transform: translateX(-1px); }
.a11-marker::after { content: ""; position: absolute; left: -4px; bottom: -4px; border: 5px solid transparent; border-bottom-color: var(--fg); border-top: 0; }
.a11-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.a11-proj { color: var(--muted); font-style: italic; }
.a11-proj strong { font-weight: 600; }
.today-revenue.proj { font-style: italic; color: var(--muted); font-weight: 600; }
.a11-projected { border-style: dashed; }
.year-tabs { display: flex; gap: 8px; margin: 4px 0 12px; overflow-x: auto; }
.year-tabs .pill { margin: 0; padding: 6px 14px; font-size: 15px; text-decoration: none; background: var(--card); border: 1px solid var(--line); color: var(--fg); }
.year-tabs .pill-on { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }

/* ---- reports ---- */
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.preset-row .pill { margin: 0; padding: 8px 12px; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; cursor: pointer; font-family: inherit; }
.preset-row .pill-on { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.chart-box { position: relative; width: 100%; height: 190px; margin: 4px 0 8px; }
.chart-box canvas { width: 100% !important; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }

/* ---- appointments ---- */
.visit-logged { color: var(--muted); }
.visit-no_show { color: var(--muted); }
.decide { border-color: var(--warn-line); background: var(--warn-bg); }
.decide .card-title { color: var(--warn-fg); }
.decide-row { padding: 8px 0; border-bottom: 1px solid var(--warn-line); }
.decide-row:last-child { border-bottom: 0; }
.decide-actions { display: flex; gap: 8px; margin-top: 6px; }
.decide-actions .btn { flex: 1; }
.visits-strip { margin: 0 0 10px; }
.visits-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.visits-chips::-webkit-scrollbar { display: none; }
.vchip { flex: 0 0 auto; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 14px; font-weight: 600; white-space: nowrap; }
.vchip-logged { color: var(--ok-fg); background: var(--ok-bg); border-color: var(--ok-line); }
.vchip-no_show { color: var(--muted); text-decoration: line-through; }
.pre { white-space: pre-wrap; word-break: break-word; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; max-height: 50vh; overflow: auto; }

/* ==== Lacquer ====
   Overrides for the rules above. Kept as a separate block so the diff stays reviewable;
   fold into the original rules later if you prefer. No transitions, no webfonts. */
body { font-variant-numeric: tabular-nums lining-nums; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time] { background: var(--card); }

/* chrome */
.topbar-title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; letter-spacing: -.01em; }
.card-title, .list-head, .editor-label, .tbl th { font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.card:not(.a11-projected):not(.decide) { border-color: transparent; box-shadow: var(--shadow-1); }
.btn { border-radius: 14px; }
.btn:not(.btn-primary):not(.btn-danger) { border-color: transparent; box-shadow: var(--shadow-1); }
.more-btn.btn { background: transparent; box-shadow: none; border-color: var(--line); color: var(--muted); }
.tabbar { background: var(--card); border-top-color: var(--line); }
.tab.is-active { color: var(--primary); }
.list-row strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }

/* today: the figure sits on the ground, not in a box */
.card.today:not(.a11-projected) { background: transparent; box-shadow: none; padding: 4px 4px 16px; }  /* specificity must match the generic .card rule above */
.today-row { align-items: baseline; }
.today-revenue { font-family: var(--serif); font-size: 64px; font-weight: 400; letter-spacing: -.035em; line-height: 1; margin-top: 4px; }
.today-services { font-size: 15px; }

/* appointment chips */
.visits-chips { gap: 8px; }
.vchip { min-height: var(--tap); padding: 6px 16px; border-color: transparent; background: var(--card); box-shadow: var(--shadow-1); font-size: 15px; }
.vchip-logged { box-shadow: none; }

/* service tiles */
.grid { gap: 8px; }
.tile { border-color: transparent; border-radius: var(--radius); box-shadow: var(--shadow-1); min-height: 112px; }
.tile-face { min-height: 112px; padding: 16px 16px 14px; }
.tile-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.tile-price { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.03em; line-height: 1; color: var(--fg); }
.tile-face:active { background: var(--primary-soft); }
.tile.pinned .tile-name::after { content: none; }
.tile.pinned::before { content: ""; position: absolute; top: 16px; right: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.tile.open { border-color: transparent; box-shadow: var(--shadow-2), inset 0 0 0 2px var(--primary); }
.tile.open::before { display: none; }
.tile.open .tile-face { padding: 18px 18px 12px; }
.tile.open .tile-price { color: var(--primary); }
.tile-pay { padding: 0 10px 10px; gap: 8px; }
.chip { min-height: var(--tap); border-radius: 14px; font-size: 17px; font-weight: 600; }
.chip-zero, .chip-back { background: var(--bg); border-color: transparent; }

/* Article 11 on Home: the one dark surface */
a.a11 { background: var(--fg); color: var(--card); }
a.a11 .card-title, a.a11 .muted { color: var(--ink-muted); }
a.a11 .a11-nums { font-size: 15px; margin: 10px 0 12px; }
a.a11 .a11-nums strong { font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: -.03em; margin-right: 4px; color: var(--card); }
a.a11 .a11-bar { height: 8px; background: var(--ink-track); border: 0; }
a.a11 .a11-fill { background: var(--blush); }
a.a11.a11-amber .a11-fill, a.a11.a11-orange .a11-fill { background: var(--warn-line); }
a.a11.a11-red .a11-fill, a.a11.a11-crossed .a11-fill { background: var(--bad-line); }
a.a11 .a11-marker { top: -6px; bottom: -6px; width: 3px; border-radius: 2px; background: var(--card); box-shadow: 0 0 0 2px var(--fg); transform: translateX(-1.5px); }
a.a11 .a11-proj { color: var(--ink-muted); font-style: normal; }
a.a11 .a11-proj strong { font-weight: 500; }
a.a11 .a11-proj strong::before { content: "~"; }

/* shared bar + marker */
.a11-marker::after { content: none; }
.a11-state { font-size: 12px; padding: 3px 10px; }

/* Article 11 page */
.a11-full .today-revenue { font-size: 56px; }
.a11-full .a11-bar.big { height: 14px; background: var(--line); border: 0; margin: 32px 0 16px; }
.a11-full .a11-marker { top: -6px; bottom: -6px; width: 3px; border-radius: 2px; background: var(--fg); box-shadow: 0 0 0 2px var(--card); transform: translateX(-1.5px); }
.a11-full .a11-marker::before { content: "today"; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.a11-projected { background: transparent; border: 1px dashed var(--muted); box-shadow: none; }
.a11-projected .card-title, .a11-projected p { color: var(--muted); }
.a11-projected .today-revenue.proj { font-size: 36px; font-weight: 400; font-style: italic; color: var(--muted); }
.a11-projected .today-revenue.proj::before { content: "~"; }
/* pills and filters (Reports, Article 11) */
.preset-row { gap: 8px; }
.preset-row .pill, .year-tabs .pill { min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 16px; font-size: 15px; font-weight: 600; border-color: transparent; background: var(--bg); box-shadow: none; }
.year-tabs .pill-on, .preset-row .pill-on { background: var(--primary); color: var(--primary-fg); }

/* forms */
.field span { font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], .edit-type, .edit-price { border-color: var(--line); border-radius: 12px; }
.edit-price { font-family: var(--serif); font-size: 18px; }
.btn-small, .edit-name, .edit-price, .edit-type, .edit-del { min-height: var(--tap); }
.edit-item { grid-template-columns: 1fr 80px 1fr var(--tap); }
.edit-name { border-color: transparent; border-radius: 12px; box-shadow: var(--shadow-1); }
.check input { accent-color: var(--primary); }
.notice { border-radius: 14px; }
.tag { background: var(--bg); border-color: transparent; }
.tag-bad { background: var(--bad-bg); border-color: var(--bad-line); }

/* tables and day lists (Reports, History, Day close) */
.tbl td.num { font-family: var(--serif); font-size: 17px; }
.day-head { align-items: baseline; margin-bottom: 6px; }
.day-head span { font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; }
.is-void strong { font-family: var(--serif); }

/* More */
.settings-links .list-row { padding: 0; }
.settings-links a { min-height: var(--tap); align-items: center; }

/* bottom sheet + editor */
.sheet-backdrop { background: rgba(43, 31, 36, .5); }
.sheet { position: relative; border-radius: 24px 24px 0 0; }
.sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
.sheet-head { background: var(--bg); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 22px 16px 8px; }
.sheet-head strong { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.sheet-foot { background: var(--bg); border-top: 0; }

/* toast */
.toast { border-radius: 18px; box-shadow: var(--shadow-2); }
.toast-btn { min-height: var(--tap); border-color: var(--ink-track); font-size: 14px; letter-spacing: .04em; }
.receipt-img { width: 100%; border-radius: 12px; display: block; }
input[type=file] { width: 100%; min-height: var(--tap); padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--card); font-size: 15px; }
