/* Research workspace: clear actions, readable status, quiet visual hierarchy. */
:root{--muted:#617285;--line:#dee6ec}
button:disabled{cursor:not-allowed}
[hidden]{display:none!important}
.topbar{background:rgba(255,255,255,.96);border-bottom-color:#e2e8ef}
.service-status{color:#526b65}
.section-heading h1,.section-heading h2{letter-spacing:-.035em}
.section-heading p{color:#62758a;line-height:1.8}
/* Keep the homepage introduction and rotating examples visible after sign-in. */
.signed-in .template-teaser{margin-top:36px}
.workspace-welcome{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:34px 36px;margin:12px 0 24px;border:1px solid #dbe6e9;border-radius:18px;background:linear-gradient(110deg,#fff 42%,#edf6f3);position:relative;overflow:hidden}
.workspace-welcome:before{content:'';position:absolute;left:0;top:32px;bottom:32px;width:4px;background:#168775;border-radius:0 4px 4px 0}
.workspace-welcome .eyebrow{font-size:10px;letter-spacing:2px;color:#56837e}
.workspace-welcome h1{font-size:clamp(22px,2.3vw,32px);letter-spacing:-.04em;line-height:1.5;color:var(--navy);margin:12px 0 8px;overflow-wrap:anywhere}
.workspace-welcome p{color:#5f7387;line-height:1.8;margin:0}
.welcome-assurances{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:18px;font-size:12px;color:#526e69}
.welcome-assurances span:before{content:'✓';color:#168775;margin-right:7px}
.welcome-actions{display:flex;flex-direction:column;align-items:center;gap:12px;flex-shrink:0}
.welcome-actions .button{white-space:nowrap}
.workspace-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 32px}
.stat-card{text-align:left;min-width:0;border:1px solid #dfe7ee;border-radius:12px;background:#fff;padding:19px 20px;position:relative;transition:border-color .15s,box-shadow .15s}
.stat-card>span{display:block;font-size:13px;color:#52667c;font-weight:600}
.stat-card strong{display:block;font-size:32px;color:var(--navy);line-height:1.4;margin:8px 0 4px;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.stat-card small{display:block;font-size:11px;color:#66798a;line-height:1.7}
.stat-card:hover{border-color:#829daf;box-shadow:0 5px 18px #183d6410}
.stat-card[aria-pressed=true]{border-color:#287c79;background:#f1f8f6;box-shadow:0 0 0 1px #287c7920}
.stat-card.completed strong{color:#08765c}.stat-card.attention strong{color:#a75a25}.stat-card.draft strong{color:#6b7e92}
.project-filters{gap:8px;flex-wrap:wrap}
.filter{border-radius:7px;padding:9px 14px}
.filter.active{background:#e7f2ef;color:#086656;font-weight:600}
#project-list-hint{font-size:11px;color:#6b7f91}
.projects-grid{gap:22px}
.project-card{border:1px solid #dfe7ee;border-radius:13px;box-shadow:0 3px 12px #15395a05;transition:box-shadow .18s,transform .18s;overflow:hidden}
.project-card:hover{box-shadow:0 9px 26px #15395a14;transform:translateY(-2px)}
.project-card h3{line-height:1.65;font-size:15px;color:#153955}
.card-meta{gap:7px;line-height:1.7;color:#65768a;flex-wrap:wrap}
.card-progress{height:3px;background:#edf2f6}
.card-progress i{background:linear-gradient(90deg,#1c527e,#219681)}
.project-card-actions{justify-content:space-between;align-items:center;padding:13px 18px;border-top:1px solid #edf1f4;background:#fcfdfd;gap:10px}
.card-download,.card-continue{display:inline-flex;align-items:center;gap:7px;color:#0b6e61;font-size:12px;font-weight:600}
.card-download svg{width:16px;height:16px}.project-delete{font-size:11px;color:#687c8c}
.card-download:hover{text-decoration:underline}
.status-badge{font-size:11px;line-height:1.6;white-space:nowrap}
.status-badge.active{background:#eaf2fb;color:#286093}.status-badge.attention{background:#fff2e6;color:#965221}.status-badge.draft{background:#edf1f5;color:#596a7d}
.operations-dashboard{margin-top:26px}.operations-dashboard .workspace-stats{margin-bottom:22px}
.project-monitor{padding:25px;border-radius:14px;margin-top:0}
.monitor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.monitor-heading h2{font-size:20px}.monitor-heading p{margin:0;color:#65778a}
.live-label{font-size:11px;color:#55766d;white-space:nowrap;padding-top:5px}
.monitor-search{display:flex;align-items:center;gap:10px;margin:22px 0}
.monitor-search .search{display:flex;flex:1;max-width:480px;height:42px;margin:0;background:#f7f9fc;border-color:#e0e7ef;border-radius:8px}
.monitor-search .search input{min-width:0;width:100%;font-size:13px;border:0;background:transparent;padding:0;margin:0;box-shadow:none}
.search:focus-within{outline:2px solid #40888a;outline-offset:2px}
.monitor-search .button{padding:11px 20px}
.admin-project-list{border-top:1px solid #e7edf2}
.admin-project-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(140px,.75fr) minmax(160px,.65fr);align-items:center;gap:24px;padding:21px 0;border-bottom:1px solid #e7edf2}
.monitor-title{min-width:0}.monitor-title h3{font-size:15px;color:#163b5d;line-height:1.7;margin:9px 0 5px;overflow-wrap:anywhere}.monitor-title p{margin:0;font-size:12px;overflow-wrap:anywhere}
.monitor-progress>div{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.monitor-progress b{font-size:18px;color:#2a6276}.monitor-progress small{font-size:11px;color:#62788b}
.monitor-progress progress{appearance:none;width:100%;height:5px;border:0;border-radius:5px;background:#eaf0f4;display:block;overflow:hidden}
.monitor-progress progress::-webkit-progress-bar{background:#eaf0f4}.monitor-progress progress::-webkit-progress-value{background:#23847b;border-radius:5px}.monitor-progress progress::-moz-progress-bar{background:#23847b;border-radius:5px}
.monitor-delivery{font-size:12px;color:#536c80;line-height:1.8;min-width:0}.monitor-delivery small{display:block;font-size:11px;color:#64788b;overflow-wrap:anywhere}
.monitor-delivery details{margin-top:5px}.monitor-delivery summary{cursor:pointer;color:#326981}.correction-label{font-size:10px;margin-left:8px;color:#187b68}
.monitor-pagination{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:22px;color:#62788b;font-size:12px}.monitor-pagination>div{display:flex;align-items:center;gap:13px}.monitor-pagination .button{padding:8px 12px;font-size:12px}
.monitor-empty{text-align:center;padding:45px 15px;color:#526c81}.monitor-empty p{margin-bottom:0}
.admin-secondary{border:1px solid #dfe7ee;border-radius:12px;background:#fff;margin:14px 0;overflow:hidden}
.admin-secondary>summary{cursor:pointer;padding:19px 23px;color:#244762;font-weight:600;font-size:14px}
.admin-secondary>summary:hover{background:#f5f9fa}.admin-secondary>.admin-panel{margin:0;border:0;border-top:1px solid #edf1f5;border-radius:0}
.admin-panel td small{color:#5e7287;font-size:11px}.admin-panel p{font-size:13px}
#admin-project-error{padding:14px;background:#fff4ea;border-radius:8px;color:#8b512d}
.loading-note{padding:30px;color:#537388}
.trial-form{grid-template-columns:repeat(3,minmax(0,1fr))}.trial-form>label{min-width:0}
@media(max-width:1200px){.workspace-welcome{padding:28px}.workspace-stats{gap:9px}.stat-card{padding:16px 13px}.stat-card small{font-size:10px}.admin-project-row{grid-template-columns:minmax(0,1fr) minmax(130px,.7fr);gap:16px}.monitor-delivery{grid-column:1/-1;display:flex;gap:14px;flex-wrap:wrap}.monitor-delivery details{margin:0}}
@media(max-width:760px){.workspace-welcome{flex-direction:column;align-items:flex-start;gap:22px;padding:25px 22px;margin-top:8px}.welcome-actions{flex-direction:row;flex-wrap:wrap;gap:12px}.workspace-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center}.stat-card:first-child strong{grid-row:1/3;grid-column:2;margin:0}.stat-card{padding:15px 18px}.stat-card small{font-size:11px}.stat-card strong{font-size:28px}.project-monitor{padding:18px}.monitor-heading{flex-direction:column;gap:5px}.monitor-search .search{width:100%;max-width:none}.admin-project-row{grid-template-columns:1fr}.monitor-delivery{display:block}.monitor-pagination{align-items:flex-start;flex-direction:column}.monitor-pagination>div{justify-content:space-between;width:100%}.trial-form{grid-template-columns:1fr}.project-list .section-heading{flex-wrap:wrap;gap:15px}.list-actions{width:100%;display:flex;gap:10px}.list-actions .search{flex:1;min-width:0}.list-actions input{width:100%;min-width:0}.project-filters .filter{font-size:12px;padding:8px 11px}.welcome-assurances{font-size:11px}.workspace-welcome h1{font-size:24px}.admin-secondary>summary{padding:17px 18px}}
@media(max-width:760px){.list-actions .search{display:flex}.monitor-search .search{display:flex}}
@media(prefers-reduced-motion:reduce){.project-card,.stat-card{transition:none}.project-card:hover{transform:none}}

/* Delivery is the main action; diagnostic detail stays within reach. */
.delivery-summary{display:flex;align-items:flex-start;gap:17px;padding:25px;border:1px solid #d8e6ee;background:#f1f7fb;border-radius:14px;margin:24px 0}
.delivery-summary.complete{border-color:#cbe3da;background:linear-gradient(110deg,#edf8f3,#f8fcfa)}
.delivery-summary.waiting,.delivery-summary.attention{background:#fffbf4;border-color:#eedbc0}
.delivery-symbol{width:40px;height:40px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#e0ede9;color:#117b66}
.delivery-symbol svg{width:22px;height:22px}
.delivery-summary.working .delivery-symbol{background:#e2edf8;color:#2d6396}
.delivery-summary.waiting .delivery-symbol,.delivery-summary.attention .delivery-symbol{background:#f7ead6;color:#9a6a2c}
.delivery-summary-copy{flex:1;min-width:0}.delivery-summary h3{margin:2px 0 9px;font-size:18px;color:#164c4d;line-height:1.5}
.delivery-summary p{font-size:13px;line-height:1.85;color:#516d7b;margin:0 0 7px}.delivery-summary small{font-size:12px;line-height:1.8;color:#5f7785;display:block}
.delivery-primary-actions{display:flex;flex-direction:column;gap:10px;align-items:center;align-self:center;flex-shrink:0}.delivery-primary-actions .button{white-space:nowrap;padding:13px 18px}
.delivery-checks{border:1px solid #dee7ec;border-radius:10px;margin:18px 0;background:#fff}
.delivery-checks>summary{display:flex;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;color:#315774;font-size:13px;line-height:1.6}
.delivery-checks>summary:before{content:'▸';color:#668c9b}.delivery-checks[open]>summary:before{content:'▾'}.delivery-checks>summary span:first-of-type{flex:1}.delivery-checks>summary span:last-child{color:#8a622d;font-size:12px}
.delivery-checks .quality-panel{border:0;border-top:1px solid #e8eef2;margin:0;border-radius:0 0 10px 10px;background:#fafcfd}
.job-dialog .preview-explainer{font-size:12px;line-height:1.8;color:#62778a;margin:-4px 0 20px}
.job-dialog h2{line-height:1.55;overflow-wrap:anywhere;padding-right:15px}
.job-dialog .job-footer{line-height:2;font-size:11px}.job-footer code{font-size:11px;overflow-wrap:anywhere;user-select:all}.job-footer .text-button{font-size:11px;margin-left:7px}
.job-dialog .job-alert{font-size:13px;line-height:1.9}.job-dialog .muted-info{font-size:12px;line-height:1.9}.job-dialog .job-stage-list{gap:12px;line-height:1.7}
.connection-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #e7d8be;background:#fff9ef;padding:17px 22px;border-radius:10px;margin:0 0 22px;color:#78592c}
.connection-banner strong{font-size:14px}.connection-banner p{font-size:12px;line-height:1.8;margin:5px 0 0}.connection-banner .button{flex-shrink:0;font-size:12px}.service-status.disconnected{color:#9a692d}.service-status.disconnected i{background:#bf8945}
.account-dialog{width:min(460px,94vw)}.account-dialog .eyebrow{font-size:10px}.account-dialog h2{margin-top:16px}.account-dialog #account-display-name{font-size:16px;color:#365f78;margin-top:14px}
.account-details{padding:10px 0;margin:10px 0 18px;border-top:1px solid #e4ebf0;border-bottom:1px solid #e4ebf0}.account-details>div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;line-height:1.8}.account-details dt{font-size:12px;color:#657a8d;flex-shrink:0}.account-details dd{font-size:13px;margin:0;color:#244c68;text-align:right;overflow-wrap:anywhere}.account-dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:22px}.account-dialog #logout-button{font-size:12px;color:#81604f}
.wizard-main .form-desc{font-size:13px;color:#62768a}.wizard-main form label{font-size:13px}.wizard-main form input::placeholder,.wizard-main form textarea::placeholder{color:#7a8b9b;font-size:12px}.wizard-main .file-item small{color:#5b7687}.wizard-main .form-error{font-size:13px}
@media(max-width:760px){.delivery-summary{flex-wrap:wrap;padding:20px 16px;gap:12px}.delivery-symbol{width:32px;height:32px}.delivery-summary h3{font-size:16px}.delivery-summary-copy{flex-basis:calc(100% - 48px)}.delivery-primary-actions{width:100%;padding-top:5px}.delivery-primary-actions .button{width:100%;justify-content:center}.delivery-checks>summary{padding:14px;font-size:12px}.connection-banner{flex-direction:column;align-items:flex-start;gap:12px;padding:16px}.account-dialog{padding:30px 24px}.job-dialog .job-stage-list{display:grid;grid-template-columns:1fr 1fr;gap:13px}.job-dialog .job-footer code{display:block}}

.lab-home-entry{display:flex;align-items:center;gap:16px;padding:14px 22px;margin:8px 0 12px;border:1px solid #d9e7e5;border-radius:14px;background:linear-gradient(105deg,#fff,#f0f7f5);text-decoration:none;color:#082d61;transition:border-color .2s,box-shadow .2s}
.lab-home-entry:hover{border-color:#168775;box-shadow:0 4px 16px #0d665210}
.lab-home-entry:focus-visible{outline:3px solid #168775;outline-offset:4px}
.lab-home-entry>img{width:76px;height:68px;object-fit:contain;flex-shrink:0}
.lab-home-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.lab-home-copy strong{font-size:18px;letter-spacing:.02em}.lab-home-copy>span{font-size:13px;color:#617285;line-height:1.5}
.lab-home-action{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#087a66;white-space:nowrap}.lab-home-action svg{width:16px;height:16px}
@media(max-width:600px){.lab-home-entry{padding:13px 16px;gap:12px;flex-wrap:wrap}.lab-home-entry>img{width:60px;height:56px}.lab-home-copy strong{font-size:16px}.lab-home-copy>span{font-size:12px}.lab-home-action{width:100%;margin:0;padding-top:10px;border-top:1px solid #d9e7e5;justify-content:flex-end}}

/* Keep the homepage focused on its showcase and project list. */
#workspace-welcome{display:none}
.home-process{margin:12px 0 28px;border:1px solid #e1e9ee;border-radius:12px;background:#fff}
.home-process>summary{padding:16px 20px;cursor:pointer;color:#426579;font-size:14px}
.home-process .process-strip{margin:0;border:0;box-shadow:none}
#projects-section .lab-home-entry{padding:8px 16px;background:#fff;border-color:#e8eef0}
#projects-section .lab-home-entry>img{width:48px;height:44px}
#projects-section .lab-home-copy strong{font-size:15px}
#projects-section .template-teaser{margin-top:32px}
