@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#172c40;background:#f2f6fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}.shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;width:257px;min-width:257px;background:#0a1729;color:#dce8f6;padding:29px 16px 24px;display:flex;flex-direction:column;border-right:1px solid #21324a}.brand{display:flex;gap:10px;align-items:center;padding:4px 10px 39px}.brand-icon{width:40px;height:40px;background:#ea580c;border-radius:12px;color:white;display:grid;place-items:center;font-size:31px;font-weight:600;box-shadow:0 0 35px #ea580c5c}.brand-title{font-family:Manrope,sans-serif;font-size:18px;font-weight:700;letter-spacing:-.6px;white-space:nowrap}.brand-title b{color:#fdba74}.brand-sub{font-size:8px;letter-spacing:1.7px;color:#91a7bb;margin-top:4px}.nav-label,.eyebrow{font-weight:800;font-size:10px;letter-spacing:2px;color:#ea580c}.nav-label{padding:0 19px 17px;color:#7489a3}.nav-item{border:0;background:transparent;display:flex;align-items:center;gap:14px;color:#9fb1c7;padding:13px 17px;border-radius:9px;text-align:left;font-size:13px;font-weight:600;width:100%;margin:2px 0}.nav-item:hover{background:#182b42;color:white}.nav-item.active{background:#54301c;color:#ffcc99;box-shadow:inset 3px 0 0 #f97316}.nav-icon{width:20px;text-align:center;font-size:18px}.sidebar-bottom{margin-top:auto;border-top:1px solid #28374a;padding:24px 12px 17px;display:flex;gap:10px;align-items:center;font-size:12px}.server-dot{width:10px;height:10px;background:#64748b;border-radius:50%;box-shadow:0 0 0 4px #64748b19;flex:none}.server-dot.online{background:#fb923c;box-shadow:0 0 0 4px #fb923c26}.sidebar-note{font-size:10px;line-height:1.6;color:#71859f;padding:0 12px}.main{flex:1;min-width:0}.topbar{height:78px;padding:0 40px;background:#fff;border-bottom:1px solid #e5edf3;display:flex;align-items:center;justify-content:space-between;gap:16px}.crumb{font-weight:800;letter-spacing:1px;font-size:11px;color:#93a1b1}.crumb span{margin:0 12px;color:#bcc8d1}.crumb strong{color:#33465e}.top-actions{display:flex;align-items:center;gap:10px}.pill{display:inline-flex;align-items:center;border-radius:99px;border:1px solid #f4dfcf;padding:7px 12px;background:#fff7ed;font-size:10px;letter-spacing:1px;color:#9a3412;font-weight:800;white-space:nowrap}.btn{border:1px solid transparent;border-radius:8px;padding:11px 16px;font-size:12px;font-weight:800;white-space:nowrap;transition:.15s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:#ea580c;color:white;box-shadow:0 3px 12px #ea580c26}.btn.primary:hover{background:#c2410c}.btn.subtle{background:#eff4f7;border-color:#dbe6ee;color:#3e5870}.btn.outline{background:transparent;color:#fff7ed;border-color:#65848f}.btn.danger{background:#fff1f2;border-color:#f4c9d0;color:#ba3850}.content{padding:36px 40px 80px;max-width:1640px;margin:0 auto}.tab{display:none}.tab.active{display:block}.hero{background:radial-gradient(ellipse at 80% 35%,#713f20 0%,transparent 55%),linear-gradient(110deg,#0d213a,#102c43 60%,#422518);min-height:348px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:42px 50px;border-radius:17px;overflow:hidden;position:relative;color:white;box-shadow:0 10px 30px #0c2b4720}.hero>div:first-child{position:relative;z-index:2;max-width:590px}.hero .eyebrow{color:#fed7aa}.hero h1{font-family:Manrope,sans-serif;font-size:clamp(29px,3vw,43px);line-height:1.23;letter-spacing:-1.7px;margin:17px 0}.hero h1 em{font-style:normal;color:#fdba74}.hero p{max-width:535px;color:#acc2d1;line-height:1.8;font-size:13px}.hero-actions{display:flex;gap:13px;margin-top:24px}.hero-art{position:relative;width:340px;height:275px;min-width:270px;display:grid;place-items:center}.hero-ring{position:absolute;border:1px solid #fb923c47;border-radius:50%;box-shadow:0 0 25px #f973161c}.r1{width:160px;height:160px}.r2{width:234px;height:234px;border-style:dashed}.r3{width:320px;height:320px}.hero-core{width:135px;height:135px;border:1px solid #fdba74a6;background:#92400eb0;box-shadow:0 0 50px #f9731648;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-weight:700;font-size:14px;color:#ffedd5;z-index:1}.hero-number{font-size:26px;color:white}.hero-core small{letter-spacing:1.4px;font-size:8px;color:#fed7aa}.orbit-label{position:absolute;color:#ffcc99;border:1px solid #fb923c6b;padding:7px 11px;background:#572d1bd9;border-radius:6px;font-size:10px;font-weight:700}.o1{top:12px;right:25px}.o2{bottom:21px;left:5px}.o3{right:2px;bottom:71px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:24px 0}.metric,.panel,.chart-card{background:#fff;border:1px solid #e1e9f0;border-radius:13px;box-shadow:0 2px 8px #132f4810}.metric{padding:23px}.metric-caption{display:flex;justify-content:space-between;color:#8a9bae;font-size:10px;letter-spacing:1.2px;font-weight:800}.metric-caption span{font-size:18px;color:#ea580c}.metric-value{font-family:Manrope,sans-serif;font-size:32px;font-weight:800;letter-spacing:-1px;margin:12px 0 1px}.metric-meta{font-size:11px;color:#91a0af}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{padding:26px;margin:0 0 21px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:21px}.panel-head h2{margin:6px 0 0;font:800 18px Manrope,sans-serif;letter-spacing:-.5px}.workflow-item{display:flex;gap:17px;padding:13px 0;border-bottom:1px solid #edf1f5}.workflow-item:last-child{border:0}.step{display:grid;place-items:center;min-width:40px;height:40px;border-radius:10px;background:#fff1e6;color:#ea580c;font-weight:800;font-size:13px}.workflow-item strong{font-size:13px}.workflow-item p{font-size:11px;color:#8192a6;margin:6px 0;line-height:1.5}.empty-note{background:#f6f9fb;border:1px dashed #d4dfe6;padding:28px;color:#91a3b4;font-size:13px;line-height:1.7;border-radius:10px}.snapshot>div,.manifest>div{display:flex;justify-content:space-between;border-bottom:1px solid #edf2f5;padding:13px 0;font-size:13px}.snapshot span,.manifest span{color:#8ca0b2}.snapshot strong,.manifest strong{color:#163849}.page-heading{margin-bottom:28px}.page-heading h1{font:800 clamp(26px,3vw,34px) Manrope,sans-serif;letter-spacing:-1.3px;margin:8px 0}.page-heading p{font-size:13px;line-height:1.7;color:#8798a9;max-width:790px}.drop{padding:45px;text-align:center;border:2px dashed #fed7aa;background:#fffaf5;border-radius:12px}.drop.drag{background:#ffedd5;border-color:#ea580c}.drop h2{font:800 20px Manrope,sans-serif;margin:9px 0}.drop p{font-size:13px;color:#8499a8;margin-bottom:22px}.upload-symbol{font-size:44px;color:#ea580c}.small{font-size:11px}.muted{color:#8799ac}.drop .small{margin-top:16px}.mapping-summary,.warning{background:#fff9ee;border:1px solid #f2ddb0;border-radius:9px;padding:14px 16px;color:#956322;font-size:12px;line-height:1.7;margin:14px 0}.warning{margin:10px 0}.accordion{border:1px solid #e2eaf1;border-radius:10px;margin:10px 0;overflow:hidden}.accordion>summary{padding:15px 17px;font-weight:800;font-size:13px;cursor:pointer;background:#f8fafc}.accordion[open]>summary{border-bottom:1px solid #e2eaf1}.accordion>.mapping-grid,.accordion>.form-grid,.accordion>.analyte-section{padding:19px}.mapping-grid,.analyte-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.mapping-grid label,.analyte-grid label,.form-grid label,.form-stack>label{font-size:12px;font-weight:700;color:#53677a;display:flex;flex-direction:column;gap:8px}.mapping-grid small,.analyte-grid small{font-size:10px;color:#a3b0ba}.input{border:1px solid #d8e3eb;border-radius:8px;background:#fff;color:#314458;padding:10px 12px;min-width:0;outline:none;max-width:100%;font-size:12px}.input:focus{border-color:#f97316;box-shadow:0 0 0 3px #f9731626}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.form-stack{display:grid;gap:18px}.form-stack .form-grid{grid-template-columns:1fr 1fr}.form-actions{margin-top:20px;display:flex;gap:10px;flex-wrap:wrap}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.toolbar .search{flex:1;min-width:180px}.library-items{margin-top:16px;display:grid;gap:8px}.library-row{width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:13px;background:#fff;border:1px solid #edf0f3;border-radius:9px;color:inherit}.library-row:hover{border-color:#ea580c}.library-row>div:nth-child(2){flex:1;display:flex;flex-direction:column;gap:5px}.library-row strong{font-size:13px}.library-row span,.library-row small{font-size:11px;color:#869aac}.library-row b{color:#ea580c}.sample-avatar{display:grid;place-items:center;width:40px;height:40px;background:#ffedd5;border-radius:8px;color:#c2410c;font-size:24px}.analyte-section h3{font-size:12px;color:#ea580c}.analyte-section{border-bottom:1px solid #e6edf2}.toggle{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;font-size:12px!important}.toggle input{accent-color:#ea580c}.mini-tag{font-size:9px;font-weight:800;letter-spacing:1px;color:#c2410c;background:#fff1e6;border-radius:5px;padding:6px 9px}.insight-group{border-bottom:1px solid #edf1f5;margin-bottom:16px;padding-bottom:12px}.insight-group h3{font-size:13px;margin:6px 0 12px}.insight-table{display:grid;grid-template-columns:1fr 1fr;gap:6px 15px}.insight-table>div{display:flex;align-items:center;gap:7px;font-size:11px;color:#60748b}.insight-table>div span{flex:1}.insight-table strong{color:#9a3412}.insight-table small{font-size:10px;color:#9aabb9}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:11px}th{padding:11px;background:#f2f6f8;text-align:left;color:#5e7388;position:sticky;top:0}td{padding:11px;border-bottom:1px solid #edf2f5;color:#63788a}tr:hover td{background:#f9fcfd}.table-foot{font-size:11px;color:#879aa8;padding-top:15px}.qc{padding:3px 6px;border-radius:6px;font-weight:800;color:#78899c}.qc.pass{background:#fff1e6;color:#c2410c}.qc.fail{background:#fff0ef;color:#c75948}.plot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.chart-card{min-width:0;overflow:hidden}.chart-head{padding:20px 22px 0;display:flex;align-items:center;justify-content:space-between}.chart-head span{font-size:10px;font-weight:800;letter-spacing:1px;color:#ea580c;text-transform:uppercase}.chart-head h3{font:800 14px Manrope,sans-serif;color:#1a3449;margin:6px 0 0}.icon-button{background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;color:#c2410c;padding:7px 12px}.plot-frame{height:385px;width:100%;min-width:0}.plot-empty{height:100%;display:flex;align-items:center;justify-content:center;color:#93a5b5;padding:30px;text-align:center;font-size:12px}.export-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:25px}.export-card{background:#fff;border:1px solid #dfebf0;border-radius:12px;min-height:170px;padding:23px;display:flex;flex-direction:column;gap:10px;text-align:left;color:#163246;position:relative}.export-card:hover{border-color:#f97316;box-shadow:0 6px 18px #f9731612}.export-card strong{font:800 15px Manrope,sans-serif}.export-card span:not(.export-symbol){font-size:11px;color:#8ca0b0;line-height:1.5}.export-symbol{color:#ea580c;font-size:28px}.export-card i{position:absolute;bottom:17px;right:20px;color:#ea580c;font-style:normal}.toast{position:fixed;right:25px;bottom:25px;background:#0d3544;color:#fff;padding:15px 21px;border-radius:10px;font-size:12px;z-index:9999;max-width:420px;opacity:0;transform:translateY(15px);pointer-events:none;transition:.25s;box-shadow:0 10px 35px #0a223433}.toast.show{opacity:1;transform:none}.toast.error{background:#a93246}@media(max-width:1200px){.sidebar{width:216px;min-width:216px}.content{padding:28px}.topbar{padding:0 28px}.hero-art{transform:scale(.86);margin-right:-40px}.mapping-grid,.analyte-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:960px){.sidebar{width:73px;min-width:73px;padding-left:8px;padding-right:8px}.brand{padding:4px 8px 30px}.brand>div:last-child,.nav-label,.sidebar-bottom,.sidebar-note{display:none}.nav-item{font-size:0;padding:16px;justify-content:center}.nav-icon{font-size:21px}.hero-art{display:none}.hero{min-height:300px}.metric-grid{grid-template-columns:repeat(2,1fr)}.two-cols{grid-template-columns:1fr}.plot-grid{grid-template-columns:1fr}}@media(max-width:630px){.shell{display:block}.sidebar{height:auto;position:static;width:100%;padding:10px;display:flex;flex-direction:row;align-items:center;overflow:auto}.brand{padding:0 10px 0 0}.brand-icon{width:32px;height:32px;font-size:21px}.nav-item{width:auto;padding:8px 10px;flex-shrink:0}.nav-icon{font-size:17px}.main{width:100%}.topbar{height:auto;min-height:65px;padding:12px;flex-wrap:wrap}.top-actions{width:100%;flex-wrap:wrap}.content{padding:15px}.hero{padding:30px 23px}.hero h1{font-size:29px}.metric-grid{gap:10px}.metric{padding:16px}.metric-value{font-size:24px}.panel{padding:16px}.form-grid,.mapping-grid,.analyte-grid,.export-grid{grid-template-columns:1fr}.form-stack .form-grid{grid-template-columns:1fr}.insight-table{grid-template-columns:1fr}}

.qc-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.qc-cards>div{background:#fff7ed;border:1px solid #fed7aa;border-radius:11px;padding:15px;display:flex;flex-direction:column;gap:8px}.qc-cards small{font-size:12px;color:#9a3412}.qc-cards strong{font-size:24px;color:#c2410c}.scientific-list{line-height:1.8;color:#52637a;padding-left:22px}.scientific-list strong{color:#172c40}@media(max-width:740px){.qc-cards{grid-template-columns:1fr}}

/* Project workspace */
.project-toolbar{margin-top:18px}.project-toolbar select{flex:1;min-width:230px}.project-sample{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid #e5eaf0;border-radius:10px;background:white}.project-sample-name{flex:1;display:flex;flex-direction:column;gap:5px;min-width:0}.project-sample-name strong{font-size:13px}.project-sample-name span{font-size:11px;color:#8293a4}.project-sample .btn{white-space:nowrap}@media(max-width:630px){.project-sample{flex-wrap:wrap}}

/* Compact technical sample registers — single-line rows, no oversized cards. */
#libraryItems.library-items, #projectSampleList.library-items { gap:3px; margin-top:10px; }
#libraryItems .library-row, #projectSampleList .project-sample {
  min-height:34px; padding:4px 9px; gap:9px; border-radius:5px;
  border-color:#e4ebf0; box-shadow:none; flex-wrap:nowrap;
}
#libraryItems .library-row:hover, #projectSampleList .project-sample:hover { background:#fff7ed; border-color:#fdba74; }
#libraryItems .sample-avatar, #projectSampleList .sample-avatar {
  width:22px; height:22px; min-width:22px; font-size:14px; border-radius:4px;
}
#libraryItems .library-row>div:nth-child(2), #projectSampleList .project-sample-name {
  display:flex; flex:1; flex-direction:row; align-items:center; gap:12px; min-width:0;
}
#libraryItems .library-row strong, #projectSampleList .project-sample-name strong {
  flex:0 0 85px; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#libraryItems .library-row span, #projectSampleList .project-sample-name span {
  flex:1; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#libraryItems .library-row small { font-size:10px; min-width:76px; text-align:right; }
#libraryItems .library-row b { font-size:13px; }
#projectSampleList .project-sample .btn { padding:4px 9px; border-radius:5px; font-size:10px; }
@media(max-width:630px){
  #libraryItems .library-row, #projectSampleList .project-sample { flex-wrap:nowrap; padding:4px 6px; gap:6px; }
  #libraryItems .library-row>div:nth-child(2), #projectSampleList .project-sample-name {gap:7px}
  #libraryItems .library-row strong, #projectSampleList .project-sample-name strong { flex-basis:64px; }
  #libraryItems .library-row small { min-width:0; }
  #projectSampleList .project-sample .btn { padding:4px 6px; }
}
/* Project Intelligence: dense, keyboard-friendly technical tables */
.project-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:8px 0 14px}.project-stats>div{padding:12px;border:1px solid #fed7aa;background:#fff7ed;border-radius:7px;display:flex;flex-direction:column;gap:5px}.project-stats small{font-size:10px;color:#9a3412}.project-stats strong{color:#9a3412;font-size:21px}.project-filters{margin-top:16px}.register-toolbar{margin-top:14px;margin-bottom:10px}.register-toolbar .input{padding:7px 9px}.register-toolbar select{flex:0 1 170px}.tech-register{font-size:11px;min-width:720px}.tech-register th{padding:8px 9px;font-size:10px;letter-spacing:.02em}.tech-register td{padding:5px 9px;height:31px}.tech-register tbody tr:hover{background:#fff7ed}.tech-register strong{color:#1b3149}.tech-register input[type=checkbox],.tech-register input[type=checkbox]:focus{accent-color:#ea580c}.register-remove{border:1px solid #fed7aa;color:#c2410c;background:#fff7ed;border-radius:4px;padding:4px 8px;cursor:pointer;font-size:10px}.register-remove:hover{background:#ffedd5}.register-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.register-footer .btn{padding:5px 10px}.selected-sample td{background:#fff0d9!important;box-shadow:inset 0 1px #fed7aa}.table-scroll [data-analysis-index]{cursor:pointer}@media(max-width:720px){.project-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.register-toolbar{gap:5px}.register-toolbar .btn{font-size:10px;padding:6px}.register-footer{flex-wrap:wrap}}
.import-log{padding:10px}.import-log>div{padding:6px 2px;border-bottom:1px solid #edf2f5;display:flex;justify-content:space-between;gap:12px;font-size:11px}.import-log strong{color:#1b3149}.import-log span{color:#76889c}.register-toolbar #bulkGroup{flex:0 1 165px;min-width:130px}.register-toolbar #bulkTargetProject{flex:0 1 180px;min-width:145px}.register-toolbar button:disabled{opacity:.45}

/* Restore optional technical plot-building controls */
.custom-scatter[hidden],.custom-ternary[hidden]{display:none!important}
#plotControls{flex-wrap:wrap}#plotControls label{white-space:nowrap}#harkerY,#loiY{max-width:155px;padding:6px 8px}
