/* Approved project-card and chat workspace, scoped to these screens. */
.view-project-card,.view-chat{--hub-line:#263940;--hub-muted:#91a4ac;--hub-text:#eaf0ef;--hub-panel:#0d1b21;color:var(--hub-text)}
.workspace-compact-shell .view-project-card{padding:25px 30px 30px}
.hub-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.hub-heading h1{font-size:26px;line-height:1.25;letter-spacing:-.5px;margin:8px 0 0}.hub-breadcrumb{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--hub-muted)}.hub-breadcrumb button{border:0;background:none;padding:0;min-height:22px;color:var(--hub-muted);font-size:12px}.hub-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.workspace-compact-shell .hub-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;min-height:36px;width:auto;padding:7px 13px;margin:0}.hub-actions svg{width:16px;height:16px}.hub-panel{border:1px solid var(--hub-line);border-radius:9px;background:var(--hub-panel);overflow:hidden}.hub-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 19px;border-bottom:1px solid var(--hub-line)}.hub-panel h2{font-size:16px;margin:0;line-height:1.4}.hub-panel header p{font-size:12px;color:var(--hub-muted);margin:6px 0 0}.hub-panel header>button{border:0;background:none;color:var(--hub-muted);font-size:12px;padding:6px 0;min-height:28px;width:auto}.hub-passport{border-top:2px solid #608c38;margin-bottom:22px}.hub-details{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:28px;padding:20px}.hub-details dl{margin:0;min-width:0}.hub-details dt{font-size:11px;color:var(--hub-muted);margin-bottom:6px}.hub-details dd{margin:0;font-size:14px;line-height:1.55;overflow-wrap:anywhere}.hub-count{font-size:12px;border:1px solid #315332;background:#1a3023;border-radius:5px;color:#b9ddac;padding:3px 9px}.hub-table-scroll{overflow:auto}.hub-estimates{width:100%;border-collapse:collapse;margin:0;text-align:left;table-layout:fixed}.hub-estimates th{background:#13232a;font-size:11px;font-weight:500;color:var(--hub-muted);padding:11px 19px;border-bottom:1px solid var(--hub-line)}.hub-estimates th:nth-child(1){width:35%}.hub-estimates th:nth-child(2){width:24%}.hub-estimates th:nth-child(3){width:28%}.hub-estimates th:nth-child(4){width:13%}.hub-estimates td{padding:15px 19px;font-size:13px;border-bottom:1px solid #20343b;vertical-align:middle;overflow-wrap:anywhere}.hub-estimates tbody tr:last-child td{border-bottom:0}.hub-estimates tbody tr:hover{background:#10242b}.hub-estimates small{display:block;font-size:11px;color:var(--hub-muted);margin-top:4px}.hub-estimates time{color:#adbec5;font-variant-numeric:tabular-nums}.hub-estimates .hub-money{text-align:right;font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.workspace-compact-shell .hub-estimate-link{border:0;padding:0;min-height:24px;box-shadow:none;background:none;white-space:normal;text-align:left;font-size:13px;font-weight:600;line-height:1.5}.hub-estimate-link:hover{color:#a3e638}.hub-estimates .hub-open-col button{font-size:12px;min-height:32px;min-width:0;padding:5px 10px;margin:0}.hub-created{font-size:11px;color:var(--hub-muted);margin:14px 0}.hub-empty{padding:35px 18px;text-align:center;color:var(--hub-muted);font-size:13px;line-height:1.6}.hub-error{font-size:12px;color:#ffb2a7;margin:0;padding:12px 16px;line-height:1.5}.hub-error button{font-size:12px;margin:8px 5px 0 0;min-height:28px}.workspace-compact-shell .hub-edit-form{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:16px;padding:20px;margin:0}.hub-edit-form label{font-size:11px;color:var(--hub-muted);display:grid;gap:6px;min-width:0}.workspace-compact-shell .hub-edit-form input{font-size:13px;min-height:36px;height:36px;padding:7px 10px;width:100%;margin:0}.hub-edit-form>.hub-actions{grid-column:1/-1;justify-content:flex-end}
.workspace-compact-shell .view-chat{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.view-chat>.workspace-topbar{flex:none;margin-bottom:18px}.view-chat>.alert,.view-chat>.account-verification-notice{flex:none}.hub-chat-layout{flex:1;min-height:0;display:grid;grid-template-columns:280px minmax(0,1fr);background:var(--hub-panel);border:1px solid var(--hub-line);border-radius:9px;overflow:hidden}.hub-chat-sidebar{min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--hub-line);background:#0a171d}.hub-chat-tools{padding:15px;display:grid;gap:10px}.workspace-compact-shell .hub-chat-tools button{width:100%;min-height:36px;margin:0;font-size:13px;padding:7px 12px}.workspace-compact-shell .hub-chat-tools input{width:100%;min-width:0;margin:0;height:36px;font-size:12px;padding:7px 10px}.hub-chat-tabs{display:flex;gap:4px;padding:0 15px 12px}.workspace-compact-shell .hub-chat-tabs button{width:auto;font-size:11px;padding:5px 9px;min-height:28px;line-height:1.4;margin:0;border:0;background:transparent;color:var(--hub-muted)}.workspace-compact-shell .hub-chat-tabs button.is-selected{background:#213729;color:#b7e298}.hub-conversations{overflow:auto;padding:0 8px 10px;flex:1}.workspace-compact-shell .hub-chat-row{display:block;width:100%;padding:12px 11px;min-height:80px;border:1px solid transparent;margin:0 0 3px;background:transparent;text-align:left;box-shadow:none;border-radius:6px}.workspace-compact-shell .hub-chat-row:hover{background:#14272e}.workspace-compact-shell .hub-chat-row.is-selected{background:#172c25;border-color:#3b5b36;box-shadow:inset 3px 0 #a3e638}.hub-chat-title{display:flex;justify-content:space-between;gap:8px;align-items:center}.hub-chat-title strong{font-size:12px;line-height:1.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hub-chat-title time{font-size:10px;color:var(--hub-muted);white-space:nowrap}.hub-chat-kind{display:block;color:#8eae7d;font-size:10px;margin-top:3px}.hub-chat-preview{display:block;color:var(--hub-muted);font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:5px}.workspace-compact-shell .hub-chat-refresh{width:100%;min-height:32px;padding:6px;border:0;border-top:1px solid var(--hub-line);font-size:11px;background:transparent;color:var(--hub-muted);border-radius:0;margin:0}.hub-thread{display:flex;flex-direction:column;min-height:0;min-width:0}.hub-thread-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;border-bottom:1px solid var(--hub-line)}.hub-thread-header>div{min-width:0}.hub-thread-header h2{font-size:15px;margin:0;overflow-wrap:anywhere}.hub-thread-header p{font-size:11px;line-height:1.5;margin:4px 0 0;color:var(--hub-muted)}.hub-thread-header>button{font-size:12px;white-space:nowrap;width:auto;min-height:32px;padding:5px 10px;margin:0}.hub-messages{overflow:auto;flex:1;min-height:0;padding:24px 25px;overscroll-behavior:contain}.hub-message{display:flex;align-items:start;gap:10px;max-width:90%;margin:0 0 20px}.hub-message.is-own{margin-left:auto;flex-direction:row-reverse}.hub-avatar{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;border-radius:50%;background:#244049;color:#b7d6dc;font-size:11px;font-weight:600}.is-own .hub-avatar{background:#284823;color:#b3de91}.hub-bubble{padding:12px 14px;background:#142830;border:1px solid #29404a;border-radius:0 9px 9px;min-width:0}.is-own .hub-bubble{background:#1b3124;border-color:#355037;border-radius:9px 0 9px 9px}.hub-message-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin-bottom:5px}.hub-message-meta strong{font-size:11px;font-weight:600}.hub-message-meta time{font-size:10px;color:var(--hub-muted)}.hub-message p{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.hub-chat-welcome{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;text-align:center;height:100%;padding:24px;color:var(--hub-muted)}.hub-chat-welcome h2,.hub-chat-welcome h3{font-size:17px;color:var(--hub-text);margin:0}.hub-chat-welcome p{font-size:13px;margin:0;max-width:360px}.hub-chat-welcome svg{color:#a3e638;width:28px;height:28px}.workspace-compact-shell form[data-hub-compose]{display:block;margin:0;padding:0 22px 17px}.hub-compose-line{display:flex;align-items:end;gap:9px}.workspace-compact-shell .hub-compose-line textarea{width:100%;min-width:0;margin:0;padding:12px;font-size:13px;line-height:1.5;min-height:69px;max-height:160px;resize:vertical}.workspace-compact-shell .hub-compose-line button{height:36px;min-height:36px;white-space:nowrap;font-size:13px;padding:7px 13px;margin:0;width:auto}.hub-compose-note{font-size:10px;margin:7px 0 0;color:#7d929b}.workspace-compact-shell .hub-back-chats{display:none}.workspace-compact-shell .hub-older{display:block;margin:0 auto 22px;font-size:11px;min-height:28px;padding:5px 9px;width:auto}.hub-dialog-backdrop{position:fixed;inset:0;z-index:1000;background:#0009;backdrop-filter:blur(3px);display:grid;place-items:center;padding:20px}.hub-dialog{width:min(490px,100%);max-height:calc(100dvh - 40px);overflow:auto;background:#0f1e25;border:1px solid #38515a;border-radius:10px;padding:24px}.hub-dialog h2{font-size:19px;margin:0 0 8px}.hub-dialog p{font-size:12px;line-height:1.5;color:var(--hub-muted);margin:0 0 16px}.workspace-compact-shell form[data-hub-create]{display:grid;gap:16px;margin:0;padding:0}.hub-field{display:grid;gap:6px;font-size:12px;color:var(--hub-muted)}.workspace-compact-shell .hub-field input{width:100%;font-size:13px;height:36px;padding:7px 10px;margin:0}.hub-dialog fieldset{border:1px solid var(--hub-line);border-radius:7px;padding:12px;min-width:0;margin:0}.hub-dialog legend{font-size:12px;color:var(--hub-text);padding:0 5px}.hub-dialog fieldset p{font-size:11px;margin:0 0 9px}.hub-participant{display:flex;align-items:center;gap:10px;min-height:34px;font-size:13px}.workspace-compact-shell .hub-participant input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;accent-color:#a3e638}.hub-dialog .hub-actions{justify-content:flex-end}
@media(max-width:1150px){.hub-chat-layout{grid-template-columns:244px minmax(0,1fr)}.hub-thread-header{padding:14px 16px}.hub-messages{padding:20px 16px}.workspace-compact-shell form[data-hub-compose]{padding:0 16px 14px}.hub-details{gap:18px}.hub-message{max-width:96%}}
@media(max-width:900px){.hub-details{grid-template-columns:1fr 1fr}.hub-details dl:nth-child(2){grid-column:1/-1;grid-row:2}.hub-thread-header{flex-wrap:wrap}.hub-heading{align-items:start}.hub-heading .hub-actions{justify-content:flex-end}.workspace-compact-shell .hub-edit-form{grid-template-columns:1fr}.hub-chat-layout{grid-template-columns:220px minmax(0,1fr)}.hub-chat-tabs{padding:0 10px 10px}.hub-chat-title{align-items:start;flex-direction:column;gap:2px}.hub-chat-title strong{max-width:100%}.hub-compose-line{flex-wrap:wrap}.hub-compose-line button{margin-left:auto!important}}
@media(max-width:760px){.workspace-compact-shell .view-project-card{padding:18px 16px}.hub-heading{flex-wrap:wrap;margin-bottom:18px}.hub-heading h1{font-size:23px}.hub-heading .hub-actions{justify-content:flex-start}.hub-panel>header{padding:14px 16px}.hub-details{padding:16px}.hub-details dd{font-size:13px}.hub-passport{margin-bottom:16px}.hub-estimates th,.hub-estimates td{padding:13px 10px;font-size:11px}.hub-estimates th:nth-child(1){width:36%}.hub-estimates th:nth-child(2){width:28%}.hub-estimates th:nth-child(3){width:36%}.hub-estimates .hub-open-col{display:none}.workspace-compact-shell .hub-estimate-link{font-size:12px}.hub-estimates small{font-size:10px}.hub-estimates .hub-money{font-size:11px}.hub-chat-layout{display:block;position:relative}.hub-chat-sidebar{height:100%;border:0}.hub-thread{height:100%;display:none}.hub-chat-layout.has-thread .hub-thread{display:flex}.hub-chat-layout.has-thread .hub-chat-sidebar{display:none}.hub-chat-layout:not(.has-thread)>.hub-chat-welcome{display:none}.workspace-compact-shell .hub-back-chats{display:block;min-height:26px;padding:3px 7px;font-size:12px}.hub-thread-header>div{flex:1;min-width:140px}.hub-chat-title{flex-direction:row;align-items:center}.hub-thread-header>button[data-hub-project]{margin-left:34px}.hub-message{max-width:100%}.workspace-compact-shell .view-chat{height:calc(100dvh - 70px);min-height:580px}.view-chat>.workspace-topbar{margin-bottom:12px}.hub-compose-line{flex-wrap:nowrap}.workspace-compact-shell form[data-hub-compose]{padding:0 12px 12px}.workspace-compact-shell .hub-compose-line button{font-size:12px;padding:7px 10px}}

.view-chat label.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.workspace-compact-shell .hub-compose-line button{flex-shrink:0;white-space:nowrap}.hub-chat-tabs button{font-weight:500}.view-chat .workspace-topbar h1{font-size:26px}

.project-chat-hub-layout .hub-mobile-menu{display:none}
:is(.view-chat,.view-project-card)>.account-verification-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;min-height:0;margin:0 0 18px;border-radius:7px}
:is(.view-chat,.view-project-card)>.account-verification-notice>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
:is(.view-chat,.view-project-card)>.account-verification-notice :is(strong,p){font-size:12px;line-height:1.5;margin:0}
:is(.view-chat,.view-project-card)>.account-verification-notice button{min-height:26px;font-size:12px;padding:0;border:0;background:none;text-decoration:underline;white-space:nowrap}
dialog.hub-dialog{color:var(--hub-text);margin:auto;position:fixed;inset:0;width:min(490px,calc(100% - 32px));max-height:calc(100dvh - 40px)}dialog.hub-dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
@media(max-width:760px){
.project-chat-hub-layout .workspace-sidebar{padding:12px 16px}.project-chat-hub-layout .workspace-sidebar-brand{padding:0;border:0;min-height:32px}.project-chat-hub-layout .workspace-sidebar-brand strong{font-size:19px}.project-chat-hub-layout .hub-mobile-menu{display:block;margin-left:auto;min-height:30px;padding:4px 10px;font-size:12px}
.project-chat-hub-layout:not(.hub-menu-open) .workspace-sidebar>:not(.workspace-sidebar-brand){display:none}
.project-chat-hub-layout .workspace-sidebar .workspace-navigation{max-height:250px;overflow:auto}
:is(.view-chat,.view-project-card)>.account-verification-notice{gap:6px 12px;flex-wrap:wrap;margin-bottom:14px}
:is(.view-chat,.view-project-card)>.account-verification-notice p{display:none}
.workspace-compact-shell .view-chat{height:calc(100dvh - 56px)}
}
.workspace-compact-shell .view-chat .workspace-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;min-height:0;margin-bottom:18px;gap:12px}
.workspace-compact-shell .view-chat .workspace-topbar h1{font-size:26px;line-height:1.25;margin:0 0 6px}
.workspace-compact-shell .view-chat .workspace-breadcrumb{font-size:12px;line-height:1.5;margin:0}
.project-chat-hub-layout .hub-mobile-menu{background:#0b1b21;border:1px solid #354a52;color:#eaf0ef}
.project-chat-hub-layout table.hub-estimates{min-width:0;width:100%;table-layout:fixed}
.project-chat-hub-layout .hub-estimates th.hub-money{white-space:normal}

@media(max-width:1000px){.hub-estimates .hub-open-col{display:none}.hub-estimates th:nth-child(1){width:36%}.hub-estimates th:nth-child(2){width:28%}.hub-estimates th:nth-child(3){width:36%}}

.hub-row-actions { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:5px }
.workspace-compact-shell .hub-row-actions button { display:inline-flex; align-items:center; gap:5px; width:auto; min-height:30px; margin:0; padding:2px 0; background:transparent; border:0; color:var(--hub-muted); font-size:12px; font-weight:500 }
.workspace-compact-shell .hub-row-actions button:hover { color:var(--hub-text); text-decoration:underline }
.hub-row-actions svg { width:14px; height:14px; flex:none }
.workspace-compact-shell .hub-estimates form.hub-confirm-form { display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:10px; width:100%; margin:0; white-space:normal }
.hub-confirm-form strong { overflow-wrap:anywhere }
.hub-confirm-form .field { flex:0 1 360px; max-width:100%; min-width:0 }
.workspace-compact-shell .hub-confirm-form button { flex:none; width:auto; min-width:max-content; margin:0; padding:6px 12px; min-height:32px; font-size:13px; white-space:nowrap }
@media(max-width:600px){.hub-confirm-form strong,.hub-confirm-form .field{flex-basis:100%}.workspace-compact-shell .hub-row-actions button{min-height:34px}}
@media(max-width:600px){
 .hub-row-actions{gap:6px}
 .workspace-compact-shell .hub-row-actions button{justify-content:center;width:36px;min-height:36px;border:1px solid var(--hub-line);border-radius:6px}
 .hub-row-actions button span{display:none}
 .hub-row-actions svg{width:16px;height:16px}
}

.workspace-compact-shell input.hub-compare-check { width:16px; height:16px; min-height:0; padding:0; margin:0 8px 0 0; vertical-align:middle; accent-color:#86d63d; }
.hub-comparison { width:min(1060px,94vw); max-width:94vw; max-height:88dvh; box-sizing:border-box; padding:22px; border:1px solid #365344; border-radius:10px; background:#101e25; color:#edf5ef; }
.hub-comparison::backdrop { background:rgba(6,15,19,.72); }
.hub-comparison header,.comparison-pair { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.hub-comparison header h2 { font-size:22px; margin:0; }
.workspace-compact-shell .hub-comparison button { width:auto; min-height:32px; margin:0; padding:6px 12px; }
.comparison-pair { margin:18px 0; }
.comparison-pair label { display:grid; gap:5px; flex:1; min-width:0; font-size:12px; color:#baccc1; }
.workspace-compact-shell .comparison-pair select { width:100%; margin:0; }
.comparison-scroll { overflow:auto; }
.hub-comparison table { width:100%; margin:0; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
.hub-comparison th,.hub-comparison td { padding:8px; text-align:right; color:#e4eee7; border-bottom:1px solid #34484a; background:#13252b; white-space:nowrap; }
.hub-comparison th:first-child { text-align:left; }
.hub-comparison thead th,.hub-comparison small { color:#b8c9c0; font-size:12px; }
.hub-comparison th small { display:block; margin-top:4px; font-weight:400; }
.comparison-summary tbody tr:first-child > * { color:#c1ecac; font-weight:700; background:#20392e; }
.hub-comparison h3 { margin:22px 0 8px; font-size:16px; }
.comparison-lines tbody th { min-width:160px; max-width:300px; white-space:normal; }
.hub-comparison h3 small { margin-left:6px; }
@media(max-width:650px) { .hub-comparison {padding:12px;} .comparison-pair {align-items:stretch; flex-direction:column;} }

.comparison-export-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:16px 0 0; }
.comparison-export-actions strong { flex:1 1 280px; font-size:14px; }
.hub-comparison .comparison-sections { table-layout:auto; }
.workspace-compact-shell .hub-comparison .comparison-section-toggle { min-height:28px; background:transparent; color:inherit; border:0; padding:3px; font-weight:600; }
.comparison-sections > tbody > tr > th small { margin-left:27px; }
.hub-comparison .documents-export-choice { display:flex; flex-wrap:wrap; gap:12px; align-items:start; margin:14px 0 0; padding-top:12px; border-top:1px solid #34484a; }
.hub-comparison .documents-export-choice .field { min-width:0; flex:1 1 145px; }
.hub-comparison .documents-export-choice .field:has(input) { flex:2 1 210px; }
.hub-comparison .documents-export-choice button { align-self:center; }
