/* SnapWerks design system — component layer (source of truth for the look: docs/design/system/).
   Opt-in per page: wrap the page in <div class="sw"> and load this file in {% block stylesheets %}.
   Components are plain .sw-* classes so they work next to Tailwind utilities.
   Rules: 4px spacing grid, three radii (8 control / 12 card / 16 panel), two shadows,
   one accent (green), amber = waiting, red = error, blue is never used. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope/ManropeVariable-aA_waSK.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --sw-ink: #0f1a14;
  --sw-text: #26312b;
  --sw-muted: #5b665f;
  --sw-subtle: #8a948d;
  --sw-line: #e3e7e4;
  --sw-line-strong: #cfd6d1;
  --sw-bg: #f6f8f6;
  --sw-surface: #ffffff;
  --sw-sunken: #f0f3f0;
  --sw-green-50: #f0fdf4;
  --sw-green-100: #dcfce7;
  --sw-green-200: #bbf7d0;
  --sw-green-500: #22c55e;
  --sw-green-600: #16a34a;
  --sw-green-700: #15803d;
  --sw-green-800: #166534;
  --sw-green-900: #14532d;
  --sw-forest: #0c2417;
  --sw-amber-50: #fffbeb;
  --sw-amber-200: #fde68a;
  --sw-amber-800: #92400e;
  --sw-red-50: #fef2f2;
  --sw-red-200: #fecaca;
  --sw-red-600: #dc2626;
  --sw-red-800: #991b1b;
  --sw-star: #f5a524;
  /* type */
  --sw-font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sw-display: "Manrope", "Inter", system-ui, sans-serif;
  /* shape */
  --sw-r-control: 8px;
  --sw-r-card: 12px;
  --sw-r-panel: 16px;
  --sw-shadow-1: 0 1px 2px rgba(15, 26, 20, .05);
  --sw-shadow-2: 0 1px 2px rgba(15, 26, 20, .04), 0 12px 28px -10px rgba(15, 26, 20, .16);
  --sw-focus: 0 0 0 3px rgba(22, 163, 74, .28);
  --sw-control-h: 44px;
  --sw-header-h: 64px;
}

/* Sinhala: Noto Sans Sinhala for the Sinhala glyphs (the Latin stays Inter / Manrope). */
html[lang^="si"] {
  --sw-font: "Inter Variable", "Noto Sans Sinhala", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sw-display: "Manrope", "Noto Sans Sinhala", "Inter", system-ui, sans-serif;
}
/* Sinhala headings: the Latin-tuned 800 weight and negative tracking are too heavy / tight for the script. */
html[lang^="si"] :is(h1, h2, h3, .sw-display, .sw-h1, .sw-h2, .sw-h3) {
  font-weight: 700 !important; /* beats Tailwind font-extrabold / font-black on headings */
  letter-spacing: normal !important; /* beats utility classes and inline tracking */
  line-height: 1.3;
}

/* ── base ─────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
.sw {
  color: var(--sw-text);
  font: 400 15px/1.55 var(--sw-font); -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
.sw *, .sw *::before, .sw *::after { box-sizing: border-box; }
.sw a:not([class]) { color: inherit; }
.sw :focus-visible { outline: none; box-shadow: var(--sw-focus); border-radius: 6px; }
.sw-num { font-variant-numeric: tabular-nums; }

/* layout */
.sw-container { width: 100%; max-width: 1136px; margin: 0 auto; padding: 0 24px; }
.sw-container--narrow { max-width: 720px; }
.sw-container--text { max-width: 680px; }
.sw-page { padding-top: 32px; padding-bottom: 72px; }
.sw-stack > * + * { margin-top: 16px; }
.sw-stack--lg > * + * { margin-top: 24px; }
.sw-stack--sm > * + * { margin-top: 8px; }
.sw-split { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 24px; align-items: start; }
.sw-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sw-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sw-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sw-row { display: flex; align-items: center; gap: 12px; }
.sw-row--between { justify-content: space-between; }
.sw-row--wrap { flex-wrap: wrap; }
.sw-grow { flex: 1 1 auto; min-width: 0; }
.sw-hide-mobile { }
.sw-only-mobile { display: none !important; }

/* ── typography ───────────────────────────────────────────────────── */
.sw-display { font: 800 44px/1.08 var(--sw-display); letter-spacing: -.025em; color: var(--sw-ink); margin: 0; }
.sw-h1 { font: 800 30px/1.15 var(--sw-display); letter-spacing: -.02em; color: var(--sw-ink); margin: 0; }
.sw-h2 { font: 700 22px/1.25 var(--sw-display); letter-spacing: -.015em; color: var(--sw-ink); margin: 0; }
.sw-h3 { font: 700 17px/1.35 var(--sw-display); letter-spacing: -.01em; color: var(--sw-ink); margin: 0; }
.sw-h4 { font: 600 15px/1.4 var(--sw-font); color: var(--sw-ink); margin: 0; }
.sw-lead { font-size: 17px; line-height: 1.55; color: var(--sw-muted); margin: 0; }
.sw-body { font-size: 15px; line-height: 1.55; color: var(--sw-text); margin: 0; }
.sw-small { font-size: 13px; line-height: 1.45; color: var(--sw-muted); margin: 0; }
.sw-eyebrow { font: 600 12px/1.3 var(--sw-font); letter-spacing: .07em; text-transform: uppercase; color: var(--sw-green-800); margin: 0; }
.sw-eyebrow--muted { color: var(--sw-subtle); }
.sw-link { color: var(--sw-green-800); font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
.sw-link:hover { text-decoration: underline; }
.sw-link--quiet { color: var(--sw-muted); font-weight: 500; }
.sw-money { font-family: var(--sw-display); font-weight: 800; letter-spacing: -.02em; color: var(--sw-ink); font-variant-numeric: tabular-nums; }
.sw-money--xl { font-size: 40px; line-height: 1; }
.sw-money--lg { font-size: 28px; line-height: 1.1; }
.sw-money--md { font-size: 20px; line-height: 1.2; }
.sw-prose { font-size: 17px; line-height: 1.7; color: var(--sw-text); }
.sw-prose h2 { font: 700 24px/1.3 var(--sw-display); letter-spacing: -.015em; color: var(--sw-ink); margin: 40px 0 12px; }
.sw-prose h3 { font: 700 19px/1.35 var(--sw-display); color: var(--sw-ink); margin: 28px 0 8px; }
.sw-prose p { margin: 0 0 18px; }
.sw-prose ul { margin: 0 0 18px; padding-left: 22px; }
.sw-prose li + li { margin-top: 6px; }
.sw-prose a { color: var(--sw-green-800); font-weight: 600; }

/* ── icon ─────────────────────────────────────────────────────────── */
.sw-icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.sw-icon--sm { width: 16px; height: 16px; }
.sw-icon--lg { width: 24px; height: 24px; }
.sw-icon-tile { width: 40px; height: 40px; border-radius: 10px; background: var(--sw-green-50); color: var(--sw-green-700); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sw-icon-tile--neutral { background: var(--sw-sunken); color: var(--sw-muted); }
.sw-icon-tile--amber { background: var(--sw-amber-50); color: var(--sw-amber-800); }
.sw-icon-tile--lg { width: 48px; height: 48px; border-radius: 12px; }

/* ── button ───────────────────────────────────────────────────────── */
.sw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--sw-control-h); padding: 0 18px; border-radius: var(--sw-r-control);
  border: 1px solid transparent; background: var(--sw-green-700); color: #fff;
  font: 600 15px/1 var(--sw-font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.sw-btn:hover { background: var(--sw-green-800); }
.sw-btn:active { transform: translateY(1px); }
.sw-btn--secondary { background: var(--sw-surface); color: var(--sw-ink); border-color: var(--sw-line-strong); box-shadow: var(--sw-shadow-1); }
.sw-btn--secondary:hover { background: var(--sw-sunken); }
.sw-btn--ghost { background: transparent; color: var(--sw-green-800); padding: 0 10px; }
.sw-btn--ghost:hover { background: var(--sw-green-50); }
.sw-btn--danger { background: var(--sw-surface); color: var(--sw-red-800); border-color: var(--sw-red-200); }
.sw-btn--danger:hover { background: var(--sw-red-50); }
.sw-btn--inverse { background: #fff; color: var(--sw-green-900); }
.sw-btn--inverse:hover { background: var(--sw-green-50); }
.sw-btn--sm { height: 36px; padding: 0 12px; font-size: 14px; }
.sw-btn--lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 10px; }
.sw-btn--block { width: 100%; white-space: normal; height: auto; min-height: var(--sw-control-h); padding-block: 10px; line-height: 1.35; text-align: center; } /* long Sinhala/Tamil labels wrap instead of clipping */
.sw-btn[disabled], .sw-btn.is-disabled { background: var(--sw-sunken); color: var(--sw-subtle); border-color: var(--sw-line); cursor: not-allowed; box-shadow: none; }
.sw-btn.is-loading { color: transparent; position: relative; pointer-events: none; }
.sw-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: sw-spin .7s linear infinite; }
@keyframes sw-spin { to { transform: rotate(360deg); } }
.sw-iconbtn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--sw-r-control); border: 0; background: transparent; color: var(--sw-muted); cursor: pointer; }
.sw-iconbtn:hover { background: var(--sw-sunken); color: var(--sw-ink); }

/* ── form ─────────────────────────────────────────────────────────── */
.sw-field { display: block; }
.sw-field + .sw-field { margin-top: 16px; }
.sw-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 600 14px/1.4 var(--sw-font); color: var(--sw-ink); margin-bottom: 6px; }
.sw-label__opt { font-weight: 400; font-size: 13px; color: var(--sw-subtle); }
.sw-input, .sw-select, .sw-textarea {
  width: 100%; height: var(--sw-control-h); padding: 0 12px; border-radius: var(--sw-r-control);
  border: 1px solid var(--sw-line-strong); background: var(--sw-surface); color: var(--sw-ink);
  font: 400 16px/1.4 var(--sw-font); transition: border-color .15s, box-shadow .15s; appearance: none;
}
.sw-textarea { height: auto; min-height: 112px; padding: 10px 12px; resize: vertical; }
.sw-select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b665f' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; }
.sw-input::placeholder, .sw-textarea::placeholder { color: var(--sw-subtle); }
.sw-input:hover, .sw-select:hover, .sw-textarea:hover { border-color: var(--sw-subtle); }
.sw-input:focus, .sw-select:focus, .sw-textarea:focus { outline: none; border-color: var(--sw-green-600); box-shadow: var(--sw-focus); }
.sw-input.is-invalid, .sw-select.is-invalid, .sw-textarea.is-invalid { border-color: var(--sw-red-600); }
.sw-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .2); }
.sw-hint { display: block; font-size: 13px; line-height: 1.45; color: var(--sw-muted); margin: 6px 0 0; }
.sw-error { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--sw-red-800); margin: 6px 0 0; }
.sw-inputgroup { position: relative; }
.sw-inputgroup > .sw-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sw-subtle); pointer-events: none; }
.sw-inputgroup > .sw-input { padding-left: 40px; }
.sw-inputgroup__prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sw-muted); font-size: 16px; }
.sw-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--sw-text); cursor: pointer; min-height: 24px; }
.sw-check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--sw-line-strong); border-radius: 5px; background: #fff; cursor: pointer; }
.sw-check input[type="radio"] { border-radius: 50%; }
.sw-check input:checked { background: var(--sw-green-700) center/14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E"); border-color: var(--sw-green-700); }
.sw-check input[type="radio"]:checked { background: #fff; border: 6px solid var(--sw-green-700); }
.sw-toggle { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--sw-line-strong); position: relative; cursor: pointer; flex: none; transition: background-color .15s; margin: 0; }
.sw-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.sw-toggle:checked { background: var(--sw-green-700); }
.sw-toggle:checked::after { transform: translateX(18px); }
/* selectable option card (radio/checkbox rendered as a card) */
.sw-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-r-card); background: #fff; cursor: pointer; }
.sw-option:hover { border-color: var(--sw-subtle); }
.sw-option.is-selected { border-color: var(--sw-green-700); box-shadow: inset 0 0 0 1px var(--sw-green-700); background: var(--sw-green-50); }

/* ── surfaces ─────────────────────────────────────────────────────── */
.sw-card { background: var(--sw-surface); border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); box-shadow: var(--sw-shadow-1); }
.sw-card--raised { box-shadow: var(--sw-shadow-2); }
.sw-card--flat { box-shadow: none; }
.sw-card--accent { border-color: var(--sw-green-700); box-shadow: inset 0 0 0 1px var(--sw-green-700), var(--sw-shadow-2); }
.sw-card--interactive { transition: border-color .15s, box-shadow .15s; text-decoration: none; display: block; color: inherit; }
.sw-card--interactive:hover { border-color: var(--sw-line-strong); box-shadow: var(--sw-shadow-2); }
.sw-card__body { padding: 20px; }
.sw-card__body--lg { padding: 28px; }
.sw-card__header { padding: 16px 20px; border-bottom: 1px solid var(--sw-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sw-card__footer { padding: 14px 20px; border-top: 1px solid var(--sw-line); background: #fbfcfb; border-radius: 0 0 var(--sw-r-card) var(--sw-r-card); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sw-panel { background: var(--sw-surface); border: 1px solid var(--sw-line); border-radius: var(--sw-r-panel); box-shadow: var(--sw-shadow-2); }
.sw-well { background: var(--sw-sunken); border-radius: var(--sw-r-card); padding: 16px; }
.sw-divider { border: 0; border-top: 1px solid var(--sw-line); margin: 20px 0; }
.sw-section { padding: 72px 0; }
.sw-section--tint { background: var(--sw-surface); border-top: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }
.sw-section--forest { background: var(--sw-forest); color: #d6e2da; }
.sw-section--forest .sw-h1, .sw-section--forest .sw-h2, .sw-section--forest .sw-display { color: #fff; }
.sw-section__head { margin-bottom: 32px; max-width: 640px; }
.sw-section__head .sw-lead { margin-top: 8px; }

/* page header (title + optional actions) */
.sw-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sw-pagehead .sw-small, .sw-pagehead .sw-lead { margin-top: 6px; }
.sw-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--sw-muted); text-decoration: none; margin-bottom: 12px; min-height: 24px; }
.sw-back:hover { color: var(--sw-ink); }
.sw-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--sw-muted); list-style: none; padding: 0; margin: 0 0 16px; }
.sw-breadcrumb a { color: var(--sw-muted); text-decoration: none; }
.sw-breadcrumb a:hover { color: var(--sw-ink); text-decoration: underline; }
.sw-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--sw-line-strong); }
.sw-breadcrumb [aria-current] { color: var(--sw-ink); font-weight: 500; }

/* ── badge, tag, chip ─────────────────────────────────────────────── */
.sw-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font: 600 12px/1 var(--sw-font); white-space: nowrap; background: var(--sw-sunken); color: var(--sw-muted); }
.sw-badge .sw-icon { width: 14px; height: 14px; }
.sw-badge--success { background: var(--sw-green-100); color: var(--sw-green-800); }
.sw-badge--pending { background: var(--sw-amber-50); color: var(--sw-amber-800); box-shadow: inset 0 0 0 1px var(--sw-amber-200); }
.sw-badge--danger { background: var(--sw-red-50); color: var(--sw-red-800); }
.sw-badge--solid { background: var(--sw-green-700); color: #fff; }
.sw-badge--outline { background: #fff; box-shadow: inset 0 0 0 1px var(--sw-line-strong); color: var(--sw-text); }
.sw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sw-green-600); display: inline-block; flex: none; }
.sw-dot--amber { background: #f59e0b; } .sw-dot--gray { background: var(--sw-line-strong); } .sw-dot--red { background: var(--sw-red-600); }
.sw-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sw-green-700); color: #fff; font: 700 11px/20px var(--sw-font); text-align: center; display: inline-block; }
.sw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--sw-muted); }
.sw-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.sw-meta .sw-icon { width: 16px; height: 16px; color: var(--sw-subtle); }
.sw-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--sw-line-strong); background: #fff; color: var(--sw-text); font: 500 14px/1 var(--sw-font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.sw-chip:hover { border-color: var(--sw-subtle); }
.sw-chip.is-active { background: var(--sw-ink); border-color: var(--sw-ink); color: #fff; }
.sw-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sw-chips::-webkit-scrollbar { display: none; }

/* ── alert / banner ───────────────────────────────────────────────── */
.sw-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--sw-r-card); border: 1px solid var(--sw-line); background: #fff; font-size: 14px; line-height: 1.5; color: var(--sw-text); }
.sw-alert > .sw-icon { margin-top: 1px; color: var(--sw-muted); }
.sw-alert__title { font-weight: 600; color: var(--sw-ink); display: block; }
.sw-alert__actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
/* long (Sinhala / Tamil) button labels wrap instead of widening the page */
.sw-alert__actions .sw-btn { white-space: normal; height: auto; min-height: 36px; padding-block: 8px; max-width: 100%; text-align: left; }
.sw-alert--success { background: var(--sw-green-50); border-color: var(--sw-green-200); } .sw-alert--success > .sw-icon { color: var(--sw-green-700); }
.sw-alert--pending { background: var(--sw-amber-50); border-color: var(--sw-amber-200); } .sw-alert--pending > .sw-icon { color: var(--sw-amber-800); }
.sw-alert--danger { background: var(--sw-red-50); border-color: var(--sw-red-200); } .sw-alert--danger > .sw-icon { color: var(--sw-red-600); }
.sw-toast { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--sw-ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--sw-shadow-2); }
.sw-toast .sw-icon { color: var(--sw-green-500); }

/* ── avatar, rating ───────────────────────────────────────────────── */
.sw-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sw-green-100); color: var(--sw-green-900); display: inline-flex; align-items: center; justify-content: center; font: 700 14px/1 var(--sw-display); flex: none; object-fit: cover; }
.sw-avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.sw-avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.sw-avatar--xl { width: 88px; height: 88px; font-size: 28px; }
.sw-avatar--square { border-radius: 10px; }
.sw-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sw-muted); }
.sw-rating strong { color: var(--sw-ink); font-weight: 700; }
.sw-stars { display: inline-flex; gap: 1px; color: var(--sw-star); }
.sw-stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.sw-stars .is-off { color: var(--sw-line-strong); }
.sw-stars--lg svg { width: 28px; height: 28px; }

/* ── list rows, key-value, table ──────────────────────────────────── */
.sw-list { list-style: none; margin: 0; padding: 0; }
.sw-list > li + li, .sw-list > a + a { border-top: 1px solid var(--sw-line); }
.sw-listrow { color: inherit; display: flex; align-items: center; gap: 12px; padding: 14px 20px; min-height: 56px; text-decoration: none; color: inherit; }
a.sw-listrow:hover { background: #fbfcfb; }
.sw-listrow__title { display: block; font-weight: 600; color: var(--sw-ink); font-size: 15px; line-height: 1.35; }
.sw-listrow__sub { display: block; font-size: 13px; color: var(--sw-muted); line-height: 1.4; }
.sw-listrow > .sw-icon:last-child { color: var(--sw-subtle); }
.sw-kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 0; font-size: 14px; margin: 0; }
.sw-kv dt { color: var(--sw-muted); } .sw-kv dd { margin: 0; padding-left: 16px; text-align: right; color: var(--sw-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.sw-kv .is-total { padding-top: 12px; border-top: 1px solid var(--sw-line); font-weight: 700; font-size: 16px; color: var(--sw-ink); }
.sw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sw-table th { text-align: left; font: 600 12px/1.3 var(--sw-font); letter-spacing: .05em; text-transform: uppercase; color: var(--sw-subtle); padding: 12px 20px; border-bottom: 1px solid var(--sw-line); background: #fbfcfb; }
.sw-table td { padding: 14px 20px; border-bottom: 1px solid var(--sw-line); vertical-align: middle; }
.sw-table tr:last-child td { border-bottom: 0; }
.sw-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-amount--in { color: var(--sw-green-800); font-weight: 600; } .sw-amount--out { color: var(--sw-ink); font-weight: 600; }

/* ── tabs, stepper, progress, pagination ──────────────────────────── */
.sw-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--sw-line); overflow-x: auto; scrollbar-width: none; }
.sw-tab { padding: 12px 0; font: 600 14px/1.3 var(--sw-font); color: var(--sw-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.sw-tab:hover { color: var(--sw-ink); }
.sw-tab.is-active { color: var(--sw-ink); border-color: var(--sw-green-700); }
/* stepper shows ONLY current + next (completed steps are hidden) */
.sw-stepper { display: flex; align-items: center; gap: 10px; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.sw-stepper__num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 var(--sw-font); border: 1px solid var(--sw-line-strong); color: var(--sw-muted); background: #fff; flex: none; }
.sw-stepper li { display: flex; align-items: center; gap: 8px; color: var(--sw-muted); font-weight: 500; }
.sw-stepper li.is-current { color: var(--sw-ink); font-weight: 600; }
.sw-stepper li.is-current .sw-stepper__num { background: var(--sw-green-700); border-color: var(--sw-green-700); color: #fff; }
.sw-stepper__line { flex: 1 1 24px; height: 1px; background: var(--sw-line-strong); min-width: 16px; max-width: 64px; }
.sw-progress { height: 8px; border-radius: 4px; background: var(--sw-sunken); overflow: hidden; }
.sw-progress > span { display: block; height: 100%; border-radius: 4px; background: var(--sw-green-600); }
.sw-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; }
.sw-pagination a, .sw-pagination span { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font: 500 14px/1 var(--sw-font); color: var(--sw-text); text-decoration: none; }
.sw-pagination a:hover { background: var(--sw-sunken); }
.sw-pagination .is-current { background: var(--sw-ink); color: #fff; font-weight: 600; }

/* ── stat, empty state, accordion, skeleton ───────────────────────── */
.sw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); box-shadow: var(--sw-shadow-1); }
.sw-stat { padding: 18px 20px; }
.sw-stat + .sw-stat { border-left: 1px solid var(--sw-line); }
.sw-stat__value { font: 800 26px/1.1 var(--sw-display); letter-spacing: -.02em; color: var(--sw-ink); font-variant-numeric: tabular-nums; }
.sw-stat__label { font-size: 13px; color: var(--sw-muted); margin-top: 4px; }
.sw-empty { text-align: center; padding: 48px 24px; }
.sw-empty .sw-icon-tile { margin-bottom: 16px; }
.sw-empty .sw-small { max-width: 380px; margin: 6px auto 20px; font-size: 14px; }
.sw-accordion { border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); background: #fff; box-shadow: var(--sw-shadow-1); }
.sw-accordion details + details { border-top: 1px solid var(--sw-line); }
.sw-accordion summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font: 600 15px/1.4 var(--sw-font); color: var(--sw-ink); cursor: pointer; min-height: 56px; }
.sw-accordion summary::-webkit-details-marker { display: none; }
.sw-accordion summary::after { content: ""; width: 20px; height: 20px; flex: none; background: center/20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b665f' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); transition: transform .15s; }
.sw-accordion details[open] summary::after { transform: rotate(180deg); }
.sw-accordion__body { padding: 0 20px 18px; font-size: 15px; color: var(--sw-text); max-width: 640px; }
.sw-skeleton { background: linear-gradient(90deg, var(--sw-sunken), #e7ebe8, var(--sw-sunken)); background-size: 200% 100%; border-radius: 6px; animation: sw-shimmer 1.4s infinite; height: 14px; }
@keyframes sw-shimmer { to { background-position: -200% 0; } }

/* ── modal / sheet ────────────────────────────────────────────────── */
.sw-scrim { background: rgba(15, 26, 20, .5); padding: 40px 16px; display: flex; align-items: center; justify-content: center; }
.sw-modal { width: 100%; max-width: 440px; background: #fff; border-radius: var(--sw-r-panel); box-shadow: 0 24px 60px -12px rgba(15, 26, 20, .4); padding: 24px; }
.sw-modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── domain components ────────────────────────────────────────────── */
/* job card */
.sw-job { padding: 20px; }
.sw-job__title { font: 700 17px/1.35 var(--sw-display); letter-spacing: -.01em; color: var(--sw-ink); margin: 0; }
.sw-job__desc { font-size: 14px; line-height: 1.55; color: var(--sw-text); margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-job__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sw-line); }
/* professional card */
.sw-pro { padding: 20px; display: flex; gap: 16px; }
.sw-pro__name { font: 700 16px/1.3 var(--sw-display); color: var(--sw-ink); margin: 0; }
.sw-pro__facts { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--sw-muted); display: grid; gap: 5px; }
.sw-pro__facts li { display: flex; gap: 7px; align-items: center; }
.sw-pro__facts .sw-icon { width: 16px; height: 16px; color: var(--sw-subtle); }
/* quote card (homeowner compares these) */
.sw-quote { padding: 20px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 20px; align-items: center; }
.sw-quote__price { text-align: right; }
/* balance panel */
.sw-balance { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* amount / plan option */
.sw-amount { padding: 24px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.sw-amount__flag { position: absolute; top: -12px; left: 20px; }
/* chat */
.sw-bubble { max-width: 76%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; background: #fff; border: 1px solid var(--sw-line); color: var(--sw-text); border-bottom-left-radius: 4px; }
.sw-bubble--own { background: var(--sw-green-700); border-color: var(--sw-green-700); color: #fff; margin-left: auto; border-radius: 14px; border-bottom-right-radius: 4px; }
.sw-bubble__time { display: block; font-size: 11px; opacity: .7; margin-top: 4px; text-align: right; }
/* timeline (job / quote status) */
.sw-timeline { list-style: none; margin: 0; padding: 0; }
.sw-timeline li { position: relative; padding: 0 0 20px 28px; font-size: 14px; color: var(--sw-muted); }
.sw-timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--sw-line-strong); }
.sw-timeline li::after { content: ""; position: absolute; left: 8px; top: 19px; bottom: -3px; width: 2px; background: var(--sw-line); }
.sw-timeline li:last-child { padding-bottom: 0; } .sw-timeline li:last-child::after { display: none; }
.sw-timeline li.is-done::before { background: var(--sw-green-600); border-color: var(--sw-green-600); }
.sw-timeline li.is-current::before { border-color: var(--sw-green-600); box-shadow: 0 0 0 4px var(--sw-green-100); }
.sw-timeline li.is-done, .sw-timeline li.is-current { color: var(--sw-ink); }
.sw-timeline strong { display: block; font-weight: 600; }
/* image placeholder (photo slots in mockups) */
.sw-photo { background: linear-gradient(135deg, #e6ece8, #d5ded8); border-radius: var(--sw-r-card); display: flex; align-items: center; justify-content: center; color: #8fa097; aspect-ratio: 4 / 3; overflow: hidden; }
.sw-photo--wide { aspect-ratio: 16 / 9; } .sw-photo--square { aspect-ratio: 1; }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .sw-split { grid-template-columns: minmax(0, 1fr); }
  .sw-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --sw-header-h: 56px; }
  .sw-container { padding: 0 16px; }
  .sw-page { padding-top: 20px; padding-bottom: 48px; }
  .sw-display { font-size: 32px; } .sw-h1 { font-size: 24px; } .sw-h2 { font-size: 20px; } .sw-lead { font-size: 16px; }
  .sw-section { padding: 48px 0; } .sw-section__head { margin-bottom: 24px; }
  .sw-grid-2, .sw-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .sw-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sw-hide-mobile { display: none !important; }
  /* tap targets: nothing interactive under 44px on phones */
  .sw-btn--sm, .sw-chip { height: 44px; }
  .sw-chip { border-radius: 22px; }
  .sw-pagination a, .sw-pagination span { min-width: 44px; height: 44px; }
  .sw-iconbtn { width: 44px; height: 44px; }
  .sw-only-mobile { display: revert !important; }
  .sw-pagehead { flex-direction: column; align-items: stretch; }
  .sw-card__body--lg { padding: 20px; }
  .sw-stat { padding: 14px 12px; } .sw-stat__value { font-size: 22px; } .sw-stat__label { font-size: 12px; }
  .sw-balance { flex-direction: column; align-items: stretch; padding: 20px; }
  .sw-quote { grid-template-columns: minmax(0, 1fr); } .sw-quote__price { text-align: left; }
  .sw-table--stack thead { display: none; }
  .sw-table--stack tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-bottom: 1px solid var(--sw-line); }
  .sw-table--stack td { padding: 0; border: 0; }
  .sw-modal__actions { flex-direction: column-reverse; } .sw-modal__actions .sw-btn { width: 100%; }
  .sw-prose { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sw *, .sw *::before, .sw *::after { animation: none !important; transition: none !important; } }
.sw-listrow br { display: none; }

/* ── page: top up (templates/buy_credits/index.html.twig) ─────────── */
.buy-topup__lead { max-width: 600px; }
.buy-topup__alert { margin-bottom: 16px; }
.buy-topup__transfer { align-items: center; text-decoration: none; }
.buy-topup__balance { margin: 8px 0 0; }
.buy-topup__note { margin-top: 8px; font-size: 14px; }
.buy-topup__section { margin-top: 40px; }
.buy-topup__head { margin-bottom: 24px; }
.buy-topup__text { margin-top: 4px; font-size: 14px; }
.buy-topup__amount { margin: 0; }
.buy-topup__amounts { align-items: stretch; }
.buy-topup__pay { margin-top: auto; padding-top: 20px; display: grid; gap: 8px; }
.buy-topup__pay form { display: grid; }
.buy-topup__bank { background: none; border: 0; padding: 4px 0; font-size: 14px; cursor: pointer; justify-self: center; }
.buy-topup__cards svg { display: block; }
.buy-topup__empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; }
.buy-topup__trust { margin-top: 20px; }
.buy-topup__steps-title { margin-bottom: 16px; }
.buy-topup__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.buy-topup__steps li { display: flex; gap: 12px; align-items: flex-start; }
.buy-topup__faq { align-self: start; }
.buy-topup__activation { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.buy-topup__activation-pay { display: grid; gap: 12px; justify-items: end; flex: none; }
@media (max-width: 640px) {
  .buy-topup__section { margin-top: 32px; }
  .buy-topup__amounts { gap: 20px; }
  .buy-topup__activation { flex-direction: column; align-items: stretch; }
  .buy-topup__activation-pay { justify-items: stretch; }
}
@media (max-width: 640px) {
  /* base.html.twig already gives the page an 8px gutter */
  .buy-topup .sw-container { padding: 0 8px; }
}

/* ── pages: tegoed overview + payments (templates/payment, transaction_history) ── */
.tegoed__lead { max-width: 560px; }
.tegoed__tabs { margin-bottom: 24px; }
.tegoed__balance { margin: 8px 0 0; }
.tegoed__note { margin-top: 8px; max-width: 520px; font-size: 14px; }
.tegoed__section { margin-top: 32px; }
.tegoed__section > .sw-h3 { margin-bottom: 12px; }
.tegoed__table { overflow: hidden; }
.tegoed__empty { margin-top: 0; }
.tegoed__count { margin-top: 12px; }
.tegoed__pagination { margin-top: 20px; }
.tegoed__kv { margin-top: 16px; }
.tegoed__side .sw-btn { margin-top: 16px; }
.tegoed__title { color: var(--sw-ink); font-weight: 500; }
.tegoed__amount { font-weight: 600; }
.tegoed__side { position: sticky; top: 80px; }
@media (max-width: 880px) { .tegoed__side { position: static; } }
@media (max-width: 640px) {
  .tegoed .sw-container { padding: 0 8px; }
  .tegoed__tabs { margin-bottom: 20px; }
  .tegoed .sw-table--stack tr { grid-template-columns: 1fr auto; }
  .tegoed .sw-table--stack .tegoed__date { grid-column: 1 / -1; order: -1; }
  .tegoed .sw-table--stack .tegoed__after { grid-column: 1 / -1; text-align: left; margin-top: 2px; }
}

/* ── shell: site header, slide-in menu, bottom tab bar ────────────── */
/* No backdrop-filter / transform / filter here: any of them makes this element the containing block of
   its position:fixed children, and the slide-in menu and its overlay inside the header would shrink to
   the 64px bar instead of covering the screen. z-index 55 keeps the open menu above the tab bar (z 50). */
.sw-header { position: sticky; top: 0; z-index: 55; height: var(--sw-header-h); background: #fff; border-bottom: 1px solid var(--sw-line); }
.sw-header__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.sw-header .hidden, .sw-sheet .hidden { display: none; }
.sw-logo { display: inline-flex; align-items: center; flex: none; }
.sw-logo img { height: 32px; width: auto; display: block; }
.sw-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; flex: 1 1 auto; }
.sw-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font: 500 14px/1 var(--sw-font); color: var(--sw-muted); text-decoration: none; border-top: 2px solid transparent; border-bottom: 2px solid transparent; }
.sw-nav a:hover { color: var(--sw-ink); }
.sw-nav a.is-active { color: var(--sw-ink); font-weight: 600; border-bottom-color: var(--sw-green-700); }
.sw-header__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sw-wallet { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--sw-line-strong); background: #fff; font: 600 14px/1 var(--sw-font); color: var(--sw-ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.sw-wallet:hover { border-color: var(--sw-subtle); }
.sw-wallet .sw-icon { width: 16px; height: 16px; color: var(--sw-green-700); }
.sw-count--pending { background: var(--sw-amber-50); color: var(--sw-amber-800); box-shadow: inset 0 0 0 1px var(--sw-amber-200); }
.sw-count.hidden { display: none; }
/* account menu */
.sw-account { position: relative; }
.sw-account__btn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--sw-subtle); border-radius: 20px; cursor: pointer; }
.sw-account__btn:hover { background: var(--sw-sunken); }
.sw-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 248px; padding: 6px; background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); box-shadow: var(--sw-shadow-2); z-index: 60; }
.sw-dropdown a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--sw-text); text-decoration: none; }
.sw-dropdown a:hover { background: var(--sw-sunken); }
.sw-dropdown a .sw-icon { color: var(--sw-subtle); }
.sw-dropdown__danger, .sw-dropdown__danger .sw-icon { color: var(--sw-red-800) !important; }
.sw-dropdown__lang { margin: 6px 0; padding: 10px; border-top: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }
/* slide-in menu */
.sw-sheet { display: flex; flex-direction: column; overflow-y: auto; }
.sw-sheet__head { display: flex; align-items: center; justify-content: space-between; height: var(--sw-header-h); padding: 0 8px 0 20px; border-bottom: 1px solid var(--sw-line); flex: none; }
.sw-sheet__note { margin: 16px 16px 0; padding: 14px 16px; border-radius: var(--sw-r-card); background: var(--sw-amber-50); border: 1px solid var(--sw-amber-200); display: grid; gap: 6px; font-size: 14px; }
.sw-sheet__list { padding: 8px 0; flex: 1 1 auto; }
.sw-sheet__link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; font: 500 16px/1.3 var(--sw-font); color: var(--sw-ink); text-decoration: none; }
.sw-sheet__link:hover, .sw-sheet__link.is-active { background: var(--sw-green-50); }
.sw-sheet__link.is-active { color: var(--sw-green-800); font-weight: 600; }
.sw-sheet__link .sw-icon { color: var(--sw-subtle); }
.sw-sheet__link.is-active .sw-icon { color: var(--sw-green-700); }
.sw-sheet__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sw-line); display: grid; gap: 14px; flex: none; }
/* bottom tab bar */
.sw-tabbar { display: none; }
@media (max-width: 1023px) {
  .sw-nav, .sw-header__desktop { display: none; }
  .sw-header__in { gap: 12px; }
  .sw-header__end .sw-btn--sm { height: 40px; }
  .sw-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--sw-line); padding-bottom: env(safe-area-inset-bottom); }
  .sw-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 68px; font: 500 12px/1 var(--sw-font); color: var(--sw-muted); text-decoration: none; position: relative; }
  .sw-tabbar a.is-active { color: var(--sw-green-800); font-weight: 600; }
  .sw-tabbar .sw-icon { width: 26px; height: 26px; }
  .sw-tabbar .sw-count { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; font-size: 10px; line-height: 16px; padding: 0 4px; }
}
@media (min-width: 1024px) { .sw-header__menu { display: none; } }
@media (max-width: 640px) { .sw-logo img { height: 28px; } .sw-header .sw-container { padding: 0 12px; } }

/* ── page: professional dashboard (templates/professional/dashboard.html.twig) ── */
.dash__head { margin-bottom: 20px; }
.dash__city { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; }
.dash__legacy { display: grid; gap: 12px; }
.dash__legacy:not(:empty) { margin-bottom: 16px; }
.dash__alert { margin-bottom: 16px; }
.dash__split { margin-top: 8px; }
.dash__feed-title { margin-bottom: 16px; }
.dash__tabs { margin-bottom: 16px; }
.dash__list { display: grid; gap: 12px; }
.dash__card { cursor: pointer; }
.dash__meta { margin-top: 8px; }
.dash__foot { justify-content: flex-end; }
.dash__more { margin-top: 20px; text-align: center; }
.dash__more .load-text { cursor: pointer; display: inline-block; padding: 12px; }
.dash__skeletons { display: grid; gap: 12px; margin-top: 16px; text-align: left; }
.dash__skeleton { display: grid; gap: 10px; }
.dash__side { position: sticky; top: 80px; }
.dash__balance { margin: 8px 0 0; }
.dash__note { margin-top: 8px; font-size: 14px; }
.dash__topup { margin-top: 16px; }
.dash__history { display: block; margin-top: 14px; text-align: center; font-size: 14px; }
/* Phones: the available jobs come first after login; balance and shortcuts follow the feed. */
@media (max-width: 880px) {
  .dash__side { position: static; }
}
@media (max-width: 640px) {
  .dash .sw-container { padding: 0 8px; }
  .dash__foot .sw-btn { width: 100%; }
}

.sw .hidden { display: none; }

/* ── page: professional job view (templates/professional/view_job.html.twig) ── */
.jobview__alert { margin-bottom: 16px; }
.jobview__head { margin-bottom: 24px; }
.jobview__meta { margin-top: 10px; }
.jobview__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jobview__split { margin-top: 8px; }
.jobview__desc { margin-top: 12px; font-size: 16px; line-height: 1.65; }
.jobview__desc p { margin: 0 0 12px; }
.jobview__lock { margin-top: 16px; }
.jobview__photos-title { margin: 24px 0 12px; }
.jobview__photos { gap: 12px; }
.jobview__photo { display: block; border-radius: var(--sw-r-card); overflow: hidden; border: 1px solid var(--sw-line); }
.jobview__photo img { display: block; width: 100%; height: 128px; object-fit: cover; }
.jobview__mapcard { overflow: hidden; }
.jobview__map { position: relative; }
.jobview__canvas { display: block; width: 100%; height: 200px; background: var(--sw-sunken); }
.jobview__osm { position: absolute; right: 0; bottom: 0; padding: 2px 6px; font-size: 10px; background: rgba(255,255,255,.85); color: var(--sw-muted); border-top-left-radius: 4px; }
.jobview__text { margin-top: 6px; font-size: 14px; }
.jobview__copy { display: flex; gap: 8px; margin-top: 16px; }
.jobview__copy .sw-input { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.jobview__side { position: sticky; top: 80px; }
.jobview__kv { margin-top: 16px; }
.jobview__short { color: var(--sw-red-800); }
.jobview__cta { margin-top: 16px; }
.jobview__sticky { position: sticky; bottom: 0; z-index: 20; padding: 10px 16px; background: #fff; border-top: 1px solid var(--sw-line); }
.jobview__sticky:not(:has(.sw-btn)) { display: none; }
.jobview__note { margin-top: 12px; text-align: center; }
.jobview__quote-total { margin: 12px 0 0; }
.jobview__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jobview__contact-actions { display: grid; gap: 8px; }
.jobview__break { overflow-wrap: anywhere; }
.jobview__slots { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sw-line); display: grid; gap: 8px; }
.jobview__hint { display: block; margin-top: 4px; }
.jobview .sw-listrow .sw-grow { display: grid; }
@media (max-width: 880px) { .jobview__side { position: static; } }
@media (max-width: 640px) {
  .jobview .sw-container { padding: 0 8px; }
  .jobview__copy { flex-direction: column; }
  .jobview__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── page: subscription (templates/subscription/show.html.twig) ───── */
.sw-plan { padding: 28px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.subs__hero { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.subs__title { margin-top: 10px; }
.subs__lead { margin-top: 12px; }
.subs__current { margin-bottom: 28px; }
.subs__meta { margin-top: 6px; font-size: 14px; }
.subs__alert { margin-top: 16px; }
.subs__stats { margin-top: 20px; box-shadow: none; }
.subs__toggle { display: flex; justify-content: center; margin-bottom: 28px; }
.subs__plans { max-width: 840px; margin: 0 auto; align-items: stretch; }
.subs__price { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.subs__price.hidden { display: none; }
.subs__equiv { flex-basis: 100%; }
.subs__credit { align-self: flex-start; margin-top: 12px; height: auto; padding: 5px 10px; font-weight: 600; }
.subs__features { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--sw-text); }
.subs__features li { display: flex; gap: 10px; align-items: flex-start; }
.subs__features .sw-icon { margin-top: 2px; color: var(--sw-green-700); }
.subs__cta { margin-top: auto; padding-top: 24px; }
.subs__fine { text-align: center; margin-top: 10px; }
.subs__compare { max-width: 840px; margin: 64px auto 0; }
.subs__compare > .sw-h2 { margin-bottom: 20px; text-align: center; }
.subs__table { overflow: hidden; }
.subs__table .sw-table th, .subs__table .sw-table td { padding: 12px 16px; }
.subs__table td:first-child, .subs__table th:first-child { text-align: left; }
.subs__colteam { background: var(--sw-green-50); }
.subs__tierprice { font-weight: 400; text-transform: none; letter-spacing: 0; }
.subs__yes { color: var(--sw-green-700); }
.subs__faq { max-width: 680px; margin: 64px auto 0; }
.subs__faq > .sw-h2 { margin-bottom: 20px; text-align: center; }
@media (max-width: 640px) {
  .subs .sw-container { padding: 0 8px; }
  .subs__recommended { order: -1; }
  .subs__plans { gap: 24px; }
  .subs__hero { text-align: left; }
  .subs__faq { margin-top: 48px; }
}

/* ── page: quote pipeline (templates/quote/pipeline.html.twig) ────── */
.pipe__tabs { margin-bottom: 20px; }
.pipe__count { margin: 0; color: var(--sw-subtle); }
.pipe__list { display: grid; gap: 12px; }
.pipe__card { padding: 18px 20px; }
.pipe__card--idle { opacity: .7; }
.pipe__top { align-items: flex-start; }
.pipe__title { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.pipe__meta { margin-top: 6px; }
.pipe__amount { color: var(--sw-ink); font-weight: 600; }
.pipe__badges { display: flex; align-items: center; gap: 8px; flex: none; }
.pipe__foot { margin-top: 14px; }
.pipe__won { color: var(--sw-green-800); font-weight: 500; }
.pipe__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) { .pipe .sw-container { padding: 0 8px; } .pipe__top { flex-direction: column; } .pipe__badges { align-self: flex-start; } }

/* ── page: homeowner dashboard (templates/home_owner/dashboard.html.twig) ── */
.hdash__city { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; }
.hdash__nudge { margin-bottom: 16px; align-items: center; text-decoration: none; }
.hdash__list { display: grid; gap: 12px; }
.hdash__top { align-items: flex-start; }
.hdash__badges { display: flex; gap: 6px; flex: none; }
.hdash__meta { margin-top: 8px; }
.hdash__closed { opacity: .65; }
@media (max-width: 640px) { .hdash .sw-container { padding: 0 8px; } }

/* ── page: homeowner job view (templates/home_owner/view_job.html.twig) ── */
.hjob__head { margin: 8px 0 28px; }
.hjob__meta { margin-top: 10px; }
.hjob__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hjob__closed { margin-top: 12px; }
.hjob__nudge { margin-top: 6px; color: var(--sw-green-800); font-weight: 500; font-size: 14px; }
.hjob__empty { margin-top: 16px; text-align: center; display: grid; gap: 8px; }
.hjob__quotes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.hjob__quote { padding: 16px 20px; }
.hjob__quote--settled { background: var(--sw-sunken); }
.hjob__quote .sw-quote { padding: 0; }
.hjob__pro { text-decoration: none; }
.hjob__pro:hover { color: var(--sw-green-800); }
.hjob__intro { margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hjob__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sw-line); }
.hjob__grow { flex: 1 1 200px; }
.hjob__desc { margin-top: 12px; font-size: 16px; }
.hjob__photos-title { margin: 20px 0 12px; }
.hjob__photos { gap: 12px; }
.hjob__photo { display: block; border-radius: var(--sw-r-card); overflow: hidden; border: 1px solid var(--sw-line); }
.hjob__photo img { display: block; width: 100%; height: 128px; object-fit: cover; }
.hjob__reach { margin-bottom: 12px; }
.hjob__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hjob__pros { margin-top: 16px; }
.hjob__danger { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.hjob__id { text-align: center; padding-top: 8px; }
@media (max-width: 640px) { .hjob .sw-container { padding: 0 8px; } .hjob__danger { flex-direction: column; align-items: stretch; } .hjob__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── pages: login and password reset (templates/security, templates/reset_password) ── */
.auth__wrap { display: flex; justify-content: center; padding-top: 48px; padding-bottom: 72px; }
.auth__card { width: 100%; max-width: 440px; padding: 32px; }
.auth__title { text-align: center; font-size: 26px; }
.auth__title--spaced { margin-top: 16px; }
.auth__card .sw-icon-tile { display: flex; margin: 0 auto; }
.auth__sub { text-align: center; margin-top: 8px; font-size: 14px; }
.auth__alert { margin-top: 20px; }
.auth__form { margin-top: 24px; display: grid; gap: 16px; }
.auth__form .sw-field + .sw-field { margin-top: 0; }
.auth__password { position: relative; }
.auth__password .sw-input { padding-right: 56px; }
.sw-label .sw-link { display: inline-block; padding: 12px; margin: -12px; font-weight: 600; }
.auth__remember { margin-top: -4px; }
.auth__foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--sw-line); text-align: center; font-size: 14px; }
.auth__foot .sw-link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 8px 0 0; }
.auth__help { margin-top: 24px; }
.auth__help ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--sw-muted); }
@media (max-width: 640px) { .auth__wrap { padding-top: 24px; padding-left: 8px; padding-right: 8px; } .auth__card { padding: 24px 20px; } }

/* form macro: stacked error list */
.sw-error-list { list-style: none; margin: 0; padding: 0; }
.sw-field + .sw-field { margin-top: 16px; }

/* ── post-a-job flow (templates/create_job) ───────────────────────── */
.jobflow { padding: 24px 8px 56px; }
.jobflow__card { max-width: 640px; margin: 24px auto 48px; padding: 28px; }
.jobflow__progress { margin-bottom: 24px; }
.jobflow__cancel { font-size: 14px; }
.jobflow__bar { margin-top: 10px; }
.jobflow__form { margin-top: 4px; display: grid; gap: 20px; }
.jobflow__form .sw-field + .sw-field { margin-top: 0; }
.jobflow__sub { margin-top: 6px; font-size: 14px; }
.jobflow__actions { margin-top: 24px; display: flex; justify-content: flex-end; }
.jobflow__check { margin: 16px 0; }
.jobflow__otphead { text-align: center; display: grid; gap: 12px; justify-items: center; margin-bottom: 28px; }
.jobflow__otptext { display: grid; gap: 8px; }
.jobflow__otp { width: 52px; height: 60px; padding: 0; text-align: center; font-size: 24px; font-weight: 600; }
.jobflow__resend { text-align: center; margin-top: 16px; }
@media (max-width: 640px) { .jobflow__card { padding: 20px 16px; margin-top: 8px; } .jobflow__otp { width: 44px; height: 52px; } .jobflow__actions .sw-btn { width: 100%; } }

/* ── standalone error pages (templates/bundles/TwigBundle/Exception) ── */
.errpage { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--sw-bg); font: 400 15px/1.55 var(--sw-font); -webkit-font-smoothing: antialiased; }
.errpage__bar { padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--sw-line); }
.errpage__logo { display: block; height: 32px; width: auto; }
.errpage__main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.errpage__box { max-width: 480px; text-align: center; }
.errpage__title { margin-top: 10px; }
.errpage__body { margin-top: 12px; }
.errpage__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── public content pages (contact, about) ────────────────────────── */
.page__head { margin-bottom: 32px; }
.page__lead { margin-top: 12px; }
.page__h2 { margin-bottom: 16px; }
@media (max-width: 640px) { .page .sw-container { padding: 0 8px; } }
.page__prose { max-width: 680px; margin: 0 auto 48px; }
.page__mission { max-width: 760px; margin: 0 auto 56px; padding: 40px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.page__mission .sw-icon-tile { margin: 0; }
@media (max-width: 640px) { .page__mission { padding: 28px 20px; } }
.page__hero { max-width: 820px; margin: 8px auto 40px; text-align: center; }
.page__hero .sw-display { font-size: 40px; }
@media (max-width: 640px) { .page__hero { text-align: left; } .page__hero .sw-display { font-size: 30px; } }

/* ── page: quote as the homeowner sees it (templates/proposal/client_view.html.twig) ── */
.qview__head { margin-bottom: 28px; }
.qview__for { margin-top: 8px; }
.qview__row { align-items: flex-start; }
.qview__row .sw-grow { display: grid; }
.qview__addons-head { padding: 12px 20px 4px; }
.qview__totals .sw-kv { width: 100%; }
.qview__cta-text { margin-top: 6px; font-size: 14px; }
.qview__actions { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qview__text { margin: 10px 0 0; white-space: pre-wrap; line-height: 1.65; color: var(--sw-text); }
.qview__images { padding: 16px; gap: 12px; }
.qview__image { margin: 0; position: relative; border-radius: var(--sw-r-card); overflow: hidden; aspect-ratio: 1; background: var(--sw-sunken); }
.qview__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qview__image figcaption { position: absolute; top: 8px; right: 8px; }
.qview__swatch { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--sw-line); flex: none; }
.qview__pdf { text-align: center; margin: 0 0 8px; }
@media (max-width: 640px) { .qview .sw-container { padding: 0 8px; } .qview__actions { grid-template-columns: minmax(0, 1fr); } }

/* ── simple form pages (support, review submit) ───────────────────── */
.form-page__head { margin-bottom: 28px; }
.form-page__head--center { text-align: center; }
.form-page__lead { margin-top: 10px; }
.form-page__alert { margin-bottom: 16px; }
.form-page__job { margin-bottom: 16px; display: grid; gap: 8px; }
.form-page__form { display: grid; gap: 20px; }
.form-page__form .sw-field + .sw-field { margin-top: 0; }
.form-page__stars { display: flex; gap: 4px; }
.form-page__stars .star-button { background: none; border: 0; padding: 4px; font-size: 36px; line-height: 1; cursor: pointer; transition: transform .1s; }
.form-page__stars .star-button:hover { transform: scale(1.1); }
.form-page__submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--sw-line); }
.form-page__note { text-align: center; margin-top: 20px; }
@media (max-width: 640px) { .form-page .sw-container { padding: 0 8px; } .form-page__submit { flex-direction: column-reverse; align-items: stretch; text-align: center; } .form-page__submit .sw-btn { width: 100%; } }

/* ── bridge: legacy "airbnb" classes follow the design system ──────────
   The home, directory and profession pages still use the older class set
   (btn-airbnb-*, container-airbnb, Tailwind utilities). Their markup and text are
   SEO-bearing and stay untouched; this section only aligns what they look like:
   one heading face, the system's action colour (white on #15803d passes AA, on
   #16a34a it does not), the same corner radius and neutral borders. ── */
h1, h2, h3 { font-family: var(--sw-display), var(--sw-font); letter-spacing: -.015em; }
.btn-airbnb-primary { background: var(--sw-green-700); border-radius: var(--sw-r-control); box-shadow: var(--sw-shadow-1); }
.btn-airbnb-primary:hover { background: var(--sw-green-800); transform: none; box-shadow: var(--sw-shadow-1); }
.btn-airbnb-secondary { border-color: var(--sw-line-strong); border-radius: var(--sw-r-control); box-shadow: var(--sw-shadow-1); }
.btn-airbnb-secondary:hover { background: var(--sw-sunken); }
.btn-airbnb-outline { border-color: var(--sw-line-strong); border-radius: var(--sw-r-control); }
.btn-airbnb-outline:hover { border-color: var(--sw-subtle); background: var(--sw-sunken); }
.card-airbnb { border-radius: var(--sw-r-card); }

/* ── post-a-job success (templates/create_job/success.html.twig) ── */
.jobsuccess__hero { text-align: center; display: grid; justify-items: center; gap: 12px; margin-bottom: 32px; }
.jobsuccess__check { background: var(--sw-green-100); color: var(--sw-green-700); width: 64px; height: 64px; border-radius: 50%; }
.jobsuccess__steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 20px; }
.jobsuccess__steps li { display: flex; gap: 14px; align-items: flex-start; }
.jobsuccess__cta { display: grid; gap: 12px; justify-items: center; }
.jobsuccess__cta .sw-btn { width: 100%; }
.jobsuccess__share { display: flex; gap: 8px; margin-top: 16px; }
.jobsuccess__share .sw-btn { flex: 1; }
.jobsuccess__share .sw-btn:last-child { flex: none; }
.jobsuccess__toast { text-align: center; margin-top: 10px; color: var(--sw-green-800); font-weight: 500; }
@media (max-width: 640px) { .jobsuccess .sw-container { padding: 0 8px; } }
@media (max-width: 640px) { .sw-sheet { max-width: none; } }

/* ── page: messages inbox (templates/message) ──────────────────────── */
.inbox__list { overflow: hidden; }
.inbox__row { align-items: flex-start; padding: 16px 20px; }
.inbox__row--unread { background: var(--sw-green-50); }
.inbox__row .sw-avatar { margin-top: 2px; }
.inbox__row .sw-count { margin-top: 4px; }
.inbox__row .sw-icon { margin-top: 12px; }
.inbox__line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.inbox__time { margin: 0; font-size: 12px; flex: none; }
.inbox__job, .inbox__last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__last--unread { color: var(--sw-ink); font-weight: 500; }
.inbox__locked { color: var(--sw-amber-800); font-weight: 500; }
@media (max-width: 640px) { .inbox .sw-container { padding: 0 8px; } }

/* Manrope's word space is narrow; with tight tracking two words can read as one. */
h1, h2, h3, .sw-display, .sw-h1, .sw-h2, .sw-h3, .sw-money { word-spacing: .06em; }

/* ── page: professional profile shell (templates/professional/profile.html.twig) ── */
.profile__head { display: flex; gap: 24px; align-items: center; }
.profile__trade { margin-top: 4px; font-size: 16px; }
.profile__where { margin-top: 10px; justify-content: center; }
.profile__trust { flex: none; }
.profile__block { overflow: hidden; display: block; }
.profile__danger { display: flex; gap: 16px; align-items: center; justify-content: space-between; }

/* Rating · experience · pricing: one card, three flat cells, edit icon in the corner. */
.profile__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile__stat { position: relative; display: block; padding: 18px 20px; min-width: 0; }
.profile__stat + .profile__stat { border-left: 1px solid var(--sw-line); }
.profile__stat p { margin: 0; }
.profile__stat-value { font: 800 24px/1.2 var(--sw-display); letter-spacing: -.02em; color: var(--sw-ink); margin: 6px 0 2px !important; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile__stat-value small { font: 500 14px/1 var(--sw-font); letter-spacing: 0; color: var(--sw-muted); }
.profile__stat-value.is-empty { color: var(--sw-line-strong); }
.profile__stat-edit { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; }
.profile__stat-add { background: none; border: 0; padding: 0; font-size: 13px; cursor: pointer; }
.profile__stat-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sw-line); }

/* Shared bits inside section cards. */
.profile__empty { border: 1.5px dashed var(--sw-line-strong); border-radius: var(--sw-r-card); background: var(--sw-bg); padding: 24px 16px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.profile__empty p { margin: 0; max-width: 420px; }
.profile__text { color: var(--sw-text); line-height: 1.65; overflow-wrap: anywhere; }
.profile__text > * + * { margin-top: 12px; }
.profile__fine { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--sw-subtle); }
.profile__edit { margin-top: 16px; }
.profile .sw-card__header .sw-small { margin-top: 2px; }

/* Business credentials: one row per credential. */
.cred { list-style: none; margin: 0; padding: 0; }
.cred__row { display: flex; gap: 14px; align-items: center; padding: 16px 20px; }
.cred__row + .cred__row { border-top: 1px solid var(--sw-line); }
.cred__main { flex: 1; min-width: 0; }
.cred__title { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0; font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--sw-ink); }
.cred__sub { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--sw-muted); }
.cred__pts { color: var(--sw-amber-800); font-weight: 600; }
.cred__row > .sw-btn { flex: none; }

/* Portfolio */
.pf__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pf__grid:not(:empty) { margin-bottom: 16px; }
.pf__empty { text-align: center; margin-bottom: 16px; }
.pf__empty p { margin: 0; }
.pf__empty .sw-small { margin-top: 4px; }
.pf__empty.hidden { display: none; }
.pf__drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; border: 1.5px dashed var(--sw-green-200); border-radius: var(--sw-r-card); background: var(--sw-green-50); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.pf__drop:hover, .pf__drop:focus-visible { border-color: var(--sw-green-600); outline: none; }
.pf__drop p { margin: 0; color: var(--sw-text); }

@media (max-width: 880px) { .profile__head { flex-wrap: wrap; } .pf__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .profile .sw-container { padding: 0 12px; }
  .profile__head { flex-direction: column; text-align: center; }
  .profile__danger { flex-direction: column; align-items: stretch; }
  .profile .sw-card__header, .profile .sw-card__body { padding-left: 16px; padding-right: 16px; }
  .profile__stats { grid-template-columns: minmax(0, 1fr); }
  .profile__stat { padding: 14px 16px; }
  .profile__stat + .profile__stat { border-left: 0; border-top: 1px solid var(--sw-line); }
  .cred__row { flex-wrap: wrap; padding: 14px 16px; }
  .cred__main { flex-basis: calc(100% - 54px); }
  .cred__row > .sw-btn { margin-left: 54px; }
  .pf__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

/* ── page: professional quote forms and preview (templates/quote/new, edit, show) ── */
.qf .sw-container { max-width: 760px; }
.qf--wide .sw-container { max-width: 1080px; }
.qf__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.qf__side { position: sticky; top: 88px; }
.qf__section { display: block; }
.qf__section + .qf__section { margin-top: 20px; }
.qf__title { margin: 0; }
.qf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qf__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qf__grid .sw-field + .sw-field { margin-top: 0; }
.qf__job { display: flex; gap: 12px; align-items: center; }
.qf__job p { margin: 0; }
.qf__mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--sw-sunken); border-radius: var(--sw-r-card); }
.qf__mode label { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; font: 600 15px/1.2 var(--sw-font); color: var(--sw-muted); cursor: pointer; transition: background .15s, color .15s; }
.qf__mode label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf__mode label.is-active { background: #fff; color: var(--sw-green-800); box-shadow: 0 1px 2px rgba(16, 24, 20, .12); }
.qf__mode label:focus-within { box-shadow: var(--sw-focus); }
.qf__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--sw-line); }
.qf__row { padding: 16px; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); background: #fff; }
.qf__row + .qf__row { margin-top: 12px; }
.qf__rowhead { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.qf__rowhead > :first-child { flex: 1; min-width: 0; }
.qf__rowgrid { display: grid; grid-template-columns: 90px 90px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: end; }
.qf__rowgrid .sw-label { font-size: 13px; font-weight: 500; color: var(--sw-muted); }
.qf__linetotal { height: 44px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; background: var(--sw-sunken); border-radius: var(--sw-r-control); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--sw-ink); }
.qf__addrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.qf__addrow .sw-input { max-width: 140px; }
.qf__add { margin-top: 16px; }
.qf__bar { position: fixed; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 60; background: #fff; border-top: 1px solid var(--sw-line); box-shadow: 0 -4px 12px rgba(16, 24, 20, .06); }
.qf__bar-in { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qf--wide .qf__bar-in { max-width: 1080px; }
.qf__bar-total { margin: 0; line-height: 1.2; }
.qf__bar-total .sw-eyebrow { display: block; margin: 0 0 2px; }
.qf__spacer { height: 160px; }
@media (min-width: 1024px) { .qf__bar { bottom: 0; } .qf__spacer { height: 96px; } }
@media (max-width: 960px) { .qf__layout { grid-template-columns: minmax(0, 1fr); } .qf__side { position: static; } }
@media (max-width: 640px) {
  .qf .sw-container { padding: 0 8px; }
  .qf__grid, .qf__grid--3 { grid-template-columns: minmax(0, 1fr); }
  .qf__grid .sw-field + .sw-field { margin-top: 0; }
  .qf__rowgrid { grid-template-columns: 1fr 1fr; }
}

/* the quote as a document (preview before sending) */
.qd { overflow: hidden; }
.qd__head { padding: 28px; display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--sw-green-700); }
.qd__head p { margin: 0; }
.qd__name { font: 700 20px/1.3 var(--sw-display); color: var(--sw-ink); }
.qd__meta { text-align: right; flex: none; }
.qd__kind { font: 800 22px/1.2 var(--sw-display); color: var(--sw-green-800); text-transform: uppercase; letter-spacing: .04em; }
.qd__blocks { padding: 20px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qd__block { padding: 16px; margin: 0; }
.qd__block p { margin: 0; }
.qd__intro { margin: 0 28px 20px; padding: 14px 16px; border-left: 3px solid var(--sw-green-600); background: var(--sw-green-50); border-radius: 0 var(--sw-r-control) var(--sw-r-control) 0; white-space: pre-line; }
.qd__sec { padding: 20px 28px; border-top: 1px solid var(--sw-line); }
.qd__sec > .sw-eyebrow { margin: 0 0 12px; }
.qd__line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 28px; border-top: 1px solid var(--sw-line); }
.qd__line p { margin: 0; }
.qd__line .sw-num { flex: none; font-weight: 600; color: var(--sw-ink); }
.qd__totals { padding: 20px 28px; background: #fbfcfb; border-top: 2px solid var(--sw-line); }
.qd__totals .sw-kv { max-width: 320px; margin-left: auto; }
.qd__terms { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.qd__terms li { display: flex; gap: 10px; align-items: flex-start; }
.qd__terms .sw-icon { margin-top: 2px; color: var(--sw-green-700); }
.qd__plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qd__plan .sw-well { padding: 12px; }
.qd__plan p { margin: 0; }
.qd__send { margin-top: 20px; }
.qd__share { display: flex; gap: 8px; margin-top: 12px; }
.qd__share .sw-input { font-family: ui-monospace, monospace; font-size: 13px; }
@media (max-width: 640px) {
  .qd__head { flex-direction: column; padding: 20px; }
  .qd__meta { text-align: left; }
  .qd__blocks, .qd__plan { grid-template-columns: minmax(0, 1fr); padding-left: 20px; padding-right: 20px; }
  .qd__plan { padding: 0; }
  .qd__sec, .qd__line, .qd__totals { padding-left: 20px; padding-right: 20px; }
  .qd__intro { margin-left: 20px; margin-right: 20px; }
}

/* ── page: feedback forms and review pages (templates/feedback, templates/review) ── */
.fb-choices { display: grid; gap: 8px; margin-top: 4px; }
.fb-choices .sw-option { align-items: center; }
.fb-choices .sw-option:has(input:checked) { border-color: var(--sw-green-700); box-shadow: inset 0 0 0 1px var(--sw-green-700); background: var(--sw-green-50); }
.fb-choices .sw-option:has(input:focus-visible) { box-shadow: var(--sw-focus); }
.fb-legend { font: 700 16px/1.4 var(--sw-font); color: var(--sw-ink); padding: 0; margin-bottom: 8px; }
.fb-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fb-stars { display: flex; gap: 6px; margin-top: 4px; }
.fb-star { width: 36px; height: 36px; cursor: pointer; color: var(--sw-line-strong); fill: currentColor; transition: transform .1s, color .1s; }
.fb-star:hover { transform: scale(1.1); }
.fb-star.is-on { color: var(--sw-star); }
.fb-card { max-width: 440px; margin: 0 auto; overflow: hidden; }
.fb-card__head { background: var(--sw-green-800); color: #fff; padding: 20px 24px; }
.fb-card__who { display: flex; align-items: center; gap: 12px; }
.fb-card__who p { margin: 0; color: #fff; }
.fb-card__name { font: 700 17px/1.3 var(--sw-display); }
.fb-card__city { font-size: 14px; opacity: .8; }
.fb-card__avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font: 700 20px/1 var(--sw-display); flex: none; }
.fb-card__stars { display: flex; gap: 2px; margin-top: 14px; }
.fb-card__stars svg { width: 20px; height: 20px; fill: currentColor; color: var(--sw-star); }
.fb-card__stars .is-off { color: rgba(255, 255, 255, .3); }
.fb-card__body { padding: 20px 24px; }
.fb-card__quote { margin: 0; font-size: 17px; line-height: 1.65; color: var(--sw-text); }
.fb-card__date { margin: 14px 0 0; font-size: 14px; color: var(--sw-subtle); }
.fb-card__foot { padding: 14px 24px; background: #fbfcfb; border-top: 1px solid var(--sw-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-card__foot p { margin: 0; }
.fb-card__share { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ── site footer (templates/components/footer.html.twig) ───────────── */
.sw-footer { background: var(--sw-forest); color: #b9c8be; font-size: 14px; padding: 56px 0 28px; }
.sw-footer a { color: #d6e2da; text-decoration: none; } .sw-footer a:hover { color: #fff; text-decoration: underline; }
.sw-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.sw-footer h4 { font: 600 12px/1.3 var(--sw-font); letter-spacing: .07em; text-transform: uppercase; color: #7f9487; margin: 0 0 14px; }
.sw-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sw-footer__bar { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: #7f9487; }
.sw-footer--slim { background: transparent; color: var(--sw-subtle); padding: 24px 0 32px; border-top: 1px solid var(--sw-line); font-size: 13px; }
.sw-footer--slim a { color: var(--sw-muted); }
.sw-footer-wrap { display: block; }
.sw-footer__cta { background: var(--sw-green-700); color: #fff; padding: 28px 0; }
.sw-footer__cta-in { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.sw-footer__cta .sw-eyebrow { color: var(--sw-green-100); margin: 0 0 6px; }
.sw-footer__cta h3 { font: 700 22px/1.3 var(--sw-display); color: #fff; margin: 0 0 6px; }
.sw-footer__cta p { margin: 0; color: var(--sw-green-100); font-size: 15px; }
.sw-footer__logo img { height: 30px; width: auto; filter: brightness(0) invert(1); display: block; }
.sw-footer__about { margin: 14px 0 0; max-width: 320px; line-height: 1.6; }
.sw-footer__socials { display: flex; gap: 10px; margin-top: 20px; }
.sw-footer .sw-footer__social { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; }
.sw-footer .sw-footer__social:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.sw-footer__social svg { width: 18px; height: 18px; fill: #fff; }
.sw-footer__award { margin-top: 32px; }
.sw-footer__award img { display: block; }
.sw-footer__legal { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.sw-footer__lang, .sw-footer__lang a, .sw-footer__lang button, .sw-footer__lang span, .sw-footer__lang svg { color: #d6e2da; }
@media (max-width: 880px) { .sw-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sw-footer__grid > :first-child { grid-column: 1 / -1; } .sw-footer__cta-in { flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) { .sw-footer { padding-bottom: 96px; } }
.sw-footer p, .sw-footer__bar { color: #b9c8be; }

/* ── page: direct contact (templates/home_owner/direct_contact_page, _direct_contact_selection) ── */
.dc__bundle { position: relative; align-items: center; padding: 16px; }
.dc__bundle.is-selected { border-color: var(--sw-green-700); box-shadow: inset 0 0 0 1px var(--sw-green-700); background: var(--sw-green-50); }
.dc__bundle p { margin: 0; }
.dc__flag { position: absolute; top: -10px; left: 16px; }
.dc__price { text-align: right; flex: none; }
.dc__head { margin-bottom: 20px; }
.dc__bar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); margin-top: 20px; display: grid; gap: 12px; background: var(--sw-green-50); border-color: var(--sw-green-100); }
.dc__count { color: var(--sw-green-800); font-weight: 700; }
.dc__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--sw-line); }
.dc__stats .sw-small { margin: 4px 0 0; }
.dc-pro { display: flex; gap: 14px; align-items: flex-start; padding: 16px; cursor: pointer; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-r-card); background: #fff; }
.dc-pro:hover { border-color: var(--sw-subtle); }
.dc-pro.selected-professional { border-color: var(--sw-green-700); box-shadow: inset 0 0 0 1px var(--sw-green-700); background: var(--sw-green-50); }
.dc-pro__mark { position: relative; flex: none; }
.dc-pro__tick { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 20, .25); display: flex; align-items: center; justify-content: center; }
.dc-pro__tick svg { width: 14px; height: 14px; fill: currentColor; color: var(--sw-subtle); }
.dc-pro__tick [data-check-icon] { color: var(--sw-green-700); }
.dc-pro__main { flex: 1; min-width: 0; }
.dc-pro__main p, .dc-pro__main h4 { margin: 0; }
.dc-pro__name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── components: tabs, professional card, homeowner contact card ───── */
.tabs-wrap__panels { margin-top: 16px; }
.pc { padding: 14px; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); background: #fff; }
.pc--unread { background: var(--sw-green-50); border-color: var(--sw-green-100); }
.pc__row { display: flex; gap: 12px; align-items: flex-start; }
.pc__main { flex: 1; min-width: 0; }
.pc__main p { margin: 2px 0 0; }
.pc__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pc__name { margin: 0; }
.pc__name a { color: inherit; text-decoration: none; } .pc__name a:hover { text-decoration: underline; }
.pc__time { flex: none; margin: 0; }
.pc__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pc__badges:empty { display: none; }
.pc__trade { color: var(--sw-green-800); font-weight: 600; }
.pc__last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__done { display: flex; gap: 6px; align-items: center; color: var(--sw-green-800); }
.pc__action { margin-top: 8px; }
.pc__touch { margin-top: 12px; display: grid; gap: 8px; text-align: center; }
.pc__touch p { margin: 0; }
.pc__contact { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.hc h2 { margin-bottom: 16px; }
.hc__card { display: grid; gap: 16px; }
.hc__row { display: flex; gap: 12px; align-items: flex-start; }
.hc__row .sw-icon { color: var(--sw-subtle); margin-top: 2px; }
.hc__row p { margin: 0; }
.hc__v { color: var(--sw-ink); font-weight: 600; }
.hc__break { word-break: break-all; }
.hc__actions { display: grid; gap: 10px; margin-top: 20px; text-align: center; }
.hc__actions p { margin: 0; }
@media (max-width: 640px) { .dc .sw-container { padding: 0 8px; } }
.dcc__intro { margin-bottom: 16px; }
.dcc__intro h2 { margin: 0 0 6px; }
.dcc__intro p { margin: 0; }
.dcc__more { margin-top: 16px; }
.hc__v p { color: var(--sw-ink); font-weight: 600; }

/* ── language switcher (templates/_language_switcher.html.twig) ─────
   Side-by-side options in a segmented control: the current language is the raised pill, the rest are links. */
.ls { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--sw-sunken); border: 1px solid var(--sw-line); border-radius: 10px; }
.ls__opt { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 30px; padding: 0 10px; border-radius: 7px; font: 600 13px/1 var(--sw-font); color: var(--sw-muted); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
a.ls__opt:hover { color: var(--sw-ink); background: rgba(255, 255, 255, .7); }
.ls__opt.is-current { background: var(--sw-surface); color: var(--sw-ink); box-shadow: var(--sw-shadow-1), 0 0 0 1px var(--sw-line); cursor: default; }
.sw-header__lang { display: inline-flex; align-items: center; }
/* phones: the header has to fit logo + language + primary button + menu button in 360px, in Sinhala and
   Tamil too (their button text is much longer than English). The options tighten, the logo and gaps
   shrink, and the primary button may truncate rather than push the menu button off screen. */
@media (max-width: 560px) {
  .sw-header__in { gap: 8px; }
  .sw-header__end { gap: 4px; min-width: 0; }
  .sw-header .sw-logo img { height: 24px; }
  .sw-header .sw-header__lang .ls { padding: 2px; }
  .sw-header .sw-header__lang .ls__opt { min-width: 28px; height: 28px; padding: 0 7px; font-size: 12px; }
  .sw-header .sw-header__end > a.sw-btn:not(.sw-header__desktop) { display: block; flex: 0 1 auto; min-width: 0; padding: 0 10px; font-size: 13px; line-height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* account dropdown and mobile menu: the options share the full row */
.sw-dropdown__lang .ls, .sw-sheet__lang .ls { display: flex; }
.sw-dropdown__lang .ls__opt, .sw-sheet__lang .ls__opt { flex: 1; }
/* dark footer */
.sw-footer__lang .ls { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.sw-footer__lang a.ls__opt:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sw-footer__lang .ls__opt.is-current { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }

/* ── page: payment cancelled (templates/payment/cancel.html.twig) ── */
.pc { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pc .sw-lead { max-width: 440px; }
.pc__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ── page: homeowner account settings ───────────────────────────── */
.hset__head { display: flex; gap: 24px; align-items: center; }
.hset__head .sw-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hset__head p { margin: 4px 0 0; }
.hset__city { margin-top: 8px; }
.hset__count { flex: none; text-align: center; }
.hset__danger { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.hset .sw-listrow .sw-hint { margin-top: 4px; }
@media (max-width: 640px) { .hset .sw-container { padding: 0 8px; } .hset__head { flex-direction: column; text-align: center; } .hset__danger { flex-direction: column; align-items: stretch; } }

/* ── page: chat (templates/message/chat.html.twig + assets/controllers/chat_controller.js) ── */
.ch { display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; height: calc(100dvh - var(--sw-header-h)); background: #fff; overflow: hidden; }
.ch__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--sw-line); flex: none; }
.ch__who { flex: 1; min-width: 0; }
.ch__title { margin: 0; font: 700 15px/1.3 var(--sw-display); color: var(--sw-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch__sub { margin: 2px 0 0; font-size: 13px; color: var(--sw-muted); display: flex; gap: 6px; align-items: center; overflow: hidden; white-space: nowrap; }
.ch__messages { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; background: var(--sw-bg); }
.ch__msg { display: flex; gap: 8px; max-width: 82%; }
.ch__msg--own { align-self: flex-end; flex-direction: row-reverse; }
.ch__msg--in { align-self: flex-start; }
.ch__avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; font: 700 11px/1 var(--sw-display); }
.ch__avatar--pro { background: var(--sw-green-100); color: var(--sw-green-900); }
.ch__avatar--home { background: var(--sw-amber-50); color: var(--sw-amber-800); }
.ch__col { min-width: 0; }
.ch__bubble { padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--sw-line); color: var(--sw-text); border-bottom-left-radius: 4px; }
.ch__msg--own .ch__bubble { background: var(--sw-green-700); border-color: var(--sw-green-700); color: #fff; border-radius: 16px; border-bottom-right-radius: 4px; }
.ch__bubble p { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: inherit; }
/* Chat photos and PDFs (message/_message.html.twig) and the composer's file chips (chat.html.twig). */
.ch__files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ch__msg--own .ch__files { justify-content: flex-end; }
.ch__photo img { display: block; max-width: min(240px, 100%); height: auto; max-height: 240px; object-fit: cover; border-radius: 12px; border: 1px solid var(--sw-line); background: var(--sw-bg); }
.ch__file { display: inline-flex; gap: 6px; align-items: center; max-width: 240px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--sw-line); background: #fff; color: var(--sw-ink); font-size: 14px; text-decoration: none; }
.ch__file span, .ch__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch__attach { position: relative; }
.ch__attach input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ch__meta { display: flex; gap: 6px; align-items: center; margin-top: 4px; padding: 0 4px; }
.ch__msg--own .ch__meta { justify-content: flex-end; }
.ch__time { font-size: 12px; color: var(--sw-subtle); flex: none; }
.ch__read { color: var(--sw-green-600); width: 14px; height: 14px; }
/* Delivery state of own messages (message/_tick.html.twig) and the optimistic bubble (chat.html.twig). */
.ch__tick { display: inline-flex; color: var(--sw-subtle); }
.ch__tick .sw-icon { width: 14px; height: 14px; }
.ch__tick[data-tick="read"] { color: var(--sw-green-600); }
.ch__tick[data-tick="sent"] .ch__tick-read, .ch__tick[data-tick="read"] .ch__tick-sent { display: none; }
.ch__state { display: none; font-size: 12px; color: var(--sw-subtle); }
[data-send-state] .ch__tick { display: none; }
[data-send-state="pending"] .ch__state--pending { display: inline; }
[data-send-state="pending"] .ch__bubble { opacity: .7; }
[data-send-state="failed"] .ch__state--failed { display: inline-flex; gap: 6px; align-items: center; color: var(--sw-red-800); font-weight: 600; }
[data-send-state="failed"] .ch__bubble { background: #fff; color: var(--sw-text); border-color: var(--sw-red-800); }
.ch__retry { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.ch__earlier { align-self: center; flex: none; }
.ch__pill-wrap { position: relative; height: 0; flex: none; }
.ch__pill { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); box-shadow: 0 4px 12px rgba(16, 24, 20, .14); z-index: 5; }
.ch__pill.hidden { display: none; }
.ch__conn { margin: 0; padding: 6px 16px; flex: none; font-size: 13px; text-align: center; background: var(--sw-amber-50); color: var(--sw-amber-800); }
.ch__conn.hidden { display: none; }
.ch__card { align-self: center; width: min(100%, 380px); background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); padding: 14px; }
.ch__card-top { display: flex; gap: 12px; align-items: flex-start; }
.ch__card-top p { margin: 0; }
.ch__amount { font-weight: 700; color: var(--sw-ink); margin-top: 4px !important; }
.ch__card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sw-line); }
.ch__card-state { display: flex; gap: 6px; align-items: center; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--sw-line); font-size: 13px; font-weight: 600; color: var(--sw-muted); }
.ch__card-state--ok { color: var(--sw-green-800); }
.ch__card-state--warn { color: var(--sw-amber-800); }
.ch__notice { align-self: center; width: min(100%, 380px); }
.ch__empty { margin: auto; padding: 32px 16px; }
.ch__empty p { margin: 6px 0 0; }
.ch__typing { padding: 6px 16px; font-size: 13px; color: var(--sw-muted); background: #fff; flex: none; display: flex; gap: 8px; align-items: center; }
.ch__typing.hidden { display: none; }
.ch__dots { display: inline-flex; gap: 3px; }
.ch__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--sw-subtle); animation: ch-bounce 1s infinite; }
.ch__dots i:nth-child(2) { animation-delay: .15s; } .ch__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ch-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
/* Composer: one card (Slack / Intercom / Linear pattern). Field on top, tools + send on a 44px bar. */
.ch__composer { flex: none; background: #fff; border-top: 1px solid var(--sw-line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.ch__box { background: var(--sw-surface); border: 1px solid var(--sw-line-strong); border-radius: 14px; box-shadow: var(--sw-shadow-1); }
.ch__box:has(.ch__text:disabled) { background: var(--sw-sunken); border-color: var(--sw-line); box-shadow: none; }
.ch__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
.ch__chips:empty { display: none; }
.ch__chip span { line-height: 1.4; }
.ch__chip { height: 30px; padding: 0 10px 0 12px; font-size: 13px; max-width: 220px; background: var(--sw-sunken); border-color: var(--sw-line); }
.ch__text { display: block; width: 100%; min-height: 40px; max-height: 128px; padding: 12px 14px 4px; border: 0; border-radius: 14px 14px 0 0; background: transparent; color: var(--sw-ink); font: 400 16px/24px var(--sw-font); resize: none; box-shadow: none; outline: none; overflow-y: auto; }
.ch__text:focus, .ch__text:focus-visible { outline: none; box-shadow: none; border-radius: 14px 14px 0 0; }
.ch__text::placeholder { color: var(--sw-subtle); }
.ch__text:disabled { cursor: not-allowed; }
.ch__box:has(.ch__text:disabled) .ch__send { display: none; }
.ch__bar { display: flex; align-items: center; gap: 8px; padding: 4px 8px 8px; }
.ch__tools { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.ch__quick { position: relative; display: flex; }
.ch__tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--sw-muted); font: 500 13px/1 var(--sw-font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.ch__tool[hidden] { display: none; }
.ch__tool--label { padding: 0 10px; }
.ch__tool:hover { background: var(--sw-sunken); color: var(--sw-ink); }
.ch__tool:active { background: var(--sw-line); }
.ch__attach:focus-within { box-shadow: var(--sw-focus); }
.ch__count { flex: none; font: 500 12px/1 var(--sw-font); font-variant-numeric: tabular-nums; color: var(--sw-subtle); opacity: 0; transition: opacity .15s; pointer-events: none; }
.ch__count.is-warn { opacity: 1; color: var(--sw-amber-800); } .ch__count.is-danger { opacity: 1; color: var(--sw-red-800); font-weight: 600; }
.ch__send { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: var(--sw-green-700); color: #fff; cursor: pointer; transition: background-color .15s, color .15s, transform .05s; }
.ch__send .sw-icon { width: 18px; height: 18px; stroke-width: 2.25; }
.ch__send:hover:not(:disabled) { background: var(--sw-green-800); }
.ch__send:active:not(:disabled) { transform: scale(.96); }
.ch__send:focus-visible { outline: none; box-shadow: var(--sw-focus); }
.ch__send:disabled { background: var(--sw-sunken); color: var(--sw-subtle); cursor: not-allowed; }
.ch__quick-menu { position: absolute; left: 0; bottom: calc(100% + 8px); width: 300px; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); box-shadow: var(--sw-shadow-2); z-index: 30; }
.ch__quick-menu.hidden { display: none; }
.ch__quick-item { display: block; width: 100%; text-align: left; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--sw-line); cursor: pointer; }
.ch__quick-item:hover, .ch__quick-item:focus-visible { background: var(--sw-sunken); outline: none; box-shadow: none; }
.ch__quick-item .sw-h4, .ch__quick-item .sw-small { display: block; margin: 0; }
.ch__quick-item .sw-small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ch__quick-manage { display: block; text-align: center; padding: 10px 14px; }
@media (min-width: 1024px) { .ch__text { font-size: 15px; } .ch__composer { padding: 14px 20px 16px; } }
@media (min-width: 1024px) { .ch { height: calc(100dvh - var(--sw-header-h) - 32px); margin-top: 16px; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); } }

/* ── bridge: legacy Tailwind form controls inside design-system pages ──
   Pages wrapped in `.profile` or `.sw-forms` keep their partials' markup; controls get the
   design-system border, radius, height, font size and focus ring. Padding is left alone so
   inputs with a currency prefix (`pl-7`) keep their room. */
:is(.profile, .sw-forms) :is(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=range], [type=submit], [type=button], [type=color]), select, textarea) {
  border: 1px solid var(--sw-line-strong); border-radius: var(--sw-r-control); background-color: var(--sw-surface);
  color: var(--sw-ink); font-size: 16px; line-height: 1.4; min-height: var(--sw-control-h); box-shadow: none;
}
:is(.profile, .sw-forms) textarea { min-height: 112px; }
:is(.profile, .sw-forms) :is(input, select, textarea):hover { border-color: var(--sw-subtle); }
:is(.profile, .sw-forms) :is(input, select, textarea):focus { outline: none; border-color: var(--sw-green-600); box-shadow: var(--sw-focus); }
:is(.profile, .sw-forms) :is(input[type=checkbox], input[type=radio]) { accent-color: var(--sw-green-700); }
:is(.profile, .sw-forms) label { color: var(--sw-ink); }

/* ── profile: review overview (templates/professional/_review_analytics, _reviews_content) ── */
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc__row { border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); padding: 12px 12px 14px 14px; }
.svc__head { display: flex; gap: 12px; align-items: center; }
.svc__icon { font-size: 20px; line-height: 1; }
.svc__remove { width: 36px; height: 36px; }
.svc__remove:hover { color: var(--sw-red-800); background: var(--sw-red-50); }
.svc__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.svc__chip { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 14px; background: var(--sw-sunken); color: var(--sw-text); font-size: 13px; line-height: 1.3; }
.svc__chip.hidden { display: none; }
.svc__more { background: none; border: 0; padding: 4px 6px; font: 600 13px/1.3 var(--sw-font); color: var(--sw-green-800); cursor: pointer; }
.svc__more:empty { display: none; }
.svc__scrim { position: fixed; inset: 0; z-index: 70; }
.svc__scrim.hidden { display: none; }
.svc__scrim .sw-h3 { margin-bottom: 8px; }
.rv { display: grid; gap: 16px; }
.rv__import { display: flex; gap: 14px; align-items: center; }
.rv__import p { margin: 0; }
.rv__share p { margin: 4px 0 0; }
.rv__request .sw-field > .sw-small { margin-top: 8px; }
.rv__request > .sw-btn { margin-top: 20px; }
.rv__request > .sw-small { margin-top: 14px; }
.rv__copy { display: flex; gap: 8px; margin: 14px 0 4px; }
.rv__copy .sw-input { flex: 1; min-width: 0; }
.ra { box-shadow: none; }
.ra__title { display: flex; gap: 12px; align-items: center; }
.ra__title p { margin: 2px 0 0; }
.ra__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.ra__metric { padding: 16px; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); background: #fff; }
.ra__metric p { margin: 0; }
.ra__metric--act { border-color: #f1d9a0; background: var(--sw-amber-50); }
.ra__value { font: 800 28px/1.2 var(--sw-display); color: var(--sw-ink); margin: 6px 0 4px !important; display: flex; gap: 8px; align-items: center; }
.ra__value .sw-stars svg { width: 14px; height: 14px; }
.ra__act { color: var(--sw-amber-800); font-weight: 600; }
.ra__recent { margin: 0 0 12px; }
.ra__review { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); background: #fff; }
.ra__rating { flex: none; display: grid; gap: 4px; justify-items: center; align-content: start; }
.ra__num { margin: 0; font-weight: 700; color: var(--sw-ink); }
.ra__off { color: var(--sw-line-strong); }
.ra__body { min-width: 0; }
.ra__body p { margin: 0; }
.ra__who { margin-top: 4px !important; font-weight: 600; }
.ra__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ra__empty { padding: 8px 0 0; display: grid; gap: 8px; justify-items: center; text-align: center; }
.ra__empty p { margin: 0; }
.ra__empty .sw-alert { text-align: left; margin-top: 8px; }
.ra__grow { margin-top: 20px; }
@media (max-width: 880px) { .ra__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rv__import { flex-direction: column; align-items: stretch; } }

/* ── profile: services offered (templates/professional/service) ──── */
.sw-footer__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 880px) { .sw-footer__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } .sw-footer__bar .sw-footer__socials { margin-top: 0; }

/* ── admin shell (templates/admin/base.html.twig) ───────────────── */
.adm { background: var(--sw-bg); }
.adm__head { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--sw-line); }
.adm__bar { display: flex; gap: 12px; align-items: center; height: 56px; }
.adm__nav { padding-top: 0; padding-bottom: 0; }
.adm__nav .sw-tabs { border-bottom: 0; gap: 20px; }
@media (max-width: 640px) { .adm__bar { height: 52px; } .adm__bar .sw-btn { padding: 0 10px; } }

/* ── directory and home professional cards (templates/components/*pro_card*, _unclaimed_prospect_card) ── */
.sw-badge__fill { width: 13px; height: 13px; fill: currentColor; flex: none; }
.dcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.dcard:hover { border-color: var(--sw-subtle); box-shadow: var(--sw-shadow-1); }
.dcard__link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.dcard__hero { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sw-sunken); }
.dcard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcard__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sw-green-50), var(--sw-sunken)); }
.dcard__ph-icon { width: 56px; height: 56px; color: var(--sw-green-600); opacity: .5; }
.dcard__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 20px); z-index: 2; }
.dcard__badges--end { left: auto; right: 10px; justify-content: flex-end; }
.dcard__body { padding: 16px; display: grid; gap: 10px; }
.dcard__body p { margin: 0; }
.dcard__id { display: flex; gap: 12px; align-items: flex-start; }
.dcard__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--sw-green-100); display: inline-flex; align-items: center; justify-content: center; }
.dcard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dcard__initial { font: 700 14px/1 var(--sw-display); color: var(--sw-green-900); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.dcard__who { flex: 1; min-width: 0; }
.dcard__row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.dcard__name { margin: 0; font: 700 15px/1.3 var(--sw-display); color: var(--sw-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard__name--lg { font-size: 17px; white-space: normal; }
.dcard__link:hover .dcard__name { color: var(--sw-green-800); }
.dcard__sub { margin: 2px 0 0; font-size: 13px; color: var(--sw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard__rating { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; color: var(--sw-muted); flex: none; }
.dcard__rating .sw-badge__fill { color: var(--sw-star); }
.dcard__rating strong { color: var(--sw-ink); }
.dcard__rowwrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dcard__meta { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--sw-muted); }
.dcard__meta .sw-icon { color: var(--sw-subtle); }
.dcard__foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--sw-line); font-size: 14px; }
.dcard__foot strong { color: var(--sw-ink); }
.dcard__cta { font: 600 13px/1 var(--sw-font); color: var(--sw-green-800); padding: 8px 12px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--sw-green-600); transition: background .15s, color .15s; }
.dcard__link:hover .dcard__cta { background: var(--sw-green-700); color: #fff; }
.dcard__quote { font-size: 13px; line-height: 1.5; color: var(--sw-muted); font-style: italic; }
.dcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dcard__price { font-size: 13px; font-weight: 600; color: var(--sw-text); }
.dcard__note { text-align: center; }
.dcard__site { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.dcard__cta-wrap { margin-top: auto; }
.dcard--plain { padding: 18px; gap: 12px; }
.dcard--plain p { margin: 0; }
/* browse card (city/profession carousel) */
.dcard--browse { border: 0; background: transparent; overflow: visible; }
.dcard--browse:hover { box-shadow: none; }
.dcard__box { background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.dcard__box:hover { border-color: var(--sw-subtle); box-shadow: var(--sw-shadow-1); }
.dcard--featured { border-left: 4px solid var(--sw-green-600); }
.dcard--top { border-left: 4px solid #f59e0b; background: var(--sw-amber-50); }
.dcard__strip { background: #f59e0b; color: #3b2a02; font: 700 12px/1 var(--sw-font); letter-spacing: .04em; text-align: center; padding: 7px 12px; }
.dcard__head { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 22px 16px 16px; background: var(--sw-green-50); color: inherit; text-decoration: none; overflow: hidden; }
.dcard--top .dcard__head { background: transparent; }
.dcard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; z-index: 0; }
.dcard__pic { position: relative; z-index: 1; flex: none; }
.dcard__pic > div { position: relative; }
.dcard__tick { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--sw-green-600); color: #fff; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; }
.dcard__tick .sw-icon { width: 12px; height: 12px; stroke-width: 2.5; }
.dcard__head .dcard__who { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: start; padding-top: 4px; }
.dcard__head .dcard__who > * { margin: 0; }
.dcard__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dcard__stat { font-weight: 700; color: var(--sw-ink); font-size: 15px; }
.dcard--browse .dcard__body { flex: 1; align-content: start; }
.dcard__link { min-width: 0; }
.dcard__body { grid-template-columns: minmax(0, 1fr); }

/* ── public professional profile (templates/professional/public_profile, prospect_profile, public_profile_portfolio, components/_booking_card) ── */
.pp { background: #fff; }
.pp [data-show-more-target].hidden { display: none !important; }
.pp__main { padding-top: 32px; padding-bottom: 96px; max-width: 1040px; }
.pp__head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.pp__pic { position: relative; flex: none; }
.pp__tick { position: absolute; right: 0; bottom: 4px; width: 30px; height: 30px; border-radius: 50%; background: var(--sw-green-600); color: #fff; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; }
.pp__tick .sw-icon { width: 15px; height: 15px; stroke-width: 2.5; }
.pp__who { flex: 1; min-width: 0; display: grid; gap: 10px; }
.pp__who > * { margin: 0; }
.pp__top { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.pp__name { font: 800 30px/1.15 var(--sw-display); letter-spacing: -.02em; color: var(--sw-ink); margin: 0; overflow-wrap: anywhere; }
.pp__sub { color: var(--sw-muted); font-size: 16px; margin: 4px 0 0; }
.pp__row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; color: var(--sw-text); }
.pp__row .sw-badge__fill { color: var(--sw-star); width: 15px; height: 15px; }
.pp__row strong { color: var(--sw-ink); }
.pp__sep { color: var(--sw-line-strong); }
.pp__badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp__gallery { margin-bottom: 32px; border-radius: var(--sw-r-panel); overflow: hidden; position: relative; background: var(--sw-sunken); }
.pp__gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp__gallery picture { display: block; width: 100%; height: 100%; }
.pp__g1 { aspect-ratio: 16 / 9; }
.pp__g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 320px; }
.pp__g5 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 420px; }
.pp__g5-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; min-height: 0; }
.pp__g5-grid > div, .pp__g5 > div, .pp__g2 > div { overflow: hidden; min-height: 0; background: var(--sw-sunken); }
.pp__all { position: absolute; right: 16px; bottom: 16px; }
.pp__empty { border: 1.5px dashed var(--sw-line-strong); border-radius: var(--sw-r-panel); background: var(--sw-bg); padding: 40px 16px; text-align: center; color: var(--sw-subtle); display: grid; justify-items: center; gap: 8px; margin-bottom: 32px; }
.pp__empty .sw-icon { width: 36px; height: 36px; }
.pp__empty p { margin: 0; font-weight: 500; }
.pp__note { border: 1px dashed var(--sw-line-strong); background: var(--sw-bg); border-radius: var(--sw-r-card); padding: 16px 18px; color: var(--sw-muted); font-size: 14px; }
.pp__note p { margin: 0; }
.pp__note--center { text-align: center; padding: 28px 16px; display: grid; justify-items: center; gap: 4px; }
.pp__note--center .sw-icon { width: 32px; height: 32px; color: var(--sw-line-strong); }
.pp__sec { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--sw-line); }
.pp__sec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.pp__sec > h2 { font: 700 21px/1.25 var(--sw-display); letter-spacing: -.015em; color: var(--sw-ink); margin: 0 0 16px; display: flex; gap: 8px; align-items: center; }
.pp__sec > h2 .sw-badge__fill { width: 20px; height: 20px; color: var(--sw-star); }
.pp__text { color: var(--sw-text); line-height: 1.65; }
.pp__text > * + * { margin-top: 12px; }
.pp__fine { margin: 14px 0 0; font-size: 12px; color: var(--sw-subtle); }
.pp__fine a { color: var(--sw-green-800); text-decoration: underline; }
.pp__link { background: none; border: 0; padding: 0; margin-top: 12px; font: 600 14px/1.4 var(--sw-font); color: var(--sw-green-800); text-decoration: underline; cursor: pointer; }
.pp__link:hover { text-decoration: none; }
.pp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp__chips .sw-chip { height: 36px; }
.pp__chips .sw-chip .sw-icon { width: 15px; height: 15px; color: var(--sw-green-600); }
.pp__chips .sw-chip--tag { background: var(--sw-green-50); border-color: var(--sw-green-200); color: var(--sw-green-800); cursor: default; }
.pp__group { flex-basis: 100%; font: 600 12px/1.3 var(--sw-font); letter-spacing: .07em; text-transform: uppercase; color: var(--sw-subtle); margin: 8px 0 0; }
.pp__group:first-child { margin-top: 0; }
.pp__creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pp__cred { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); background: #fff; min-width: 0; }
.pp__cred > div { min-width: 0; }
.pp__cred p { margin: 0; }
.pp__cred-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--sw-sunken); color: var(--sw-muted); display: flex; align-items: center; justify-content: center; flex: none; }
.pp__cred-ic .sw-icon { width: 20px; height: 20px; }
.pp__cred-t { font-weight: 600; color: var(--sw-ink); font-size: 14px; overflow-wrap: anywhere; }
.pp__cred-s { font-size: 12px; color: var(--sw-muted); }
.pp__cred--ok { background: var(--sw-green-50); border-color: var(--sw-green-200); }
.pp__cred--ok .pp__cred-ic { background: var(--sw-green-100); color: var(--sw-green-700); }
.pp__cred--ok .pp__cred-t { color: var(--sw-green-900); }
.pp__cred--ok .pp__cred-s { color: var(--sw-green-800); }
.pp__cred--off { border-style: dashed; background: var(--sw-bg); }
.pp__cred--off .pp__cred-ic { color: var(--sw-line-strong); }
.pp__cred--off .pp__cred-t { font-weight: 500; color: var(--sw-subtle); }
.pp__big { font: 800 24px/1.1 var(--sw-display); color: var(--sw-ink); margin: 0; }
.pp__sum { display: flex; gap: 24px; align-items: center; padding: 20px; background: var(--sw-bg); border: 1px solid var(--sw-line); border-radius: var(--sw-r-card); margin-bottom: 24px; }
.pp__score { text-align: center; flex: none; }
.pp__score p { margin: 6px 0 0; }
.pp__score .pp__big { font-size: 48px; }
.pp__bars { flex: 1; min-width: 0; display: grid; gap: 6px; }
.pp__bar { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--sw-muted); }
.pp__bar > span:first-child { width: 12px; text-align: right; }
.pp__bar > span:last-child { width: 20px; }
.pp__track { flex: 1; height: 6px; background: var(--sw-line); border-radius: 3px; overflow: hidden; }
.pp__track > i { display: block; height: 100%; background: var(--sw-star); border-radius: 3px; }
.pp__reviews > * + * { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--sw-line); }
.pp__review-h { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.pp__review-h p { margin: 0; }
.pp__review p.pp__text { margin: 8px 0 0; font-size: 14px; }
.pp__review .sw-stars svg { width: 15px; height: 15px; }
.pp__foot { border-top: 1px solid var(--sw-line); margin-top: 40px; padding-top: 20px; display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.pp__foot p { margin: 0; font-size: 12px; color: var(--sw-subtle); max-width: 640px; }
.pp__foot strong { color: var(--sw-muted); }
.pp__foot a { color: inherit; text-decoration: underline; white-space: nowrap; }
.pp__foot a:hover { color: var(--sw-red-600); }
/* booking card */
.pbook { background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-r-panel); box-shadow: var(--sw-shadow-2); padding: 24px; display: grid; gap: 20px; }
.pbook--sticky { position: sticky; top: 88px; }
.pbook__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pbook__price { font: 800 22px/1.2 var(--sw-display); color: var(--sw-ink); }
.pbook__price small { font: 400 14px/1 var(--sw-font); color: var(--sw-muted); }
.pbook__price--none { font: 500 17px/1.3 var(--sw-font); color: var(--sw-muted); }
.pbook__rate { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; color: var(--sw-muted); white-space: nowrap; }
.pbook__rate .sw-badge__fill { color: var(--sw-star); }
.pbook__rate strong { color: var(--sw-ink); }
.pbook form { display: grid; gap: 10px; margin: 0; }
.pbook__fine { margin: 0; text-align: center; font-size: 13px; color: var(--sw-muted); }
.pbook__list { display: grid; gap: 14px; }
.pbook__list > div { display: flex; gap: 12px; align-items: flex-start; }
.pbook__list .sw-icon { color: var(--sw-green-700); margin-top: 2px; flex: none; }
.pbook__list p { margin: 0; }
.pbook__list strong { display: block; color: var(--sw-ink); font-size: 14px; }
.pbook__list span { font-size: 13px; color: var(--sw-muted); }
.pbook__bar { display: none; }
/* gallery page */
.pg__head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.pg__head > div:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pg__head h1 { margin: 0; font: 800 22px/1.2 var(--sw-display); color: var(--sw-ink); }
.pg__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 24px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--sw-line); }
.pg__title h2 { margin: 0; font: 700 24px/1.2 var(--sw-display); color: var(--sw-ink); }
.pg__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pg__item { position: relative; overflow: hidden; border-radius: var(--sw-r-control); background: var(--sw-sunken); cursor: pointer; aspect-ratio: 4 / 3; }
.pg__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.pg__item:hover img { transform: scale(1.04); }
.pg__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(to top, rgba(0,0,0,.65), transparent); color: #fff; font-size: 12px; font-weight: 500; pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg__modal { position: fixed; inset: 0; z-index: 60; background: rgba(15, 26, 20, .82); align-items: center; justify-content: center; padding: 16px; }
.pg__modal.hidden { display: none; }
.pg__modal:not(.hidden) { display: flex; }
.pg__modal-in { position: relative; max-width: 960px; width: 100%; }
.pg__modal img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--sw-r-card); }
.pg__x { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.pg__modal-d { margin: 12px 0 0; text-align: center; font-size: 14px; color: rgba(255,255,255,.9); }
@media (max-width: 900px) {
  .pp__creds { grid-template-columns: 1fr; }
  .pg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .pp .sw-split { grid-template-columns: minmax(0, 1fr); }
  .pbook--sticky { position: static; }
  .pg__side { display: none; }
  .pbook__bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--sw-line); padding: 12px 16px; gap: 12px; align-items: center; }
  .pbook__bar form { display: flex; gap: 12px; align-items: center; flex: 1; margin: 0; }
  .pbook__bar form > div { flex: 1; font-size: 14px; }
  .pp__main { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .pp__head { flex-direction: column; gap: 16px; }
  .pp__name { font-size: 24px; }
  .pp__g5 { height: 260px; }
  .pp__g2 { height: 220px; }
  .pp__sum { flex-direction: column; align-items: stretch; }
  .pp__foot { flex-direction: column; align-items: flex-start; }
}
/* the logged-in professional's own profile keeps its fixed action bar on every width */
.pbook__bar--all { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--sw-line); padding: 12px 24px; gap: 12px; align-items: center; }
.pbook__bar--all p { margin: 0; }
.pp__chips .sw-chip { white-space: normal; height: auto; min-height: 36px; padding-top: 7px; padding-bottom: 7px; line-height: 1.3; }

/* ── Chat-style homepage hero (LK) ─────────────────────────────────── */
.lh-hero { padding: 12px 12px 0; }
.lh-hero__card {
  border-radius: 28px;
  background: linear-gradient(180deg, var(--sw-green-100) 0%, var(--sw-green-50) 55%, #fff 100%);
  padding: 56px 20px 40px;
}
.lh-hero__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.lh-hero__title {
  font-family: var(--sw-display, inherit);
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; color: #0f1f14;
  margin: 0 0 28px;
}
.lh-pill {
  display: inline-block; padding: 0 .35em; border-radius: .5em;
  background: var(--sw-green-200); color: #14532d;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lh-assistant { display: flex; align-items: center; gap: 10px; margin: 0 auto 10px; max-width: 640px; }
.lh-assistant__avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #14532d; color: #fff; font-weight: 800;
}
.lh-assistant__bubble {
  margin: 0; padding: 9px 16px; border-radius: 999px; background: #fff; color: #0f1f14;
  font-weight: 600; font-size: 15px; text-align: left; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.lh-box {
  max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid rgba(20,83,45,.12);
  border-radius: 22px; box-shadow: 0 8px 30px rgba(20,83,45,.10); text-align: left;
}
/* No coloured ring on focus (as on the reference): the caret shows where you are. */
.lh-box__input:focus, .lh-box__input:focus-visible { outline: 0 !important; box-shadow: none !important; border-color: transparent !important; --tw-ring-shadow: 0 0 #0000 !important; }
.lh-box__input {
  display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent;
  padding: 18px 20px 4px; font-size: 16px; line-height: 1.5; color: #0f1f14; font-family: inherit;
}
.lh-box__bar { display: flex; justify-content: flex-end; padding: 8px 12px 12px; }
.lh-box__submit {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  height: 44px; padding: 0 20px; border-radius: 999px; background: var(--sw-green-600); color: #fff;
  font-weight: 700; font-size: 15px; font-family: inherit;
}
.lh-box__submit:hover { background: #15803d; }
.lh-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.lh-chip {
  display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff;
  border: 1px solid rgba(20,83,45,.15); color: #0f1f14; font-size: 14px; font-weight: 600; text-decoration: none;
}
.lh-chip:hover { border-color: var(--sw-green-500); background: var(--sw-green-50); }
.lh-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; list-style: none;
  padding: 0; margin: 22px 0 0; font-size: 14px; color: #3f5a47;
}
.lh-prolink { display: inline-block; margin-top: 14px; font-size: 14px; color: #3f5a47; text-decoration: none; }
.lh-prolink strong { color: #14532d; }
@media (max-width: 560px) {
  .lh-hero { padding: 8px 8px 0; }
  .lh-hero__card { border-radius: 22px; padding: 36px 14px 28px; }
  .lh-assistant__bubble { font-size: 14px; }
}

/* ── Chat-style homepage: the rest of the page (LK) ────────────────── */
body:has(.lh-page) .sw-header { border-bottom-color: transparent; }
.lh-page .section-airbnb:not(.home-testimonials):not(.pro-band--soft) { background: #fff !important; border: 0 !important; }
.lh-page h2 {
  font-family: var(--sw-display, inherit); font-weight: 800 !important; letter-spacing: -0.03em !important;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem) !important; line-height: 1.15 !important; color: #0f1f14;
}
.lh-page #categories-bar { border: 0; box-shadow: none; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.lh-page .cat-pill {
  flex-direction: row; align-items: center; border: 0 !important; border-radius: 999px;
  padding: 10px 18px; margin: 10px 2px; color: #3f5a47; font-weight: 600;
}
.lh-page .cat-pill > span:first-child { display: none; }
.lh-page .cat-pill > span:last-child { font-size: 15px; }
.lh-page .cat-pill:hover { background: var(--sw-green-50); color: #0f1f14; }
.lh-page .cat-pill.border-primary-600 { background: #0f2a1a; color: #fff; }
.lh-page .card-airbnb { border-radius: 24px; border-color: transparent; background: #f4f7f2; box-shadow: none; }
.lh-page .card-airbnb:hover { box-shadow: 0 8px 24px rgba(15,42,26,.08); }
.lh-page .dcard { border: 0; border-radius: 22px; background: transparent; overflow: visible; }
.lh-page .dcard:hover { box-shadow: none; }
.lh-page .dcard__hero { border-radius: 22px; }
.lh-page .dcard__body { padding-left: 4px; padding-right: 4px; }
.lh-page .btn-airbnb-primary, .lh-page .btn-airbnb-secondary, .lh-page .sw-btn { border-radius: 999px; }
body:has(.lh-page) .sw-footer { background: #f4f3ee; color: #4b5a50; }
body:has(.lh-page) .sw-footer a { color: #1f2d24; }
body:has(.lh-page) .sw-footer a:hover { color: #000; }
body:has(.lh-page) .sw-footer h4 { color: #0f1f14; }
body:has(.lh-page) .sw-footer__bar { border-top-color: rgba(15,31,20,.12); color: #5d6e63; }
body:has(.lh-page) .sw-footer__logo img { filter: none; }
body:has(.lh-page) .sw-footer .sw-footer__social { background: #0f2a1a; }
body:has(.lh-page) .sw-footer .sw-footer__social:hover { background: #14532d; }
body:has(.lh-page) .sw-footer__about { color: #4b5a50; }
body:has(.lh-page) .sw-footer__bar button, body:has(.lh-page) .sw-footer__bar button * { color: #1f2d24 !important; }

/* ── Chat-style homepage, second pass: follow the reference structure ── */
body:has(.lh-page) .sw-header .sw-btn { border-radius: 999px; }
.lh-hero__card { padding-top: 88px; padding-bottom: 64px; }
.lh-pill { color: inherit; }
.lh-box__submit { background: var(--sw-green-200); color: #0f1f14; }
.lh-box__submit:hover { background: #86efac; }

.lh-discover { padding: 72px 16px 8px; text-align: center; }
.lh-page .lh-discover__title {
  margin: 0; font-size: clamp(2rem, 4.4vw, 3.1rem) !important;
  background: linear-gradient(90deg, #0f1f14 0%, #15803d 55%, #84cc16 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lh-discover__title .lh-pill { color: #0f1f14; -webkit-text-fill-color: #0f1f14; }
.lh-page #categories-bar { position: static; background: transparent; backdrop-filter: none; }
.lh-page #categories-bar .pills-scroll { justify-content: safe center; }
.lh-page #popular-services-section { padding-top: 12px; }
.lh-page #popular-services-heading { font-size: 1.15rem !important; letter-spacing: 0 !important; font-weight: 700 !important; }

/* Photo grid: one large card, the rest in mixed sizes */
.lh-page .home-cities { padding-top: 8px; }
.lh-page .home-cities .grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 14px; }
.lh-page .home-cities .grid > a { height: 100%; border-radius: 22px; background: #e7ece6; }
.lh-page .home-cities .grid > a img { height: 100%; aspect-ratio: auto; }
.lh-page .home-cities .grid > a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.lh-page .home-cities .grid > a:nth-child(2), .lh-page .home-cities .grid > a:nth-child(3) { grid-row: span 2; }
.lh-page .home-cities .grid > a:nth-child(4) { grid-column: span 2; }
.lh-page .home-cities .grid > a:nth-child(1) p:first-child { font-size: 2rem; }
@media (max-width: 900px) {
  .lh-page .home-cities .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .lh-page .home-cities .grid > a:nth-child(4) { grid-column: span 1; }
}

/* The one dark band: homeowner stories as people cards */
.lh-page .home-testimonials { background: #0f2a1a; margin: 40px 12px; border-radius: 28px; border: 0; padding-top: 72px; padding-bottom: 72px; }
.lh-page .home-testimonials h2 { color: #fff; }
.lh-page .home-testimonials .lh-pill { background: var(--sw-green-200); color: #0f1f14; }
.lh-page .home-testimonials > div > div:first-child p { color: rgba(255,255,255,.75); }
.lh-page .home-testimonials .card-airbnb { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); }
.lh-page .home-testimonials .card-airbnb:hover { box-shadow: none; background: rgba(255,255,255,.10); }
.lh-page .home-testimonials blockquote, .lh-page .home-testimonials article p { color: rgba(255,255,255,.88); }
.lh-page .home-testimonials article footer { border-top-color: rgba(255,255,255,.12); }
.lh-page .home-testimonials article footer p + p { color: rgba(255,255,255,.6); }
@media (min-width: 1024px) {
  .lh-page .home-testimonials > .container-airbnb { display: grid; grid-template-columns: 1fr 1.9fr; gap: 48px; align-items: center; }
  .lh-page .home-testimonials > div > div:first-child { text-align: left; margin: 0; }
  .lh-page .home-testimonials > div > div:first-child p { margin-left: 0; }
}

.lh-page .pro-band--soft { margin: 0 12px 12px; border-radius: 28px; }
@media (max-width: 560px) {
  .lh-hero__card { padding-top: 44px; padding-bottom: 32px; }
  .lh-discover { padding-top: 44px; }
  .lh-page .home-testimonials, .lh-page .pro-band--soft { margin-left: 8px; margin-right: 8px; border-radius: 22px; }
}

/* ── Professional showcase page (LK) ───────────────────────────────── */
body:has(.pp--showcase) { background: linear-gradient(180deg, var(--sw-green-100) 0, var(--sw-green-50) 420px, #f6f8f5 1000px) no-repeat #f6f8f5; }
.pp--showcase { background: transparent; }
body:has(.pp--showcase) main, body:has(.pp--showcase) .container-airbnb { background: transparent; }
.pp--showcase .pp__main { max-width: 1400px; padding-top: 16px; }
.ps-back {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px 0 10px; margin-bottom: 14px;
  border-radius: 999px; background: #fff; border: 1px solid rgba(15,42,26,.12); color: #0f1f14;
  font-weight: 700; font-size: 14px; text-decoration: none;
}
.ps-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ps-grid--solo { grid-template-columns: minmax(0, 1fr); }
.ps-card {
  display: grid; grid-template-columns: 44% 1fr; background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,42,26,.06), 0 12px 40px rgba(15,42,26,.08); height: min(720px, calc(100vh - 150px)); min-height: 520px;
}
.ps-media { position: relative; background: #e7ece6; min-height: 0; }
.ps-media picture, .ps-media img { display: block; width: 100%; height: 100%; }
.ps-media img { object-fit: cover; }
.ps-media--empty { display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; color: #5d6e63; text-align: center;
  background: linear-gradient(160deg, var(--sw-green-100), var(--sw-green-50)); }
.ps-media--empty img { height: auto; }
.ps-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ps-panel__body { flex: 1; overflow-y: auto; padding: 22px 26px 18px; }
.ps-who { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ps-who__pic { position: relative; flex: none; }
.ps-who__pic > div > div { width: 44px !important; height: 44px !important; border-width: 0 !important; }
.ps-who__pic .pp__tick { right: -4px; bottom: -4px; }
.ps-who__txt { flex: 1; min-width: 0; }
.ps-who__name { margin: 0; font-weight: 800; font-size: 15px; color: #0f1f14; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-who__role { margin: 0; font-size: 13px; color: #5d6e63; }
.pp--showcase .ps-title { font-family: var(--sw-display, inherit); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; color: #0f1f14; }
.ps-sub { margin: 0 0 14px; font-size: 16px; color: #4b5a50; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ps-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 999px; background: #f1f4ef; color: #33443a; font-size: 14px; }
.ps-chip svg { width: 14px; height: 14px; }
.pp--showcase .ps-panel .pp__badges { margin-bottom: 14px; }
.ps-box { background: var(--sw-green-50); border-radius: 18px; padding: 16px 20px; margin-bottom: 14px; }
.ps-box__label { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--sw-green-600); }
.ps-box__text { margin: 0; font-size: 16px; font-weight: 700; color: #0f1f14; line-height: 1.4; }
.ps-about { margin: 0; font-size: 15px; line-height: 1.6; color: #4b5a50; }
.ps-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 22px; border-top: 1px solid rgba(15,42,26,.10); background: #fff; }
.ps-bar__price strong { display: block; white-space: nowrap; font-family: var(--sw-display, inherit); font-size: 1.2rem; font-weight: 800; color: #0f1f14; }
.ps-bar__price span { font-size: 13px; color: #5d6e63; }
.ps-bar__cta { border: 0; cursor: pointer; height: 54px; padding: 0 26px; border-radius: 999px; background: var(--sw-green-200); color: #0f1f14; font: 800 16px/1 var(--sw-font, inherit); white-space: nowrap; }
.ps-bar__cta:hover { background: #86efac; }
.ps-wall { column-gap: 16px; }
.ps-wall--main { columns: 3; margin-top: 16px; }
.ps-wall--side { columns: 2; }
.ps-tile { display: block; break-inside: avoid; margin: 0 0 16px; color: #0f1f14; text-decoration: none; }
.ps-frame { display: block; position: relative; overflow: hidden; border-radius: 22px; background: #dfe7df; }
.ps-frame picture { position: absolute; inset: 0; }
.ps-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-tile__cap { display: block; padding: 8px 4px 0; font-weight: 700; font-size: 14px; line-height: 1.3; }
.pp--showcase .sw-split { background: #fff; border-radius: 28px; padding: 32px; margin-top: 24px; }
.pp--showcase .pp__foot { margin-top: 24px; }
@media (max-width: 1100px) {
  .ps-grid { grid-template-columns: minmax(0, 1fr); }
  .ps-wall--main { columns: 3; }
  .ps-wall--side { columns: 3; }
}
@media (max-width: 760px) {
  .ps-card { grid-template-columns: 1fr; height: auto; min-height: 0; border-radius: 22px; }
  .ps-media { aspect-ratio: 4 / 5; max-height: 62vh; }
  .ps-panel__body { overflow: visible; padding: 18px 18px 14px; }
  .ps-bar { position: sticky; bottom: 0; padding: 12px 16px; }
  .ps-bar__cta { height: 48px; padding: 0 18px; font-size: 15px; }
  .ps-wall--main, .ps-wall--side { columns: 2; column-gap: 10px; }
  .ps-tile { margin-bottom: 10px; } .ps-frame { border-radius: 16px; }
  .pp--showcase .sw-split { padding: 20px 16px; border-radius: 22px; }
}
@media (max-width: 760px) { .pp--showcase .pp__main { padding-left: 12px; padding-right: 12px; } }

/* Typed-out example in the hero job box */
.lh-box__field { position: relative; }
.lh-box__ghost {
  position: absolute; inset: 18px 20px auto 20px; pointer-events: none; text-align: left;
  font-size: 16px; line-height: 1.5; color: #7b8a80; white-space: pre-wrap;
}
.lh-box__ghost::after {
  content: ""; display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom;
  background: #0f1f14; animation: lh-caret 1s steps(1) infinite;
}
.lh-box__ghost[hidden] { display: none; }
.lh-box__input { min-height: 84px; }
@keyframes lh-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lh-box__ghost::after { animation: none; } }

/* Photos fade in over their placeholder (only once the script is running, so no-JS still shows them) */
.is-fading .ps-media img, .is-fading .ps-frame img { opacity: 0; transition: opacity .5s ease; }
.is-fading .ps-media img.is-loaded, .is-fading .ps-frame img.is-loaded { opacity: 1; }
.is-fading img.is-failed { visibility: hidden; }
.ps-tile:hover .ps-frame img { transform: scale(1.03); }
.ps-frame img { transition: opacity .5s ease, transform .4s ease; }
@media (prefers-reduced-motion: reduce) {
  .is-fading .ps-media img, .is-fading .ps-frame img, .ps-frame img { transition: none; }
  .ps-tile:hover .ps-frame img { transform: none; }
}

/* ── Instagram portfolio import ────────────────────────────────────── */
.igc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--sw-line); border-radius: 16px; background: #fafbf9; }
.igc__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f59e0b, #db2777 55%, #7c3aed); }
.igc__text { flex: 1; min-width: 180px; }
.igc__text p { margin: 0; }
.igc__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.igc__actions form { margin: 0; }
.igp { padding-top: 16px; padding-bottom: 120px; max-width: 1100px; }
.igp__lead { margin: 4px 0 0; }
.igp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 20px; }
.igp__item { position: relative; display: block; cursor: pointer; }
.igp__item input { position: absolute; top: 10px; left: 10px; z-index: 2; width: 22px; height: 22px; accent-color: var(--sw-green-600); }
.igp__frame { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #dfe7df; outline: 3px solid transparent; outline-offset: 2px; }
.igp__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igp__item input:checked + .igp__frame { outline-color: var(--sw-green-600); }
.igp__item.is-done { cursor: default; }
.igp__item.is-done img { opacity: .45; }
.igp__badge { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: #0f1f14; }
.igp__cap { display: block; padding: 6px 2px 0; font-size: 13px; color: #4b5a50; }
.igp__bar { position: sticky; bottom: 0; margin-top: 20px; padding: 14px 0; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 40%); display: flex; justify-content: flex-end; }

/* ── Welcome screen of the professional app (templates/native/welcome.html.twig) ── */
.nw { max-width: 440px; margin: 0 auto; padding: 28px 22px 40px; text-align: center; }
.nw__lang { display: flex; justify-content: center; margin: 0 0 32px; }
.nw__lang .ls { display: flex; width: 100%; max-width: 320px; }
.nw__lang .ls__opt { flex: 1; height: 40px; font-size: 16px; font-weight: 600; color: var(--sw-ink); }
.nw__hero { display: grid; place-items: center; margin: 0 0 12px; }
.nw__mark { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--sw-green-600); background: linear-gradient(160deg, var(--sw-green-100), var(--sw-green-50)); }
.nw__title { font-family: var(--sw-display, inherit); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: #0f1f14; margin: 0 0 10px; }
.nw__lead { font-size: 16px; line-height: 1.55; color: #4b5a50; margin: 0 0 22px; }
.nw__points { list-style: none; padding: 0; margin: 0 auto 30px; display: inline-grid; gap: 10px; text-align: left; font-size: 15px; color: #1f2d24; }
.nw__points li { display: flex; align-items: flex-start; gap: 10px; }
.nw__points svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--sw-green-600); }
.nw__actions { display: grid; gap: 12px; }
.nw__q { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #4b5a50; }
.nw__q--second { margin-top: 20px; }
.nw .sw-btn--lg { height: 54px; border-radius: 16px; font-size: 17px; }

/* ── Dashboard: one-line "finish your profile" nudge ──────────────── */
.dash-nudge { display: flex; align-items: stretch; margin-bottom: 16px; border: 1px solid #f5e3a6; border-radius: 14px; background: #fffbea; overflow: hidden; }
.dash-nudge[hidden], .dash-nudge__item[hidden] { display: none; }
.dash-nudge__item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 16px; color: #0f1f14; text-decoration: none; }
.dash-nudge__icon { flex: none; color: #b45309; display: grid; place-items: center; }
.dash-nudge__text { flex: 1; min-width: 0; display: grid; }
.dash-nudge__text strong { font-size: 14px; font-weight: 700; line-height: 1.3; }
.dash-nudge__text small { font-size: 13px; color: #5c4a14; }
.dash-nudge__go { flex: none; color: #5c4a14; display: grid; place-items: center; }
.dash-nudge__close { flex: none; width: 52px; min-height: 48px; border: 0; border-left: 1px solid #f5e3a6; background: transparent; color: #5c4a14; cursor: pointer; display: grid; place-items: center; }
.dash-nudge__close:hover { background: #fdf3c8; color: #0f1f14; }

/* Dashboard: placeholders while the first jobs load; "Load more" waits for them */
.dash__skeletons--first { margin-top: 0; }
.dash__feed:has(.dash__skeletons--first) .dash__more { display: none; }
@media (prefers-reduced-motion: reduce) { .sw-skeleton { animation: none; } }

/* ── Quick reply on the job page (templates/professional/_quick_reply.html.twig) ── */
.qr { display: grid; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sw-line); }
.qr__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.qr__group legend { padding: 0; margin-bottom: 6px; }
.qr__check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: #33443a; cursor: pointer; }
.qr__check input { width: 18px; height: 18px; accent-color: var(--sw-green-600); }
.qr__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qr__chip { position: relative; cursor: pointer; }
.qr__chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qr__chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--sw-line); background: #fff; font-size: 14px; font-weight: 600; color: #33443a; }
.qr__chip input:checked + span { background: var(--sw-green-100); border-color: var(--sw-green-600); color: #14532d; }
.qr__chip input:focus-visible + span { outline: 2px solid var(--sw-green-600); outline-offset: 2px; }
.qr__hint { margin-top: 6px; }
.qr .sw-input:disabled { background: var(--sw-sunken); }
.qr__alt { margin: 0; text-align: center; font-size: 14px; }
.hjob__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ── quick questions on the job form, and their answers on the job view ── */
.jobq { display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid var(--sw-line-strong); border-radius: 12px; }
.jobq__q { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.jobq__q legend { padding: 0; margin-bottom: 8px; }
.jobq__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jobq__chip { position: relative; height: auto; min-height: 36px; padding: 8px 14px; white-space: normal; line-height: 1.25; }
.jobq__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.jobq__chip:has(input:checked) { background: var(--sw-ink); border-color: var(--sw-ink); color: #fff; }
.jobq__chip:has(input:focus-visible) { outline: 2px solid var(--sw-ink); outline-offset: 2px; }
.jobview__answers { display: grid; gap: 8px; margin: 0; }
.jobview__answers div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.jobview__answers dt { color: var(--sw-subtle); }
.jobview__answers dd { margin: 0; font-weight: 500; }
.jobview__answers-title { margin-top: 20px; margin-bottom: 8px; }
