/* Shared robot palette: orange shell, midnight display, cyan light, warm ivory. */
:root{--orange:#ff8617;--orange-dark:#a84408;--navy:#17233f;--cyan:#26d9ed;--ink:#23304a;--paper:#faf8f4;--line:#e7e3dc}
body{background:var(--paper);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",sans-serif;line-height:1.55}
button,.btn,input,select,textarea{border-radius:10px;transition:background-color .15s,border-color .15s,box-shadow .15s}
input,select,textarea{border-color:#dcdedc;background:#fff;min-height:42px;color:var(--ink)}
input[type=checkbox]{min-height:initial;accent-color:#c75b0b}
input:focus,select:focus,textarea:focus{outline:2px solid #ffb56c;outline-offset:2px;border-color:var(--orange)}
button:focus-visible,a:focus-visible,.btn:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
button.primary,.btn.primary{background:var(--orange);border-color:var(--orange);color:#251c17;font-weight:700;box-shadow:0 3px 9px #f4851820}
button.primary:hover,.btn.primary:hover{background:#ff9d40;border-color:#ff9d40;color:#251c17}
button:hover,.btn:hover{background:#fff4e8;border-color:#e8b583;color:var(--orange-dark)}
a,summary{color:#9c440d}
.panel,.card{border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 18px #26324905}
.panel h2{color:var(--navy);border-left-color:var(--orange)}
.topbar{background:var(--navy);height:auto;min-height:72px;padding:12px 24px;gap:16px;flex-wrap:wrap;border-bottom:3px solid var(--orange)}
.topbar .brand{display:flex;align-items:center;gap:11px;margin-right:12px;white-space:nowrap}
.topbar .brand:before,.workspace .logo:before{content:"";display:block;width:42px;height:42px;flex-shrink:0;background:url('/brand.ico') center/cover;border-radius:12px;box-shadow:0 0 0 1px #ffffff28}
.topbar nav{flex-wrap:wrap;align-items:center;gap:5px}
.navbtn{color:#d7ddea;border-radius:8px;padding:10px 12px}
.navbtn.active,.navbtn:hover{background:#ff86171c;border-bottom:2px solid var(--orange);color:#ffd1a7}
.topbar .userbox .btn:hover{background:#ffffff12;color:white}
.auth-wrap,.workspace .login{background:radial-gradient(ellipse at 15% 10%,#26d9ed18,transparent 42%),radial-gradient(ellipse at 90% 90%,#ff86173b,transparent 52%),var(--navy)}
.auth-card,.workspace .login form{border:1px solid #fff4e7;border-radius:22px;background:#fffdfa;box-shadow:0 20px 70px #080f2638}
.auth-card h1{color:var(--navy)}
.auth-card h1:before{content:"";display:block;background:url('/brand.ico') center/cover;width:72px;height:72px;border-radius:19px;margin:0 auto 18px}
.tab.active{color:var(--orange-dark);border-bottom-color:var(--orange)}
.chosen,.note{background:#fff4e7;border-color:#f0dac2;color:#704625}
.model-item:hover{background:#fff3e6}
.design-box{background:#faf9f6;border-color:var(--line)}
.stat,.pill.active{background:#fff0df!important;color:#94400a!important;border-color:#ffc994!important}
.qtable th{background:#f6efe6;color:var(--navy)}
.workspace aside{background:var(--navy);width:240px;padding:28px 16px;border-right:1px solid #25304a}
.workspace .logo{position:relative;font-size:21px;margin:0 8px 26px;padding-left:53px;min-height:48px;line-height:1.35}
.workspace .logo:before{position:absolute;left:0;top:0}
.workspace .logo small{color:#c8d1e4;opacity:1;font-size:11px;letter-spacing:1px}
.workspace aside button,.workspace aside a{color:#cbd3e2;border:1px solid transparent;font-size:13px;padding:11px 14px}
.workspace aside button.active{background:#ff861719;border-color:#ff861742;color:#ffd0a2;box-shadow:inset 3px 0 var(--orange)}
.workspace aside button:hover,.workspace aside a:hover{background:#ffffff0a;color:#fff}
.workspace main{padding:34px 38px;max-width:1560px}
.workspace header{border-bottom:1px solid var(--line);padding-bottom:19px;margin-bottom:24px}
.workspace h1{letter-spacing:-.5px;margin:7px 0 0;font-size:27px;color:var(--navy)}
.workspace .eyebrow{color:#936134;font-size:10px;letter-spacing:1.5px}
.workspace .cards{gap:20px;grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.workspace .card{padding:24px;margin:0;display:flex;flex-direction:column;min-width:0}
.workspace .card h2{font-size:19px;line-height:1.5;margin:6px 0 4px}
.workspace .card>.actions{margin-top:auto;padding-top:16px;margin-bottom:0}
.workspace .card .tag,.workspace .tag{background:#e5f8fa;color:#16616b;border-radius:6px;font-size:11px;padding:4px 8px;align-self:flex-start}
.workspace .card>.tag:nth-child(2){background:#fff0df;color:#96420c}
.workspace .card>p{font-size:13px;margin:9px 0 15px}
.workspace .panel{padding:25px;margin-bottom:20px}
.workspace .actions{gap:10px}
.workspace .actions>select,.workspace .actions>input{width:auto;flex:1 1 240px;max-width:100%;margin:0}
.workspace .actions>button{flex:0 0 auto;min-height:42px}
.workspace .grid{gap:18px 22px}
.workspace label{font-size:13px;color:#555e6b}
.workspace .note{border-radius:12px;padding:15px 18px;margin-bottom:20px}
.workspace th{background:#f6f2eb;color:#686052;font-weight:600}
.workspace td,.workspace th{padding:14px 12px;border-bottom-color:#ebe7e0}
.workspace td input[type=number]{max-width:140px}
.workspace .table-scroll{border:1px solid var(--line);border-radius:10px}
.workspace .total{color:#a84408;font-size:27px;border-top:1px solid var(--line);padding-top:18px}
.workspace #notice:not(:empty){background:#fff0df;border-color:#f1d4b7;color:#805124}
.workspace .muted,.workspace footer{color:#707887}
.workspace dialog{border-color:var(--line);box-shadow:0 20px 80px #101b3b30;border-radius:20px}
@media(max-width:850px){
 .workspace aside{width:100%;padding:16px 12px;gap:5px}
 .workspace .logo{width:100%;padding-left:43px;font-size:19px;min-height:36px;margin:0 3px 10px;display:flex;align-items:center}
 .workspace .logo:before{width:34px;height:34px;border-radius:9px}
 .workspace aside button,.workspace aside a{font-size:12px;padding:8px 10px}
 .workspace main{padding:22px 14px}.workspace header{gap:10px;padding-bottom:16px}.workspace h1{font-size:22px}
 .workspace header>button{font-size:12px;padding:8px;white-space:nowrap}
 .workspace .cards{grid-template-columns:minmax(0,1fr);gap:14px}.workspace .card,.workspace .panel{padding:19px}
 .workspace .actions>select,.workspace .actions>input{flex-basis:100%}.workspace .total{font-size:23px}
 .topbar{padding:12px 14px;gap:10px}.topbar .brand{font-size:17px}.topbar nav{order:3;flex-basis:100%}
 .topbar .brand:before{width:32px;height:32px;border-radius:8px}.navbtn{font-size:13px}
 .auth-card{max-width:calc(100vw - 28px);padding:28px 24px}
}
/* Mobile exposes quotation and quotation history only. */
.mobile-quote-only .workspace aside [data-tab]:not([data-tab=quote]):not([data-tab=history]),
.mobile-quote-only .workspace #refresh,
.mobile-quote-only .workspace #sync{display:none!important}
.mobile-quote-only .workspace aside .logo small{display:none}
.led-quote-actions{display:flex;flex-direction:column;gap:12px;margin-top:20px;width:100%;min-width:0}
.led-quote-actions>.btn{width:100%;margin:0;min-height:48px;white-space:normal;line-height:1.5}
.led-quote-actions>#btnCalc{min-height:56px;letter-spacing:2px}
.sales-quote-only .workspace aside [data-tab]:not([data-tab=quote]):not([data-tab=history]),
.sales-quote-only .workspace #refresh,
.sales-quote-only .workspace #sync{display:none!important}
