:root{
  --bg:#F2F5F4;
  --card:#FFFFFF;
  --ink:#16211E;
  --ink-2:#3B4A46;
  --muted:#798783;
  --line:#E4EAE8;
  --brand:#0E7A63;
  --brand-2:#12A183;
  --brand-soft:#E7F4F0;
  --amber:#B4690E;
  --blue:#2B5BD7;
  --done:#0E9A78;
  --doing:#5B8DEF;
  --pending:#F0B45C;
  --shadow:0 1px 2px rgba(13,42,35,.04),0 10px 26px -18px rgba(13,42,35,.35);
  --safe-b:env(safe-area-inset-bottom,0px);
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html,body{margin:0;padding:0}
body{
  background:#DFE7E4;
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Noto Sans SC","Microsoft YaHei",sans-serif;
  font-size:15px;line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0}
input,select,textarea{font:inherit;color:inherit}
img{display:block;max-width:100%}
h1,h2,h3,p,ul{margin:0}
ul{padding:0;list-style:none}

/* ============ 壳层 ============ */
.app{
  width:100%;max-width:480px;margin:0 auto;
  min-height:100vh;min-height:100dvh;
  background:var(--bg);
  display:flex;flex-direction:column;
  position:relative;
  box-shadow:0 0 70px rgba(8,38,32,.14);
}
.appbar{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:center;gap:10px;
  padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;
  background:rgba(247,250,249,.9);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(220,229,226,.7);
}
.appbar-title{flex:1;min-width:0}
.appbar-title .brand-line{
  font-size:9.5px;font-weight:700;color:var(--brand);letter-spacing:.2px;
  margin-bottom:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.92;
}
.appbar-title h1{font-size:19px;font-weight:700;letter-spacing:.2px;line-height:1.25}
.appbar-title p{font-size:11.5px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon-btn{
  width:34px;height:34px;border-radius:11px;display:grid;place-items:center;
  color:var(--ink-2);background:#fff;border:1px solid var(--line);flex:0 0 auto;
}
.icon-btn svg{width:19px;height:19px}
.avatar-btn{
  width:36px;height:36px;border-radius:50%;flex:0 0 auto;
  display:grid;place-items:center;
  background:linear-gradient(140deg,#1AA083,#0B5F4D);
  color:#fff;font-size:13px;font-weight:700;
  box-shadow:0 6px 14px -8px rgba(14,122,99,.9);
}
main{flex:1;padding-bottom:calc(86px + var(--safe-b))}
.screen{display:none;padding:14px 16px 10px}
#screen-list{padding-bottom:88px}
.screen.active{display:block;animation:fadeUp .22s ease both}
@keyframes fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ============ 筛选 / 导出 ============ */
.filter-wrap{padding:10px 16px 0;background:var(--bg)}
.filter-bar{
  display:flex;align-items:center;gap:8px;
  background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:7px 8px;box-shadow:var(--shadow);
}
.filter-toggle{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;
  height:30px;padding:0 10px;border-radius:9px;
  background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:700;
}
.filter-toggle svg{width:15px;height:15px}
.filter-toggle i{
  font-style:normal;min-width:15px;height:15px;padding:0 4px;border-radius:99px;
  background:var(--brand);color:#fff;font-size:9px;line-height:15px;text-align:center;
}
.filter-summary{
  flex:1;min-width:0;font-size:11px;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.export-btn{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;
  height:30px;padding:0 11px;border-radius:9px;
  background:linear-gradient(135deg,#14A587,#0B6855);color:#fff;
  font-size:12px;font-weight:700;
  box-shadow:0 6px 14px -9px rgba(14,122,99,.95);
}
.export-btn svg{width:14px;height:14px}
.export-btn:active{transform:scale(.98)}
.filter-panel{
  margin-top:8px;background:#fff;border:1px solid var(--line);
  border-radius:16px;padding:12px;box-shadow:var(--shadow);
  animation:fadeUp .18s ease both;
}
.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.filter-field{display:block;min-width:0}
.filter-field>span{display:block;font-size:10.5px;color:var(--muted);font-weight:600;margin-bottom:4px}
.filter-field select{
  width:100%;height:36px;border:1px solid var(--line);border-radius:9px;
  background-color:#F7FAF9;font-size:12.5px;padding:0 26px 0 9px;
  appearance:none;-webkit-appearance:none;outline:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23798783' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 8px center;background-size:12px;
}
.filter-field select:focus{border-color:var(--brand);background-color:#fff}
.filter-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}
.filter-result{font-size:11px;color:var(--muted)}
.filter-result b{color:var(--brand);font-size:13px}

/* ============ 底部导航 ============ */
.tabbar{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:480px;z-index:30;
  display:grid;grid-template-columns:repeat(4,1fr);
  padding:6px 8px calc(6px + var(--safe-b));
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border-top:1px solid var(--line);
}
.tab{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  color:#93A19D;font-size:10.5px;font-weight:600;padding:4px 0 2px;
  transition:color .15s;
}
.tab svg{width:22px;height:22px}
.tab.active{color:var(--brand)}
.tab-cam{gap:3px;color:var(--brand)}
.cam-fab{
  width:54px;height:54px;margin-top:-24px;border-radius:50%;
  display:grid;place-items:center;color:#fff;
  background:linear-gradient(145deg,#17AB8B,#0A614F);
  border:4px solid var(--bg);
  box-shadow:0 10px 22px -8px rgba(14,122,99,.75);
  transition:transform .15s;
}
.tab-cam:active .cam-fab{transform:scale(.94)}
.cam-fab svg{width:25px;height:25px}
.cam-label{font-size:10.5px;font-weight:700;color:var(--brand);margin-top:1px}

/* ============ 通用组件 ============ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:40px;padding:0 16px;border-radius:12px;
  background:var(--brand);color:#fff;font-weight:600;font-size:14px;
  transition:transform .12s,filter .12s;
}
.btn:active{transform:scale(.985);filter:brightness(.95)}
.btn.primary{background:linear-gradient(135deg,#14A587,#0B6855);box-shadow:0 12px 26px -14px rgba(14,122,99,.9)}
.btn.big{width:100%;height:50px;font-size:15px;border-radius:14px}
.btn.ghost{background:#fff;color:var(--ink-2);border:1px solid var(--line)}
.btn.xs{height:28px;padding:0 10px;font-size:12px;border-radius:8px}
.btn.tiny{height:30px;padding:0 12px;font-size:12px;background:var(--brand-soft);color:var(--brand);border-radius:8px;font-weight:600}
.btn.tiny.soft{background:#F1F5F4;color:var(--ink-2)}
.btn-ico{width:19px;height:19px}
.link-btn{color:var(--brand);font-size:12px;font-weight:600}
.skip-photo{display:block;margin:14px auto 2px;font-size:12.5px;text-decoration:underline;text-underline-offset:3px}
.photo-fab{
  position:fixed;right:18px;bottom:calc(86px + var(--safe-b));z-index:35;
  display:flex;align-items:center;gap:6px;height:44px;padding:0 15px;
  border-radius:22px;color:#fff;font-size:12.5px;font-weight:700;
  background:linear-gradient(145deg,#17AB8B,#0A614F);
  box-shadow:0 12px 24px -10px rgba(14,122,99,.8);
}
.photo-fab:active{transform:scale(.96)}
.photo-fab svg{width:19px;height:19px}

/* 新报修页面横幅 */
.notify-banner{
  position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:9px;
  margin:0;padding:10px 12px;color:#fff;
  background:linear-gradient(120deg,#0E7A63,#14A183);
  box-shadow:0 6px 18px -8px rgba(14,122,99,.7);
}
.notify-banner[hidden]{display:none}
.notify-pulse{width:9px;height:9px;border-radius:50%;background:#FFD666;flex:none;animation:npulse 1.2s infinite}
@keyframes npulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.72)}}
.notify-copy{display:flex;flex-direction:column;min-width:0;flex:1}
.notify-copy b{font-size:13px}
.notify-copy span{font-size:11.5px;opacity:.86;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notify-open{border:1px solid rgba(255,255,255,.55);color:#fff;font-size:11.5px;font-weight:700;padding:5px 10px;border-radius:99px}
.notify-close{color:#fff;font-size:20px;line-height:1;padding:0 2px;opacity:.8}
.notify-switch{width:18px;height:18px;accent-color:#0E7A63;flex:none}

.pill{font-size:11px;padding:3px 8px;border-radius:99px;font-weight:700;white-space:nowrap;line-height:1.3}
.pill.pending{background:#FDF0DA;color:#A85F06}
.pill.doing{background:#E7EEFF;color:#2B5BD7}
.pill.done{background:#E2F4EC;color:#0B7A5C}

.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:12px;box-shadow:var(--shadow)}
.card-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px}
.card-head h3{font-size:14.5px;font-weight:700}
.muted{color:var(--muted);font-size:11.5px}

.field{display:block;margin-bottom:14px;position:relative}
.field>span{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-2);font-weight:600;margin-bottom:7px}
.field em{color:#D9534F;font-style:normal}
.field small{font-weight:400;color:var(--muted);font-size:11px}
.field .opt{color:#9AA8A4;background:#EFF3F2;border-radius:5px;padding:1px 5px;font-size:10px}
.field input,.field select,.field textarea{
  width:100%;background:#F6F9F8;border:1px solid var(--line);border-radius:12px;
  padding:12px 14px;font-size:16px;outline:none;
  transition:border-color .15s,box-shadow .15s,background .15s;
}
.field select{
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23798783' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px;
  padding-right:40px;
}
.field input::placeholder,.field textarea::placeholder{color:#A9B5B1}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px rgba(14,122,99,.12);
}
.field textarea{min-height:106px;resize:vertical;line-height:1.65;font-size:16px}
.segmented{display:flex;gap:6px;background:#F1F6F4;border:1px solid var(--line);border-radius:12px;padding:4px}
.segmented button{flex:1;height:38px;border-radius:9px;font-size:14px;font-weight:600;color:var(--muted);transition:background .15s,color .15s}
.segmented button.active{background:#fff;color:var(--brand);box-shadow:0 2px 8px -4px rgba(9,45,36,.45)}
.field .counter{position:absolute;right:6px;bottom:8px;font-size:10.5px;color:#A9B5B1;background:transparent}
.field.compact{margin-bottom:0}
.field.compact>span{font-size:11.5px;color:var(--muted);font-weight:500}

/* ============ 记录列表 ============ */
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto;height:32px;padding:0 12px;border-radius:99px;
  background:#fff;border:1px solid var(--line);color:var(--ink-2);
  font-size:12.5px;font-weight:600;display:inline-flex;align-items:center;gap:5px;
  transition:all .15s;
}
.chip i{font-style:normal;font-size:10.5px;color:var(--muted);background:#F0F4F2;border-radius:99px;padding:0 5px;line-height:16px}
.chip.active{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 6px 14px -8px rgba(14,122,99,.9)}
.chip.active i{background:rgba(255,255,255,.22);color:#fff}

.list{display:flex;flex-direction:column;gap:10px}
.rec{
  background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:11px;display:flex;gap:11px;box-shadow:var(--shadow);
  transition:transform .12s;
}
.rec:active{transform:scale(.994)}
.rec-thumb{
  width:76px;height:76px;border-radius:12px;object-fit:cover;
  flex:0 0 auto;background:#EAF0EE;
}
.rec-main{flex:1;min-width:0;display:flex;flex-direction:column}
.rec-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rec-loc{font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec-desc{
  font-size:12.5px;color:#56635F;margin-top:4px;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.rec-op{font-size:11px;color:var(--muted);margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:7px;flex-wrap:wrap}
.rec-time{font-size:10.5px;color:#9BA8A4;white-space:nowrap}
.rec-actions{display:flex;align-items:center;gap:6px}
.done-tag{font-size:11px;color:#0B7A5C;font-weight:600;background:#E2F4EC;border-radius:7px;padding:4px 8px}

.empty{
  background:#fff;border:1px dashed #D6E0DD;border-radius:18px;
  padding:38px 22px;text-align:center;margin-top:6px;
}
.empty-icon{
  width:56px;height:56px;margin:0 auto 12px;border-radius:18px;
  display:grid;place-items:center;color:var(--brand);
  background:var(--brand-soft);
}
.empty-icon svg{width:26px;height:26px}
.empty h3{font-size:15px;font-weight:700}
.empty p{font-size:12.5px;color:var(--muted);margin:5px 0 16px}
.empty .btn{height:40px;font-size:13.5px}

/* ============ 报修登记 ============ */
.capture-hero{
  text-align:center;padding:22px 18px 20px;border-radius:20px;
  background:
    radial-gradient(120% 100% at 50% 0%,rgba(18,161,131,.16),rgba(18,161,131,0) 62%),
    linear-gradient(180deg,#FFFFFF,#F7FBFA);
  border:1px solid var(--line);
  margin-bottom:14px;
}
.capture-icon{
  width:62px;height:62px;border-radius:22px;margin:0 auto 12px;
  display:grid;place-items:center;color:#fff;
  background:linear-gradient(145deg,#17AB8B,#0A614F);
  box-shadow:0 14px 26px -14px rgba(14,122,99,.9);
}
.capture-icon svg{width:30px;height:30px}
.capture-hero h2{font-size:17px;font-weight:700;letter-spacing:.2px}
.capture-hero p{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.7}
#btnCamera{margin-bottom:10px}
#btnAlbum{margin-bottom:16px}
.tips-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 14px 8px;box-shadow:var(--shadow)}
.tips-card h3{font-size:13px;font-weight:700;margin-bottom:9px}
.tips-card li{display:flex;gap:8px;font-size:12px;color:#5B6864;padding:4px 0;align-items:flex-start;line-height:1.55}
.tips-card li b{
  flex:0 0 auto;width:17px;height:17px;border-radius:50%;margin-top:1px;
  background:var(--brand-soft);color:var(--brand);font-size:10px;
  display:grid;place-items:center;font-weight:700;
}
.recent-strip{margin-top:16px}
.strip-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.strip-head h3{font-size:13px;font-weight:700}
.strip-body{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.strip-body::-webkit-scrollbar{display:none}
.strip-item{flex:0 0 auto;width:72px}
.strip-item img{width:72px;height:72px;object-fit:cover;border-radius:12px;border:1px solid var(--line)}
.strip-item span{display:block;font-size:10px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ============ 表单 ============ */
.photo-field{
  display:flex;gap:12px;background:#fff;border:1px solid var(--line);
  border-radius:16px;padding:11px;margin-bottom:16px;box-shadow:var(--shadow);
}
.photo-preview{
  width:106px;height:106px;border-radius:12px;overflow:hidden;position:relative;
  background:#EDF2F0;flex:0 0 auto;
}
.photo-preview img{width:100%;height:100%;object-fit:cover}
.photo-empty{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:2px;
  color:#8C9B96;font-size:11px;line-height:1.5;text-align:center;padding-bottom:14px;
}
.photo-empty small{font-size:10px;color:#AFBBB6}
.photo-badge{
  position:absolute;left:0;bottom:0;right:0;
  font-size:9.5px;color:#fff;text-align:center;padding:3px 0;
  background:linear-gradient(0deg,rgba(0,0,0,.55),rgba(0,0,0,0));
}
.photo-side{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px}
.field-label{font-size:13px;font-weight:700;color:var(--ink)}
.hint{font-size:11px;color:var(--muted);line-height:1.5}
.photo-actions{display:flex;gap:6px;margin-top:4px}
.desc-tag{color:var(--brand)!important;background:var(--brand-soft);border-radius:5px;padding:1px 6px;font-size:10px!important}
.lock-note{color:var(--muted)!important}
.readonly-box{
  display:flex;align-items:center;gap:10px;
  background:#F1F6F4;border:1px dashed #C6D8D2;border-radius:12px;padding:10px 13px;
}
.op-lines{display:flex;flex-direction:column;line-height:1.35;min-width:0}
.op-lines strong{font-size:13.5px}
.op-lines span{font-size:11.5px;color:var(--muted);letter-spacing:.3px}
.lock-ico{width:18px;height:18px;color:var(--brand);margin-left:auto;flex:0 0 auto}
.form-note{font-size:11px;color:#9BA8A4;text-align:center;margin:10px 0 4px}
#btnSave{margin-top:4px}

/* ============ 统计 ============ */
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:12px}
.kpi{
  background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:11px 12px;box-shadow:var(--shadow);
}
.kpi span{display:block;font-size:11px;color:var(--muted)}
.kpi strong{font-size:22px;font-weight:750;letter-spacing:-.5px;line-height:1.35}
.kpi em{font-style:normal;font-size:10.5px;color:var(--muted);margin-left:2px}
.kpi.hl strong{color:var(--brand)}
.kpi.warn strong{color:#B4690E}

.donut-row{display:flex;align-items:center;gap:18px;padding:2px 0 4px}
.donut{
  width:124px;height:124px;border-radius:50%;flex:0 0 auto;position:relative;
  background:#E9EFED;transition:background .4s;
}
.donut-hole{
  position:absolute;inset:15px;border-radius:50%;background:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-shadow:inset 0 0 0 1px rgba(228,234,232,.8);
}
.donut-hole strong{font-size:23px;font-weight:750;letter-spacing:-.5px;color:var(--ink)}
.donut-hole span{font-size:10px;color:var(--muted);margin-top:1px}
.legend{flex:1;display:flex;flex-direction:column;gap:9px}
.legend-item{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ink-2)}
.legend-dot{width:9px;height:9px;border-radius:3px;flex:0 0 auto}
.legend-item b{margin-left:auto;font-size:13px;font-weight:700}
.legend-item small{color:var(--muted);font-size:10.5px;width:34px;text-align:right}

.bars{display:flex;flex-direction:column;gap:11px}
.bar-row{display:grid;grid-template-columns:92px 1fr 30px;gap:10px;align-items:center;font-size:11.5px}
.bar-label{color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px}
.bar-track{height:9px;border-radius:99px;background:#EEF2F0;overflow:hidden}
.bar-fill{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#34B79A,#0E7A63);transition:width .5s ease}
.bar-row.top .bar-fill{background:linear-gradient(90deg,#EDB266,#C77B20)}
.bar-row.top .bar-label{font-weight:700;color:var(--ink)}
.bar-count{text-align:right;font-weight:700;color:var(--ink-2);font-size:12px}
.top-badge{font-size:8.5px;background:#FDF0DA;color:#A85F06;border-radius:4px;padding:1px 4px;font-weight:700;flex:0 0 auto}

.hotel-row{padding:9px 0;border-bottom:1px dashed #EDF2F0}
.hotel-row:last-child{border-bottom:0;padding-bottom:2px}
.hotel-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.hotel-name{font-size:12.5px;font-weight:600;color:var(--ink-2);display:flex;align-items:center;gap:6px;min-width:0}
.hotel-name span{font-weight:400;color:#A9B5B1;font-size:10.5px}
.hotel-nums{font-size:11.5px;color:var(--muted);white-space:nowrap}
.hotel-nums b{color:var(--ink);font-size:12.5px}
.hotel-bar{height:6px;border-radius:99px;background:#EEF2F0;overflow:hidden}
.hotel-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#34B79A,#0E7A63)}
.hotel-bar i.low{background:linear-gradient(90deg,#EDB266,#C77B20)}
.cat-sub{margin-top:4px;font-size:10.5px;color:var(--muted)}

.stats-empty{padding:20px 4px;text-align:center;font-size:12px;color:var(--muted)}

/* ============ 我的 ============ */
.profile{
  display:flex;align-items:center;gap:12px;
  background:linear-gradient(150deg,#0F836C,#0A5344);
  border-radius:20px;padding:18px 16px;color:#fff;margin-bottom:12px;
  box-shadow:0 18px 34px -22px rgba(10,83,68,.9);
  position:relative;overflow:hidden;
}
.profile::after{
  content:"";position:absolute;right:-40px;top:-60px;width:150px;height:150px;border-radius:50%;
  background:rgba(255,255,255,.08);
}
.profile-avatar{
  width:52px;height:52px;border-radius:50%;flex:0 0 auto;
  background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);
  display:grid;place-items:center;font-size:19px;font-weight:700;
}
.profile-info{flex:1;min-width:0}
.profile-info h3{font-size:16px;font-weight:700}
.profile-info p{font-size:12px;opacity:.78;margin-top:2px;letter-spacing:.5px}
.profile .pill{background:rgba(255,255,255,.18);color:#fff}
.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:14px}
.mini-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 8px;text-align:center;box-shadow:var(--shadow)}
.mini-stat strong{display:block;font-size:18px;font-weight:750;color:var(--brand)}
.mini-stat span{font-size:10.5px;color:var(--muted)}
.menu{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-bottom:12px;box-shadow:var(--shadow)}
.menu-item{
  width:100%;display:flex;align-items:center;gap:11px;padding:13px 14px;
  border-bottom:1px solid #F0F4F2;text-align:left;
}
.menu-item:last-child{border-bottom:0}
.menu-item:active{background:#F7FAF9}
.menu-ico{
  width:34px;height:34px;border-radius:11px;background:var(--brand-soft);
  color:var(--brand);display:grid;place-items:center;flex:0 0 auto;
}
.menu-ico svg{width:18px;height:18px}
.menu-ico.danger{background:#FDEEED;color:#C6453C}
.menu-text{flex:1;min-width:0}
.menu-text b{display:block;font-size:13.5px;font-weight:600}
.menu-text small{display:block;font-size:10.5px;color:var(--muted);margin-top:1px}
.chev{width:16px;height:16px;color:#C4CFCB;flex:0 0 auto}
.note-card{
  background:#FFFDF8;border:1px solid #F0E7D6;border-radius:16px;
  padding:14px;margin-bottom:14px;
}
.note-card h3{font-size:13px;font-weight:700;color:#8A6320;margin-bottom:7px}
.note-card li{font-size:11px;color:#8B7A5D;line-height:1.65;padding-left:11px;position:relative;margin-bottom:4px}
.note-card li::before{content:"";position:absolute;left:0;top:7px;width:4px;height:4px;border-radius:50%;background:#D9B679}
.version{text-align:center;font-size:10.5px;color:#A9B5B1;padding:4px 0 8px}

/* ============ 登录 ============ */
.login{
  position:fixed;inset:0;z-index:50;overflow-y:auto;
  background:radial-gradient(120% 80% at 85% 0%,#1C8E77 0%,#0B4A3F 55%,#07332C 100%);
  display:flex;align-items:center;justify-content:center;
  padding:32px 20px calc(32px + var(--safe-b));
  transition:opacity .25s,visibility .25s;
}
.login.hide{opacity:0;visibility:hidden;pointer-events:none}
.login-glow{position:absolute;border-radius:50%;filter:blur(10px);pointer-events:none}
.login-glow.a{width:260px;height:260px;right:-90px;top:-70px;background:rgba(52,183,154,.25)}
.login-glow.b{width:220px;height:220px;left:-100px;bottom:-60px;background:rgba(240,180,92,.16)}
.login-inner{width:100%;max-width:400px;position:relative;z-index:1}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:26px;color:#fff}
.brand-mark{
  width:48px;height:48px;border-radius:15px;flex:0 0 auto;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);
  display:grid;place-items:center;color:#7FE0C6;
  backdrop-filter:blur(4px);
}
.brand-mark svg{width:24px;height:24px}
.brand h1{font-size:20px;font-weight:700;letter-spacing:.3px}
.brand .brand-name{font-size:16.5px;line-height:1.4;letter-spacing:.2px}
.brand p{font-size:11.5px;opacity:.65;margin-top:3px}
.login-card{
  background:#fff;border-radius:24px;padding:22px 20px 18px;
  box-shadow:0 30px 60px -30px rgba(0,20,15,.8);
}
.login-card h2{font-size:17px;font-weight:700}
.login-tip{font-size:11.5px;color:var(--muted);line-height:1.6;margin:5px 0 18px}
.code-row{display:flex;gap:8px;align-items:stretch}
.code-row input{flex:1;min-width:0;letter-spacing:2px;font-weight:600}
.send-code{
  flex:0 0 auto;padding:0 13px;border-radius:12px;
  background:var(--brand-soft);color:var(--brand);
  border:1px solid #D3E9E2;font-size:12px;font-weight:700;
  min-width:88px;transition:opacity .15s;
}
.send-code:active{opacity:.8}
.send-code:disabled{background:#F2F5F4;border-color:var(--line);color:#A9B5B1}
.demo-code{
  margin:-2px 0 12px;padding:8px 11px;border-radius:9px;
  background:var(--brand-soft);color:#0B6A56;
  font-size:11.5px;line-height:1.5;display:flex;align-items:center;gap:4px;
}
.demo-code b{font-size:14.5px;letter-spacing:2px}
.login-error{font-size:11.5px;color:#C6453C;min-height:16px;margin:-6px 0 8px}
.login-btn{width:100%;height:50px;border-radius:14px;font-size:15px;box-shadow:0 12px 24px -14px rgba(14,122,99,.9)}
.login-foot{font-size:10.5px;color:#A9B5B1;text-align:center;margin-top:14px}

/* ============ 详情弹层 ============ */
.sheet-wrap{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}
.sheet-mask{position:absolute;inset:0;background:rgba(10,25,21,.45);backdrop-filter:blur(3px);animation:fadeIn .2s ease}
.sheet{
  position:relative;width:100%;max-width:480px;max-height:88dvh;
  background:#fff;border-radius:24px 24px 0 0;
  display:flex;flex-direction:column;
  animation:sheetUp .28s cubic-bezier(.2,.9,.3,1);
  padding-bottom:var(--safe-b);
}
@keyframes sheetUp{from{transform:translateY(40px);opacity:.5}to{transform:none;opacity:1}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.sheet-handle{width:100%;padding:9px 0 5px;display:flex;justify-content:center;flex:0 0 auto}
.sheet-handle::after{content:"";width:38px;height:4px;border-radius:99px;background:#DCE5E1}
.sheet-scroll{overflow-y:auto;padding:0 18px 8px;-webkit-overflow-scrolling:touch}
.sheet-photo{width:100%;height:216px;object-fit:cover;border-radius:14px;background:#EDF2F0}
.sheet-pill-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 0 4px}
.sheet-loc{font-size:18px;font-weight:700;letter-spacing:.2px;margin-top:6px}
.sheet-desc{font-size:13.5px;color:#4A5753;line-height:1.75;margin-top:8px;white-space:pre-wrap;word-break:break-word}
.meta{margin:16px 0 4px;border-top:1px solid #EEF2F0;padding-top:6px}
.meta-row{display:flex;justify-content:space-between;gap:14px;padding:7px 0;font-size:12.5px}
.meta-row dt{color:var(--muted);flex:0 0 auto}
.meta-row dd{margin:0;text-align:right;color:var(--ink-2);word-break:break-all}
.meta-row dd b{font-weight:600}
.sheet-actions{
  display:flex;gap:10px;padding:10px 18px 14px;flex:0 0 auto;
  border-top:1px solid #F0F4F2;background:#fff;border-radius:0 0 24px 24px;
}
.sheet-actions .btn{flex:1;height:46px;font-size:14px;border-radius:13px}

/* ============ Toast / Busy ============ */
.toast{
  position:fixed;left:50%;bottom:calc(104px + var(--safe-b));
  transform:translate(-50%,12px);z-index:80;
  max-width:80vw;padding:10px 18px;border-radius:12px;
  background:rgba(20,36,31,.92);color:#fff;font-size:12.5px;
  text-align:center;opacity:0;pointer-events:none;
  transition:opacity .2s,transform .2s;
  box-shadow:0 14px 30px -14px rgba(0,0,0,.5);
}
.toast.show{opacity:1;transform:translate(-50%,0)}
.busy{
  position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:12px;
  background:rgba(248,251,250,.72);backdrop-filter:blur(6px);
  color:var(--ink-2);font-size:12.5px;
}
.spinner{
  width:30px;height:30px;border-radius:50%;
  border:3px solid rgba(14,122,99,.18);border-top-color:var(--brand);
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* ============ 离线 / 演示提示 / PWA ============ */
.offline-bar{
  position:relative;z-index:25;
  padding:7px 16px;background:#5C4A12;color:#FFF6E0;
  font-size:11.5px;line-height:1.45;text-align:center;
}
.demo-warn{
  display:flex;flex-direction:column;gap:2px;
  background:#FFF4E2;border:1px solid #F0D3A4;color:#8A4B06;
  border-radius:12px;padding:9px 11px;margin-bottom:12px;
  font-size:11px;line-height:1.55;
}
.demo-warn b{font-size:11.5px;font-weight:700}
.profile-info .scope-note{font-size:10.5px;opacity:.72;margin-top:3px;letter-spacing:0}
.btn.danger{background:#FDECEA;color:#B23A2F;border:1px solid #F3D0CB}
.install-tip{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(84px + var(--safe-b));z-index:45;
  width:calc(100% - 24px);max-width:456px;
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;background:#fff;border:1px solid #E1EBE7;
  border-radius:14px;box-shadow:0 16px 34px -18px rgba(9,45,36,.55);
}
.install-ico{
  width:34px;height:34px;flex:0 0 auto;border-radius:10px;
  display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);
}
.install-ico svg{width:19px;height:19px}
.install-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.install-text b{font-size:12.5px;font-weight:700}
.install-text span{font-size:10.5px;color:var(--muted);line-height:1.4}
.install-close{
  width:26px;height:26px;flex:0 0 auto;border-radius:50%;
  color:#9AA8A4;font-size:17px;line-height:1;display:grid;place-items:center;
}
.install-close:active{background:#F1F5F3}

/* 桌面预览 */
@media (min-width:520px){
  body{padding:0}
  .app{box-shadow:0 0 0 1px rgba(14,60,50,.08),0 30px 80px rgba(8,38,32,.18)}
}

/* 员工管理 */
.staff-actions { display: flex; gap: 8px; margin-top: 10px; }
#screen-staff .card .field { margin-bottom: 12px; }
#screen-staff #staffSave { width: 100%; margin-top: 4px; }
