@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');
.setup-shell{min-height:100vh;background:radial-gradient(circle at 20% 10%,#174c35 0,#07140f 48%);display:grid;place-items:center;padding:40px}
.setup-card{width:560px;background:#f9faf7;border-radius:24px;padding:38px 42px;box-shadow:0 35px 90px #0005}
.setup-card h1{font-size:32px;margin:10px 0}
.setup-card>p{color:#718078;line-height:1.8}
.setup-card label{display:block;font-size:12px;font-weight:700;margin:16px 0 7px}
.setup-card input,.setup-card select{width:100%;height:46px;border:1px solid #dfe5e0;border-radius:11px;padding:0 13px;background:white;outline:0}
.setup-card input:focus,.setup-card select:focus{border-color:#136b45}
.setup-note{margin-top:15px;display:flex;gap:7px;align-items:center;color:#47715d;font-size:11px}
.setup-note svg{width:16px}
.setup-help{border-top:1px solid #dfe5e0;padding-top:18px;margin-top:20px;display:flex;flex-direction:column;gap:6px}
.setup-help b{font-size:12px}
.setup-help span{font-size:11px;color:#718078;line-height:1.7}
.splash span{font-size:11px;color:#8ca096}
:root{font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;color:#17201b;background:#f4f6f3;font-synthesis:none;--ink:#102019;--muted:#718078;--line:#dfe5e0;--green:#136b45;--lime:#bcf063;--dark:#07140f;--cream:#f7f8f3;--orange:#f59b45;--blue:#4e87e8;--violet:#8b73dc}
*{box-sizing:border-box}
body{margin:0;min-width:1050px;min-height:100vh}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.login-shell{min-height:100vh;display:grid;grid-template-columns:1.18fr .82fr;background:var(--dark);position:relative;overflow:hidden}
.login-brand{padding:8vh 8vw;display:flex;flex-direction:column;justify-content:center;color:white;position:relative;z-index:2}
.brand-mark{width:58px;height:58px;border-radius:18px;background:var(--lime);color:var(--dark);display:grid;place-items:center;box-shadow:0 15px 50px #bef3692d}
.brand-mark svg{width:30px;height:30px}
.brand-mark.small{width:42px;height:42px;border-radius:13px;box-shadow:none}
.brand-mark.small svg{width:22px}
.eyebrow{font:700 11px/1 Manrope,sans-serif;letter-spacing:.2em;color:var(--lime);margin:32px 0 18px}
.eyebrow.dark{display:block;color:#36775b;margin:0 0 12px}
.login-brand h1{font-size:clamp(42px,5vw,74px);line-height:1.12;margin:0;letter-spacing:-.05em;max-width:760px}
.login-brand h1 em{font-style:normal;color:var(--lime)}
.login-brand>p{max-width:560px;font-size:17px;line-height:1.9;color:#aebdb5}
.proof{display:flex;gap:52px;margin-top:48px;border-top:1px solid #ffffff1b;padding-top:28px}
.proof div{display:flex;flex-direction:column}
.proof strong{font:800 24px Manrope;color:var(--lime)}
.proof span{font-size:12px;color:#8fa097;margin-top:6px}
.login-panel{background:#f8f9f5;border-radius:32px 0 0 32px;display:grid;place-items:center;position:relative;z-index:2}
.login-card{width:min(420px,72%)}
.login-card h2{font-size:34px;letter-spacing:-.03em;margin:0 0 8px}
.muted{color:var(--muted);margin-bottom:32px}
.login-card label,.modal label{display:block;font-size:13px;font-weight:600;color:#445048;margin:18px 0 8px}
.input-wrap{height:52px;border:1px solid var(--line);border-radius:13px;background:white;display:flex;align-items:center;padding:0 16px;gap:10px;transition:.2s}
.input-wrap:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #176d4616}
.input-wrap svg{color:#859189}
.input-wrap input{border:0;outline:0;flex:1;background:transparent}
.primary,.secondary{border:0;border-radius:12px;height:44px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:700}
.primary{background:var(--green);color:white;box-shadow:0 7px 18px #176d4622}
.primary:hover{background:#0c5938}
.primary:disabled{opacity:.55;cursor:not-allowed}
.secondary{background:white;color:#34443b;border:1px solid var(--line)}
.wide{width:100%;margin-top:26px;height:52px;justify-content:space-between}
.demo-hint{margin-top:22px;background:#eaf3e9;color:#37614d;border-radius:10px;padding:11px 14px;font-size:12px;display:flex;gap:8px;align-items:center}
.copyright{position:absolute;bottom:20px;color:#9da6a0;font-size:11px}
.mobile-logo{display:none}
.login-aurora{position:absolute;border-radius:50%;filter:blur(90px);opacity:.18}
.a1{width:500px;height:500px;background:#54d484;left:-150px;top:-180px}
.a2{width:400px;height:400px;background:#d7fa6e;left:45%;bottom:-250px}
.error-box{background:#fff0ed;color:#ae493b;padding:11px 13px;border-radius:10px;font-size:13px;margin:12px 0;display:flex;align-items:center;gap:8px}
.app-shell{display:grid;grid-template-columns:244px 1fr;min-height:100vh}
aside{position:fixed;inset:0 auto 0 0;width:244px;background:var(--dark);color:white;display:flex;flex-direction:column;padding:26px 18px;z-index:10}
.logo{display:flex;align-items:center;gap:12px;padding:0 8px 30px}
.logo>div:last-child{display:flex;flex-direction:column}
.logo b{font-size:20px;letter-spacing:.1em}
.logo span{font-size:10px;color:#84958c;letter-spacing:.22em;margin-top:2px}
nav{display:flex;flex-direction:column;gap:6px}
nav button{height:46px;border:0;background:transparent;color:#8ea096;border-radius:11px;display:flex;align-items:center;gap:12px;padding:0 14px;text-align:left}
nav button:hover{background:#ffffff0a;color:white}
nav button.active{background:#1a3328;color:white;box-shadow:inset 3px 0 var(--lime)}
nav button.active svg{color:var(--lime)}
.sidebar-bottom{margin-top:auto;display:flex;align-items:center;border-top:1px solid #ffffff12;padding:20px 6px 0}
.mini-profile{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#dceadd;color:#1d6646;font-weight:800;flex:0 0 auto}
.mini-profile>div:last-child{display:flex;flex-direction:column;min-width:0}
.mini-profile b{font-size:13px}
.mini-profile span{font-size:10px;color:#75867d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.logout{border:0;background:transparent;color:#7d8c84;padding:8px}
.app-shell>main{grid-column:2;min-width:0}
.app-shell header{height:64px;background:#fff;border-bottom:1px solid #e8ece8;display:flex;align-items:center;justify-content:space-between;padding:0 36px;color:#77847c;font-size:12px;position:sticky;top:0;z-index:5}
.online-dot{display:inline-block;width:7px;height:7px;background:#44be79;border-radius:50%;margin-right:7px;box-shadow:0 0 0 4px #44be791a}
.header-actions{display:flex;align-items:center;gap:11px}
.icon-btn{width:38px;height:38px;border:1px solid var(--line);background:white;border-radius:10px;color:#65746b;display:grid;place-items:center}
.icon-btn svg{width:18px}
.role-pill{display:inline-flex;align-items:center;gap:6px;border-radius:99px;background:#edf4ee;color:#276247;padding:7px 11px;font-size:11px;font-weight:700}
.page-wrap{padding:38px 42px 60px;max-width:1540px;margin:auto}
.welcome-row,.page-title{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:30px}
.welcome-row h1,.page-title h1{font-size:30px;letter-spacing:-.035em;margin:4px 0 6px}
.welcome-row p,.page-title p{margin:0;color:var(--muted);font-size:14px}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}
.metric{background:#fff;border:1px solid #e3e8e3;border-radius:16px;padding:20px;display:flex;gap:15px;align-items:center}
.metric-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center}
.metric-icon svg{width:21px}
.metric-icon.green{background:#e5f3e8;color:#167048}
.metric-icon.orange{background:#fff0df;color:#d7792b}
.metric-icon.blue{background:#e8effd;color:#4679ce}
.metric-icon.violet{background:#eeeafd;color:#775fc4}
.metric>div:last-child{display:flex;flex-direction:column}
.metric span{font-size:11px;color:#7f8a83}
.metric strong{font:800 25px Manrope;color:#1b2a22;margin-top:4px}
.metric strong small{font:600 11px "Noto Sans SC";margin-left:5px;color:#758178}
.metric strong.text-value{font:700 15px "Noto Sans SC"}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}
.card{background:#fff;border:1px solid #e2e7e2;border-radius:17px;padding:22px}
.span2{grid-column:span 2}
.full{grid-column:1/-1}
.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.card-head h3{margin:0;font-size:16px}
.card-head p{margin:4px 0 0;color:#89948d;font-size:11px}
.card-head>svg{color:#829087}
.skill-list{display:grid;grid-template-columns:1fr 1fr;gap:18px 28px}
.skill>div:first-child{display:flex;justify-content:space-between;font-size:12px}
.skill b{font:700 12px Manrope}
.bar{height:6px;background:#edf1ed;border-radius:9px;margin-top:9px;overflow:hidden}
.bar i{display:block;height:100%;background:linear-gradient(90deg,#116c44,#a7df59);border-radius:9px}
.grade-stack{display:flex;flex-direction:column;gap:12px}
.grade-stack>div{display:flex;justify-content:space-between;align-items:center}
.grade{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font:800 14px Manrope;background:#eef3ef}
.g-S,.g-A{background:#e3f4e5;color:#16724a}
.g-B{background:#e7effd;color:#4679ce}
.g-C,.g-D{background:#fff0df;color:#c8712b}
.table{display:flex;flex-direction:column}
.tr{display:flex;align-items:center;gap:14px;padding:13px 4px;border-top:1px solid #edf0ed}
.tr:first-child{border-top:0}
.grow{flex:1;min-width:0;display:flex;flex-direction:column}
.grow b{font-size:13px}
.grow span{color:#8a958e;font-size:11px;margin-top:4px}
.scenario-icon,.file-icon{width:38px;height:38px;border-radius:11px;background:#e8f2e9;color:#27694b;display:grid;place-items:center;flex:0 0 auto}
.scenario-icon svg,.file-icon svg{width:19px}
.tr>strong{font:800 15px Manrope;min-width:55px;text-align:right}
.status{font-size:10px;font-weight:700;padding:5px 9px;border-radius:99px;background:#edf0ed;color:#6e7972;white-space:nowrap}
.status.published,.status.completed{background:#e5f4e8;color:#23734c}
.status.draft,.status.scoring{background:#fff2df;color:#b86d27}
.status.failed{background:#ffebe7;color:#b34d40}
.text-btn{border:0;background:transparent;color:#347258;font-size:12px;font-weight:700;display:flex;align-items:center;gap:4px}
.empty{min-height:120px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#a2aca6}
.empty svg{opacity:.4}
.empty p{font-size:12px}
.toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.toolbar>span{font-size:11px;color:#8a958e}
.search{width:350px;height:42px;border:1px solid var(--line);background:white;border-radius:11px;display:flex;align-items:center;padding:0 13px;gap:9px}
.search svg{width:17px;color:#8b968f}
.search input{border:0;outline:0;flex:1}
.scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:18px}
.scenario-card{background:white;border:1px solid #e1e7e1;border-radius:18px;padding:20px;position:relative;overflow:hidden;transition:.2s}
.scenario-card:hover{transform:translateY(-3px);box-shadow:0 15px 30px #1c3e2c0d}
.scenario-top{display:flex;justify-content:space-between}
.difficulty{font-size:10px;border-radius:99px;background:#eef1ee;padding:5px 9px;color:#67746c}
.scenario-visual{height:76px;display:flex;align-items:end;position:relative}
.scenario-visual svg{width:44px;height:44px;color:#286a4b;position:relative;z-index:1}
.scenario-visual i{position:absolute;width:90px;height:42px;background:#d9f2b1;border-radius:50%;filter:blur(14px);left:-12px;bottom:0}
.product{display:block;font-size:10px;color:#4c896d;letter-spacing:.1em;text-transform:uppercase;margin-top:8px}
.scenario-card h3{font-size:18px;margin:8px 0}
.scenario-card>p{height:44px;overflow:hidden;color:#77827b;font-size:12px;line-height:1.75}
.scenario-meta{display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid #edf0ed;padding-top:14px;margin-top:15px}
.scenario-meta span{font-size:10px;color:#78867e;display:flex;align-items:center;gap:4px}
.scenario-meta svg{width:13px}
.card-actions{display:flex;gap:8px;margin-top:17px}
.card-actions .primary{flex:1}
.modal-backdrop{position:fixed;inset:0;background:#08120dbb;backdrop-filter:blur(7px);display:grid;place-items:center;z-index:50}
.modal{width:min(720px,85vw);max-height:88vh;overflow:auto;background:#f9faf7;padding:28px;border-radius:20px;box-shadow:0 30px 90px #0006}
.modal.small-modal{width:460px}
.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}
.modal h2{margin:0}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.full-field{grid-column:1/-1}
.modal input,.modal textarea,.modal select{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;outline:0}
.modal textarea{min-height:76px;resize:vertical}
.modal input:focus,.modal textarea:focus{border-color:var(--green)}
.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}
.history-layout{display:grid;grid-template-columns:minmax(420px,.9fr) 1.1fr;gap:18px;align-items:start}
.history-list,.history-detail{background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px}
.history-item{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:13px;border-radius:11px;text-align:left}
.history-item:hover,.history-item.selected{background:#edf4ee}
.history-item>strong{min-width:38px;text-align:right;font:800 16px Manrope}
.history-detail{padding:22px;min-height:420px;position:sticky;top:82px}
.detail-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}
.detail-head h2{margin:0}
.transcript p{border-bottom:1px solid #edf0ed;padding:12px 0;margin:0;font-size:13px}
.transcript b{display:block;color:#26704d;font-size:10px;margin-bottom:5px}
.training-room{min-height:100vh;background:#edf1ed}
.training-top{height:70px;background:#fff;border-bottom:1px solid var(--line);padding:0 28px;display:flex;align-items:center;justify-content:space-between}
.training-top>div{display:flex;align-items:center;flex-direction:column}
.training-top>div b{font-size:14px}
.training-top>div span{font-size:10px;color:#78847d;margin-top:3px}
.training-top>div i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#3cb972;margin-right:5px}
.back{border:0;background:transparent;color:#506058;display:flex;align-items:center;gap:7px;font-weight:600}
.back svg{width:18px}
.chat-stage{max-width:860px;margin:0 auto;padding:24px 28px 34px}
.customer-card{background:var(--dark);color:#fff;border-radius:16px;padding:16px 20px;display:flex;align-items:center;gap:12px;box-shadow:0 12px 30px #10201918}
.ai-avatar{width:42px;height:42px;border-radius:13px;background:var(--lime);color:var(--dark);display:grid;place-items:center}
.customer-card>div:last-child{display:flex;flex-direction:column}
.customer-card span{font-size:10px;color:#819188;margin-top:3px}
.messages{padding:28px 0;min-height:calc(100vh - 350px);display:flex;flex-direction:column;gap:18px}
.bubble-row{max-width:72%;display:flex;flex-direction:column;gap:5px}
.bubble-row.sales{align-self:flex-end;align-items:flex-end}
.bubble-row.customer{align-self:flex-start}
.bubble-label{font-size:10px;color:#87928b;padding:0 5px}
.bubble{padding:13px 16px;border-radius:15px;background:#fff;border:1px solid #e1e6e1;line-height:1.7;font-size:13px;box-shadow:0 5px 12px #17342408}
.sales .bubble{background:#176b46;color:#fff;border-color:#176b46;border-bottom-right-radius:4px}
.customer .bubble{border-bottom-left-radius:4px}
.typing{display:flex;gap:5px;padding:17px}
.typing i{width:6px;height:6px;border-radius:50%;background:#83a28f;animation:bounce 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}
.typing i:nth-child(3){animation-delay:.3s}
@keyframes bounce{50%{transform:translateY(-4px)}}
.composer{background:#fff;border:1px solid #dbe2dc;border-radius:16px;padding:13px 14px;box-shadow:0 12px 35px #142a1d10}
.composer textarea{border:0;resize:none;outline:0;width:100%;height:58px;padding:3px;background:transparent}
.composer>div{border-top:1px solid #edf0ed;padding-top:9px;display:flex;align-items:center;justify-content:space-between}
.composer span{font-size:10px;color:#849087;display:flex;align-items:center;gap:5px}
.composer span svg{width:13px;color:#77a245}
.primary.round{width:38px;height:38px;border-radius:11px;padding:0}
.result-screen{min-height:100vh;background:#f0f3ef;padding:26px}
.result-wrap{max-width:1020px;margin:20px auto}
.score-hero{text-align:center;background:var(--dark);color:white;border-radius:22px;padding:28px;margin-bottom:18px}
.score-hero>span{font-size:11px;color:#99a9a0;letter-spacing:.13em}
.score-ring{width:136px;height:136px;border:8px solid var(--lime);border-radius:50%;margin:18px auto;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 45px #c0f26626}
.score-ring strong{font:800 42px Manrope}
.score-ring small{color:var(--lime)}
.score-hero p{font-size:13px;color:#aebbb4}
.dimension-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.dimension{background:white;border:1px solid var(--line);border-radius:14px;padding:15px}
.dimension>div:first-child{display:flex;justify-content:space-between;gap:5px}
.dimension b{font-size:12px}
.dimension strong{font:800 15px Manrope}
.dimension small{color:#9da69f;font-size:9px}
.dimension p{font-size:10px;color:#7f8c84;line-height:1.6}
.dimension blockquote{font-size:9px;color:#3d6f57;border-left:2px solid var(--lime);padding-left:7px;margin:7px 0 0}
.feedback-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.feedback{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.feedback h3{font-size:13px;margin:0 0 12px;display:flex;align-items:center;gap:7px}
.feedback h3 svg{width:17px}
.feedback p,.feedback blockquote{font-size:12px;line-height:1.7;margin:8px 0;color:#627068}
.feedback p:before{content:"•";color:#59a06f;margin-right:8px}
.feedback.phrases{grid-column:1/-1;background:#f9fcec}
.feedback blockquote{border-left:3px solid var(--lime);padding-left:10px}
.dropzone{border:1px dashed #aebcb2!important;border-radius:13px;padding:26px!important;display:flex!important;align-items:center;flex-direction:column;gap:7px;background:#f2f6f1;position:relative}
.dropzone svg{color:#4e8a6b}
.dropzone span{font-size:10px;color:#8a958e}
.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer}
.knowledge-table,.user-table{min-height:150px}
.audit-table time{font-size:10px;color:#8c978f}
.system-metrics .metric:first-child{grid-column:auto}
.toast{position:fixed;right:25px;bottom:25px;background:#10291e;color:white;padding:13px 17px;border-radius:12px;display:flex;align-items:center;gap:9px;box-shadow:0 15px 40px #0003;z-index:80;font-size:12px}
.toast svg{color:var(--lime)}
.loading{min-height:180px;display:flex;align-items:center;justify-content:center;gap:9px;color:#77847c;font-size:12px}
.spin{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.splash{height:100vh;background:var(--dark);color:var(--lime);display:grid;place-content:center;gap:20px}
.splash svg{width:42px;height:42px}
.splash .spin{width:20px;justify-self:center;color:#718078}
@media(max-width:1200px){.scenario-grid{grid-template-columns:repeat(2,1fr)}.dimension-grid{grid-template-columns:repeat(3,1fr)}.metric-grid{grid-template-columns:repeat(2,1fr)}}
.settings-tabs{display:flex;gap:8px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:6px;margin-bottom:20px;width:max-content}
.settings-tabs button{height:40px;border:0;background:transparent;color:#6f7d75;border-radius:9px;padding:0 18px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700}
.settings-tabs button svg{width:17px}
.settings-tabs button.active{background:#143d2b;color:#fff;box-shadow:0 5px 14px #143d2b20}
.log-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.log-actions .secondary{height:32px;padding:0 10px;font-size:11px;border-radius:9px}
.log-actions svg{width:14px}
.logs-panel{max-width:1050px}
.log-list{display:flex;flex-direction:column;gap:9px;max-height:58vh;overflow:auto;padding-right:3px}
.log-row{border:1px solid #e0e7e1;background:#fbfdfb;border-radius:13px;padding:12px 14px}
.log-row.error{border-color:#f0c8c1;background:#fff8f7}
.log-row>div{display:flex;justify-content:space-between;gap:12px;align-items:center}
.log-row b{font-size:13px;color:#17251d}
.log-row span{font-size:11px;color:#7a8780;white-space:nowrap}
.log-row pre{margin:9px 0 0;white-space:pre-wrap;word-break:break-word;background:#f1f4f1;border-radius:9px;padding:10px;font:11px/1.55 Consolas,monospace;color:#4d5a52}
.settings-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;align-items:start}
.settings-form form{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.settings-form label{font-size:12px;color:#56645c;display:flex;flex-direction:column;gap:7px}
.settings-form input,.settings-form select{height:43px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fff;outline:none}
.settings-form input:focus,.settings-form select:focus{border-color:var(--green)}
.settings-form .setup-note,.settings-form .error-box,.settings-form .primary{grid-column:1/-1}
.settings-form .primary{width:max-content}
.settings-tip{min-height:250px;background:linear-gradient(145deg,#091811,#123927);color:#fff}
.settings-tip>svg{width:42px;height:42px;color:var(--lime);margin-bottom:28px}
.settings-tip h3{font-size:11px;color:#8da095;letter-spacing:.12em;text-transform:uppercase}
.settings-tip strong{display:block;font-size:22px;margin:8px 0 18px;color:var(--lime);word-break:break-word}
.settings-tip p{font-size:12px;color:#a2b2a9;line-height:1.8}
.usage-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;color:#78857e;font-size:12px}
.usage-list{max-height:430px;overflow:auto}
.usage-row{display:flex;align-items:center;gap:10px;border-top:1px solid #edf0ed;padding:11px 3px}
.usage-row:first-child{border-top:0}
.usage-row>span{width:7px;height:7px;border-radius:50%;background:#45b879;flex:0 0 auto}
.usage-row>span.usage-fail{background:#df6d5d}
.usage-row>div{display:flex;flex-direction:column;min-width:0;flex:1}
.usage-row b{font-size:12px}.usage-row small{font-size:9px;color:#89958d;margin-top:3px}.usage-row strong{font:700 12px Manrope;color:#304139}
.role-settings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.role-setting-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 7px 20px #16362408}
.role-setting-head{display:flex;align-items:center;justify-content:space-between;color:#78857e;font-size:11px}
.role-setting-head>div{display:flex;gap:6px}
.role-setting-card h3{font-size:17px;margin:14px 0 11px}
.role-setting-card p{font-size:11px;line-height:1.65;color:#6f7d75;margin:6px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.role-setting-card p b{color:#36483e}
.role-setting-card .hidden-role{background:#f2f7ee;border-radius:8px;padding:8px}
.role-setting-card .card-actions .primary{flex:1}
.role-editor{width:min(860px,90vw)}
.role-editor .form-grid label>span{display:block;font-size:13px;font-weight:600;color:#445048;margin:18px 0 8px}
.role-editor select,.role-editor input{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;outline:0}
.maintenance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.maintenance-card{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;min-height:150px}
.maintenance-card>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.maintenance-card svg{width:24px;height:24px;color:#2b7252}
.maintenance-card h3{margin:4px 0 0;font-size:17px}
.maintenance-card p{margin:0;color:#6f7d75;font-size:12px;line-height:1.7;max-width:560px}
.maintenance-card>button{white-space:nowrap;margin-top:auto}
.maintenance-card.warn svg{color:#d88935}.maintenance-card.danger svg{color:#c94b3e}
.danger-btn{border-color:#f1c5bd!important;color:#b8493b!important;background:#fff8f6!important}
.danger-btn:hover{background:#ffecea!important}
@media(max-width:1200px){.role-settings-list,.settings-grid{grid-template-columns:1fr}}
@media(max-width:1200px){.maintenance-grid{grid-template-columns:1fr}.maintenance-card{flex-direction:column}.maintenance-card>button{margin-top:4px}}
.script-page{margin-top:-8px}
.script-page .page-title{margin-bottom:16px}
.script-page .page-title h1{font-size:26px}
.script-page .page-title p{font-size:12px}
.script-actions{display:flex;gap:7px}.script-actions input{display:none}
.script-actions .primary,.script-actions .secondary{height:36px;padding:0 13px;border-radius:10px;font-size:12px}.script-actions svg{width:15px}
.script-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.script-toolbar>span{font-size:11px;color:#7d8982;white-space:nowrap}
.script-toolbar .search{height:38px;width:min(390px,46vw);border-radius:10px}
.script-view-toggle{display:flex;gap:4px;background:#eef2ee;border:1px solid #dde5de;border-radius:11px;padding:3px;margin-left:auto}
.script-view-toggle button{border:0;background:transparent;color:#65746b;border-radius:8px;height:28px;padding:0 10px;font-size:10px;font-weight:700}.script-view-toggle button.active{background:#fff;color:#176b46;box-shadow:0 2px 7px #173b2910}
.script-categories{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}
.script-categories button{border:1px solid var(--line);background:#fff;border-radius:99px;height:28px;padding:0 10px;color:#65746b;font-size:10px;display:flex;align-items:center;gap:6px}
.script-categories button>span{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.script-categories button small{min-width:17px;height:17px;border-radius:99px;background:#edf1ed;display:grid;place-items:center;font:700 8px Manrope}
.script-categories button.active{background:#153e2c;color:#fff;border-color:#153e2c}.script-categories button.active small{background:#bdf064;color:#112a1e}
.category-manager{width:min(620px,88vw)}
.category-manager .modal-head p{margin:6px 0 0;color:#7c8981;font-size:12px;line-height:1.6}
.category-manager-list{display:flex;flex-direction:column;gap:8px;max-height:52vh;overflow:auto;padding-right:2px}
.category-manager-row{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid #e1e7e1;border-radius:12px;padding:12px 13px}
.category-manager-row.selected{border-color:#b8e65f;box-shadow:0 0 0 3px #bdf06425}
.category-manager-row>div{display:flex;flex-direction:column;gap:3px}
.category-manager-row b{font-size:13px;color:#15221a}
.category-manager-row span{font-size:10px;color:#829087}
.category-manager-row button{height:32px;padding:0 10px;font-size:11px}
.category-manager-row button svg{width:14px}
.danger-btn{color:#bd3f32!important;border-color:#f1d1cc!important;background:#fff8f7!important}
.danger-btn:hover{background:#ffeceb!important}
.script-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.script-grid.view-card{gap:16px}.script-grid.view-card .script-card{padding:17px;border-radius:17px}.script-grid.view-card .script-card h3{font-size:14px;margin:13px 0 10px}.script-grid.view-card .script-answer{padding:12px 14px}.script-grid.view-card .script-answer p{font-size:13px;line-height:1.72}
.script-card{background:#fff;border:1px solid #e0e6e1;border-radius:14px;padding:13px 14px 12px;box-shadow:0 6px 18px #173b2907;transition:.18s}
.script-card:hover{transform:translateY(-1px);box-shadow:0 10px 22px #173b2910}
.script-card-top{display:flex;align-items:center;justify-content:space-between}
.script-card-top>span{background:#e6f3e8;color:#216b47;padding:4px 8px;border-radius:99px;font-size:9px;font-weight:800}
.script-card-top>div{display:flex;gap:2px}.script-card-top button{width:25px;height:25px;border:0;border-radius:7px;background:transparent;color:#89958e;display:grid;place-items:center}.script-card-top button:hover{background:#f0f3f0;color:#285f45}.script-card-top svg{width:13px}
.script-card h3{font-size:13px;line-height:1.45;margin:10px 0 8px;color:#15221a;letter-spacing:-.01em}.script-card h3>span,.script-answer>span{display:block;font-size:8px;color:#8d9991;letter-spacing:.12em;margin-bottom:3px;text-transform:uppercase;font-weight:700}
.script-answer{background:#f4f8f3;border-left:3px solid var(--lime);border-radius:4px 9px 9px 4px;padding:9px 11px}
.script-answer p{font-size:13px;line-height:1.62;color:#435149;margin:0;white-space:pre-wrap}
.script-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.script-card-bottom>div{display:flex;gap:5px;flex-wrap:wrap;min-width:0;overflow:hidden}.script-card-bottom i{font-style:normal;font-size:9px;color:#819087;white-space:nowrap}
.script-card-bottom>button.copy-icon{border:0;border-radius:10px;background:#176b46;color:#fff;width:32px;height:32px;padding:0;display:grid;place-items:center;flex:0 0 auto}.script-card-bottom>button.copy-icon.copied{background:#84ad45}.script-card-bottom svg{width:15px}
.script-grid.view-list{display:flex;flex-direction:column;gap:8px}
.script-grid.view-list .script-card{display:grid;grid-template-columns:170px minmax(220px,.8fr) 1.35fr 106px;gap:12px;align-items:center;padding:10px 12px;border-radius:12px;box-shadow:none}
.script-grid.view-list .script-card:hover{transform:none;box-shadow:0 7px 18px #173b2908}
.script-grid.view-list .script-card-top{align-self:stretch;align-items:flex-start}.script-grid.view-list .script-card-top>div{margin-left:auto}.script-grid.view-list .script-card-top>span{margin-top:2px}
.script-grid.view-list .script-card h3{margin:0;font-size:12px;line-height:1.45}.script-grid.view-list .script-card h3>span{margin-bottom:2px}
.script-grid.view-list .script-answer{padding:8px 10px}.script-grid.view-list .script-answer p{font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.script-grid.view-list .script-card-bottom{margin-top:0}.script-grid.view-list .script-card-bottom>div{display:none}
.script-editor{width:min(650px,86vw)}.script-editor>label>span{display:block;font-size:13px;font-weight:600;color:#445048;margin:18px 0 8px}.script-editor textarea{min-height:105px}
@media(min-width:1500px){.script-grid:not(.view-list){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1200px){.script-grid{grid-template-columns:1fr}.script-grid.view-list .script-card{grid-template-columns:1fr}.script-actions{flex-wrap:wrap;justify-content:flex-end}.script-toolbar{flex-wrap:wrap}.script-view-toggle{margin-left:0}}
.assistant-page{height:calc(100vh - 105px);display:flex;flex-direction:column;min-height:620px}
.assistant-page .page-title{margin-bottom:14px}
.assistant-shell{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;min-height:0;flex:1}
.assistant-chat{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 28px #173b2908;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.assistant-tips{display:flex;gap:8px;flex-wrap:wrap;padding:14px 16px 10px;border-bottom:1px solid #edf1ed;background:#fbfdfb}
.assistant-tips button{border:1px solid #dfe7e0;background:#fff;border-radius:999px;padding:7px 11px;font-size:12px;color:#546259}
.assistant-tips button:hover{border-color:#b7d9c1;color:#176b46;background:#f4fbf5}
.assistant-messages{padding:18px;overflow:auto;min-height:0;flex:1;background:linear-gradient(180deg,#f8fbf8,#f2f6f2)}
.assistant-msg{display:flex;gap:10px;margin-bottom:14px;align-items:flex-start}
.assistant-msg.user{flex-direction:row-reverse}
.assistant-avatar{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#e8f5e8;color:#176b46;flex:0 0 auto}
.assistant-msg.user .assistant-avatar{background:#153e2c;color:#bdf064}
.assistant-avatar svg{width:18px}
.assistant-bubble{max-width:min(760px,78%);background:#fff;border:1px solid #e0e7e1;border-radius:16px;padding:12px 14px;box-shadow:0 7px 18px #173b2908}
.assistant-msg.user .assistant-bubble{background:#176b46;color:#fff;border-color:#176b46}
.assistant-bubble pre{margin:0;white-space:pre-wrap;font:13px/1.75 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:inherit}
.assistant-bubble>img{max-width:260px;max-height:210px;border-radius:12px;display:block;margin-bottom:9px;border:1px solid #dfe7e0;object-fit:cover}
.assistant-bubble.thinking{display:flex;align-items:center;gap:9px;color:#637169;font-size:13px}
.assistant-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:10px;padding-top:10px;border-top:1px dashed #dce5de}
.assistant-meta span{font-size:10px;color:#6f7c74;background:#f1f5f1;border-radius:999px;padding:4px 7px}
.assistant-meta button{margin-left:auto;border:0;background:#eef7ef;color:#176b46;border-radius:9px;height:28px;padding:0 9px;font-size:11px;font-weight:700;display:flex;align-items:center;gap:5px}
.assistant-meta button svg{width:13px}
.assistant-composer{border-top:1px solid #dfe7e0;background:#fff;padding:12px 14px}
.assistant-composer textarea{width:100%;min-height:82px;max-height:150px;resize:vertical;border:0;outline:none;font-size:14px;line-height:1.7;color:#1b2b20}
.assistant-composer-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #edf1ed;padding-top:10px}
.assistant-composer-actions button{height:36px}
.assistant-preview{display:flex;align-items:center;gap:8px;background:#f3f7f3;border:1px solid #dfe7e0;border-radius:12px;padding:7px;width:max-content;margin-bottom:8px}
.assistant-preview img{width:70px;height:54px;border-radius:9px;object-fit:cover}
.assistant-preview button{border:0;background:transparent;color:#7d8982;display:grid;place-items:center}
.assistant-preview svg{width:18px}
.assistant-side{height:max-content;position:sticky;top:14px;background:linear-gradient(145deg,#0b1b13,#143d2b);color:#fff}
.assistant-side>svg{width:38px;height:38px;color:var(--lime);margin-bottom:18px}
.assistant-side h3{font-size:18px;margin-bottom:9px}
.assistant-side p,.assistant-side li{font-size:12px;line-height:1.8;color:#b9c8bf}
.assistant-side ul{padding-left:18px;margin:12px 0}
.assistant-note{margin-top:16px;background:#ffffff12;border:1px solid #ffffff18;border-radius:14px;padding:12px;font-size:12px;line-height:1.7;color:#e4efe8}
@media(max-width:1200px){.assistant-shell{grid-template-columns:1fr}.assistant-side{position:static}.assistant-page{height:auto}.assistant-chat{min-height:680px}}
:root {
  --bg: #f4f7f2;
  --panel: #ffffff;
  --panel-soft: #f8fbf7;
  --line: #dce7de;
  --text: #10231b;
  --muted: #66776e;
  --green: #0f7a4e;
  --green-dark: #062016;
  --green-soft: #e9f6ee;
  --danger: #c83b30;
  --shadow: 0 16px 38px rgba(11, 42, 28, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body, #root { width: 100%; height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); min-width: 1080px; overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background:
    linear-gradient(110deg, rgba(6,32,22,.96) 0 42%, rgba(246,250,245,.92) 42% 100%),
    radial-gradient(circle at 20% 28%, rgba(174, 24, 55, .30), transparent 34%);
}
.login-screen.single { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f7faf5, #eef5ee); }
.login-brand { color: white; padding: 90px 70px; align-self: center; }
.login-brand h1 { font-size: 46px; margin: 26px 0 12px; letter-spacing: 0; }
.login-brand p { max-width: 420px; color: rgba(255,255,255,.75); line-height: 1.8; }
.auth-logo { width: min(360px, 72%); max-height: 170px; object-fit: contain; object-position: left center; display: block; }
.auth-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-highlights span { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: rgba(255,255,255,.86); border-radius: 999px; padding: 9px 13px; font-weight: 800; font-size: 13px; }
.brand-logo { width: 64px; height: 64px; border-radius: 18px; background: white; color: #bb1e2f; display: grid; place-items: center; font-weight: 900; font-size: 32px; box-shadow: var(--shadow); }
.brand-logo.small { width: 42px; height: 42px; border-radius: 12px; font-size: 24px; flex: 0 0 auto; }
.login-card { width: 430px; align-self: center; justify-self: center; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 28px; padding: 38px; box-shadow: var(--shadow); }
.auth-card { width: min(460px, 82vw); display: grid; gap: 14px; }
.register-card { width: min(500px, 86vw); }
.auth-card-logo { width: 168px; max-height: 74px; object-fit: contain; object-position: left center; display: block; margin-bottom: 2px; }
.login-card h2 { margin: 0; font-size: 30px; }
.auth-subtitle { margin: -6px 0 4px; color: var(--muted); font-size: 14px; }
.login-card label, .form-panel label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; color: #20362c; }
.login-card input, .form-panel input, .form-panel select, .form-panel textarea, .toolbar input, .toolbar select, .table-card select {
  border: 1px solid var(--line); border-radius: 14px; background: white; min-height: 48px; padding: 0 14px; outline: none;
}
.login-card select { border: 1px solid var(--line); border-radius: 14px; background: white; min-height: 48px; padding: 0 14px; outline: none; }
.form-panel textarea { min-height: 76px; padding: 12px 14px; resize: vertical; }
.login-card input:focus, .login-card select:focus, .form-panel input:focus, .toolbar input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,122,78,.12); }
.login-links { margin-top: 18px; display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 13px; }
.login-links button, .ghost-link { border: 0; background: transparent; color: var(--green); font-weight: 800; }
.role-choice-hint { margin-top: -6px; color: var(--muted); background: var(--green-soft); border: 1px solid rgba(15,122,78,.10); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }

.primary, .secondary, .toolbar button, .row-actions button, .review-card button {
  border: 0; border-radius: 14px; min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800;
}
.primary { background: var(--green); color: white; box-shadow: 0 10px 22px rgba(15,122,78,.18); }
.secondary, .toolbar button, .row-actions button, .review-card button { background: white; color: var(--green-dark); border: 1px solid var(--line); }
.danger, .secondary.danger, .review-card button.danger { color: var(--danger); border-color: #f1c8c2; background: #fff8f7; }
.wide { width: 100%; margin-top: 18px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-shell { height: 100vh; display: grid; grid-template-columns: 260px 1fr; overflow: hidden; transition: grid-template-columns .18s ease; }
.app-shell.sidebar-collapsed { grid-template-columns: 84px 1fr; }
.sidebar {
  position: sticky; left: 0; top: 0; height: 100vh; z-index: 20;
  background: var(--green-dark); color: #d6e7de; padding: 28px 18px 18px; display: flex; flex-direction: column; min-height: 0;
  overflow: hidden;
}
.logo-row { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; padding: 0 6px; }
.logo-row strong { display: block; color: white; font-size: 22px; }
.logo-row span { font-size: 12px; color: #91a99c; }
.logo-text { min-width: 0; }
.collapse-btn { margin-left: auto; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.06); color: #d8eadf; font-size: 20px; line-height: 1; }
.sidebar nav { overflow-y: auto; padding-right: 6px; flex: 1; }
.sidebar nav::-webkit-scrollbar, .content::-webkit-scrollbar, .table-card::-webkit-scrollbar { width: 8px; height: 8px; }
.sidebar nav::-webkit-scrollbar-thumb, .content::-webkit-scrollbar-thumb, .table-card::-webkit-scrollbar-thumb { background: rgba(160,178,166,.55); border-radius: 999px; }
.nav-group { margin: 20px 0; }
.nav-group > span { display: block; color: #6f887a; font-size: 12px; margin: 0 0 8px 10px; }
.nav-group button {
  width: 100%; height: 44px; border: 0; background: transparent; color: #c2d8ce; border-radius: 13px; display: flex; align-items: center; gap: 12px; padding: 0 14px; margin: 4px 0; text-align: left;
}
.nav-group button em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-group button.active { background: rgba(56, 95, 70, .75); color: white; box-shadow: inset 4px 0 0 #b7ff59; }
.profile-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: 38px 1fr 36px; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 900; }
.profile-box b { display: block; color: white; }
.profile-box span { display: block; color: #90a79b; font-size: 12px; }
.profile-box button { border: 0; background: transparent; color: #9fb7aa; }
.sidebar-collapsed .sidebar { padding: 24px 12px 16px; }
.sidebar-collapsed .logo-row { justify-content: center; padding: 0; gap: 0; margin-bottom: 22px; }
.sidebar-collapsed .logo-text, .sidebar-collapsed .nav-group > span, .sidebar-collapsed .nav-group button em, .sidebar-collapsed .profile-box div:not(.avatar) { display: none; }
.sidebar-collapsed .collapse-btn { position: absolute; right: 8px; top: 10px; width: 24px; height: 24px; font-size: 18px; }
.sidebar-collapsed .nav-group { margin: 16px 0; }
.sidebar-collapsed .nav-group button { justify-content: center; padding: 0; gap: 0; }
.sidebar-collapsed .profile-box { grid-template-columns: 1fr; justify-items: center; }
.sidebar-collapsed .profile-box button { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.topbar { height: 62px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; color: var(--muted); font-size: 14px; flex: 0 0 auto; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.notice-btn { position: relative; border: 1px solid var(--line); background: white; color: var(--green-dark); min-height: 38px; border-radius: 999px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; font-weight: 900; box-shadow: 0 8px 18px rgba(11,42,28,.06); }
.notice-btn.has { border-color: #fecaca; background: #fff7f7; color: #b91c1c; }
.notice-btn b { position: absolute; right: -6px; top: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: white; font-size: 12px; line-height: 20px; text-align: center; box-shadow: 0 8px 16px rgba(239,68,68,.25); }
.online-dot { display: inline-block; width: 9px; height: 9px; background: #49d178; border-radius: 50%; margin-right: 8px; }
.role-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green); padding: 8px 12px; border-radius: 999px; font-weight: 800; }
.content { padding: 34px 44px 52px; overflow: auto; min-height: 0; }
.page-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.page-title h1 { margin: 6px 0; font-size: 32px; }
.page-title p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--green); font-size: 12px; letter-spacing: .22em; font-weight: 900; }

.panel, .table-card, .form-panel, .modal, .stat-card, .list-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.panel { padding: 24px; margin-bottom: 18px; }
.stat-grid { display: grid; gap: 12px; margin-bottom: 18px; }
.stat-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid.review-dashboard { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-grid.review-dashboard .stat-card:nth-child(5) { border-color: #fecaca; background: linear-gradient(135deg, #fff7f7, #fff1f2); }
.stat-grid.review-dashboard .stat-card:nth-child(5).active,
.stat-grid.review-dashboard .stat-card:nth-child(5):hover { border-color: #ef4444; box-shadow: 0 14px 34px rgba(239, 68, 68, .14); }
.stat-grid.review-dashboard .stat-card:nth-child(5) strong { color: #dc2626; }
.stat-grid.review-dashboard .stat-card:nth-child(6) { border-color: #fecaca; background: linear-gradient(135deg, #fff7f7, #fff1f2); }
.stat-grid.review-dashboard .stat-card:nth-child(6).active,
.stat-grid.review-dashboard .stat-card:nth-child(6):hover { border-color: #ef4444; box-shadow: 0 14px 34px rgba(239, 68, 68, .14); }
.stat-grid.review-dashboard .stat-card:nth-child(6) strong { color: #dc2626; }
.stat-grid.shooting-dashboard { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.stat-grid.shooting-dashboard .stat-card:nth-child(7) { border-color: #fecaca; background: linear-gradient(135deg, #fff7f7, #fff1f2); }
.stat-grid.shooting-dashboard .stat-card:nth-child(7).active,
.stat-grid.shooting-dashboard .stat-card:nth-child(7):hover { border-color: #ef4444; box-shadow: 0 14px 34px rgba(239, 68, 68, .14); }
.stat-grid.shooting-dashboard .stat-card:nth-child(7) strong { color: #dc2626; }
.stat-grid.photographer-manage-stats { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.stat-grid.photographer-manage-stats .stat-card { min-height: 74px; padding: 14px; }
.stat-grid.photographer-manage-stats .stat-card strong { font-size: 24px; }
.stat-grid.photographer-manage-stats .stat-card:nth-child(5),
.stat-grid.photographer-manage-stats .stat-card:nth-child(6),
.stat-grid.photographer-manage-stats .stat-card:nth-child(8) { border-color: #fecaca; background: linear-gradient(135deg, #fff7f7, #fff1f2); }
.stat-grid.photographer-manage-stats .stat-card:nth-child(5) strong,
.stat-grid.photographer-manage-stats .stat-card:nth-child(6) strong,
.stat-grid.photographer-manage-stats .stat-card:nth-child(8) strong { color: #dc2626; }
.stat-grid.report-dashboard { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.stat-grid.report-dashboard .stat-card { min-height: 74px; padding: 14px; }
.stat-grid.report-dashboard .stat-card strong { font-size: 23px; }
.stat-card { min-height: 82px; text-align: left; padding: 18px; border: 1px solid var(--line); background: var(--panel-soft); }
.stat-card span { display: block; color: var(--muted); margin-bottom: 8px; }
.stat-card strong { font-size: 27px; }
.stat-card.active { outline: 2px solid var(--green); background: var(--green-soft); }
.urgent-stat { color: #991b1b; background: linear-gradient(135deg, #fff1f2, #ffe4e6); border-color: #fecdd3; }
.urgent-stat span { color: #b91c1c; }
.urgent-stat strong { color: #7f1d1d; }
.urgent-stat.active { outline: 2px solid #ef4444; box-shadow: 0 14px 28px rgba(239,68,68,.16); }
.quick-grid, .admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-grid button, .admin-grid button { min-height: 120px; border: 1px solid var(--line); border-radius: 20px; background: white; text-align: left; padding: 20px; display: flex; flex-direction: column; gap: 10px; font-weight: 900; color: var(--text); }
.admin-grid button span { color: var(--muted); font-weight: 400; }
.photographer-tools { grid-template-columns: minmax(260px, 420px); margin-bottom: 18px; }
.photographer-tools .admin-entry.active { border-color: rgba(19,107,69,.28); background: linear-gradient(135deg,#ffffff,#eef8f1); box-shadow: 0 16px 36px rgba(19,107,69,.08); }
.script-group-chip.pinned { border-color: rgba(15,122,78,.30); background: linear-gradient(135deg, #ffffff, #eef8f1); box-shadow: 0 10px 24px rgba(15,122,78,.08); }
.script-group-chip em { font-style: normal; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 5px 8px; font-size: 12px; font-weight: 900; }
.photographer-detail-modal { width: min(920px, 92vw); }
.photographer-detail-modal .compact-grid label textarea { min-height: 72px; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.upload-card { border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 8px; cursor: zoom-in; text-align: left; font: inherit; }
.upload-card:hover { border-color: rgba(19,107,69,.36); box-shadow: 0 10px 24px rgba(19,107,69,.10); transform: translateY(-1px); }
.upload-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #edf3ee; }
.upload-card span { font-size: 12px; color: var(--green); font-weight: 800; }
.upload-manage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdfc;
}
.upload-manage-head b { display: block; margin-bottom: 3px; }
.upload-manage-head span { color: var(--muted); font-size: 13px; font-weight: 800; }
.upload-manage-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.upload-manage-actions button { min-height: 34px; }
.upload-grid.selectable { margin-top: 12px; }
.upload-card.selectable {
  position: relative;
  cursor: default;
  padding: 10px;
}
.upload-card.selectable.selected { border-color: var(--green); box-shadow: 0 12px 28px rgba(15,122,78,.12); }
.upload-card.selectable.locked { opacity: .78; }
.upload-select-check {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,122,78,.15);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--green-dark);
  cursor: pointer;
}
.upload-select-check input { width: 14px; height: 14px; accent-color: var(--green); }
.upload-select-check input:disabled { cursor: not-allowed; }
.upload-preview-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  text-align: left;
}
.upload-preview-button img { display: block; }
.upload-card-footer { display: grid; gap: 3px; }
.upload-card-footer small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photographer-upload-modal { width: min(780px, 94vw); max-height: 88vh; overflow: auto; }
.upload-picker { border: 1px dashed rgba(19,107,69,.28); background: #f6fbf7; border-radius: 18px; padding: 18px; display: grid; gap: 10px; margin-bottom: 14px; }
.upload-picker input { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.upload-picker span { color: var(--muted); font-size: 13px; }
.file-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; max-height: 112px; overflow: auto; }
.file-chip-list span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); padding: 7px 10px; font-size: 12px; font-weight: 800; }
.upload-queue {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}
.upload-queue-head {
  position: sticky;
  top: -12px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,.96);
  padding: 4px 2px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.upload-queue-head b { color: var(--text); font-size: 15px; }
.upload-queue-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 104px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  padding: 10px;
}
.upload-queue-row.uploading { border-color: rgba(15,122,78,.28); background: #f5fbf7; }
.upload-queue-row.uploaded { border-color: rgba(15,122,78,.18); background: #f7fcf8; }
.upload-queue-row.failed { border-color: rgba(220,38,38,.20); background: #fff7f7; }
.upload-file-index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}
.upload-file-main { display: grid; gap: 7px; min-width: 0; }
.upload-file-title { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.upload-file-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.upload-file-title span { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 800; }
.upload-file-main small { color: var(--danger); font-weight: 800; }
.upload-progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7eee9;
}
.upload-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f7a4e, #48b978);
  transition: width .2s ease;
}
.upload-queue-row.failed .upload-progress-track i { background: #dc2626; }
.upload-file-status { display: flex; justify-content: flex-end; align-items: center; min-width: 0; }
.upload-file-status span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: #f2f6f3;
  color: var(--muted);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.upload-file-status .ok { background: var(--green-soft); color: var(--green-dark); }
.upload-file-status .doing { background: #eaf8ef; color: var(--green); }
.upload-file-status .mini-btn {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.upload-center-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  box-shadow: 0 18px 38px rgba(15,122,78,.24);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  font-weight: 900;
}
.upload-center-fab.has-error { background: var(--danger); box-shadow: 0 18px 38px rgba(220,38,38,.22); }
.upload-center-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 70;
  width: min(680px, calc(100vw - 48px));
  max-height: min(720px, calc(100vh - 48px));
  border: 1px solid rgba(15,122,78,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 58px rgba(9,34,23,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.upload-center-head {
  padding: 16px 16px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, #f3faf5);
}
.upload-center-head b { display: block; font-size: 17px; margin-bottom: 3px; }
.upload-center-head span { color: var(--muted); font-size: 13px; font-weight: 800; }
.upload-center-summary {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}
.upload-center-summary span {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}
.upload-center-summary .danger { background: #fee2e2; color: var(--danger); }
.upload-center-list {
  padding: 12px;
  overflow: auto;
  display: grid;
  gap: 8px;
}
.upload-center-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}
.upload-center-row.uploading { border-color: rgba(15,122,78,.28); background: #f6fbf7; }
.upload-center-row.uploaded { background: #f8fcf9; }
.upload-center-row.failed { border-color: rgba(220,38,38,.20); background: #fff7f7; }
.upload-center-row p {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-center-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.material-admin-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.material-category-panel, .material-main-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; }
.panel-head.compact { margin-bottom: 14px; }
.panel-head.compact h3 { margin: 0 0 4px; }
.panel-head.compact p { margin: 0; color: var(--muted); font-size: 13px; }
.material-category-item { width: 100%; min-height: 54px; border: 1px solid var(--line); background: #fff; border-radius: 15px; margin-bottom: 10px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; text-align: left; color: var(--text); }
.material-category-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-category-item span { color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 900; }
.material-category-item.active { border-color: rgba(15,122,78,.32); background: linear-gradient(135deg, #fff, #eff8f1); box-shadow: 0 12px 28px rgba(15,122,78,.08); }
.material-category-actions { grid-column: 1 / -1; display: flex; gap: 6px; }
.material-category-actions button { width: 32px; height: 30px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--green-dark); display: grid; place-items: center; }
.material-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.material-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 12px 28px rgba(11,42,28,.05); display: flex; flex-direction: column; }
.material-card.disabled { opacity: .68; }
.material-thumb { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #edf4ef, #f8fbf7); display: grid; place-items: center; color: var(--green); }
.material-thumb img { width: 100%; height: 100%; object-fit: cover; }
.material-thumb span { position: absolute; left: 10px; top: 10px; background: rgba(6,32,22,.78); color: #fff; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; }
.material-card-body { padding: 14px; flex: 1; }
.material-card-body small { color: var(--green); font-weight: 900; }
.material-card-body h3 { margin: 8px 0 6px; font-size: 17px; }
.material-card-body p { margin: 0; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.material-card-body em { display: inline-block; margin-top: 10px; color: var(--muted); font-style: normal; font-size: 12px; font-weight: 800; }
.material-card-actions { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.material-card-actions button { min-height: 34px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--green-dark); display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; font-weight: 800; }
.material-edit-modal { width: min(760px, 92vw); }
.material-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.material-edit-form .full-field { grid-column: 1 / -1; }
.material-upload-box { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: center; border: 1px dashed rgba(15,122,78,.28); background: #f7fbf8; border-radius: 18px; padding: 14px; }
.material-upload-preview { aspect-ratio: 4 / 3; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--green); }
.material-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.material-upload-box p { color: var(--muted); line-height: 1.6; margin: 6px 0 10px; }
.material-upload-box input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; }

/* Material library polish: make the page read as a full workspace instead of a narrow side panel. */
.material-admin-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.material-category-panel {
  padding: 16px;
}
.material-category-panel .panel-head.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.material-category-panel .panel-head.compact h3 {
  font-size: 18px;
  letter-spacing: 0;
}
.material-category-panel .panel-head.compact p {
  color: var(--muted);
}
.material-category-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.material-category-panel .panel-head.compact {
  flex: 0 0 220px;
}
.material-category-panel .panel-head {
  min-width: 0;
}
.material-category-panel > .material-category-item,
.material-category-panel > div.material-category-item {
  flex: 0 0 auto;
}

@supports (display: grid) {
  .material-category-panel {
    display: grid;
    grid-template-columns: 220px repeat(auto-fill, minmax(156px, auto));
  }
  .material-category-panel .panel-head.compact {
    grid-row: 1 / span 4;
    flex-basis: auto;
  }
}

.material-category-panel {
  gap: 12px;
  align-items: start;
}
.material-category-panel > .material-category-item,
.material-category-panel > div.material-category-item {
  display: inline-grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  width: auto;
  min-width: 156px;
  min-height: 48px;
  margin: 0;
}
.material-category-panel > .material-category-item:nth-child(n + 2) {
  align-self: stretch;
}
.material-category-panel::after {
  content: "";
  display: none;
}
.material-main-panel {
  min-height: 360px;
  padding: 18px;
}
.material-main-panel .toolbar.dense {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 160px auto;
  gap: 12px;
}
.material-main-panel .toolbar.dense .search {
  min-width: 0;
}
.material-batch-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(11,42,28,.04);
}
.material-batch-bar.active {
  border-color: rgba(15,122,78,.26);
  background: linear-gradient(135deg, #f2faf4, #fff);
}
.material-batch-bar b {
  color: var(--green-dark);
  font-size: 14px;
}
.material-batch-bar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.material-batch-bar button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 11px;
}
.material-batch-bar button:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.material-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #263a30;
  font-size: 13px;
  font-weight: 900;
  user-select: none;
}
.material-select-all input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
.material-main-panel > .empty-state {
  min-height: 235px;
  border: 1px dashed rgba(15,122,78,.28);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15,122,78,.06), rgba(255,255,255,.9)),
    #fff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #486257;
  font-size: 16px;
  font-weight: 900;
  padding: 34px;
}
.material-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.material-card.selected {
  border-color: rgba(15,122,78,.42);
  box-shadow: 0 16px 34px rgba(15,122,78,.13);
}
.material-card-check {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.material-card-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.material-card-check span {
  position: static !important;
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 2px solid rgba(255,255,255,.94) !important;
  border-radius: 999px !important;
  background: rgba(6,32,22,.34) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}
.material-card.selected .material-card-check span {
  background: var(--green) !important;
}
.material-card .material-thumb > span:not(.material-card-check span) {
  left: 48px;
}

/* Final guard for material page layout: keep category filters inside the content area. */
.content .material-admin-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}
.content .material-category-panel {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 20px !important;
}
.content .material-category-panel .panel-head.compact {
  flex: 0 0 auto !important;
  display: block !important;
  margin: 0 10px 0 0 !important;
  min-width: 170px !important;
}
.content .material-category-panel .panel-head.compact h3 {
  margin: 0 0 3px !important;
  font-size: 16px !important;
}
.content .material-category-panel .panel-head.compact p {
  margin: 0 !important;
  font-size: 12px !important;
}
.content .material-category-panel .material-category-item {
  width: auto !important;
  min-width: 138px !important;
  min-height: 42px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 999px !important;
}
.content .material-category-panel .material-category-actions {
  display: none !important;
}

.toolbar { display: flex; gap: 12px; align-items: center; margin: 12px 0 16px; flex-wrap: wrap; }
.toolbar.dense { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.toolbar .grow { flex: 1; min-width: 260px; }
.toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.search { display: flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; min-height: 44px; flex: 1; min-width: 280px; }
.search input { border: 0; padding: 0; min-height: 38px; width: 100%; box-shadow: none !important; }
.pagination-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 26px rgba(11,42,28,.04); }
.pagination-bar span { margin-right: auto; color: var(--muted); font-size: 13px; font-weight: 900; }
.pagination-bar select { min-height: 36px; border-radius: 12px; padding: 0 10px; border: 1px solid var(--line); background: #fff; font-weight: 800; color: var(--text); }
.pagination-bar button { min-height: 36px; padding: 0 12px; border-radius: 12px; }
.pagination-bar button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.audit-stats { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.audit-toolbar select { min-width: 132px; }
.audit-search { min-width: 360px; }
.audit-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); gap: 18px; align-items: start; }
.audit-timeline, .audit-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.audit-timeline { max-height: calc(100vh - 342px); overflow: auto; padding: 10px; }
.audit-row {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  color: var(--text);
}
.audit-row:hover, .audit-row.active { background: #f7fbf8; border-color: rgba(15,122,78,.18); }
.audit-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 9px; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.audit-dot.module-报单 { background: #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.audit-dot.module-拍摄 { background: #c2410c; box-shadow: 0 0 0 4px #ffedd5; }
.audit-dot.module-审图 { background: #7c3aed; box-shadow: 0 0 0 4px #ede9fe; }
.audit-dot.module-系统 { background: #0f7a4e; box-shadow: 0 0 0 4px var(--green-soft); }
.audit-dot.module-训练 { background: #0891b2; box-shadow: 0 0 0 4px #cffafe; }
.audit-dot.module-考试 { background: #be123c; box-shadow: 0 0 0 4px #ffe4e6; }
.audit-row-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.audit-row-head b { font-size: 15px; }
.audit-row-head time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.audit-main p { margin: 8px 0 4px; font-weight: 800; color: #263a30; }
.audit-main small { color: var(--muted); line-height: 1.5; white-space: normal; }
.audit-detail { position: sticky; top: 0; padding: 18px; max-height: calc(100vh - 342px); overflow: auto; }
.audit-detail-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.audit-detail-head h3 { margin: 10px 0 4px; font-size: 22px; }
.audit-detail-head p { margin: 0; color: var(--muted); }
.audit-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.audit-note { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; margin-top: 12px; }
.audit-note span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; margin-bottom: 8px; }
.audit-note p { margin: 0; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.audit-note pre { margin: 0; white-space: pre-wrap; word-break: break-word; color: #24372d; font-family: inherit; line-height: 1.7; }

.table-card { overflow: auto; max-height: calc(100vh - 330px); }
.table-card table { width: 100%; border-collapse: collapse; min-width: 1100px; }
.table-card th { position: sticky; top: 0; z-index: 2; background: #f3f8f4; color: #314339; text-align: left; font-size: 13px; padding: 14px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table-card td { padding: 12px; border-bottom: 1px solid #edf2ee; white-space: nowrap; font-size: 13px; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.report-actions { min-width: 330px; flex-wrap: wrap; }
.report-actions button { min-height: 34px; padding: 0 11px; }
.delete-review-modal {
  width: min(1560px, 98vw);
  max-height: 92vh;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
}
.delete-review-modal .modal-head {
  margin-bottom: 14px;
  flex: 0 0 auto;
}
.delete-review-modal .modal-head h2 {
  font-size: 24px;
}
.delete-review-modal .table-card {
  max-height: min(660px, calc(100vh - 210px));
  flex: 1 1 auto;
  border-radius: 18px;
}
.delete-review-modal .modal-actions {
  flex: 0 0 auto;
  margin-top: 14px;
}
.delete-review-table table {
  min-width: 1180px;
  table-layout: fixed;
}
.delete-review-table th,
.delete-review-table td {
  padding: 11px 10px;
  font-size: 12px;
}
.delete-review-table th:nth-child(1), .delete-review-table td:nth-child(1) { width: 104px; }
.delete-review-table th:nth-child(2), .delete-review-table td:nth-child(2) { width: 142px; }
.delete-review-table th:nth-child(3), .delete-review-table td:nth-child(3) { width: 72px; }
.delete-review-table th:nth-child(4), .delete-review-table td:nth-child(4) { width: 88px; }
.delete-review-table th:nth-child(5), .delete-review-table td:nth-child(5) { width: 76px; }
.delete-review-table th:nth-child(6), .delete-review-table td:nth-child(6) { width: 98px; }
.delete-review-table th:nth-child(7), .delete-review-table td:nth-child(7) { width: 62px; }
.delete-review-table th:nth-child(8), .delete-review-table td:nth-child(8) { width: 96px; }
.delete-review-table th:nth-child(9), .delete-review-table td:nth-child(9) { width: 82px; }
.delete-review-table th:nth-child(10), .delete-review-table td:nth-child(10) { width: 70px; }
.delete-review-table th:nth-child(11), .delete-review-table td:nth-child(11) { width: 84px; }
.delete-review-table th:nth-child(12), .delete-review-table td:nth-child(12) { width: 150px; }
.delete-review-table th:nth-child(13), .delete-review-table td:nth-child(13) { width: 106px; }
.delete-review-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}
.delete-review-table .long-cell {
  max-width: none;
  white-space: normal !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.delete-review-table .row-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.delete-review-table .row-actions button {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 12px;
}
.compact-actions { flex-wrap: wrap; min-width: 260px; }
.photographer-manage-toolbar { margin-bottom: 14px; }
.photographer-management-table { max-height: calc(100vh - 390px); }
.photographer-management-table table { min-width: 1480px; }
.photographer-management-table td:nth-child(4),
.photographer-management-table td:nth-child(5) { max-width: 220px; white-space: normal; line-height: 1.55; }
.muted { color: var(--muted); font-weight: 500; }
.photographer-detail-modal { width: min(1040px, 92vw); max-height: 88vh; overflow: auto; }
.photographer-detail-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff, #f7fbf8);
}
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head-row h3, .photographer-detail-section h3 { margin: 0 0 12px; }
.detail-kv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.detail-kv-grid div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.detail-kv-grid span { display: block; color: var(--muted); font-size: 12px; }
.detail-kv-grid b { display: block; margin-top: 5px; font-size: 15px; word-break: break-all; }
.mini-task-list { display: grid; gap: 8px; }
.mini-task-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr .9fr 1.2fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}
.mini-task-row span { color: var(--muted); font-size: 13px; }
.row-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.row-actions .primary { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 10px 22px rgba(19,107,69,.16); }
.icon-only { width: 38px; padding: 0 !important; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 10px; background: var(--green-soft); color: var(--green); border-radius: 999px; font-size: 12px; font-weight: 900; }

.order-summary-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.order-summary-card {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f7fbf8);
  padding: 15px 16px;
  text-align: left;
  color: var(--text);
  box-shadow: 0 12px 28px rgba(11,42,28,.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.order-summary-card span { color: var(--muted); font-size: 12px; font-weight: 900; }
.order-summary-card strong { margin-top: 5px; font-size: 28px; line-height: 1; color: var(--ink); }
.order-summary-card small { margin-top: 7px; color: #7b8c83; font-size: 12px; }
.order-summary-card.active, .order-summary-card:hover { border-color: rgba(15,122,78,.32); background: linear-gradient(135deg, #ffffff, #eef9f2); box-shadow: 0 16px 36px rgba(15,122,78,.10); }
.order-summary-card.duplicate { border-color: #f0d6a3; background: linear-gradient(135deg, #fffefb, #fff8e9); }
.order-summary-card.duplicate.active, .order-summary-card.duplicate:hover { border-color: #db9e2d; background: linear-gradient(135deg, #fffdf7, #fff2d4); box-shadow: 0 16px 36px rgba(154,93,0,.10); }
.order-filter-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 16px;
}
.order-search-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.order-search {
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}
.order-search input { width: 100%; min-height: 40px; border: 0; outline: 0; padding: 0; box-shadow: none !important; }
.order-filter-grid { display: grid; grid-template-columns: repeat(9, minmax(118px, 1fr)); gap: 10px; }
.order-filter-grid input, .order-filter-grid select {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  font-weight: 800;
}
.order-management-table { max-height: calc(100vh - 392px); border-radius: 20px; }
.order-management-table table { min-width: 1320px; border-collapse: separate; border-spacing: 0; }
.order-management-table th {
  background: #eef6f1;
  color: #31443a;
  font-size: 12px;
  letter-spacing: .04em;
}
.order-management-table td { padding: 14px 12px; vertical-align: middle; }
.order-management-table tbody tr { background: #fff; }
.order-management-table tbody tr:hover { background: #fbfdfb; }
.order-code-cell b, .order-person-cell b, .order-main-info b { display: block; color: var(--ink); font-size: 14px; }
.order-duplicate-badge { display: inline-flex; margin-top: 5px; border-radius: 999px; background: #fff0d1; color: #956100; padding: 3px 7px; font-size: 9px; font-style: normal; font-weight: 900; }
.order-duplicate-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; border: 1px solid #ead7ad; border-radius: 17px; background: linear-gradient(135deg, #fffdf7, #fff9eb); padding: 13px 15px; }
.order-duplicate-toolbar > div { display: grid; gap: 3px; }
.order-duplicate-toolbar > div b { color: #513b12; font-size: 14px; }
.order-duplicate-toolbar > div span { color: #88754c; font-size: 11px; }
.order-duplicate-toolbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.order-duplicate-toolbar nav button { border: 1px solid #dedfd8; border-radius: 999px; background: #fff; color: #536158; padding: 7px 10px; font-size: 10px; font-weight: 850; }
.order-duplicate-toolbar nav button.high { border-color: #edbbb1; color: #a23c31; }
.order-duplicate-toolbar nav button.review { border-color: #ead298; color: #8b6416; }
.order-duplicate-toolbar nav button.possible { border-color: #cbded4; color: #3d6855; }
.order-duplicate-toolbar nav button.active { background: #173d2e; border-color: #173d2e; color: #fff; box-shadow: 0 6px 14px rgba(18,61,45,.15); }
.order-duplicate-groups { display: grid; gap: 15px; }
.order-duplicate-group { overflow: hidden; border: 1px solid #dce7e1; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(14,55,38,.055); }
.order-duplicate-group.high { border-color: #e9c2bb; }
.order-duplicate-group.review { border-color: #ead7aa; }
.order-duplicate-group > header { display: grid; grid-template-columns: minmax(190px,.7fr) minmax(260px,1fr) minmax(260px,1.2fr); align-items: center; gap: 16px; border-bottom: 1px solid #e6eee9; background: #f8fbf9; padding: 13px 15px; }
.order-duplicate-group > header > div:first-child { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.order-duplicate-group > header h3 { margin: 0; color: #102c20; font-size: 18px; }
.order-duplicate-group > header small { color: #74867c; font-size: 10px; }
.order-duplicate-group > header p { margin: 0; color: #6c7e74; font-size: 10px; line-height: 1.5; }
.order-duplicate-risk { border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 900; }
.order-duplicate-risk.high { background: #ffebe7; color: #aa3d31; }
.order-duplicate-risk.review { background: #fff2d2; color: #916309; }
.order-duplicate-risk.possible { background: #eaf4ef; color: #356650; }
.order-duplicate-differences { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.order-duplicate-differences b { margin-right: 3px; color: #6d5c37; font-size: 10px; }
.order-duplicate-differences span { border-radius: 6px; background: #fff0c9; color: #8c600a; padding: 4px 6px; font-size: 9px; font-weight: 850; }
.order-duplicate-comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 12px; padding: 14px; }
.order-duplicate-comparison-grid > section { min-width: 0; border: 1px solid #dce7e1; border-radius: 15px; background: #fbfdfc; padding: 12px; transition: border-color .16s ease, box-shadow .16s ease; }
.order-duplicate-comparison-grid > section.selected-keep { border-color: #69ba8f; background: #f4fbf7; box-shadow: 0 0 0 2px rgba(21,132,83,.10); }
.order-duplicate-order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.order-duplicate-order-head label { display: inline-flex; align-items: center; gap: 6px; color: #496358; font-size: 10px; font-weight: 850; cursor: pointer; }
.order-duplicate-order-head em { border-radius: 999px; background: #dbf3e6; color: #08764d; padding: 4px 7px; font-size: 9px; font-style: normal; font-weight: 900; }
.order-duplicate-order-code { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.order-duplicate-order-code b { color: #102c20; font-size: 14px; }
.order-duplicate-order-code span { color: #7a8b82; font-size: 10px; }
.order-duplicate-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.order-duplicate-fields > div { min-width: 0; border: 1px solid #e4ebe7; border-radius: 9px; background: #fff; padding: 7px 8px; }
.order-duplicate-fields > div.different { border-color: #edcc83; background: #fff8e7; }
.order-duplicate-fields span, .order-duplicate-fields b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-duplicate-fields span { color: #829087; font-size: 8px; font-weight: 800; }
.order-duplicate-fields b { margin-top: 3px; color: #283f34; font-size: 11px; }
.order-duplicate-fields > div.different b { color: #835b0a; }
.order-duplicate-business-state { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.order-duplicate-business-state span { border-radius: 999px; background: #edf3f0; color: #52665c; padding: 4px 7px; font-size: 8px; font-weight: 850; }
.order-duplicate-actions { margin-top: 11px; padding-top: 9px; border-top: 1px solid #e7ede9; }
.order-duplicate-actions button { min-height: 31px; border-radius: 8px; padding: 0 9px; font-size: 10px; }
.order-code-cell span, .order-person-cell span, .order-person-cell small, .order-main-info span, .order-download-cell span, .order-download-cell small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}
.order-main-info strong { display: block; margin-top: 5px; color: var(--green-dark); font-size: 13px; }
.order-pill-stack, .order-process-cell, .order-download-cell { display: grid; gap: 7px; align-content: center; }
.order-process-cell > span { color: var(--ink); font-weight: 900; }
.order-process-cell > div { display: flex; gap: 6px; flex-wrap: wrap; }
.order-download-cell b { color: var(--ink); font-size: 18px; }
.order-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
}
.order-pill.green { color: #047044; background: #e5f7ec; border-color: #c9ecd6; }
.order-pill.orange { color: #a45c10; background: #fff4df; border-color: #fed7aa; }
.order-pill.red { color: #b42318; background: #fff1f2; border-color: #fecdd3; }
.order-pill.gray { color: #55645c; background: #eef2ef; border-color: #dfe7e1; }
.order-row-actions { min-width: 218px; flex-wrap: nowrap; }
.order-row-actions button { min-height: 34px; padding: 0 12px; border-radius: 999px; }
.order-deleted-modal { width: min(880px, 94vw); max-height: 88vh; overflow: auto; }
.order-deleted-safe-note { display: flex; align-items: center; gap: 10px; margin: 14px 0; border: 1px solid #cfe6d9; border-radius: 13px; background: #f1faf5; color: #176944; padding: 11px 13px; }
.order-deleted-safe-note span { display: grid; gap: 3px; }
.order-deleted-safe-note small { color: #698076; }
.order-deleted-list { display: grid; gap: 9px; }
.order-deleted-list article { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(220px, 1fr) auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 13px 14px; }
.order-deleted-list article > div { display: grid; gap: 4px; min-width: 0; }
.order-deleted-list article b { color: var(--ink); }
.order-deleted-list article span, .order-deleted-list article small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-deleted-list article button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #9dceb4; border-radius: 10px; background: #edf9f2; color: #08754d; padding: 8px 11px; font-size: 11px; font-weight: 900; }
.order-deleted-list article button:disabled { cursor: wait; opacity: .55; }
.order-deleted-list article button:hover:not(:disabled) { border-color: #5caf84; background: #e1f5ea; }

@media (max-width: 1260px) {
  .order-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .order-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-deleted-list article { grid-template-columns: 1fr; }
  .order-deleted-list article button { width: max-content; }
  .order-duplicate-toolbar { align-items: stretch; flex-direction: column; }
  .order-duplicate-toolbar nav { justify-content: flex-start; }
  .order-duplicate-group > header { grid-template-columns: 1fr; }
  .order-duplicate-comparison-grid { grid-template-columns: 1fr; padding: 9px; }
}
.order-detail-modal, .order-edit-modal { width: min(1180px, 94vw); padding: 26px; }
.order-modal-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-modal-head .eyebrow { display: block; margin: 0 0 8px; letter-spacing: .18em; }
.order-flow-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.order-flow-strip div {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 13px 14px;
}
.order-flow-strip div::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -1px;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: #cbd6cf;
}
.order-flow-strip div.done::before { background: var(--green); }
.order-flow-strip div.warn::before { background: #ef4444; }
.order-flow-strip b { display: block; color: var(--ink); }
.order-flow-strip span { display: block; color: var(--muted); margin-top: 5px; font-size: 12px; }
.order-detail-sections { display: grid; gap: 14px; }
.order-detail-sections section, .order-edit-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f9fcfa);
  padding: 16px;
}
.order-detail-sections h3, .order-edit-section h3 { margin: 0 0 13px; font-size: 16px; color: var(--ink); }
.order-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-item {
  border: 1px solid #e7eee9;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  min-height: 68px;
}
.info-item span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; }
.info-item b { display: block; margin-top: 7px; color: var(--ink); word-break: break-word; }
.order-note-box { margin-top: 14px; }
.order-note-box textarea { min-height: 92px; background: #fff; }
.order-edit-section { margin-bottom: 14px; }
.order-edit-section .form-panel { gap: 14px; }
.order-edit-modal .modal-actions {
  position: sticky;
  bottom: -26px;
  margin: 18px -26px -26px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
}

.form-panel { padding: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.form-panel.no-border { box-shadow: none; border: 0; padding: 0; }
.compact-form .span2 { grid-column: span 2; }
.footer-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.warn-box { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-weight: 700; }
.shooting-day-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--line); }
.shooting-day-card.ok { background: #eefaf3; border-color: #bfe8cf; color: #075333; }
.shooting-day-card.warn { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.shooting-day-card span { display: block; font-size: 12px; color: var(--muted); font-weight: 800; }
.shooting-day-card b { display: block; font-size: 24px; margin-top: 2px; }
.shooting-day-card p { margin: 0; font-size: 13px; max-width: 680px; line-height: 1.6; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-soft); }
.segmented button { border: 0; background: transparent; color: var(--muted); border-radius: 12px; padding: 9px 16px; font-weight: 900; }
.segmented button.active { background: white; color: var(--green); box-shadow: 0 10px 20px rgba(11,42,28,.08); }
.template-panel { padding-bottom: 8px; }
.hint { color: var(--muted); font-size: 13px; }
.mini-lock { float: right; border: 0; border-radius: 999px; padding: 3px 8px; background: var(--panel-soft); color: var(--muted); font-size: 12px; font-weight: 800; }
.mini-lock.locked { background: var(--green); color: white; }

.category-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.category-row button, .option-chip { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 12px; }
.category-row button.active { background: var(--green); color: white; }
.script-grid-new { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.script-card-new { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.script-card-new span { color: var(--green); font-weight: 800; font-size: 12px; }
.script-card-new h3 { margin: 10px 0; font-size: 16px; }
.script-card-new p { color: #41534a; line-height: 1.7; max-height: 120px; overflow: auto; }
.script-group-panel { padding: 16px; }
.script-group-panel .panel-head { margin-bottom: 10px; }
.script-group-panel .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.script-group-list { display: flex; flex-wrap: wrap; gap: 10px; }
.script-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.script-group-chip.active {
  border-color: rgba(15,122,78,.55);
  background: #edf8f0;
  box-shadow: 0 12px 28px rgba(15,122,78,.12);
}
.script-group-chip.filter-chip {
  font-family: inherit;
  color: inherit;
}
.script-group-chip b { color: var(--green-dark); }
.script-group-chip span { color: var(--muted); font-size: 12px; font-weight: 800; }
.script-group-chip button {
  min-height: 30px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 10px;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
}
.script-group-chip button.danger { color: var(--danger); background: #fff8f7; border-color: #f1c8c2; }
.script-import-modal { width: min(920px, 94vw); }
.script-import-textarea {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  resize: vertical;
  outline: none;
}
.script-import-preview {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}
.script-import-preview b { color: var(--green-dark); margin-right: 6px; }
.script-import-preview span { border-radius: 999px; background: var(--green-soft); color: var(--green-dark); padding: 6px 10px; font-size: 12px; font-weight: 800; }

.option-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.option-chip { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; border-radius: 16px; }
.option-chip span { color: var(--green); font-size: 12px; font-weight: 900; background: var(--green-soft); padding: 5px 8px; border-radius: 999px; }
.option-chip small { color: var(--muted); }
.option-chip button { border: 0; background: transparent; color: var(--danger); }
.service-card-editor { margin-top: 4px; padding: 18px; }
.service-card-editor h3 { margin: 0 0 6px; }
.service-card-editor p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.option-chip.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-radius: 20px;
  padding: 18px;
  min-height: 150px;
}
.option-chip.service-card b { font-size: 18px; }
.option-chip.service-card small { line-height: 1.45; }
.service-card-actions { display: flex; gap: 8px; align-self: flex-end; margin-top: auto; }
.service-card-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line) !important;
  background: white !important;
  color: var(--green-dark) !important;
  border-radius: 12px !important;
  padding: 7px 10px !important;
  font-weight: 800;
}
.service-card-actions button:last-child { color: var(--danger) !important; }
.gift-manage-panel, .package-manage-panel { margin-top: 36px; }
.gift-add-row { display: grid; grid-template-columns: minmax(260px, 360px) auto; gap: 10px; align-items: center; margin-bottom: 14px; }
.gift-add-row input { width: 100%; }
.package-add-grid {
  display: grid;
  grid-template-columns: minmax(180px, .85fr) minmax(120px, .55fr) minmax(120px, .55fr) minmax(260px, 1.1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}
.package-add-grid input,
.package-add-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 0 12px;
  outline: none;
}
.package-gift-picker {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.package-gift-picker button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbf9;
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}
.package-gift-picker button.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.package-gift-picker span { color: var(--muted); font-size: 13px; padding: 5px 6px; }
.gift-option-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gift-option-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 14px;
}
.gift-option-card span {
  justify-self: start;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  background: var(--green-soft);
  padding: 5px 8px;
  border-radius: 999px;
}
.gift-option-card b { grid-column: 1; font-size: 16px; }
.package-option-card small {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.gift-option-card button {
  grid-row: 1 / span 3;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: white;
  color: var(--danger);
  border-radius: 12px;
  padding: 7px 10px;
  font-weight: 800;
}
.service-card-modal-form { grid-template-columns: 1fr; }
.inline-add { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: end; }
.inline-add .secondary { min-height: 44px; }
.service-tag-panel { display: grid; gap: 10px; margin-top: 14px; }
.service-tags { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #fbfdf9; }
.service-tags b { display: block; margin-bottom: 8px; }
.service-tags div { display: flex; gap: 8px; flex-wrap: wrap; }
.service-tags span { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: 7px 9px; font-weight: 800; font-size: 13px; }
.service-tags button { border: 0; background: white; color: var(--danger); border-radius: 999px; width: 18px; height: 18px; line-height: 18px; padding: 0; }
.service-tags small { color: var(--muted); }
.batch-input-panel { margin-top: 18px; }
.batch-input-panel .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.batch-lines { display: grid; gap: 10px; }
.batch-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: start;
}
.batch-line > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}
.batch-line textarea {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: white;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
}
.batch-line textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,122,78,.12); }
.batch-line .danger { min-height: 40px; padding: 0 12px; }
.batch-confirm { margin-top: 18px; max-height: 360px; overflow: auto; }
.batch-confirm input { width: 118px; min-height: 34px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; outline: none; }
.batch-confirm input:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(15,122,78,.12); }

.split-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.dispatch-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.dispatch-grid > .photographer-side-panel { display: none; }
.dispatch-stats { margin-top: -4px; }
.dispatch-filter { margin: 0 0 14px; background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 10px 24px rgba(11,42,28,.04); }
.dispatch-filter select { min-width: 150px; }
.dispatch-filter .date-label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.dispatch-filter .date-label input { min-width: 150px; }
.dispatch-pool .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dispatch-table { max-height: calc(100vh - 300px); }
.dispatch-table table { min-width: 1180px; table-layout: auto; }
.dispatch-table th:first-child, .dispatch-table td:first-child { width: 42px; text-align: center; }
.dispatch-table th,
.dispatch-table td { vertical-align: top; }
.dispatch-table td:nth-child(2),
.dispatch-table td:nth-child(4),
.dispatch-table td:nth-child(7),
.dispatch-table td:nth-child(8),
.dispatch-table td:nth-child(9),
.dispatch-table td:nth-child(11) {
  white-space: normal;
  line-height: 1.45;
  min-width: 88px;
  max-width: 160px;
}
.dispatch-table td:nth-child(3) {
  min-width: 92px;
  font-weight: 800;
}
.dispatch-table td:nth-child(5),
.dispatch-table td:nth-child(13) {
  min-width: 104px;
}
.dispatch-table td:nth-child(10) {
  min-width: 78px;
  color: var(--green-dark);
}
.dispatch-table td:nth-child(12),
.dispatch-table td:nth-child(14) {
  min-width: 76px;
}
.mini-btn { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); background: white; color: var(--green); border-radius: 12px; font-weight: 800; }
.dispatch-confirm-modal .table-card { max-height: min(520px, calc(100vh - 260px)); }
.balanced-dispatch-modal { width: min(760px, 94vw); }
.balanced-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 16px; }
.balanced-summary div { border: 1px solid var(--line); background: #f8fbf9; border-radius: 14px; padding: 14px; }
.balanced-summary span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; margin-bottom: 5px; }
.balanced-summary b { display: block; color: var(--text); font-size: 28px; line-height: 1; }
.balanced-summary .ok { background: #eef9f2; border-color: rgba(15,122,78,.22); }
.balanced-summary .warn { background: #fff7ed; border-color: #fed7aa; }
.balanced-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.balanced-toolbar span { color: var(--muted); font-size: 13px; font-weight: 800; }
.balanced-photographer-list { display: grid; gap: 10px; max-height: min(480px, calc(100vh - 330px)); overflow: auto; padding-right: 4px; }
.balanced-photographer-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: center; gap: 14px; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 14px; }
.balanced-photographer-row b { display: block; color: var(--text); margin-bottom: 5px; }
.balanced-photographer-row small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.balanced-photographer-row label { display: grid; grid-template-columns: auto minmax(70px, 1fr) auto; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 900; }
.balanced-photographer-row input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; text-align: center; font-weight: 900; color: var(--text); }
.balanced-photographer-row em { color: var(--text); font-style: normal; }
.dispatch-pool-title { display: flex; align-items: center; gap: 12px; }
.dispatch-pool-title .secondary { flex: 0 0 auto; }
.review-reject-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid #f1c8c2;
  border-radius: 12px;
  background: #fff8f7;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}
.dispatch-confirm-modal table { min-width: 980px; }
.batch-check-modal { width: min(1500px, 96vw); }
.batch-check-toolbar { margin-bottom: 12px; }
.batch-check-toolbar span { color: var(--muted); font-weight: 800; white-space: nowrap; }
.batch-check-list { max-height: min(610px, calc(100vh - 260px)); overflow-y: auto; overflow-x: hidden; display: grid; gap: 10px; padding-right: 4px; }
.batch-check-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 12px; box-shadow: 0 8px 18px rgba(11,42,28,.04); }
.batch-check-card.has-error { background: #fffaf4; border-color: #fed7aa; }
.batch-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.batch-card-head strong { color: var(--text); font-size: 16px; margin-right: auto; }
.batch-card-head em { font-style: normal; color: var(--green-dark); font-weight: 900; }
.batch-check-pick { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.batch-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; align-items: end; }
.batch-card-grid label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.batch-card-grid span { color: var(--muted); font-size: 12px; font-weight: 800; }
.batch-card-grid input, .batch-card-grid select { min-height: 36px; border-radius: 10px; padding: 0 10px; border: 1px solid var(--line); background: #fff; width: 100%; min-width: 0; }
.batch-card-grid .batch-remark { grid-column: span 2; }
.batch-card-warn { margin-top: 9px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 8px 10px; }
.batch-card-warn span { display: inline-flex; margin: 0 12px 4px 0; font-size: 12px; font-weight: 800; }
.warn-row td { background: #fff7ed; color: #9a3412; border-bottom-color: #fed7aa; white-space: normal !important; padding-top: 6px; padding-bottom: 8px; }
.warn-row span { display: inline-flex; margin: 0 10px 4px 0; font-size: 12px; font-weight: 800; }
.warn-cell { color: #9a3412; white-space: normal !important; }
.shooting-progress-table { max-height: calc(100vh - 360px); }
.shooting-progress-table table { min-width: 1320px; }
.shooting-progress-table .urgent-row { background: #fff1f2; }
.shooting-progress-table .urgent-row td { border-bottom-color: #fecdd3; }
.roles-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.role-list-panel { padding: 12px; display: grid; gap: 8px; max-height: calc(100vh - 210px); overflow: auto; }
.role-list-panel button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 15px;
  padding: 13px;
  text-align: left;
  color: var(--text);
}
.role-list-panel button b { display: block; font-size: 15px; margin-bottom: 5px; }
.role-list-panel button span { color: var(--muted); font-size: 12px; }
.role-list-panel button.active { background: var(--green); color: white; box-shadow: 0 12px 24px rgba(15,122,78,.18); }
.role-list-panel button.active span { color: rgba(255,255,255,.75); }
.role-editor-panel { max-height: calc(100vh - 210px); overflow: auto; }
.role-basic { grid-template-columns: 1fr 1fr 180px 1fr; margin-bottom: 18px; }
.permission-groups { display: grid; gap: 14px; }
.permission-group { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fbfdf9; }
.permission-group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.permission-group-head b { font-size: 16px; }
.permission-group-head span { color: var(--muted); margin-left: 8px; font-size: 13px; }
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.permission-grid label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 10px;
}
.permission-grid label.checked { border-color: rgba(15,122,78,.35); background: var(--green-soft); }
.permission-grid label.partial { border-color: rgba(245,158,11,.35); background: #fff7e6; }
.permission-grid label b { display: block; font-size: 13px; margin-bottom: 3px; }
.permission-grid label small { color: var(--muted); font-size: 11px; word-break: break-all; }
.person-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.photographer-side-panel .panel-head.compact { margin-bottom: 4px; }
.photographer-side-panel .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.photographer-scope-row { gap: 12px; align-items: flex-start; }
.photographer-scope-row .person-main { flex: 1; min-width: 0; }
.photographer-scope-row .person-main b,
.photographer-scope-row .person-main span,
.photographer-scope-row .person-main small { display: block; }
.photographer-scope-row .person-main span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.photographer-scope-row .person-main small { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.person-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.small-btn { min-height: 32px; padding: 0 12px; font-size: 12px; }
.mini-badge { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 999px; padding: 4px 9px; background: #e8f7ef; color: var(--green); font-weight: 700; font-size: 11px; }
.mini-badge.off { background: #f3f4f1; color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.review-card { display: grid; grid-template-columns: 160px 1fr; gap: 16px; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.review-card img { width: 160px; height: 110px; object-fit: cover; border-radius: 14px; background: var(--panel-soft); }
.review-card span { color: var(--muted); display: block; margin-top: 4px; }
.review-card p { color: #405149; }
.review-filter-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin: 0 0 14px; box-shadow: 0 10px 26px rgba(11,42,28,.045); }
.review-filter-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.review-filter-main select { min-width: 128px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 38px; background: white; color: var(--text); outline: none; }
.review-search { flex: 1; min-width: 220px; height: 38px; margin: 0; }
.review-view-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #f7faf7; white-space: nowrap; }
.review-view-toggle button { min-height: 34px; border: 0; border-radius: 10px; padding: 0 12px; background: transparent; color: var(--muted); box-shadow: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 900; }
.review-view-toggle button.active { background: white; color: var(--green-dark); box-shadow: 0 8px 18px rgba(11,42,28,.08); }
.review-bulk-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.review-bulk-actions label { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; color: var(--green-dark); }
.review-bulk-actions span { color: var(--muted); font-size: 13px; font-weight: 800; }
.download-center-modal { width: min(920px, 92vw); max-height: 86vh; }
.download-center-head-actions { display: flex; align-items: center; gap: 8px; }
.download-job-list { display: grid; gap: 9px; max-height: min(620px, calc(86vh - 110px)); overflow: auto; padding-right: 4px; }
.download-job { display: grid; grid-template-columns: minmax(220px, 1fr) 220px 48px auto 120px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fbfdfb; }
.download-job.completed { border-color: rgba(15,122,78,.28); background: #f4fbf6; }
.download-job.failed { border-color: #fecaca; background: #fff7f7; }
.download-job-main b { display: block; margin-bottom: 4px; font-size: 15px; }
.download-job-main span { display: block; color: var(--muted); font-size: 12px; }
.download-job-main small { display: block; margin-top: 5px; color: var(--danger); font-size: 12px; }
.download-progress { height: 10px; border-radius: 999px; background: #e7eee9; overflow: hidden; }
.download-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #72c59b); transition: width .25s ease; }
.download-job.active .download-progress { position: relative; background: #e7eee9; }
.download-job.active .download-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(15,122,78,.18) 45%, rgba(15,122,78,.34) 50%, rgba(15,122,78,.18) 55%, transparent 100%);
  transform: translateX(-100%);
  animation: download-progress-flow 1.2s linear infinite;
}
@keyframes download-progress-flow {
  to { transform: translateX(100%); }
}
.download-progress-text { color: var(--muted); font-size: 12px; font-weight: 900; text-align: right; }
.download-job-actions { display: flex; justify-content: flex-end; }
.download-job-actions button { min-height: 34px; padding: 0 12px; border-radius: 10px; }
.review-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.review-card-grid .empty { grid-column: 1 / -1; }
.review-order-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 24px rgba(11,42,28,.045); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.review-order-card:hover { transform: translateY(-2px); border-color: rgba(19,107,69,.28); box-shadow: 0 18px 34px rgba(11,42,28,.08); }
.review-card-cover { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #edf4ee, #f8fbf7); overflow: hidden; }
.review-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-card-cover span { position: absolute; right: 10px; bottom: 10px; border-radius: 999px; padding: 5px 9px; background: rgba(11,42,28,.84); color: white; font-size: 12px; font-weight: 900; }
.review-card-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-weight: 900; }
.review-card-body { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 7px; padding: 13px 13px 10px; }
.review-card-body b { font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-card-body small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-card-body p { margin: 0; color: #405149; font-size: 12px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-card-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf2ee; padding-top: 7px; font-size: 12px; }
.review-card-line span { color: var(--muted); }
.review-card-line strong { color: var(--green-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-card-badges { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; }
.review-card-note { min-height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal !important; }
.review-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 13px 13px; }
.review-card-actions button { min-height: 36px; border-radius: 10px; padding: 0 8px; }
.retouch-card-grid { align-items: stretch; }
.retouch-order-card { position: relative; padding-top: 38px; }
.retouch-order-card.selected { border-color: rgba(15,122,78,.45); box-shadow: 0 18px 34px rgba(15,122,78,.12); }
.retouch-card-check { position: absolute; top: 10px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--green-dark); font-size: 12px; font-weight: 900; box-shadow: 0 8px 18px rgba(11,42,28,.08); }
.retouch-card-check input { width: 15px; height: 15px; }
.retouch-order-card .review-card-cover { border-top: 1px solid #edf2ee; }
.review-order-list { display: grid; gap: 10px; }
.review-order-head { display: grid; grid-template-columns: 130px minmax(190px, 1.1fr) minmax(160px, .9fr) minmax(170px, .8fr) minmax(190px, 1fr) 120px; gap: 12px; align-items: center; padding: 0 16px; color: var(--muted); font-size: 12px; font-weight: 900; }
.review-order-row { display: grid; grid-template-columns: 130px minmax(190px, 1.1fr) minmax(160px, .9fr) minmax(170px, .8fr) minmax(190px, 1fr) 120px; gap: 12px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 8px 18px rgba(11,42,28,.04); }
.retouch-order-head { display: grid; grid-template-columns: 44px 130px minmax(190px, 1.1fr) minmax(170px, .9fr) minmax(190px, 1fr) 150px; gap: 12px; align-items: center; padding: 0 16px; color: var(--muted); font-size: 12px; font-weight: 900; }
.retouch-order-row { display: grid; grid-template-columns: 44px 130px minmax(190px, 1.1fr) minmax(170px, .9fr) minmax(190px, 1fr) 150px; gap: 12px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 8px 18px rgba(11,42,28,.04); }
.review-row-check { display: grid; place-items: center; margin: 0; }
.review-row-check input { width: 17px; height: 17px; }
.review-thumb-stack { position: relative; height: 72px; }
.review-thumb-stack img { position: absolute; top: 0; left: 0; width: 72px; height: 72px; object-fit: cover; border-radius: 16px; border: 3px solid white; box-shadow: 0 8px 18px rgba(11,42,28,.12); background: var(--panel-soft); }
.review-thumb-stack span { position: absolute; right: 0; bottom: 0; border-radius: 999px; padding: 4px 8px; background: var(--green); color: white; font-size: 12px; font-weight: 900; }
.review-order-main b { display: block; font-size: 17px; margin-bottom: 5px; }
.review-order-main span { color: var(--muted); font-size: 13px; }
.review-order-main small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.review-shoot-info { display: grid; gap: 5px; color: #405149; font-size: 13px; }
.review-order-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; min-width: 0; }
.review-note-cell p { margin: 0; color: #405149; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-note-cell small { display: block; margin-top: 5px; color: var(--danger); font-size: 12px; line-height: 1.4; }
.review-row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; justify-content: stretch; }
.review-row-actions .primary { grid-column: 1 / -1; }
.review-row-actions button { min-height: 36px; padding: 0 10px; border-radius: 10px; }
.shooting-progress-table td .badge { margin-left: 6px; }
.review-order-modal { width: min(1180px, 92vw); max-height: 92vh; }
.review-order-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.review-order-info div, .review-order-info p { background: var(--panel-soft); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; margin: 0; }
.review-order-info span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.review-order-info b { font-size: 14px; }
.review-order-info p { grid-column: 1 / -1; color: #405149; }
.review-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-height: min(560px, calc(100vh - 330px)); overflow: auto; padding-right: 4px; }
.review-photo-grid article { border: 1px solid var(--line); background: white; border-radius: 18px; padding: 10px; }
.review-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--panel-soft); cursor: zoom-in; }
.review-photo-grid article div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.review-photo-grid article span { color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.review-select-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; background: #f2f8f4; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.review-select-bar label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 900; color: var(--green-dark); }
.review-select-bar span { color: var(--muted); margin-right: auto; font-size: 13px; font-weight: 800; }
.review-photo-check { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 0 8px !important; color: var(--green-dark) !important; font-weight: 900 !important; }
.review-photo-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
.review-photo-actions button { min-height: 34px; border-radius: 10px; }
.sticky-actions { position: sticky; bottom: -28px; background: #f9faf7; padding-top: 14px; padding-bottom: 6px; }
.image-preview-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.86); display: grid; place-items: center; padding: 28px; }
.image-preview-backdrop img { max-width: min(96vw, 1280px); max-height: 92vh; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,.45); }
.preview-close { position: fixed; right: 24px; top: 22px; background: white; z-index: 71; }
.enhanced-preview {
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 78px 86px 28px;
}
.preview-toolbar {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 72;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: calc(100vw - 32px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  padding: 8px 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}
.preview-toolbar span {
  min-width: 70px;
  text-align: center;
  color: var(--text);
  font-weight: 900;
}
.preview-toolbar button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
}
.preview-toolbar .icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
}
.preview-image-stage {
  display: grid;
  place-items: center;
  width: min(92vw, 1380px);
  height: calc(100vh - 170px);
  overflow: hidden;
}
.preview-image-stage img {
  max-width: min(86vw, 1280px);
  max-height: calc(100vh - 190px);
  transition: transform .18s ease;
  transform-origin: center center;
}
.preview-nav {
  position: fixed;
  top: 50%;
  z-index: 72;
  transform: translateY(-50%);
  width: 52px;
  height: 72px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  color: var(--green-dark);
  font-size: 42px;
  line-height: 1;
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}
.preview-nav:disabled {
  opacity: .28;
  cursor: not-allowed;
}
.preview-prev { left: 24px; }
.preview-next { right: 24px; }
.preview-caption {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 72;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(760px, calc(100vw - 48px));
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  padding: 8px 13px;
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}
.preview-caption b {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.preview-caption span {
  flex: 0 0 auto;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.card-list { display: grid; gap: 12px; margin-bottom: 18px; }
.list-card { padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.list-card h3 { margin: 0 0 6px; }
.list-card p { margin: 0; color: var(--muted); }
.json-preview { background: #0d1d15; color: #b7ffcb; border-radius: 16px; padding: 16px; overflow: auto; max-height: 360px; font-size: 12px; }
.settings-panel p { margin: 10px 0; }

.action-row { display: flex; gap: 10px; align-items: center; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-head h3 { margin: 0; }
.paste-panel textarea { width: 100%; min-height: 118px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; resize: vertical; outline: none; }
.paste-panel textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,122,78,.12); }
.one-col { grid-template-columns: 1fr !important; }
.compact-modal { width: min(760px, 94vw); }
.long-cell { max-width: 420px; white-space: normal !important; line-height: 1.5; }

.chat-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 560px; }
.chat-messages { flex: 1; overflow: auto; padding: 20px; background: linear-gradient(180deg, #f9fcf8, #ffffff); }
.chat-bubble { max-width: 78%; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: white; }
.chat-bubble b { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.chat-bubble p { margin: 0; line-height: 1.7; white-space: pre-wrap; }
.chat-bubble.user { margin-left: auto; background: var(--green); color: white; border-color: var(--green); }
.chat-bubble.user b { color: rgba(255,255,255,.72); }
.chat-bubble.assistant { background: #f4faf5; }
.chat-input { border-top: 1px solid var(--line); padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 12px; background: white; }
.chat-input textarea { min-height: 58px; max-height: 120px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; resize: vertical; outline: none; }

.training-chat-shell {
  display: flex;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  height: calc(100vh - 134px);
  min-height: 590px;
  min-width: 0;
}
.training-chat-side {
  flex: 0 0 260px;
  width: 260px;
  min-width: 0;
  border: 1px solid rgba(15,122,78,.18);
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(183,255,89,.28), transparent 34%),
    linear-gradient(180deg, #f7ffe8 0%, #f6fbf5 46%, #ffffff 100%);
  box-shadow: var(--shadow);
  overflow: auto;
}
.side-role-head { padding: 4px 2px 0; }
.training-chat-side h3 { margin: 14px 0 10px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.training-chat-side p { margin: 0; color: #496257; line-height: 1.75; font-size: 14px; }
.side-tip { margin-top: 18px; padding: 16px; border-radius: 18px; background: #07271a; color: white; box-shadow: 0 18px 36px rgba(7,39,26,.16); }
.side-tip b { display: block; margin-bottom: 8px; }
.side-tip ul { margin: 0; padding-left: 18px; color: rgba(255,255,255,.8); line-height: 1.9; font-size: 13px; }
.side-process { margin-top: 14px; padding: 14px; border: 1px solid rgba(15,122,78,.14); border-radius: 18px; background: rgba(255,255,255,.7); }
.side-process b { display: block; margin-bottom: 8px; color: var(--green-dark); }
.side-process span { color: var(--muted); line-height: 1.7; font-size: 13px; }
.compact-chat {
  flex: 1 1 auto;
  width: auto;
  height: 100%;
  min-height: 0;
  border-radius: 24px;
  min-width: 0;
}
.compact-chat-head {
  flex: 0 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.compact-chat-head h2 { margin: 0 0 3px; font-size: 19px; letter-spacing: -.02em; }
.compact-chat-head p { margin: 0; color: var(--muted); font-size: 13px; max-width: 620px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-chat-head span { color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 900; }
.compact-chat .chat-messages {
  padding: 20px 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(15,122,78,.06), transparent 28%),
    linear-gradient(180deg, #f5f8f2, #fbfdf9);
}
.compact-chat .chat-bubble {
  max-width: min(640px, 72%);
  padding: 11px 13px;
  margin-bottom: 12px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(11,42,28,.05);
}
.compact-chat .chat-bubble.user {
  border-bottom-right-radius: 6px;
  background: #118354;
}
.compact-chat .chat-bubble.assistant {
  border-bottom-left-radius: 6px;
  background: white;
}
.compact-chat .chat-bubble p { line-height: 1.6; font-size: 14px; }
.compact-chat .chat-input {
  grid-template-columns: 1fr 76px;
  padding: 12px 14px;
  background: rgba(255,255,255,.96);
}
.compact-chat .chat-input textarea {
  min-height: 48px;
  max-height: 96px;
  border-radius: 16px;
  padding: 12px 14px;
}
.compact-chat .chat-input .primary {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 14px;
}

.training-room-head { display: flex; justify-content: space-between; align-items: center; margin: 0 auto 14px; width: min(1540px, 100%); }
.training-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 22px;
  align-items: center;
  border-radius: 28px;
  padding: 26px 30px;
  margin-bottom: 22px;
  background:
    radial-gradient(circle at 85% 20%, rgba(183,255,89,.32), transparent 28%),
    linear-gradient(135deg, #092519 0%, #0f7a4e 58%, #eaf8ef 100%);
  color: white;
  box-shadow: 0 22px 48px rgba(11,42,28,.16);
}
.training-hero span { color: rgba(255,255,255,.74); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.training-hero h2 { margin: 8px 0 10px; font-size: 28px; }
.training-hero p { max-width: 760px; margin: 0; line-height: 1.8; color: rgba(255,255,255,.82); }
.training-hero-metrics {
  min-height: 130px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
}
.training-hero-metrics b { display: block; font-size: 48px; line-height: 1; }
.training-hero-metrics span { letter-spacing: 0; font-size: 14px; }
.role-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.role-card {
  min-height: 260px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,247,.96)),
    radial-gradient(circle at 100% 0, rgba(15,122,78,.16), transparent 32%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.role-card:hover { transform: translateY(-4px); border-color: rgba(15,122,78,.45); box-shadow: 0 22px 44px rgba(11,42,28,.13); }
.role-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.difficulty { border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; }
.difficulty.easy { background: #edf8f0; color: #15834f; }
.difficulty.normal { background: #eef4ff; color: #315eaf; }
.difficulty.hard { background: #fff0ea; color: #c6532f; }
.role-card small { color: #9cac9f; font-weight: 900; }
.role-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.35; color: var(--text); }
.role-card p { margin: 0; color: var(--muted); line-height: 1.7; min-height: 72px; }
.role-focus {
  margin-top: 16px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15,122,78,.06);
  color: #314339;
}
.role-focus span { display: block; color: var(--green); font-size: 12px; font-weight: 900; margin-bottom: 6px; }
.role-focus b { font-size: 13px; line-height: 1.5; }
.role-card-action {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--green);
  font-weight: 900;
}

.exam-paper { display: grid; gap: 14px; margin-bottom: 74px; }
.exam-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.exam-select-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  text-align: left;
  border: 1px solid rgba(15,122,78,.16);
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f7fbf6);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.exam-select-card:before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: rgba(15,122,78,.12);
}
.exam-select-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(11,42,28,.14); }
.exam-select-card div { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.exam-select-card span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; background: var(--green); color: white; font-size: 22px; font-weight: 900; }
.exam-select-card small { color: var(--muted); font-weight: 800; }
.exam-select-card h3 { margin: 20px 0 10px; font-size: 21px; position: relative; z-index: 1; }
.exam-select-card p { margin: 0; color: var(--muted); line-height: 1.7; position: relative; z-index: 1; }
.exam-select-card b { margin-top: auto; display: flex; justify-content: flex-end; align-items: center; gap: 6px; color: var(--green); position: relative; z-index: 1; }
.level-b:before { background: rgba(49,94,175,.14); }
.level-c:before { background: rgba(198,83,47,.14); }
.exam-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 72px; }
.exam-side { position: sticky; top: 0; display: grid; gap: 14px; }
.exam-score-card, .question-nav, .exam-hint { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.exam-score-card span { color: var(--muted); display: block; margin-bottom: 8px; }
.exam-score-card b { font-size: 34px; }
.progress { height: 8px; border-radius: 999px; background: #e5eee8; overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .2s; }
.question-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.question-nav a { height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f3f7f2; color: var(--muted); text-decoration: none; font-weight: 900; }
.question-nav a.done { background: var(--green); color: white; }
.exam-hint { color: var(--muted); line-height: 1.7; font-size: 13px; }
.question-card { scroll-margin-top: 16px; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.question-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 12px; }
.question-head h3 { margin: 0; font-size: 17px; line-height: 1.55; }
.question-head span { flex: 0 0 auto; color: var(--green); background: var(--green-soft); padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.question-card p { color: var(--muted); }
.question-card textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px; resize: vertical; }
.option-line { display: flex; flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; padding: 8px 0; }
.option-line input { min-height: auto !important; width: 16px; height: 16px; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(244,247,242,.92); backdrop-filter: blur(8px); padding: 14px 0; border-top: 1px solid var(--line); }
.exam-result-card { position: sticky; bottom: 76px; background: #0b2a1c; color: white; border-radius: 18px; padding: 16px 18px; box-shadow: 0 16px 36px rgba(11,42,28,.22); margin: 14px 0; }
.exam-result-card b { display: block; font-size: 18px; margin-bottom: 4px; }
.exam-result-card span { color: #b7ffcb; font-weight: 900; }
.exam-result-card p { margin: 8px 0 0; color: rgba(255,255,255,.78); }
.exam-history { max-height: 360px; }

.scope-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; min-height: 520px; }
.scope-list { border: 1px solid var(--line); border-radius: 18px; overflow: auto; padding: 8px; background: var(--panel-soft); }
.scope-list button { display: block; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 14px; padding: 12px; margin: 4px 0; }
.scope-list button.active { background: var(--green); color: white; }
.scope-list b, .scope-list span { display: block; }
.scope-list span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.scope-list button.active span { color: rgba(255,255,255,.75); }
.scope-editor { border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.scope-single-modal .scope-switch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.scope-single-modal .switch-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); background: var(--panel-soft); border-radius: 16px; padding: 14px; cursor: pointer; }
.scope-single-modal .switch-card input { margin-top: 4px; }
.scope-single-modal .switch-card b,
.scope-single-modal .switch-card small { display: block; }
.scope-single-modal .switch-card small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.scope-single-modal .scope-editor { background: white; }
.scope-single-modal .scope-editor h3 { margin: 4px 0 4px; }
.scope-single-modal .scope-editor p { margin: 0; color: var(--muted); font-size: 13px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 18px; }
.check-grid label { display: flex; gap: 8px; align-items: center; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.check-grid label small { margin-left: auto; color: #b45309; background: #fff7ed; border-radius: 999px; padding: 2px 7px; font-size: 11px; white-space: nowrap; }

.user-power-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
}
.user-power-box > div { display: grid; gap: 4px; }
.user-power-box span { color: var(--muted); font-size: 12px; }
.user-power-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: auto;
  padding: 0;
  font-weight: 700;
}
.user-power-box input { width: 16px; height: 16px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(7,21,15,.42); display: grid; place-items: center; padding: 28px; }
.modal { width: min(1120px, 96vw); max-height: 92vh; overflow: auto; padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.modal-head h2 { margin: 0 0 4px; }
.modal-head p { margin: 0; color: var(--muted); }
.modal-head button { border: 0; background: var(--panel-soft); border-radius: 12px; width: 38px; height: 38px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.refund-inline { display: block; margin-top: 4px; color: #b4651f; font-size: 11px; font-weight: 800; }
.dispatch-refund-note { display: block; width: max-content; max-width: 150px; margin-top: 5px; border-radius: 999px; background: #fff4e2; color: #a85a10; padding: 4px 8px; font-size: 11px; font-weight: 900; line-height: 1.35; white-space: normal; }
.refund-panel { border: 1px solid #e1e8e3; background: #fbfdf9; border-radius: 14px; padding: 14px; margin-top: 10px; }
.refund-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.refund-panel-head b { display: block; color: #18251d; }
.refund-panel-head span { display: block; margin-top: 4px; color: #728278; font-size: 12px; }
.switch-line { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; white-space: nowrap; }
.switch-line input { width: auto !important; }
.refund-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 12px; }
.refund-paid { align-self: end; height: 42px; }
.brand-check-modal { width: min(1180px, 92vw); }
.brand-check-layout { display: grid; grid-template-columns: 390px 1fr; gap: 18px; align-items: start; }
.brand-check-input, .brand-check-result { background: #fff; border: 1px solid #e3e9e4; border-radius: 16px; padding: 16px; }
.brand-check-input textarea { min-height: 250px; }
.brand-check-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.brand-check-stats div { border: 1px solid #e5ebe6; border-radius: 14px; padding: 12px; background: #f8fbf8; }
.brand-check-stats div.warn { border-color: #f2cf9a; background: #fff8ed; }
.brand-check-stats span, .brand-check-stats small { display: block; color: #788980; font-size: 12px; }
.brand-check-stats b { display: block; margin: 5px 0; font-size: 24px; color: #16251d; }
.brand-check-group { border-top: 1px solid #edf2ee; padding-top: 14px; margin-top: 14px; }
.brand-check-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.brand-check-group-head b { font-size: 15px; }
.brand-check-group-head span { color: #75867d; font-size: 12px; margin-right: auto; }
.brand-check-group.danger .brand-check-group-head b { color: #a64235; }
.brand-check-list { display: grid; gap: 8px; max-height: 280px; overflow: auto; }
.brand-check-list article { border: 1px solid #edf2ee; border-radius: 12px; padding: 10px 12px; background: #fff; }
.brand-check-list article b { display: block; font-size: 14px; }
.brand-check-list article span, .brand-check-list article small { display: block; margin-top: 4px; color: #708078; font-size: 12px; line-height: 1.55; }

.state-card, .empty-state, .error-box, .success-box {
  min-height: 90px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted);
}
.error-box { background: #fff0ee; color: var(--danger); min-height: auto; padding: 12px; border-radius: 14px; margin: 12px 0; justify-content: flex-start; }
.success-box { background: var(--green-soft); color: var(--green); min-height: auto; padding: 12px; border-radius: 14px; justify-content: flex-start; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 60; background: var(--green-dark); color: white; padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow); }
.notice-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(1, 23, 14, .22); display: flex; justify-content: flex-end; }
.notice-panel { width: min(460px, 92vw); height: 100%; background: #fbfdf9; border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(11,42,28,.18); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.notice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.notice-head b { display: block; font-size: 22px; color: var(--ink); }
.notice-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.notice-actions { display: flex; gap: 10px; }
.notice-list { overflow: auto; display: grid; gap: 10px; padding-right: 4px; }
.notice-item { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 10px 22px rgba(11,42,28,.05); }
.notice-item.urgent { border-color: #fecaca; background: linear-gradient(135deg, #fffafa, #fff7ed); }
.notice-item b { color: var(--ink); font-size: 15px; }
.notice-item span, .notice-item p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.notice-item p { margin: 8px 0 0; }

.permission-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(169, 255, 95, .16), transparent 28%),
    linear-gradient(135deg, #ffffff, #f4fbf4);
  box-shadow: var(--shadow);
}
.permission-strip h3 { margin: 4px 0; font-size: 24px; }
.permission-strip p { margin: 0; color: var(--muted); }
.permission-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.permission-tags span {
  border: 1px solid rgba(15,122,78,.18);
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}
.workspace-section { margin-top: 22px; }
.workspace-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 12px;
}
.workspace-section-head h3 { margin: 0; font-size: 18px; }
.workspace-section-head span { color: var(--muted); font-size: 13px; }
.function-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.function-card {
  position: relative;
  min-height: 128px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 28px rgba(11,42,28,.06);
  display: grid;
  gap: 8px;
  align-content: start;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.function-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15,122,78,.28);
  box-shadow: 0 18px 34px rgba(11,42,28,.12);
}
.function-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
}
.function-card-icon svg { width: 19px; height: 19px; }
.function-card strong { font-size: 17px; }
.function-card small { color: var(--muted); line-height: 1.55; padding-right: 22px; }
.function-card > svg {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: var(--muted);
}
.compact-stats { margin-bottom: 16px; }
.exam-toolbar { margin: 12px 0 16px; }
.exam-toolbar select { min-width: 180px; }
.exam-admin-table small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.small-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 900;
  color: var(--green);
}
.exam-detail-modal { width: min(1180px, 96vw); }
.exam-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.exam-comment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.exam-comment-grid section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
  padding: 14px;
}
.exam-comment-grid h3 { margin: 0 0 8px; font-size: 15px; }
.exam-comment-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}
.answer-table { max-height: 360px; overflow: auto; }

.photographer-detail-redesign {
  width: min(1180px, 94vw);
  max-height: 90vh;
  padding: 22px 24px 18px;
  background: #f8fbf9;
}
.photographer-detail-redesign .modal-head {
  position: sticky;
  top: -22px;
  z-index: 4;
  margin: -22px -24px 18px;
  padding: 20px 24px 16px;
  background: rgba(248,251,249,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.photographer-detail-redesign .modal-head h2 {
  margin: 0 0 5px;
  font-size: 24px;
}
.photographer-detail-redesign .modal-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.shooting-detail-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(4, minmax(120px, .65fr));
  gap: 12px;
  margin-bottom: 14px;
}
.shooting-detail-summary > div {
  border: 1px solid rgba(15,122,78,.12);
  border-radius: 18px;
  background: white;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(11,42,28,.04);
}
.shooting-detail-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 7px;
}
.shooting-detail-summary b,
.shooting-detail-summary strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}
.shooting-summary-main {
  background: linear-gradient(135deg, #ffffff, #eef8f1) !important;
}
.shooting-summary-main strong {
  font-size: 20px;
  word-break: break-word;
}
.shooting-summary-main p,
.shooting-summary-note p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 800;
}
.shooting-summary-note {
  grid-column: 1 / -1;
  padding: 13px 16px !important;
}
.danger-text { color: var(--danger) !important; }
.photographer-detail-redesign .upload-manage-head {
  position: sticky;
  top: 62px;
  z-index: 3;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(11,42,28,.06);
}
.photographer-detail-redesign .upload-manage-head b {
  font-size: 18px;
}
.photographer-detail-redesign .upload-manage-actions .secondary {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 900;
}
.photographer-detail-redesign .upload-grid.selectable {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 14px;
  margin-top: 0;
  padding-bottom: 8px;
}
.photographer-detail-redesign .upload-card.selectable {
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  gap: 0;
  background: white;
  box-shadow: 0 10px 24px rgba(11,42,28,.05);
}
.photographer-detail-redesign .upload-card.selectable:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(11,42,28,.10);
}
.photographer-detail-redesign .upload-card.selectable.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15,122,78,.12), 0 16px 34px rgba(11,42,28,.10);
}
.photographer-detail-redesign .upload-select-check {
  left: auto;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.photographer-detail-redesign .upload-select-check span {
  display: none;
}
.photographer-detail-redesign .upload-select-check input {
  width: 17px;
  height: 17px;
}
.photographer-detail-redesign .upload-preview-button {
  width: 100%;
  display: block;
}
.photographer-detail-redesign .upload-preview-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}
.photographer-detail-redesign .upload-card-footer {
  padding: 10px 11px 12px;
  background: white;
}
.photographer-detail-redesign .upload-card-footer span {
  justify-self: start;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 4px 8px;
  font-size: 12px;
}
.photographer-detail-redesign .upload-card-footer small {
  margin-top: 2px;
  color: #355244;
  font-weight: 900;
}
.photographer-detail-redesign .modal-actions {
  position: sticky;
  bottom: -18px;
  z-index: 5;
  margin: 16px -24px -18px;
  padding: 14px 24px 18px;
  background: rgba(248,251,249,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

@media (max-width: 1280px) {
  .stat-grid.six { grid-template-columns: repeat(3, 1fr); }
  .stat-grid.review-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-grid, .admin-grid, .option-grid, .function-card-grid { grid-template-columns: repeat(2, 1fr); }
  .form-panel { grid-template-columns: repeat(2, 1fr); }
  .role-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .training-chat-shell { gap: 14px; }
  .training-chat-side { flex-basis: 230px; width: 230px; padding: 15px; }
  .compact-chat .chat-bubble { max-width: 78%; }
  .exam-card-grid { grid-template-columns: 1fr; }
  .exam-layout { grid-template-columns: 1fr; }
  .exam-side { position: static; }
  .permission-strip { align-items: flex-start; flex-direction: column; }
  .permission-tags { justify-content: flex-start; }
  .exam-score-grid, .exam-comment-grid { grid-template-columns: 1fr; }
  .review-order-list { overflow-x: auto; padding-bottom: 4px; }
  .review-order-head, .review-order-row { min-width: 1080px; }
  .retouch-order-head, .retouch-order-row { min-width: 1120px; }
  .review-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-filter-bar { align-items: stretch; flex-direction: column; }
  .review-view-toggle { align-self: flex-end; }
  .review-bulk-actions { justify-content: flex-end; }
  .download-job { grid-template-columns: minmax(220px, 1fr) 180px 44px auto 110px; }
  .shooting-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shooting-summary-main, .shooting-summary-note { grid-column: 1 / -1; }
}

@media (min-width: 1281px) and (max-width: 1600px) {
  .review-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .review-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-filter-main { flex-wrap: wrap; }
  .review-search { flex-basis: 100%; }
  .photographer-detail-redesign .upload-manage-head { align-items: flex-start; flex-direction: column; }
  .photographer-detail-redesign .upload-grid.selectable { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.weather-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  padding: 30px;
  border: 1px solid rgba(112, 226, 255, .2);
  border-radius: 8px;
  color: #f7fffc;
  background:
    linear-gradient(135deg, rgba(6, 18, 28, .98), rgba(9, 50, 66, .96) 52%, rgba(13, 80, 73, .94)),
    radial-gradient(circle at 86% 16%, rgba(94, 234, 212, .28), transparent 34%),
    radial-gradient(circle at 18% 84%, rgba(59, 130, 246, .18), transparent 32%);
  box-shadow: 0 24px 56px rgba(9, 30, 44, .22);
  position: relative;
  overflow: hidden;
}

.weather-command::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.75), transparent 72%);
}

.weather-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: #a6f0dc;
  font-size: 13px;
  font-weight: 800;
}

.weather-command h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: 0;
}

.weather-command p {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(247, 255, 252, .72);
  line-height: 1.7;
}

.weather-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.weather-signal-row span {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid rgba(166, 240, 220, .24);
  border-radius: 8px;
  color: #effff9;
  background: rgba(255, 255, 255, .09);
  font-weight: 800;
}

.weather-orbit {
  display: grid;
  justify-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.weather-risk-ring {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, .1), 0 0 28px rgba(94, 234, 212, .14);
}

.weather-risk-ring > div {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 999px;
  background: rgba(5, 21, 30, .9);
  border: 1px solid rgba(255, 255, 255, .12);
}

.weather-risk-ring strong {
  font-size: 28px;
  line-height: 1;
}

.weather-risk-ring span,
.weather-orbit-stats span {
  color: rgba(247, 255, 252, .7);
  font-size: 12px;
}

.weather-orbit-stats {
  display: flex;
  gap: 12px;
}

.weather-orbit-stats b {
  margin-right: 4px;
  color: #a7f3d0;
}

.weather-command-controls {
  display: grid;
  gap: 10px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.weather-command-controls select,
.weather-refresh {
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  color: #f7fffc;
  background: rgba(255, 255, 255, .1);
  font-weight: 800;
}

.weather-command-controls select {
  min-width: 128px;
  padding: 0 12px;
}

.weather-command-controls option {
  color: #102027;
}

.weather-refresh {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  cursor: pointer;
}

.weather-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.weather-metric {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(20, 53, 60, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(12, 44, 54, .08);
  position: relative;
  overflow: hidden;
}

.weather-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(20, 184, 166, .5);
}

.weather-metric span,
.weather-metric small {
  display: block;
  color: var(--muted);
}

.weather-metric span {
  font-size: 13px;
  font-weight: 800;
}

.weather-metric strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 30px;
  line-height: 1;
}

.weather-metric small {
  line-height: 1.45;
}

.weather-metric.primary { border-color: rgba(36, 102, 137, .22); background: #f7fbff; }
.weather-metric.dark { border-color: rgba(15, 23, 42, .16); background: #f7fafb; }
.weather-metric.danger { border-color: rgba(216, 62, 62, .24); background: #fff8f8; }
.weather-metric.warn { border-color: rgba(210, 138, 28, .26); background: #fffaf0; }
.weather-metric.good { border-color: rgba(16, 135, 84, .2); background: #f5fcf8; }
.weather-metric.danger::before { background: #ef4444; }
.weather-metric.warn::before { background: #f59e0b; }
.weather-metric.good::before { background: #10b981; }
.weather-metric.dark::before { background: #0f172a; }

.weather-config-warning {
  margin: 0 0 16px;
}

.weather-priority-panel {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(25, 78, 92, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.weather-intel-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 16px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.weather-intel-column {
  padding: 18px;
  border: 1px solid rgba(20, 53, 60, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(12, 44, 54, .08);
}

.weather-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.weather-section-head.compact {
  margin-bottom: 12px;
}

.weather-section-head h2,
.weather-section-head h3 {
  margin: 0 0 4px;
}

.weather-section-head p {
  margin: 0;
  color: var(--muted);
}

.weather-priority-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(20, 53, 60, .1);
  border-radius: 8px;
  background: #fbfdfc;
}

.weather-priority-card span,
.weather-priority-card small {
  display: block;
  color: var(--muted);
}

.weather-priority-card b {
  display: block;
  margin: 0 0 4px;
  font-size: 20px;
}

.weather-priority-list,
.weather-urgent-list {
  display: grid;
  gap: 10px;
}

.weather-rank {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0f766e;
  background: #e6fffb;
  font-weight: 900;
}

.weather-urgent-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(20, 53, 60, .08);
  border-radius: 8px;
  background: #fbfdfc;
}

.weather-urgent-item.urgent {
  border-color: rgba(239, 68, 68, .24);
  background: #fff7f7;
}

.weather-urgent-item.warning {
  border-color: rgba(245, 158, 11, .24);
  background: #fffbeb;
}

.weather-urgent-item b,
.weather-urgent-item small {
  display: block;
}

.weather-urgent-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.weather-priority-card.danger {
  border-color: rgba(216, 62, 62, .3);
  background: #fff7f7;
}

.weather-priority-card.warn {
  border-color: rgba(210, 138, 28, .32);
  background: #fff9ec;
}

.weather-priority-card.good {
  border-color: rgba(16, 135, 84, .22);
  background: #f5fcf8;
}

.weather-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.weather-city-card {
  overflow: hidden;
  border: 1px solid rgba(26, 71, 82, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(12, 44, 54, .08);
}

.weather-city-card.good {
  border-top: 3px solid #1d9a63;
}

.weather-city-card.warn {
  border-top: 3px solid #c78318;
  background: #fffdf8;
}

.weather-city-card.danger {
  border-top: 3px solid #d83e3e;
  background: #fff9f9;
}

.weather-city-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(20, 53, 60, .08);
}

.weather-city-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.weather-city-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.weather-city-score {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.weather-city-score small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.weather-days-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(64px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding: 14px 18px 16px;
}

.weather-day {
  min-width: 64px;
  border: 1px solid rgba(26, 71, 82, .1);
  border-radius: 8px;
  padding: 8px 6px;
  background: linear-gradient(180deg, #ffffff, #f6fbfa);
  text-align: center;
}

.weather-day b,
.weather-day span,
.weather-day small {
  display: block;
}

.weather-day b {
  font-size: 12px;
}

.weather-day span {
  min-height: 20px;
  margin: 5px 0;
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
}

.weather-day small {
  color: var(--muted);
  font-size: 11px;
}

.weather-day.good {
  background: #f1fbf6;
  border-color: rgba(16, 135, 84, .18);
}

.weather-day.warn {
  background: #fff8e8;
  border-color: rgba(210, 138, 28, .24);
}

.weather-day.danger {
  background: #fff0f0;
  border-color: rgba(216, 62, 62, .26);
}

.weather-risk-mini {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.weather-risk-mini > div {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 8px;
  align-items: start;
}

.weather-risk-mini b {
  font-size: 13px;
}

.weather-risk-mini small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.5;
}

.risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  margin-top: 6px;
  background: #8aa39b;
}

.risk-dot.urgent {
  background: #d83e3e;
}

.risk-dot.warning {
  background: #d28a1c;
}

.weather-risk-table .panel-head {
  padding: 16px 18px 10px;
}

.weather-risk-table td span,
.weather-risk-table td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 760px) {
  .weather-command,
  .weather-overview-grid,
  .weather-intel-panel {
    grid-template-columns: 1fr;
  }

  .weather-command-controls {
    grid-template-columns: 1fr;
  }

  .weather-city-grid {
    grid-template-columns: 1fr;
  }

  .weather-days-strip {
    grid-template-columns: repeat(7, 64px);
  }
}

.production-batch-history-modal {
  width: min(900px, 94vw);
  max-height: 88vh;
  overflow: auto;
}

.production-batch-safety-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid #f0deb0;
  border-radius: 12px;
  background: #fffaf0;
  color: #916719;
  padding: 10px 12px;
}

.production-batch-safety-note span {
  display: grid;
  gap: 2px;
}

.production-batch-safety-note small {
  color: #8a7b5a;
}

.production-batch-history-list {
  display: grid;
  gap: 9px;
}

.production-batch-history-list article {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) 120px minmax(180px, .9fr) 128px;
  align-items: center;
  gap: 14px;
  border: 1px solid #dce9e2;
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
}

.production-batch-history-list article.undone {
  background: #f7f9f8;
  opacity: .78;
}

.production-batch-history-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.production-batch-history-main > div,
.production-batch-history-count {
  display: grid;
  gap: 3px;
}

.production-batch-history-main small,
.production-batch-history-count span,
.production-batch-history-count small {
  color: #75877e;
  font-size: 10px;
}

.production-batch-source {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 900;
}

.production-batch-source.import {
  background: #e8f7ef;
  color: #08794f;
}

.production-batch-source.selection {
  background: #edf3ff;
  color: #3b61a4;
}

.production-batch-history-count b {
  color: #0c3325;
  font-size: 19px;
}

.production-batch-history-list code {
  overflow: hidden;
  color: #60756a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-batch-history-action {
  text-align: right;
}

.production-batch-history-action button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e4b8ae;
  border-radius: 9px;
  background: #fff8f6;
  color: #a13d30;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
}

.production-batch-history-action button:hover:not(:disabled) {
  border-color: #cf8272;
  background: #fff0ec;
}

.production-batch-history-action button:disabled {
  cursor: wait;
  opacity: .55;
}

.production-batch-undone,
.production-batch-unavailable {
  color: #718178;
  font-size: 10px;
  line-height: 1.45;
}

.production-batch-undone {
  color: #9a574b;
  font-weight: 800;
}

.production-batch-history-list .production-empty span {
  color: #718178;
  font-size: 11px;
}

@media (max-width: 760px) {
  .production-batch-history-list article {
    grid-template-columns: 1fr auto;
  }

  .production-batch-history-list code {
    grid-column: 1;
  }

  .production-batch-history-action {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

/* Order production progress */
.production-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.production-page-head>div>span{color:#0b8a5b;font-size:11px;font-weight:900;letter-spacing:.14em}.production-page-head h1{margin:5px 0 4px;color:#0a251b;font-size:32px;line-height:1.1}.production-page-head p{margin:0;color:#6b7d74;font-size:13px}.production-page-head>button{display:inline-flex;align-items:center;gap:7px}.production-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:15px}.production-summary-grid button{border:1px solid #d9e7df;border-radius:18px;background:#fff;padding:15px;text-align:left;box-shadow:0 9px 22px rgba(8,49,34,.05);transition:.18s}.production-summary-grid button:hover,.production-summary-grid button.active{border-color:#68bd91;background:linear-gradient(145deg,#eaf8f0,#fff);transform:translateY(-1px)}.production-summary-grid span,.production-summary-grid small{display:block;color:#778a80;font-size:11px;font-weight:800}.production-summary-grid b{display:block;margin:5px 0 2px;color:#0b2b1f;font-size:25px}.production-filter-panel{display:grid;grid-template-columns:minmax(260px,1.6fr) repeat(4,minmax(130px,.7fr)) auto;gap:9px;border:1px solid #d9e7df;border-radius:20px;background:#fff;padding:12px;margin-bottom:12px}.production-filter-panel select,.production-filter-panel>button{min-height:42px;border:1px solid #d5e2db;border-radius:12px;background:#fbfdfc;padding:0 11px;color:#254437;font-weight:750}.production-search{display:flex;align-items:center;gap:8px;border:1px solid #cfe0d7;border-radius:12px;background:#f8fbf9;padding:0 5px 0 11px;color:#789087}.production-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#17382b}.production-search button{border:0;border-radius:9px;background:#0a8257;color:#fff;padding:8px 13px;font-weight:850}.production-batch-bar{display:flex;align-items:center;gap:10px;overflow:auto;border:1px solid #b9ddca;border-radius:16px;background:#edf8f2;padding:10px 12px;margin-bottom:12px}.production-batch-bar>b{flex:0 0 auto;color:#0b6344}.production-batch-bar span{display:flex;gap:4px;flex:0 0 auto}.production-batch-bar button{border:1px solid #95cdae;border-radius:9px;background:#fff;color:#08784f;padding:7px 9px;font-size:11px;font-weight:850}.production-batch-bar button.muted{border-color:#d8e3dd;color:#6b7d74}.production-table-card{overflow:auto;border:1px solid #d9e7df;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(8,49,34,.055)}.production-table-card table{width:100%;min-width:1420px;border-collapse:collapse}.production-table-card th{position:sticky;top:0;z-index:1;background:#f0f7f3;color:#3f5b4e;padding:11px 9px;text-align:left;font-size:11px;font-weight:900;white-space:nowrap}.production-table-card td{border-top:1px solid #edf2ef;padding:11px 9px;vertical-align:middle}.production-table-card tbody tr:hover{background:#fbfdfc}.production-order-cell b,.production-info-cell b,.production-update-cell b{display:block;color:#102f23;font-size:13px}.production-order-cell span,.production-order-cell small,.production-info-cell span,.production-info-cell small,.production-update-cell span{display:block;margin-top:3px;color:#778a80;font-size:10px}.production-stage-toggle{display:flex;align-items:center;gap:6px;min-width:88px;border:0;background:transparent;padding:5px 2px;text-align:left}.production-stage-toggle i,.production-shipping-state i{display:grid;place-items:center;flex:0 0 auto;width:21px;height:21px;border:1px solid #c8d8d0;border-radius:7px;background:#fff;color:#fff;font-style:normal}.production-stage-toggle span,.production-shipping-state span{color:#71847a;font-size:11px;font-weight:850;white-space:nowrap}.production-stage-toggle.done i,.production-shipping-state.done i{border-color:#0a8b5c;background:#0a8b5c}.production-stage-toggle.done span,.production-shipping-state.done span{color:#08784f}.production-stage-toggle.editable{cursor:pointer}.production-stage-toggle.editable:hover{border-radius:10px;background:#eef8f3}.production-stage-toggle.readonly{cursor:not-allowed;opacity:.72}.production-stage-toggle small{border-radius:999px;background:#e9f3ee;color:#557066;padding:2px 5px;font-size:8px;font-weight:900}.production-shipping-state{display:grid;grid-template-columns:22px auto;align-items:center;gap:3px 6px;min-width:90px}.production-shipping-state small{grid-column:2;color:#84948c;font-size:9px}.production-log-btn{display:inline-flex;align-items:center;gap:5px;border:1px solid #d2e1d9;border-radius:10px;background:#fff;color:#3f5d4f;padding:7px 9px;font-size:11px;font-weight:850}.production-loading,.production-empty{display:flex;min-height:220px;align-items:center;justify-content:center;gap:9px;color:#71847a;font-weight:800}.production-empty{flex-direction:column}.production-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px;color:#64786e;font-size:12px}.production-pagination select,.production-pagination button{height:34px;border:1px solid #d2dfd8;border-radius:9px;background:#fff;padding:0 10px;color:#3f574b}.production-pagination button:disabled{opacity:.45}.production-log-modal{width:min(620px,92vw);max-height:82vh;overflow:auto}.production-log-list{display:grid;gap:9px}.production-log-list article{display:flex;align-items:flex-start;gap:10px;border:1px solid #dce8e1;border-radius:14px;background:#fafdfb;padding:11px}.production-log-list article>i{display:grid;place-items:center;flex:0 0 auto;width:25px;height:25px;border-radius:50%;font-style:normal;font-weight:900}.production-log-list article>i.done{background:#e1f5ea;color:#08784f}.production-log-list article>i.cancel{background:#fff0ed;color:#b24735}.production-log-list article b,.production-log-list article span{display:block}.production-log-list article b{color:#17372b;font-size:13px}.production-log-list article span{margin-top:3px;color:#7d8e86;font-size:10px}.production-log-list article p{margin:7px 0 0;border-radius:9px;background:#fff3df;color:#805d1c;padding:7px 9px;font-size:11px}
@media(max-width:1350px){.production-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.production-filter-panel{grid-template-columns:repeat(3,minmax(0,1fr))}.production-search{grid-column:span 2}}

/* 订单进度：结营交付预警与双层筛选 */
.production-overdue-summary{display:grid;grid-template-columns:minmax(230px,.75fr) repeat(2,minmax(260px,1fr));gap:12px;margin:-2px 0 15px;}
.production-overdue-intro,.production-overdue-summary>button{min-height:76px;border:1px solid #e0e7e3;border-radius:18px;padding:13px 15px;}
.production-overdue-intro{display:flex;align-items:center;gap:11px;background:linear-gradient(145deg,#f7faf8,#fff);}
.production-overdue-intro>i{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:13px;background:#fff4d8;color:#9a6500;font-style:normal;}
.production-overdue-intro span,.production-overdue-intro b,.production-overdue-intro small{display:block;}
.production-overdue-intro b{color:#18382c;font-size:14px;}
.production-overdue-intro small{margin-top:5px;color:#788a82;font-size:10px;line-height:1.45;}
.production-overdue-summary>button{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 14px;background:#fff;text-align:left;box-shadow:0 9px 22px rgba(8,49,34,.045);transition:.18s;}
.production-overdue-summary>button span{color:#5f746a;font-size:12px;font-weight:900;}
.production-overdue-summary>button b{grid-row:1/3;grid-column:2;color:#17382b;font-size:28px;line-height:1;}
.production-overdue-summary>button small{color:#87978f;font-size:10px;font-weight:800;}
.production-overdue-summary>button.retouch{border-color:#ecd8a6;background:linear-gradient(145deg,#fffaf0,#fff);}
.production-overdue-summary>button.layout{border-color:#eccac3;background:linear-gradient(145deg,#fff6f3,#fff);}
.production-overdue-summary>button:hover,.production-overdue-summary>button.active{transform:translateY(-1px);box-shadow:0 12px 26px rgba(8,49,34,.08);}
.production-overdue-summary>button.retouch.active{border-color:#d79b23;box-shadow:0 0 0 2px rgba(215,155,35,.12);}
.production-overdue-summary>button.layout.active{border-color:#d96a58;box-shadow:0 0 0 2px rgba(217,106,88,.12);}
.production-filter-panel{display:grid;grid-template-columns:1fr;gap:10px;padding:12px 13px;}
.production-filter-row{display:grid;height:auto;min-height:0;gap:9px;align-items:end;}
.production-filter-primary-row{grid-template-columns:minmax(320px,1.8fr) repeat(2,minmax(170px,.7fr)) auto;}
.production-filter-warning-row{grid-template-columns:repeat(4,minmax(170px,1fr));border-top:1px solid #edf2ef;padding-top:10px;}
.production-filter-field{display:grid;gap:5px;min-width:0;}
.production-filter-field>span{padding-left:2px;color:#6a7d74;font-size:10px;font-weight:900;}
.production-filter-field select,.production-reset-btn{box-sizing:border-box;width:100%;min-height:42px;border:1px solid #d5e2db;border-radius:12px;background:#fbfdfc;padding:0 11px;color:#254437;font-weight:750;}
.production-reset-btn{width:auto;min-width:72px;padding:0 15px;}
.production-filter-field.overdue-field{border-radius:14px;padding:7px;background:#fafcfb;transition:.18s;}
.production-filter-field.overdue-field.retouch{border:1px solid #eadcb8;}
.production-filter-field.overdue-field.layout{border:1px solid #ecd5d0;}
.production-filter-field.overdue-field.retouch.active{border-color:#d49a2b;background:#fff8e9;}
.production-filter-field.overdue-field.layout.active{border-color:#d86957;background:#fff3f0;}
.production-end-date{color:#657b70!important;}
.production-overdue-badge{display:inline-flex!important;width:max-content;margin-top:6px!important;border-radius:999px;padding:4px 7px;font-size:9px!important;font-style:normal;font-weight:900;white-space:nowrap;}
.production-overdue-badge.retouch{background:#fff1cc;color:#885b00;}
.production-overdue-badge.layout{background:#ffe8e3;color:#a13e30;}
@media(max-width:1350px){.production-overdue-summary{grid-template-columns:1fr 1fr}.production-overdue-intro{grid-column:1/-1}.production-filter-primary-row{grid-template-columns:minmax(280px,1.6fr) 1fr 1fr auto}.production-filter-warning-row{grid-template-columns:repeat(2,minmax(190px,1fr))}}
@media(max-width:900px){.production-overdue-summary,.production-filter-primary-row,.production-filter-warning-row{grid-template-columns:1fr}.production-overdue-intro{grid-column:auto}.production-search{grid-column:auto}.production-reset-btn{width:100%}}

/* 订单管理 / 快递管理（独立增量模块） */
.logistics-management-page{display:grid;gap:18px;}
.logistics-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.logistics-provider-state{border-radius:999px;padding:8px 13px;font-size:12px;font-weight:850;}
.logistics-provider-state.ready{background:#e7f7ee;color:#08784f;}
.logistics-provider-state.pending{background:#fff5d9;color:#8a5a00;}
.logistics-import-card,.logistics-preview-card,.logistics-list-card{border:1px solid #dce8e1;border-radius:18px;background:#fff;padding:18px;box-shadow:0 10px 28px rgba(18,52,38,.05);}
.logistics-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;}
.logistics-section-title>div{display:flex;align-items:center;gap:9px;color:#08784f;}
.logistics-section-title h3{margin:0;color:#12241c;font-size:17px;}
.logistics-section-title>span{color:#6b7f75;font-size:12px;font-weight:700;}
.logistics-import-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px;}
.logistics-import-settings label{display:grid;gap:6px;}
.logistics-import-settings label span{color:#63766c;font-size:12px;font-weight:800;}
.logistics-import-settings input,.logistics-import-settings select,.logistics-list-filters input,.logistics-list-filters select,.logistics-preview-card select{min-height:40px;border:1px solid #d9e4de;border-radius:10px;background:#fff;padding:0 11px;color:#15261e;}
.logistics-paste{box-sizing:border-box;width:100%;resize:vertical;border:1px solid #cfe0d7;border-radius:14px;background:#f8fbf9;padding:13px;font:13px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;color:#193127;}
.logistics-import-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch;}
.logistics-import-column{display:grid;grid-template-rows:auto 1fr;gap:7px;min-width:0;}
.logistics-import-column>span{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#4e665b;font-size:12px;}
.logistics-import-column b{color:#203a2f;font-size:13px;}
.logistics-import-column em{color:#bd4435;font-style:normal;}
.logistics-import-column small{border-radius:999px;background:#eef5f1;padding:3px 8px;color:#61766c;font-size:11px;font-weight:850;white-space:nowrap;}
.logistics-import-column textarea{box-sizing:border-box;width:100%;min-height:190px;resize:none;border:1px solid #cfe0d7;border-radius:14px;background:#f8fbf9;padding:13px;color:#193127;font:13px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;outline:0;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;}
.logistics-import-column textarea:focus{border-color:#15936a;background:#fff;box-shadow:0 0 0 3px rgba(21,147,106,.12);}
.logistics-import-column textarea[aria-invalid="true"]{border-color:#e6a79d;background:#fffafa;}
.logistics-import-validation{min-height:18px;margin-top:9px;color:#65796f;font-size:12px;font-weight:750;line-height:1.5;}
.logistics-import-validation.ready{color:#08784f;}
.logistics-import-validation.error{color:#a33a2c;}
.logistics-import-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:12px;}
.logistics-import-actions>span{margin-right:auto;color:#65796f;font-size:12px;font-weight:800;}
.logistics-preview-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px;}
.logistics-preview-summary>span{display:flex;align-items:end;justify-content:space-between;border-radius:12px;background:#f3f7f5;padding:11px 12px;color:#183127;font-size:21px;font-weight:950;}
.logistics-preview-summary>span small{font-size:11px;font-weight:800;color:#687b72;}
.logistics-preview-summary .matched{background:#e7f7ee;color:#08784f;}
.logistics-preview-summary .ambiguous{background:#fff5d9;color:#8a5a00;}
.logistics-preview-summary .unmatched,.logistics-preview-summary .duplicate,.logistics-preview-summary .invalid{background:#fff0ed;color:#a33a2c;}
.preview-status{display:inline-flex;border-radius:999px;padding:4px 8px;background:#f0f4f2;color:#52665c;font-size:11px;font-weight:850;}
.preview-status.matched{background:#e7f7ee;color:#08784f;}
.preview-status.ambiguous{background:#fff5d9;color:#8a5a00;}
.preview-status.unmatched,.preview-status.duplicate,.preview-status.invalid{background:#fff0ed;color:#a33a2c;}
.shipment-import-result-modal{width:min(980px,94vw);max-height:88vh;overflow:auto;}
.shipment-import-result-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px;}
.shipment-import-result-summary>span{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;border-radius:16px;padding:14px 16px;}
.shipment-import-result-summary>span.success{background:#e8f7ef;color:#08784f;}
.shipment-import-result-summary>span.error{background:#fff0ed;color:#ad3f30;}
.shipment-import-result-summary small{font-size:12px;font-weight:900;}
.shipment-import-result-summary b{font-size:25px;line-height:1;}
.shipment-import-result-tip{display:flex;align-items:center;gap:8px;border:1px solid #f3d29c;border-radius:13px;background:#fff8e8;color:#805d1c;padding:10px 12px;margin-bottom:12px;font-size:11px;font-weight:800;}
.shipment-import-exception-table{max-height:410px;overflow:auto;border:1px solid #e0e8e3;border-radius:15px;background:#fff;}
.shipment-import-exception-table table{width:100%;border-collapse:collapse;}
.shipment-import-exception-table th{position:sticky;top:0;z-index:1;background:#f3f7f5;color:#486156;padding:10px;text-align:left;font-size:11px;white-space:nowrap;}
.shipment-import-exception-table td{border-top:1px solid #edf2ef;padding:10px;color:#41584d;font-size:11px;vertical-align:top;}
.shipment-import-exception-table td b{color:#16372a;}
.shipment-import-exception-table code{color:#8f3428;font:850 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;word-break:break-all;}
.shipment-import-exception-table td:last-child span{display:inline-flex;border-radius:999px;background:#fff0ed;color:#a33a2c;padding:4px 8px;font-weight:850;}
.logistics-list-filters{display:grid;grid-template-columns:minmax(240px,1.7fr) repeat(3,minmax(130px,1fr)) auto;gap:9px;margin-bottom:13px;}
.logistics-search{display:flex;align-items:center;gap:7px;border:1px solid #d9e4de;border-radius:10px;padding:0 11px;}
.logistics-search input{min-width:0;flex:1;border:0!important;padding:0!important;outline:0;}
.logistics-table td{vertical-align:top;}
.logistics-table td>b,.logistics-table td>span,.logistics-table td>small,.logistics-table td>code{display:block;margin-bottom:4px;}
.logistics-table code,.shipment-number{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#14261e;font-weight:850;}
.shipment-carrier-select{width:170px;max-width:100%;margin-bottom:6px;padding:7px 9px;border:1px solid #d7e4dc;border-radius:9px;background:#fff;color:#173c2e;}
.shipment-phone-suffix{display:block;width:170px;max-width:100%;margin-top:7px;padding:7px 9px;border:1px solid #d7e4dc;border-radius:9px;background:#fff;color:#173c2e;font-size:12px;}
.shipment-latest{max-width:330px;}
.shipment-latest span{line-height:1.5;color:#31473d;}
.package-type-badge,.shipment-status{display:inline-flex!important;width:max-content;border-radius:999px;padding:4px 8px;background:#edf3f0;color:#53685e;font-size:11px;font-style:normal;font-weight:900;white-space:nowrap;}
.package-type-badge{background:#eaf5ff;color:#17669b;}
.shipment-status.picked_up,.shipment-status.in_transit{background:#eaf5ff;color:#17669b;}
.shipment-status.delivering{background:#fff5d9;color:#8a5a00;}
.shipment-status.signed{background:#e7f7ee;color:#08784f;}
.shipment-status.exception,.shipment-status.returned,.shipment-status.rejected,.shipment-status.query_failed{background:#fff0ed;color:#a33a2c;}
.shipment-summary-list{display:grid;gap:5px;min-width:112px;}
.shipment-number-summary{display:block;color:#173c2e;font:800 11px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap;}
.shipment-summary-list small,.shipment-summary-empty{color:#73857c;font-size:11px;font-weight:750;}
.shipment-panel-empty{border:1px dashed #cfddd5;border-radius:12px;padding:17px;text-align:center;color:#74867d;font-size:12px;font-weight:800;}
.order-shipment-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.order-shipment-card{border:1px solid #dce8e1;border-radius:14px;background:#f9fcfa;padding:13px;}
.order-shipment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.order-shipment-head>div b,.order-shipment-head>div span{display:block;}
.order-shipment-head>div span{margin-top:3px;color:#65796f;font-size:11px;}
.shipment-number{margin:11px 0 7px;font-size:13px;}
.order-shipment-card p{min-height:34px;margin:0 0 6px;color:#344b40;font-size:12px;line-height:1.45;}
.order-shipment-card>small{color:#7a8c83;font-size:10px;}
.order-shipment-card details{margin-top:10px;border-top:1px solid #e1ebe6;padding-top:8px;}
.order-shipment-card summary{cursor:pointer;color:#08784f;font-size:11px;font-weight:850;}
.order-shipment-card ol{max-height:180px;overflow:auto;margin:9px 0 0;padding-left:18px;}
.order-shipment-card li{margin-bottom:8px;color:#30463b;font-size:11px;line-height:1.4;}
.order-shipment-card li time{display:block;color:#829188;font-size:10px;}
.logistics-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px;color:#62756b;font-size:12px;font-weight:800;}
.logistics-pagination button{border:1px solid #d6e2dc;border-radius:9px;background:#fff;padding:7px 11px;color:#315047;font-weight:800;}
.logistics-pagination button:disabled{opacity:.45;}
@media(max-width:1100px){.logistics-import-settings{grid-template-columns:repeat(2,minmax(0,1fr));}.logistics-list-filters{grid-template-columns:1fr 1fr;}.order-shipment-cards{grid-template-columns:1fr;}}
@media(max-width:820px){.logistics-import-columns{grid-template-columns:1fr;}.logistics-import-column textarea{min-height:150px;}.logistics-section-title{align-items:flex-start;flex-direction:column;}.logistics-import-settings{grid-template-columns:1fr;}}

/* Shooting weather professional workspace overrides */
.weather-command {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  padding: 24px;
  color: #10282b;
  border: 1px solid rgba(15, 118, 110, .1);
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfa 52%, #eef8f4 100%);
  box-shadow: 0 18px 48px rgba(13, 45, 52, .08);
}

.weather-command::after {
  background:
    linear-gradient(90deg, rgba(20, 184, 166, .12), transparent 46%),
    linear-gradient(rgba(15, 118, 110, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, .035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  mask-image: none;
}

.weather-command-main,
.weather-command-controls {
  position: relative;
  z-index: 1;
}

.weather-kicker {
  color: #0f766e;
  margin-bottom: 10px;
}

.weather-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.weather-command h1 {
  color: #10282b;
  font-size: 34px;
  line-height: 1.18;
}

.weather-command p {
  max-width: 720px;
  color: #5d7172;
}

.weather-signal-row {
  margin-top: 16px;
}

.weather-signal-row span {
  color: #123235;
  border-color: rgba(15, 118, 110, .12);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
}

.weather-health-pill {
  min-width: 112px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, #f0fdfa, #ffffff);
  text-align: right;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .08);
}

.weather-health-pill b,
.weather-health-pill span {
  display: block;
}

.weather-health-pill b {
  color: #0f766e;
  font-size: 28px;
  line-height: 1;
}

.weather-health-pill span {
  margin-top: 4px;
  color: #627879;
  font-size: 12px;
}

.weather-command-controls select,
.weather-refresh {
  color: #123235;
  border-color: rgba(15, 118, 110, .16);
  background: #fff;
  box-shadow: 0 8px 18px rgba(13, 45, 52, .06);
}

.weather-overview-grid {
  gap: 12px;
}

.weather-metric {
  min-height: 104px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(13, 45, 52, .06);
  transition: transform .16s ease, box-shadow .16s ease;
}

.weather-metric:hover,
.weather-city-card:hover,
.weather-intel-column:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(13, 45, 52, .09);
}

.weather-metric strong {
  margin: 8px 0 6px;
  font-size: 28px;
}

.weather-intel-column {
  padding: 16px;
  box-shadow: 0 10px 26px rgba(13, 45, 52, .06);
}

.weather-city-rank-list {
  display: grid;
  gap: 10px;
}

.weather-city-rank-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(20, 53, 60, .08);
  border-radius: 8px;
  background: #ffffff;
}

.weather-city-rank-item b,
.weather-city-rank-item small {
  display: block;
}

.weather-city-rank-item b {
  margin-bottom: 4px;
  font-size: 18px;
}

.weather-city-rank-item small {
  color: var(--muted);
}

.weather-city-rank-item.danger {
  border-color: rgba(239, 68, 68, .2);
  background: #fffafa;
}

.weather-city-rank-item.warn {
  border-color: rgba(245, 158, 11, .2);
  background: #fffdf6;
}

.weather-city-rank-item.good {
  border-color: rgba(16, 185, 129, .18);
  background: #f7fdf9;
}

.weather-rank {
  width: 34px;
  height: 34px;
  color: #0f766e;
  background: #e6fffb;
  font-size: 14px;
}

.weather-urgent-item {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  border-color: rgba(20, 53, 60, .08);
  background: #ffffff;
}

.weather-urgent-item > span {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  border-radius: 8px;
  color: #0f766e;
  background: #e6fffb;
  font-size: 12px;
  font-weight: 800;
}

.weather-urgent-item.urgent {
  border-color: rgba(239, 68, 68, .2);
  background: #fffafa;
}

.weather-urgent-item.urgent > span {
  color: #b42318;
  background: #fee4e2;
}

.weather-urgent-item.warning {
  border-color: rgba(245, 158, 11, .2);
  background: #fffdf6;
}

.weather-urgent-item.warning > span {
  color: #9a5b00;
  background: #fff1c2;
}

.weather-city-grid {
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 14px;
}

.weather-city-card {
  box-shadow: 0 10px 26px rgba(13, 45, 52, .06);
  transition: transform .16s ease, box-shadow .16s ease;
}

.weather-city-card.good {
  border-top: 2px solid #10b981;
}

.weather-city-card.warn {
  border-top: 2px solid #f59e0b;
  background: #fffefb;
}

.weather-city-card.danger {
  border-top: 2px solid #ef4444;
  background: #fffafa;
}

.weather-city-head {
  padding: 16px 18px 12px;
}

.weather-city-head h3 {
  font-size: 20px;
}

.weather-days-strip {
  display: flex;
  gap: 6px;
  padding: 12px 18px 14px;
  scrollbar-width: thin;
}

.weather-day {
  min-width: 64px;
  padding: 7px 6px;
  border-color: rgba(26, 71, 82, .08);
  background: #f8fbfa;
  position: relative;
}

.weather-day i {
  display: block;
  width: 20px;
  height: 3px;
  margin: 0 auto 6px;
  border-radius: 99px;
  background: #9aaeb0;
  opacity: .55;
}

.weather-day b {
  color: #65797a;
  font-size: 11px;
}

.weather-day span {
  min-height: 18px;
  margin: 4px 0;
}

.weather-day.good {
  background: #f0fdf4;
}

.weather-day.good i {
  background: #10b981;
}

.weather-day.warn {
  background: #fffbeb;
}

.weather-day.warn i {
  background: #f59e0b;
}

.weather-day.danger {
  background: #fff1f2;
}

.weather-day.danger i {
  background: #ef4444;
}

@media (max-width: 900px) {
  .weather-command,
  .weather-overview-grid,
  .weather-intel-panel {
    grid-template-columns: 1fr;
  }

  .weather-title-row {
    flex-direction: column;
  }

  .weather-city-grid {
    grid-template-columns: 1fr;
  }
}

/* Reference-inspired shooting weather workspace */
.weather-workspace {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, .1);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: 0 18px 48px rgba(13, 45, 52, .07);
}

.weather-page-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(20, 53, 60, .08);
}

.weather-page-brand {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #10282b;
  background: #f4faf8;
  border: 1px solid rgba(15, 118, 110, .12);
}

.weather-page-title h1 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: 0;
}

.weather-page-title p,
.weather-update-time span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.weather-page-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.weather-refresh.light {
  color: #10282b;
  border: 1px solid rgba(20, 53, 60, .12);
  background: #fff;
}

.weather-update-time {
  padding-left: 14px;
  border-left: 1px solid rgba(20, 53, 60, .1);
}

.weather-update-time b,
.weather-update-time span {
  display: block;
}

.weather-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 16px 0 4px;
}

.weather-filter-bar label {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.weather-filter-bar label span {
  color: var(--muted);
  font-size: 13px;
}

.weather-filter-bar select,
.weather-advanced {
  height: 42px;
  border: 1px solid rgba(20, 53, 60, .12);
  border-radius: 8px;
  background: #fff;
  color: #10282b;
  font-weight: 700;
}

.weather-filter-bar select {
  padding: 0 12px;
}

.weather-advanced {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.weather-workspace .weather-overview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 12px 0 0;
}

.weather-workspace .weather-metric {
  min-height: 126px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon desc"
    "spark spark";
  gap: 2px 12px;
  padding: 18px;
  background: #fff;
}

.weather-metric-icon {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: #0f766e;
  background: #e7f8ef;
}

.weather-workspace .weather-metric > span {
  grid-area: label;
}

.weather-workspace .weather-metric strong {
  grid-area: value;
  font-size: 26px;
}

.weather-workspace .weather-metric small {
  grid-area: desc;
}

.weather-workspace .weather-metric.danger .weather-metric-icon {
  color: #dc2626;
  background: #fee2e2;
}

.weather-workspace .weather-metric.warn .weather-metric-icon {
  color: #d97706;
  background: #ffedd5;
}

.weather-kpi-spark {
  grid-area: spark;
  width: 100%;
  height: 32px;
  margin-top: 6px;
  fill: none;
}

.weather-kpi-spark polyline {
  stroke: #16a34a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-kpi-spark.red polyline {
  stroke: #ef4444;
}

.weather-kpi-spark.orange polyline {
  stroke: #f97316;
}

.weather-progress {
  grid-area: spark;
  height: 5px;
  margin-top: 14px;
  border-radius: 99px;
  background: #e5e7eb;
  overflow: hidden;
}

.weather-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #10b981;
}

.weather-intel-pro {
  grid-template-columns: 1fr 1fr;
}

.weather-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.weather-city-rank-item {
  grid-template-columns: 42px 92px minmax(0, 1fr) auto;
}

.weather-city-rank-item .weather-rank {
  width: auto;
  height: auto;
  color: #0f766e;
  background: transparent;
}

.weather-city-rank-item b {
  font-size: 15px;
}

.weather-city-rank-item small {
  grid-column: 3;
}

.weather-city-overview {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(20, 53, 60, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(13, 45, 52, .06);
}

.weather-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.weather-tabs button,
.weather-tabs select {
  height: 36px;
  border: 1px solid rgba(20, 53, 60, .12);
  border-radius: 8px;
  background: #fff;
  color: #10282b;
  padding: 0 12px;
  font-weight: 700;
}

.weather-tabs button.active {
  color: #fff;
  background: #16a36b;
  border-color: #16a36b;
}

.weather-city-overview .weather-city-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.weather-city-overview .weather-city-card {
  border: 1px solid rgba(20, 53, 60, .1);
  background: #fff;
  box-shadow: 0 10px 24px rgba(13, 45, 52, .045);
}

.weather-city-overview .weather-city-card.good,
.weather-city-overview .weather-city-card.warn,
.weather-city-overview .weather-city-card.danger,
.weather-city-overview .weather-city-card.neutral {
  border-top: 0;
  background: #fff;
}

.weather-city-overview .weather-risk-mini {
  display: none;
}

.weather-city-overview .weather-city-head {
  padding: 18px 18px 8px;
  border-bottom: 0;
}

.weather-city-overview .weather-city-head h3 {
  margin-bottom: 5px;
  color: #10282b;
  font-size: 18px;
}

.weather-city-overview .weather-city-score .badge,
.weather-city-overview .weather-city-score [class*="badge"] {
  background: #e8f8ef;
  color: #0f766e;
}

.weather-city-overview .weather-days-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
  padding: 10px 18px 6px;
}

.weather-city-overview .weather-day {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.weather-city-overview .weather-day b {
  color: #516466;
  font-size: 12px;
  font-weight: 700;
}

.weather-city-overview .weather-day span {
  min-height: 22px;
  margin: 6px 0 3px;
  color: #10282b;
  font-size: 12px;
}

.weather-city-overview .weather-day small {
  color: #708486;
  font-size: 11px;
}

.weather-city-overview .weather-day.good span {
  color: #0f766e;
}

.weather-city-overview .weather-day.warn span {
  color: #b45309;
}

.weather-city-overview .weather-day.danger span {
  color: #dc2626;
}

.weather-city-trend {
  width: calc(100% - 36px);
  height: 44px;
  margin: 4px 18px 12px;
  fill: none;
  overflow: visible;
}

.weather-city-trend polyline {
  stroke: #16a36b;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-city-trend.warn polyline {
  stroke: #f97316;
}

.weather-city-trend.danger polyline {
  stroke: #ef4444;
}

@media (max-width: 1200px) {
  .weather-filter-bar,
  .weather-workspace .weather-overview-grid,
  .weather-city-overview .weather-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-intel-pro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .weather-page-head,
  .weather-filter-bar,
  .weather-workspace .weather-overview-grid,
  .weather-city-overview .weather-city-grid {
    grid-template-columns: 1fr;
  }

  .weather-page-actions,
  .weather-tabs {
    flex-wrap: wrap;
  }
}

.name-compare-page {
  display: grid;
  gap: 16px;
}

.name-compare-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.name-compare-inputs label,
.name-compare-result {
  border: 1px solid rgba(15, 35, 31, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 35, 31, .05);
}

.name-compare-inputs label {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 16px;
}

.name-compare-inputs span {
  margin-bottom: 10px;
  color: #17201b;
  font-size: 15px;
  font-weight: 800;
}

.name-compare-inputs textarea {
  flex: 1;
  width: 100%;
  min-height: 260px;
  border: 1px solid rgba(15, 35, 31, .12);
  border-radius: 8px;
  padding: 14px;
  resize: vertical;
  outline: none;
  background: #f8faf8;
  color: #17201b;
  line-height: 1.7;
}

.name-compare-inputs textarea:focus {
  border-color: #16a36b;
  box-shadow: 0 0 0 3px rgba(22, 163, 107, .12);
}

.name-compare-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.name-compare-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.name-compare-result {
  overflow: hidden;
}

.name-compare-result > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 35, 31, .08);
}

.name-compare-result b {
  font-size: 15px;
}

.name-compare-result > div span {
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef3ef;
  color: #53615a;
  font-size: 12px;
  font-weight: 800;
}

.name-compare-result.danger > div span {
  background: #fee2e2;
  color: #b91c1c;
}

.name-compare-result.warn > div span {
  background: #ffedd5;
  color: #c2410c;
}

.name-compare-result ul {
  display: grid;
  gap: 8px;
  max-height: 360px;
  margin: 0;
  padding: 14px 16px 16px;
  overflow: auto;
  list-style: none;
}

.name-compare-result li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8faf8;
  color: #17201b;
  font-weight: 700;
}

.name-compare-result li em {
  border-radius: 999px;
  padding: 2px 8px;
  background: #17201b;
  color: #fff;
  font-style: normal;
  font-size: 12px;
}

@media (max-width: 1200px) {
  .name-compare-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .name-compare-inputs,
  .name-compare-results,
  .name-compare-summary {
    grid-template-columns: 1fr;
  }
}

.production-load-error {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  color: #64756d;
  text-align: center;
}

.production-load-error b {
  color: #b42318;
  font-size: 17px;
}

.production-load-error p {
  margin: 0;
  color: #8f2d24;
}

.production-load-error small {
  max-width: 620px;
  line-height: 1.7;
}

.production-load-error button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.production-page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.production-page-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.production-import-modal {
  width: min(1180px, 94vw);
  max-height: 92vh;
  padding: 24px;
}

.production-import-modal .modal-head p {
  margin: 6px 0 0;
  color: #72837b;
  font-size: 12px;
}

.production-import-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.production-import-settings label,
.production-import-paste {
  margin: 0;
}

.production-import-settings label > span,
.production-import-paste > span {
  display: block;
  margin-bottom: 7px;
  color: #466055;
  font-size: 11px;
  font-weight: 850;
}

.production-import-settings input,
.production-import-settings select {
  min-height: 42px;
  border-color: #d6e3dc;
  background: #fff;
}

.production-import-paste textarea {
  min-height: 142px;
  border-color: #cfe0d7;
  background: #fbfdfc;
  line-height: 1.7;
}

.production-import-actions,
.production-import-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
  color: #64776d;
  font-size: 12px;
}

.production-import-actions > span,
.production-import-footer > span {
  margin-right: auto;
}

.production-import-actions button,
.production-import-footer button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.production-import-safety {
  margin-top: 16px;
  border: 1px solid #eed8a8;
  border-radius: 14px;
  background: #fff9e9;
  padding: 10px 13px;
}

.production-import-safety label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
}

.production-import-safety input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

.production-import-safety span,
.production-import-safety small {
  display: block;
}

.production-import-safety b {
  color: #725519;
  font-size: 12px;
}

.production-import-safety small {
  margin-top: 3px;
  color: #8b7440;
  line-height: 1.5;
}

.production-import-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.production-import-summary > button {
  position: relative;
  min-width: 0;
  border: 1px solid #dce7e1;
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.production-import-summary > button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(12, 62, 43, .09);
}

.production-import-summary > button.active {
  border-color: #087d54;
  box-shadow: 0 0 0 2px rgba(8, 125, 84, .14), 0 8px 18px rgba(8, 82, 56, .1);
}

.production-import-summary b,
.production-import-summary small {
  display: block;
}

.production-import-summary b {
  color: #17362a;
  font-size: 18px;
}

.production-import-summary small {
  color: #788a81;
  font-size: 9px;
  font-weight: 800;
}

.production-import-summary em {
  position: absolute;
  top: 7px;
  right: 8px;
  color: #91a097;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.production-import-summary > button.active em {
  color: #087d54;
}

.production-import-summary .matched {
  border-color: #91d1ae;
  background: #eefaf3;
}

.production-import-summary .ambiguous,
.production-import-summary .prerequisite_missing {
  border-color: #e8cf92;
  background: #fff9e8;
}

.production-import-summary .invalid,
.production-import-summary .duplicate,
.production-import-summary .unmatched {
  border-color: #ebbbb4;
  background: #fff4f2;
}

.production-import-filter-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 8px;
  border-radius: 10px;
  background: #eef7f2;
  color: #49675a;
  padding: 7px 10px;
  font-size: 10px;
}

.production-import-filter-note button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #087d54;
  padding: 3px 5px;
  font-size: 10px;
  font-weight: 850;
}

.production-import-filter-empty {
  padding: 38px 12px;
  color: #82928a;
  text-align: center;
}

.production-import-preview {
  max-height: 340px;
  overflow: auto;
  border: 1px solid #dce7e1;
  border-radius: 14px;
  background: #fff;
}

.production-import-preview table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.production-import-preview th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0f7f3;
  padding: 9px 10px;
  color: #425c50;
  text-align: left;
  font-size: 10px;
}

.production-import-preview td {
  border-top: 1px solid #edf2ef;
  padding: 9px 10px;
  color: #53675d;
  font-size: 11px;
  vertical-align: middle;
}

.production-import-preview td b,
.production-import-preview td span {
  display: block;
}

.production-import-preview td > span {
  margin-top: 3px;
  color: #7a8b83;
}

.production-import-preview select {
  min-width: 320px;
  border: 1px solid #d3e0d9;
  border-radius: 9px;
  background: #fff;
  padding: 8px;
}

.production-import-status {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  max-width: 300px;
  border-radius: 999px;
  background: #edf1ef;
  color: #66776f !important;
  padding: 5px 8px;
  line-height: 1.3;
  font-size: 10px;
  font-weight: 800;
}

.production-import-status.matched {
  background: #e7f7ee;
  color: #08764e !important;
}

.production-import-status.ambiguous,
.production-import-status.prerequisite_missing {
  background: #fff3d8;
  color: #8b6519 !important;
}

.production-import-status.invalid,
.production-import-status.duplicate,
.production-import-status.unmatched {
  background: #ffebe8;
  color: #a43d31 !important;
}

.production-import-status.already_completed {
  background: #edf1ef;
  color: #617169 !important;
}

@media (max-width: 980px) {
  .production-import-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-import-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.shooting-task-hub-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  border: 1px solid #d8e6de;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfdfb 100%);
  padding: 12px 14px;
  box-shadow: 0 7px 22px rgba(8, 49, 34, 0.04);
}

.shooting-task-hub-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.shooting-task-hub-heading > div {
  min-width: 0;
}

.shooting-task-hub-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: #e8f4ed;
  color: #0c7d55;
}

.shooting-task-hub-heading b,
.shooting-task-hub-heading > div > span {
  display: block;
}

.shooting-task-hub-heading b {
  color: #123529;
  font-size: 15px;
  line-height: 1.25;
}

.shooting-task-hub-heading > div > span {
  margin-top: 4px;
  color: #7b8d84;
  font-size: 11px;
  white-space: nowrap;
}

.shooting-task-hub-tabs nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  border-radius: 13px;
  background: #f0f6f2;
  padding: 4px;
}

.shooting-task-hub-tabs nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #667970;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 850;
}

.shooting-task-hub-tabs nav button:hover {
  background: #e6f1eb;
  color: #176746;
}

.shooting-task-hub-tabs nav button.active {
  background: #0c7d55;
  color: #fff;
  box-shadow: 0 6px 15px rgba(12, 125, 85, 0.2);
}

@media (max-width: 820px) {
  .shooting-task-hub-tabs {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 13px;
  }

  .shooting-task-hub-tabs nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .shooting-task-hub-tabs nav button {
    flex: 1 0 auto;
  }
}

@media (max-width: 520px) {
  .shooting-task-hub-heading > div > span {
    white-space: normal;
  }
}

.production-shipping-cell {
  display: grid;
  gap: 7px;
  min-width: 108px;
}

.production-shipment-entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  border: 1px solid #b9ddca;
  border-radius: 8px;
  background: #edf8f2;
  color: #08784f;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
}

.production-shipment-entry-btn:hover {
  border-color: #73bd97;
  background: #def3e8;
}

.shipment-entry-modal {
  width: min(1060px, 94vw);
  max-height: 90vh;
  overflow: auto;
}

.shipment-entry-modal .modal-head p {
  margin: 6px 0 0;
  color: #71847a;
  font-size: 12px;
}

.shipment-entry-existing {
  margin-bottom: 15px;
  border: 1px solid #dbe8e1;
  border-radius: 14px;
  background: #f7fbf8;
  padding: 12px 14px;
}

.shipment-entry-existing > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #345246;
  font-size: 12px;
}

.shipment-entry-existing > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.shipment-entry-existing > div:last-child > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  background: #fff;
  padding: 7px 9px;
  box-shadow: inset 0 0 0 1px #e0ebe5;
}

.shipment-entry-existing code {
  color: #173c2e;
  font-weight: 800;
}

.shipment-entry-table {
  border: 1px solid #d9e6df;
  border-radius: 15px;
  background: #fff;
  padding: 12px;
}

.shipment-entry-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.shipment-entry-table-head button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
}

.shipment-entry-row {
  display: grid;
  grid-template-columns: 28px 150px minmax(220px, 1fr) 180px 38px;
  align-items: end;
  gap: 9px;
  border-top: 1px solid #edf2ef;
  padding: 10px 0;
}

.shipment-entry-row:first-of-type {
  border-top: 0;
}

.shipment-entry-row label {
  margin: 0;
}

.shipment-entry-row label > span {
  display: block;
  margin-bottom: 5px;
  color: #5d7469;
  font-size: 10px;
  font-weight: 850;
}

.shipment-entry-row input,
.shipment-entry-row select {
  width: 100%;
  height: 40px;
  border: 1px solid #d3e1da;
  border-radius: 10px;
  background: #fbfdfc;
  padding: 0 10px;
  outline: 0;
}

.shipment-entry-row input:focus,
.shipment-entry-row select:focus {
  border-color: #56ae82;
  box-shadow: 0 0 0 3px rgba(12, 125, 85, .09);
}

.shipment-entry-index {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-bottom: 7px;
  border-radius: 8px;
  background: #edf5f1;
  color: #426357;
  font-size: 11px;
  font-weight: 900;
}

.shipment-entry-remove {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  border: 1px solid #efd9d4;
  border-radius: 10px;
  background: #fff8f6;
  color: #a74638;
}

.shipment-entry-row > small {
  grid-column: 2 / -1;
  color: #b13d30;
  font-size: 11px;
}

.shipment-entry-row.error input {
  border-color: #d76c5d;
  background: #fff8f6;
}

.shipment-entry-note {
  margin-top: 12px;
  border-radius: 10px;
  background: #eef8f3;
  color: #3f6957;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .shipment-entry-row {
    grid-template-columns: 28px 1fr 1fr 38px;
  }

  .shipment-entry-number {
    grid-column: 2 / 4;
  }

  .shipment-entry-row > small {
    grid-column: 2 / -1;
  }
}
