@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{color-scheme:light;--ink:#182334;--muted:#657184;--navy:#14233b;--cobalt:#0047AB;--cobalt2:#155BC0;--mustard:#D5A51B;--mustard-soft:#FFF4D2;--line:#DCE3EC;--bg:#F3F6FA;--surface:#FFFFFF;--surface2:#EEF3FA;--blue:#EAF1FC;--amber:#FFF4D2;--purple:#F2EFFF;--white:#fff;--shadow:0 12px 35px rgba(17,42,78,.08);--field:#fff;--field-text:#182334;--green:#0047AB;--green2:#155BC0}
:root[data-theme="dark"]{color-scheme:dark;--ink:#EDF2FA;--muted:#A8B5C8;--navy:#101B2C;--cobalt:#3D82E6;--cobalt2:#5A97EF;--mustard:#E0B52F;--mustard-soft:#40351A;--line:#34445B;--bg:#111B2A;--surface:#1A273A;--surface2:#24344B;--blue:#213A5B;--amber:#40351A;--purple:#332D50;--white:#1A273A;--shadow:0 12px 35px rgba(0,0,0,.22);--field:#202F44;--field-text:#EDF2FA;--green:#3D82E6;--green2:#5A97EF}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;transition:background .2s,color .2s}button,input,select,textarea{font:inherit}.topbar{min-height:74px;background:var(--cobalt);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:10px max(22px,calc((100vw - 1120px)/2));box-shadow:0 4px 20px #102d5a28;border-bottom:4px solid var(--mustard)}.brand{display:flex;align-items:center;gap:11px}.brandmark{width:39px;height:39px;border:2px solid var(--mustard);border-radius:11px;display:grid;place-items:center;font:800 23px Manrope;background:#ffffff12;color:#fff}.brand strong,.brand span{display:block;letter-spacing:.11em;font-size:12px}.brand span{font-size:11px;letter-spacing:.04em;color:#E5EDFA;margin-top:2px}.top-actions,.user-actions{display:flex;align-items:center;gap:10px}.status-pill,.role-pill,.subtle-tag,.count{font-size:11px;border:1px solid #ffffff45;border-radius:30px;padding:6px 10px;color:#e3edff}.shell{max-width:1120px;margin:34px auto;padding:0 22px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:25px;box-shadow:var(--shadow);margin-bottom:20px}.auth-panel{max-width:720px;margin:9vh auto 0}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:700;color:var(--cobalt2);margin:0 0 8px}h1,h2,h3{font-family:Manrope,sans-serif;margin:0 0 8px;letter-spacing:-.035em}h1{font-size:clamp(28px,4vw,39px)}h2{font-size:23px}h3{font-size:15px;margin:22px 0 12px}.muted{color:var(--muted);line-height:1.55}.tiny{font-size:11px;line-height:1.5}.auth-grid,.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:22px 0}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:var(--muted)}.wide{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px 13px;background:var(--field);color:var(--field-text);outline:none;min-height:44px}input:focus,select:focus,textarea:focus{border-color:var(--cobalt2);box-shadow:0 0 0 3px color-mix(in srgb,var(--cobalt2) 18%,transparent)}.button{border:0;border-radius:10px;padding:11px 16px;font-weight:700;font-size:12px;cursor:pointer;transition:.15s}.button:hover{transform:translateY(-1px);filter:brightness(.98)}.primary{background:var(--cobalt);color:#fff}.secondary{background:var(--mustard-soft);color:var(--ink);border:1px solid color-mix(in srgb,var(--mustard) 55%,var(--line))}.ghost{background:var(--surface2);color:var(--ink);border:1px solid var(--line)}.theme-toggle{background:#fff;color:#12315f;border:1px solid var(--mustard);white-space:nowrap}.button-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.message{font-size:12px;color:var(--mustard);min-height:17px}.welcome-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.welcome-row h1{margin-bottom:3px}.welcome-row p{margin-top:0}.role-pill{background:var(--surface2);color:var(--cobalt2);border-color:var(--line)}.tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow:auto}.tab{background:transparent;border:0;padding:13px 15px;color:var(--muted);font-weight:700;font-size:12px;white-space:nowrap;border-bottom:3px solid transparent;cursor:pointer}.tab.active{color:var(--cobalt2);border-color:var(--mustard)}.count{background:var(--mustard-soft);color:var(--ink);border:0;padding:3px 7px;margin-left:4px}.section-heading,.result-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.section-heading .eyebrow,.result-head .eyebrow{margin-bottom:5px}.subtle-tag{background:var(--mustard-soft);color:var(--ink);border-color:color-mix(in srgb,var(--mustard) 50%,var(--line))}.reference-box{background:var(--surface2);border-left:4px solid var(--mustard);border-radius:11px;padding:12px 14px;color:var(--muted);font-size:12px;line-height:1.6}.results{margin-top:20px}.total-card{background:var(--cobalt);color:#fff;border:1px solid var(--mustard);border-radius:16px;padding:20px 22px;margin:15px 0;display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 15px}.total-card span{font-size:12px;color:#E4EDFC}.total-card strong{font:800 29px Manrope;color:#fff}.total-card small{grid-column:1/-1;color:#E4EDFC;font-size:11px}.component-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.component-card{padding:17px;border-radius:15px;background:var(--blue);border:1px solid color-mix(in srgb,var(--cobalt2) 25%,var(--line));border-top:4px solid var(--cobalt)}.component-card:nth-child(2){background:var(--amber);border-color:color-mix(in srgb,var(--mustard) 40%,var(--line));border-top-color:var(--mustard)}.component-card:nth-child(3){background:var(--surface2);border-color:var(--line);border-top-color:var(--cobalt2)}.component-card span{font-size:11px;color:var(--muted);font-weight:700}.component-card strong{display:block;font:800 24px Manrope;margin:8px 0 3px;color:var(--ink)}.component-card small{font-size:11px;color:var(--muted)}.kit-panel{margin-top:15px}.kit-summary{display:flex;gap:35px;flex-wrap:wrap;margin:12px 0}.kit-summary span,.surplus-row span{display:block;color:var(--muted);font-size:11px}.kit-summary strong{display:block;font:800 22px Manrope;margin-top:4px}.surplus-row{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:9px 0;font-size:12px}.product-list{display:grid;gap:10px;margin-top:15px}.product-item{border:1px solid var(--line);border-radius:13px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface)}.product-item strong{display:block}.product-item small{display:block;color:var(--muted);margin-top:4px;font-size:11px}.item-actions{display:flex;gap:7px}.mini-button{border:1px solid var(--line);border-radius:8px;background:var(--surface2);color:var(--cobalt2);padding:8px 10px;font-size:11px;font-weight:700;cursor:pointer}.component-inputs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.checkline{display:flex;flex-direction:row;align-items:center;margin:14px 0}.checkline input{width:auto;min-height:auto}.history-item,.user-item{padding:13px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:12px}.history-item strong,.user-item strong{display:block;margin-bottom:4px}.hidden{display:none!important}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;padding:12px 18px;border-radius:12px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;box-shadow:var(--shadow);z-index:10}.toast.show{opacity:1}footer{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px;padding:22px 3px 35px}.danger{color:#c04b43}.empty{padding:24px;text-align:center;color:var(--muted);font-size:12px}.result-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pack-usage-title{margin:18px 0 8px}.pack-usage-list{border:1px solid var(--line);border-radius:11px;padding:0 12px}.pack-usage-row{padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.pack-usage-row:last-child{border-bottom:0}.pack-usage-row strong,.pack-usage-row span{display:block}.pack-usage-row span{color:var(--muted);font-size:11px;margin-top:4px;line-height:1.5}
@media(max-width:650px){.shell{margin:20px auto;padding:0 13px}.topbar{padding:8px 14px;min-height:64px}.status-pill{display:none}.panel{padding:18px;border-radius:15px}.auth-grid,.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.welcome-row{align-items:flex-start}.welcome-row h1{font-size:27px}.user-actions{flex-direction:column;align-items:flex-end}.component-grid{grid-template-columns:1fr}.component-card{display:grid;grid-template-columns:1fr auto;align-items:center}.component-card strong{grid-column:2;grid-row:1/3;margin:0}.component-inputs{grid-template-columns:repeat(2,1fr)}.result-head{align-items:flex-start;flex-direction:column}.total-card strong{font-size:24px}footer{flex-direction:column}.button-row .button{flex:1}.section-heading{align-items:flex-start}.product-item{align-items:flex-start;flex-direction:column}.item-actions{width:100%}.item-actions button{flex:1}.result-actions{width:100%;justify-content:stretch}.result-actions .button{flex:1}.theme-toggle{padding:9px 10px;font-size:11px}}
@media print{@page{size:A4;margin:14mm}body{background:#fff!important;color:#111!important}.topbar,.welcome-row,.tabs,#calculatorTab>.panel,footer,.toast,.result-actions{display:none!important}.shell{max-width:none;margin:0;padding:0}#appPanel,#calculatorTab,#results{display:block!important}.results{margin:0!important}.panel,.total-card,.component-card{box-shadow:none!important;break-inside:avoid}.result-head{display:block!important;margin-bottom:14px}.result-head:before{content:"TOPCRETE · EPOXY MIXING INSTRUCTION";display:block;font-size:10px;letter-spacing:.16em;font-weight:700;color:#0047AB;margin-bottom:12px}.total-card{print-color-adjust:exact;-webkit-print-color-adjust:exact}.component-card{print-color-adjust:exact;-webkit-print-color-adjust:exact}.kit-panel{border:1px solid #ccc!important}.pack-usage-row,.surplus-row{break-inside:avoid}}
#projectName,#jobLocation{min-width:0}


/* Version 1.4 accessibility update: larger, easier-to-read typography */
body { font-size: 16px; }
.eyebrow { font-size: 12px; }
label { font-size: 14px; }
.button { font-size: 14px; }
.tab { font-size: 14px; }
.status-pill, .role-pill, .subtle-tag, .count { font-size: 13px; }
.tiny, .component-card small, .product-item small,
.pack-usage-row span, .kit-summary span, .surplus-row span { font-size: 13px; }
.message, .reference-box, .history-item, .user-item,
.surplus-row, .pack-usage-row { font-size: 14px; }
.component-card span { font-size: 13px; }
.mini-button { font-size: 13px; }
.toast { font-size: 14px; }
footer { font-size: 12px; }
input, select, textarea { font-size: 16px; }
@media (max-width: 650px) {
  .theme-toggle { font-size: 13px; }
  .welcome-row h1 { font-size: 29px; }
}


/* Version 1.5 — Topcrete visual refresh */
:root{
  --bg:#EEF2F8;
  --surface:#FFFFFF;
  --surface2:#F3F6FC;
  --shadow:0 16px 42px rgba(12,38,78,.10);
}
body{
  background:
    radial-gradient(ellipse at 92% 3%, rgba(213,165,27,.13), transparent 25rem),
    radial-gradient(ellipse at 5% 24%, rgba(0,71,171,.08), transparent 28rem),
    var(--bg);
}
.topbar{
  min-height:82px;
  padding-top:13px;padding-bottom:13px;
  background:linear-gradient(112deg,#063477 0%,#0047AB 58%,#155BC0 100%);
  border-bottom:5px solid var(--mustard);
  box-shadow:0 9px 28px rgba(0,39,99,.22);
}
.brandmark{
  width:46px;height:46px;border-radius:14px;
  background:linear-gradient(145deg,#F3C94B,#D5A51B);
  color:#073477;border:2px solid #FFE28A;
  box-shadow:0 4px 14px #001e503d;
}
.brand strong{font-size:14px;letter-spacing:.15em}
.brand span{font-size:12px}
.shell{max-width:1240px;margin:30px auto;padding:0 24px}
.panel{
  position:relative;overflow:hidden;
  border:1px solid color-mix(in srgb,var(--cobalt) 10%,var(--line));
  border-radius:22px;padding:28px;
  box-shadow:var(--shadow);
}
.panel::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;
  background:linear-gradient(180deg,var(--mustard),var(--cobalt));
  opacity:.9;
}
.auth-panel{
  max-width:760px;
  background:linear-gradient(135deg,var(--surface) 0%,var(--surface) 72%,var(--mustard-soft) 150%);
}
.auth-panel h1{max-width:620px;line-height:1.12}
.eyebrow{font-size:11px;letter-spacing:.19em;font-weight:800}
h1{font-size:clamp(31px,4.4vw,44px);font-weight:800}
h2{font-size:26px;font-weight:800}
h3{font-size:17px;font-weight:800}
.welcome-row{
  position:relative;padding:24px 28px;margin:0 0 20px;
  border-radius:22px;overflow:hidden;color:#fff;
  background:linear-gradient(112deg,#082F70 0%,#0047AB 62%,#1C65C5 100%);
  box-shadow:0 16px 32px rgba(0,52,130,.2);
}
.welcome-row::after{
  content:"";position:absolute;width:230px;height:230px;right:7%;top:-145px;
  border:30px solid rgba(255,255,255,.09);border-radius:50%;
  box-shadow:0 0 0 24px rgba(255,255,255,.035),0 0 0 55px rgba(255,255,255,.025);
  pointer-events:none;
}
.welcome-row .eyebrow{color:#F5D46F}
.welcome-row .muted{color:#DCE8FA}
.welcome-row h1{color:#fff}
.welcome-row .role-pill{background:#ffffff18;color:#fff;border-color:#ffffff40}
.welcome-row .button.ghost{background:#ffffff16;color:#fff;border-color:#ffffff55}
.tabs{
  gap:8px;padding:7px;margin:0 0 22px;
  border:1px solid var(--line);border-radius:15px;
  background:var(--surface);box-shadow:0 5px 18px rgba(15,44,88,.05);
}
.tab{
  border:0;border-radius:10px;padding:13px 19px;
  transition:background .18s,color .18s,transform .18s;
}
.tab:hover{background:var(--surface2);transform:translateY(-1px)}
.tab.active{
  color:#fff;background:var(--cobalt);
  border:0;box-shadow:0 5px 14px rgba(0,71,171,.2);
}
.tab.active .count{background:var(--mustard);color:#17243A}
.section-heading{margin-bottom:17px}
.section-heading h2,.result-head h2{line-height:1.15}
.subtle-tag{
  font-weight:700;padding:8px 12px;border-radius:999px;
}
input,select,textarea{
  border-radius:12px;min-height:48px;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
input:hover,select:hover,textarea:hover{border-color:color-mix(in srgb,var(--cobalt) 45%,var(--line))}
.button{
  border-radius:12px;padding:12px 18px;
  box-shadow:0 3px 9px rgba(10,34,70,.06);
}
.button.primary{
  background:linear-gradient(115deg,#0047AB,#1764C7);
  box-shadow:0 6px 15px rgba(0,71,171,.2);
}
.button.secondary{
  background:linear-gradient(120deg,#F8E5A7,#E8BC3D);
  color:#283044;border:1px solid #D5A51B;
}
.button.ghost{box-shadow:none}
.total-card{
  background:linear-gradient(115deg,#073477 0%,#0047AB 68%,#1D65C1 100%);
  border:1px solid #E2B62F;
  box-shadow:0 12px 24px rgba(0,59,145,.16);
}
.reference-box{border-radius:13px}
.product-item,.history-item,.user-item{
  border-radius:14px;
}
:root[data-theme="dark"] body{
  background:
    radial-gradient(ellipse at 92% 3%,rgba(213,165,27,.08),transparent 25rem),
    radial-gradient(ellipse at 5% 24%,rgba(61,130,230,.09),transparent 28rem),
    var(--bg);
}
:root[data-theme="dark"] .welcome-row{
  background:linear-gradient(112deg,#0B2449,#123E78 65%,#1B4E8D);
}
:root[data-theme="dark"] .auth-panel{
  background:linear-gradient(135deg,var(--surface),#24344B);
}
@media(max-width:700px){
  .shell{padding:0 13px;margin:18px auto}
  .panel{padding:20px;border-radius:18px}
  .welcome-row{padding:20px;align-items:flex-start;gap:12px;flex-direction:column}
  .tabs{border-radius:13px;padding:5px}
  .tab{padding:11px 13px}
  .topbar{padding-left:14px;padding-right:14px;gap:10px}
  .status-pill{display:none}
}


/* Version 1.6 — mustard project requirements panel in dark mode */
:root[data-theme="dark"] #calculatorTab > .panel:first-child{
  background:linear-gradient(135deg,#E8C34D 0%,#D5A51B 100%);
  border:1px solid #F2D77C;
  color:#17243A;
  box-shadow:0 14px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.28);
}
:root[data-theme="dark"] #calculatorTab > .panel:first-child::before{
  background:#0047AB;
  width:7px;
}
:root[data-theme="dark"] #calculatorTab > .panel:first-child .eyebrow,
:root[data-theme="dark"] #calculatorTab > .panel:first-child h2,
:root[data-theme="dark"] #calculatorTab > .panel:first-child label{
  color:#17243A;
}
:root[data-theme="dark"] #calculatorTab > .panel:first-child .subtle-tag{
  background:#F8E6A7;
  color:#17243A;
  border-color:#B8890C;
}
:root[data-theme="dark"] #calculatorTab > .panel:first-child .reference-box{
  background:#F8E9B8;
  color:#344158;
  border-left-color:#0047AB;
}
:root[data-theme="dark"] #calculatorTab > .panel:first-child input,
:root[data-theme="dark"] #calculatorTab > .panel:first-child select,
:root[data-theme="dark"] #calculatorTab > .panel:first-child textarea{
  background:#FFFDF5;
  color:#17243A;
  border-color:#B98F1D;
}
:root[data-theme="dark"] #calculatorTab > .panel:first-child input::placeholder{
  color:#7B725C;
}
:root[data-theme="dark"] #calculatorTab > .panel:first-child .button.ghost{
  background:#F8E6A7;
  color:#17243A;
  border-color:#B8890C;
}
:root[data-theme="dark"] #calculatorTab > .panel:first-child .message{
  color:#26344B;
}


/* TOPCRETE V2.0 — premium industrial dashboard */
:root{
  --bg:#edf2f9;--surface:#fff;--surface2:#f1f5fb;
  --cobalt:#0047AB;--cobalt2:#1764C7;--mustard:#F2B915;
  --ink:#17243A;--muted:#65758D;--line:#D6E0EE;
}
:root[data-theme="dark"]{
  --bg:#061329;--surface:#0D2142;--surface2:#142D54;
  --ink:#F3F6FC;--muted:#B6C6DF;--line:#29466F;
  --cobalt:#155BC0;--cobalt2:#3D82E6;--mustard:#FFC928;
}
body{
  background:
    radial-gradient(ellipse at 72% 0%,rgba(0,71,171,.11),transparent 36rem),
    var(--bg);
}
.topbar{
  min-height:112px;padding:15px 3vw;gap:25px;
  background:linear-gradient(105deg,#061B3D 0%,#073A83 54%,#0047AB 100%);
  border-bottom:3px solid #F2B915;
  box-shadow:0 10px 30px rgba(0,20,55,.28);
}
.brand{min-width:250px;gap:14px}
.brandmark{
  width:60px;height:60px;border-radius:15px;
  color:#082A60;background:linear-gradient(145deg,#FFE17A,#E6AB09);
  border:2px solid #FFE9A7;font-size:31px;
  box-shadow:0 5px 18px #0004;
}
.brand strong{font-size:19px;letter-spacing:.14em}
.brand span{font-size:10px;letter-spacing:.09em;color:#dce8fb}
.topbar-title{display:flex;flex-direction:column;gap:4px;margin-right:auto}
.topbar-title strong{font:800 clamp(22px,3vw,34px) Manrope,sans-serif;color:white;letter-spacing:-.04em}
.topbar-title em{font-style:normal;color:#FFC928}
.topbar-title span{font-size:13px;color:#D5E4FA;letter-spacing:.03em}
.top-actions{gap:12px}
.topbar .status-pill{background:#ffffff12;border-color:#ffffff45;color:#e9f1ff}
.topbar .theme-toggle,.topbar #installBtn{background:#fff;color:#10366D;border:2px solid #F2B915;border-radius:999px}
.shell{max-width:1600px;margin:0 auto;padding:25px 24px}
#appPanel .welcome-row{
  background:transparent;box-shadow:none;color:var(--ink);
  padding:8px 4px 18px;margin:0;overflow:visible;
}
#appPanel .welcome-row::after{display:none}
#appPanel .welcome-row h1{color:var(--ink);font-size:32px}
#appPanel .welcome-row .eyebrow{color:var(--mustard)}
#appPanel .welcome-row .muted{color:var(--muted)}
#appPanel .welcome-row .role-pill{background:var(--surface);color:var(--ink);border-color:var(--line)}
#appPanel .welcome-row .button.ghost{background:var(--surface);color:var(--ink);border-color:var(--line)}
.workspace{display:grid;grid-template-columns:238px minmax(0,1fr);gap:20px;align-items:stretch}
.sidebar{
  min-height:calc(100vh - 220px);display:flex;flex-direction:column;
  background:linear-gradient(180deg,#061B3D 0%,#082B5E 72%,#03132D 100%);
  border:1px solid #164A8E;border-radius:18px;overflow:hidden;
  box-shadow:0 16px 35px rgba(0,23,64,.2);
}
.tabs{
  display:flex;flex-direction:column;align-items:stretch;gap:8px;
  padding:18px 12px;margin:0;border:0;border-radius:0;
  background:transparent;box-shadow:none;overflow:visible;
}
.tab{
  display:flex;align-items:center;gap:13px;text-align:left;
  width:100%;padding:15px 16px;border:1px solid transparent;
  border-radius:11px;color:#E7F0FF;font-size:15px;
  background:transparent;white-space:normal;
}
.tab .nav-icon{width:27px;text-align:center;font-size:22px;line-height:1;color:#DCE9FF}
.tab:hover{background:#ffffff12;transform:translateX(2px)}
.tab.active{
  background:linear-gradient(110deg,#FFD04A,#F2B915);
  color:#10213A;border:1px solid #FFE18A;
  box-shadow:0 7px 18px rgba(0,0,0,.22);
}
.tab.active .nav-icon{color:#10213A}
.tab .count{margin-left:auto;background:#ffffff22;color:inherit}
.tab.active .count{background:#0B3777;color:#fff}
.sidebar-foot{margin-top:auto;padding:18px 15px 20px;color:#fff}
.sidebar-foot strong,.sidebar-foot span{display:block;text-align:center}
.sidebar-foot strong{font:800 17px Manrope,sans-serif}
.sidebar-foot span{font-size:11px;color:#B9CBE7;margin-top:4px}
.floor-mark{
  height:125px;margin-bottom:18px;border-radius:10px;
  background:
    linear-gradient(150deg,transparent 48%,#F2B915 49%,#F2B915 53%,transparent 54%),
    repeating-linear-gradient(135deg,#183D6D 0 3px,#0D2B53 3px 7px);
  box-shadow:inset 0 0 35px #0009;
}
.workspace-content{min-width:0}
#calculatorTab{display:block}
#calculatorTab > .panel:first-child{
  background:linear-gradient(135deg,#F7C83E 0%,#E9AD0A 100%);
  color:#14233B;border:1px solid #FFE18A;
  border-radius:20px;padding:25px 28px;
  box-shadow:0 14px 32px rgba(12,35,72,.16),inset 0 1px 0 #fff8;
}
#calculatorTab > .panel:first-child::before{background:#0047AB;width:7px}
#calculatorTab > .panel:first-child .eyebrow,
#calculatorTab > .panel:first-child h2,
#calculatorTab > .panel:first-child label{color:#14233B}
#calculatorTab > .panel:first-child .subtle-tag{background:#FFE7A0;color:#17243A;border-color:#C18E05}
#calculatorTab > .panel:first-child input,
#calculatorTab > .panel:first-child select,
#calculatorTab > .panel:first-child textarea{
  background:#fff;color:#17243A;border:1px solid #A9BBD5;
  border-radius:11px;min-height:50px;
}
#calculatorTab > .panel:first-child .reference-box{
  background:#FFE7A0;color:#33425A;border-left-color:#0047AB;
}
#calculatorTab > .panel:first-child .button.primary{
  background:#0047AB;color:white;box-shadow:0 7px 16px #00377c44;
}
#calculatorTab > .panel:first-child .button.ghost{background:#FFF2C9;color:#17243A;border-color:#C18E05}
#calculatorTab > .panel:first-child .message{color:#26344B}
#results{margin-top:20px}
#results:not(.hidden){display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
#results .result-head{grid-column:1/-1;padding:4px 4px}
#results .result-head h2{color:var(--ink)}
#results .total-card{
  grid-column:1/-1;margin:0;border-radius:16px;
  background:linear-gradient(110deg,#061B3D,#0B3E83 65%,#155BC0);
  border:1px solid #E8B51E;box-shadow:0 12px 25px #001c4a35;
}
#results .component-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
#results .component-card{
  border:1px solid var(--line);border-radius:15px;
  background:var(--surface);box-shadow:0 8px 22px #001d4712;padding:18px;
}
#results .component-card strong{font-size:25px}
#results .kit-panel{margin:0;border-radius:16px}
#productsTab .panel,#historyTab .panel,#usersTab .panel{
  border-radius:19px;box-shadow:0 14px 32px rgba(12,35,72,.10);
}
footer{max-width:1600px;margin:20px auto 0;padding:14px 24px;color:var(--muted)}
:root[data-theme="dark"] body{
  background:
    radial-gradient(ellipse at 70% -5%,rgba(0,71,171,.24),transparent 38rem),
    #061329;
}
:root[data-theme="dark"] #calculatorTab > .panel:first-child{
  background:linear-gradient(135deg,#F7C83E 0%,#E9AD0A 100%);
  color:#14233B;border-color:#FFE18A;
}
:root[data-theme="dark"] #calculatorTab > .panel:first-child .eyebrow,
:root[data-theme="dark"] #calculatorTab > .panel:first-child h2,
:root[data-theme="dark"] #calculatorTab > .panel:first-child label{color:#14233B}
:root[data-theme="dark"] #results .component-card{background:#0D2142;border-color:#29466F}
:root[data-theme="dark"] #results .kit-panel{background:#0D2142}
@media(max-width:900px){
  .topbar{flex-wrap:wrap;min-height:auto}
  .brand{min-width:190px}
  .workspace{grid-template-columns:1fr}
  .sidebar{min-height:0}
  .tabs{flex-direction:row;overflow-x:auto;padding:9px}
  .tab{width:auto;flex:0 0 auto;padding:12px 14px}
  .sidebar-foot{display:none}
}
@media(max-width:600px){
  .topbar{padding:12px;gap:10px}
  .topbar-title{order:3;width:100%}
  .top-actions{margin-left:auto}
  .shell{padding:14px 12px}
  #calculatorTab > .panel:first-child{padding:19px 17px}
  .tab{font-size:13px}
  .tab .nav-icon{display:none}
  #appPanel .welcome-row{gap:8px;align-items:flex-start;flex-direction:column}
}
