:root{
  --bg:#f4f6f8; --surface:#fff; --ink:#1d2532; --muted:#7b8697; --line:#e8ecf1;
  --brand:#e85d2a; --brand-d:#d44e1f; --brand-soft:#fff1ea;
  --green:#1f9d68; --green-soft:#e9f7f0;
  --amber:#d89024; --amber-soft:#fff5e4;
  --blue:#4b76d8; --blue-soft:#edf2ff;
  --red:#d9534f; --red-soft:#fdeceb;
  --shadow:0 6px 24px rgba(30,44,66,.07);
  --radius:16px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  background:var(--bg); color:var(--ink); -webkit-font-smoothing:antialiased;
  font-size:14px; line-height:1.55;
}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
[hidden]{display:none!important}

/* ---------- 通用 ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 18px;border-radius:10px;font-weight:600;transition:.18s}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-d)}
.btn-ghost{background:#f2f4f7;color:#465064}
.btn-ghost:hover{background:#e8ecf1}
.btn-block{width:100%;padding:13px}
.btn-sm{padding:7px 12px;font-size:12px;border-radius:8px}
.icon-btn{width:32px;height:32px;border-radius:8px;background:#f2f4f7;display:grid;place-items:center;color:var(--muted)}
.icon-btn:hover{background:#e6eaf0;color:var(--ink)}
.chip{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap}
.chip.pending{background:#f0f2f5;color:#7b8697}
.chip.doing{background:var(--blue-soft);color:var(--blue)}
.chip.done{background:var(--green-soft);color:var(--green)}
.chip.blocked{background:var(--red-soft);color:var(--red)}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}
.dot.pending{background:#c9d0da}.dot.doing{background:var(--blue)}.dot.done{background:var(--green)}.dot.blocked{background:var(--red)}
.muted{color:var(--muted)}
.toast{position:fixed;z-index:999;left:50%;bottom:28px;transform:translateX(-50%);background:#1d2532;color:#fff;padding:11px 18px;border-radius:10px;font-size:13px;box-shadow:0 8px 28px rgba(0,0,0,.2);max-width:86vw;text-align:center}
.field{display:block;margin-bottom:14px}
.field>span{display:block;font-size:12px;color:#5c6879;margin-bottom:6px;font-weight:600}
.field input,.field select,.field textarea{
  width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;outline:none;transition:.15s
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.field textarea{resize:vertical;min-height:74px}

/* ---------- 登录 ---------- */
.login-view{min-height:100vh;display:grid;place-items:center;position:relative;overflow:hidden;padding:24px 16px}
.login-bg{position:absolute;inset:0;background:linear-gradient(145deg,#fff7f2 0%,#f4f6f8 52%,#eef2f7 100%)}
.login-bg span{position:absolute;border-radius:50%;filter:blur(2px)}
.login-bg span:nth-child(1){width:360px;height:360px;background:#ffdfd0;top:-140px;left:-90px;opacity:.6}
.login-bg span:nth-child(2){width:280px;height:280px;background:#ffe9dd;bottom:-120px;right:-70px;opacity:.7}
.login-bg span:nth-child(3){width:180px;height:180px;background:#e6edfb;top:20%;right:8%;opacity:.5}
.login-card{position:relative;width:100%;max-width:400px;background:rgba(255,255,255,.96);border:1px solid #fff;border-radius:24px;padding:34px 28px 26px;box-shadow:0 18px 60px rgba(60,50,40,.11)}
.brand-mark{display:flex;align-items:center;gap:12px}
.brand-paw{width:48px;height:48px;border-radius:14px;background:var(--brand);display:grid;place-items:center;font-size:25px;color:#fff}
.brand-name{font-size:20px;font-weight:800;letter-spacing:.5px}
.brand-sub{font-size:12px;color:var(--muted);margin-top:1px}
.login-intro{margin:18px 0 22px;color:#687487;font-size:13px}
.login-tabs{display:flex;background:#f3f5f8;padding:4px;border-radius:11px;margin-bottom:20px}
.login-tab{flex:1;padding:9px;border-radius:8px;font-size:13px;font-weight:600;color:#7b8697}
.login-tab.active{background:#fff;color:var(--brand);box-shadow:0 2px 8px rgba(30,44,66,.08)}
.demo-hint{margin-top:14px;background:#fff8f4;border:1px dashed #f3c9b5;color:#9a6449;padding:9px 11px;border-radius:9px;font-size:11px;line-height:1.7;word-break:break-all}
.demo-hint b{color:var(--brand);margin-right:6px}
.login-foot{text-align:center;color:#a4adbb;font-size:11px;margin-top:20px}

/* ---------- 加盟商端外壳 ---------- */
.store-view{min-height:100vh;display:flex;justify-content:center;background:#e9edf2}
.phone-shell{width:100%;max-width:430px;background:var(--bg);min-height:100vh;position:relative;box-shadow:0 0 40px rgba(30,44,66,.12);display:flex;flex-direction:column}
.store-topbar{background:linear-gradient(135deg,#f07341,#e85d2a);color:#fff;padding:22px 20px 46px;position:relative;overflow:hidden;flex:none}
.store-topbar:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.09);right:-80px;top:-110px}
.store-topbar-row{display:flex;justify-content:space-between;align-items:flex-start;position:relative;z-index:1}
.topbar-hello{font-size:13px;opacity:.9}
.topbar-store{font-size:19px;font-weight:700;margin-top:4px}
.topbar-logo{width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.2);display:grid;place-items:center;font-size:20px}
.store-main{flex:1;padding:0 16px 96px;margin-top:-30px;position:relative;z-index:2}
.tabbar{position:fixed;bottom:0;width:100%;max-width:430px;height:64px;background:rgba(255,255,255,.97);border-top:1px solid var(--line);display:flex;z-index:20;padding-bottom:env(safe-area-inset-bottom)}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#9aa4b3;font-size:10px}
.tab-ico{font-size:19px;line-height:1}
.tab.active{color:var(--brand);font-weight:700}

/* 加盟商卡片 */
.card{background:#fff;border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);margin-bottom:12px}
.card-title{font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.card-title small{font-size:11px;color:var(--muted);font-weight:500}
.hero{background:#fff;border-radius:20px;padding:18px 16px;box-shadow:var(--shadow);margin-bottom:12px}
.hero-top{display:flex;align-items:center;gap:16px}
.ring{width:92px;height:92px;flex:none;position:relative}
.ring svg{transform:rotate(-90deg)}
.ring-txt{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring-txt b{font-size:22px;line-height:1;color:var(--brand)}
.ring-txt small{font-size:10px;color:var(--muted);margin-top:4px}
.hero-info h2{font-size:16px;margin-bottom:4px}
.hero-info p{font-size:12px;color:var(--muted);line-height:1.8}
.hero-foot{display:flex;gap:8px;margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}
.hero-stat{flex:1;text-align:center}
.hero-stat b{display:block;font-size:17px}
.hero-stat small{font-size:10px;color:var(--muted)}
.hero-stat+.hero-stat{border-left:1px solid var(--line)}
.now-card{background:linear-gradient(120deg,#fff6f1,#fff);border:1px solid #f7ded0}
.now-label{font-size:11px;color:var(--brand);font-weight:700;letter-spacing:.5px}
.now-title{font-size:15px;font-weight:700;margin:5px 0 6px}
.now-meta{font-size:12px;color:var(--muted);line-height:1.7}
.now-link{display:inline-flex;align-items:center;gap:4px;color:var(--brand);font-size:12px;font-weight:600;margin-top:10px}
.stage-row{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #f1f3f6}
.stage-row:last-child{border-bottom:0;padding-bottom:2px}
.stage-num{width:28px;height:28px;border-radius:9px;background:#f2f4f7;color:#8b95a5;font-size:12px;font-weight:700;display:grid;place-items:center;flex:none}
.stage-num.doing{background:var(--brand-soft);color:var(--brand)}
.stage-num.done{background:var(--green-soft);color:var(--green)}
.stage-body{flex:1;min-width:0}
.stage-body-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.stage-body-top b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.progress-line{height:5px;background:#edf0f4;border-radius:4px;margin-top:7px;overflow:hidden}
.progress-line i{display:block;height:100%;background:var(--brand);border-radius:4px}
.progress-line i.done{background:var(--green)}
.stage-body small{font-size:10px;color:var(--muted)}
.logi-row{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #f1f3f6}
.logi-row:last-child{border-bottom:0}
.logi-icon{width:30px;height:30px;border-radius:9px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:14px;flex:none}
.logi-main{flex:1;min-width:0}
.logi-main b{font-size:12px;display:block}
.logi-main small{font-size:11px;color:var(--muted);word-break:break-all}
.contact-note{font-size:12px;color:var(--muted);text-align:center;padding:14px 12px}

/* 流程页 */
.flow-head{display:flex;justify-content:space-between;align-items:center;padding:46px 4px 11px}
.flow-head b{font-size:17px}
.flow-head small{color:var(--muted);font-size:11px}
.stage-acc{background:#fff;border-radius:14px;margin-bottom:10px;box-shadow:var(--shadow);overflow:hidden}
.stage-acc-head{display:flex;align-items:center;gap:10px;padding:14px;width:100%;text-align:left}
.stage-acc-head .snum{width:26px;height:26px;border-radius:8px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.stage-acc-head .st{flex:1;min-width:0}
.stage-acc-head .st b{font-size:13px;display:block}
.stage-acc-head .st small{font-size:10px;color:var(--muted)}
.stage-acc-head .arrow{color:#b6bfcb;transition:.2s;font-size:12px}
.stage-acc.open .arrow{transform:rotate(90deg)}
.stage-acc-body{border-top:1px solid var(--line);padding:6px 10px 10px}
.task-row{display:flex;align-items:flex-start;gap:10px;padding:10px 4px;width:100%;text-align:left;border-bottom:1px solid #f3f5f7}
.task-row:last-child{border-bottom:0}
.task-row .dot{margin-top:6px}
.task-row .tb{flex:1;min-width:0}
.task-row .tb b{font-size:12px;display:block}
.task-row .tb small{font-size:10px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.task-row .tag{font-size:10px;color:var(--blue);background:var(--blue-soft);padding:2px 6px;border-radius:6px;margin-top:5px;display:inline-block}

/* 时间线 */
.timeline{position:relative;padding-left:22px}
.timeline:before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:#e9edf2}
.tl-item{position:relative;padding:0 0 18px}
.tl-item:last-child{padding-bottom:0}
.tl-item:before{content:"";position:absolute;left:-20px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--brand);border:2px solid #fff;box-shadow:0 0 0 2px var(--brand-soft)}
.tl-item b{font-size:12px}
.tl-item p{font-size:11px;color:var(--muted);margin:2px 0}
.tl-item time{font-size:10px;color:#a7b0bd}
.tl-jump{cursor:pointer;margin:0 -8px;padding:9px 8px;border-radius:10px;transition:background .15s}
.tl-jump:hover{background:#fff7f3}
.tl-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tl-go{font-size:10px;color:var(--brand);white-space:nowrap;font-weight:600}
.tl-where{display:inline-block;font-size:10px;color:#b8653d;background:#fff4ee;border:1px solid #ffe2d2;border-radius:6px;padding:2px 7px;margin:4px 0 1px}
.feed-hint{font-size:11px;color:var(--muted);text-align:center;padding:4px 10px 10px;line-height:1.6}
.task-row.highlight{background:#fff4ee;box-shadow:inset 3px 0 var(--brand)}

/* 我的 */
.me-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.me-avatar{width:52px;height:52px;border-radius:16px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:22px;font-weight:700}
.me-head b{font-size:16px;display:block}
.me-head small{color:var(--muted);font-size:11px}
.kv{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f1f3f6;font-size:12px}
.kv:last-child{border-bottom:0}
.kv span{color:var(--muted)}
.kv b{font-weight:600;text-align:right}
.logout-btn{width:100%;padding:12px;border-radius:10px;background:#fff;color:var(--red);font-weight:600;border:1px solid #f2d7d5}

/* ---------- 弹层 ---------- */
.sheet-mask,.modal-mask{position:fixed;inset:0;background:rgba(20,28,40,.42);z-index:50}
.sheet{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;max-height:86vh;overflow-y:auto;background:#fff;border-radius:22px 22px 0 0;z-index:51;padding:8px 20px 28px;box-shadow:0 -10px 40px rgba(0,0,0,.15)}
.sheet-handle{width:36px;height:4px;border-radius:4px;background:#dfe4ea;margin:4px auto 16px}
.sheet h2{font-size:18px;margin-bottom:4px}
.sheet .sheet-sub{font-size:11px;color:var(--muted);margin-bottom:16px}
.sheet-sec{margin-bottom:18px}
.sheet-sec h3{font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.5px;margin-bottom:8px;text-transform:uppercase}
.check-list{list-style:none}
.check-list li{position:relative;padding:5px 0 5px 20px;font-size:12px;color:#4c5869;line-height:1.6}
.check-list li:before{content:"✓";position:absolute;left:0;top:5px;color:var(--green);font-weight:700}
.note-box{background:#f7f9fb;border-radius:10px;padding:11px;font-size:12px;color:#4c5869;line-height:1.7}
.modal-mask{display:grid;place-items:center;padding:20px;z-index:60}
.modal{width:100%;max-width:520px;max-height:88vh;overflow:auto;background:#fff;border-radius:18px;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.2)}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.modal-head h2{font-size:17px}

/* ---------- 总部端 ---------- */
.admin-view{display:flex;min-height:100vh}
.sidebar{width:232px;flex:none;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.side-brand{display:flex;align-items:center;gap:10px;padding:22px 20px;border-bottom:1px solid var(--line)}
.side-logo{width:36px;height:36px;border-radius:11px;background:var(--brand);display:grid;place-items:center;font-size:19px;color:#fff}
.side-brand b{display:block;font-size:15px}
.side-brand small{font-size:10px;color:var(--muted)}
.side-section{font-size:10px;color:#a4adbb;padding:20px 22px 8px;letter-spacing:1px}
.side-nav{padding:0 10px}
.side-item{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border-radius:9px;color:#657184;font-size:13px;margin-bottom:3px;text-align:left}
.side-item span{font-size:15px;width:18px;text-align:center}
.side-item.active{background:var(--brand-soft);color:var(--brand);font-weight:700}
.side-item:hover:not(.active){background:#f5f7f9}
.side-bottom{margin-top:auto;padding:14px;border-top:1px solid var(--line)}
.side-user{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.avatar{width:34px;height:34px;border-radius:10px;background:#37445a;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700}
.side-user b{display:block;font-size:12px}
.side-user small{font-size:10px;color:var(--muted)}
.side-logout{width:100%;padding:8px;border-radius:8px;background:#f5f7f9;color:#7b8697;font-size:12px}
.side-logout:hover{color:var(--red)}
.admin-body{flex:1;min-width:0;display:flex;flex-direction:column}
.admin-topbar{background:#fff;border-bottom:1px solid var(--line);padding:20px 30px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.admin-topbar h1{font-size:20px}
.admin-topbar p{font-size:12px;color:var(--muted);margin-top:2px}
.admin-content{padding:24px 30px 40px;flex:1}
.admin-card{background:#fff;border-radius:14px;border:1px solid var(--line);box-shadow:0 2px 12px rgba(30,44,66,.03);padding:18px;margin-bottom:16px}
.admin-card h3{font-size:14px;margin-bottom:14px}
table{width:100%;border-collapse:collapse;font-size:12px}
th{text-align:left;color:#8b95a5;font-weight:600;font-size:11px;padding:10px 12px;background:#f7f9fb;white-space:nowrap}
td{padding:12px;border-bottom:1px solid #f1f3f6;vertical-align:middle}
tr:last-child td{border-bottom:0}
.tbl-actions{display:flex;gap:6px}
.mini-bar{width:88px;height:6px;background:#edf0f4;border-radius:4px;overflow:hidden;margin-top:5px}
.mini-bar i{display:block;height:100%;background:var(--brand);border-radius:4px}
.mini-bar i.done{background:var(--green)}
.search{padding:9px 12px;border:1px solid var(--line);border-radius:9px;width:220px;outline:none;font-size:12px}
.search:focus{border-color:var(--brand)}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.stat-box{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px}
.stat-box small{font-size:11px;color:var(--muted)}
.stat-box b{display:block;font-size:24px;margin-top:3px}
.back-link{color:var(--muted);font-size:12px;margin-bottom:12px;display:inline-block}
.back-link:hover{color:var(--brand)}
.detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.detail-head h2{font-size:20px}
.detail-head p{color:var(--muted);font-size:12px;margin-top:4px}
.detail-grid{display:grid;grid-template-columns:320px 1fr;gap:16px;align-items:start}
.stage-tree{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.tree-stage{border-bottom:1px solid #f1f3f6}
.tree-stage:last-child{border-bottom:0}
.tree-head{width:100%;display:flex;align-items:center;gap:8px;padding:12px 14px;text-align:left;background:#fafbfc}
.tree-head b{font-size:12px;flex:1}
.tree-head small{font-size:10px;color:var(--muted)}
.tree-list{padding:4px 0}
.tree-task{width:100%;display:flex;align-items:center;gap:8px;padding:8px 14px 8px 22px;text-align:left;font-size:12px;color:#556175}
.tree-task:hover{background:#f8fafc}
.tree-task.active{background:var(--brand-soft);color:var(--brand);font-weight:700}
.tree-task span:not(.dot){flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.editor-grid .field{margin-bottom:0}
.editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.logi-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.logi-form-grid .field{margin-bottom:0}
.logi-item{border:1px solid var(--line);border-radius:10px;padding:11px 12px;margin-bottom:8px;display:flex;gap:12px;align-items:flex-start}
.logi-item .li-main{flex:1;min-width:0}
.logi-item b{font-size:12px}
.logi-item small{font-size:11px;color:var(--muted);display:block;word-break:break-all}
.track-link{color:var(--brand);cursor:pointer;font-weight:600;word-break:break-all}
.track-link:hover{text-decoration:underline}
.track-card{background:#fff7f3;border:1px solid #ffd9c7;border-radius:14px;padding:14px 16px}
.track-no-label{font-size:10px;color:#b8653d;letter-spacing:.5px}
.track-no-value{font-size:17px;font-weight:800;color:#c2410c;letter-spacing:.5px;word-break:break-all;margin:3px 0 12px}
.track-dates{display:flex;gap:14px;flex-wrap:wrap;border-top:1px dashed #f0c7b2;padding-top:10px}
.track-dates div{display:flex;flex-direction:column;gap:2px}
.track-dates small{font-size:10px;color:#a96b4d}
.track-dates b{font-size:12px;color:#4c5869}
.board-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:14px}
.board-col{background:#f7f9fb;border:1px solid var(--line);border-radius:14px;padding:12px;min-height:180px}
.board-col h3{font-size:12px;margin-bottom:10px;display:flex;justify-content:space-between}
.board-store{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:8px;cursor:pointer}
.board-store:hover{border-color:var(--brand)}
.board-store b{font-size:12px;display:block}
.board-store small{font-size:10px;color:var(--muted)}
.empty{padding:36px;text-align:center;color:var(--muted);font-size:12px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}

/* ---- 账号管理 ---- */
.account-row{display:flex;align-items:center;gap:12px;padding:13px 4px;border-bottom:1px solid var(--line)}
.account-row:last-child{border-bottom:0}
.acct-main{flex:1;min-width:0}
.acct-main b{font-size:14px}
.acct-user{font-size:11px;color:var(--muted);margin-left:8px}
.acct-main small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.5}
.acct-actions{display:flex;gap:6px;align-items:center;flex-shrink:0}
.btn.danger{color:#d33}
.scope-box{border:1px solid var(--line);border-radius:12px;padding:14px;margin-top:14px;background:#fbfcfd}
.scope-title{font-size:12px;font-weight:600;margin-bottom:10px}
.scope-opt{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;margin-bottom:8px;cursor:pointer}
.scope-opt input{margin-top:3px;accent-color:var(--brand)}
.scope-opt b{font-size:13px;display:block}
.scope-opt small{font-size:11px;color:var(--muted);display:block;margin-top:2px}
.store-checks{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;max-height:230px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff}
.store-checks.disabled{opacity:.45;background:#f4f5f7}
.store-check{display:flex;align-items:center;gap:7px;font-size:12px;padding:6px 8px;border-radius:6px;cursor:pointer}
.store-check:hover{background:#f7f9fb}
.store-check input{accent-color:var(--brand)}
.store-check small{color:var(--muted);font-size:10px}
.scope-actions{display:flex;gap:6px;margin-top:8px}
@media(max-width:900px){
  .sidebar{width:66px}
  .side-brand{padding:18px 14px;justify-content:center}
  .side-brand>div,.side-section,.side-item span+span,.side-user>div,.side-logout{display:none}
  .side-item{justify-content:center;font-size:0;padding:12px}
  .side-item span{font-size:18px}
  .side-user{justify-content:center}
  .admin-content{padding:18px}
  .admin-topbar{padding:16px 18px}
  .detail-grid{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .board-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .admin-view{display:block}
  .sidebar{width:100%;height:auto;position:static;flex-direction:row;align-items:center;padding:8px 12px;border-right:0;border-bottom:1px solid var(--line)}
  .side-brand{border:0;padding:0}
  .side-nav{display:flex;padding:0 0 0 12px;flex:1}
  .side-item{width:auto;margin:0;padding:9px 12px}
  .side-bottom{padding:0;margin:0;border:0}
  .side-user{margin:0}
  .admin-topbar{padding:14px 16px}
  .admin-content{padding:14px 12px 30px}
  .board-grid{grid-template-columns:1fr}
  .editor-grid,.logi-form-grid,.form-grid,.store-checks{grid-template-columns:1fr}
  table{display:block;overflow-x:auto;white-space:nowrap}
}
