:root {
  --bg: #f7f6fb;
  --surface: #ffffff;
  --text: #17142b;
  --muted: #5b5873;
  --line: #e4e1ef;
  --purple: #5b2be0;
  --purple-soft: #efe9ff;
  --good: #0f7b4d;
  --good-soft: #e3f6ec;
  --warn: #9a5b00;
  --warn-soft: #fff3df;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d1a;
    --surface: #181528;
    --text: #f1effa;
    --muted: #aaa6c2;
    --line: #2c2843;
    --purple: #a990ff;
    --purple-soft: #261f45;
    --good: #5fd3a0;
    --good-soft: #12301f;
    --warn: #f3b860;
    --warn-soft: #33260f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--purple); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: .04em; text-decoration: none; color: var(--text); }
.brand span { color: var(--purple); font-weight: 600; letter-spacing: 0; }
nav.site { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a[aria-current="page"] { color: var(--purple); font-weight: 600; }
main { padding: 32px 0 56px; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 32px 0 12px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; max-width: 680px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
a.card:hover { border-color: var(--purple); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); margin-bottom: 10px; }
.tool { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .tool { grid-template-columns: 1fr 1fr; align-items: start; } }
form label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 14px; }
form label small { display: block; font-weight: 400; color: var(--muted); }
input[type="text"], input[type="number"], select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
input:focus, select:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 5px; }
.segmented { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.segmented label { margin: 0; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.result .big { font-size: 32px; font-weight: 800; margin: 2px 0 4px; }
.result .label { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
td, th { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
td:last-child, th:last-child { text-align: right; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.notice { border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.notice.good { background: var(--good-soft); color: var(--good); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.cta {
  margin-top: 32px;
  background: var(--purple-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.cta a.button {
  display: inline-block;
  margin-top: 10px;
  background: var(--purple);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.fine { color: var(--muted); font-size: 14px; }
footer.site { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }

/* Advanced tool parts */
.eyebrow { color: var(--purple); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tabs label { margin: 0; position: relative; }
.tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tabs span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs input:checked + span { background: var(--surface); color: var(--purple); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tabs input:focus-visible + span { outline: 2px solid var(--purple); }
.field-title { font-weight: 600; margin: 0 0 8px; }
.echo { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 4px; min-height: 1em; }
.echo.bad { color: var(--warn); }
details > summary { cursor: pointer; font-weight: 600; color: var(--purple); padding: 8px 0; }
form details { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
form details[open] > summary { margin-bottom: 8px; }
.stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 16px 0 8px; }
.seg { display: block; height: 100%; }
.legend { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.take-home { background: var(--good); }
.tax { background: var(--purple); }
.pension { background: #e0a100; }
.nhf { background: #2f9bd6; }
tr.total td { font-weight: 700; border-bottom-color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
button { font: inherit; cursor: pointer; }
.actions button, button.ghost { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.actions button:hover, button.ghost:hover { border-color: var(--purple); }
.actions button.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.actions-status { font-size: 13px; color: var(--good); }
.item { display: grid; grid-template-columns: 1fr 56px 1fr auto auto; gap: 6px; align-items: center; margin-bottom: 8px; }
.item input[type="text"] { margin-top: 0; padding: 9px 8px; min-width: 0; }
.item .mini { margin: 0; font-size: 13px; font-weight: 500; display: flex; gap: 4px; align-items: center; }
.item .remove { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 6px; }
@media (max-width: 420px) {
  .item { grid-template-columns: 1fr 52px auto; }
  .item [data-field="description"] { grid-column: 1 / -1; }
  .item [data-field="price"] { grid-column: 1 / 2; grid-row: 2; }
  .item [data-field="quantity"] { grid-column: 2; grid-row: 2; }
  .item .mini { grid-column: 1 / 3; grid-row: 3; }
  .item .remove { grid-column: 3; grid-row: 2; }
}
button.ghost { margin: 4px 0 14px; }
.meter { margin: 14px 0 6px; }
.track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--good); border-radius: 999px; transition: width .2s; }
.fill.near { background: #e0a100; }
.fill.over { background: #d64545; }
.meter-label { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.profit { font-weight: 600; margin: -6px 0 14px; }
.checklist { margin: 0; padding-left: 22px; }
.checklist li { margin-bottom: 10px; color: var(--muted); }
.checklist strong { color: var(--text); }
.faq { display: grid; gap: 10px; }
.faq details.card { padding: 6px 20px; }
.faq details p { margin: 0 0 12px; color: var(--muted); }
.cta a.button + a.button { margin-left: 8px; }
.cta a.button.secondary { background: transparent; color: var(--purple); border: 1px solid var(--purple); }
.result .big { word-break: break-word; }

@media print {
  header.site, nav, form, .actions, .cta, .faq, h2, footer.site, .eyebrow { display: none !important; }
  body { background: #fff; color: #000; }
  .tool { display: block; }
  .card { border: 0; padding: 0; }
  details { display: block; }
  details > summary { display: none; }
  details > *:not(summary) { display: block !important; }
  main::after { content: "Worked out free at tools.qavynel.com · Estimate only, not tax advice."; display: block; margin-top: 24px; font-size: 12px; }
}

/* Payroll */
.setup { display: grid; gap: 0 16px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 640px) { .setup { grid-template-columns: 2fr 1fr; } .setup .privacy { grid-column: 1 / -1; } }
.setup .privacy { margin: 0; }
input[type="month"] { width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.flush { margin-top: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
button.primary { background: var(--purple); color: var(--surface); border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; }
button.primary.small { padding: 7px 12px; font-size: 14px; }
button.link { background: none; border: 0; color: var(--purple); font-weight: 600; padding: 6px 4px; }
button.link.danger { color: #d64545; }
label.ghost.file { display: inline-block; margin: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
label.ghost.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
label.ghost.file:focus-within { outline: 2px solid var(--purple); }
.summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.stat strong { display: block; font-size: 24px; margin: 4px 0; }
.stat small { color: var(--muted); font-size: 13px; }
.stat .label { color: var(--muted); font-size: 14px; }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.scroll { overflow-x: auto; }
table.payroll { min-width: 640px; }
table.payroll th, table.payroll td.num { text-align: right; }
table.payroll th:first-child { text-align: left; }
table.payroll td small { display: block; color: var(--muted); font-size: 12px; }
td.strong { font-weight: 700; }
td.row-actions { white-space: nowrap; text-align: right; }
tfoot tr.total td { border-top: 2px solid var(--text); border-bottom: 0; }
tfoot tr.total td:not(:first-child) { text-align: right; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 20px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(10, 8, 20, .55); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.slip header { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-bottom: 2px solid var(--purple); padding-bottom: 8px; color: var(--muted); }
.slip header strong { color: var(--text); }
.slip h3 { margin: 12px 0 2px; }
.slip h4 { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.slip-cols { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .slip-cols { grid-template-columns: 1fr 1fr; } }
.slip-net { display: flex; justify-content: space-between; background: var(--purple-soft); border-radius: 10px; padding: 12px 14px; margin: 14px 0 6px; font-weight: 600; }
.slip-net strong { font-size: 20px; }
#print-area { display: none; }
@media print {
  body.printing-slips > *:not(#print-area) { display: none !important; }
  body.printing-slips #print-area { display: block; }
  body.printing-slips .slip { break-after: page; color: #000; }
  body.printing-slips .slip:last-child { break-after: auto; }
  body.printing-slips main::after { content: none; }
}

/* Currency */
.currency-bar { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.currency-bar label { flex: 1 1 180px; margin-bottom: 6px; font-size: 14px; }
.currency-bar .rate-note { flex-basis: 100%; margin: 0; }
.setup .span { grid-column: 1 / -1; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.swap { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; font-size: 20px; color: var(--purple); margin-bottom: 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.chip { background: var(--purple-soft); color: var(--purple); border: 0; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.trend { font-weight: 600; margin: 0 0 4px; }
.up { color: var(--good); }
.down { color: #d64545; }
.status { font-size: 13px; color: var(--muted); }
.status.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 6px; animation: pulse 2s infinite; }
.status.offline { color: var(--warn); }
@keyframes pulse { 50% { opacity: .3; } }
.flash { animation: flash 1.2s; }
@keyframes flash { 0% { color: var(--purple); } 100% { color: inherit; } }
table.rates tbody tr { cursor: pointer; }
table.rates tbody tr:hover td { color: var(--purple); }
@media (prefers-reduced-motion: reduce) { .status.live::before, .flash { animation: none; } }
.legal { max-width: 760px; } .legal h2 { font-size: 19px; margin-top: 28px; } .legal li { margin-bottom: 6px; }

/* Notebook */
.nb-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; flex-wrap: wrap; }
.nb-title h1 { margin-bottom: 4px; }
.nb-title .privacy { margin: 0 0 10px; }
.nb-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin: 12px 0 20px; position: sticky; top: 8px; z-index: 5; }
.nb-tabs button { background: none; border: 0; border-radius: 10px; padding: 10px 4px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nb-tabs button[aria-selected="true"] { background: var(--purple); color: var(--surface); }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #d64545; color: #fff; font-size: 11px; line-height: 18px; }
.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.big-actions button { border: 0; border-radius: 16px; padding: 18px 10px; font-size: 20px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.big-actions span { font-size: 26px; line-height: 1; }
.add-sale { background: #0f7b4d; }
.add-expense { background: #b4442f; }
.summary.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .summary.three { grid-template-columns: 1fr 1fr; } .summary.three > :first-child { grid-column: 1 / -1; } }
.summary.compact .stat strong { font-size: 19px; }
.stat strong.down, strong.down { color: #d64545; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 150px; align-items: end; margin-top: 12px; }
.bar-day { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.bar-pair { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; justify-content: center; }
.bar { width: 42%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; }
.sale-bar { background: var(--good); }
.expense-bar, .expense-dot { background: #d6744f; }
.bar-day small { font-size: 11px; color: var(--muted); }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.entry:last-child { border-bottom: 0; }
.entry:focus-visible { outline: 2px solid var(--purple); }
.entry-main { flex: 1; min-width: 0; }
.entry-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-main small { color: var(--muted); }
.entry-amount { font-weight: 700; white-space: nowrap; }
.entry.sale .entry-amount { color: var(--good); }
.entry.expense .entry-amount { color: #d6744f; }
.empty-note { margin: 4px 0; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-bottom: 10px; padding: 12px; }
.filters input, .filters select { margin-top: 0; }
.filters label { margin: 0; }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr 1fr; } .filters input[type="search"] { grid-column: 1 / -1; } }
input[type="search"], input[type="date"], input[type="tel"] { width: 100%; padding: 11px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; }
.day-group { margin-bottom: 10px; padding: 12px 16px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.debt-filter { margin: 14px 0 10px; }
.debt-card { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; text-align: left; margin-bottom: 8px; color: var(--text); cursor: pointer; }
.debt-card:hover { border-color: var(--purple); }
.debt-card small { display: block; font-size: 13px; }
.debt-balance { font-weight: 800; font-size: 18px; color: var(--good); white-space: nowrap; }
.debt-balance.owe { color: #d6744f; }
.debt-balance.settled { color: var(--muted); font-weight: 600; font-size: 15px; }
.person-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.p-balance { font-size: 24px; }
.move { background: var(--bg); border-radius: 12px; padding: 12px; margin-top: 12px; }
a.button-link { display: inline-block; text-decoration: none; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
a.wa-text, button.wa-text { color: #1a8f48; border-color: #1fa855; }
.amount-input { font-size: 26px !important; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips label { margin: 0; position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; }
.chips input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--surface); }
.chips input:focus-visible + span { outline: 2px solid var(--purple); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 999px; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media print { body.printing-slips #print-area .card { break-inside: avoid; margin-bottom: 10px; border: 1px solid #ccc; } }

/* Notebook v2: quick sell, basket, receipts, alerts, voice, lock */
.alerts { display: grid; gap: 8px; margin-bottom: 12px; }
.alert { text-align: left; border: 0; border-radius: 12px; padding: 11px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.bad { background: #fde8e8; color: #b42318; }
.alert.info { background: var(--purple-soft); color: var(--purple); }
@media (prefers-color-scheme: dark) { .alert.bad { background: #3a1717; color: #ff9b9b; } }
.voice { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); color: var(--text); border: 1px dashed var(--purple); border-radius: 14px; padding: 12px; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.voice.listening { background: var(--purple); color: var(--surface); border-style: solid; animation: pulse 1.2s infinite; }
.quick-card { margin-bottom: 16px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.product { position: relative; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--text); min-height: 64px; }
.product strong { display: block; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.product span { color: var(--good); font-weight: 700; font-size: 14px; }
.product small { display: block; color: var(--muted); font-size: 12px; }
.product.low small { color: #d64545; font-weight: 600; }
.product.picked { border-color: var(--purple); background: var(--purple-soft); }
.product:active { transform: scale(.97); }
.product .count { position: absolute; top: -8px; right: -6px; background: var(--purple); color: var(--surface); font-style: normal; font-weight: 700; font-size: 12px; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; }
.target { margin-bottom: 16px; }
.target .label { font-weight: 600; }
.target .track { margin: 10px 0 6px; height: 12px; }
.basket { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--text); color: var(--surface); border-radius: 16px; padding: 12px 12px 12px 16px; box-shadow: 0 8px 28px rgba(0,0,0,.25); z-index: 20; }
.basket strong { font-size: 20px; display: block; }
.basket small { display: block; opacity: .8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
body.has-basket main { padding-bottom: 110px; }
.basket-lines { list-style: none; padding: 0; margin: 10px 0; }
.basket-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 18px; font-weight: 700; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-bottom: 12px; }
.basket-total strong { font-size: 24px; }
.product-rows { display: grid; gap: 10px; margin: 12px 0; }
.product-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 6px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.product-row label { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.product-row input { padding: 9px 8px; min-width: 0; }
.product-row .remove { background: none; border: 0; color: var(--muted); font-size: 22px; padding: 6px; }
@media (max-width: 520px) { .product-row { grid-template-columns: 1fr 1fr auto; } .product-row label:first-child { grid-column: 1 / 3; } .product-row .remove { grid-row: 1; grid-column: 3; } }
.receipt-paper { background: #fff; color: #111; border-radius: 10px; padding: 18px; font-size: 14px; border: 1px dashed #bbb; }
.receipt-paper header { text-align: center; border-bottom: 1px dashed #bbb; padding-bottom: 10px; }
.receipt-paper header strong { display: block; font-size: 18px; }
.receipt-paper header small, .receipt-meta { color: #555; }
.receipt-meta { margin: 8px 0; font-size: 13px; }
.receipt-paper td { border-bottom: 1px dotted #ccc; color: #111; }
.receipt-paper td small { display: block; color: #666; font-size: 12px; }
.receipt-paper tr.total td { border-bottom: 2px solid #111; font-size: 16px; }
.receipt-thanks { text-align: center; font-weight: 600; margin: 12px 0 4px; }
.receipt-brand { text-align: center; color: #888; font-size: 11px; margin: 0; }
#receipt-dialog label { margin-top: 14px; }
button.wa-solid { background: #1fa855; }
.toast { display: flex; align-items: center; gap: 12px; pointer-events: none; }
.toast.show { pointer-events: auto; }
.toast-action { background: none; border: 0; color: var(--purple-soft); font-weight: 800; text-decoration: underline; padding: 0; }
body.has-basket .toast { bottom: 96px; }
.lock { position: fixed; inset: 0; background: var(--bg); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lock-box { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.lock-box input { text-align: center; font-size: 24px; letter-spacing: .4em; }
.lock-box .primary { width: 100%; margin-top: 4px; padding: 12px; }
.lock-icon { font-size: 34px; }
body.locked main, body.locked header.site, body.locked .basket, body.locked footer.site { visibility: hidden; }
@media print { body.printing-slips .receipt-paper { border: 0; max-width: 360px; margin: 0 auto; } }
