/* InvoiSmart web app */
:root {
  --ink: #17171c;
  --text: #3f414a;
  --muted: #5b5d66;
  --ground: #f5f5f7;
  --card: #ffffff;
  --line: #e6e6ea;
  --field: #c9cad1;
  --accent: #5b5bd6;
  --accent-ink: #3d3db0;
  --accent-soft: #ececfb;
  --green: #1b7f45;
  --green-ink: #0b5e41;
  --green-soft: #dff3ea;
  --amber-ink: #8a4a00;
  --amber-soft: #fdf0dc;
  --red-ink: #a33a0b;
  --red-soft: #fde8df;
  --radius: 16px;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #e6e6ea; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; }
a { color: var(--accent-ink); }
h1, h2 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
h1 { font-weight: 800; font-size: 30px; line-height: 1.1; }
h2 { font-weight: 700; font-size: 19px; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--ground); display: flex; flex-direction: column; position: relative; }
.main { flex: 1 1 auto; display: flex; flex-direction: column; padding: max(20px, env(safe-area-inset-top)) 20px 28px; }
.page { display: flex; flex-direction: column; gap: 16px; }
.lead { font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.help { font-size: 14px; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.spacer { flex: 1 1 auto; min-height: 24px; }
.empty { color: var(--muted); padding: 18px 4px; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Forms */
label { display: block; font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
.stack label { margin: 0; }
input, select, textarea {
  font: inherit; font-size: 17px; color: var(--ink); width: 100%;
  background: #fff; border: 1px solid var(--field); border-radius: 12px; padding: 12px 14px; min-height: 50px;
}
textarea { resize: vertical; min-height: 0; line-height: 1.45; }
::placeholder { color: #9a9ca5; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.18); }
[aria-invalid="true"] { border-color: #c2410c; }
.field-error { color: #a33a0b; font-size: 14px; font-weight: 600; margin-top: 6px; }
.alert { background: var(--red-soft); color: var(--red-ink); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.notice { background: var(--amber-soft); color: var(--amber-ink); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 360px) { .two { grid-template-columns: 1fr; } }
.money { display: flex; align-items: center; background: #fff; border: 1px solid var(--field); border-radius: 12px; overflow: hidden; }
.money > span { padding: 0 0 0 12px; color: var(--muted); font-weight: 600; }
.money input { border: 0; border-radius: 0; min-height: 48px; padding-left: 6px; box-shadow: none !important; }
.money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.18); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 8px 0 0; }
.check input { width: 22px; height: 22px; min-height: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent; white-space: nowrap;
}
.btn.big { min-height: 56px; font-size: 18px; width: 100%; }
.btn.small { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:active { background: var(--accent-ink); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--field); }
.btn.whatsapp { background: var(--green); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.linkbtn { font: inherit; font-weight: 600; color: var(--accent-ink); background: none; border: 0; padding: 10px 0; cursor: pointer; min-height: 44px; }
.linkbtn.light { color: #c9cad1; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-left: -10px; background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 12px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > *, .btn-row form { flex: 1 1 0; }
.btn-row form .btn { width: 100%; }
.btn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--field); background: #fff; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.add { font: inherit; font-weight: 600; font-size: 15px; color: var(--accent-ink); background: none; border: 0; padding: 12px 0 4px; cursor: pointer; text-align: left; min-height: 44px; }
.remove { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; }
.card h2 { margin-bottom: 2px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.eyebrow-plain { font-size: 14px; color: var(--muted); }
.chip { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px; }
.pill-s { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pill-s.paid { color: var(--green-ink); background: var(--green-soft); }
.pill-s.unpaid { color: var(--amber-ink); background: var(--amber-soft); }
.pill-s.late { color: var(--red-ink); background: var(--red-soft); }
.late-text { color: var(--red-ink); font-weight: 600; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 15px; font-weight: 500; max-width: min(440px, calc(100% - 32px)); width: max-content;
  transition: opacity .2s, transform .2s; z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Sign in */
.auth { display: flex; flex-direction: column; gap: 22px; flex: 1 1 auto; padding-top: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.brand.small span { font-size: 20px; }
.auth-head { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.auth-head h1 { font-size: 36px; }
.code-input { font-size: 28px; letter-spacing: 0.4em; text-align: center; font-weight: 600; }
.row-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.tip { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.tip svg { flex: none; }
.tip b { display: block; font-size: 15px; }
.tip span { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (display-mode: standalone) { .install-tip { display: none; } }

/* Home */
.home { display: flex; flex-direction: column; gap: 18px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hello { font-size: 28px; }
.avatar { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; background: #fff; }
.capture { display: flex; flex-direction: column; }
.state { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 16px 0 6px; }
.record { width: 168px; height: 168px; border-radius: 50%; border: 0; background: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 0 0 14px rgba(91, 91, 214, .14), 0 18px 40px rgba(91, 91, 214, .35); margin: 14px 0 10px; transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.record:active { transform: scale(.96); }
.say { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.hint { font-size: 14px; color: var(--muted); max-width: 320px; line-height: 1.45; }

.capture[data-state="recording"] { background: var(--ink); color: #fff; margin: 0 -20px; padding: 8px 20px 24px; border-radius: 0 0 28px 28px; }
.recording { gap: 18px; }
.rec-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.rec-gap { width: 56px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.live i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.timer { font-family: var(--display); font-weight: 800; font-size: 60px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 10px; }
.bars { display: flex; align-items: center; justify-content: center; gap: 4px; height: 72px; width: 100%; }
.bars span { width: 5px; height: 8px; border-radius: 3px; background: #b9b9f5; transition: height .08s linear; }
.rec-hint { font-size: 15px; color: #c9cad1; }
.stop { width: 96px; height: 96px; border-radius: 50%; border: 0; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 0 10px rgba(255, 255, 255, .12); margin-top: 8px; }
.stop span { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); }

.typing { align-items: stretch; text-align: left; gap: 12px; }
.typing h2 { font-size: 24px; }
.working { padding: 70px 0; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dash { display: flex; flex-direction: column; gap: 12px; }
.owed { background: var(--ink); color: #fff; border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.owed div { display: flex; flex-direction: column; }
.owed div span, .owed > span { font-size: 14px; color: #c9cad1; }
.owed b { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.owed em { font-style: normal; color: #fdba8c; font-weight: 600; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.list-head h2 { font-family: var(--body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.list-head a { font-size: 15px; font-weight: 600; text-decoration: none; }
.list { background: #fff; border-radius: var(--radius); display: flex; flex-direction: column; }
.inv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-top: 1px solid #ececf0; color: var(--ink); text-decoration: none; }
.inv-row:first-child { border-top: 0; }
.inv-row div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-row .right { align-items: flex-end; gap: 4px; }
.inv-row span { font-size: 13px; color: var(--muted); }
.inv-row .pill-s { font-size: 12px; }
.inv-row.wide { padding: 12px 14px; }
.inv-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-decoration: none; color: var(--ink); flex: 1 1 auto; }
.inv-main span { font-size: 13px; color: var(--muted); }
.inv-main span.late-text { color: var(--red-ink); }

/* Review */
.review { display: flex; flex-direction: column; gap: 14px; }
.review-head { display: flex; align-items: center; gap: 6px; }
.review-head h1 { font-size: 26px; }
.review .card input + input { margin-top: 8px; }
.heard { background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.heard summary { cursor: pointer; font-weight: 600; color: var(--text); }
.heard p { margin-top: 6px; }
.items { padding-bottom: 8px; }
.items-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.items-head .eyebrow { margin: 0; }
.item { border-top: 1px solid #ececf0; padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.item:first-child { border-top: 0; }
.item-top { display: flex; gap: 8px; align-items: center; }
.item-top .desc { font-weight: 600; }
.item-nums { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.item-nums label { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.item-nums input { min-height: 44px; padding: 8px 10px; }
.item-nums .money input { min-height: 42px; }
.item .amount { font-weight: 600; min-width: 80px; text-align: right; padding-bottom: 11px; }
.item.needs .price { background: #fff8ec; }
.item.needs .money { border-color: #d97706; }
.totals { display: flex; flex-direction: column; gap: 8px; }
.totals div { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.totals .grand { padding-top: 10px; border-top: 1px solid #ececf0; color: var(--ink); font-weight: 600; align-items: baseline; }
.totals .grand span:last-child { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }

/* Settings / setup */
.details { display: flex; flex-direction: column; gap: 14px; }
.details .card > label:first-of-type { margin-top: 12px; }
.segmented { border: 0; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.segmented legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; border: 1px solid var(--field); background: #fff; font-weight: 600; cursor: pointer; }
.segmented input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.price-head { display: grid; grid-template-columns: minmax(0, 1fr) 110px 40px; gap: 8px; margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.price-row .remove { height: 48px; }
.logo-row { display: flex; gap: 14px; align-items: center; }
.logo-box { width: 84px; height: 84px; border-radius: 14px; border: 1px dashed var(--field); display: flex; align-items: center; justify-content: center; background: #fff; flex: none; overflow: hidden; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-box span { font-size: 12px; color: var(--muted); }
.logo-actions { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.logo-actions .file-btn { margin: 0; font-size: 15px; min-height: 44px; }
.logo-actions .check { margin: 2px 0 0; font-size: 15px; }
.logo-actions input:focus-visible + .file-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.plain-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.plain-links a { font-weight: 600; }

/* Invoices */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: #fff; border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile b { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.tile.dark { background: var(--ink); color: #fff; }
.tile.dark span { color: #c9cad1; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.filters a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* One invoice */
.inv-head { display: flex; align-items: center; gap: 10px; }
.inv-head > div { flex: 1 1 auto; min-width: 0; }
.inv-head h1 { font-size: 24px; }
.inv-head p { font-size: 15px; color: var(--muted); }
.tick { width: 38px; height: 38px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.done { font-weight: 600; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.paper { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(23, 23, 28, .10); padding: 20px 18px 14px; font-size: 11px; color: var(--text); text-decoration: none; }
.paper-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border-bottom: 2px solid #3a3a3f; padding-bottom: 10px; }
.paper-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.paper-brand img { width: 26px; height: 26px; object-fit: contain; }
.paper-brand b { font-size: 14px; color: var(--ink); }
.paper-meta { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.paper-title { font-size: 16px; font-weight: 800; color: #3a3a3f; }
.paper-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.paper-cards div { border: 1px dashed var(--field); padding: 6px 8px; display: flex; flex-direction: column; min-width: 0; }
.paper-cards i { font-style: normal; font-weight: 700; font-size: 9px; letter-spacing: .04em; }
.paper-lines { display: flex; flex-direction: column; }
.paper-lines div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; }
.paper-lines div:nth-child(odd):not(.ph) { background: #f5f5f7; }
.paper-lines .ph { background: #3a3a3f; color: #fff; font-weight: 700; }
.paper-lines .sub { color: var(--muted); justify-content: flex-end; gap: 18px; background: none !important; }
.paper-total { align-self: flex-end; display: flex; gap: 18px; background: #3a3a3f; color: #fff; font-weight: 800; font-size: 13px; padding: 7px 10px; }
.paper-open { text-align: center; font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.send { display: flex; flex-direction: column; gap: 10px; }
.send h2 { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.paid-box { display: flex; flex-direction: column; gap: 12px; }

/* Bottom tabs */
.tabbar { position: sticky; bottom: 0; display: flex; justify-content: space-around; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; min-height: 52px; justify-content: center; text-decoration: none; font-size: 12px; font-weight: 500; color: var(--muted); }
.tabbar a.on { color: var(--accent); font-weight: 600; }

/* ---- Friendlier screens ---- */
/* Focus mode: hide the tabs while recording / checking an invoice */
body.focus .tabbar { display: none; }

/* Setup in steps */
.wiz-progress { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.wiz-bar { height: 8px; border-radius: 999px; background: #dcdce3; overflow: hidden; }
.wiz-bar i { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: 999px; transition: width .25s; }
.wiz-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.wiz-nav .btn { min-height: 56px; font-size: 18px; }

/* Check the details */
.customer label:first-child { margin-top: 0; }
.customer input + label { margin-top: 12px; }
.review .card.customer input + input { margin-top: 0; }
.center-link { align-self: center; color: var(--muted); font-size: 15px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; margin: 0 -20px -28px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(245, 245, 247, 0), var(--ground) 22%); display: flex; flex-direction: column; gap: 8px; }

/* Home: first-run guide + install tip */
.guide h2 { margin-bottom: 10px; }
.guide ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.guide li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); line-height: 1.45; }
.guide li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.guide b { color: var(--ink); }
.install { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius); padding: 12px 8px 12px 14px; box-shadow: 0 6px 18px rgba(23, 23, 28, .06); }
.install img { border-radius: 10px; flex: none; }
.install div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.install b { font-size: 15px; line-height: 1.3; }
.install span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.install .close { flex: none; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; border-radius: 10px; }

/* Invoice: other ways to send */
.more { background: #fff; border-radius: 14px; padding: 4px 14px; }
.more summary { min-height: 46px; display: flex; align-items: center; font-weight: 600; font-size: 15px; color: var(--accent-ink); cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--muted); }
.more[open] summary::after { content: "–"; }
.more .btn-grid { padding: 4px 0 14px; }

/* Recording: the whole screen goes dark */
body.rec .shell, body.rec { background: var(--ink); }
body.rec .home { flex: 1 1 auto; }
body.rec .capture[data-state="recording"] { flex: 1 1 auto; border-radius: 0; margin: -20px -20px -28px; padding: 28px 20px 40px; }
body.rec .recording { flex: 1 1 auto; justify-content: space-between; }
