/* Aibrify Desk 老板后台（2026-10 改版，照样稿）：系统字体、只用一个强调色；图标是 CSS 里的线条图（mask），HTML 只写类名；不引用外部网址 */
:root{--bg:#f5f7f9;--surface:#fcfdff;--fill:#f0f3f6;--line:#e0e3e7;--edge:#c0c4cb;--ink:#171d26;--ink2:#424852;--muted:#5e646d;--acc:#006587;--acc-d:#005071;--acc-tint:#e8f6fd;--ai-fg:#005475;--ai-bg:#c7e7f7;--human:#994a08;--off-fg:#595e65;--off-edge:#c1c4c9;--ok-fg:#185b37;--ok-bg:#e2fbe9;--live:#2e9e52;--live-fg:#236436;--warn-fg:#59320c;--warn-bg:#ffecc9;--bad:#ac3031;--bad-bg:#ffe7e4;--shadow:0 1px 2px rgba(23,29,38,.05);--r:12px}
:root{
--ic-chat:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 15a2 2 0 0 1-2 2H8l-4 4V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
--ic-inbox:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E");
--ic-phone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 3.5h2.6l1.6 4.2-2 1.3a11 11 0 0 0 6.2 6.2l1.3-2 4.2 1.6v2.6a2 2 0 0 1-2.2 2A16.5 16.5 0 0 1 4.6 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E");
--ic-calendar:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
--ic-chart:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18M7 16v-4M12 16V8M17 16v-7'/%3E%3C/svg%3E");
--ic-gauge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17a8 8 0 1 1 16 0M12 17l4-5'/%3E%3C/svg%3E");
--ic-sliders:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M17 7h3M4 12h3M11 12h9M4 17h11M19 17h1'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
--ic-logout:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E");
--ic-spark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c.6 4.6 2.4 6.4 7 7-4.6.6-6.4 2.4-7 7-.6-4.6-2.4-6.4-7-7 4.6-.6 6.4-2.4 7-7z'/%3E%3C/svg%3E");
--ic-person:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
--ic-ban:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M6.5 6.5l11 11'/%3E%3C/svg%3E");
--ic-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
--ic-alert:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E");
--ic-back:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
--ic-send:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E");
--ic-shield:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V6z'/%3E%3C/svg%3E");
--ic-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
--ic-dot:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5' fill='%23000'/%3E%3C/svg%3E")}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
h1{font-size:22px;line-height:1.3;margin:0;font-weight:650}
h2{font-size:16px;line-height:1.4;margin:0;font-weight:650}
h3{font-size:14px;margin:18px 0 6px;font-weight:650}
p{margin:6px 0}
a{color:var(--acc)}a:hover{color:var(--acc-d)}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.muted{color:var(--muted)}.small{font-size:13px}.right{text-align:right}.num{font-variant-numeric:tabular-nums}
.sub{color:var(--ink2);margin:4px 0 0}.help{font-size:13px;color:var(--muted);margin:6px 0}
/* 图标：<span class="i i-名字" aria-hidden="true"></span>，颜色跟着文字 */
.i{display:inline-block;width:18px;height:18px;flex:none;background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.i-chat{--i:var(--ic-chat)}.i-inbox{--i:var(--ic-inbox)}.i-phone{--i:var(--ic-phone)}.i-calendar{--i:var(--ic-calendar)}.i-chart{--i:var(--ic-chart)}.i-gauge{--i:var(--ic-gauge)}.i-sliders{--i:var(--ic-sliders)}.i-logout{--i:var(--ic-logout)}.i-spark{--i:var(--ic-spark)}.i-person{--i:var(--ic-person)}.i-ban{--i:var(--ic-ban)}.i-check{--i:var(--ic-check)}.i-alert{--i:var(--ic-alert)}.i-back{--i:var(--ic-back)}.i-send{--i:var(--ic-send)}.i-shield{--i:var(--ic-shield)}
/* 外壳：手机上顶栏 + 内容 + 底部导航；≥1024px 左侧导航 */
.side{display:none}
.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:5px 16px;background:var(--surface);border-bottom:1px solid var(--line)}
.store{display:flex;align-items:center;gap:10px;min-width:0}
.store small{display:block;font-size:12px;line-height:1.2;color:var(--muted)}
.store b{display:block;font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.avatar{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:8px;background:var(--ink);color:#fff;font-size:14px;font-weight:650}
.topbar-r{display:flex;align-items:center;gap:8px}
.topbar-r form{margin:0}
.seg{display:flex;gap:2px;padding:2px;border-radius:10px;background:var(--fill);border:1px solid var(--line)}
.seg a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px;border-radius:7px;color:var(--muted);font-size:13px;font-weight:600;text-decoration:none}
.seg a[aria-current]{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(23,29,38,.14)}
.seg.wide{margin:16px 0}.seg.wide a{flex:1}
.content{max-width:1180px;margin:0 auto;padding:20px 16px 96px}
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;display:grid;grid-template-columns:repeat(6,1fr);background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;color:var(--muted);font-size:11px;text-decoration:none}
.tabs a[aria-current]{color:var(--acc);font-weight:650}
.plain{max-width:760px;margin:0 auto;padding:16px}
.brand{display:flex;align-items:center;gap:10px;min-height:64px;padding:0 20px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
.brand b{display:block;font-size:15px;line-height:1.25}.brand small{display:block;font-size:12px;color:var(--muted)}
.logo{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:8px;background:var(--acc);color:#fff}
.side-nav{display:flex;flex-direction:column;gap:2px;padding:12px}
.side-nav a{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:8px;color:var(--ink2);font-weight:500;text-decoration:none}
.side-nav a:hover{background:var(--fill);color:var(--ink)}
.side-nav a[aria-current]{background:var(--acc-tint);color:var(--acc);font-weight:650}
@media(min-width:1024px){
.app{display:grid;grid-template-columns:240px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:100vh}
.side{display:flex;flex-direction:column;grid-row:1/span 2;position:sticky;top:0;height:100vh;background:var(--surface);border-right:1px solid var(--line)}
.topbar,.content{grid-column:2}.content{width:100%;padding:28px 40px 48px}.tabs{display:none}
.app.ro{grid-template-columns:minmax(0,1fr)}.app.ro .side{display:none}.app.ro .topbar,.app.ro .content{grid-column:1}
.only-narrow{display:none}}
@media(max-width:600px){.topbar .ghost span{display:none}.seg a{padding:0 9px}}
/* 页头、概览卡、面板 */
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.live{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--live-fg)}
.live::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--live);box-shadow:0 0 0 3px rgba(46,158,82,.18)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(13rem,100%),1fr));gap:12px;margin-bottom:16px}
.stat{display:flex;flex-direction:column;gap:4px;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.stat .k{font-size:13px;font-weight:600;color:var(--ink2)}.stat b{font-size:28px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums}.stat .n{font-size:12px;color:var(--muted)}
@media(max-width:600px){.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat{padding:10px 12px}.stat b{font-size:22px}.stat .n{display:none}}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden;margin-bottom:16px}
.panel-h{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid var(--line)}
.panel-b{padding:16px 20px}
.count{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 6px;margin-left:8px;border-radius:6px;background:var(--fill);color:var(--ink2);font-size:12px;font-weight:650;vertical-align:middle}
.empty{padding:28px 20px;text-align:center;color:var(--muted)}
/* 状态标签：靠明暗区分，都带图标 */
.chip{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;border-radius:999px;border:1px solid transparent;font-size:12px;font-weight:650;line-height:1;white-space:nowrap;vertical-align:middle}
.chip.ai,.chip.human,.chip.off,.chip.ok,.chip.warn,.chip.live{--d:1}
.chip.ai::before,.chip.human::before,.chip.off::before,.chip.ok::before,.chip.warn::before,.chip.live::before{content:"";width:13px;height:13px;flex:none;background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.chip.ai{background:var(--ai-bg);color:var(--ai-fg);--i:var(--ic-spark)}
.chip.human{background:var(--human);color:#fff;--i:var(--ic-person)}
.chip.off{border-color:var(--off-edge);color:var(--off-fg);--i:var(--ic-ban)}
.chip.ok{background:var(--ok-bg);color:var(--ok-fg);--i:var(--ic-check)}
.chip.warn{background:var(--warn-bg);color:var(--warn-fg);--i:var(--ic-alert)}
.chip.live{border-color:var(--acc);color:var(--acc);--i:var(--ic-dot)}
.chip.ro{background:var(--ink);color:#fff}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
/* 收件箱 */
.conv{display:grid;grid-template-columns:7.5rem 6.5rem minmax(0,1fr) 5.5rem 2rem;grid-template-areas:"who chip last time un";gap:12px;align-items:center;min-height:56px;padding:8px 20px;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
a.conv:hover{background:var(--fill)}
.conv-h{min-height:36px;background:var(--fill);color:var(--muted);font-size:12px;font-weight:650}
.conv .who{grid-area:who;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.conv .chip{grid-area:chip;justify-self:start}
.conv .last{grid-area:last;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.conv .by{font-weight:600}.conv time{grid-area:time;font-size:13px;color:var(--muted);white-space:nowrap;text-align:right}
.conv.u .who{font-weight:750}.conv.u .last{color:var(--ink)}
.un{grid-area:un;justify-self:end;display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--acc);color:#fff;font-size:12px;font-weight:700}
@media(max-width:760px){.conv-h{display:none}.conv{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"who chip time" "last last un";row-gap:2px;padding:10px 16px}}
/* 会话 */
.split{display:grid;gap:16px}
@media(min-width:1024px){.split{grid-template-columns:minmax(0,1fr) 300px;align-items:start}}
.crumb{display:flex;align-items:center;gap:6px;margin:0 0 12px;font-size:14px;color:var(--muted)}
.crumb a{display:inline-flex;align-items:center;gap:4px;min-height:44px;text-decoration:none;font-weight:600}
.thread{display:flex;flex-direction:column;padding:16px 20px;background:var(--bg)}
.day{display:flex;align-items:center;gap:12px;margin:10px 0;color:var(--muted);font-size:12px;font-weight:600}
.day::before,.day::after{content:"";flex:1;height:1px;background:var(--line)}
.msg{max-width:min(85%,640px);padding:10px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface);white-space:pre-wrap;word-break:break-word}
.msg.in{align-self:flex-start;border-bottom-left-radius:4px}
.msg.out{align-self:flex-end;border-bottom-right-radius:4px}
.msg.out.ai{background:var(--ai-bg);border-color:transparent}.msg.out.auto{background:var(--fill)}
.meta{margin:3px 4px 10px;font-size:12px;color:var(--muted)}.meta.out{align-self:flex-end}
.meta b{font-weight:650;color:var(--ink2)}.meta b.ai{color:var(--ai-fg)}
.reply{padding:16px 20px;border-top:1px solid var(--line)}
.reply textarea{min-height:88px}
.reply-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:8px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:10px 16px;align-items:center}
.kv>span{color:var(--muted);font-size:14px}.kv>b{text-align:right;font-weight:600}
/* 通话：电脑上左列表右详情；手机上列表页只有列表，详情页只有详情 */
.calls{display:grid;gap:16px}
@media(min-width:1024px){.calls{grid-template-columns:380px minmax(0,1fr);align-items:start}}
@media(max-width:1023px){.calls.has-detail .calls-list,.calls:not(.has-detail) .calls-detail{display:none}}
.call{display:flex;flex-direction:column;gap:4px;padding:12px 20px;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
a.call:hover{background:var(--fill)}.call[aria-current]{background:var(--acc-tint)}
.call-1{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.call-1 time{margin-left:auto;font-size:13px;color:var(--muted)}
.call-2{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:4px 0 12px}
.facts div{padding:10px 14px;border-left:1px solid var(--line)}.facts div:first-child{border-left:0}
.facts span{display:block;font-size:12px;color:var(--muted)}.facts b{font-weight:650}
.summary{padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--fill)}
.did{margin:4px 0;padding-left:20px}
.tr{display:grid;grid-template-columns:4.5rem minmax(0,1fr);gap:4px 16px;padding:10px 0;border-top:1px solid var(--line)}
.tr .sp{font-size:13px;font-weight:650;color:var(--muted)}.tr .sp.ai{color:var(--ai-fg)}
/* 表格、进度条 */
.tablewrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px;background:var(--surface)}
th{background:var(--fill);color:var(--muted);font-size:12px;font-weight:650}
th,td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
tr:last-child td{border-bottom:0}
.meter{height:8px;border-radius:4px;background:var(--fill);overflow:hidden;margin:12px 0 6px}
.meter i{display:block;height:100%;background:var(--acc)}.meter i.over{background:var(--bad)}
/* 表单、按钮、提示 */
label{display:block;margin:14px 0 6px;font-size:14px;font-weight:600;color:var(--ink2)}
input,textarea,select{width:100%;min-height:44px;font:inherit;padding:10px 12px;border:1px solid var(--edge);border-radius:10px;background:#fff;color:var(--ink)}
textarea{min-height:96px;resize:vertical}
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:var(--acc);flex:none}
.check{display:flex;align-items:center;gap:10px;min-height:44px;margin:2px 0;font-weight:500;color:var(--ink)}
.grid2{display:grid;gap:0 16px}@media(min-width:720px){.grid2{grid-template-columns:1fr 1fr}}
button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:10px;border:1px solid var(--acc);background:var(--acc);color:#fff;font:inherit;font-weight:650;cursor:pointer;text-decoration:none}
button:hover,.btn:hover{background:var(--acc-d);border-color:var(--acc-d);color:#fff}
button.secondary,.btn.secondary{background:#fff;color:var(--ink);border-color:var(--edge)}
button.secondary:hover,.btn.secondary:hover{background:var(--fill);color:var(--ink)}
button.ghost{background:none;border-color:transparent;color:var(--ink2);padding:0 10px}button.ghost:hover{background:var(--fill);color:var(--ink)}
button.danger{background:var(--bad);border-color:var(--bad)}
button.link{background:none;border:0;color:var(--acc);padding:0;font-weight:600}button.link:hover{background:none;color:var(--acc-d)}
button.small,.btn.small{padding:0 12px;font-size:13px}
button.wide{width:100%}
button:disabled{opacity:.5;cursor:not-allowed}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.actions form{margin:0}
.ok{background:var(--ok-bg);color:var(--ok-fg);padding:10px 14px;border-radius:10px;margin:8px 0}
.error{background:var(--bad-bg);color:var(--bad);padding:10px 14px;border-radius:10px;margin:8px 0}
.error ul{margin:6px 0 0;padding-left:20px}
/* 设置 */
.sect{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);margin-bottom:12px}
.sect>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:0 20px;cursor:pointer;list-style:none;font-weight:650}
.sect>summary::-webkit-details-marker{display:none}
.sect>summary::after{content:"";width:16px;height:16px;flex:none;background:var(--muted);-webkit-mask:var(--ic-chevron) center/contain no-repeat;mask:var(--ic-chevron) center/contain no-repeat;transition:transform .15s}
.sect[open]>summary::after{transform:rotate(180deg)}
.sect-b{padding:4px 20px 20px;border-top:1px solid var(--line)}
.modes{display:grid;gap:10px;margin:12px 0}@media(min-width:720px){.modes{grid-template-columns:1fr 1fr}}
.mode{display:flex;gap:12px;align-items:flex-start;margin:0;padding:14px 16px;border:1px solid var(--edge);border-radius:12px;background:#fff;font-weight:500;color:var(--ink);cursor:pointer}
.mode input{margin-top:3px}.mode b{display:block;font-weight:650}.mode small{display:block;margin-top:2px;color:var(--muted);font-size:13px;font-weight:400}
.mode:has(input:checked){border-color:var(--acc);background:var(--acc-tint);box-shadow:0 0 0 1px var(--acc)}
.box,.faq{border:1px solid var(--line);border-radius:10px;padding:6px 14px 14px;margin:10px 0;background:#fff}
.hours{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);gap:8px 10px;align-items:center}
.hours .check{margin:0}
.preview{background:#fff;border:1px dashed var(--edge);border-radius:10px;padding:10px 12px;white-space:pre-wrap;font-size:14px;color:var(--ink2)}
.blocked-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--line)}
.savebar{position:sticky;bottom:64px;z-index:4;display:flex;justify-content:flex-end;padding:12px 0}
@media(min-width:1024px){.savebar{bottom:0}}
/* 登录 */
.login-top{display:flex;justify-content:flex-end;padding:8px 0}
.login-card{width:100%;max-width:440px;margin:16px auto 40px;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
.login-brand{display:flex;align-items:center;gap:10px;margin-bottom:20px}.login-brand b{display:block}.login-brand small{display:block;font-size:12px;color:var(--muted)}
/* 管理页还在用的旧样式（.card、nav.top、.badge） */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin:12px 0;box-shadow:var(--shadow)}
nav.top{background:var(--surface);border-bottom:1px solid var(--line);margin:-16px -16px 16px}
nav.top .in{display:flex;align-items:center;gap:6px;padding:8px 12px;overflow-x:auto;white-space:nowrap}
nav.top .name{font-weight:700;margin-right:auto}
nav.top a,nav.top button{min-height:40px;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--ink);font-size:14px;font-weight:500;text-decoration:none}
nav.top form{display:inline}
.badge{display:inline-block;font-size:12px;padding:2px 8px;border-radius:999px;color:#fff;background:var(--off-fg)}.badge.ai{background:var(--acc)}.badge.human{background:var(--human)}
