/* Hallmark · app screen · SubsTX locked system · signature: company revision queue · v2.0.0 */
/* Hallmark · pre-emit critique: restrained forms and comparison tables; no invented business data */
:root {
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --color-paper: oklch(98% 0.004 80); --color-paper-2: oklch(95.5% 0.006 80);
  --color-ink: #0b1024; --color-muted: oklch(45% 0.018 268); --color-rule: oklch(83% 0.009 268);
  --color-accent: #c41219; --color-accent-hover: #8b0000; --color-accent-ink: oklch(98% 0.004 80);
  --color-focus: #e51722; --color-error: oklch(48% 0.19 27);
  --gutter: clamp(1.25rem, 4vw, 2.5rem); --container: 60rem; --radius: 4px;
  color-scheme: light; font-family: var(--font-body); color: var(--color-ink); background: var(--color-paper);
}
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scrollbar-gutter: stable; scrollbar-color: var(--color-muted) var(--color-paper); }
body { font-size: 1rem; line-height: 1.65; min-height: 100dvh; display: flex; flex-direction: column; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
main, .masthead, footer > div { width: min(calc(100% - 2 * var(--gutter)), var(--container)); margin-inline: auto; min-width: 0; }
header { border-bottom: 1px solid var(--color-rule); }
.masthead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; max-width: 100%; height: auto; }
nav, .actions, .toolbar, .pagination { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav form { margin: 0; }
main { flex: 1; padding-block: 2rem 3rem; }
.page-heading { margin-bottom: 1.5rem; }
h1, h2, h3 { margin: 0 0 .75rem; font-weight: 600; line-height: 1.3; min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3, legend { font-size: 1.125rem; }
p { margin: 0 0 1rem; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--color-accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.skip { position: absolute; transform: translateY(-150%); padding: .5rem 1rem; background: var(--color-paper); z-index: 10; }
.skip:focus-visible { transform: none; }
.meta, caption { font-size: .875rem; color: var(--color-muted); }
.account-email { margin-top: .5rem; }
.auth { max-width: 30rem; }
section, fieldset { margin: 0 0 2rem; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: .75rem; padding: 0; }
label { display: block; font-size: .875rem; font-weight: 600; margin: 0 0 .375rem; }
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--color-muted); border-radius: var(--radius); background: var(--color-paper); color: var(--color-ink); padding: .625rem .75rem; margin-bottom: 1rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: -3px; }
textarea { min-height: 6rem; resize: vertical; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--color-error); }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; padding: .625rem 1rem; border: 1px solid var(--color-accent); border-radius: var(--radius); background: var(--color-accent); color: var(--color-accent-ink); font-size: .875rem; font-weight: 600; line-height: 1.55; cursor: pointer; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
button:hover, .button:hover { background: var(--color-accent-hover); color: var(--color-accent-ink); }
button:active, .button:active { transform: translateY(1px); }
button.quiet, .button.quiet { background: transparent; border-color: var(--color-muted); color: var(--color-ink); }
button.quiet:hover, .button.quiet:hover { background: var(--color-paper-2); }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
form[aria-busy=true] { cursor: progress; }
.auth button { margin-block: .5rem 1rem; }
.cf-turnstile { max-width: 100%; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.toolbar { justify-content: space-between; margin-bottom: 1.5rem; }
.toolbar p { margin-bottom: 0; }
.toolbar select { margin-bottom: 0; }
.toolbar > div { min-width: 12rem; max-width: 100%; }
.checkbox-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); max-height: 18rem; overflow-y: auto; border: 1px solid var(--color-rule); padding: .5rem; gap: .25rem 1rem; }
.check { display: flex; align-items: center; gap: .625rem; min-height: 44px; font-weight: 400; margin: 0; }
.check input { flex: 0 0 auto; width: 1.125rem; height: 1.125rem; accent-color: var(--color-accent); }
.service-row { border-top: 1px solid var(--color-rule); padding-top: 1rem; }
.service-row legend { padding-right: .5rem; }
.add-service { max-width: 35rem; }
.feedback { border: 1px solid var(--color-rule); padding: .75rem 1rem; background: var(--color-paper-2); margin-bottom: 1.5rem; }
.feedback p { margin: 0; }
.feedback.error { border-color: var(--color-error); color: var(--color-error); }
.empty { border-block: 1px solid var(--color-rule); padding-block: 1.5rem; }
.records { margin: 0; padding: 0; list-style: none; }
.records > li { border-bottom: 1px solid var(--color-rule); padding-block: 1rem; }
.records > li > span { display: block; }
.records form { margin-top: .75rem; }
.table-wrap { overflow-x: auto; margin-bottom: 2rem; container-type: inline-size; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .875rem .75rem; border-bottom: 1px solid var(--color-rule); vertical-align: top; overflow-wrap: anywhere; }
th { font-weight: 600; }
thead th { font-size: .875rem; }
caption { text-align: left; padding-bottom: .75rem; }
.comparison { table-layout: fixed; }
.comparison th:first-child { width: 18%; }
.comparison td { font-size: .875rem; }
.comparison th span { display: block; font-weight: 400; }
.changed { background: var(--color-paper-2); }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.search { margin-block: 1.5rem; }
.search input { flex: 1 1 15rem; margin: 0; }
.pagination { margin-bottom: 2rem; }
footer { border-top: 1px solid var(--color-rule); padding-block: 1rem; }
footer > div { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
footer a { display: inline-flex; min-height: 44px; align-items: center; font-size: .875rem; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 40rem) {
  .columns { grid-template-columns: minmax(0, 1fr); gap: 0; } h1 { font-size: 1.75rem; }
}
@container (max-width: 40rem) {
  .comparison, .comparison caption, .comparison tbody, .comparison tr, .comparison th, .comparison td { display: block; width: 100%; }
  .comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .comparison tr { border-bottom: 1px solid var(--color-rule); }
  .comparison th:first-child { width: 100%; }
  .comparison th, .comparison td { border: 0; padding: .625rem .75rem; }
  .comparison td::before { content: attr(data-label); display: block; font-weight: 600; color: var(--color-muted); margin-bottom: .375rem; }
  .comparison th span { display: inline; margin-left: .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
