:root{--bg:#f4f7fb;--card:#fff;--ink:#172235;--muted:#68758a;--line:#dfe6ef;--brand:#1769aa;--brand-dark:#0e4f85;--soft:#eaf3fb;--danger:#b8323c;--success:#237a4b;--warning:#a76c00;--sidebar:#14263b;--shadow:0 8px 26px rgba(26,48,78,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:14px}a{color:var(--brand);text-decoration:none}button,input,select,textarea{font:inherit}button,.button{border:0;border-radius:7px;padding:9px 15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}.primary{background:var(--brand);color:white}.primary:hover{background:var(--brand-dark)}.secondary{background:#eef2f7;color:#33465c;border:1px solid #d6dee8}.danger{background:#fff0f1;color:var(--danger);border:1px solid #efc3c7}.small{padding:5px 9px;font-size:12px}.wide{width:100%}.link-button{background:none;color:white;padding:4px}.topbar{height:64px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px}.brand-mark,.login-logo{width:38px;height:38px;border-radius:10px;background:linear-gradient(145deg,#1875b9,#0c4b7f);color:white;display:grid;place-items:center;font-weight:700;font-size:20px}.brand strong{display:block;font-size:16px}.brand small{display:block;color:var(--muted);margin-top:2px}.top-actions{display:flex;align-items:center;gap:12px}.project-switch select{min-width:230px}.user-chip{background:var(--soft);padding:7px 10px;border-radius:20px;color:var(--brand-dark)}.layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 64px)}.sidebar{background:var(--sidebar);padding:18px 12px}.sidebar nav{position:sticky;top:82px}.sidebar a{display:block;color:#ced9e6;padding:10px 13px;border-radius:7px;margin:2px 0}.sidebar a:hover,.sidebar a.active{background:#24415f;color:#fff}.nav-title{font-size:11px;color:#8096ad;text-transform:uppercase;padding:16px 13px 6px}.content{padding:26px 30px;min-width:0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.page-head h1{margin:0 0 5px;font-size:25px}.page-head p{margin:0;color:var(--muted)}.actions,.row-actions,.form-actions,.section-title{display:flex;align-items:center;gap:9px}.section-title{justify-content:space-between}.card{background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:20px;margin-bottom:20px}.card h2{font-size:18px;margin:0 0 15px}.card h3{font-size:15px;margin:18px 0 8px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stat-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:15px;margin-bottom:20px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:18px;box-shadow:var(--shadow)}.stat span{display:block;color:var(--muted);margin-bottom:8px}.stat strong{font-size:30px}.stat.warning strong{color:var(--warning)}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-actions a{padding:18px;background:var(--soft);border-radius:9px;font-weight:600}.timeline{list-style:none;padding:0;margin:0}.timeline li{display:grid;grid-template-columns:1fr auto;gap:4px;border-bottom:1px solid var(--line);padding:9px 0}.timeline li:last-child{border:0}.timeline span,.timeline small{color:var(--muted)}.timeline small{grid-column:1/-1}.stack-form{display:flex;flex-direction:column;gap:15px}.stack-form label,.form-grid label{display:flex;flex-direction:column;gap:7px;font-weight:600;color:#38475a}.stack-form input,.stack-form select,.stack-form textarea,.form-grid input,.form-grid select,.filter-bar input,.filter-bar select,.inline-form input,.row-actions select{border:1px solid #cad4df;border-radius:7px;background:white;padding:10px 11px;color:var(--ink);width:100%}.stack-form input:focus,.stack-form select:focus,.stack-form textarea:focus{outline:2px solid #b9daf2;border-color:var(--brand)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-card{max-width:1000px}.form-card.narrow,.narrow{max-width:520px}.form-actions{justify-content:flex-end}.check{flex-direction:row!important;align-items:center!important;font-weight:400!important}.check input{width:auto}.hint,.muted{color:var(--muted)}.filter-bar{display:flex;gap:10px;margin-bottom:16px}.filter-bar select{width:auto;min-width:180px}.filter-bar input{max-width:340px}.table-wrap{overflow:auto}.table-wrap.card{padding:0}table{width:100%;border-collapse:collapse;min-width:780px}th,td{text-align:left;padding:12px 13px;border-bottom:1px solid var(--line);vertical-align:middle}th{background:#f5f8fb;color:#536379;font-weight:600;white-space:nowrap}tr:last-child td{border-bottom:0}.ellipsis{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-cell{text-align:center;color:var(--muted);padding:30px}.status,.badge{display:inline-flex;padding:4px 9px;border-radius:14px;font-size:12px;background:#eef2f6}.active-status{background:#dff4e8;color:#176b3e}.damaged{background:#fde1e3;color:#a3232d}.warning-badge{background:#fff0ca;color:#8b5b00}.project-list{display:flex;flex-direction:column;gap:12px}.project-item{border:1px solid var(--line);border-radius:9px;padding:14px;display:flex;justify-content:space-between;gap:14px}.project-item small{display:block;color:var(--muted);margin-top:4px}.project-item p{margin:8px 0 0;color:#536379}.process-list{list-style:none;padding:0;margin:0}.process-list li{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:9px 0}.process-list li span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.inline-form{display:grid;grid-template-columns:2fr 1.5fr 80px auto;gap:8px;margin-top:15px}.member-remove-form{display:inline;margin:0}.member-remove-form button{white-space:nowrap}.pre-text{white-space:pre-wrap;line-height:1.75;background:#f7f9fc;border-radius:8px;padding:12px;min-height:80px}.overview-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px}.tree{padding:12px}.tree summary{font-weight:700;padding:9px;cursor:pointer}.tree a{display:block;padding:8px 12px 8px 24px;border-radius:6px;color:#3d5065}.tree a.selected,.tree a:hover{background:var(--soft);color:var(--brand-dark)}.chart-card{min-width:0}.chart-card canvas{width:100%;height:auto;border:1px solid var(--line);border-radius:8px;background:#fff}.tabs{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}.tabs a{padding:6px 9px;border-radius:6px;background:#f0f3f7;color:#46596e;font-size:12px}.tabs a.active{background:var(--brand);color:white}.export-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.export-card{display:flex;flex-direction:column;align-items:flex-start}.export-link{display:block;padding:8px 0;border-bottom:1px solid var(--line);width:100%}.flash{border-radius:8px;padding:12px 15px;margin-bottom:18px;border:1px solid}.flash.success{background:#e5f5ec;border-color:#bde4cc;color:#17653c}.flash.error{background:#fff0f1;border-color:#efc3c7;color:#9f2932}.flash.warning{background:#fff7df;border-color:#ecd99c;color:#805600}.empty-state{text-align:center;background:white;border:1px solid var(--line);border-radius:12px;padding:55px 20px;box-shadow:var(--shadow)}.login-shell{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at 20% 20%,#dceefa,transparent 35%),linear-gradient(145deg,#edf4fa,#f8fafc)}.login-card{width:min(440px,100%);background:white;border-radius:16px;padding:36px;box-shadow:0 20px 60px rgba(23,55,85,.14);text-align:center}.login-logo{margin:0 auto 14px;width:52px;height:52px;font-size:26px}.login-card h1{font-size:23px;margin:0}.login-card>p{color:var(--muted);margin:8px 0 24px}.login-card .stack-form{text-align:left}.login-tip{font-size:12px;color:var(--muted);margin-top:18px;background:#f5f8fb;padding:10px;border-radius:7px}.small-link{white-space:nowrap}
@media(max-width:1050px){.stat-grid{grid-template-columns:repeat(3,1fr)}.grid-2,.export-grid{grid-template-columns:1fr}.overview-layout{grid-template-columns:1fr}.tree{max-height:260px;overflow:auto}}
@media(max-width:760px){.layout{grid-template-columns:1fr}.sidebar{display:none}.content{padding:18px 12px}.topbar{padding:0 12px}.brand strong{font-size:13px}.project-switch select{min-width:130px;max-width:170px}.user-chip{display:none}.page-head{align-items:flex-start}.form-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:1fr 1fr}.filter-bar{flex-direction:column}.filter-bar input,.filter-bar select{max-width:none;width:100%}.inline-form{grid-template-columns:1fr}.section-title{align-items:flex-start;flex-direction:column}.tabs{justify-content:flex-start}}
.project-management-grid{align-items:start}.project-item-manage,.deleted-project-item{align-items:flex-start}.project-summary{min-width:0;flex:1}.project-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.project-actions{display:flex;align-items:flex-start;justify-content:flex-end;gap:8px;flex-wrap:wrap}.manage-panel{position:relative}.manage-panel>summary{list-style:none;user-select:none}.manage-panel>summary::-webkit-details-marker{display:none}.manage-panel[open]>.compact-form{display:flex}.compact-form{position:absolute;right:0;top:42px;z-index:15;width:360px;max-width:calc(100vw - 60px);padding:16px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 16px 42px rgba(26,48,78,.2)}.danger-panel .compact-form{border-color:#efc3c7}.warning-text{margin:0;color:#8d2b33;line-height:1.65;background:#fff4f5;border-radius:7px;padding:10px}.deleted-projects-card{border-color:#ead7a4}.deleted-project-item{background:#fffdf7}.deleted-project-item strong{text-decoration:line-through;text-decoration-color:#a7afb8}.compact-form .form-actions{justify-content:flex-end}@media(max-width:760px){.project-management-grid{grid-template-columns:1fr}.project-item{flex-direction:column}.project-actions{justify-content:flex-start}.compact-form{position:fixed;left:12px;right:12px;top:90px;width:auto;max-width:none;max-height:calc(100vh - 110px);overflow:auto}.deleted-project-item{flex-direction:column}}
.top-save{justify-content:flex-end;border-bottom:1px solid var(--line);padding-bottom:12px}.forced-password-card{border:2px solid #e2b94b}.forced-logout{margin-top:12px}.stack-form small{font-weight:400;color:var(--muted)}.sensor-filter{flex-wrap:wrap;align-items:flex-end}.date-filter{display:flex;flex-direction:column;gap:5px;color:#536379;font-size:12px}.date-filter input{min-width:145px}.bulk-toolbar{display:flex;align-items:center;gap:16px;padding:12px 16px}.warning-box{background:#fff7df;border:1px solid #ecd99c;color:#805600;padding:12px;border-radius:8px}.warning-box p{margin:6px 0 0}.chart-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.chart-shell{width:100%;overflow:auto;border:1px solid var(--line);border-radius:8px;background:white}.chart-shell canvas{display:block;width:100%;min-width:0;height:auto;border:0}.process-list .row-actions{flex-shrink:0}.form-card h2{margin:8px 0 0;padding-bottom:8px;border-bottom:1px solid var(--line)}
@media(max-width:760px){.bulk-toolbar{align-items:flex-start;flex-direction:column}.chart-actions{align-items:flex-start}.sensor-filter{flex-direction:column}.date-filter,.date-filter input{width:100%}}

.status-toggle{border:0;cursor:pointer;font:inherit}.status-toggle:hover{filter:brightness(.94);box-shadow:0 0 0 2px rgba(30,110,160,.12)}.sidebar-logout{margin-top:12px;padding:0 13px}.sidebar-logout button{width:100%;border:1px solid #3f5f7f;background:transparent;color:#ced9e6;border-radius:7px;padding:9px 10px;cursor:pointer}.sidebar-logout button:hover{background:#24415f;color:#fff}.link-button{cursor:pointer}.file-summary{font-size:12px;color:var(--muted)}
/* V0.2.3 基于V0.2.2综合修正版 */
input[type="checkbox"]{accent-color:var(--brand);width:17px;height:17px;vertical-align:middle}
.inline-status-form{margin:0;display:inline}
.export-choice{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;color:var(--brand);display:block;padding:8px 0;text-align:left;width:100%;justify-content:flex-start}
.export-choice:hover{color:var(--brand-dark);background:var(--soft)}
.export-dialog{border:0;border-radius:14px;padding:0;width:min(560px,calc(100vw - 36px));box-shadow:0 24px 80px rgba(23,55,85,.25)}
.export-dialog::backdrop{background:rgba(18,35,52,.46)}
.export-dialog form{padding:24px}
.dialog-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:4px}
.dialog-title-row h2{margin:0 0 5px}.dialog-title-row p{margin:0}
.dialog-close{padding:6px 10px}
.topbar .link-button{background:#eef2f7;color:#33465c;border:1px solid #d6dee8;border-radius:7px;padding:7px 11px}
.topbar .link-button:hover{background:#e2e8f0;color:#203246}
.sidebar-logout button{font:inherit}

/* V0.2.8 用户账号移除与停用管理 */
.user-management-grid{grid-template-columns:minmax(0,2fr) minmax(300px,1fr);align-items:start}
.user-list-card{min-width:0}.create-user-card{position:sticky;top:84px}
.user-account-table{min-width:1050px}.user-account-actions{flex-wrap:nowrap;white-space:nowrap}
.user-remove-form{display:inline;margin:0}.disabled-user-row{background:#fafbfc;color:#7a8798}
.disabled-user-row strong{text-decoration:line-through;text-decoration-color:#aeb6c0}
.user-remove-note{margin-top:16px}.user-remove-note strong{display:block;margin-bottom:4px}
.user-remove-note p{margin:0;line-height:1.65}.user-account-table .badge{margin-left:6px}
@media(max-width:1050px){.user-management-grid{grid-template-columns:1fr}.create-user-card{position:static}}
.data-query-filter{flex-wrap:wrap;align-items:end}.data-query-filter>label{display:flex;flex-direction:column;gap:5px;color:#536379}.data-query-filter select{min-width:150px}.data-query-filter input{max-width:210px}.data-query-filter .date-filter input{min-width:145px}.data-query-filter .data-query-keyword input{min-width:250px}.query-summary{margin:0 0 12px;color:var(--muted)}.data-query-table table{min-width:1380px}.data-query-table input{border:1px solid #cad4df;border-radius:6px;background:#fff;padding:7px 8px;min-width:120px}.data-query-table input[type="datetime-local"]{min-width:190px}.data-query-table td:nth-child(7) input{min-width:80px;width:90px}.pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px}
.data-query-bulk-toolbar{margin-bottom:12px}.data-query-actions{gap:6px;flex-wrap:nowrap}.data-query-actions form{margin:0}.data-query-pager{flex-wrap:wrap}.page-jump-form{margin:0}.page-jump-form label{display:flex;align-items:center;gap:7px;color:var(--muted)}.page-jump-form select{border:1px solid #cad4df;border-radius:7px;background:#fff;padding:7px 10px;color:var(--ink);min-width:72px}.data-query-table td:first-child input[type="checkbox"]{width:auto;min-width:0}
/* V0.3.1 一览表交互、安全系数与整体美化 */
body{background:linear-gradient(180deg,#f6f9fd 0,#f2f6fb 100%)}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}
.page-head h1{margin:0 0 6px;font-size:25px;letter-spacing:.01em}
.page-head p{margin:0;color:var(--muted);line-height:1.7}
.head-meta{display:flex;gap:8px;flex-wrap:wrap;padding-top:4px}
.pill{display:inline-flex;align-items:center;gap:6px;background:#eef4fb;border:1px solid #d4e2f1;color:#2d5a86;border-radius:999px;padding:6px 12px;font-size:12px;white-space:nowrap}
.overview-layout{grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}
.tree.card{padding:12px;position:sticky;top:84px;max-height:calc(100vh - 110px);overflow:auto;margin:0}
.tree details{margin-bottom:8px}.tree summary{padding:8px 6px;border-radius:6px;color:#2d4a68;font-size:13px}
.tree summary:hover{background:var(--soft)}
.tree a{padding:7px 10px 7px 18px;margin:1px 0 1px 6px;border-radius:6px;font-size:13px;color:#41566d}
.tree a.selected{background:#e6f0fa;color:#14578e;font-weight:700;box-shadow:inset 3px 0 0 var(--brand)}
.chart-card{min-width:0;display:flex;flex-direction:column;gap:14px;margin:0}
.section-title{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:2px}
.section-title h2{margin:0 0 4px;font-size:20px}.section-title p{margin:0}
.tabs{display:flex;flex-wrap:wrap;gap:4px;background:#edf2f8;border:1px solid #dbe4ef;padding:4px;border-radius:10px;justify-content:flex-start}
.tabs a{padding:7px 14px;border-radius:7px;color:#46627f;font-size:13px;white-space:nowrap;background:transparent}
.tabs a:hover{background:#fff;color:#1d5c94}.tabs a.active{background:#fff;color:#164e7d;font-weight:700;box-shadow:0 2px 8px rgba(32,72,110,.14)}
.overview-layout .chart-block{margin:0;padding:16px 18px 14px;border-radius:12px}
.chart-block-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.chart-block-head h3{margin:0;font-size:16px;color:#223d5b}
.tag{display:inline-block;background:#f1f5fa;border:1px solid #d8e3ef;color:#3c6084;border-radius:6px;padding:2px 8px;font-size:12px;white-space:nowrap}
.chart-warning{min-height:18px;color:#9a6a00;font-size:12px;margin-top:6px;line-height:1.6}
.overview-layout .chart-actions{flex-direction:row;justify-content:flex-end;align-items:center;margin-top:6px}
.overview-layout .chart-shell canvas{min-width:0;max-height:660px}
.badge{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700;white-space:nowrap}
.badge.ok{background:#e7f6ec;color:#1a7a3d;border:1px solid #b8e3c6}
.badge.danger{background:#fdecec;color:#b03030;border:1px solid #f3c2c2}
.safety-hint{margin:0 0 10px;font-size:12px;line-height:1.7}
.safety-table{margin-top:12px;overflow:auto}
.safety-table table{min-width:980px}
.chart-tooltip{position:fixed;z-index:9999;max-width:300px;background:rgba(21,38,56,.95);color:#f3f7fb;border-radius:10px;padding:10px 12px;font-size:12px;line-height:1.75;box-shadow:0 10px 30px rgba(10,25,40,.32);pointer-events:none}
.chart-tooltip b{color:#fff;font-size:13px}
.empty-card{padding:24px;margin:0}.empty-state{padding:44px;text-align:center;color:var(--muted);background:#fff;border:1px dashed var(--line);border-radius:12px}
.card{transition:box-shadow .15s ease}
a:focus-visible,button:focus-visible{outline:2px solid #b9daf2;outline-offset:2px}
@media(max-width:980px){.overview-layout{grid-template-columns:1fr}.tree.card{position:static;max-height:none}.head-meta{padding-top:0}}
/* V0.3.1 工作台上手引导与快捷卡片 */
.guide-card{background:linear-gradient(135deg,#f7fbff,#eef6fd);border-color:#d6e6f4}
.guide-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.guide-head h2{margin:0;font-size:17px}
.guide-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;counter-reset:step}
.guide-steps li{position:relative;background:#fff;border:1px solid #dde9f4;border-radius:10px;padding:32px 14px 14px;counter-increment:step}
.guide-steps li::before{content:counter(step);position:absolute;left:14px;top:10px;width:20px;height:20px;border-radius:50%;background:var(--brand);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center}
.guide-steps b{display:block;margin-bottom:5px;color:#22415f}
.guide-steps span{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin-bottom:10px}
.guide-steps a{font-size:12px;font-weight:700}
.quick-actions a{display:flex;flex-direction:column;gap:5px;padding:16px 18px;transition:transform .12s ease,box-shadow .12s ease}
.quick-actions a:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(26,70,110,.12)}
.quick-actions a b{font-size:14px;color:#1d4e7c}
.quick-actions a small{color:var(--muted);font-weight:400;font-size:12px;line-height:1.6}
@media(max-width:1050px){.guide-steps{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.guide-steps{grid-template-columns:1fr}}



.monitor-chart{cursor:crosshair}
/* ===== V0.3.4 视觉优化 ===== */
:root{--brand:#0e6bb5;--brand-dark:#0a4f86;--ink:#17283a;--muted:#6b7f93;--line:#e2eaf3;--bg:#f3f6fa;--card:#fff;--soft:#eef4fa;--shadow:0 8px 24px rgba(17,49,80,.06)}
body{background:radial-gradient(1200px 520px at 0% -12%,#e8f2fb 0%,rgba(232,242,251,0) 55%),linear-gradient(180deg,#f6f9fc 0%,#f2f6fa 100%);color:var(--ink)}
.topbar{background:rgba(255,255,255,.92);backdrop-filter:blur(10px);box-shadow:0 1px 0 rgba(16,45,75,.05)}
.brand-mark{background:linear-gradient(140deg,#1c86d4,#0a4f86);box-shadow:0 6px 16px rgba(20,90,150,.28)}
.sidebar{background:linear-gradient(180deg,#12293f 0%,#17334c 55%,#122a41 100%)}
.sidebar a{transition:background .16s,color .16s;border-left:3px solid transparent}
.sidebar a.active{background:linear-gradient(90deg,rgba(64,150,220,.24),rgba(64,150,220,.05));border-left-color:#4aa3e8;color:#fff}
.sidebar a:hover{background:rgba(255,255,255,.07);color:#fff}
.content{padding:28px 34px 42px}
.page-head{margin-bottom:22px}
.page-head h1{font-size:26px;letter-spacing:.2px}
.card{border-radius:14px;box-shadow:var(--shadow);border-color:#e4ecf4}
.tabs{background:#eef3f9;border:1px solid #dfe8f2;border-radius:12px;padding:5px;gap:4px;box-shadow:inset 0 1px 2px rgba(20,50,80,.04)}
.tabs a{padding:7px 12px;border-radius:8px;font-weight:600;color:#4b6076;transition:all .15s}
.tabs a:hover{background:rgba(255,255,255,.8);color:#0e5c99}
.tabs a.active{background:linear-gradient(135deg,#1a7fc9,#0d5c9d);color:#fff;box-shadow:0 4px 10px rgba(16,90,150,.26)}
button,.button{transition:all .15s;font-weight:600}
.primary{background:linear-gradient(135deg,#1a7fc9,#0e5c99);box-shadow:0 4px 12px rgba(16,90,150,.22)}
.primary:hover{filter:brightness(1.06);transform:translateY(-1px)}
.secondary{background:#f3f7fb;border-color:#dbe4ee}
.secondary:hover{background:#e9f1f9}
.table-wrap{background:#fff;border-radius:12px}
th{background:linear-gradient(180deg,#f8fbfe,#f1f6fb);color:#546a80;font-size:12.5px;position:sticky;top:0;z-index:1}
tbody tr:nth-child(even){background:#fbfdff}
tbody tr:hover{background:#f3f8fd}
.status,.badge{padding:4px 10px;font-weight:600}
.stat{position:relative;overflow:hidden}
.stat::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#3ba0e8,#0e5c99)}
.head-meta .pill{background:#fff;border:1px solid #e1eaf3;box-shadow:0 2px 8px rgba(20,50,80,.05)}
.chart-block{border-color:#e2ebf4}
.chart-block-head h3{font-size:15.5px;letter-spacing:.02em}
.chart-block-head .tag{background:#eaf3fb;color:#0e5c99;border:1px solid #d6e7f6;border-radius:999px;padding:3px 10px;font-size:12px}
.chart-shell{border-radius:10px;box-shadow:inset 0 1px 3px rgba(15,45,75,.04)}
.chart-tips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0}
.chart-tips .tip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#eff5fb;color:#4d647a;font-size:12px;border:1px solid #e0eaf4}
.chart-tips .tip i{width:6px;height:6px;border-radius:50%;background:#2f93d8;display:inline-block}
.section-title h2{font-size:19px;letter-spacing:.02em}
.section-title{margin-bottom:8px}
.empty-card{border-style:dashed;background:#fbfdff}
.tree.card{padding:10px;background:#fbfdff}
.tree a{border-radius:8px;transition:all .15s}
.tree a.selected{background:linear-gradient(90deg,#e6f2fc,#f2f8fe);color:#0b5a96;font-weight:700;box-shadow:inset 2px 0 0 #2f93d8}
.chart-tooltip{position:fixed !important}

.process-caption{font-size:12px;color:#78879a;padding:6px 2px 0;line-height:1.6}


/* 掌子面照片与资料提示（V1.1） */
.hint-banner{margin:14px 0 0;padding:12px 16px;border-radius:12px;border:1px solid #f2d59b;background:linear-gradient(90deg,#fff8e8,#fffdf7);color:#7a5a16;font-size:13px;line-height:1.7}
.hint-banner strong{color:#8a5b00}
.photo-upload{margin:14px 0 4px;padding:14px 16px;border:1px dashed #cfdced;border-radius:12px;background:#f8fbff}
.photo-upload .form-row{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin-bottom:10px}
.photo-upload .form-row:last-child{margin-bottom:0}
.photo-upload label{display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:#4b6076}
.photo-upload label.grow{flex:1;min-width:260px}
.photo-upload input[type=file]{background:#fff;border:1px solid #dbe4ef;border-radius:8px;padding:7px 9px;font-size:12.5px}
.photo-upload input[type=date],.photo-upload input[name=note]{border:1px solid #dbe4ef;border-radius:8px;padding:8px 10px;font-size:13px;min-width:150px}
.photo-section-head{align-items:flex-start}
.photo-section-head h2{margin-bottom:3px}
.photo-section-head p{margin:0;font-size:12px;line-height:1.6}
.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px;align-items:stretch}
.photo-card{min-width:0;height:100%;margin:0;border:1px solid #dfe8f2;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 3px 12px rgba(20,50,90,.07);display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease}
.photo-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(20,50,90,.12)}
.photo-stage{position:relative;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#edf3f9,#f8fafc);aspect-ratio:3/2;overflow:hidden}
.photo-card img{width:100%;height:100%;padding:6px;object-fit:contain;display:block;transition:transform .25s ease}
.photo-card a:hover img{transform:scale(1.025)}
.photo-open{position:absolute;right:9px;bottom:8px;padding:3px 8px;border-radius:999px;background:rgba(20,45,70,.78);color:#fff;font-size:11px;opacity:0;transform:translateY(3px);transition:opacity .18s ease,transform .18s ease}
.photo-stage:hover .photo-open{opacity:1;transform:translateY(0)}
.photo-card figcaption{min-height:128px;padding:11px 12px 12px;font-size:12px;line-height:1.6;display:flex;flex-direction:column;gap:5px}
.photo-title{display:flex;justify-content:space-between;gap:8px;font-weight:700;color:#20374f}
.photo-size{font-weight:400;color:#8b9bad;white-space:nowrap}
.photo-note{color:#41556b;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:38px}
.photo-meta{color:#8b9bad;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.photo-actions{margin-top:auto;display:flex;justify-content:flex-end}
.photo-card form{margin:0}
.photo-card .button.small{padding:4px 10px;font-size:12px}
@media (max-width:1260px){.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:860px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media (max-width:520px){.photo-grid{grid-template-columns:1fr}.photo-section-head{flex-direction:column;gap:8px}}

/* 用户账号：密码重置与临时密码 */
.user-password-note{margin:0 0 14px}
.user-password-note p{line-height:1.65}
.user-account-table{min-width:1180px}
.temp-password-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.temp-password{font-family:Consolas,"Courier New",monospace;font-size:13px;font-weight:700;color:#8a4b00;background:#fff5db;border:1px dashed #e2bb62;border-radius:6px;padding:3px 8px;letter-spacing:.02em}
.ghost{background:#f4f7fb;border:1px solid #d9e2ec;color:#456;padding:3px 8px;font-size:12px}
.ghost:hover{background:#e9f1fa}
.password-dialog{border:0;border-radius:14px;padding:0;width:min(430px,92vw);box-shadow:0 24px 70px rgba(15,40,70,.28)}
.password-dialog::backdrop{background:rgba(13,28,45,.45);backdrop-filter:blur(2px)}
.password-dialog form{padding:22px 24px;display:flex;flex-direction:column;gap:12px}
.password-dialog h3{margin:0;font-size:18px;color:#1d3a56}
.password-dialog label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:#38475a;font-size:13px}
.password-dialog input{border:1px solid #cad4df;border-radius:8px;background:#fff;padding:10px 11px;font-family:Consolas,"Courier New",monospace;font-size:14px;letter-spacing:.03em}
.password-dialog-actions{justify-content:flex-end;flex-wrap:wrap}
.password-create-actions{justify-content:flex-start;margin-top:-6px}

