/* Hallmark · v2.0.0 · shape: app screen · genre: modern-minimal · theme: Coral · signature: occupancy ledger · scope: app */
/* Critique: the work table stays central; soft stock surfaces carry forms without decorative cards or invented figures. */
:root {
  --color-paper: #f5f3ef;
  --color-sheet: #fffcf7;
  --color-paper-2: #ebe7e1;
  --color-ink: #292a27;
  --color-muted: #60645e;
  --color-rule: #c7c5bd;
  --color-rule-soft: #dedbd4;
  --color-accent: #b55843;
  --color-accent-hover: #92452f;
  --color-accent-ink: #fffdf9;
  --color-focus: #a33d27;
  --color-error: #8c3228;
  --color-error-wash: #fceee9;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --radius-control: 5px;
  --radius-panel: 8px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--color-paper); color: var(--color-ink); font: 16px/1.5 var(--font-body); }
body { margin: 0; min-height: 100vh; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
html { scrollbar-color: var(--color-rule) var(--color-paper); }
a { color: inherit; text-decoration-color: var(--color-accent); text-underline-offset: .18em; }
a:hover { color: var(--color-accent-hover); }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(1); }
button:active { transform: translateY(1px); }
input, select, textarea { caret-color: var(--color-accent); }
input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; background: var(--color-paper-2); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.14; letter-spacing: -.025em; font-weight: 600; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin: 0 0 .65rem; }
h2 { font-size: 1.25rem; margin: 0 0 1rem; }
p { margin: 0; max-width: 68ch; }
form { margin: 0; }
.shell { width: min(100% - 3rem, 1180px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--color-rule); background: var(--color-sheet); }
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 2rem; min-height: 68px; padding-block: .7rem; }
.header-row nav { margin-left: auto; }
.header-row form { margin-left: auto; }
.header-row nav + form { margin-left: 0; }
.brand { font-size: 1.12rem; font-weight: 700; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.header-row nav a { font-size: .9rem; }
.text-button { border: 0; padding: .5rem; background: transparent; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: .2em; }
.text-button:hover { color: var(--color-accent-hover); }
.page-intro { padding-block: 3.2rem 2.2rem; }
.page-intro p, .section-head p, .field-help, .muted { color: var(--color-muted); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 2rem 3rem; align-items: start; }
.page-grid .page-intro { grid-column: 1 / -1; padding-bottom: 0; }
.main-column { min-width: 0; }
.side-column, .form-section, .offer-form, .auth-form { min-width: 0; padding: 1.6rem; background: var(--color-sheet); border: 1px solid var(--color-rule); border-radius: var(--radius-panel); }
.record-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; padding: 1.25rem 0; border-top: 1px solid var(--color-rule); text-decoration: none; }
.record-link:last-child { border-bottom: 1px solid var(--color-rule); }
.record-link:hover { background: var(--color-paper-2); }
.record-name { font-size: 1.15rem; font-weight: 600; }
.record-detail { grid-column: 1; color: var(--color-muted); font-size: .9rem; }
.record-action { grid-column: 2; grid-row: 1 / 3; align-self: center; text-decoration: underline; text-decoration-color: var(--color-accent); white-space: nowrap; }
.empty-state { padding: 2rem 0; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
.empty-state p { color: var(--color-muted); }
.field-stack { display: grid; gap: .5rem; }
.field-stack label, .field-pair label { font-size: .91rem; font-weight: 500; }
.field-stack > input, .field-stack > select, .field-stack > textarea, .field-pair input, .inline-form select, .amount-input { width: 100%; min-height: 42px; padding: .5rem .7rem; border: 1px solid var(--color-muted); border-radius: var(--radius-control); background: var(--color-sheet); color: var(--color-ink); }
.field-stack > input:hover, .field-stack > select:hover, .field-stack > textarea:hover, .field-pair input:hover, .inline-form select:hover, .amount-input:hover { border-color: var(--color-ink); }
.field-stack > input:invalid:not(:placeholder-shown) { border-color: var(--color-error); }
.field-stack > label:not(:first-child) { margin-top: .55rem; }
.field-help { min-height: 1lh; font-size: .87rem; }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .5rem .9rem; border-radius: var(--radius-control); font-weight: 600; white-space: nowrap; }
.button-primary { border: 1px solid var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }
.button-primary:hover { border-color: var(--color-accent-hover); background: var(--color-accent-hover); }
.button-secondary { border: 1px solid var(--color-rule); background: var(--color-sheet); color: var(--color-ink); }
.button-secondary:hover { border-color: var(--color-accent); color: var(--color-accent-hover); }
.field-stack > .button-primary { margin-top: .75rem; }
.check-label { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; }
.check-label input { width: 1rem; height: 1rem; margin: .2rem 0 0; accent-color: var(--color-accent); }
.check-label.compact { margin-bottom: .5rem; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-pair > div { display: grid; gap: .5rem; }
.workspace-page { padding-bottom: 5rem; }
.workspace-page .page-intro { padding-bottom: 1rem; }
.connect-form { margin-top: 1.5rem; }
.content-section { margin-top: 2.6rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; margin-bottom: .8rem; }
.section-head h2 { margin-bottom: 0; }
.section-head p { font-size: .9rem; }
.table-scroll { max-width: 100%; overflow-x: auto; border-top: 2px solid var(--color-ink); border-bottom: 1px solid var(--color-rule); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; font-variant-numeric: tabular-nums; }
th, td { padding: .85rem .8rem; vertical-align: top; border-bottom: 1px solid var(--color-rule-soft); }
th { color: var(--color-muted); font-weight: 500; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td { min-width: 7.5rem; }
td:last-child { min-width: 10rem; }
.empty-cell { padding-block: 2rem; color: var(--color-muted); }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
td form { display: inline; }
.inline-form { display: flex; align-items: center; gap: .5rem; }
.inline-form select { min-width: 14rem; }
.amount-input { max-width: 8rem; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.auth-page { background: var(--color-paper-2); }
.auth-shell { width: min(100% - 3rem, 1000px); margin: 9vh auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 5rem; align-items: center; }
.auth-copy h1 { max-width: 13ch; font-size: clamp(2.5rem, 4.2vw, 4rem); }
.auth-copy p { max-width: 45ch; font-size: 1.15rem; }
.auth-form h2 { font-size: 1.6rem; }
.form-tail { margin-top: 1.5rem; font-size: .91rem; }
.guest-page { background: var(--color-paper); }
.offer-shell { width: min(100% - 3rem, 960px); margin: 11vh auto 5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 4rem; align-items: start; }
.offer-unit { margin-top: 1.5rem; font-size: 1.15rem; }
.offer-facts { margin: 2.2rem 0; border-top: 2px solid var(--color-ink); }
.offer-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--color-rule); }
.offer-facts dt { color: var(--color-muted); }
.offer-facts dd { margin: 0; font-weight: 600; text-align: right; }
.offer-price { font-variant-numeric: tabular-nums; }
.offer-summary > p:last-child { color: var(--color-muted); }
.error-message { margin-bottom: 1rem; padding: .7rem; border: 1px solid var(--color-error); background: var(--color-error-wash); color: var(--color-error); }
.thanks-shell { width: min(100% - 3rem, 640px); margin: 17vh auto 0; }
.thanks-shell p { font-size: 1.15rem; }
.prepared-page { padding-bottom: 4rem; }
.prepared-list { display: grid; gap: 1rem; }
.prepared-item { padding: 1.4rem 0; border-top: 1px solid var(--color-rule); }
.prepared-item h2 { margin-bottom: .5rem; }
.prepared-item form { margin-top: 1rem; }
.token-link { overflow-wrap: anywhere; }
.pairing-page { max-width: 760px; }
.pair-code { display: inline-block; max-width: 100%; margin: 2rem 0 .6rem; padding: 1rem 1.25rem; border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-sheet); font-size: 1.25rem; overflow-wrap: anywhere; }
.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; }
@media (max-width: 800px) { .page-grid, .auth-shell, .offer-shell, .form-columns { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .auth-shell, .offer-shell { margin-top: 3rem; } .section-head { display: block; } .section-head p { margin-top: .4rem; } }
@media (max-width: 560px) { .shell, .auth-shell, .offer-shell, .thanks-shell { width: min(100% - 2rem, 1180px); } .page-intro { padding-block: 2rem 1.5rem; } .header-row { gap: .4rem 1rem; } .header-row nav { margin-left: 0; } .header-row form { margin-left: auto; } .field-pair { grid-template-columns: minmax(0, 1fr); } .record-link { grid-template-columns: minmax(0, 1fr); } .record-action { grid-column: 1; grid-row: auto; } .auth-copy h1 { font-size: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { button:active { transform: none; } }
