/* The customer account app. Its own look: a shop-black bar, cool porcelain page, and the service tag.
   Headings and dates are set in a condensed bold, the way a work order or a furnace tag is printed. */
@font-face { font-family: "Inter"; src: url("/assets/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Heros Cn"; src: url("/assets/heros-cn-700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --shop: #000;
  --porcelain: #ecefee;
  --enamel: #fff;
  --ink: #14181b;
  --slate: #55616a;
  --rule: #cbd3d1;
  --red: #d0202b;
  --red-deep: #a8141e;
  --manila: #f1dfa9;
  --manila-edge: #cdb46c;
  --good: #1c6b45;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --stamp: "Heros Cn", "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, sans-serif;
  --gutter: clamp(1.1rem, 4.5vw, 2.5rem);
  --column: 60rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--porcelain); color: var(--ink); font: 400 1rem/1.55 var(--text); }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.bar :focus-visible, .tabs :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: #fff; color: #000; padding: .6rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }

/* ----- the bar ----- */
.bar { background: var(--shop); color: #fff; position: sticky; top: 0; z-index: 20; }
.bar-in { max-width: calc(var(--column) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); min-height: 4rem; display: flex; align-items: center; gap: 1.5rem; }
.bar-brand { display: block; flex: none; }
.bar-brand img { width: 166px; height: 28px; }
.bar-nav { display: flex; gap: .25rem; margin-left: auto; }
.bar-nav a { text-decoration: none; padding: .55rem .9rem; border-radius: 6px; font-weight: 500; font-size: .9375rem; color: #c9cfcd; }
.bar-nav a:hover { color: #fff; }
.bar-nav a[aria-current] { color: #fff; box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.who { position: relative; flex: none; margin-left: auto; }
.bar-nav + .who { margin-left: 0; }
.avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid #fff; background: var(--manila); color: var(--ink); font: 700 1.05rem/1 var(--stamp); letter-spacing: .02em; display: grid; place-items: center; padding: 0; }
.avatar[aria-expanded="true"] { border-color: var(--red); }
.who-menu { position: absolute; right: 0; top: calc(100% + .6rem); width: min(17rem, calc(100vw - 2 * var(--gutter))); background: var(--enamel); color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 14px 30px rgba(8, 20, 24, .22); padding: .5rem; z-index: 30; }
.who-name { font: 700 1.25rem/1.1 var(--stamp); padding: .55rem .7rem 0; }
.who-mail { color: var(--slate); font-size: .875rem; padding: .1rem .7rem .6rem; border-bottom: 1px solid var(--rule); margin-bottom: .4rem; overflow-wrap: anywhere; }
.who-menu a, .who-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .6rem .7rem; border-radius: 6px; text-decoration: none; font-weight: 500; }
.who-menu a:hover, .who-menu button:hover { background: var(--porcelain); }

/* ----- page ----- */
main { flex: 1; width: 100%; max-width: calc(var(--column) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.75rem) var(--gutter) 4rem; }
.wait { color: var(--slate); }
h1, h2, h3 { font-family: var(--stamp); font-weight: 700; line-height: 1.05; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 6vw, 2.9rem); }
h1:focus { outline: none; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 .9rem; }
.quiet { color: var(--slate); }
.fine { color: var(--slate); font-size: .875rem; margin-top: .75rem; }
.fine a, .quiet a, .screen-sub a, .gate a:not(.btn) { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .65rem 1.25rem; border-radius: 8px; border: 2px solid var(--red); background: var(--red); color: #fff; font-weight: 600; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.ink { background: var(--ink); border-color: var(--ink); }
.btn.ink:hover { background: #000; border-color: #000; }
.btn.small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .9375rem; }
.btn[disabled] { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.acts { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.back { display: inline-flex; align-items: center; gap: .15rem; margin: 0 0 1rem -.35rem; padding: .3rem .6rem .3rem .2rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--slate); }
.back:hover { color: var(--ink); background: #dde2e0; }
.back svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.screen-head { margin-bottom: 1.5rem; }
.screen-sub { color: var(--slate); margin-top: .5rem; max-width: 38rem; }

/* ----- welcome ----- */
.hello { padding-bottom: 1.75rem; border-bottom: 2px solid var(--ink); }
.hello h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: .96; overflow-wrap: anywhere; }
.hello-word { display: block; font: 500 1.05rem/1.4 var(--text); letter-spacing: 0; color: var(--slate); margin-bottom: .2rem; }
.hello-biz { font: 700 clamp(1.3rem, 3.6vw, 1.75rem)/1.1 var(--stamp); color: var(--slate); margin-top: .35rem; }
.hello-contact { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin-top: .9rem; font-weight: 500; }
.hello-contact li { overflow-wrap: anywhere; }

/* ----- the service tag: the next visit, printed on a manila hang tag ----- */
.next { margin-top: 2rem; }
.next-none { padding: 1.1rem 1.25rem; border: 1.5px dashed #9aa6a3; border-radius: 10px; color: var(--slate); }
.next-none strong { display: block; color: var(--ink); font: 700 1.3rem/1.2 var(--stamp); }
.tag-hang { filter: drop-shadow(0 3px 0 var(--manila-edge)) drop-shadow(0 10px 16px rgba(20, 30, 34, .13)); transform-origin: 1.7rem 50%; }
.tag { position: relative; display: grid; grid-template-columns: auto 1fr; background: var(--manila); color: var(--ink); border-top: 9px solid var(--red); padding-left: 3.4rem; clip-path: polygon(1.6rem 0, 100% 0, 100% 100%, 1.6rem 100%, 0 calc(100% - 1.6rem), 0 1.6rem); }
.tag::before { content: ""; position: absolute; left: 1.05rem; top: 50%; width: 1.15rem; height: 1.15rem; margin-top: -.575rem; border-radius: 50%; background: var(--porcelain); box-shadow: 0 0 0 .32rem #dcc47f; }
.tag-date { display: grid; justify-items: center; align-content: center; gap: .1rem; padding: 1.1rem 1.4rem 1.2rem .6rem; border-right: 2px dashed rgba(20, 24, 27, .32); font-family: var(--stamp); font-weight: 700; text-align: center; width: 7.6rem; }
.tag-dow, .tag-mon { font-size: 1.15rem; line-height: 1; }
.tag-day { font-size: 4.2rem; line-height: .86; }
.tag-body { padding: 1.1rem 1.4rem 1.2rem; display: grid; align-content: center; gap: .15rem; min-width: 0; }
.tag-what { font-size: 1.9rem; }
.tag-time { font-weight: 600; }
.tag-where { color: #4b4733; overflow-wrap: anywhere; }
.tag-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin-top: .55rem; }
.tag-count { font: 700 1.05rem/1 var(--stamp); background: var(--ink); color: var(--manila); padding: .35rem .6rem .3rem; border-radius: 4px; }
.tags { display: grid; gap: 1.1rem; }
.tags .tag-date { width: 7rem; padding-top: .8rem; padding-bottom: .9rem; }
.tags .tag-day { font-size: 3rem; }
.tags .tag-what { font-size: 1.45rem; }
.tags .tag-body { padding-top: .8rem; padding-bottom: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .next .tag-hang { animation: hang .9s cubic-bezier(.3, 1.5, .5, 1) both; }
  @keyframes hang { from { transform: rotate(-3.2deg); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
}

/* ----- properties ----- */
.prop-list { display: grid; gap: 1rem; }
.prop { background: var(--enamel); border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem 1.4rem 1.35rem; display: grid; gap: 1rem; }
.prop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; }
.prop-head h3 { font-size: 1.6rem; overflow-wrap: anywhere; }
.prop-head h3 a { text-decoration: none; }
.prop-head h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.prop-label { font-size: .875rem; font-weight: 600; color: var(--slate); }
.prop-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .75rem 1.5rem; padding: .9rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.prop-facts dt { font-size: .8125rem; font-weight: 600; color: var(--slate); }
.prop-facts dd { font-weight: 500; }
.prop-facts dd small { display: block; font-weight: 400; font-size: .875rem; color: var(--slate); }

/* ----- service record: ruled like the lines on the back of a tag ----- */
.record { border-top: 2px solid var(--ink); }
.record li { display: grid; grid-template-columns: 8.5rem 1fr; gap: .15rem 1.25rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.record time { font: 700 1.15rem/1.3 var(--stamp); }
.record .rec-what { font-weight: 600; }
.record .rec-where { grid-column: 2; color: var(--slate); font-size: .9375rem; overflow-wrap: anywhere; }
.record .rec-year { display: block; padding: 1.1rem 0 .35rem; font: 700 1rem/1 var(--stamp); color: var(--slate); border-bottom: 1px solid var(--rule); grid-template-columns: none; }

/* ----- offers ----- */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.offers-grid figure { margin: 0; background: var(--enamel); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.offers-grid figcaption { padding: .6rem .9rem; font-size: .875rem; color: var(--slate); }

/* ----- forms ----- */
.seg { display: inline-flex; padding: .25rem; background: #dbe0de; border-radius: 10px; margin-bottom: 1.75rem; max-width: 100%; }
.seg a { padding: .55rem 1rem; border-radius: 7px; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--slate); text-align: center; }
.seg a[aria-current] { background: var(--enamel); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 30, 34, .18); }
form { display: grid; gap: 1.5rem; max-width: 40rem; }
form .btn { justify-self: start; min-width: 13rem; }
form .btn.small { min-width: 0; }
.field { display: grid; gap: .4rem; }
.field.tight { margin-top: 1rem; }
label, .label, legend { font-weight: 600; }
label small, .label small { font-weight: 400; color: var(--slate); margin-left: .35rem; }
legend { margin-bottom: .6rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea { width: 100%; padding: .75rem .9rem; background: var(--enamel); border: 1.5px solid #98a4a1; border-radius: 8px; min-height: 3rem; }
textarea { resize: vertical; line-height: 1.5; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
::placeholder { color: #8a9693; }
.hint { color: var(--slate); font-size: .875rem; }
.err { display: none; color: var(--red-deep); font-weight: 600; font-size: .9375rem; }
.bad > .err, .err.show { display: block; }
.bad input, .bad textarea { border-color: var(--red); }
.msg { padding: .75rem 1rem; border-radius: 8px; font-weight: 500; }
.msg.bad { background: #fbe4e2; color: #7d0f17; border: 1px solid #efb0ab; }
.pw { position: relative; }
.pw input { padding-right: 4.6rem; }
.pw-show { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); min-width: 3.8rem; padding: .45rem .6rem; background: var(--porcelain); border: 0; border-radius: 6px; font-weight: 600; font-size: .875rem; }
.pw-show:hover { background: #dbe0de; }
.check { display: flex; align-items: flex-start; gap: .65rem; font-weight: 400; cursor: pointer; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--red); }
.choices { display: grid; gap: .5rem; }
.choices.row { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.choice { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem .9rem; background: var(--enamel); border: 1.5px solid #98a4a1; border-radius: 8px; font-weight: 500; cursor: pointer; }
.choice input { flex: none; width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--red); }
.choice span { min-width: 0; overflow-wrap: anywhere; }
.choice strong { display: block; }
.choice small { display: block; color: var(--slate); font-weight: 400; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.picked { font-weight: 500; color: var(--slate); }
.picked.set { color: var(--ink); }
.save { display: flex; align-items: center; gap: 1rem; }
#acct-text-box { display: grid; gap: 1.25rem; }
.saved { color: var(--good); font-weight: 600; }
.done { background: var(--enamel); border: 1px solid var(--rule); border-left: 6px solid var(--good); border-radius: 10px; padding: 1.4rem 1.5rem; max-width: 40rem; }
.done:focus { outline: none; }
.done h2 { margin-top: 0; }
.done .acts { margin-top: 1.1rem; }

.steps { display: grid; gap: .4rem; margin-top: .6rem; }
.step { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .5rem .5rem .9rem; background: var(--enamel); border: 1.5px solid #98a4a1; border-radius: 8px; font-weight: 500; }
.step.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stepper { display: flex; align-items: center; gap: .25rem; }
.stepper button { width: 2.4rem; height: 2.4rem; border-radius: 6px; border: 0; background: var(--porcelain); font-weight: 600; font-size: 1.2rem; line-height: 1; }
.stepper button:hover:not([disabled]) { background: #dbe0de; }
.stepper button[disabled] { opacity: .4; cursor: default; }
.stepper output { min-width: 1.8rem; text-align: center; font: 700 1.3rem/1 var(--stamp); }

.photo-list { display: grid; gap: .5rem; }
.photo-list:empty { display: none; }
.photo-list li { display: flex; align-items: center; gap: .8rem; padding: .4rem; background: var(--enamel); border: 1px solid var(--rule); border-radius: 8px; }
.photo-list img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: 5px; background: var(--porcelain); }
.photo-state { flex: 1; color: var(--slate); font-size: .9375rem; }
.photo-list li.ok .photo-state { color: var(--good); font-weight: 600; }

/* The month calendar (cal.js draws it). */
.cals { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; }
.cal { background: var(--enamel); border: 1.5px solid #98a4a1; border-radius: 10px; padding: .75rem; max-width: 24rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cal-head strong { font: 700 1.25rem/1 var(--stamp); }
.cal-head button { width: 2.5rem; height: 2.5rem; border: 0; border-radius: 6px; background: var(--porcelain); font-size: 1.3rem; line-height: 1; }
.cal-head button[disabled] { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .dow { text-align: center; font-size: .75rem; font-weight: 600; color: var(--slate); padding: .25rem 0; }
.cal-grid .day { position: relative; aspect-ratio: 1; min-width: 0; border: 0; border-radius: 6px; background: var(--porcelain); font-weight: 600; display: grid; place-items: center; padding: 0; }
.cal-grid .day:hover:not([disabled]) { background: #d5dbd9; }
.cal-grid .day[disabled] { background: transparent; color: #a4aeab; font-weight: 400; cursor: default; }
.cal-grid .day.full[disabled] { text-decoration: line-through; }
.cal-grid .day small { display: none; }
.cal-grid .day.today { box-shadow: inset 0 0 0 1.5px var(--slate); }
.cal-grid .day[aria-pressed="true"] { background: var(--red); color: #fff; }

/* ----- settings ----- */
.panel { background: var(--enamel); border: 1px solid var(--rule); border-radius: 12px; padding: 1.4rem 1.5rem 1.6rem; margin-bottom: 1.25rem; max-width: 44rem; }
.panel h2 { margin-top: 0; }
.facts { display: grid; grid-template-columns: 9.5rem 1fr; gap: .55rem 1.25rem; }
.facts dt { color: var(--slate); font-size: .9375rem; }
.facts dd { font-weight: 500; overflow-wrap: anywhere; }

/* ----- sign in and set up ----- */
.gate { max-width: 27rem; margin: clamp(.5rem, 4vw, 3rem) auto 0; background: var(--enamel); border: 1px solid var(--rule); border-top: 9px solid var(--red); border-radius: 0 0 12px 12px; padding: 1.75rem clamp(1.25rem, 5vw, 2rem) 2rem; }
.gate h1 { font-size: 2.3rem; }
.gate-for { color: var(--slate); margin: .4rem 0 1.5rem; overflow-wrap: anywhere; }
.gate-for strong { color: var(--ink); }
.gate > p + p { margin-top: 1rem; }
.gate form { gap: 1.2rem; }
.gate .btn { width: 100%; justify-self: stretch; }
.gate-help { color: var(--slate); font-size: .9375rem; margin-top: 1.25rem; }
.gate-help strong { color: var(--ink); }

/* ----- bottom tabs (phones) and the foot ----- */
.tabs { display: none; }
.tabs svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; max-width: var(--column); width: calc(100% - 2 * var(--gutter)); margin: 0 auto; padding: 1.25rem 0 1.75rem; border-top: 1px solid var(--rule); color: var(--slate); font-size: .8125rem; }
.app-foot-links { display: flex; gap: 1.25rem; }

@media (max-width: 719px) {
  .bar-nav { display: none; }
  .bar-nav + .who { margin-left: auto; }
  .bar-in { min-height: 3.5rem; }
  .signed-in .tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--shop); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a { display: grid; justify-items: center; gap: .15rem; padding: .55rem 0 .5rem; color: #aab3b0; text-decoration: none; font-size: .75rem; font-weight: 600; box-shadow: inset 0 3px 0 transparent; }
  .tabs a[aria-current] { color: #fff; box-shadow: inset 0 3px 0 var(--red); }
  .signed-in .app-foot { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .tag { padding-left: 2.9rem; }
  .tag::before { left: .85rem; }
  .tag-date, .tags .tag-date { width: 5.9rem; padding: .9rem .7rem 1rem .1rem; }
  .tag-dow, .tag-mon { font-size: 1rem; }
  .tag-day { font-size: 3.3rem; }
  .tag-what { font-size: 1.5rem; }
  .tag-body { padding: .9rem 1rem 1rem; }
  .record li { grid-template-columns: 1fr; }
  .record .rec-where { grid-column: 1; }
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { margin-bottom: .6rem; }
  .prop .acts .btn { flex: 1 1 12rem; }
  .seg { display: flex; }
  form .btn:not(.small) { width: 100%; }
  .seg a { flex: 1; }
}

/* ----- the invoice page a customer opens from their link ----- */
.bar-call { margin-left: auto; color: #fff; font-weight: 600; text-decoration: none; padding: .45rem .8rem; border: 1.5px solid #fff; border-radius: 6px; }
.inv-page main { max-width: calc(66rem + 2 * var(--gutter)); }
.iv-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.iv-pay { max-width: 61.25rem; margin: 1rem auto 0; }
.acct-inv { margin-top: 1.5rem; }
/* ----- invoices inside the account ----- */
.owed { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem 1rem; margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--enamel); border: 1px solid var(--rule); border-left: 6px solid var(--red); border-radius: 10px; text-decoration: none; }
.owed:hover { border-color: var(--ink); border-left-color: var(--red); }
.owed-label { font-size: .8125rem; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.owed-amt { grid-row: 2; font: 700 2rem/1 var(--stamp); }
.owed-sub { grid-row: 3; color: var(--slate); font-size: .9375rem; }
.owed-go { grid-column: 2; grid-row: 1 / 4; padding: .55rem 1rem; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.in-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.in-totals div { padding: .85rem 1rem; background: var(--enamel); border: 1px solid var(--rule); border-radius: 10px; }
.in-totals dt { font-size: .8125rem; font-weight: 600; color: var(--slate); }
.in-totals dd { font: 700 1.6rem/1.1 var(--stamp); margin-top: .2rem; font-variant-numeric: tabular-nums; }
.in-totals .due { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bills { border-top: 2px solid var(--ink); }
.bills li { border-bottom: 1px solid var(--rule); }
.bill { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem .25rem; text-decoration: none; }
.bill:hover { background: #e3e8e6; }
.bill-main { display: grid; gap: .1rem; min-width: 0; }
.bill-num { font: 700 1.3rem/1.15 var(--stamp); }
.bill-when { font-weight: 500; }
.bill-where { color: var(--slate); font-size: .9375rem; overflow-wrap: anywhere; }
.bill-money { display: grid; justify-items: end; gap: .25rem; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.bill-total { font-weight: 600; }
.bill-state { padding: .15rem .55rem; border-radius: 999px; background: #d9f0e3; color: var(--good); font-size: .8125rem; font-weight: 700; }
.bill.due .bill-state { background: #fbe4e2; color: #7d0f17; }
.iv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
[data-screen="invoice"] #iv1-doc { margin: 0 calc(-1 * min(var(--gutter), 1rem)); }
@media (max-width: 719px) {
  .in-totals { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .in-totals .due { grid-column: 1 / -1; }
  .owed { grid-template-columns: 1fr; }
  .owed-go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .6rem; }
  .iv-head .acts, .iv-head .btn { width: 100%; }
}

@media print {
  .bar, .app-foot, .tabs, .iv-bar, .iv-pay, .back, .screen-head, .no-print, .skip, #iv1-wait { display: none !important; }
  [data-screen="invoice"] #iv1-doc { margin: 0; }
  body, .inv-page main, main { background: #fff; padding: 0; margin: 0; max-width: none; }
}
