/* Swiss Civic Reports workspace, in the three appearances shared across Alud
   (Editorial, Alpine, Alpine dark). Tokens and the appearance switch are a
   vendored snapshot of wanaguirre/alud packages/brand; see brand/SOURCE.md.

   Editorial follows Habitat's design-system.md: rules, alignment and
   whitespace, no cards or shadows, radius 0, every field outlined in ink,
   uppercase mono only for what the system asserts. Alpine restates shape,
   elevation and weight under :root[data-design="b"]; colour arrives through
   the re-pointed tokens. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* Headings receive focus only from the script, to move the reader; no ring in
   any appearance (this outranks Alpine's :focus-visible). */
:root :is(h1, h2, h3)[tabindex="-1"]:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; }
.frame { width: min(100% - 2 * var(--gutter), var(--frame)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; padding: 12px 16px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 12px; }
.eyebrow { margin: 0; color: var(--faint); font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; line-height: 1.5; text-transform: uppercase; }
.small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.terrain-backdrop { display: none; }

/* ---------- header --------------------------------------------------------- */

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--rule); }
.site-header__row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.025em; text-decoration: none; }
/* The project beside Alud leads to its page on alud.ch, for its description.
   The rule is drawn, so it stays short while the link keeps a full touch target. */
.product-name { display: inline-flex; align-items: center; min-height: 44px; padding-left: 20px; background: linear-gradient(var(--rule), var(--rule)) left center / 1px 28px no-repeat; color: var(--ink); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.product-name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.account { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Habitat's design switch: chrome, quiet until chosen; the active option is
   filled so it reads without colour. */
.design-switch { display: flex; align-items: center; gap: 8px; }
.design-switch__group { display: flex; border: 1px solid var(--rule); }
.design-switch__option { min-height: 28px; margin: 0; padding: 4px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--faint); cursor: pointer; font-family: var(--mono); font-size: 9.5px; font-weight: 400; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; }
.design-switch__option + .design-switch__option { border-left: 1px solid var(--rule); }
.design-switch__option:hover { color: var(--ink); }
.design-switch__option[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Demo and other standing context: a ruled band, routine, so uncoloured. The
   hollow circle is Habitat's mark for "not real / uncertain". */
.band { margin: 0; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 13px; line-height: 1.5; padding: 10px max(var(--gutter), calc((100% - var(--frame)) / 2)); }
.band::before { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border: 1px solid currentColor; border-radius: 50%; content: ""; vertical-align: 1px; }

/* ---------- page opening --------------------------------------------------- */

.page-head { padding: clamp(36px, 5vw, 64px) 0 28px; border-bottom: 1px solid var(--rule-firm); }
.page-head h1:first-child { margin-top: 0; }
.page-head h1 { margin: 14px 0 0; font-family: var(--display); font-size: clamp(34px, 4.4vw, 46px); font-weight: 200; letter-spacing: -0.035em; line-height: 1.06; }
.page-head__lede { max-width: 64ch; margin: 16px 0 0; color: var(--muted); font-size: 15px; font-weight: 300; line-height: 1.6; }

/* Sign-in: Habitat's access card, one outlined object on the page. */
.access-card { max-width: 480px; margin: 40px auto 72px; padding: 32px; border: 1px solid var(--rule); background: var(--surface); }
.access-card h2 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 300; letter-spacing: -0.028em; line-height: 1.2; }
.access-card p { margin: 12px 0 24px; color: var(--muted); font-size: 14px; }

/* ---------- workspace ------------------------------------------------------ */

/* One step at a time in a single reading column; what comes later stays out
   of view until the step before it is done. */
/* The page header spans the frame; the report steps below its rule are one
   centred column. Sent reports keep the frame's left edge. */
.workspace { display: grid; gap: 28px; max-width: 760px; margin-inline: auto; padding: 28px 0 72px; }

/* Order is information here, so the steps are numbered. The current step
   carries Habitat's 2px oxblood bar; completed steps show a check. */
.progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.progress li { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 14px; }
.progress li[aria-current] { border-bottom-color: var(--oxblood); color: var(--ink); }
.progress__number { color: var(--faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; }
.progress li[data-state="done"] { color: var(--ink); }
.progress li[data-state="done"] .progress__number { font-size: 0; }
.progress li[data-state="done"] .progress__number::after { content: "✓"; color: var(--ink); font-size: 12px; }
/* A step already passed is the way back to it (alud/packages/brand/LAYOUT.md):
   the whole cell is the button, set as the step's own label. */
.progress .progress__step { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; cursor: pointer; font: inherit; letter-spacing: inherit; }
.progress .progress__step:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.step { padding: 0; }
.step h2 { margin: 0 0 20px; font-family: var(--display); font-size: 26px; font-weight: 300; letter-spacing: -0.024em; line-height: 1.2; }
.step > p { max-width: 64ch; margin: 0 0 16px; font-size: 15px; }
.step__nav { justify-content: flex-end; align-items: center; margin-top: 28px; }
/* The primary action always sits at the end; the steps above are the way
   back. */
/* Discarding belongs to the step being worked on, below its own actions. */
.step__footer { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--rule); }

/* Within the check step each part is a ruled section: place, problem, contact. */
.part + .part, #report-parts > .part:first-child { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.part h3 { margin: 0 0 14px; color: var(--faint); font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; line-height: 1.5; text-transform: uppercase; }
.part > p:not(.notice) { max-width: 64ch; margin: 0 0 12px; }
.place__label { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.3; }
#place-municipality { margin: 4px 0 4px; }
#place-search { margin-top: 8px; }
#place-search > p { margin: 0 0 4px; font-size: 15px; }
#place-search .actions { margin-top: 12px; }
#change-place { margin-top: 4px; }
.missing { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.missing:empty { display: none; }

/* An unsupported place is an outcome, not an error: what happened, then the
   two useful next steps. */
.unsupported { padding: 18px 20px; border: 1px solid var(--rule); border-left: 3px solid var(--oxblood); background: var(--surface); }
.unsupported p { max-width: 62ch; margin: 0 0 10px; font-size: 14.5px; }
.unsupported__title { font-family: var(--display); font-size: 20px !important; font-weight: 400; letter-spacing: -0.015em; line-height: 1.3; }
.unsupported .actions { margin-top: 12px; }
.unsupported .small { margin: 10px 0 0; font-size: 12.5px; }

#receipt-link { display: flex; }
#receipt-detail { max-width: 64ch; margin: 0 0 4px; font-size: 15px; }

.ai-box { display: grid; gap: 10px; justify-items: start; }
.ai-box p { margin: 0; font-size: 14px; }
.ai-box .small { font-size: 12.5px; }
.ai-box label { margin: 0; width: 100%; }

/* Comparing languages changes only which frozen text is shown: a segmented
   control, the chosen side filled so it reads without colour. */
.preview-languages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 16px; border: 1px solid var(--rule); }
.preview-languages button { min-height: 44px; padding: 6px 10px; border: 0; border-radius: 0; box-shadow: none; font-size: 13.5px; line-height: 1.3; text-align: center; white-space: normal; }
.preview-languages button + button { border-left: 1px solid var(--rule); }
.preview-languages button[aria-pressed="true"], .preview-languages button[aria-pressed="true"]:hover { background: var(--ink); color: var(--paper); }

/* ---------- photos --------------------------------------------------------- */

.dropzone { display: grid; justify-items: center; gap: 6px; padding: 40px 20px 28px; border: 1px dashed var(--faint); background: var(--surface); text-align: center; transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.dropzone svg { color: var(--muted); }
.dropzone p { max-width: 46ch; margin: 0; color: var(--muted); font-size: 14px; }
.dropzone .actions { justify-content: center; margin: 14px 0 6px; }
.dropzone .small { font-size: 12px; }
.dropzone.drag { border-style: solid; border-color: var(--ink); background: var(--paper-sunk); }

.thumbnails { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }
.thumbnails:empty { display: none; }
.photo { display: grid; gap: 6px; width: 132px; }
.photo img { display: block; width: 132px; height: 108px; object-fit: cover; border-radius: var(--r); background: var(--paper-sunk); }
.photo .quiet { justify-self: start; min-height: 36px; font-size: 13px; }

/* ---------- fields --------------------------------------------------------- */

label { display: block; margin: 20px 0 8px; font-size: 15px; }
.part h3 + label, .part h3 + p + label { margin-top: 0; }
input, textarea, select { width: 100%; min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid var(--field-edge); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-field); color: var(--ink); font: 16px/1.5 var(--sans); }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; box-shadow: none; accent-color: var(--ink); flex: none; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-repeat: no-repeat; background-size: 5px 5px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
.inline { display: flex; gap: 10px; }
.inline input { min-width: 0; }
.inline button { flex: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; font-size: 15px; line-height: 1.45; }
.check input { margin-top: 1px; }
label > input:not([type="checkbox"]), label > select { margin-top: 8px; }

.locations { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.locations:empty { display: none; }
.locations button { width: 100%; min-height: 44px; justify-content: flex-start; border: 0; border-bottom: 1px solid var(--rule); background: transparent; box-shadow: none; text-align: left; font-size: 14px; }
.locations button:hover { background: var(--paper-sunk); }

/* A fold is a quiet muted toggle; only sections draw rules. */
.fold { margin: 16px 0; }
.fold > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); cursor: pointer; font-size: 14px; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; content: ""; transition: transform var(--dur-1) var(--ease); }
.fold[open] > summary::before { transform: rotate(90deg); }
.fold > summary:hover { color: var(--ink); }
.fold > :not(summary) { margin-top: 4px; }

/* ---------- actions -------------------------------------------------------- */

/* Sans, sentence case, never mono. Primary filled, peers outlined, quiet text. */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
:where(button:not(.design-switch__option), .button) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 8px 16px; text-align: center; border: 1px solid var(--ink); border-radius: var(--r-sm); background: transparent; box-shadow: var(--shadow-key); color: var(--ink); cursor: pointer; font: 400 14px/1.3 var(--sans); text-decoration: none; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
:where(button:not(.design-switch__option), .button):hover { background: var(--ink); color: var(--paper); }
.primary { border-color: var(--action); background: var(--action); box-shadow: var(--shadow-key-accent); color: var(--action-ink); }
.primary:hover { border-color: var(--action-hover); background: var(--action-hover); color: var(--action-ink); }
.quiet { padding: 0; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.quiet:hover { background: transparent; color: var(--ink); }
button:disabled, button:disabled:hover { background: transparent; border-color: var(--rule); box-shadow: none; color: var(--faint); cursor: default; }
.quiet:disabled, .quiet:disabled:hover { border-color: transparent; }
.quiet:focus-visible { outline-offset: 4px; }
.quiet--danger:hover { color: var(--oxblood); }
/* An outlined peer with its icon: discoverable, never mistaken for the primary. */
.chat-button { gap: 8px; }
.icon-button { flex: none; width: 44px; height: 44px; min-height: 44px; margin: -8px -4px -8px 0; padding: 0; border-color: transparent; border-radius: 50%; box-shadow: none; color: var(--muted); }
.icon-button:hover { background: var(--paper-sunk); color: var(--ink); }
.primary:disabled, .primary:disabled:hover { background: var(--paper-sunk); border-color: var(--paper-sunk); color: var(--faint); }
a.button:not([href]) { opacity: 0.55; }

/* ---------- review --------------------------------------------------------- */

.preview { margin-top: 28px; }
/* The exact text to approve: framed in ink, set in the reading face. */
.preview-text { margin: 12px 0 20px; padding: 20px 22px; border: 1px solid var(--rule-firm); border-radius: var(--r); background: var(--surface); font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.details { display: grid; grid-template-columns: minmax(150px, max-content) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--rule); font-size: 14px; }
.details dt, .details dd { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.details dt { padding-right: 24px; color: var(--faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; line-height: 1.9; text-transform: uppercase; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details__note { display: block; color: var(--muted); font-size: 12.5px; }
.details .details__empty { color: var(--faint); }
.duplicates { margin-top: 16px; }
.duplicates > p { margin: 0; }
.duplicates .text-link { min-height: 36px; }
.duplicates .fold { margin: 0; }
.duplicates .fold > p { max-width: 64ch; margin: 4px 0 0; }
#fallback { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
#fallback p { max-width: 64ch; margin: 0 0 14px; font-size: 14px; color: var(--muted); }

.notice { margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--rule); border-left: 3px solid var(--ink); background: var(--surface); font-size: 14px; }
/* A question from the draft needs an answer: the standing signal. */
.notice--attention { border-left-color: var(--oxblood); }

/* Under the page title: a quiet link to Sent reports, or the standing signal
   when a sent report still needs the resident. */
.page-head__sent { margin: 16px 0 0; }
.sent-entry { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-size: 14px; text-underline-offset: 4px; }
.sent-entry[data-tone="attention"] { justify-content: space-between; gap: 12px; width: 100%; max-width: 560px; padding: 10px 14px; border: 1px solid var(--rule); border-left: 3px solid var(--oxblood); background: var(--surface); color: var(--oxblood); font-weight: 500; text-decoration: none; }
.sent-entry[data-tone="attention"]:hover { text-decoration: underline; }
.sent-entry svg { flex: none; }

/* Sent reports: a view of their own, outside the report steps. Reports that
   need the resident come first as notices; the rest is one ruled row each.
   The status is the system's assertion, so it is set in mono; the hollow mark
   means open or uncertain, the filled mark answered. Every row explains itself. */
.history { padding-bottom: 72px; }
.history__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -12px 0 2px -2px; color: var(--muted); font-size: 14px; text-decoration: none; }
.history__back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.history .page-head h1 { margin-top: 6px; }
.history__state { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.history__state:empty { display: none; }
.history__group { margin-top: 32px; }
.history__heading { margin: 0 0 12px; color: var(--faint); font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; line-height: 1.5; text-transform: uppercase; }
.history__group--needs .history__heading { color: var(--oxblood); }
.history__empty { max-width: 760px; margin-top: 32px; }
.history__empty p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.receipts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.receipt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "summary more" "status more" "body body"; align-items: center; justify-items: start; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.receipt__summary { grid-area: summary; display: grid; gap: 2px; min-width: 0; }
.receipt__more { grid-area: more; display: flex; color: var(--faint); transition: color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.receipt__body { grid-area: body; position: relative; z-index: 1; display: grid; justify-items: start; gap: 6px; width: 100%; min-width: 0; margin-top: 2px; }
/* A row reads across the full width: what and where, the status, and the way
   into its details. The whole row opens them; its own actions stay on top. */
@media (min-width: 900px) {
  .receipt { grid-template-columns: minmax(0, 1fr) max-content 24px; grid-template-areas: "summary status more" "body body body"; column-gap: 24px; }
}
.receipts .receipt .receipt__open { min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; cursor: pointer; font: inherit; letter-spacing: inherit; text-align: left; }
.receipts .receipt .receipt__open::after { position: absolute; inset: 0; content: ""; }
.receipts .receipt .receipt__open:hover, .receipts .receipt .receipt__open:focus-visible { background: none; color: inherit; outline: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.receipt:hover .receipt__more { color: var(--ink); transform: translateX(2px); }
.receipt:has(.receipt__open:focus-visible) { outline: 2px solid var(--ink); outline-offset: 4px; }
.history__group--needs .receipts { display: grid; gap: 12px; border-top: 0; }
.history__group--needs .receipt { padding: 18px 20px; border: 1px solid var(--rule); border-left: 3px solid var(--oxblood); background: var(--surface); }
.receipt__title { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 400; letter-spacing: -0.012em; line-height: 1.35; }
.receipt__status { grid-area: status; margin: 0; color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; line-height: 1.9; text-transform: uppercase; }
.receipt__status::before { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border: 1px solid currentColor; border-radius: 50%; content: ""; vertical-align: 1px; }
.receipt__status[data-tone="attention"] { color: var(--oxblood); }
.receipt__status[data-tone="done"] { color: var(--ink); }
.receipt__status[data-tone="done"]::before { background: currentColor; }
.receipt__meta { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.receipt__detail { max-width: 64ch; margin: 0; font-size: 14px; line-height: 1.55; }
.receipt__confirm { margin-top: 8px; }
.receipt__reply, .receipt__text { margin: 6px 0 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--rule-firm); font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.receipt__text { margin-bottom: 8px; }
.receipt__quote-label { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.receipt__quote-label + :is(.receipt__reply, .receipt__text) { margin-top: 0; }
.receipt__actions .text-link { min-height: 36px; font-size: 13.5px; }
.receipt__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; width: 100%; }
/* What was sent and the number form fold away; each row stays a summary. */
.receipt__error { margin: 8px 0 0; color: var(--oxblood); font-size: 13px; }
.receipt__error:empty { display: none; }

/* Action feedback is prose, pinned where the reader is working. */
#status { position: sticky; bottom: 16px; z-index: 5; max-width: 640px; margin: 0 0 16px auto; padding: 12px 18px; border-radius: var(--r); background: var(--ink); box-shadow: var(--shadow-summit); color: var(--paper); font-size: 14px; }
#status:empty { display: none; }

/* ---------- help panel ----------------------------------------------------- */

/* Ask and report open in a side panel over the page, which keeps its place and
   draft. On phones the panel takes the whole screen. */
.workspace__help { display: grid; justify-items: start; margin-bottom: 4px; }
.assistant { position: fixed; inset: 0 0 0 auto; display: flex; flex-direction: column; width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--rule-firm); background: var(--paper); color: var(--ink); }
.assistant:not([open]) { display: none; }
.assistant::backdrop { background: color-mix(in srgb, var(--ink) 28%, transparent); }
.assistant__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.assistant__head h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; }
.assistant__modes { display: grid; grid-template-columns: 1fr 1fr; margin: 0 20px; border: 1px solid var(--rule); }
.assistant__modes button { min-height: 40px; padding: 0 10px; border: 0; border-radius: 0; box-shadow: none; font-size: 13.5px; }
.assistant__modes button + button { border-left: 1px solid var(--rule); }
.assistant__modes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.assistant__body { flex: 1; display: grid; align-content: start; gap: 14px; overflow-y: auto; padding: 18px 20px; }
.assistant__intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.assistant__reports h3 { margin: 0 0 8px; color: var(--faint); font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.assistant__reports ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.assistant__report { display: grid; justify-items: start; gap: 2px; width: 100%; min-height: 52px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; font-size: 14px; text-align: left; }
.assistant__report:hover { background: var(--paper-sunk); color: var(--ink); }
.assistant__report small { color: var(--muted); font-size: 12px; }
.assistant__messages { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.message { max-width: 90%; padding: 4px 0; border: 0; background: transparent; }
.message--user { justify-self: end; padding: 12px 16px; border-radius: 16px; background: var(--paper-sunk); }
.message p { margin: 0; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message__who { display: block; margin-bottom: 4px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.assistant__typing { margin: 0; color: var(--muted); font-size: 13px; }
.assistant__note { padding: 10px 14px; border: 1px solid var(--rule); border-left: 3px solid var(--ink); background: var(--surface); font-size: 14px; }
.assistant__note summary { cursor: pointer; }
.assistant__note p { margin: 8px 0 0; }
.assistant__body .notice { margin: 0; }
#assistant-status { margin: 0; }
#assistant-status:empty { display: none; }
.assistant__composer { padding: 12px 20px 18px; border-top: 1px solid var(--rule); background: var(--paper); }
.assistant__composer textarea { min-height: 60px; max-height: 180px; }
.assistant__composer .actions { justify-content: flex-end; margin-top: 10px; }

/* ---------- footer --------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--rule); }
/* The footer holds only Ask Alud, which needs an account. */
.site-footer:has(#open-ask[hidden]) { display: none; }
.site-footer__row { align-items: center; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 20px 0; color: var(--muted); font-size: 12.5px; }
/* A single action keeps to the frame's right edge; on a phone it centres (Alud LAYOUT.md, Footer). */
.site-footer__row > :only-child { margin-inline-start: auto; }

/* ========== Alpine ========================================================== */

:root[data-design="b"] body { font-size: 15px; }
:root[data-design="b"] :focus-visible { outline: 2px solid var(--b-accent); outline-offset: -2px; }
:root[data-design="b"] .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--b-accent); font-size: 11px; letter-spacing: 0.12em; }
:root[data-design="b"] .eyebrow::before { width: 14px; height: 1px; background: currentColor; content: ""; }
:root[data-design="b"] .terrain-backdrop { position: fixed; z-index: -1; inset: 0; display: block; width: 100%; height: 100%; color: var(--b-accent); opacity: 0.09; pointer-events: none; }

:root[data-design="b"] .site-header { background: color-mix(in srgb, var(--b-bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
:root[data-design="b"] .product-name { background-image: linear-gradient(var(--b-line), var(--b-line)); }
:root[data-design="b"] .design-switch__group { gap: 2px; padding: 2px; border: 1px solid var(--b-line); border-radius: var(--r-full); background: var(--b-sunk); }
:root[data-design="b"] .design-switch__option { min-height: 26px; padding: 3px 12px; border-radius: var(--r-full); color: var(--b-ink-3); font-family: var(--b-sans); font-size: 11.5px; font-weight: 500; letter-spacing: normal; text-transform: none; }
:root[data-design="b"] .design-switch__option + .design-switch__option { border-left: 0; }
:root[data-design="b"] .design-switch__option:hover { color: var(--b-ink); }
:root[data-design="b"] .design-switch__option[aria-pressed="true"] { background: var(--b-surface); box-shadow: var(--b-shadow-valley); color: var(--b-ink); font-weight: 600; }

:root[data-design="b"] .band { border-bottom-color: var(--b-line); background: var(--b-accent-wash); color: var(--b-ink-2); }
:root[data-design="b"] .page-head { border-bottom-color: var(--b-line); }
:root[data-design="b"] .page-head h1 { margin-top: 16px; }
:root[data-design="b"] .page-head h1:first-child { margin-top: 0; }
:root[data-design="b"] .page-head__lede { font-size: 16px; font-weight: 400; }

/* Surface recipe for the objects on the page: the sign-in card, the AI
   connection and each step. */
:root[data-design="b"] :is(.access-card, .step) { border: 0; border-radius: var(--r-lg); background: var(--b-surface); box-shadow: var(--b-shadow-valley); }
:root[data-design="b"] .access-card { padding: 32px; box-shadow: var(--b-shadow-summit); }
:root[data-design="b"] .workspace { gap: 22px; }
:root[data-design="b"] .step { padding: 26px 28px 28px; }
:root[data-design="b"] .part h3 { display: flex; align-items: center; gap: 10px; color: var(--b-accent); font-family: var(--b-mono); font-size: 11px; letter-spacing: 0.12em; }
:root[data-design="b"] .part + .part, :root[data-design="b"] #report-parts > .part:first-child { border-top-color: var(--b-line-soft); }
:root[data-design="b"] .unsupported { border: 1px solid var(--b-line); border-left: 3px solid var(--b-urgent); border-radius: var(--r); background: var(--b-sunk); }

/* The current step is the only filled item, legible without colour. */
:root[data-design="b"] .progress { gap: 6px; padding: 4px; border: 0; border-radius: var(--r-full); background: var(--b-sunk); }
:root[data-design="b"] .progress li { justify-content: center; min-height: 38px; margin: 0; padding: 0 12px; border: 0; border-radius: var(--r-full); color: var(--b-ink-2); font-weight: 500; }
:root[data-design="b"] .progress__number { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--b-line-strong); border-radius: var(--r-full); font-family: var(--b-mono); font-size: 10px; letter-spacing: 0; }
:root[data-design="b"] .progress li[data-state="done"] { color: var(--b-accent-strong); }
:root[data-design="b"] .progress li[data-state="done"] .progress__number { border-color: var(--b-accent-edge); }
:root[data-design="b"] .progress li[data-state="done"] .progress__number::after { color: inherit; }
:root[data-design="b"] .progress .progress__step { min-height: 38px; }
:root[data-design="b"] .progress li[aria-current] { background: var(--b-surface); box-shadow: var(--b-shadow-valley); color: var(--b-ink); font-weight: 600; }
:root[data-design="b"] .progress li[aria-current] .progress__number { border-color: var(--b-accent); background: var(--b-accent); color: var(--b-accent-ink); }

:root[data-design="b"] .dropzone { border: 1.5px dashed var(--b-field-edge); border-radius: var(--r-lg); background: var(--b-sunk); }
:root[data-design="b"] .dropzone svg { color: var(--b-accent); }
:root[data-design="b"] .dropzone.drag { border-color: var(--b-accent); background: var(--b-accent-wash); }

:root[data-design="b"] label, :root[data-design="b"] .check { font-size: 14px; font-weight: 500; }
:root[data-design="b"] input:focus-visible, :root[data-design="b"] textarea:focus-visible, :root[data-design="b"] select:focus-visible { border-color: var(--b-accent); outline: 2px solid var(--b-accent); outline-offset: -2px; box-shadow: var(--b-shadow-field); }
:root[data-design="b"] input[type="checkbox"] { accent-color: var(--b-accent); }
:root[data-design="b"] .locations { border-top: 0; }
:root[data-design="b"] .locations button { margin-top: 4px; border-radius: var(--r); }

:root[data-design="b"] :where(button:not(.design-switch__option), .button) { border: 0; background: var(--b-surface); font-weight: 550; }
:root[data-design="b"] :where(button:not(.design-switch__option), .button):hover { background: var(--b-sunk); color: var(--b-ink); }
:root[data-design="b"] .primary { background: var(--b-accent); font-weight: 600; }
:root[data-design="b"] .primary:hover { background: var(--b-accent-strong); color: var(--b-accent-ink); }
:root[data-design="b"] .quiet, :root[data-design="b"] .quiet:hover, :root[data-design="b"] .quiet:disabled, :root[data-design="b"] .quiet:disabled:hover { background: transparent; box-shadow: none; font-weight: 550; text-decoration: none; }
/* Text actions take the accent so they read as actions, not as prose. */
:root[data-design="b"] .quiet { color: var(--b-accent-strong); }
:root[data-design="b"] .quiet:hover { color: var(--b-accent-strong); text-decoration: underline; text-underline-offset: 4px; }
:root[data-design="b"] .quiet--danger { color: var(--b-ink-2); }
:root[data-design="b"] .text-link { color: var(--b-accent-strong); font-weight: 500; }
:root[data-design="b"] .quiet--danger:hover { color: var(--b-urgent); }
:root[data-design="b"] .icon-button { background: var(--b-sunk); box-shadow: none; color: var(--b-ink-2); }
:root[data-design="b"] .icon-button:hover { background: var(--b-sunk-2); color: var(--b-ink); }
:root[data-design="b"] .step__footer { border-top-color: var(--b-line-soft); }
:root[data-design="b"] .preview-languages { gap: 2px; padding: 3px; border: 0; border-radius: var(--r-full); background: var(--b-sunk); }
:root[data-design="b"] .preview-languages button { min-height: 38px; border-radius: var(--r-full); background: transparent; color: var(--b-ink-2); font-weight: 500; }
:root[data-design="b"] .preview-languages button + button { border-left: 0; }
:root[data-design="b"] .preview-languages button[aria-pressed="true"], :root[data-design="b"] .preview-languages button[aria-pressed="true"]:hover { background: var(--b-surface); box-shadow: var(--b-shadow-valley); color: var(--b-ink); font-weight: 600; }
:root[data-design="b"] button:disabled, :root[data-design="b"] button:disabled:hover { background: var(--b-sunk); box-shadow: none; color: var(--b-ink-3); }

:root[data-design="b"] .preview-text { border: 1px solid var(--b-accent-edge); background: var(--b-accent-wash); }
:root[data-design="b"] .details { overflow: hidden; border: 1px solid var(--b-line); border-radius: var(--r); }
:root[data-design="b"] .details dt, :root[data-design="b"] .details dd { padding: 10px 14px; border-bottom-color: var(--b-line-soft); }
:root[data-design="b"] .details dt { background: var(--b-sunk); color: var(--b-ink-3); font-size: 11px; }
:root[data-design="b"] .notice { border: 1px solid var(--b-line); border-left: 3px solid var(--b-accent); border-radius: var(--r); }
:root[data-design="b"] .notice--attention { border-left-color: var(--b-urgent); }
:root[data-design="b"] .site-footer { border-top-color: var(--b-line); background: var(--b-bg); }
:root[data-design="b"] .sent-entry { color: var(--b-accent-strong); font-weight: 550; text-decoration: none; }
:root[data-design="b"] .sent-entry:hover { text-decoration: underline; }
:root[data-design="b"] .sent-entry[data-tone="attention"] { border: 1px solid color-mix(in srgb, var(--b-urgent) 30%, transparent); border-radius: var(--r); background: color-mix(in srgb, var(--b-urgent) 7%, var(--b-surface)); color: var(--b-urgent); }
:root[data-design="b"] .history__back { color: var(--b-accent-strong); font-weight: 550; }
:root[data-design="b"] .history__heading { color: var(--b-accent); font-family: var(--b-mono); font-size: 11px; letter-spacing: 0.12em; }
:root[data-design="b"] .history__group--needs .history__heading { color: var(--b-urgent); }
:root[data-design="b"] .receipts { border-top: 0; }
:root[data-design="b"] .history__group:not(.history__group--needs) .receipts { padding: 0 24px; border-radius: var(--r-lg); background: var(--b-surface); box-shadow: var(--b-shadow-valley); }
:root[data-design="b"] .receipt { border-bottom-color: var(--b-line-soft); }
:root[data-design="b"] .receipts > .receipt:last-child { border-bottom: 0; }
:root[data-design="b"] .history__group--needs .receipt { padding-inline: 24px; border: 1px solid color-mix(in srgb, var(--b-urgent) 28%, transparent); border-radius: var(--r-lg); background: color-mix(in srgb, var(--b-urgent) 6%, var(--b-surface)); box-shadow: var(--b-shadow-valley); }
:root[data-design="b"] .receipt__status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: var(--r-full); background: var(--b-sunk); color: var(--b-ink-2); font-family: var(--b-sans); font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.3; text-transform: none; }
:root[data-design="b"] .receipt__status::before { display: none; }
:root[data-design="b"] .receipt__status[data-tone="attention"] { background: color-mix(in srgb, var(--b-urgent) 12%, var(--b-surface)); color: var(--b-urgent); }
:root[data-design="b"] .receipt__status[data-tone="done"] { background: var(--b-accent-wash); color: var(--b-accent-strong); }
:root[data-design="b"] :is(.receipt__reply, .receipt__text) { border-left-color: var(--b-accent-edge); }
:root[data-design="b"] .receipt:hover .receipt__more { color: var(--b-accent-strong); }
:root[data-design="b"] .receipt:has(.receipt__open:focus-visible) { outline-color: var(--b-accent); }
:root[data-design="b"] .report-details__link { border-top-color: var(--b-line-soft); }

:root[data-design="b"] .assistant { border-left: 0; background: var(--b-bg); box-shadow: var(--b-shadow-summit); }
:root[data-design="b"] .assistant__modes { gap: 2px; padding: 3px; border: 0; border-radius: var(--r-full); background: var(--b-sunk); }
:root[data-design="b"] .assistant__modes button { min-height: 36px; border-radius: var(--r-full); background: transparent; color: var(--b-ink-2); font-weight: 500; }
:root[data-design="b"] .assistant__modes button + button { border-left: 0; }
:root[data-design="b"] .assistant__modes button[aria-pressed="true"] { background: var(--b-surface); box-shadow: var(--b-shadow-valley); color: var(--b-ink); font-weight: 600; }
:root[data-design="b"] .assistant__reports h3 { color: var(--b-accent); font-family: var(--b-mono); }
:root[data-design="b"] .assistant__reports ul { border-top-color: var(--b-line-soft); }
:root[data-design="b"] .assistant__report { border-bottom-color: var(--b-line-soft); font-weight: 500; }
:root[data-design="b"] .assistant__report:hover { background: var(--b-sunk); }
:root[data-design="b"] .message { border: 0; background: transparent; box-shadow: none; }
:root[data-design="b"] .message--user { background: var(--b-sunk); }
:root[data-design="b"] .message__who { font-family: var(--b-mono); }
:root[data-design="b"] .assistant__note { border: 1px solid var(--b-line); border-left: 3px solid var(--b-accent); border-radius: var(--r); background: var(--b-surface); }
:root[data-design="b"] .assistant__composer { border-top-color: var(--b-line); background: var(--b-bg); }

@media (prefers-reduced-motion: no-preference) {
  :root[data-design="b"] .page-head > *, :root[data-design="b"] .access-card, :root[data-design="b"] .workspace { animation: rise var(--dur-3) var(--ease) both; }
  :root[data-design="b"] .page-head > :nth-child(2) { animation-delay: 60ms; }
  :root[data-design="b"] .page-head > :nth-child(3) { animation-delay: 120ms; }
  :root[data-design="b"] .access-card, :root[data-design="b"] .workspace { animation-delay: 180ms; }
  /* A workspace appears at its final position, including its live controls. */
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
}

/* ========== narrow screens ================================================== */

@media (max-width: 760px) {
  /* Compact account controls keep the mobile header to one row. */
  .site-header__row { flex-wrap: wrap; gap: 0 14px; min-height: 0; }
  .site-header__row > .brand, .site-header__row > .account { min-height: 62px; }
  .brand { font-size: 20px; }
  .product-name { padding-left: 14px; }
  .account { gap: 8px; }
  .access-card { padding: 24px 20px; margin: 28px auto 48px; }
  .site-footer__row > :only-child { margin-inline: auto; }
  .workspace { gap: 20px; padding-top: 20px; }
  .step h2 { font-size: 23px; }
  .progress li { gap: 8px; font-size: 13px; }
  :root[data-design="b"] .step { padding: 20px 18px 24px; }
  :root[data-design="b"] .progress li { padding: 0 6px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .inline { flex-wrap: wrap; }
  .inline button { width: 100%; }
  .dropzone { padding: 28px 16px 22px; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .details dt { padding-bottom: 0; border-bottom: 0; }
  #status { margin-left: 0; }
  .step__nav .primary { flex: 1 1 auto; }
  .unsupported .actions > * { flex: 1 1 100%; }
  /* The result's actions stack, the one to take first on top. */
  .done__actions { flex-direction: column-reverse; align-items: stretch; }
  .done__actions > * { flex: none; }
  .step__nav.done__actions > .quiet:first-child { margin-right: 0; }
  .receipt__confirm { justify-self: stretch; }
  .history__group--needs .receipt { padding: 16px; }
  :root[data-design="b"] .history__group:not(.history__group--needs) .receipts { padding: 0 18px; }
}

/* On the smallest phones the project name breaks over two lines rather than
   pushing Account onto a row of its own. */
@media (max-width: 380px) {
  .site-header__row { flex-wrap: nowrap; }
  .product-name { min-width: 0; line-height: 1.3; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Account details appear only when requested, outside the reporting steps. */
.account-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: 0 24px 24px; border: 1px solid var(--rule-firm); background: var(--paper); color: var(--ink); }
.account-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.account-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; padding: 22px 0 12px; background: inherit; }
.facts { display: grid; gap: 10px; margin: 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.55; }
.facts li::marker { color: var(--faint); }
.account-dialog__head h2 { margin: 0; font: 300 26px/1.2 var(--display); letter-spacing: -0.025em; }
.account-dialog p { font-size: 14px; }
/* One report in full, in the account dialog made a little wider for quotes. */
.report-dialog { width: min(640px, calc(100vw - 32px)); }
.report-details { display: grid; justify-items: start; gap: 8px; padding-bottom: 4px; }
.report-details__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.report-details .receipt__detail { max-width: none; font-size: 15px; }
.report-details .receipt__status { font-size: 10.5px; }
.report-details :is(.receipt__meta, .receipt__error) { font-size: 13px; }
.report-details .receipt__quote-label { font-size: 12.5px; }
.report-details .receipt__confirm { margin-top: 4px; }
.report-details .report-details__original { min-height: 36px; font-size: 13.5px; }
.report-details .report-details__note { margin: 2px 0 0; font-size: 13px; }
.report-details__link { width: 100%; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.report-details__heading { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.report-details__link .small { max-width: 64ch; margin: 0 0 10px; }
.report-details__link form { max-width: 520px; }
.site-footer #open-ask { font-size: 12.5px; }
:root[data-design="b"] .account-dialog { border-color: var(--b-line); border-radius: var(--r-lg); background: var(--b-surface); color: var(--b-ink); box-shadow: var(--b-shadow); }
/* On phones a dialog rises from the bottom edge and grows only upward. */
@media (max-width: 760px) {
  .account-dialog { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; padding: 0 20px max(24px, env(safe-area-inset-bottom)); border-width: 1px 0 0; }
  :root[data-design="b"] .account-dialog { border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* Questions and failures return to the report's same private conversation. */
button.draft-prompt { display: block; width: 100%; height: auto; padding: 16px 20px; text-align: left; white-space: normal; font-size: 15px; line-height: 1.6; color: var(--ink); }
button.draft-prompt[hidden] { display: none; }
.draft-prompt__hint { display: block; margin-top: 6px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.message--error { padding-left: 12px; border-left: 3px solid var(--ink); }
/* Both chat panels take the visual viewport's top and height from script; only
   their body scrolls, and the page behind any modal dialog stays still. */
.assistant { bottom: auto; }
.assistant__head, .assistant__modes, .assistant__composer { flex-shrink: 0; }
.assistant__body { min-height: 0; }
html:has(dialog:modal) { overflow: hidden; }

#draft-chat .assistant__head .quiet { flex-shrink: 0; max-width: 55%; }

/* The send control occupies the field's reserved edge, not a separate row. */
.composer__field { position: relative; }
.composer__field textarea { display: block; padding: 16px 64px 16px 12px; resize: none; }
.assistant__composer .composer__send { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; box-shadow: none; }
.composer__send svg { pointer-events: none; }
#draft-chat-retry { margin-top: 8px; }

/* A soft composer surface: no box, ring or line around it, also while typing;
   the caret marks focus. */
:root .assistant__composer .composer__field { background: var(--paper-sunk); border-radius: 16px; }
:root .assistant__composer .composer__field textarea,
:root .assistant__composer .composer__field textarea:focus-visible {
  border: 0; border-radius: 16px; background: transparent; outline: 0 none; box-shadow: none;
}
:root[data-design="b"] .assistant__composer .composer__field { background: var(--b-surface); }
.draft-chat-status { margin: 0 0 10px; line-height: 1.45; }
.part > button.draft-prompt { margin: 0 0 20px; }

/* These facts come from municipal rules, independently of the AI transcript. */
.draft-chat-rules { flex-shrink: 0; padding: 8px 20px 12px; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.45; max-height: 25vh; overflow-y: auto; }
.draft-chat-rules p { margin: 0; }
.draft-chat-rules p + p { margin-top: 3px; color: var(--muted); }

/* Preparations share the step surface and keep the same reading column. */
.preparation-jobs > h2 { margin-bottom: 12px; }
.jobs-list { list-style: none; margin: 0; padding: 0; }
.job-row { display: grid; gap: 8px; border-top: 1px solid var(--rule); padding: 16px 0; overflow-wrap: anywhere; }
.job-row h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.45; }
.job-row p { margin: 0; }
.job__state { color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; }
.job__actions { flex-wrap: wrap; gap: 10px; margin-top: 12px; }
