/* Propertyness — calm, professional, accessible. Mobile first. */
/* Barlow and Rubik (SIL Open Font License), self-hosted latin subsets, as used on the website. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/barlow-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/barlow-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/static/fonts/rubik.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* Brand tokens match the Propertyness website theme (primary #005254, Barlow + Rubik). */
  --teal-900: #003B3D; --teal-800: #00474A; --teal: #005254; --teal-600: #0B6A6C; --teal-200: #B3CFCF; --teal-100: #E6EEEE; --teal-50: #F2F7F7;
  --warm: #F4F7F7; --surface: #FFFFFF; --sand: #E6EEEE; --line: #DCE4E4; --line-strong: #C3CFCF;
  --ink: #0F1A1B; --ink-2: #0F1A1B; --muted: #003B3D; /* no grey text: secondary text uses the dark brand green */
  --focus: #0B6A6C;
  --ok: #1D6B44; --ok-bg: #E4F3EA; --warn: #8A4B0F; --warn-bg: #FBEEE3; --bad: #A3271A; --bad-bg: #FCEBE8; --info: #005254; --info-bg: #E6EEEE;
  --radius: 12px; --radius-sm: 6px; --shadow: 0 4px 14px rgba(15, 26, 27, .06);
  --font: 'Rubik', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: 'Barlow', 'Rubik', system-ui, -apple-system, "Segoe UI", sans-serif;
  --tap: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16.5px/1.6 var(--font); color: var(--ink); background: var(--warm); }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: 0; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.45rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
::placeholder { color: var(--teal-600); opacity: 1; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header ---------- */
.demo-bar { background: var(--sand); color: var(--ink-2); font-size: .82rem; padding: 6px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.bar { display: flex; align-items: center; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 8px 16px; min-height: 64px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; color: var(--teal); text-decoration: none; }
.logo { height: 36px; width: auto; display: block; flex: none; }
.app-header .logo { height: 30px; }
@media (min-width: 560px) { .app-header .logo { height: 34px; } }
.site-footer .logo { height: 40px; }
.public-nav { display: none; gap: 4px; margin-left: 12px; }
.public-nav a, .top-tabs a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.public-nav a:hover, .top-tabs a:hover { background: var(--teal-50); }
.public-nav a[aria-current], .top-tabs a[aria-current] { color: var(--teal); background: var(--teal-100); }
.top-tabs { display: none; gap: 2px; margin-left: 8px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 12px; color: var(--ink-2); }
.icon-btn:hover { background: var(--teal-50); }
.icon-btn .dot { position: absolute; top: 6px; right: 4px; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 10px; padding: 1px 6px; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: .9rem; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.user-menu, .ws-switch { position: relative; }
.user-menu summary { min-height: var(--tap); display: grid; place-items: center; border-radius: 50%; }
.menu, .ws-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 260px; padding: 8px; z-index: 40; }
.ws-menu { left: 0; right: auto; }
.menu a, .menu .linkish { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); width: 100%; text-align: left; }
.menu a:hover, .menu .linkish:hover { background: var(--teal-50); }
.menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.menu-head span { color: var(--muted); font-size: .85rem; word-break: break-all; }
.ws-current, .ws-switch summary { display: grid; line-height: 1.2; padding: 6px 10px; border-radius: 10px; min-height: 44px; align-content: center; max-width: 46vw; }
.ws-switch summary { border: 1px solid var(--line); background: var(--warm); padding-right: 28px; position: relative; }
.ws-switch summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.ws-name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-role { font-size: .78rem; color: var(--muted); }
.ws-label { font-size: .8rem; color: var(--muted); margin: 4px 8px 6px; }
.ws-item { display: grid; text-align: left; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ws-item span { font-size: .82rem; color: var(--muted); }
.ws-item:hover { background: var(--teal-50); }
.ws-item.is-current { background: var(--teal-100); }

/* ---------- layout ---------- */
.shell { max-width: 1240px; margin: 0 auto; }
.main { padding: 20px 16px 40px; outline: none; min-width: 0; }
.portal-tabs .main { padding-bottom: 110px; }
.side-nav { display: none; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 10px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; min-height: 60px; text-align: center; line-height: 1.15; }
.bottom-nav a[aria-current] { color: var(--teal); }
.bottom-nav a[aria-current] .icon { stroke-width: 2.4; }
.portal-side .shell { display: block; }
.portal-side .side-nav { display: block; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--surface); }
.portal-side .side-nav ul { display: flex; list-style: none; margin: 0; padding: 6px 10px; gap: 4px; }
.portal-side .side-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); white-space: nowrap; font-weight: 500; min-height: 44px; }
.portal-side .side-nav a[aria-current] { background: var(--teal-100); color: var(--teal); }
.side-secondary { display: none !important; }
.hide-xs { display: none; }

@media (min-width: 560px) { .hide-xs { display: inline; } }
@media (max-width: 720px) { .hide-sm { display: none !important; } }
@media (min-width: 721px) { .show-sm { display: none !important; } }
@media (min-width: 900px) {
  .public-nav { display: flex; }
  .portal-tabs .top-tabs { display: flex; }
  .portal-tabs .bottom-nav { display: none; }
  .portal-tabs .main { padding-bottom: 48px; }
  .main { padding: 28px 24px 48px; }
}
@media (min-width: 1024px) {
  .portal-side .shell.with-side { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0; }
  .portal-side .side-nav { border: 0; border-right: 1px solid var(--line); background: transparent; position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; padding: 16px 10px; }
  .portal-side .side-nav ul { display: grid; padding: 0; }
  .side-secondary { display: grid !important; margin-top: 16px !important; padding-top: 12px !important; border-top: 1px solid var(--line) !important; }
  .main.wide, .portal-side .main { padding: 28px 32px 56px; }
}

/* ---------- page furniture ---------- */
.page-head { margin-bottom: 20px; }
.page-head-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.page-head h1 { margin-bottom: 4px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; margin: 0; }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 600; color: var(--teal-600); margin: 0 0 6px; }
.back { display: inline-block; margin-bottom: 8px; text-decoration: none; font-weight: 500; padding: 6px 0; }
.section { margin: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: 20px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .split.even { grid-template-columns: 1fr 1fr; } .sticky { position: sticky; top: 84px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.card-plain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h2, .card h3 { margin-bottom: .4em; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.card-link:hover { border-color: var(--teal-200); color: inherit; }
.card-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.card-teal h2, .card-teal h3, .card-teal a { color: #fff; }
.card-teal .muted { color: #CFE5E3; }
.card-sand { background: var(--sand); border-color: var(--line); box-shadow: none; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 18px; border-radius: 12px; font: 600 1.02rem/1.2 var(--font-heading); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 2px solid transparent; background: var(--teal); color: #fff; text-align: center; }
.btn:hover { background: var(--teal-900); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-50); color: var(--teal-900); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal-50); color: var(--teal-900); }
.btn-danger { background: var(--bad); }
.btn-danger:hover { background: #7f1d13; }
.btn-warn { background: var(--surface); color: var(--bad); border-color: var(--bad); }
.btn-warn:hover { background: var(--bad-bg); color: var(--bad); }
.btn-small { min-height: 40px; padding: 6px 12px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.linkish { background: none; border: 0; font: inherit; color: var(--teal); cursor: pointer; padding: 0; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.inline-form { display: inline; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; white-space: nowrap; line-height: 1.4; border: 1px solid transparent; }
.tone-ok { background: var(--ok-bg); color: var(--ok); }
.tone-warn { background: var(--warn-bg); color: var(--warn); }
.tone-bad { background: var(--bad-bg); color: var(--bad); }
.tone-info { background: var(--info-bg); color: var(--info); }
.tone-muted { background: var(--teal-100); color: var(--ink-2); }
.badge-outline { background: transparent; border-color: currentColor; }
.badge.sample { font-weight: 600; font-size: .72rem; }
.verified { display: inline-flex; gap: 6px; align-items: center; color: var(--ok); font-weight: 600; font-size: .9rem; }

/* ---------- forms ---------- */
.form { max-width: 680px; }
.field { margin-bottom: 18px; }
.field label, .choices legend { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); font-size: .88rem; }
.hint { color: var(--muted); font-size: .9rem; margin: -2px 0 8px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], input[type=file], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(15, 76, 79, .2); outline-offset: 0; }
textarea { min-height: 90px; resize: vertical; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.error-text { color: var(--bad); font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
.error-summary { border: 3px solid var(--bad); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; background: var(--surface); }
.error-summary h2 { font-size: 1.1rem; color: var(--bad); }
.error-summary ul { margin: 0; padding-left: 20px; }
.choices { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choice-list { display: grid; gap: 8px; }
.choices.cols-2 .choice-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; min-height: var(--tap); }
.choice:hover { border-color: var(--teal-200); }
.choice input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }
.choice span { display: grid; }
.choice small { color: var(--muted); font-size: .88rem; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal); }
.field-row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 40px; }
.check input { width: 22px; height: 22px; accent-color: var(--teal); flex: none; margin-top: 2px; }

/* ---------- flash & states ---------- */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-info { background: var(--info-bg); color: var(--info); }
.empty { text-align: center; padding: 28px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty-title { font-weight: 650; margin-bottom: 4px; }
.calm { padding: 14px 16px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); }
.calm p { margin: 0; display: flex; gap: 8px; align-items: center; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--info-bg); color: var(--info); margin-bottom: 16px; }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-bad { background: var(--bad-bg); color: var(--bad); }
.notice p:last-child { margin-bottom: 0; }
.sync-status { position: fixed; left: 50%; transform: translateX(-50%); bottom: 76px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 50; font-size: .92rem; box-shadow: var(--shadow); }
@media (min-width: 900px) { .sync-status { bottom: 24px; } }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--line); }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.job-row a { display: grid; gap: 6px 16px; grid-template-columns: 1fr auto; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.job-row a:hover { border-color: var(--teal-200); }
.job-row-main { display: grid; grid-column: 1 / -1; }
.job-row-when { display: grid; font-size: .95rem; }
.job-row-status { align-self: center; justify-self: end; }
@media (min-width: 760px) { .job-row a { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; align-items: center; } .job-row-main { grid-column: auto; } }
.attention { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.attention a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--warn); }
.attention .tone-bad a { border-left-color: var(--bad); }
.attention .tone-info a { border-left-color: var(--teal); }
.attention .tone-ok a { border-left-color: var(--ok); }
.attention li { background: none; }
.att-title { font-weight: 650; }
.att-text { grid-column: 1; color: var(--muted); font-size: .92rem; }
.att-cta { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--teal); font-weight: 600; white-space: nowrap; }
.kv { display: grid; gap: 10px; margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.parties { display: grid; gap: 10px; margin: 0; }
.parties > div { display: grid; gap: 2px; }
.parties dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.parties dd { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.crosses li::before { border: 0; width: 12px; height: 2.5px; background: var(--muted); transform: none; top: .7em; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--warm); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.price-table { width: 100%; font-variant-numeric: tabular-nums; }
.price-table th { text-align: left; font-weight: 400; padding: 6px 0; color: var(--ink-2); }
.price-table td { text-align: right; padding: 6px 0 6px 12px; white-space: nowrap; }
.price-table tfoot th, .price-table tfoot td { border-top: 2px solid var(--ink); font-weight: 700; padding-top: 10px; font-size: 1.1rem; color: var(--ink); }

/* ---------- stepper ---------- */
.stepper { list-style: none; padding: 0; margin: 0 0 12px; display: flex; overflow-x: auto; gap: 0; }
.stepper li { flex: 1 0 auto; min-width: 84px; display: grid; justify-items: center; gap: 6px; text-align: center; position: relative; font-size: .8rem; color: var(--muted); padding: 0 4px 4px; }
.stepper li::before { content: ""; position: absolute; top: 8px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.step-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); z-index: 1; }
.stepper li.done .step-dot { background: var(--teal); border-color: var(--teal); }
.stepper li.done::before, .stepper li.current::before, .stepper li.alt::before { background: var(--teal); }
.stepper li.current .step-dot { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }
.stepper li.current, .stepper li.done { color: var(--ink); }
.stepper li.current .step-label { font-weight: 700; }
.stepper li.alt .step-dot { border-color: var(--warn); background: var(--warn-bg); }
.alt-state { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }

/* ---------- public site ---------- */
.public .main { max-width: 1240px; margin: 0 auto; }
.hero { display: grid; gap: 28px; padding: 18px 0 8px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.08; margin-bottom: 14px; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.22rem); margin-bottom: 22px; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr .85fr; padding: 40px 0 24px; } }
.search-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.search-row { display: grid; gap: 10px; }
@media (min-width: 560px) { .search-row { grid-template-columns: 1fr auto; } }
.segment-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.hero-art { border-radius: 20px; background: var(--teal); color: #fff; padding: 24px; display: grid; gap: 14px; min-height: 260px; position: relative; overflow: hidden; }
.hero-art::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hero-art .stat { display: flex; gap: 12px; align-items: flex-start; position: relative; z-index: 1; }
.hero-art .stat .icon { width: 26px; height: 26px; color: #B3CFCF; margin-top: 2px; }
.hero-art p { margin: 0; color: #E6F2F0; }
.hero-art strong { color: #fff; display: block; }
.cat-card { display: grid; gap: 6px; }
.cat-card .cat-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-100); color: var(--teal-900); }
.cat-card .cat-icon .icon { width: 32px; height: 32px; stroke-width: 2; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.entry-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .entry-grid { grid-template-columns: 1fr 1fr; } }
.entry { padding: 24px; border-radius: 18px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 36px -16px; padding: 28px 16px; }
@media (min-width: 900px) { .band { margin: 40px -24px; padding: 36px 24px; } }
.compare { display: grid; gap: 16px; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; } }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.portal-tabs .site-footer { margin-bottom: 64px; }
@media (min-width: 900px) { .portal-tabs .site-footer { margin-bottom: 0; } }
.footer-grid { max-width: 1240px; margin: 0 auto; padding: 28px 16px 8px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-grid a:not(.brand) { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.footer-note { max-width: 1240px; margin: 0 auto; padding: 8px 16px 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { padding: 12px 0; font-weight: 600; min-height: var(--tap); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }

/* ---------- booking ---------- */
.wizard-steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 6px; flex-wrap: wrap; font-size: .85rem; }
.wizard-steps li { padding: 6px 12px; border-radius: 999px; background: var(--teal-100); color: var(--muted); }
.wizard-steps li.done { background: var(--teal-100); color: var(--teal); }
.wizard-steps li[aria-current] { background: var(--teal); color: #fff; font-weight: 600; }
.summary-card h2 { font-size: 1.1rem; }
.fit-meter { height: 12px; border-radius: 999px; background: var(--teal-100); overflow: hidden; margin: 6px 0; }
.fit-meter svg { display: block; width: 100%; height: 12px; }
.task-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.task-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--warm); border-radius: 8px; font-size: .95rem; }
.task-list li.over { background: var(--warn-bg); color: var(--warn); }
.provider-option small { display: block; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs a { display: block; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- job page ---------- */
.job-head { display: grid; gap: 8px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.timeline li:last-child { border-left-color: transparent; }
.timeline time { display: block; font-size: .82rem; color: var(--muted); }
.timeline .who { font-size: .85rem; color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist .area { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 14px 0 4px; border: 0; }
.checklist form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.check-btn { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); background: none; border: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; padding: 0; }
.check-box { width: 26px; height: 26px; border: 2px solid var(--line-strong); border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--surface); }
.is-done .check-box { background: var(--ok); border-color: var(--ok); }
.is-done .check-box::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.is-done .check-text { text-decoration: line-through; color: var(--muted); }
.access-box { border: 2px dashed var(--teal-200); border-radius: 12px; padding: 14px; background: var(--teal-50); }
.field-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.field-actions .btn { width: 100%; }
.field-actions .wide { grid-column: 1 / -1; }
.msg-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.msg { padding: 10px 14px; border-radius: 14px; background: var(--warm); max-width: 88%; }
.msg.mine { background: var(--teal-100); margin-left: auto; }
.msg.internal { background: var(--warn-bg); }
.msg .who { font-size: .8rem; color: var(--muted); display: block; margin-bottom: 2px; }
.tabs-inline { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-inline a { padding: 8px 14px; border-radius: 999px; text-decoration: none; background: var(--teal-100); color: var(--ink-2); font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; }
.tabs-inline a[aria-current] { background: var(--teal); color: #fff; }

/* ---------- metrics & calendars ---------- */
.metric { display: grid; gap: 2px; }
.metric .value { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric .label { color: var(--muted); font-size: .9rem; }
.bar-svg { width: 100%; height: 10px; display: block; border-radius: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; }
.cal-day { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 120px; }
.cal-day h3 { font-size: .88rem; color: var(--muted); }
.cal-day.today { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.cal-job { display: block; font-size: .82rem; padding: 6px 8px; border-radius: 8px; background: var(--teal-100); color: var(--teal-900); text-decoration: none; margin-bottom: 6px; }
.cal-job.unassigned { background: var(--warn-bg); color: var(--warn); }
.dispatch { overflow-x: auto; }
.dispatch table { min-width: 860px; }
.dispatch th, .dispatch td { border: 1px solid var(--line); padding: 8px; vertical-align: top; font-size: .88rem; }
.dispatch thead th { background: var(--warm); }
.dispatch .off { background: repeating-linear-gradient(45deg, var(--teal-50), var(--teal-50) 6px, var(--teal-100) 6px, var(--teal-100) 12px); color: var(--muted); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.day-list { display: grid; gap: 12px; }
.today-job { border-left: 5px solid var(--teal); }
.offer-card dl { margin: 10px 0; }
.earn { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.earn .net { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
.earn dd { margin: 0; text-align: right; }
.earn dt { color: var(--ink-2); }

@media print {
  .site-header, .bottom-nav, .side-nav, .site-footer, .demo-bar, .page-actions, .no-print, .actions { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- utilities (no inline styles: CSP forbids them) ---------- */
.m-0 { margin: 0 !important; } .mb-0 { margin-bottom: 0 !important; } .mt-2 { margin-top: 2px; } .mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; }
.mb-6 { margin-bottom: 6px; } .mb-10 { margin-bottom: 10px; } .mb-12 { margin-bottom: 12px; } .mb-18 { margin-bottom: 18px; }
.py-4 { padding-top: 4px; padding-bottom: 4px; } .py-6 { padding-top: 6px; padding-bottom: 6px; } .py-8 { padding-top: 8px; padding-bottom: 8px; } .py-10 { padding-top: 10px; padding-bottom: 10px; } .py-12 { padding-top: 12px; padding-bottom: 12px; }
.w-80 { max-width: 80px; } .w-90 { max-width: 90px; } .w-100 { max-width: 100px; } .w-110 { max-width: 110px; } .w-120 { max-width: 120px; } .w-130 { max-width: 130px; } .minw-140 { min-width: 140px; }
.pre-wrap { white-space: pre-wrap; } .big-price { font-size: 1.6rem; font-weight: 700; } .grow { flex: 1; } .prio { max-width: 72px; flex: none; }
.choice .prio { margin-left: auto; min-height: 40px; }
.code { font-size: 1.4rem; letter-spacing: .12em; }

/* Website typography: Barlow for navigation, labels and figures. */
.public-nav a, .top-tabs a, .side-nav a, .bottom-nav a, .metric .value, .price-table tfoot, .wizard-steps li, .tabs-inline a, legend, .field label { font-family: var(--font-heading); }
.public-nav a, .top-tabs a, .side-nav a { font-weight: 600; font-size: 1.02rem; }

/* Job history */
.history-row { padding: 14px 16px; }
.history-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px 14px; margin: 12px 0 4px; }
.history-figures dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.history-figures dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.history-figures .net dd { font-weight: 700; color: var(--teal); }
.date-range { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.date-range > * { min-width: 0; }
.date-range input { min-width: 0; width: 100%; padding-left: 8px; padding-right: 6px; font-size: .95rem; }
.metric-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid .card { padding: 14px; }
.metric-grid .value { font-size: 1.35rem; }
@media (min-width: 900px) { .metric-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .metric-grid .value { font-size: 1.7rem; } }

/* ---------- simplified public entry ---------- */
.hero-simple { text-align: center; padding: 20px 0 6px; }
.hero-simple h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.08; margin-bottom: 10px; }
.hero-simple .lead { margin: 0 auto 22px; font-size: clamp(1.05rem, 2.4vw, 1.25rem); }
.choose-grid { display: grid; gap: 14px; max-width: 920px; margin: 0 auto; }
@media (min-width: 700px) { .choose-grid { grid-template-columns: 1fr 1fr; } .choose-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; } }
.choose { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 18px; border-radius: 18px; background: var(--surface); border: 2px solid var(--teal-200); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.choose:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-2px); }
.choose strong { font-family: var(--font-heading); font-size: clamp(1.25rem, 3vw, 1.55rem); line-height: 1.15; }
.choose > span:not(.big-icon) { font-size: 1rem; color: var(--teal-900); }
.choose > .go { color: var(--teal); }
/* Phones: icon beside the text, so both choices fit on one screen. */
@media (max-width: 699px) {
  .choose { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; padding: 16px; align-items: center; }
  .choose .big-icon { grid-row: span 3; width: 60px; height: 60px; border-radius: 16px; }
  .choose .big-icon .icon { width: 34px; height: 34px; }
  .choose .go { margin-top: 2px; }
  .header-actions .btn { padding: 8px 12px; min-height: 44px; font-size: .95rem; white-space: nowrap; }
  .site-header .logo { height: 30px; }
}
.choose .go { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.big-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: var(--teal-900); color: #fff; flex: none; }
.big-icon .icon { width: 40px; height: 40px; stroke-width: 1.9; }
.big-icon.light { background: var(--teal-100); color: var(--teal-900); }
.big-icon.sm { width: 56px; height: 56px; border-radius: 16px; }
.big-icon.sm .icon { width: 30px; height: 30px; }
.beta-strip { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; margin: 20px auto 0; padding: 10px 16px; border-radius: 999px; background: var(--teal-100); color: var(--teal-900); font-weight: 500; width: fit-content; max-width: 100%; }
.beta-strip .icon { color: var(--teal-900); }
.beta-tag { background: var(--teal-900); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.partner-band { background: var(--teal-900); color: #fff; border-radius: 22px; padding: 26px 18px; margin: 28px 0; }
@media (min-width: 900px) { .partner-band { padding: 34px 32px; } }
.partner-band h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 4px; }
.partner-band > p { color: #fff; margin-bottom: 18px; font-size: 1.08rem; }
.partner-band .choose { background: #fff; border-color: #fff; }
.partner-band .choose:hover { border-color: var(--teal-200); }
.icon-points { display: grid; gap: 14px; }
@media (min-width: 800px) { .icon-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.eco-promise .icon-points { list-style: none; padding: 0; margin: 14px 0 0; }
@media (min-width: 800px) { .eco-promise .icon-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .eco-promise .icon-points { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.eco-line { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--teal-900); background: var(--teal-100); border-radius: 12px; padding: 10px 14px; }
.eco-line .icon { width: 26px; height: 26px; }
.eco-card .icon-list .icon { color: var(--teal-900); }
.icon-point { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.icon-point p { margin: 0; font-size: 1.05rem; }
.icon-point strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; }
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.icon-list li { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; }
.btn-partner { background: var(--teal-900); color: #fff; border-color: var(--teal-900); }
.btn-partner:hover { background: var(--teal); color: #fff; }
.auth-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.auth-head h1 { margin: 0; }
