/* Accept page. WCAG 2.2 AA: ≥ 4.5:1 text contrast, visible focus, ≥ 44 px targets,
   reflow at 320 CSS px (= 200 % zoom on a 640 px window), no fixed heights on text. */

:root {
  color-scheme: light;
  --ink: #14202e;
  --muted: #4a5868;
  --line: #c9d1db;
  --bg: #ffffff;
  --panel: #f3f6f9;
  --brand: #1f4e8c;
  --brand-ink: #ffffff;
  --focus: #b3470d;
  --error: #b00020;
  --ok: #1d6b38;
}

* {
  box-sizing: border-box;
}

/* Every size below is in rem/em, so the whole page follows the root font size: the browser's text-size setting
   on desktop and Android (16 px by default), and Dynamic Type on iPhone (next rule). Don't set a font size on
   :root — a :root rule outranks the html rule below and pins the page at 16 px (seen in the 2026-10-14 pack). */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

/* B10: follow the iPhone's text-size setting (Dynamic Type): Safari and in-app browsers on iOS size
   -apple-system-body from it (17 px at the default "Large", 40 px at AX3). Touch WebKit only: on desktop Safari
   -apple-system-body is a fixed 13 px and would shrink the page, so desktop keeps 16 px. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html {
    font: -apple-system-body;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Words break only when one alone is wider than its line (break-word doesn't shrink boxes to one letter the
     way anywhere does: "Englis / h", "B / e / tt / e / r" at 200 % text). */
  overflow-wrap: break-word;
}

/* E-mail addresses carry <wbr> after "@" and before dots (chrome.ts emailText); anywhere is the last resort for a
   part that still doesn't fit. */
.addr {
  overflow-wrap: anywhere;
}

main,
.provider p,
.page-footer p,
.lang-switch {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

main {
  padding: 0 1rem 2rem;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 1rem 0 0.25rem;
}

h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.5rem;
}

a {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.provider {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.provider p {
  /* Vertical only: the shared rule above centres it in the 42rem column on wide screens. */
  margin-top: 0;
  margin-bottom: 0;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.5rem 1rem 0;
}

.lang-button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--bg);
  color: var(--brand);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.lang-button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--brand-ink);
}

.business {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.business p {
  margin: 0;
}

.business-name {
  font-weight: 700;
  font-size: 1.15rem;
}

.logo {
  max-width: 6rem;
  max-height: 4rem;
  object-fit: contain;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.doc-number {
  font-weight: 400;
  color: var(--muted);
  font-size: 1.1rem;
}

.prewrap {
  white-space: pre-wrap;
}

.photos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.photos figure {
  margin: 0;
}

.photos img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.photos figcaption {
  font-size: 0.875rem;
  color: var(--muted);
}

table.lines {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}

.lines th,
.lines td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.lines th {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
}

.lines .num {
  text-align: right;
  white-space: nowrap;
}

.line-name {
  display: block;
}

.line-detail {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 30rem) {
  /* Narrow screens and 200 % zoom: stack each line instead of scrolling sideways. */
  table.lines {
    /* The table is as wide as the page, not as wide as its longest word (an item name with no spaces). */
    table-layout: fixed;
  }
  .lines thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .lines tr {
    /* Flex, not a grid: quantity, unit price and amount wrap under each other when large text doesn't fit them on
       one line (no sideways scrolling at 200 %). */
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.75rem;
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 0;
  }
  .lines td {
    display: block;
    border: 0;
    padding: 0.1rem 0;
  }
  .lines td:first-child {
    flex: 1 0 100%;
    /* A single very long word in an item name wraps instead of widening the row past the screen. */
    min-width: 0;
  }
  .lines td:last-child {
    margin-left: auto;
  }
  .lines td:nth-child(2),
  .lines td:nth-child(3) {
    text-align: left;
    color: var(--muted);
    font-size: 0.875rem;
  }
}

.totals {
  margin: 0.5rem 0 0 auto;
  max-width: 22rem;
}

.totals div {
  display: flex;
  /* With large text a label and an amount that don't fit side by side put the amount on its own line, right-aligned
     (the amount is never cut off at the screen edge: "Balance due $5,285.00" at 200 %). */
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1rem;
  padding: 0.2rem 0;
}

.totals dt,
.totals dd {
  margin: 0;
}

.totals dt {
  /* Basis 0: the label wraps before the amount moves down; the amount moves only when the label's longest word and
     the amount can't share a line. */
  flex: 1 1 0;
}

.totals dd {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.totals .grand {
  font-weight: 700;
  font-size: 1.15rem;
  border-top: 2px solid var(--ink);
  padding-top: 0.4rem;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

legend h2 {
  margin-bottom: 0.25rem;
}

.options .option-card {
  position: relative;
  margin: 0.6rem 0;
}

.option-card input {
  position: absolute;
  top: 1.05rem;
  left: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--brand);
}

.option-card label {
  /* Name and total share the first line while they fit; with large text the total wraps under the name instead
     of squeezing the name to a letter per line. */
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 1rem;
  padding: 0.85rem 1rem 0.85rem 3.25rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
}

.option-card input:checked + label {
  border-color: var(--brand);
  background: #eaf1fa;
}

.option-card input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.option-name {
  flex: 1 1 auto;
  font-weight: 700;
}

.option-total {
  /* Same line as the option name; the badge, description and deposit take the next lines. */
  order: 1;
  margin-left: auto;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.option-badge {
  /* EST-08 "Recommended": a small pill under the option name. */
  order: 2;
  flex: 0 0 auto;
  margin-right: 100%;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.option-desc,
.option-deposit {
  order: 3;
  flex: 1 0 100%;
  color: var(--muted);
  font-size: 0.925rem;
}

.deposit {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--panel);
  border-radius: 10px;
}

.deposit-amount {
  font-weight: 700;
  margin-top: 0;
}

.payment-line {
  font-size: 0.925rem;
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  width: 100%;
  min-height: 56px;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.button.secondary {
  background: var(--bg);
  color: var(--brand);
}

.button.small-button {
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-button {
  background: none;
  border: 0;
  text-align: start;
  padding: 0.6rem 0.1rem;
  min-height: 44px;
  color: var(--brand);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

.approve,
.decline {
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.consent-lead {
  /* The label is the checkbox's tap target: at least 44 px tall, the text line centred on the box. */
  --consent-pad: max(0.25rem, calc(22px - 0.75rem));
  font-weight: 700;
  display: block;
  min-height: 44px;
  padding: var(--consent-pad) 0;
  cursor: pointer;
}

.consent-body {
  margin: 0.25rem 0 0;
}

.consent-body p {
  margin: 0;
}

/* Copy review Proposal A: the consent's later sentences as a list (same text, same hash). */
.consent-body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.consent-body li + li {
  margin-top: 0.35rem;
}

.approve-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  font-weight: 700;
  margin: 0.75rem 0;
}

.consent,
.check {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0 0.6rem;
  align-items: start;
  margin: 0.75rem 0;
}

.consent input,
.check input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.15rem 0 0;
  accent-color: var(--brand);
}

.consent input {
  margin-top: max(0.25rem, calc(22px - 0.75rem));
}

.check label {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.consent-footnote {
  font-size: 0.925rem;
  color: var(--muted);
}

/* CCR 2013 reg 14(3) acknowledgement, directly above the approve button. */
.agree-to-pay {
  font-weight: 600;
  margin: 1rem 0 0;
}

.field {
  margin: 1rem 0;
}

.field > label,
.label {
  display: block;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

input[type="text"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 2px solid #6b7785;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
}

input[type="text"]:disabled {
  background: #e9edf1;
  border-color: #a9b3be;
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.hint {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.pad-box {
  border: 2px dashed #6b7785;
  border-radius: 10px;
  background: #fbfcfd;
}

.pad-box[data-disabled="true"] {
  background: #e9edf1;
  border-style: solid;
  border-color: #a9b3be;
}

.pad {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  touch-action: none;
  cursor: crosshair;
}

.pad-box[data-disabled="true"] .pad {
  cursor: not-allowed;
}

.pad-actions {
  margin: 0.5rem 0 0;
}

.field-error {
  color: var(--error);
  font-weight: 600;
  margin: 0.25rem 0;
}

.error-summary {
  border: 2px solid var(--error);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
}

.error-summary p {
  margin: 0.25rem 0;
  font-weight: 700;
  color: var(--error);
}

.status:not(:empty) {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border-radius: 8px;
}

.status p {
  margin: 0 0 0.5rem;
}

.draft-marker {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--error);
}

.placeholder {
  /* Owner-supplied values not filled in yet (privacy.html). */
  background: #fff4e5;
  outline: 1px dashed #b3470d;
  padding: 0 0.2rem;
}

.draft-note {
  color: var(--muted);
  font-style: italic;
}

.message {
  padding-top: 1rem;
}

.contact .plain,
ul.plain {
  list-style: none;
  padding: 0;
}

.contact li {
  margin: 0.25rem 0;
}

.contact a {
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 0;
}

.page-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 0.5rem 1rem 2rem;
  font-size: 0.925rem;
}

.page-footer .legal-links {
  /* Whole links per line; the "·" between them only while they share a line is not worth a lone dot. */
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  margin: 0;
}

.page-footer .legal-links .sep {
  display: none;
}

.page-footer .report-line {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.report-line a,
.legal-dialog a {
  display: inline-block;
  min-height: 44px;
  padding: 0.6rem 0.1rem;
  color: var(--brand);
}

.legal-dialog {
  max-width: min(36rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--ink);
}

.legal-dialog::backdrop {
  background: rgba(20, 32, 46, 0.5);
}

.turnstile:empty {
  display: none;
}

.noscript {
  max-width: 42rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Loading the sealed payload: bytes received / Content-Length (main.ts loadingProgress). */
.load-progress {
  max-width: 24rem;
}

.progress-track {
  height: 0.6rem;
  border-radius: 999px;
  background: #e3e8ee;
  overflow: hidden;
  border: 1px solid var(--line);
}

.progress-fill {
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.2s linear;
}

.progress-track[data-indeterminate="true"] .progress-fill {
  width: 30%;
  transform: none;
  animation: progress-slide 1.4s ease-in-out infinite;
}

@keyframes progress-slide {
  from {
    margin-left: -30%;
  }
  to {
    margin-left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill {
    transition: none;
  }
  .progress-track[data-indeterminate="true"] .progress-fill {
    animation: none;
    width: 100%;
    opacity: 0.35;
  }
}

/* B1: in-app browser banner */
.banner {
  background: #fff4e5;
  border-bottom: 1px solid #d9a441;
  padding: 0.75rem 1rem;
}

.banner > * {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.banner p {
  margin-top: 0;
}

.copy-feedback p {
  margin: 0.5rem 0 0;
}

.copy-feedback label {
  display: block;
  margin: 0.5rem 0 0.25rem;
}

.contact-line a {
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 0;
}

.notice {
  background: #eaf1fa;
  border-left: 4px solid var(--brand);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

/* Signature: "Type" / "Draw" segmented choice */
.sign-method {
  margin: 1rem 0;
}

.sign-method legend {
  margin-bottom: 0.35rem;
}

.segmented {
  /* Side by side while both fit, stacked with large text (no sideways scrolling at 175–200 %). The 2 px gap shows
     the brand background as the divider in either layout. */
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  background: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.segment {
  position: relative;
  flex: 1 1 auto;
}

.segment input {
  /* The real radio covers its segment (taps land on it); the label is the visible face. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.segment label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: min(6.5rem, 100%);
  padding: 0.5rem 1.25rem;
  color: var(--brand);
  background: var(--bg);
  font-weight: 700;
}

.segment input:checked + label {
  background: var(--brand);
  color: var(--brand-ink);
}

.segment input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: -5px;
}

.segment input:disabled {
  cursor: not-allowed;
}

.segment input:disabled + label {
  background: #e9edf1;
  color: var(--muted);
}

.segment input:disabled:checked + label {
  background: #c9d1db;
  color: var(--ink);
}

.typed-preview {
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", "Apple Chancery", cursive;
  font-size: 2rem;
  line-height: 1.3;
  min-height: 3.5rem;
  margin: 0 0 0.35rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--ink);
  background: #fbfcfd;
}

.typed-preview.empty {
  font-family: inherit;
  font-size: 1rem;
  color: var(--muted);
}

/* B8: decline behind a disclosure */
.disclosure {
  background: none;
  border: 0;
  padding: 0.6rem 0;
  min-height: 44px;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.disclosure::after {
  content: " \25B8";
}

.disclosure[aria-expanded="true"]::after {
  content: " \25BE";
}

.want-changes a {
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 0.1rem;
  text-align: center;
}

/* B2: sticky "Review and approve" bar (estimate) and "Balance due · How to pay" bar (invoice) */
main.estimate,
main.invoice.with-bar {
  padding-bottom: 6rem;
}

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  /* A shortcut, not content: it may never take more than about a fifth of the screen. Its text follows the page
     size up to 200 % (32 px) and the viewport height (4.8vh: 32 px on a 667 px iPhone SE, 18 px in landscape);
     the same action and summary are in the approve section at full size. */
  font-size: min(1rem, 32px, 4.8vh);
  container: sticky / inline-size;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  padding: 0.4em max(1em, calc((100% - 42rem) / 2 + 1rem)) calc(0.4em + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 8px rgba(20, 32, 46, 0.12);
}

.sticky-choice {
  /* Name (cut with "…" if long) and total: at most two lines. */
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.3em;
  min-width: 0;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.sticky-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-total {
  white-space: nowrap;
}

.sticky-bar .button {
  flex: none;
  min-height: 44px;
  padding: 0.3em 1em;
  line-height: 1.2;
  text-align: center;
}

/* Not enough room for the summary beside the button (large text, narrow phone): the button alone, full width,
   its label wrapping rather than clipped. */
@container sticky (max-width: 20em) {
  .sticky-choice {
    display: none;
  }
  .sticky-bar .button {
    flex: 1 1 auto;
    padding: 0.25em 0.5em;
  }
}

.save-note {
  font-weight: 700;
}

.record {
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 1rem;
}

.record summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
}

.record dl div {
  margin: 0.5rem 0;
}

.record dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.record dd {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* Invoice page (2026-10-14) */
.badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

.badge.overdue {
  /* Text, not colour only: the word "Overdue" is the badge. White on #b00020 is about 7:1. */
  background: var(--error);
  color: #ffffff;
}

.bill-to p {
  margin: 0;
}

.totals .total-row {
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 0.4rem;
}

.payments h2 {
  margin-bottom: 0.25rem;
}

.payments-list dt {
  color: var(--muted);
}

main.invoice .totals dd {
  white-space: nowrap;
  text-align: right;
}

.status-banner {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--brand);
  background: #eaf1fa;
}

.status-banner.paid {
  border-left-color: var(--ok);
  background: #e9f5ee;
}

.status-banner p {
  margin: 0.25rem 0;
}

.status-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.pdf-block {
  margin-top: 1.5rem;
}

.pay {
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.pay-methods {
  margin: 0.5rem 0 1rem;
}

.pay-method {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border-radius: 10px;
}

.pay-method .button {
  width: 100%;
}

.pay-method .payment-line {
  margin: 0.5rem 0 0;
}

.send-memo {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--brand);
  background: #eaf1fa;
  border-radius: 4px;
}

.send-memo p {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.pay-warning {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid #b3470d;
  background: #fff4e5;
  border-radius: 4px;
}

.pay-warning.changed {
  border: 2px solid var(--error);
  border-left-width: 6px;
}

.tell-paid {
  margin: 0.25rem 0 0;
}

.report-address {
  white-space: normal;
}

.pay-label {
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.pay-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin: 0 0 0.5rem;
}

input[type="date"] {
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 2px solid #6b7785;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  max-width: 100%;
}

textarea[aria-invalid="true"],
input[type="date"][aria-invalid="true"] {
  border-color: var(--error);
}

.copy-input {
  width: 100%;
}

.notice-record dl div {
  margin: 0.5rem 0;
}

.notice-record dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.notice-record dd {
  margin: 0;
}
