/* Project details and private workspaces share the catalogue's neutral light palette. */
.project-hub-page { min-width:0;overflow-x:visible; }
.project-hub-page [hidden] { display:none!important; }
.project-hub-page :where(h1,h2,h3,p,dl,dd,figure) { margin:0; }
.project-hub-page :where(h1,h2,h3,p,a,button,strong,span,label,small,dt,dd,th,td) { overflow-wrap:anywhere; }
.hub-shell { width:min(1240px,calc(100% - 48px));margin-inline:auto;min-width:0; }
.hub-header { position:sticky;z-index:205;top:0;background:var(--surface);border-bottom:1px solid var(--line); }
.hub-header-inner { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px; }
.hub-header nav { display:flex;align-items:center;justify-content:end;gap:clamp(9px,2.4vw,28px);min-width:0; }
.hub-header nav a { font-size:13px;font-weight:700;color:var(--ink-soft); }
.hub-header nav a:hover,.hub-footer a:hover { color:var(--brand-bright);text-decoration:underline; }
.hub-main { padding-top:25px;padding-bottom:70px; }
.hub-crumb { display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:13px;color:var(--muted);font-size:12px; }
.hub-crumb a,.hub-record a { color:var(--brand-bright); }
.hub-surface { min-width:0;background:var(--surface);border:1px solid var(--line-strong);border-radius:16px; }
.hub-hero { display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);overflow:hidden;min-height:355px; }
.hub-hero-copy { display:flex;flex-direction:column;justify-content:center;min-width:0;padding:clamp(20px,4vw,50px); }
.hub-kicker { color:var(--brand-bright);font-size:10px;letter-spacing:.07em;font-weight:800; }
.hub-hero h1,.hub-intro h1 { font-size:clamp(27px,4.5vw,54px);line-height:1.17;letter-spacing:-.045em;margin:10px 0 12px; }
.hub-location,.hub-company,.hub-intro p { color:var(--muted);font-size:14px; }
.hub-company { margin-top:5px;font-weight:750; }
.hub-hero-media { position:relative;min-width:0;min-height:100%;background:var(--surface-soft);isolation:isolate; }
.hub-hero-media img { display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover; }
.hub-photo-open { position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:none;cursor:zoom-in; }
.hub-photo-open:focus-visible { outline-offset:-5px!important; }
.hub-hero-media img[src="/empty-house.svg"] { object-fit:contain; }
.hub-gallery-controls { position:absolute;bottom:12px;right:12px;display:flex;align-items:center;gap:6px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);padding:4px 6px;border-radius:12px;font-size:11px; }
.hub-gallery-controls .hub-button { width:36px;min-height:36px;padding:0;font-size:20px; }
.hub-hero-stats,.hub-stats { display:flex;flex-wrap:wrap;gap:9px;margin:17px 0; }
.hub-hero-stats>div,.hub-stats>div { min-width:0;flex:0 1 auto;padding:8px 12px;border-radius:10px;background:var(--surface-soft);border:1px solid var(--line); }
.hub-hero-stats small,.hub-stats small { display:block;color:var(--muted);font-size:10px; }
.hub-hero-stats strong,.hub-stats strong { display:block;font-size:15px;color:var(--ink); }
.hub-actions { display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0; }
.hub-button { display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:8px 12px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--ink);text-decoration:none;font:750 12px/1.45 var(--font);white-space:normal;text-align:center;cursor:pointer; }
.hub-button:hover,.hub-button[aria-pressed="true"] { background:var(--brand-soft);color:var(--brand-bright);border-color:var(--brand); }
.hub-button.hub-primary,.hub-button[data-primary] { background:var(--brand);border-color:var(--brand);color:var(--on-primary); }
.hub-button.hub-primary:hover,.hub-button[data-primary]:hover { background:var(--brand-deep);color:#fff; }
.hub-button:disabled { opacity:.55;cursor:not-allowed; }
.hub-section { margin-top:43px;scroll-margin-top:90px; }
.hub-section-head { display:flex;justify-content:space-between;align-items:center;gap:14px;min-width:0;margin-bottom:13px;flex-wrap:wrap; }
.hub-section-head h2,.hub-account-section h2 { font-size:clamp(20px,3vw,32px);letter-spacing:-.025em;line-height:1.35;margin:3px 0; }
.hub-stock { overflow:hidden; }
.hub-filters { display:grid;grid-template-columns:repeat(4,minmax(100px,1fr)) auto;gap:10px;padding:14px;background:var(--surface-soft);border-bottom:1px solid var(--line);align-items:end; }
.hub-filters label,.hub-form label,.hub-select-label { display:grid;gap:5px;min-width:0;font-size:12px;font-weight:750; }
.hub-filters :is(input:not([type="checkbox"]),select),.hub-form :is(input:not([type="checkbox"]),select,textarea),.hub-select-label select {
 display:block;width:100%;min-height:43px;min-width:0;max-width:100%;margin:0;padding:8px 10px;background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;font:inherit;
}
.hub-filters input:disabled { background:var(--surface-soft);opacity:.68; }
.hub-filters .hub-check,.hub-form .hub-check { display:flex;align-items:center;gap:8px;min-height:42px; }
.hub-check input { accent-color:var(--brand);width:17px;height:17px;flex:none; }
.hub-count { padding:11px 15px;color:var(--muted);font-size:12px;font-weight:700; }
.hub-unit { display:grid;grid-template-columns:minmax(92px,.66fr) minmax(105px,.7fr) minmax(110px,.7fr) minmax(0,1.9fr);gap:12px;align-items:center;padding:13px 15px;border-top:1px solid var(--line);scroll-margin-top:100px; }
.hub-unit:hover { background:var(--page-soft); }
.hub-unit-id h3 { font-size:17px;line-height:1.3;margin:2px 0; }
.hub-unit-specs,.hub-unit-price { min-width:0;display:grid;gap:1px;font-size:12px; }
.hub-unit-specs,.hub-unit-price small { color:var(--muted); }
.hub-unit-price strong { font-size:16px; }
.hub-unit-actions { display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px; }
.hub-unit-actions .hub-button { min-height:39px;padding:7px 9px;font-size:11px; }
.hub-state { display:inline-block;vertical-align:middle;max-width:100%;padding:3px 7px;border-radius:6px;font-size:10px;font-weight:750;color:var(--ink-soft);background:var(--surface-soft);border:1px solid var(--line); }
.state-available { background:var(--brand-soft);color:var(--brand-bright); }
.state-reserved { background:var(--gold-soft);color:var(--ink-soft); }
.hub-about-grid { display:grid;grid-template-columns:1.15fr 1fr;gap:12px; }
.hub-about-copy,.hub-facts,.hub-intro,.hub-account-section,.hub-layouts { padding:clamp(14px,2.2vw,28px); }
.hub-description { white-space:pre-wrap;color:var(--ink-soft); }
.hub-about-copy .hub-actions { margin-top:12px; }
.hub-stages { display:flex;flex-wrap:wrap;gap:6px;margin:12px 0;padding:0;list-style:none; }
.hub-stages li { padding:4px 8px;border:1px solid var(--line);border-radius:7px;font-size:10px;color:var(--muted); }
.hub-stages [aria-current="step"] { background:var(--brand-soft);border-color:var(--line-strong);color:var(--brand-bright);font-weight:800; }
.hub-facts>div { display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px; }
.hub-facts>div:last-child { border-bottom:0; }
.hub-facts dt { color:var(--muted); }
.hub-facts dd { font-weight:750;text-align:end; }
.hub-layouts { margin-top:12px; }
.hub-layouts summary { cursor:pointer;font-weight:750; }
.hub-empty { color:var(--muted);font-size:13px;padding:17px; }
.hub-empty .hub-button { margin-top:7px; }
.hub-footer { background:var(--surface);border-top:1px solid var(--line); }
.hub-footer>div { min-height:70px;display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;padding-block:12px;font-size:12px; }
.hub-footer strong { margin-inline-end:auto;color:var(--brand-bright);font-size:17px; }
.hub-compare-tray { position:fixed;z-index:400;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(570px,calc(100% - 20px));display:flex;align-items:center;gap:6px;padding:7px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-md); }
.hub-compare-tray strong { margin-inline-end:auto;min-width:0;font-size:12px; }
.hub-toast { position:fixed;z-index:500;bottom:70px;right:12px;max-width:min(440px,calc(100% - 24px));padding:11px 14px;border-radius:9px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-md);font-size:13px; }
.project-hub-page dialog.hub-dialog { width:min(700px,calc(100% - 22px));max-height:calc(100dvh - 22px);border:1px solid var(--line-strong);border-radius:15px;padding:18px;margin:auto;background:var(--surface);color:var(--ink); }
.hub-dialog::backdrop { background:#0e241c9c; }
.hub-dialog-head { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px; }
.hub-dialog-head h2 { min-width:0;font-size:clamp(18px,3vw,25px);line-height:1.35; }
.hub-dialog-head form { margin:0; }
.hub-dialog-head .hub-button { min-width:39px;font-size:19px;padding:3px 8px; }
.hub-dialog-specs { display:flex;gap:7px 14px;flex-wrap:wrap;color:var(--muted);font-size:12px; }
.hub-dialog-specs strong { color:var(--ink); }
.hub-plan { display:block;margin:10px 0;background:var(--surface-soft);border-radius:9px;overflow:hidden; }
.hub-plan img { display:block;width:100%;height:auto;max-height:55dvh;object-fit:contain; }
.hub-scroll { max-width:100%;overflow:auto; }
.hub-table { width:100%;border-collapse:collapse;text-align:start; }
.hub-table th,.hub-table td { min-width:96px;padding:9px 10px;border-bottom:1px solid var(--line);text-align:start;font-size:12px; }
.hub-table thead th { background:var(--surface-soft);color:var(--brand-bright); }
.hub-form { display:grid;gap:10px;margin-top:12px; }
.hub-form>button,.hub-form>a { justify-self:start; }
.hub-form-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.hub-plan-form { border-top:1px solid var(--line);padding-top:12px; }
.hub-intro { margin-bottom:16px; }
.hub-stack { display:grid;gap:12px;min-width:0; }
.hub-help { font-size:12px;color:var(--muted);margin:4px 0; }
.hub-select-label { min-width:min(210px,100%);max-width:100%; }
.hub-tabs { display:flex;flex-wrap:wrap;gap:6px; }
.hub-records { display:grid;margin-top:8px; }
.hub-record { display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);font-size:13px; }
.hub-record>div { min-width:0; }
.hub-record p,.hub-record small { color:var(--muted); }
.hub-record.hub-unread { border-inline-start:3px solid var(--brand);padding-inline-start:9px; }
.hub-account-section .hub-record .hub-select-label { min-width:min(158px,100%); }
@media(max-width:850px) {
 .hub-filters { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .hub-filters .hub-check { grid-column:1/-1; }
 .hub-unit { grid-template-columns:minmax(80px,.8fr) minmax(90px,1fr) minmax(95px,1fr); }
 .hub-unit-actions { grid-column:1/-1;justify-content:flex-start; }
}
@media(max-width:650px) {
 .hub-shell { width:calc(100% - 24px); }
 .hub-header-inner { min-height:60px; }
 .hub-header nav { flex-wrap:wrap;gap:3px 9px; }
 .hub-header nav a { font-size:10px; }
 .hub-header .brand-logo { gap:4px; }
 .hub-header .brand-symbol { width:27px;height:27px; }
 .hub-header .brand-name { font-size:14px; }
 .hub-header .theme-toggle { min-width:32px;width:32px;height:34px;min-height:34px;flex:none; }
 .hub-main { padding-top:13px; }
 .hub-hero,.hub-about-grid { grid-template-columns:minmax(0,1fr); }
 .hub-hero-media { min-height:220px; }
 .hub-hero-copy { padding:17px; }
 .hub-section { margin-top:29px; }
 .hub-filters { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
 .hub-unit { grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:12px 10px; }
 .hub-unit-actions .hub-button { font-size:10px; }
 .hub-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hub-record { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) { .project-hub-page * { scroll-behavior:auto!important; } }
