@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(6, 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-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-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-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)); }
.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; }

.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)); }
}
