:root {
    --navy-950: #071630;
    --navy-900: #0b2149;
    --navy-800: #143460;
    --blue-700: #1268e8;
    --blue-600: #2278ed;
    --blue-100: #e8f2ff;
    --blue-50: #f4f8ff;
    --coral-600: #eb5849;
    --coral-100: #ffebe7;
    --green-700: #14765b;
    --green-100: #e3f6ef;
    --amber-700: #9a6500;
    --amber-100: #fff3d2;
    --red-700: #b42331;
    --red-100: #ffe8eb;
    --ink: #18243a;
    --muted: #637087;
    --line: #dce3ed;
    --line-dark: #cbd5e2;
    --surface: #ffffff;
    --canvas: #f6f8fb;
    --shadow-sm: 0 2px 8px rgba(12, 31, 62, .05), 0 1px 2px rgba(12, 31, 62, .05);
    --shadow: 0 18px 48px rgba(12, 31, 62, .10), 0 4px 14px rgba(12, 31, 62, .06);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --max: 1220px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.comfort-view { font-size: 18px; line-height: 1.68; }
body.comfort-view .button, body.comfort-view input, body.comfort-view select, body.comfort-view textarea { min-height: 50px; }
body.comfort-view .site-nav > a, body.comfort-view .account-popover a, body.comfort-view .account-popover button { padding-block: 12px; }
body.comfort-view .site-nav > a { font-size: 1rem; }
body.comfort-view small { font-size: .9rem; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(18, 104, 232, .42); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { color: var(--navy-950); }
h1 { margin-bottom: 18px; font-size: clamp(2.4rem, 5vw, 4.9rem); line-height: .98; letter-spacing: -.055em; font-weight: 760; }
h2 { margin-bottom: 12px; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { margin-bottom: 8px; font-size: 1.12rem; line-height: 1.3; }
p { margin-bottom: 16px; }
small { font-size: .82rem; line-height: 1.4; }
code { display: inline-block; padding: 3px 7px; border-radius: 6px; background: #eef2f7; color: #263953; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84em; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 680px); margin-inline: auto; }
.section { padding-block: 82px; }
.soft-section { background: #edf3fb; }
.content-stack { display: flex; flex-direction: column; gap: 22px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 1000; top: -80px; left: 20px; padding: 10px 16px; border-radius: 0 0 10px 10px; background: white; color: var(--navy-900); font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { top: 0; }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: -.2em; }
.eyebrow { margin-bottom: 8px; color: var(--blue-700); font-size: .78rem; font-weight: 800; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }
.muted { color: var(--muted); }
.clamp-two { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); padding: 26px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.panel-heading h2, .panel-heading p { margin-bottom: 0; }
.panel-heading > span, .panel-heading > a { color: var(--muted); font-size: .86rem; }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p:last-child { color: var(--muted); margin-bottom: 0; }
.section-heading.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading.centred { max-width: 660px; margin-inline: auto; text-align: center; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 12px; padding: 10px 18px; font-weight: 750; line-height: 1.2; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { background: var(--blue-700); color: white; box-shadow: 0 8px 18px rgba(18, 104, 232, .22); }
.button.primary:hover { background: #075bcf; box-shadow: 0 11px 24px rgba(18, 104, 232, .28); }
.button.secondary { border-color: var(--line-dark); background: white; color: var(--navy-900); }
.button.secondary:hover { border-color: #aebed1; box-shadow: var(--shadow-sm); }
.button.quiet { border-color: transparent; background: transparent; color: var(--navy-800); }
.button.quiet:hover { background: #edf2f8; }
.button.trust { border-color: #bfe7d9; background: var(--green-100); color: var(--green-700); }
.button.white { background: white; color: var(--navy-900); }
.button.danger { background: var(--red-100); color: var(--red-700); border-color: #f4bcc4; }
.button.small { min-height: 40px; border-radius: 10px; padding: 8px 13px; font-size: .88rem; }
.button.wide { width: 100%; }
.button-row, .hero-actions, .form-actions, .decision-buttons { display: flex; align-items: center; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue-700); font-weight: 750; }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.light-link { color: white; }
.back-link { display: inline-flex; margin-bottom: 20px; color: #53647b; font-weight: 700; }
.clear-filter { color: var(--blue-700); font-size: .9rem; font-weight: 700; }
.circle-link { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); transition: transform .2s var(--ease), background .2s var(--ease); }
.circle-link:hover { transform: translateX(2px); background: #d9eaff; }

/* Header */
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(217, 226, 237, .88); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); }
.header-inner { display: flex; width: min(calc(100% - 40px), 1320px); min-height: 72px; align-items: center; justify-content: space-between; gap: 26px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-950); font-size: 1.14rem; font-weight: 820; letter-spacing: -.035em; white-space: nowrap; }
.brand small { margin-left: -4px; border-left: 1px solid var(--line); padding-left: 8px; color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
.brand-mark { display: flex; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 3px; border-radius: 10px; background: var(--navy-900); padding: 8px; box-shadow: 0 6px 14px rgba(11, 33, 73, .18); }
.brand-mark i { display: block; height: 3px; border-radius: 99px; background: #fff; }
.brand-mark i:first-child { width: 100%; background: #56a7ff; }
.brand-mark i:nth-child(2) { width: 76%; }
.brand-mark i:last-child { width: 52%; background: #ff7968; }
.site-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 4px; }
.site-nav > a { position: relative; padding: 10px 12px; border-radius: 9px; color: #43526a; font-size: .91rem; font-weight: 680; white-space: nowrap; }
.site-nav > a:hover, .site-nav > a.active { background: #f0f4f9; color: var(--navy-900); }
.site-nav > a.active::after { position: absolute; right: 12px; bottom: 4px; left: 12px; height: 2px; border-radius: 2px; background: var(--blue-700); content: ""; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.nav-with-count span { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 5px; border-radius: 99px; background: var(--coral-600); color: white; font-size: .68rem; }
.menu-button { display: none; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 10px; background: #eff3f8; color: var(--navy-900); }
.menu-close { display: none; }
.menu-button[aria-expanded="true"] .menu-open { display: none; }
.menu-button[aria-expanded="true"] .menu-close { display: block; }
.account-menu { position: relative; }
.account-menu summary { display: block; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar, .vendor-avatar { display: inline-grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-size: .82rem; font-weight: 850; letter-spacing: .02em; }
.avatar.vendor-colour, .vendor-avatar { background: var(--coral-100); color: #b63f33; }
.avatar.small { width: 32px; height: 32px; font-size: .7rem; }
.avatar.large { width: 52px; height: 52px; }
.account-popover { position: absolute; top: 52px; right: 0; display: flex; width: 220px; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); padding: 12px; }
.account-popover > strong, .account-popover > small { padding-inline: 10px; }
.account-popover > small { margin-bottom: 9px; color: var(--muted); }
.account-popover a, .account-popover button { display: block; width: 100%; border: 0; border-radius: 8px; background: transparent; padding: 9px 10px; color: #415069; text-align: left; }
.account-popover a:hover, .account-popover button:hover { background: #f0f4f9; color: var(--navy-900); }

/* Notifications */
.toast { position: fixed; z-index: 500; top: 88px; right: 22px; display: flex; width: min(410px, calc(100% - 44px)); align-items: center; gap: 12px; border: 1px solid #bfe7d9; border-radius: 14px; background: white; box-shadow: var(--shadow); padding: 13px 14px; animation: toast-in .35s var(--ease); }
.toast > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--green-100); color: var(--green-700); }
.toast p { flex: 1; margin: 0; font-weight: 650; }
.toast button { border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; }
.toast.error { border-color: #f5c4ca; }
.toast.error > span { background: var(--red-100); color: var(--red-700); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* Hero */
.hero-section { display: grid; min-height: 680px; grid-template-columns: minmax(0, 1fr) minmax(520px, .95fr); overflow: hidden; background: linear-gradient(135deg, #f6f9ff 0%, #eaf3ff 58%, #dfeeff 100%); }
.hero-copy { align-self: center; width: min(620px, calc(100% - 48px)); margin-left: max(24px, calc((100vw - var(--max)) / 2)); padding: 60px 0; }
.local-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; border: 1px solid #cfe1fa; border-radius: 999px; background: rgba(255,255,255,.78); padding: 7px 12px; color: var(--blue-700); font-size: .83rem; font-weight: 750; }
.hero-copy h1 span { color: var(--blue-700); }
.hero-lead { max-width: 590px; color: #445673; font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
.hero-search { display: flex; max-width: 590px; align-items: center; gap: 10px; margin: 30px 0 18px; border: 1px solid #cbd8e8; border-radius: 16px; background: white; box-shadow: 0 12px 36px rgba(23, 68, 125, .12); padding: 7px 7px 7px 16px; }
.hero-search .icon { color: #76869b; }
.hero-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.hero-search button { min-height: 46px; border: 0; border-radius: 11px; background: var(--navy-900); padding: 0 19px; color: white; font-weight: 750; }
.hero-actions { margin-bottom: 28px; }
.trust-line { display: flex; max-width: 560px; align-items: flex-start; gap: 10px; color: #53647b; }
.trust-line > span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--green-100); color: var(--green-700); }
.trust-line p { margin: 2px 0 0; font-size: .88rem; }
.hero-visual { position: relative; min-width: 0; overflow: hidden; }
.hero-visual::after { position: absolute; inset: 0 auto 0 0; width: 22%; background: linear-gradient(90deg, #eaf3ff, transparent); content: ""; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.floating-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.8); border-radius: 16px; background: rgba(255,255,255,.93); box-shadow: var(--shadow); padding: 12px 14px; backdrop-filter: blur(8px); }
.quote-preview { bottom: 9%; left: 8%; }
.quote-preview > div { display: flex; flex-direction: column; }
.quote-preview small, .quote-preview span { color: var(--muted); font-size: .72rem; }
.quote-preview strong { font-size: 1.04rem; }
.tiny-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--coral-100); color: #b63f33 !important; font-weight: 850; }
.match-pill { margin-left: 10px; border-radius: 99px; background: var(--green-100); padding: 4px 8px; color: var(--green-700) !important; font-weight: 800; }
.verified-preview { top: 13%; right: 7%; }
.verified-preview > .icon { width: 28px; height: 28px; color: var(--green-700); }
.verified-preview > div { display: flex; flex-direction: column; }
.verified-preview span { color: var(--muted); font-size: .72rem; }

.quick-proof { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -28px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.quick-proof > div { display: flex; align-items: baseline; gap: 9px; padding: 22px 25px; }
.quick-proof > div + div { border-left: 1px solid var(--line); }
.quick-proof strong { color: var(--blue-700); font-size: 1.55rem; }
.quick-proof span { color: var(--muted); font-size: .88rem; }

/* Cards */
.card-grid { display: grid; gap: 20px; }
.projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.projects-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vendors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card, .vendor-card { position: relative; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); padding: 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.project-card:hover, .vendor-card:hover { transform: translateY(-3px); border-color: #c6d3e4; box-shadow: var(--shadow); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.category-pill { display: inline-flex; width: fit-content; border-radius: 999px; background: var(--blue-100); padding: 5px 9px; color: var(--blue-700); font-size: .72rem; font-weight: 800; }
.status-badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; font-weight: 750; white-space: nowrap; }
.status-badge i { width: 7px; height: 7px; border-radius: 50%; background: #8795a8; }
.status-badge.status-open i { background: #20a277; box-shadow: 0 0 0 4px #dcf5ec; }
.status-badge.status-awarded i, .status-badge.status-in-progress i { background: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-100); }
.status-badge.status-completed i { background: #5b6c81; }
.project-card h3 { font-size: 1.22rem; }
.project-card h3 a::after { position: absolute; inset: 0; content: ""; }
.project-card > p { min-height: 50px; color: var(--muted); font-size: .91rem; }
.posted-by { min-height: auto !important; margin-top: -7px; font-size: .79rem !important; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: #55657b; font-size: .82rem; }
.project-meta span { display: inline-flex; align-items: center; gap: 5px; }
.project-card-bottom { display: flex; align-items: center; gap: 20px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.project-card-bottom > div { display: flex; flex-direction: column; }
.project-card-bottom small { color: var(--muted); }
.project-card-bottom strong { font-size: 1rem; }
.project-card-bottom .circle-link { position: relative; z-index: 2; margin-left: auto; }
.bid-count { padding-left: 16px; border-left: 1px solid var(--line); }
.scope-count { margin-top: 13px; color: var(--green-700); font-size: .74rem; font-weight: 720; }
.vendor-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.vendor-avatar { width: 50px; height: 50px; }
.vendor-avatar.smallish { width: 44px; height: 44px; }
.vendor-avatar.xl { width: 78px; height: 78px; font-size: 1.05rem; }
.vendor-card-head h3, .vendor-card-head p { margin: 0; }
.vendor-card-head p { color: var(--muted); font-size: .85rem; }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.rating-row.centred-row { justify-content: center; }
.stars { color: #a76400; font-weight: 800; }
.verification-badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; margin: 14px 0; border-radius: 8px; background: var(--green-100); padding: 6px 9px; color: var(--green-700); font-size: .73rem; font-weight: 750; }
.verification-badge.pending { background: var(--amber-100); color: var(--amber-700); }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; }
.service-tags span { border: 1px solid var(--line); border-radius: 999px; background: #f8fafc; padding: 5px 9px; color: #536279; font-size: .73rem; }
.service-tags.large span { padding: 7px 11px; font-size: .82rem; }
.vendor-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.vendor-facts > span { display: flex; flex-direction: column; }
.vendor-facts small { color: var(--muted); }
.vendor-facts strong { font-size: .84rem; }
.empty-state { display: grid; min-height: 260px; place-items: center; align-content: center; border: 1px dashed #bdcada; border-radius: var(--radius); background: rgba(255,255,255,.55); padding: 36px; text-align: center; }
.empty-state .empty-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 18px; background: var(--blue-100); color: var(--blue-700); }
.empty-state h3 { margin: 16px 0 5px; font-size: 1.3rem; }
.empty-state p { max-width: 480px; color: var(--muted); }

/* Home sections */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-grid article { position: relative; border: 1px solid #d7e2ef; border-radius: var(--radius); background: white; padding: 28px; }
.step-number { position: absolute; top: 18px; right: 20px; color: #c5d2e2; font-size: 2.1rem; font-weight: 850; }
.step-icon, .feature-icon, .stat-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--blue-100); color: var(--blue-700); }
.step-icon.coral, .stat-icon.coral { background: var(--coral-100); color: var(--coral-600); }
.step-icon.green, .stat-icon.green { background: var(--green-100); color: var(--green-700); }
.stat-icon.navy { background: #e7ebf2; color: var(--navy-900); }
.step-grid h3 { margin-top: 18px; }
.step-grid p { color: var(--muted); margin-bottom: 0; }
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-panel { position: relative; min-height: 400px; overflow: hidden; border-radius: var(--radius-lg); padding: 40px; }
.senior-panel { border: 1px solid #d2ddec; background: linear-gradient(145deg, #f8fbff, #e6f0fe); }
.record-panel { background: linear-gradient(145deg, #0c2b53, #071a36); color: white; }
.record-panel h2, .record-panel .eyebrow { color: white; }
.record-panel p { color: #c9d7e9; }
.feature-copy { position: relative; z-index: 2; max-width: 430px; }
.feature-icon { margin-bottom: 23px; }
.feature-icon.light { background: rgba(255,255,255,.14); color: white; }
.feature-icon.small { width: 42px; height: 42px; margin-bottom: 16px; }
.feature-icon.warning { background: var(--red-100); color: var(--red-700); }
.helper-card, .record-mini { position: absolute; z-index: 1; right: 34px; bottom: 30px; left: 34px; }
.helper-card { display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 16px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); padding: 14px; backdrop-filter: blur(8px); }
.helper-card > div { display: flex; flex: 1; flex-direction: column; }
.helper-card span { color: var(--muted); font-size: .77rem; }
.active-dot { width: fit-content; border-radius: 999px; background: var(--green-100); padding: 4px 8px; color: var(--green-700) !important; font-weight: 750; }
.record-mini { display: grid; gap: 8px; }
.record-mini > div { display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.08); padding: 11px 13px; }
.record-mini > div > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--green-100); color: var(--green-700); }
.record-mini p { display: flex; flex-direction: column; margin: 0; }
.record-mini strong { color: white; }
.record-mini small { color: #b7c8dd; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.final-cta h2 { max-width: 760px; margin: 0; }

/* Page heroes and marketplace */
.page-hero { display: flex; min-height: 270px; align-items: center; justify-content: space-between; gap: 30px; padding-block: 55px 38px; }
.page-hero.compact h1 { margin-bottom: 12px; font-size: clamp(2.25rem, 5vw, 3.8rem); }
.page-hero.compact p:last-child { max-width: 700px; color: var(--muted); font-size: 1.05rem; }
.page-hero.story-hero { min-height: 360px; text-align: center; justify-content: center; }
.page-hero.story-hero > div { max-width: 830px; }
.marketplace-layout { padding-bottom: 90px; }
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); padding: 10px; }
.filter-bar label { margin: 0; }
.filter-bar select, .filter-bar input { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 9px 12px; color: var(--ink); }
.search-field { display: flex; min-width: 220px; flex: 1; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding-left: 12px; }
.search-field .icon { color: #77879c; }
.search-field input { width: 100%; border: 0; }
.result-summary { display: flex; align-items: baseline; gap: 7px; margin-bottom: 18px; color: var(--muted); }
.result-summary strong { color: var(--navy-900); font-size: 1.1rem; }
.result-summary span { margin-left: auto; font-size: .82rem; }
.marketplace-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Profiles */
.profile-page { padding-block: 38px 90px; }
.profile-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin-bottom: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, white, #eef5ff); padding: 34px; }
.profile-title h1 { margin-bottom: 5px; font-size: clamp(2rem, 4vw, 3.6rem); }
.profile-title > p:not(.eyebrow) { margin-bottom: 10px; color: var(--muted); font-size: 1.06rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
.facts-panel { height: fit-content; }
.facts-panel dl, .project-summary dl { margin: 0 0 22px; }
.facts-panel dl div, .project-summary dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.facts-panel dt, .project-summary dt { color: var(--muted); }
.facts-panel dd, .project-summary dd { margin: 0; color: var(--navy-950); font-weight: 750; text-align: right; }
.facts-panel dd small { display: block; color: var(--muted); font-weight: 500; }
.aside-note { margin: 13px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.review { border-top: 1px solid var(--line); padding: 20px 0; }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review:last-child { padding-bottom: 0; }
.review > div:first-child { display: flex; align-items: center; gap: 10px; }
.review > div:first-child > div { display: flex; flex: 1; flex-direction: column; }
.review > div:first-child span:not(.avatar):not(.stars) { color: var(--muted); font-size: .75rem; }
.review > p { margin: 14px 0 10px; color: #394a63; }
.review-breakdown { display: flex; flex-wrap: wrap; gap: 8px; }
.review-breakdown span { border-radius: 8px; background: #f1f5f9; padding: 4px 8px; color: var(--muted); font-size: .7rem; }
.trust-detail { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 35px; margin-top: 24px; }
.check-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.check-item { display: flex; align-items: center; gap: 8px; border-radius: 11px; background: var(--green-100); padding: 10px; color: var(--green-700); }
.check-item.pending, .check-item.rejected { background: var(--amber-100); color: var(--amber-700); }
.check-item > span { display: flex; flex-direction: column; }
.check-item strong { color: inherit; font-size: .76rem; }
.check-item small { font-size: .65rem; }

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-stack label:not(.check-control):not(.role-option):not(.file-drop), .form-stack fieldset { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.form-stack label > span, .form-stack legend { color: var(--navy-900); font-size: .86rem; font-weight: 750; }
.form-stack small { color: var(--muted); }
.form-stack fieldset { min-width: 0; border: 0; padding: 0; }
.form-stack legend { margin-bottom: 9px; }
input, textarea, select { max-width: 100%; border: 1px solid var(--line-dark); border-radius: 11px; background: white; color: var(--ink); outline: none; transition: border .2s, box-shadow .2s; }
input, select { min-height: 46px; padding: 10px 12px; }
textarea { resize: vertical; padding: 12px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(34,120,237,.12); }
input:disabled { background: #f0f3f7; color: #6f7c8d; }
.form-grid { display: grid; gap: 15px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.money-input { position: relative; }
.money-input i { position: absolute; top: 50%; left: 12px; color: var(--muted); font-style: normal; transform: translateY(-50%); }
.money-input input { width: 100%; padding-left: 27px; }
.check-control { display: flex; align-items: flex-start; gap: 10px; color: #43536a; font-size: .88rem; cursor: pointer; }
.check-control input { width: 19px; height: 19px; min-height: auto; flex: 0 0 auto; margin-top: 2px; accent-color: var(--blue-700); }
.check-control a { color: var(--blue-700); font-weight: 700; }
.check-control.important { border: 1px solid #cbd9eb; border-radius: 12px; background: var(--blue-50); padding: 13px; }
.inline-form { display: inline-flex; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px; cursor: pointer; }
.checkbox-grid input { width: 17px; height: 17px; min-height: auto; accent-color: var(--blue-700); }
.checkbox-grid span { font-size: .83rem; }
.save-note, .tax-note { border-radius: 999px; background: #eef3f8; padding: 5px 9px; }

/* Auth and setup */
.auth-shell { display: grid; width: min(calc(100% - 40px), 1040px); min-height: calc(100vh - 72px); grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; margin-inline: auto; padding-block: 55px; }
.auth-intro h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.auth-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.auth-trust { display: flex; align-items: flex-start; gap: 12px; margin-top: 30px; }
.auth-trust > span { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--green-100); color: var(--green-700); }
.auth-trust p { color: var(--muted); font-size: .85rem; }
.auth-card { padding: 36px; box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 24px; }
.or { display: flex; align-items: center; gap: 10px; margin: 22px 0; color: var(--muted); font-size: .74rem; text-align: center; }
.or::before, .or::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.demo-logins { display: grid; gap: 8px; }
.demo-logins form button { display: flex; width: 100%; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; padding: 10px; text-align: left; }
.demo-logins form button:hover { border-color: #b8c7d9; background: white; }
.demo-logins form button > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.demo-logins small { color: var(--muted); }
.auth-switch { margin: 22px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }
.auth-switch a { color: var(--blue-700); font-weight: 750; }
.auth-benefits { display: grid; gap: 10px; list-style: none; padding: 0; color: #43536a; }
.auth-benefits li { display: flex; align-items: center; gap: 9px; }
.auth-benefits .icon { color: var(--green-700); }
.role-choice { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
.role-choice legend { grid-column: 1 / -1; }
.role-option { cursor: pointer; }
.role-option input { position: absolute; opacity: 0; pointer-events: none; }
.role-option > span { display: flex; height: 100%; flex-direction: column; border: 1px solid var(--line-dark); border-radius: 12px; padding: 13px; }
.role-option > span .icon { margin-bottom: 8px; color: var(--blue-700); }
.role-option > span small { font-weight: 500; }
.role-option input:checked + span { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(34,120,237,.10); }
.setup-body { min-height: 100vh; background: linear-gradient(145deg, #e9f2ff, #f7f9fc 55%, #e7f4ef); }
.setup-shell { width: min(calc(100% - 40px), 760px); margin-inline: auto; padding: 45px 0 70px; }
.setup-brand { margin-bottom: 25px; }
.setup-card { border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); padding: 40px; }
.setup-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.setup-card > p:not(.eyebrow) { color: var(--muted); }
.setup-card fieldset { border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.success-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 22px; border-radius: 18px; background: var(--green-100); color: var(--green-700); font-size: 1.8rem; font-weight: 850; }
.form-note { color: var(--muted); font-size: .78rem; text-align: center; }
.alert { border-radius: 12px; padding: 12px 14px; }
.alert.error { border: 1px solid #f3bec6; background: var(--red-100); color: var(--red-700); }

/* Dashboard */
.dashboard-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-block: 54px 28px; }
.dashboard-hero h1 { margin-bottom: 7px; font-size: clamp(2.2rem, 5vw, 3.7rem); }
.dashboard-hero p:last-child { margin-bottom: 0; color: var(--muted); }
.dashboard-grid { padding-bottom: 90px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 42px; }
.stat-grid > a { display: flex; min-width: 0; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); padding: 15px; }
.stat-grid > a > div { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.stat-grid > a > div strong { font-size: 1.35rem; line-height: 1.1; }
.stat-grid > a > div span { overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.stat-grid > a > .icon { color: #9ba9bb; }
.stat-icon { width: 42px; height: 42px; flex: 0 0 auto; }
.dashboard-main { width: calc(100% - 350px); padding-right: 24px; }
.dashboard-side { position: absolute; right: max(20px, calc((100vw - var(--max)) / 2)); width: 326px; }
.dashboard-grid { position: relative; }
.small-panel { padding: 22px; }
.small-panel h2 { font-size: 1.25rem; }
.message-preview-list { display: grid; }
.message-preview-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; border-top: 1px solid var(--line); padding: 12px 0; }
.message-preview-list a:first-child { border-top: 0; padding-top: 0; }
.message-preview-list a > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.message-preview-list p { overflow: hidden; margin: 3px 0 0; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.message-preview-list time { color: var(--muted); font-size: .65rem; }
.helper-prompt p, .tip-card p, .trust-meter p { color: var(--muted); font-size: .88rem; }
.progress-bar { height: 8px; overflow: hidden; border-radius: 99px; background: #e6ebf1; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-700), #44a0ff); }
.progress-bar.large { height: 11px; margin-top: 16px; }
.quote-list { display: grid; }
.quote-list > a { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding: 14px 0; }
.quote-list > a:first-child { border-top: 0; }
.quote-list > a > div { display: flex; min-width: 0; flex-direction: column; }
.quote-list small { color: var(--muted); }
.mini-status { display: inline-flex; width: fit-content; border-radius: 999px; background: #eef2f6; padding: 4px 8px; color: #5c6b7d; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.mini-status.accepted, .mini-status.verified, .mini-status.active { background: var(--green-100); color: var(--green-700); }
.mini-status.submitted, .mini-status.pending, .mini-status.invited { background: var(--amber-100); color: var(--amber-700); }
.mini-status.rejected, .mini-status.open { background: var(--red-100); color: var(--red-700); }

/* Project detail */
.project-page { padding-block: 35px 90px; }
.project-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.project-head > div { max-width: 820px; }
.project-head h1 { margin-bottom: 13px; font-size: clamp(2.4rem, 5vw, 4.3rem); }
.project-head > div > p { color: #53647b; font-size: 1.07rem; }
.selected-banner { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; border-radius: var(--radius); background: linear-gradient(120deg, var(--green-700), #0d5c47); padding: 20px 23px; color: white; }
.selected-banner h2, .selected-banner .eyebrow { margin-bottom: 2px; color: white; }
.selected-banner p { margin: 0; color: #d6f0e8; }
.selected-banner > div { flex: 1; }
.selected-check { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: rgba(255,255,255,.15); }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.scope-panel { padding: 30px; }
.assist-label { border-radius: 999px; background: var(--blue-100); padding: 6px 10px; color: var(--blue-700) !important; font-size: .72rem !important; font-weight: 800; }
.scope-list { display: grid; gap: 11px; list-style: none; padding: 0; }
.scope-list li { display: flex; align-items: flex-start; gap: 11px; border-radius: 11px; background: #f7f9fc; padding: 11px 13px; }
.scope-list .icon { margin-top: 2px; color: var(--green-700); }
.panel-note { margin: 15px 0 0; color: var(--muted); font-size: .82rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; }
.quote-section { padding-top: 15px; }
.compare-key { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .76rem; }
.compare-key i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); }
.bid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bid-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); padding: 18px; }
.bid-card.recommended { border-color: #7bcab2; box-shadow: 0 0 0 3px rgba(20,118,91,.08), var(--shadow-sm); }
.bid-labels { display: flex; min-height: 27px; flex-wrap: wrap; gap: 5px; margin: -18px -18px 15px; background: #f1f4f8; padding: 7px 12px; }
.bid-card.recommended .bid-labels { background: var(--green-100); }
.bid-labels span { color: var(--green-700); font-size: .68rem; font-weight: 800; }
.bid-vendor { display: flex; align-items: center; gap: 9px; }
.bid-vendor > div:nth-child(2) { min-width: 0; flex: 1; }
.bid-vendor h3 { overflow: hidden; margin: 0; font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
.score-ring { display: grid; width: 53px; height: 53px; flex: 0 0 auto; place-items: center; align-content: center; border-radius: 50%; background: radial-gradient(closest-side, white 76%, transparent 78% 99%), conic-gradient(var(--green-700) calc(var(--score) * 1%), #dce6e2 0); }
.score-ring strong { font-size: .88rem; line-height: 1; }
.score-ring small { color: var(--muted); font-size: .55rem; }
.bid-total { display: flex; flex-direction: column; margin: 15px 0; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; padding: 11px; }
.bid-total small, .bid-total span { color: var(--muted); font-size: .68rem; }
.bid-total strong { font-size: 1.6rem; letter-spacing: -.04em; }
.bid-facts { display: grid; gap: 8px; margin: 0 0 15px; }
.bid-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: .76rem; }
.bid-facts dt { color: var(--muted); }
.bid-facts dd { margin: 0; color: var(--navy-900); font-weight: 700; text-align: right; }
.bid-flags { margin-bottom: 13px; border-radius: 10px; background: var(--amber-100); padding: 9px; }
.bid-flags p { display: flex; gap: 6px; margin: 0; color: var(--amber-700); font-size: .67rem; }
.bid-form-panel { padding: 30px; }
.live-total { display: flex; align-items: center; justify-content: space-between; border-radius: 12px; background: var(--navy-900); padding: 13px 15px; color: white; }
.live-total strong { color: white; font-size: 1.25rem; }
.project-aside { min-width: 0; }
.project-summary { position: sticky; top: 94px; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; border-radius: 10px; background: var(--green-100); padding: 10px; color: var(--green-700); font-size: .76rem; }
.safety-card ul { display: grid; gap: 8px; padding-left: 20px; color: #53647b; font-size: .85rem; }
.report-link, .text-button { width: fit-content; border: 0; background: transparent; padding: 0; color: var(--red-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.join-panel { text-align: center; }
.join-panel .feature-icon { margin-inline: auto; }

/* Dialogs */
.modal { width: min(calc(100% - 28px), 640px); max-height: min(86vh, 820px); overflow: auto; border: 0; border-radius: 20px; background: white; box-shadow: 0 30px 90px rgba(3,18,41,.3); padding: 28px; }
.modal.small-modal { max-width: 510px; }
.modal::backdrop { background: rgba(4, 17, 38, .62); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal-head h2 { margin: 0; }
.modal-head button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 10px; background: #eef2f7; color: var(--navy-900); }
.quote-breakdown { display: grid; gap: 9px; border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.quote-breakdown > div { display: flex; justify-content: space-between; color: var(--muted); }
.quote-breakdown .quote-grand { margin: 5px -15px -15px; border-radius: 0 0 13px 13px; background: var(--navy-900); padding: 13px 15px; color: white; }
.quote-breakdown .quote-grand strong { color: white; font-size: 1.2rem; }
.modal-copy { padding-block: 20px; }
.modal-copy h3 { margin-top: 14px; font-size: .92rem; }
.modal-copy p { color: var(--muted); }
.selection-form { display: grid; gap: 15px; border-top: 1px solid var(--line); padding-top: 18px; }

/* Wizard */
.form-page-head { padding-block: 40px 20px; text-align: center; }
.form-page-head .back-link { float: left; }
.form-page-head h1 { margin-bottom: 10px; font-size: clamp(2.3rem, 5vw, 3.9rem); }
.form-page-head > p:last-child { color: var(--muted); }
.project-wizard-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-bottom: 90px; }
.wizard-progress { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; margin: 10px 0 16px; }
.wizard-progress button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 700; }
.wizard-progress button span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #dfe5ec; font-size: .78rem; }
.wizard-progress button.active, .wizard-progress button.done { color: var(--navy-900); }
.wizard-progress button.active span { background: var(--blue-700); color: white; }
.wizard-progress button.done span { background: var(--green-100); color: var(--green-700); }
.wizard-progress i { width: 60px; height: 2px; background: #dfe5ec; }
.wizard-form { min-width: 0; padding: 35px; }
.wizard-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.wizard-heading .step-icon { flex: 0 0 auto; }
.wizard-heading h2, .wizard-heading p { margin-bottom: 4px; }
.wizard-heading > div > p:last-child { color: var(--muted); }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.smart-range, .safety-inline, .plain-notice { display: flex; align-items: flex-start; gap: 11px; border-radius: 12px; background: var(--blue-50); padding: 13px; }
.smart-range > span, .safety-inline > .icon, .plain-notice > .icon { color: var(--blue-700); }
.smart-range p, .safety-inline p, .plain-notice p { margin: 1px 0 0; color: var(--muted); font-size: .78rem; }
.assist-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #bad8cb; border-radius: 14px; background: linear-gradient(120deg, #effaf6, #f8fcff); padding: 15px; }
.assist-box > div { display: flex; align-items: center; gap: 11px; }
.assist-box p { margin: 0; color: var(--muted); font-size: .78rem; }
.assist-spark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--green-700); color: white; font-size: 1.2rem; }
.file-drop { display: grid; place-items: center; border: 1px dashed #9fb2c9; border-radius: 14px; background: #f8fafc; padding: 23px; text-align: center; cursor: pointer; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop > span { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 7px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); }
.file-drop small, .file-drop em { color: var(--muted); font-size: .74rem; font-style: normal; }
.file-drop em { margin-top: 7px; color: var(--blue-700); font-weight: 700; }
.file-drop.compact { padding: 17px; }
.safety-inline { background: var(--amber-100); }
.safety-inline > .icon, .safety-inline strong { color: var(--amber-700); }
.wizard-aside .panel { padding: 22px; }
.wizard-aside h2 { font-size: 1.25rem; }
.wizard-aside p { color: var(--muted); font-size: .87rem; }
.plain-checks { display: grid; gap: 10px; list-style: none; padding: 0; color: #4f6078; font-size: .86rem; }
.plain-checks li { display: flex; align-items: center; gap: 8px; }
.plain-checks .icon { color: var(--green-700); }

/* Messages */
.messages-page { padding-bottom: 80px; }
.messages-page .page-hero { min-height: 210px; padding-bottom: 25px; }
.messenger { display: grid; min-height: 590px; grid-template-columns: 320px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.conversation-list { border-right: 1px solid var(--line); background: #f8fafc; }
.conversation-head { display: flex; height: 62px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 18px; }
.conversation-head span { display: grid; min-width: 24px; height: 24px; place-items: center; border-radius: 99px; background: #e4eaf2; color: var(--muted); font-size: .72rem; }
.conversation { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 13px 15px; }
.conversation:hover, .conversation.active { background: white; }
.conversation.active { box-shadow: inset 3px 0 var(--blue-700); }
.conversation > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.conversation strong, .conversation small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation small { color: var(--muted); }
.conversation > i { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 99px; background: var(--coral-600); color: white; font-size: .66rem; font-style: normal; }
.conversation-empty { padding: 24px 18px; color: var(--muted); text-align: center; }
.conversation-empty a { color: var(--blue-700); font-weight: 700; }
.chat-panel { display: grid; min-width: 0; grid-template-rows: auto 1fr auto; }
.chat-head { display: flex; height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 18px; }
.chat-head > div { display: flex; align-items: center; gap: 10px; }
.chat-head > div > div { display: flex; flex-direction: column; }
.chat-head a { color: var(--blue-700); font-size: .76rem; }
.private-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; background: var(--green-100); padding: 5px 9px; color: var(--green-700); font-size: .7rem; font-weight: 750; }
.chat-messages { display: flex; min-height: 0; flex-direction: column; gap: 8px; overflow-y: auto; background: linear-gradient(180deg, #fbfcfe, #f4f7fb); padding: 24px; }
.chat-date { align-self: center; margin-bottom: 10px; border-radius: 99px; background: #e8edf3; padding: 4px 9px; color: var(--muted); font-size: .68rem; }
.message-bubble { max-width: min(76%, 540px); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; background: white; padding: 10px 12px; }
.message-bubble.mine { align-self: flex-end; border-color: #b9d8ff; border-radius: 16px 16px 4px; background: var(--blue-100); }
.message-bubble p { margin: 0; white-space: normal; }
.message-bubble time { display: block; margin-top: 5px; color: var(--muted); font-size: .64rem; text-align: right; }
.chat-empty, .no-active-chat { display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.chat-empty > span, .no-active-chat > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; background: var(--blue-100); color: var(--blue-700); }
.chat-empty h2, .no-active-chat h2 { margin: 15px 0 5px; font-size: 1.3rem; }
.message-compose { display: flex; align-items: flex-end; gap: 10px; border-top: 1px solid var(--line); padding: 13px; }
.message-compose textarea { min-height: 48px; max-height: 130px; flex: 1; resize: none; }
.messaging-safety { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 13px; color: var(--muted); font-size: .75rem; }

/* Settings / verification / family */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; padding-bottom: 90px; }
.settings-main { padding: 32px; }
.settings-side { min-width: 0; }
.profile-preview, .account-summary { text-align: center; }
.profile-preview .vendor-avatar, .account-summary .avatar { margin: 0 auto 15px; }
.profile-preview p, .account-summary p { color: var(--muted); }
.profile-preview .verification-badge { margin-inline: auto; }
.profile-preview .service-tags { justify-content: center; }
.xl-avatar { width: 72px; height: 72px; font-size: 1rem; }
.role-chip { display: inline-flex; border-radius: 99px; background: var(--blue-100); padding: 5px 10px; color: var(--blue-700); font-size: .75rem; font-weight: 750; }
.verification-layout { display: grid; gap: 22px; padding-bottom: 90px; }
.verification-score { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 28px; }
.score-big { display: grid; place-items: center; border-right: 1px solid var(--line); text-align: center; }
.score-big strong { color: var(--blue-700); font-size: 2.6rem; line-height: 1; }
.score-big span { color: var(--muted); font-size: .75rem; }
.verification-score h2 { margin-bottom: 5px; }
.verification-score p { margin: 0; color: var(--muted); }
.check-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.check-card { display: flex; min-width: 0; flex-direction: column; padding: 18px; }
.check-symbol { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 13px; border-radius: 11px; background: var(--green-100); color: var(--green-700); }
.check-card.pending .check-symbol { background: var(--amber-100); color: var(--amber-700); }
.check-card.rejected .check-symbol { background: var(--red-100); color: var(--red-700); }
.check-card h2 { font-size: 1rem; }
.check-card p { min-height: 56px; color: var(--muted); font-size: .76rem; }
.check-status { color: var(--green-700); font-size: .72rem; font-weight: 800; }
.check-card.pending .check-status { color: var(--amber-700); }
.check-card .text-link { margin-top: auto; padding-top: 12px; border: 0; background: transparent; font-size: .75rem; }
.plain-notice { background: #eef3f8; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 12px; text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
td strong, td small { display: block; }
td small { color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
.family-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; padding-bottom: 90px; }
.helper-list { display: grid; align-content: start; gap: 12px; }
.helper-row { display: flex; align-items: center; gap: 14px; padding: 20px; }
.helper-info { min-width: 0; flex: 1; }
.helper-info h2 { margin: 0; font-size: 1.08rem; }
.helper-info p { margin: 2px 0; color: var(--muted); font-size: .82rem; }
.helper-info > span { color: var(--blue-700); font-size: .74rem; font-weight: 700; }
.row-menu { position: relative; }
.row-menu summary { cursor: pointer; list-style: none; }
.row-menu form { position: absolute; top: 30px; right: 0; width: 140px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); padding: 6px; }
.row-menu button { width: 100%; border: 0; border-radius: 7px; background: transparent; padding: 7px; color: var(--red-700); }
.poc-note p:last-child { margin: 0; color: var(--muted); font-size: .82rem; }

/* Community circles */
.circles-hero { align-items: center; }
.circle-count { display: grid; min-width: 145px; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: white; padding: 18px 24px; box-shadow: var(--shadow-sm); }
.circle-count strong { font-size: 2rem; line-height: 1; }
.circle-count span { margin-top: 5px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.circles-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-bottom: 90px; }
.circles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.circle-card { position: relative; display: flex; min-height: 315px; flex-direction: column; overflow: hidden; }
.circle-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--line); content: ""; }
.circle-card.joined::before { background: linear-gradient(90deg, var(--blue-700), var(--green-700)); }
.circle-card-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.circle-symbol { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--blue-100); color: var(--blue-700); font-size: 1.1rem; font-weight: 850; }
.circle-card h2 { margin: 2px 0 0; font-size: 1.18rem; }
.circle-type { color: var(--blue-700); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.circle-card > p { color: #4c5c72; }
.circle-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: auto; color: var(--muted); font-size: .78rem; font-weight: 650; }
.circle-meta span { display: inline-flex; align-items: center; gap: 5px; }
.circle-meta .icon { width: 15px; height: 15px; }
.circle-action { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.circle-action.with-code { display: grid; grid-template-columns: 1fr auto; }
.circle-action label span { display: block; margin-bottom: 5px; color: var(--navy-900); font-size: .72rem; font-weight: 750; }
.circle-action input { width: 100%; min-height: 42px; }
.circle-explainer { background: linear-gradient(145deg, #f4f9ff, white); }
.circle-pro-list { display: flex; flex-direction: column; }
.circle-pro-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-block: 13px; }
.circle-pro-list a:first-child { border-top: 0; }
.circle-pro-list small { display: block; margin-top: 2px; color: var(--muted); }
.circle-pro-list > a > .icon { width: 17px; color: var(--blue-700); }
.circle-prompt { background: linear-gradient(145deg, #f2f8ff, white); }

/* Project payment-plan simulation */
.payment-plan { border-color: #cadcef; }
.payment-note { margin: -2px 0 18px; border-radius: 10px; background: #f3f7fb; padding: 11px 13px; color: #52647b; font-size: .82rem; }
.milestone-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.milestone-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 15px; }
.milestone-row + .milestone-row { border-top: 1px solid var(--line); }
.milestone-row > div small { display: block; margin-top: 2px; color: var(--muted); }
.milestone-state { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #edf2f7; color: #65758b; }
.milestone-state.requested { background: #fff3db; color: #9a6310; }
.milestone-state.released { background: var(--green-100); color: var(--green-700); }
.milestone-state .icon { width: 18px; height: 18px; }
.mini-status.planned { background: #edf2f7; color: #596b82; }
.mini-status.requested { background: #fff3db; color: #845509; }
.mini-status.released { background: var(--green-100); color: var(--green-700); }

/* Home record */
.record-hero { background: linear-gradient(125deg, var(--navy-900), #143e70); color: white; }
.record-hero > .wrap { display: flex; min-height: 270px; align-items: center; justify-content: space-between; gap: 25px; }
.record-hero h1, .record-hero .eyebrow { margin-bottom: 7px; color: white; }
.record-hero p:last-child { margin: 0; color: #c4d4e9; }
.record-content { padding-bottom: 90px; }
.record-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: -35px 0 48px; }
.record-stats > div { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); padding: 17px; }
.record-stats p { display: flex; flex-direction: column; margin: 0; }
.record-stats strong { font-size: 1.35rem; }
.record-stats span { color: var(--muted); font-size: .78rem; }
.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 35px; }
.record-timeline { display: grid; }
.record-item { display: grid; grid-template-columns: 50px 16px minmax(0, 1fr); gap: 11px; }
.record-date { display: flex; align-items: center; flex-direction: column; padding-top: 19px; }
.record-date strong { text-transform: uppercase; }
.record-date span { color: var(--muted); font-size: .72rem; }
.record-dot { position: relative; }
.record-dot::before { position: absolute; top: 0; bottom: 0; left: 7px; width: 2px; background: #d8e1ec; content: ""; }
.record-dot::after { position: absolute; top: 26px; left: 2px; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: var(--blue-700); box-shadow: 0 0 0 2px var(--blue-700); content: ""; }
.record-item .panel { margin-bottom: 16px; }
.record-item-head { display: flex; justify-content: space-between; gap: 20px; }
.record-item-head h3 { margin: 9px 0 0; }
.record-item-head p { color: var(--muted); font-size: .8rem; }
.record-item > .panel > p { color: #53647b; }
.warranty-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; background: var(--green-100); padding: 5px 8px; color: var(--green-700); font-size: .72rem; font-weight: 700; }
.transfer-card p { color: var(--muted); }

/* Admin */
.admin-shell { padding-block: 45px 90px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.admin-head h1 { margin-bottom: 6px; font-size: clamp(2.4rem, 5vw, 4rem); }
.admin-head p { color: var(--muted); }
.admin-label, .poc-label { display: inline-flex; border-radius: 999px; background: var(--navy-900); padding: 5px 10px; color: white; font-size: .7rem; font-weight: 800; }
.admin-tabs { display: flex; overflow-x: auto; gap: 4px; margin: 22px 0 30px; border-bottom: 1px solid var(--line); }
.admin-tabs a { display: flex; align-items: center; gap: 7px; border-bottom: 3px solid transparent; padding: 11px 13px; color: var(--muted); font-size: .86rem; font-weight: 720; white-space: nowrap; }
.admin-tabs a.active { border-color: var(--blue-700); color: var(--navy-900); }
.admin-tabs i { display: grid; min-width: 19px; height: 19px; place-items: center; border-radius: 99px; background: var(--coral-600); color: white; font-size: .65rem; font-style: normal; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.admin-stat-grid > div { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 15px; background: white; padding: 17px; }
.admin-stat-grid > div > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); }
.admin-stat-grid p { display: flex; flex-direction: column; margin: 0; }
.admin-stat-grid strong { font-size: 1.4rem; line-height: 1; }
.admin-stat-grid small { margin-top: 4px; color: var(--muted); }
.admin-overview-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; }
.admin-project-list { display: grid; }
.admin-project-list > a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; }
.admin-project-list > a:first-child { border-top: 0; }
.category-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--blue-100); color: var(--blue-700); }
.admin-project-list > a > span:nth-child(2) { display: flex; flex-direction: column; }
.admin-project-list small, .admin-project-list > a > span:nth-child(3) { color: var(--muted); font-size: .75rem; }
.activity-list { display: grid; }
.activity-list > div { display: flex; gap: 11px; }
.activity-dot { position: relative; width: 10px; flex: 0 0 auto; }
.activity-dot::before { position: absolute; top: 7px; bottom: -12px; left: 4px; width: 2px; background: var(--line); content: ""; }
.activity-dot::after { position: absolute; top: 5px; left: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-700); content: ""; }
.activity-list > div:last-child .activity-dot::before { display: none; }
.activity-list p { margin-bottom: 16px; font-size: .8rem; }
.activity-list small { display: block; color: var(--muted); }
.admin-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-section-head h2 { margin-bottom: 4px; }
.admin-section-head p:last-child { margin: 0; color: var(--muted); }
.queue-count { border-radius: 99px; background: var(--blue-100); padding: 7px 11px; color: var(--blue-700); font-size: .75rem; font-weight: 800; }
.verification-admin-list { display: grid; gap: 10px; }
.verification-review { display: grid; grid-template-columns: 1.5fr repeat(3, .7fr) auto 1fr; align-items: center; gap: 14px; padding: 17px; }
.verification-person { display: flex; align-items: center; gap: 10px; }
.verification-person h3, .verification-person p { margin: 0; }
.verification-person p { color: var(--muted); font-size: .77rem; }
.verification-review > div:not(.verification-person):not(.review-actions) { display: flex; flex-direction: column; }
.verification-review small { color: var(--muted); }
.review-actions { display: flex; justify-content: flex-end; gap: 7px; }
.report-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.report-list article > div { display: flex; justify-content: space-between; }
.report-list article > small { color: var(--muted); }
.report-list form { margin-top: 16px; }
.danger-zone { display: flex; align-items: flex-start; gap: 20px; border-color: #f3c4ca; }
.danger-zone > div { flex: 1; }
.danger-zone p { color: var(--muted); }
.reset-form { display: flex; align-items: flex-end; gap: 12px; margin-top: 20px; }
.reset-form label { display: flex; flex: 1; flex-direction: column; gap: 6px; }
.reset-form label span { font-size: .8rem; font-weight: 700; }
.demo-credentials { margin-top: 20px; }
.demo-credentials > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-credentials > div > span { display: grid; border-radius: 12px; background: #f5f8fc; padding: 14px; }
.demo-credentials code { margin-top: 5px; }
.demo-credentials > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: .8rem; }

/* Informational pages */
.journey-switcher { padding-bottom: 75px; }
.tab-buttons { display: flex; width: fit-content; margin: 0 auto 32px; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 5px; }
.tab-buttons button { border: 0; border-radius: 9px; background: transparent; padding: 10px 17px; color: var(--muted); font-weight: 720; }
.tab-buttons button.active { background: var(--navy-900); color: white; }
.journey-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.journey-panel article { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 24px; }
.journey-panel article > span { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 18px; border-radius: 10px; background: var(--blue-100); color: var(--blue-700); font-weight: 850; }
.journey-panel h2 { font-size: 1.22rem; }
.journey-panel p { margin: 0; color: var(--muted); font-size: .88rem; }
.match-explainer { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid #d3dfed; border-radius: var(--radius); background: white; }
.match-explainer > div { padding: 22px; }
.match-explainer > div + div { border-left: 1px solid var(--line); }
.match-explainer strong { display: block; color: var(--blue-700); font-size: 1.7rem; }
.match-explainer span { font-weight: 800; }
.match-explainer p { margin: 8px 0 0; color: var(--muted); font-size: .75rem; }
.two-path-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-path-cta > div { border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; padding: 35px; }
.two-path-cta p { color: var(--muted); }
.safety-hero { background: linear-gradient(135deg, var(--navy-900), #174a7c); color: white; }
.safety-hero > .wrap { min-height: 390px; padding-block: 65px; }
.safety-hero h1, .safety-hero .eyebrow { color: white; }
.safety-hero p:last-child { max-width: 700px; color: #c5d8ee; font-size: 1.1rem; }
.safety-content { padding-block: 60px 90px; }
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.safety-grid article > span { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 18px; border-radius: 13px; background: var(--blue-100); color: var(--blue-700); }
.safety-grid h2 { font-size: 1.18rem; }
.safety-grid p { margin: 0; color: var(--muted); font-size: .85rem; }
.warning-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 45px; margin-block: 60px; }
.warning-section ul { display: grid; gap: 10px; margin: 0; list-style: none; padding: 0; }
.warning-section li { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #f0d4ad; border-radius: 13px; background: #fffbf2; padding: 13px; color: var(--amber-700); }
.warning-section li > span { display: flex; flex-direction: column; color: #5c6170; font-size: .82rem; }
.warning-section li strong { color: var(--amber-700); }
.emergency-card { display: flex; align-items: flex-start; gap: 16px; border-radius: var(--radius); background: var(--red-700); padding: 24px; color: white; }
.emergency-card > span { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: rgba(255,255,255,.14); }
.emergency-card h2 { margin-bottom: 4px; color: white; }
.emergency-card p { margin: 0; color: #ffe2e6; }
.report-centre { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 25px; }
.report-centre h2, .report-centre p { margin-bottom: 4px; }
.report-centre p:last-child { color: var(--muted); }
.legal-page { padding-block: 65px 100px; }
.legal-head { max-width: 760px; margin-bottom: 50px; }
.legal-head h1 { margin-bottom: 10px; }
.legal-head p:last-child { color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 720px); gap: 65px; }
.legal-layout nav { position: sticky; top: 100px; display: flex; height: fit-content; flex-direction: column; border-left: 2px solid var(--line); }
.legal-layout nav a { padding: 7px 14px; color: var(--muted); font-size: .85rem; }
.legal-layout nav a:hover { color: var(--blue-700); }
.legal-layout article section { scroll-margin-top: 100px; margin-bottom: 40px; }
.legal-layout article h2 { font-size: 1.45rem; }
.legal-layout article p { color: #4d5e75; }

/* Footer */
.site-footer { border-top: 1px solid #233d62; background: var(--navy-950); color: #aebed3; }
.footer-inner { display: grid; width: min(calc(100% - 40px), var(--max)); grid-template-columns: 1fr 1fr; gap: 50px; margin-inline: auto; padding-block: 52px; }
.footer-brand { color: white; }
.footer-inner > div:first-child p { margin: 15px 0; }
.footer-inner .poc-label { background: rgba(255,255,255,.1); color: #c7d5e7; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.footer-links > div { display: flex; flex-direction: column; gap: 7px; }
.footer-links strong { margin-bottom: 5px; color: white; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; width: min(calc(100% - 40px), var(--max)); align-items: center; justify-content: space-between; gap: 20px; margin-inline: auto; border-top: 1px solid #1d3150; padding-block: 20px; font-size: .78rem; }

.error-page { display: grid; min-height: 100vh; place-items: center; align-content: center; gap: 20px; }
.error-page .panel { width: 100%; text-align: center; }

/* Responsive */
@media (max-width: 1120px) {
    .site-nav > a { padding-inline: 8px; font-size: .85rem; }
    .hero-section { grid-template-columns: 1fr .9fr; min-height: 620px; }
    .hero-copy { width: min(580px, calc(100% - 34px)); }
    .marketplace-grid, .vendors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bid-grid { grid-template-columns: 1fr; }
    .check-card-grid { grid-template-columns: repeat(3, 1fr); }
    .verification-review { grid-template-columns: 1.4fr .7fr .7fr auto 1fr; }
    .verification-review > div:nth-child(4) { display: none !important; }
    .journey-panel, .safety-grid { grid-template-columns: repeat(2, 1fr); }
    .match-explainer { grid-template-columns: repeat(5, minmax(165px, 1fr)); overflow-x: auto; }
}

@media (max-width: 920px) {
    .menu-button { display: grid; }
    .site-nav { position: fixed; inset: 72px 0 auto; display: none; max-height: calc(100vh - 72px); align-items: stretch; flex-direction: column; overflow-y: auto; border-bottom: 1px solid var(--line); background: white; box-shadow: var(--shadow); padding: 16px 20px 24px; }
    .site-nav.open { display: flex; }
    .site-nav > a { padding: 12px; font-size: 1rem; }
    .nav-actions { align-items: stretch; flex-direction: column; margin: 8px 0 0; }
    .nav-actions .button { width: 100%; }
    .account-menu summary { display: flex; justify-content: center; }
    .account-popover { position: static; width: 100%; box-shadow: none; margin-top: 8px; }
    .hero-section { min-height: auto; grid-template-columns: 1fr; }
    .hero-copy { width: min(calc(100% - 40px), 700px); margin-inline: auto; padding: 65px 0 45px; }
    .hero-visual { height: 500px; }
    .hero-visual::after { inset: 0 0 auto; width: auto; height: 18%; background: linear-gradient(180deg, #eaf3ff, transparent); }
    .quick-proof { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
    .quick-proof > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
    .quick-proof > div:nth-child(4) { border-top: 1px solid var(--line); }
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-split { grid-template-columns: 1fr; }
    .project-layout, .profile-grid, .settings-layout, .family-layout, .circles-layout, .record-layout, .project-wizard-shell { grid-template-columns: 1fr; }
    .circles-side { display: grid; grid-template-columns: repeat(2, 1fr); }
    .project-aside { display: grid; grid-template-columns: repeat(2, 1fr); }
    .project-summary { position: static; }
    .dashboard-main { width: 100%; padding-right: 0; }
    .dashboard-side { position: static; display: grid; width: 100%; grid-template-columns: 1fr 1fr; margin-top: 24px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .project-wizard-shell .wizard-aside { display: grid; grid-template-columns: 1fr 1fr; }
    .messenger { grid-template-columns: 260px minmax(0, 1fr); }
    .verification-review { grid-template-columns: 1.5fr .8fr auto 1fr; }
    .verification-review > div:nth-child(3) { display: none !important; }
    .admin-overview-grid { grid-template-columns: 1fr; }
    .warning-section { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 700px) {
    .wrap, .header-inner, .footer-inner, .footer-bottom, .auth-shell, .setup-shell { width: min(calc(100% - 28px), var(--max)); }
    .section { padding-block: 58px; }
    .panel { padding: 20px; }
    .header-inner { min-height: 66px; }
    .site-nav { top: 66px; }
    .brand small { display: none; }
    .hero-copy { width: calc(100% - 28px); padding-top: 48px; }
    .hero-copy h1 { font-size: clamp(2.65rem, 14vw, 4.3rem); }
    .hero-lead { font-size: 1.03rem; }
    .hero-search { display: grid; grid-template-columns: auto 1fr; }
    .hero-search button { grid-column: 1 / -1; width: 100%; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .hero-actions .text-link { justify-content: center; min-height: 44px; }
    .hero-visual { height: 370px; }
    .hero-visual > img { object-position: 68% center; }
    .floating-card { padding: 9px 10px; transform: scale(.85); }
    .quote-preview { bottom: 5%; left: -6px; transform-origin: left bottom; }
    .verified-preview { top: 8%; right: -12px; transform-origin: right top; }
    .quick-proof { grid-template-columns: 1fr 1fr; }
    .quick-proof > div { align-items: flex-start; flex-direction: column; gap: 0; padding: 16px; }
    .quick-proof > div:nth-child(3) { border-left: 0; }
    .section-heading.split, .page-hero, .dashboard-hero, .project-head, .admin-section-head, .record-hero > .wrap, .report-centre, .final-cta { align-items: flex-start; flex-direction: column; }
    .projects-grid, .projects-grid.two-col, .marketplace-grid, .vendors-grid, .circles-grid, .step-grid, .form-grid.two, .form-grid.three, .form-grid.four, .checkbox-grid, .two-path-cta, .safety-grid, .report-list { grid-template-columns: 1fr; }
    .feature-panel { min-height: 440px; padding: 28px; }
    .helper-card, .record-mini { right: 20px; bottom: 20px; left: 20px; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar select, .filter-bar .button { width: 100%; }
    .result-summary { align-items: flex-start; flex-direction: column; }
    .result-summary span { margin: 0; }
    .profile-hero { grid-template-columns: auto 1fr; padding: 23px; }
    .profile-hero > .verification-badge { grid-column: 1 / -1; }
    .trust-detail { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-shell { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding-block: 36px 60px; }
    .auth-intro h1 { font-size: 2.7rem; }
    .auth-card, .setup-card { padding: 24px; }
    .role-choice { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid > a { align-items: flex-start; flex-direction: column; }
    .stat-grid > a > .icon { display: none; }
    .dashboard-side, .project-aside, .project-wizard-shell .wizard-aside { grid-template-columns: 1fr; }
    .circles-side { grid-template-columns: 1fr; }
    .circle-card { min-height: 0; }
    .milestone-row { grid-template-columns: auto 1fr auto; }
    .milestone-row form, .milestone-row > .mini-status { grid-column: 2 / -1; justify-self: start; }
    .quote-list > a { grid-template-columns: 1fr auto; gap: 8px; }
    .quote-list .mini-status { grid-column: 1; }
    .quote-list > a > .icon { grid-column: 2; grid-row: 1 / 3; }
    .project-head h1 { font-size: 2.65rem; }
    .selected-banner { align-items: flex-start; flex-wrap: wrap; }
    .selected-banner .button { width: 100%; }
    .wizard-progress button small { display: none; }
    .wizard-progress i { width: 35px; }
    .wizard-form { padding: 22px; }
    .wizard-heading { flex-direction: column; }
    .assist-box { align-items: stretch; flex-direction: column; }
    .messenger { display: block; min-height: auto; overflow: visible; }
    .conversation-list { border-right: 0; border-bottom: 1px solid var(--line); }
    .conversation-list { max-height: 265px; overflow-y: auto; }
    .chat-panel { min-height: 540px; }
    .chat-messages { min-height: 370px; }
    .message-bubble { max-width: 88%; }
    .message-compose { align-items: stretch; flex-direction: column; }
    .verification-score { grid-template-columns: 1fr; text-align: center; }
    .score-big { border: 0; }
    .check-card-grid { grid-template-columns: 1fr 1fr; }
    .check-card p { min-height: 0; }
    .helper-row { align-items: flex-start; flex-wrap: wrap; }
    .helper-info { min-width: calc(100% - 70px); }
    .record-hero > .wrap { min-height: 250px; justify-content: center; padding-block: 35px 55px; }
    .record-stats { grid-template-columns: 1fr; margin-top: -28px; }
    .record-item { grid-template-columns: 42px 13px minmax(0,1fr); gap: 7px; }
    .record-item .panel { padding: 16px; }
    .record-item-head { flex-direction: column; gap: 4px; }
    .admin-head { align-items: flex-start; flex-direction: column; }
    .admin-stat-grid { grid-template-columns: 1fr 1fr; }
    .admin-project-list > a { grid-template-columns: auto 1fr; }
    .admin-project-list > a > span:nth-child(3), .admin-project-list .status-badge { display: none; }
    .verification-review { grid-template-columns: 1fr auto; }
    .verification-review > div:not(.verification-person):not(.review-actions), .verification-review > .mini-status { display: none !important; }
    .review-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .reset-form { align-items: stretch; flex-direction: column; }
    .demo-credentials > div { grid-template-columns: 1fr; }
    .journey-panel { grid-template-columns: 1fr; }
    .tab-buttons { width: 100%; }
    .tab-buttons button { flex: 1; padding-inline: 10px; }
    .legal-layout { grid-template-columns: 1fr; gap: 25px; }
    .legal-layout nav { position: static; overflow-x: auto; flex-direction: row; border: 0; }
    .legal-layout nav a { white-space: nowrap; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
    .button { padding-inline: 14px; }
    .hero-visual { height: 315px; }
    .quick-proof strong { font-size: 1.3rem; }
    .quick-proof span { font-size: .74rem; }
    .feature-panel { min-height: 480px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .stat-grid > a { padding: 12px; }
    .stat-icon { width: 38px; height: 38px; }
    .check-card-grid { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: 1fr; }
    .circle-card-top { grid-template-columns: auto 1fr; }
    .circle-card-top .mini-status { grid-column: 2; justify-self: start; }
    .circle-action.with-code { grid-template-columns: 1fr; }
    .circle-action.with-code .button { width: 100%; }
    .record-item { grid-template-columns: 0 12px minmax(0,1fr); }
    .record-date { display: none; }
    .admin-stat-grid { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    .site-header, .site-footer, .button, .report-link, .wizard-progress { display: none !important; }
    body { background: white; color: black; }
    .panel, .project-card { break-inside: avoid; border-color: #bbb; box-shadow: none; }
}
