/* Quick Quoter accounts: seller sign-in, My Partners, Inbox, My BOMs and partner share mode (accounts.js).
   Self-contained and loaded last; reuses the theme.css tokens. Delete this file, its <link>, accounts.js and its
   <script> to switch the feature off. */
:root {
  --ok-ink: #1c6b3a; --ok-bg: #e4f3e9;
  --bad-ink: #9b2c1f; --bad-bg: #fdebe8;
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(12, 26, 49, .05), 0 10px 22px -18px rgba(12, 26, 49, .35);
}

/* ---------- header: sign-in link / seller chip ---------- */
.acct { display: flex; align-items: center; }
.acct:empty { display: none; }
.acct-signin { display: inline-flex; gap: 8px; padding: 0 12px; font-size: 14px; font-weight: 600; white-space: nowrap; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.acct-chip { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px 0 5px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.acct-chip .avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: var(--navy); font: 700 12px/1 var(--display); letter-spacing: .02em; }
.acct-chip svg { width: 14px; height: 14px; opacity: .8; }
.acct-chip .who { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* NOTE: the quoter already uses .pill, .sub, .chips, .mono and .more; every rule for those names here is scoped to an accounts container. */
:is(.acct-chip, .amenu, .acct-tabs) .badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--navy); font: 700 11.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.acct .acct-chip .badge { background: #8bc53f; color: #0c1a31; }
@media (max-width: 759px) {
  .acct-signin { padding: 0; min-width: 42px; justify-content: center; }
  .acct-signin span, .acct-chip .who { display: none; }
  .acct-chip { padding: 0 6px 0 5px; gap: 5px; }
}

/* ---------- popover menu (appended to <body>: the band is clipped) ---------- */
.amenu { position: fixed; z-index: 60; min-width: 190px; padding: 6px; display: grid; gap: 1px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(12, 26, 49, .45), 0 2px 6px rgba(12, 26, 49, .08); }
.amenu a, .amenu button { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14.5px/1.2 var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.amenu a:hover, .amenu button:hover, .amenu a:focus-visible, .amenu button:focus-visible { background: var(--surface-2); outline: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.amenu .danger { color: var(--bad-ink); }
.amenu hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--line); }
.amenu a .badge { background: var(--navy); color: #fff; }

/* ---------- account screens: no BOM column, tab strip in the band ---------- */
body.acct-page .bombar, body.acct-page .bom-panel, body.acct-page .bomtab, body.acct-page .bomscrim { display: none !important; }
body.acct-page { --bar-space: 0px; padding-bottom: 32px; }
body.acct-page main { max-width: 1240px; margin-left: auto; margin-right: auto; }
@media (min-width: 1100px) { body.acct-page .shell { display: block; padding-right: var(--gutter) !important; } }
.band .acct-tabs a .badge { margin-left: 8px; background: #8bc53f; color: #0c1a31; }
.band .reqline .flag { margin-left: 0; background: rgba(255, 255, 255, .16); color: #fff; }
.acct-screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.acct-screen > .screen-title, .acct-screen > .acct-tabs, .acct-screen > .booksline { margin: 0; }
.acct-screen h2 { font: 600 16px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.acct-screen .sec-title { margin: 0; }
.acct-screen .btn, .adlg .btn, .acct-actions .btn { flex: none; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.acct-screen .btn.sm, .adlg .btn.sm { height: 36px; padding: 0 12px; font-weight: 600; }
.acct-screen .btn.ghost, .adlg .btn.ghost { color: var(--ink); }
.btn.primary.danger { background: var(--bad-ink); border-color: var(--bad-ink); box-shadow: none; }
.btn.primary.danger:hover { background: #7f2218; border-color: #7f2218; }
.acct-screen :is(a, button):focus-visible, .adlg :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.acard { display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--card-shadow); min-width: 0; }
.ac-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.acct-screen .sub { font-size: 12.5px; color: var(--muted); }
.acount { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 78ch; }
:is(.acct-screen, .adlg) .fine { margin: 0; font-size: 13px; color: var(--muted); }
.acct-screen .dim { color: var(--muted); }
:is(.acct-screen, .adlg) .mono { font: 500 13px/1.3 var(--mono); }
.h2gap { margin-top: 6px; }
.anote { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.anote.err { background: var(--bad-bg); border-color: transparent; color: var(--bad-ink); }
.anote.warnbox { background: var(--warn-bg); border-color: transparent; color: var(--warn-ink); font-weight: 500; }
.warn-t { color: var(--warn-ink); }
.aempty { display: grid; justify-items: center; gap: 8px; padding: 36px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); }
.aempty p { margin: 0; }
.ae-t { font: 600 16px/1.3 var(--display); color: var(--ink); }
.ae-s { max-width: 52ch; font-size: 14px; color: var(--muted); }
.aempty .btn { margin-top: 6px; }

/* status pills */
.acct-screen .pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; margin: 0; padding: 0 9px; border-radius: 12px; font: 600 12px/1 var(--sans); white-space: nowrap; background: var(--sunken); color: var(--ink-2); }
.acct-screen .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.acct-screen .st-active, .acct-screen .st-closed_won { background: var(--ok-bg); color: var(--ok-ink); }
.acct-screen .st-new { background: var(--blue-tint); color: var(--blue-ink); }
.acct-screen .st-claimed, .acct-screen .st-sent { background: var(--cloud-tint); color: var(--cloud-ink); }
.acct-screen .st-quoted { background: #e8e9f8; color: #333a8c; }
.acct-screen .st-paused { background: var(--warn-bg); color: var(--warn-ink); }
.acct-screen .st-revoked { background: var(--bad-bg); color: var(--bad-ink); }

/* ---------- forms ---------- */
.afield { display: grid; gap: 5px; align-content: start; min-width: 0; }
.afield > label, .afield > .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.afield .opt { font-weight: 400; color: var(--muted); }
.afield > small { font-size: 12.5px; color: var(--muted); }
.afield.inline { display: flex; align-items: center; gap: 10px; }
.ainput { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 16px/1.3 var(--sans); box-shadow: 0 1px 1px rgba(12, 26, 49, .04) inset; }
.ainput::placeholder { color: var(--faint); }
.atext { height: auto; min-height: 44px; padding: 10px 12px; resize: vertical; }
.ainput:focus, .aselect:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.ainput[aria-invalid="true"] { border-color: var(--bad-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad-ink) 14%, transparent); }
.ainput[readonly] { background: var(--surface-2); }
.aerr { margin: 0; font-size: 13px; font-weight: 500; color: var(--bad-ink); }
.aselect { height: 44px; min-height: 44px; font-size: 15px; background-color: var(--surface); color: var(--ink); max-width: 100%; }
.afile { font-size: 14px; max-width: 100%; }

/* ---------- tables (cards on phones) ---------- */
.atable-wrap { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; }
.acard .atable-wrap { border: 0; border-radius: 0; box-shadow: none; margin: 0 -16px; }
.atable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.atable th { padding: 10px 14px; text-align: left; font: 600 12px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.atable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable tbody tr:last-child td { border-bottom: 0; }
.atable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.atable .act { text-align: right; white-space: nowrap; width: 1%; }
.atable .who { display: grid; gap: 1px; min-width: 0; }
.atable .who strong, .rowlink { font-weight: 600; color: var(--ink); }
.atable .who .sub { overflow-wrap: anywhere; }
.atable .who .flag { justify-self: start; margin-left: 6px; }
.rowlink, .numlink, .namebtn { text-decoration: none; }
.rowlink:hover, .namebtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.numlink { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--blue-tint); color: var(--blue-ink); font-weight: 700; }
.namebtn { padding: 0; border: 0; background: none; font: 600 14.5px/1.3 var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.rowact { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn.more { width: 36px; height: 36px; margin: 0; border: 1px solid var(--line-2); background: var(--surface); } /* margin: app.css has its own .more */
.atable .soon { color: var(--warn-ink); font-weight: 600; }
.atable .soon .sub { display: block; color: var(--warn-ink); font-weight: 500; }
.atable.subs tbody tr { cursor: pointer; }
.atable.subs tbody tr:hover td { background: var(--surface-2); }
.atable.subs tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.atable.subs tr.unread .rowlink { font-weight: 700; }
.stcell { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.stcell .flag { margin: 0; }
.atable.lines td { padding-top: 9px; padding-bottom: 9px; }
.atable.lines td:first-child { white-space: nowrap; }
.flagrow { display: flex; flex-wrap: wrap; gap: 5px; }
.flagrow:empty { display: none; }
.atable .who .flagrow .flag { margin: 0; }
.atable.compact td { padding: 8px 14px; }
@media (max-width: 759px) {
  .atable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .atable, .atable tbody, .atable tr, .atable td { display: block; }
  .atable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .atable tbody tr:last-child { border-bottom: 0; }
  .atable td { padding: 0; border: 0; text-align: left; width: auto; }
  .atable td:first-child { grid-column: 1 / -1; font-size: 15.5px; }
  .atable td.num, .atable td.act { text-align: left; }
  .atable td[data-label]:not(:first-child):not(.act)::before { content: attr(data-label) " "; display: block; font: 600 11px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .atable td.act { grid-column: 1 / -1; margin-top: 6px; width: auto; }
  .acct-screen .btn.sm { height: 40px; }
  .icon-btn.more { width: 40px; height: 40px; }
  .atable.lines td:first-child { white-space: normal; overflow-wrap: anywhere; }
  .rowact { flex-wrap: wrap; }
  .atable.lines td:nth-child(2)::before { content: none !important; }
  .atable td.act .rowact { justify-content: flex-start; }
  .atable.subs tr.unread td:first-child { box-shadow: none; }
  .atable.subs tr.unread { box-shadow: inset 3px 0 0 var(--blue); }
  .atable.lines tr { grid-template-columns: minmax(0, 1fr) auto auto; }
  .atable.lines td:nth-child(2) { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); }
  .atable.lines td.num { text-align: right; }
  .atable.lines td:nth-child(3) { text-align: left; }
  .atable.compact tr { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .atable.compact td:first-child { grid-column: 1; }
  .atable.compact td:nth-child(2) { grid-column: 1; font-size: 13px; color: var(--muted); }
  .atable.compact td.act { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .atable.compact td[data-label]::before { content: none !important; }
}

/* ---------- My Partners ---------- */
.addform .af-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.af-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.af-grid .submit { align-self: end; }
.af-grid .submit .btn { width: 100%; }
@media (min-width: 760px) { .af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .af-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr) auto auto; }
  .af-grid .submit { align-self: start; padding-top: 24px; }
  .af-grid .submit .btn { width: auto; padding: 0 18px; }
}
.linkrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.linkbox { font: 500 13px/1 var(--mono); }
.linkrow .btn { height: 44px; }

/* ---------- Inbox ---------- */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.filters .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
.filters .chips .chip-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-weight: 600; color: var(--ink-2); }
.filters .chips .chip-btn .n { font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.filters .chips .chip-btn.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.filters .chips .chip-btn.on .n { color: rgba(255, 255, 255, .78); }
.filter-right { display: flex; gap: 8px; flex: 1 1 320px; justify-content: flex-end; min-width: 0; }
.filter-right .pick { flex: 0 1 190px; min-width: 0; }
.filter-right .pick select { width: 100%; text-overflow: ellipsis; }
.filter-right .ainput { flex: 1 1 200px; max-width: 320px; font-size: 15px; }
@media (max-width: 759px) { .filters .chips { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; padding: 2px; scrollbar-width: none; } .filters .chips .chip-btn { padding: 0 11px; }
  .filter-right { flex-wrap: wrap; } .filter-right .pick, .filter-right .ainput { flex: 1 1 100%; max-width: none; } .filter-right .ainput { font-size: 16px; } }

.req-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.req-main, .req-side { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 1000px) { .req-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 999px) { .req-main, .req-side { display: contents; } .req-grid > * > .history-card { order: 5; } }
.backlink { justify-self: start; padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.backlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.lines-card { padding-bottom: 0; }
.lines-card .atable-wrap { border-top: 1px solid var(--line); }
.lines-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 -16px; padding: 14px 16px; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 13px 13px; font-size: 14px; color: var(--ink-2); }
.lines-total strong { font: 600 22px/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.status-card { border-top: 3px solid var(--navy); }
.moves { display: flex; flex-wrap: wrap; gap: 8px; }
.moves .btn { height: 40px; padding: 0 14px; }
.dlrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dlrow .btn { height: 40px; padding: 0 8px; font-size: 14px; }
.acard > .btn { height: 44px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv a, .history a, .revs a, .atable.sent a { color: var(--accent-ink); text-underline-offset: 3px; }
.history, .revs, .outbox { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.history li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--line-2); }
.h-what { font-weight: 600; font-size: 14.5px; }
.h-note { font-size: 14px; color: var(--ink-2); }
.revs li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.acct-screen .revs .pill { margin-left: auto; }
.outbox { padding-top: 12px; border-top: 1px solid var(--line); gap: 6px; }
.outbox li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13.5px; }

/* ---------- My BOMs / current BOM strip ---------- */
.curbom { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.curbom > div:first-child { display: grid; gap: 3px; }
@media (max-width: 759px) { .curbom { grid-template-columns: minmax(0, 1fr); } .curbom .rowact { justify-content: flex-start; } }
.list-head { margin-top: 6px; }

/* ---------- sign in ---------- */
.signin-card { position: relative; overflow: hidden; max-width: 460px; width: 100%; justify-self: center; margin: 12px 0 24px; padding: 27px 24px 24px; }
.signin-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--mark-grad); }
.signin-card h2 { font-size: 20px; }
.signin-card .gsign { height: 48px; }
.ad-text { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- dialogs ---------- */
.adlg { width: min(640px, calc(100% - 24px)); box-shadow: 0 30px 60px -24px rgba(12, 26, 49, .6); overflow: hidden; }
.adlg.narrow { width: min(480px, calc(100% - 24px)); }
.ad-body { display: grid; gap: 14px; padding: 18px 20px; overflow-y: auto; }
.adlg .sheet-actions { justify-content: flex-end; flex-wrap: wrap; }
.adlg .sheet-actions .btn { height: 42px; padding: 0 16px; min-width: 84px; }
.adlg .sheet-actions .btn.primary { flex: none; }
.adlg .acard .atable-wrap, .adlg .atable-wrap { box-shadow: none; }

/* ---------- partner share mode ---------- */
.sharebar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; min-height: 38px; padding: 7px var(--gutter); background: var(--navy); color: #eaf1fb; font-size: 13.5px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12); }
.sharebar p { margin: 0; flex: 1 1 auto; min-width: 0; }
.sharebar strong { color: #fff; font-weight: 600; }
.sharebar .sep { opacity: .5; }
.sharebar a { color: #fff; font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.sharebar .share-save { color: #b8c8df; font-size: 12.5px; white-space: nowrap; }
.sharebar .share-save[data-state="saved"]::before { content: "✓ "; color: #8bc53f; }
.sharebar .share-save[data-state="error"] { color: #ffd7a8; }
.sharebar .share-save:empty { display: none; }
.sharebar.off { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 -1px 0 rgba(138, 75, 6, .25); }
.sharebar.off strong, .sharebar.off a { color: #6b3a04; }
/* The bar stays on screen, so everything pinned to the top of the viewport starts below it. */
body.has-sharebar.is-home .band { top: var(--sharebar-h, 38px); }
body.has-sharebar .refine { top: var(--sharebar-h, 38px); }
body.has-sharebar .toast { top: calc(var(--sharebar-h, 38px) + 14px); }
@media (min-width: 1100px) { body.has-sharebar .bom-panel { top: var(--sharebar-h, 38px); } }

.acct-actions { display: grid; gap: 6px; }
.aa-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.aa-row > :only-child { grid-column: 1 / -1; }
.aa-row .btn { height: 44px; padding: 0 14px; overflow: hidden; text-overflow: ellipsis; display: block; }
.bp-foot .acct-actions .btn.primary, .sheet-foot .acct-actions .btn.primary { background: var(--accent); border-color: var(--accent); }
.bp-foot .acct-actions .btn.primary::before, .sheet-foot .acct-actions .btn.primary::before { content: none; }
.bp-foot .acct-actions .btn.primary:hover, .sheet-foot .acct-actions .btn.primary:hover { background: var(--accent-ink); }
.acct-actions .share-save { font-size: 12.5px; color: var(--muted); min-height: 16px; }
.acct-actions .share-save[data-state="saved"]::before { content: "✓ "; color: var(--ok-ink); font-weight: 700; }
.acct-actions .share-save[data-state="error"], .acct-actions .share-save.off { color: var(--warn-ink); font-weight: 500; }

.submit-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .submit-grid { grid-template-columns: minmax(0, 1fr) 360px; } .sum-card { position: sticky; top: calc(var(--sharebar-h, 0px) + 16px); } }
.submit-form { display: grid; gap: 14px; min-width: 0; }
.form-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); font-size: 14.5px; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--bad-ink); outline-offset: 2px; }
.consent .aerr { grid-column: 2; }
.submit-row { display: flex; justify-content: flex-end; gap: 8px; }
.submit-row .btn { height: 48px; padding: 0 18px; }
.submit-row .btn.primary { min-width: 180px; }
@media (max-width: 619px) { .submit-row { flex-direction: column-reverse; } .submit-row .btn { width: 100%; } }
.sum-card { padding-bottom: 12px; }
.sum-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sum-lines li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.sum-lines .q { font-weight: 600; color: var(--ink-2); }
.sum-lines .n { display: grid; gap: 1px; min-width: 0; }
.sum-lines .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-lines .moreline { display: block; color: var(--muted); font-size: 13px; }
.sum-card .lines-total { border-radius: 0; border-bottom: 1px solid var(--line); }

.sent-card { max-width: 620px; width: 100%; justify-self: center; margin: 8px 0 20px; padding: 26px 24px; gap: 14px; }
.sent-card h2 { font-size: 22px; line-height: 1.2; }
.sent-card .tick { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); }
.sent-card .tick svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sent-card .rowact { justify-content: flex-start; }
.sent-card .rowact .btn { height: 44px; padding: 0 16px; }

@media (prefers-reduced-motion: no-preference) { .amenu { animation: amenu-in .12s ease-out; } }
@keyframes amenu-in { from { opacity: 0; transform: translateY(-4px); } }
