/* =====================================================================
   KKAWA 反馈中心 v2 — fb2.css
   设计基调:中性灰底 + 白色面板 + 1px 发丝边框 + 单一靛蓝强调色。
   所有颜色都走 token,暗色模式只换 token(prefers-color-scheme)。
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  color-scheme:light;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;

  --bg:#fafafa;
  --surface:#ffffff;
  --surface-sunken:#f7f7f7;   /* 看板列、侧栏底、弹窗页脚 */
  --surface-hover:#f5f5f5;
  --surface-active:#efefef;
  --surface-3:#f2f2f2;
  --border:#ebebeb;
  --border-soft:#f1f1f1;
  --border-strong:#e0e0e0;
  --text:#171717;
  --text-2:#525252;
  --text-3:#8a8a8a;
  --text-4:#b5b5b5;

  --accent:#4f46e5;          /* 文字 / 图标 / 链接 */
  --accent-solid:#4f46e5;    /* 主按钮底色 */
  --accent-solid-hover:#4338ca;
  --accent-soft:rgba(79,70,229,.07);
  --accent-soft-2:rgba(79,70,229,.12);
  --accent-border:rgba(79,70,229,.30);
  --ring:0 0 0 3px rgba(79,70,229,.18);

  --danger:#dc2626; --danger-soft:#fef2f2; --danger-border:rgba(220,38,38,.28);

  /* 状态:fg 文字 / bg 浅底 / dot 圆点 */
  --st-open-fg:#525252;     --st-open-bg:#f1f1f1;     --st-open-dot:#a3a3a3;
  --st-planned-fg:#6d28d9;  --st-planned-bg:#f4f0ff;  --st-planned-dot:#8b5cf6;
  --st-prog-fg:#1d4ed8;     --st-prog-bg:#eef4ff;     --st-prog-dot:#3b82f6;
  --st-done-fg:#15803d;     --st-done-bg:#ecfdf3;     --st-done-dot:#22c55e;
  --st-decl-fg:#b91c1c;     --st-decl-bg:#fef2f2;     --st-decl-dot:#ef4444;
  --amber-fg:#b45309;       --amber-bg:#fff7ed;       --amber-border:rgba(217,119,6,.25);
  --bronze-fg:#9a3412;      --bronze-bg:#fdf1ea;      --bronze-border:rgba(154,52,18,.18);

  /* 头像色相 */
  --av0-bg:#e0e7ff; --av0-fg:#3730a3;
  --av1-bg:#e0f2fe; --av1-fg:#075985;
  --av2-bg:#dcfce7; --av2-fg:#166534;
  --av3-bg:#fef3c7; --av3-fg:#92400e;
  --av4-bg:#ffe4e6; --av4-fg:#9f1239;
  --av5-bg:#f3e8ff; --av5-fg:#6b21a8;

  --sk-1:#efefef; --sk-2:#f7f7f7;
  --switch-off:#d9d9d9;

  --sh-xs:0 1px 2px rgba(0,0,0,.04);
  --sh-sm:0 1px 2px rgba(0,0,0,.04),0 2px 6px -2px rgba(0,0,0,.06);
  --sh-md:0 2px 4px -2px rgba(0,0,0,.05),0 8px 20px -6px rgba(0,0,0,.10);
  --sh-lg:0 0 0 1px rgba(0,0,0,.03),0 4px 8px -2px rgba(0,0,0,.06),0 16px 32px -8px rgba(0,0,0,.12),0 32px 64px -16px rgba(0,0,0,.16);
  --overlay:rgba(15,15,15,.28);
  --hdr-bg:rgba(250,250,250,.78);
  --toast-bg:#171717; --toast-fg:#fafafa;

  --r-sm:6px; --r:8px; --r-lg:12px;
  --ease:cubic-bezier(.2,.8,.2,1);
  --hdr:57px;
}
@media (prefers-color-scheme:dark){
  :root{
    color-scheme:dark;
    --bg:#0a0a0a;
    --surface:#121212;
    --surface-sunken:#0e0e0e;
    --surface-hover:#1a1a1a;
    --surface-active:#212121;
    --surface-3:#1c1c1c;
    --border:#252525;
    --border-soft:#1d1d1d;
    --border-strong:#323232;
    --text:#ededed;
    --text-2:#a3a3a3;
    --text-3:#737373;
    --text-4:#4d4d4d;

    --accent:#a5b4fc;
    --accent-solid:#6366f1;
    --accent-solid-hover:#7c7ff5;
    --accent-soft:rgba(129,140,248,.10);
    --accent-soft-2:rgba(129,140,248,.16);
    --accent-border:rgba(129,140,248,.35);
    --ring:0 0 0 3px rgba(129,140,248,.28);

    --danger:#f87171; --danger-soft:rgba(239,68,68,.10); --danger-border:rgba(248,113,113,.35);

    --st-open-fg:#a3a3a3;     --st-open-bg:rgba(255,255,255,.06);  --st-open-dot:#737373;
    --st-planned-fg:#c4b5fd;  --st-planned-bg:rgba(139,92,246,.14); --st-planned-dot:#a78bfa;
    --st-prog-fg:#93c5fd;     --st-prog-bg:rgba(59,130,246,.14);   --st-prog-dot:#60a5fa;
    --st-done-fg:#86efac;     --st-done-bg:rgba(34,197,94,.12);    --st-done-dot:#4ade80;
    --st-decl-fg:#fca5a5;     --st-decl-bg:rgba(239,68,68,.12);    --st-decl-dot:#f87171;
    --amber-fg:#fcd34d;       --amber-bg:rgba(245,158,11,.12);     --amber-border:rgba(245,158,11,.28);
    --bronze-fg:#fdba74;      --bronze-bg:rgba(234,88,12,.12);     --bronze-border:rgba(234,88,12,.25);

    --av0-bg:rgba(99,102,241,.22);  --av0-fg:#c7d2fe;
    --av1-bg:rgba(14,165,233,.20);  --av1-fg:#bae6fd;
    --av2-bg:rgba(34,197,94,.18);   --av2-fg:#bbf7d0;
    --av3-bg:rgba(245,158,11,.18);  --av3-fg:#fde68a;
    --av4-bg:rgba(244,63,94,.18);   --av4-fg:#fecdd3;
    --av5-bg:rgba(168,85,247,.20);  --av5-fg:#e9d5ff;

    --sk-1:#1a1a1a; --sk-2:#232323;
    --switch-off:#3a3a3a;

    --sh-xs:0 1px 2px rgba(0,0,0,.4);
    --sh-sm:0 1px 2px rgba(0,0,0,.4),0 2px 6px -2px rgba(0,0,0,.5);
    --sh-md:0 2px 4px -2px rgba(0,0,0,.5),0 8px 20px -6px rgba(0,0,0,.6);
    --sh-lg:0 0 0 1px rgba(255,255,255,.04),0 16px 32px -8px rgba(0,0,0,.6),0 32px 64px -16px rgba(0,0,0,.7);
    --overlay:rgba(0,0,0,.55);
    --hdr-bg:rgba(10,10,10,.72);
    --toast-bg:#ededed; --toast-fg:#0a0a0a;
  }
}

/* ---------- 2. Base ---------- */
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{background:var(--bg);color:var(--text);font:14px/1.55 var(--font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;min-height:100vh}
body.modal-open{overflow:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit;padding:0}
input,select,textarea{font:inherit;color:inherit}
img{max-width:100%}
::selection{background:var(--accent-soft-2)}
.hide{display:none!important}
[hidden]{display:none!important}

/* 图标:每个 svg 都带 width/height,这里再兜一道上限,任何情况下都不会被撑大 */
svg.ic{flex:none;display:inline-block;vertical-align:middle;max-width:24px;max-height:24px;overflow:visible}

/* 可访问:焦点环只对键盘出现 */
:focus{outline:none}
:focus-visible{outline:2px solid var(--accent-solid);outline-offset:2px;border-radius:var(--r-sm)}
.sr,.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:12px;top:-60px;z-index:100;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:var(--r);padding:8px 12px;box-shadow:var(--sh-md);transition:top .15s}
.skip:focus{top:12px}

.muted{color:var(--text-3);font-size:12.5px}
.num,.cnt,.tn,.n{font-variant-numeric:tabular-nums}
.grow{flex:1}

/* ---------- 3. Header ---------- */
.hdr{position:sticky;top:0;z-index:40;background:var(--hdr-bg);
  -webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border)}
.hdr-in{max-width:1200px;margin:0 auto;padding:0 24px;height:56px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:9px;font-weight:600;font-size:14.5px;letter-spacing:-.01em;flex:none;border-radius:var(--r-sm)}
.brand .logo{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff;
  background:linear-gradient(140deg,#6366f1 0%,#4f46e5 60%,#4338ca 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 1px 2px rgba(79,70,229,.35)}
.brand-sub{color:var(--text-3);font-weight:400;font-size:13.5px;padding-left:10px;margin-left:1px;border-left:1px solid var(--border-strong);line-height:14px}
.nav{display:flex;align-items:stretch;gap:2px;height:100%}
.nav a{position:relative;display:inline-flex;align-items:center;gap:7px;padding:0 10px;font-size:13.5px;font-weight:500;color:var(--text-2);transition:color .15s;white-space:nowrap}
.nav a::before{content:"";position:absolute;inset:12px 2px;border-radius:var(--r);background:transparent;transition:background .15s;z-index:-1}
.nav a:hover{color:var(--text)}
.nav a:hover::before{background:var(--surface-hover)}
.nav a::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:2px 2px 0 0;background:transparent;transition:background .15s}
.nav a.on{color:var(--text)}
.nav a.on::after{background:var(--text)}
.nav a.on .ic{color:var(--accent)}
.nav a:focus-visible{outline-offset:-6px}
.hdr-r{margin-left:auto;display:flex;align-items:center;gap:12px;flex:none}
.hdr .who{font-size:12.5px;color:var(--text-2);max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.hdr .who.is-admin::after{content:"管理员";font-size:10.5px;font-weight:600;color:var(--accent);background:var(--accent-soft);border:1px solid var(--accent-border);padding:0 6px;border-radius:999px;line-height:16px}

/* ---------- 4. Layout ---------- */
.wrap{max-width:1200px;margin:0 auto;padding:32px 24px 96px}
.wrap.wide{max-width:1480px}
body:has(.wrap.wide) .hdr-in,body:has(.wrap.bugs-view .bugs-grid.kanban) .hdr-in{max-width:1480px}
#app p,#app h1,#app h2,#app h3{overflow-wrap:anywhere}
.wrap:focus{outline:none}
.cols{display:grid;grid-template-columns:minmax(0,1fr) 256px;gap:36px;align-items:start}
.cols-main{min-width:0}

.page-hd{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}
.page-hd h1{font-size:24px;line-height:1.25;font-weight:600;letter-spacing:-.02em}
.page-hd p{color:var(--text-2);font-size:14px;margin-top:6px;max-width:640px}
.page-hd-act{display:flex;align-items:center;gap:10px;flex:none}
.page-hd-act:empty{display:none}

/* ---------- 5. Primitives ---------- */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--sh-xs)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 12px;border-radius:var(--r);
  border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font-size:13px;font-weight:500;line-height:1;white-space:nowrap;
  box-shadow:var(--sh-xs);transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .05s}
.btn:hover{background:var(--surface-hover)}
.btn:active{transform:translateY(.5px)}
.btn .ic{width:15px;height:15px}
.btn.pri{background:var(--accent-solid);border-color:transparent;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 1px 2px rgba(79,70,229,.30)}
.btn.pri:hover{background:var(--accent-solid-hover)}
.btn.sm{height:28px;padding:0 10px;font-size:12.5px;border-radius:7px}
.btn.sm .ic{width:13px;height:13px}
.btn.lg{height:38px;padding:0 16px;font-size:14px}
.btn.block{width:100%}
.btn.ghost{background:transparent;border-color:transparent;box-shadow:none}
.btn.danger:hover{color:var(--danger);border-color:var(--danger-border);background:var(--danger-soft)}
.btn[disabled]{opacity:.5;pointer-events:none}

.inp{display:block;width:100%;height:34px;padding:0 11px;border:1px solid var(--border-strong);border-radius:var(--r);background:var(--surface);
  color:var(--text);font-size:13.5px;outline:none;transition:border-color .15s,box-shadow .15s}
textarea.inp{height:auto;padding:9px 11px;line-height:1.55;resize:vertical}
select.inp{padding-right:8px;cursor:pointer}
.inp::placeholder,textarea::placeholder{color:var(--text-4)}
.inp:hover{border-color:var(--text-4)}
.inp:focus{border-color:var(--accent-solid);box-shadow:var(--ring)}
.inp.miss,textarea.miss{border-color:var(--danger)!important;box-shadow:0 0 0 3px var(--danger-soft)!important;background:var(--danger-soft)}

kbd,.kbd{font:500 11px/1 var(--mono);color:var(--text-3);background:var(--surface-sunken);border:1px solid var(--border);border-bottom-width:2px;border-radius:5px;padding:2px 5px;min-width:18px;text-align:center}

/* chip / pill */
.chip{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 8px;border-radius:999px;font-size:11.5px;font-weight:500;line-height:1;white-space:nowrap;flex:none;vertical-align:middle;border:1px solid transparent}
.chip .ic{width:12px;height:12px}
.chip .dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.chip.open{background:var(--st-open-bg);color:var(--st-open-fg)}
.chip.open .dot{background:var(--st-open-dot)}
.chip.planned{background:var(--st-planned-bg);color:var(--st-planned-fg)}
.chip.planned .dot{background:var(--st-planned-dot)}
.chip.in_progress,.chip.progress{background:var(--st-prog-bg);color:var(--st-prog-fg)}
.chip.in_progress .dot,.chip.progress .dot{background:var(--st-prog-dot)}
.chip.done,.chip.fixed{background:var(--st-done-bg);color:var(--st-done-fg)}
.chip.done .dot,.chip.fixed .dot{background:var(--st-done-dot)}
.chip.declined{background:var(--st-decl-bg);color:var(--st-decl-fg)}
.chip.declined .dot{background:var(--st-decl-dot)}
.chip.board{background:transparent;border-color:var(--border-strong);color:var(--text-2)}
.chip.board .ic{color:var(--text-3)}
.chip.plat{background:transparent;border-color:var(--border-strong);color:var(--text-2)}
.chip.plat.web .ic{color:var(--st-prog-dot)}
.chip.plat.plugin{background:var(--amber-bg);border-color:var(--amber-border);color:var(--amber-fg)}
.chip.pinned{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent)}

/* status dot(看板列头 / 筛选) */
.sdot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none;background:var(--st-open-dot)}
.sdot.planned{background:var(--st-planned-dot)}
.sdot.in_progress,.sdot.progress{background:var(--st-prog-dot)}
.sdot.done,.sdot.fixed{background:var(--st-done-dot)}
.sdot.declined{background:var(--st-decl-dot)}
.sdot.all{background:transparent;box-shadow:inset 0 0 0 1.5px var(--text-4)}

.dotsep{width:3px;height:3px;border-radius:50%;background:var(--text-4);flex:none}

/* 头像 */
.av{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;flex:none;font-size:11px;font-weight:600;line-height:1;
  background:var(--av0-bg);color:var(--av0-fg);user-select:none;overflow:hidden}
.av.xs{width:18px;height:18px;font-size:9.5px}
.av.sm{width:22px;height:22px;font-size:10.5px}
.av.h1{background:var(--av1-bg);color:var(--av1-fg)}
.av.h2{background:var(--av2-bg);color:var(--av2-fg)}
.av.h3{background:var(--av3-bg);color:var(--av3-fg)}
.av.h4{background:var(--av4-bg);color:var(--av4-fg)}
.av.h5{background:var(--av5-bg);color:var(--av5-fg)}
.av.admin{background:var(--accent-solid);color:#fff}

/* segmented control */
.segc{display:inline-flex;align-items:center;gap:2px;padding:2px;background:var(--surface-3);border:1px solid var(--border);border-radius:9px;flex:none}
.segc-btn{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:7px;font-size:13px;font-weight:500;color:var(--text-2);transition:background .15s,color .15s,box-shadow .15s;white-space:nowrap}
.segc-btn .ic{width:14px;height:14px;color:var(--text-3);transition:color .15s}
.segc-btn:hover{color:var(--text)}
.segc-btn.on{background:var(--surface);color:var(--text);box-shadow:0 0 0 1px var(--border),var(--sh-xs)}
.segc-btn.on .ic{color:var(--accent)}
.segc-btn .tn{font-size:11px;color:var(--text-3);font-weight:500}
.segc-btn .tn:empty{display:none}

/* switch(已完成 / 已拒绝;显示已隐藏;继续创建) */
.tgl,.sw{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 10px 0 8px;border-radius:var(--r);font-size:13px;font-weight:500;color:var(--text-2);
  border:1px solid transparent;cursor:pointer;user-select:none;transition:background .15s,color .15s;white-space:nowrap;position:relative}
.tgl:hover,.sw:hover{background:var(--surface-hover);color:var(--text)}
.track{position:relative;width:28px;height:16px;border-radius:999px;background:var(--switch-off);flex:none;transition:background .18s var(--ease)}
.track::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .18s var(--ease)}
.tgl[aria-pressed="true"] .track,.sw.on .track,.tgl input:checked+.track{background:var(--accent-solid)}
.tgl[aria-pressed="true"] .track::after,.sw.on .track::after,.tgl input:checked+.track::after{transform:translateX(12px)}
.tgl[aria-pressed="true"]{color:var(--text)}
.tgl input:focus-visible+.track{box-shadow:var(--ring)}
.tgl .tn{min-width:20px;height:18px;padding:0 6px;border-radius:999px;background:var(--surface-3);border:1px solid var(--border);color:var(--text-3);font-size:11px;font-weight:600;display:inline-grid;place-items:center}
.tgl[aria-pressed="true"] .tn{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent)}

/* search */
.srch{position:relative;display:flex;align-items:center;flex:0 1 260px;min-width:0}
.srch .srch-ic{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:var(--text-3);pointer-events:none}
.srch .inp{height:32px;padding-left:32px;padding-right:34px;background:var(--surface)}
.srch .kbd{position:absolute;right:8px;top:50%;transform:translateY(-50%);pointer-events:none;transition:opacity .15s}
.srch:focus-within .kbd,.srch .inp:not(:placeholder-shown)~.kbd{opacity:0}
.srch input[type="search"]::-webkit-search-cancel-button{cursor:pointer}

.lnk{display:inline-flex;align-items:center;gap:4px;background:none;border:0;padding:0;font:inherit;color:var(--accent);cursor:pointer;border-radius:4px}
.lnk:hover{text-decoration:underline;text-underline-offset:2px}

/* ---------- 6. States:skeleton / empty / error ---------- */
@keyframes shimmer{0%{background-position:100% 50%}100%{background-position:0 50%}}
.sk{display:block;height:12px;border-radius:5px;background:linear-gradient(90deg,var(--sk-1) 25%,var(--sk-2) 37%,var(--sk-1) 63%);background-size:400% 100%;animation:shimmer 1.4s ease infinite}
.sk.sm{height:9px}
.sk.w30{width:30%}.sk.w40{width:40%}.sk.w50{width:50%}.sk.w60{width:60%}.sk.w80{width:80%}.sk.w90{width:90%}
.skel-rows .sk-row{display:flex;gap:14px;padding:16px}
.skel-rows .sk-row+.sk-row{border-top:1px solid var(--border-soft)}
.sk.vote{width:44px;height:52px;border-radius:var(--r);flex:none}
.sk-col{flex:1;display:flex;flex-direction:column;gap:10px;padding-top:4px}
.skel-cards{display:flex;flex-direction:column;gap:6px}
.sk-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:10px}
.skel-lines{padding:2px 0}
.sk-line{display:flex;align-items:center;gap:10px;height:36px;padding:0 8px}
.sk.dot{width:22px;height:22px;border-radius:50%;flex:none}
#app>.skel,.list>.skel,.tl>.skel{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--sh-xs);overflow:hidden}

.state-ic{width:40px;height:40px;margin:0 auto 14px;border-radius:10px;display:grid;place-items:center;background:var(--surface);color:var(--text-2);
  border:1px solid var(--border);box-shadow:var(--sh-sm)}
.state-ic.err,.empty.err .state-ic{color:var(--danger);background:var(--danger-soft);border-color:var(--danger-border);box-shadow:none}
.empty{padding:56px 24px;text-align:center;color:var(--text-2)}
.empty h3{font-size:14.5px;font-weight:600;color:var(--text);margin-bottom:4px}
.empty p{font-size:13px;color:var(--text-3);max-width:340px;margin:0 auto;word-break:break-word}
.empty>.btn{margin-top:16px}
.empty.mini{padding:22px 12px;font-size:12.5px;color:var(--text-3)}
.empty.mini .state-ic{width:32px;height:32px;margin-bottom:10px;border-radius:8px}

/* ---------- 7. Gate(未登录 / 启动失败) ---------- */
.gate{max-width:400px;margin:10vh auto 0}
.gate .card{padding:36px 28px 28px;text-align:center;box-shadow:var(--sh-md)}
.gate h2{font-size:18px;font-weight:600;letter-spacing:-.01em;margin-bottom:6px}
.gate p{color:var(--text-2);font-size:13.5px;line-height:1.65}
.gate .fine{font-size:12px;color:var(--text-3);margin-top:8px}
.gate-actions{display:flex;flex-direction:column;gap:8px;margin-top:22px}
.gate-actions .btn{width:100%;height:36px;font-size:13.5px}

/* ---------- 8. 反馈:工具条 + 列表 ---------- */
.tools{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}

.plist{overflow:hidden}
.prow{display:flex;gap:14px;padding:14px 16px;cursor:pointer;transition:background .12s;position:relative}
.prow+.prow{border-top:1px solid var(--border-soft)}
.prow:hover{background:var(--surface-hover)}
.prow:focus-visible{outline-offset:-2px;border-radius:0}
.prow .main{flex:1;min-width:0}

.vbox{flex:none;width:44px;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;
  border:1px solid var(--border-strong);border-radius:var(--r);background:var(--surface);color:var(--text-2);
  font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1;transition:border-color .15s,background .15s,color .15s,transform .08s}
.vbox .vote-ic{width:16px;height:16px;stroke-width:2.25;transition:transform .15s var(--ease)}
.vbox:hover{border-color:var(--accent-border);color:var(--accent)}
.vbox:hover .vote-ic{transform:translateY(-1px)}
.vbox:active{transform:scale(.96)}
.vbox.on{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent)}
.vbox .n{color:inherit}
.vbox.row{flex-direction:row;width:auto;height:28px;padding:0 10px;gap:5px}
.vbox.row b{font-weight:600}

.ttl-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.prow .ttl{font-size:14.5px;font-weight:600;color:var(--text);letter-spacing:-.005em;line-height:1.4;min-width:0;word-break:break-word}
.prow .exc{margin-top:3px;color:var(--text-2);font-size:13.5px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.prow .exc:empty{display:none}
.meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:10px;font-size:12px;color:var(--text-3)}
.who-m{display:inline-flex;align-items:center;gap:6px;color:var(--text-2);min-width:0;max-width:200px}
.who-m>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc{display:inline-flex;align-items:center;gap:4px}
.cc .ic{width:13px;height:13px}
.meta .tags{display:inline-flex;gap:6px;flex-wrap:wrap}

/* ---------- 9. 侧栏 ---------- */
#side{min-width:0}
.side-sec+.side-sec{margin-top:28px}
.side-sec h4{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-3);margin:0 0 8px 10px;letter-spacing:.02em}
.side-sec h4 .ic{width:13px;height:13px}
.snav{display:flex;flex-direction:column;gap:1px}
.brow,.frow{display:flex;align-items:center;gap:10px;width:100%;height:34px;padding:0 10px;border-radius:7px;font-size:13.5px;color:var(--text-2);text-align:left;transition:background .12s,color .12s}
.brow .ic{width:15px;height:15px;color:var(--text-3)}
.brow:hover,.frow:hover{background:var(--surface-hover);color:var(--text)}
.brow.on,.frow.on{background:var(--surface-active);color:var(--text);font-weight:500}
.brow.on .ic{color:var(--accent)}
.brow .lbl,.frow .lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brow .cnt,.frow .cnt{margin-left:auto;font-size:12px;color:var(--text-3)}

.lb{padding:4px}
.lrow{display:flex;align-items:center;gap:10px;height:38px;padding:0 8px;border-radius:7px;font-size:13px}
.lrow:hover{background:var(--surface-hover)}
.lrow .rk{width:20px;height:20px;border-radius:6px;display:grid;place-items:center;font-size:11px;font-weight:600;color:var(--text-3);font-variant-numeric:tabular-nums;flex:none}
.lrow .rk.r1{background:var(--amber-bg);color:var(--amber-fg);box-shadow:inset 0 0 0 1px var(--amber-border)}
.lrow .rk.r2{background:var(--surface-3);color:var(--text-2);box-shadow:inset 0 0 0 1px var(--border-strong)}
.lrow .rk.r3{background:var(--bronze-bg);color:var(--bronze-fg);box-shadow:inset 0 0 0 1px var(--bronze-border)}
.lrow .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.lrow .sc{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--text-2);flex:none}
.lrow .sc .ic{width:12px;height:12px;color:var(--text-3)}

/* ---------- 10. 路线图 ---------- */
.rm{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:12px;align-items:start;overflow-x:auto;padding-bottom:8px;
  scroll-snap-type:x proximity;overscroll-behavior-x:contain}
.rm>.empty{grid-column:1/-1}
.rmcol{background:var(--surface-sunken);border:1px solid var(--border);border-radius:var(--r-lg);padding:6px;min-height:220px;scroll-snap-align:start;min-width:0}
.rmcol .head{display:flex;align-items:center;gap:8px;padding:8px 8px 12px;font-size:13px;font-weight:600}
.rmcol .head .lbl{flex:1}
.rmcol .head .n{font-size:11.5px;font-weight:500;color:var(--text-3);background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:0 7px;line-height:18px}
.rmbody{display:flex;flex-direction:column;gap:6px}
.rmempty{padding:28px 0;text-align:center;font-size:12.5px;color:var(--text-3);border:1px dashed var(--border-strong);border-radius:var(--r)}
.rmcard{padding:12px;border-radius:var(--r);cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.rmcard:hover{border-color:var(--border-strong);box-shadow:var(--sh-sm)}
.rmcard .ttl{font-size:13.5px;font-weight:500;line-height:1.45;color:var(--text);word-break:break-word}
.rmcard .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.rmcard .ft{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12px;color:var(--text-3)}
.rmcard .up{margin-left:auto;display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:6px;border:1px solid var(--border-strong);
  background:var(--surface);font-size:12px;font-weight:600;color:var(--text-2);font-variant-numeric:tabular-nums;transition:border-color .15s,background .15s,color .15s}
.rmcard .up .vote-ic{width:13px;height:13px;stroke-width:2.25}
.rmcard .up:hover{border-color:var(--accent-border);color:var(--accent)}
.rmcard .up.on{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent)}

/* ---------- 11. 更新日志(时间线 + 平台页签) ---------- */
.cl{max-width:920px;margin:0 auto}
.cltabs{margin-bottom:28px}
.clcols{display:block}
.clcols>.empty{border:1px dashed var(--border-strong);border-radius:var(--r-lg)}
.clcols[data-plat="web"] .clcol.plugin,.clcols[data-plat="plugin"] .clcol.web{display:none}
.clcolhd{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tl>.empty{border:1px dashed var(--border-strong);border-radius:var(--r-lg)}
.clrow{display:grid;grid-template-columns:148px minmax(0,1fr);gap:0}
.clrow .date{padding:2px 24px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.clrow .date time{font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums;position:sticky;top:calc(var(--hdr) + 20px)}
.ver{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:6px;font:500 11.5px/1 var(--mono);color:var(--text-2);background:var(--surface-3);border:1px solid var(--border)}
.clmain{position:relative;min-width:0;padding:0 0 48px 32px;border-left:1px solid var(--border)}
.clrow:last-child .clmain{padding-bottom:8px}
.clmain::before{content:"";position:absolute;left:-5px;top:7px;width:9px;height:9px;border-radius:50%;background:var(--surface);box-shadow:0 0 0 2px var(--accent-solid),0 0 0 5px var(--bg)}
.clmain h2{font-size:19px;font-weight:600;letter-spacing:-.015em;line-height:1.35;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.clmain .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.clmain .clbody{margin-top:12px}

/* Markdown 正文(帖子 / 日志 / 评论 共用) */
.clbody,.pd .body,.cmt .bd{color:var(--text);font-size:14px;line-height:1.7;word-break:break-word}
.cmt .bd{font-size:13.5px;line-height:1.6}
.clbody p,.pd .body p{margin:8px 0}
.cmt .bd p{margin:2px 0}
.clbody ul,.pd .body ul,.cmt .bd ul{margin:8px 0;padding-left:20px}
.clbody li,.pd .body li{margin:3px 0}
.clbody li::marker,.pd .body li::marker{color:var(--text-3)}
.clbody h3,.pd .body h3{font-size:15px;font-weight:600;margin:18px 0 6px}
.clbody img,.pd .body img,.cmt .bd img{max-width:100%;height:auto;border-radius:var(--r);border:1px solid var(--border);margin:10px 0;display:block}
.clbody code,.pd .body code,.cmt .bd code{font:12.5px/1.4 var(--mono);background:var(--surface-3);border:1px solid var(--border);padding:1px 5px;border-radius:5px}
.clbody a,.pd .body a,.cmt .bd a{color:var(--accent);text-decoration:underline;text-decoration-color:var(--accent-border);text-underline-offset:3px}
.clbody a:hover,.pd .body a:hover,.cmt .bd a:hover{text-decoration-color:currentColor}
.clbody strong,.pd .body strong{font-weight:600}
/* md() 会在块级元素后面留下 <br>(源码换行),块级元素自带间距,这些 <br> 只会撑出空行 */
.clbody h3+br,.clbody ul+br,.pd .body h3+br,.pd .body ul+br,.cmt .bd h3+br,.cmt .bd ul+br,
.clbody h3+br+br,.pd .body h3+br+br{display:none}
.clbody>p:first-child,.pd .body>p:first-child{margin-top:0}
.clbody p:empty,.pd .body p:empty{display:none}

.react{display:flex;align-items:center;gap:6px;margin-top:16px;flex-wrap:wrap}
.rbtn{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid var(--border-strong);border-radius:999px;background:var(--surface);
  font-size:12.5px;color:var(--text-2);transition:border-color .15s,background .15s,color .15s,transform .08s}
.rbtn:hover{border-color:var(--text-4);color:var(--text)}
.rbtn:active{transform:scale(.96)}
.rbtn .emo{font-size:14px;line-height:1}
.rbtn .n{font-size:12px;color:var(--text-3);font-weight:500}
.rbtn .ic{width:14px;height:14px;color:var(--text-3)}
.rbtn.on{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent)}
.rbtn.on .n{color:var(--accent)}
.cladm{display:flex;gap:6px;margin-top:14px;flex-wrap:wrap}
.cladm.top{margin:0 0 18px}
.cladm button{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);
  font-size:12px;font-weight:500;color:var(--text-2);transition:border-color .15s,color .15s,background .15s}
.cladm button .ic{width:13px;height:13px}
.cladm button:hover{color:var(--text);background:var(--surface-hover)}
.cladm button.danger:hover{color:var(--danger);border-color:var(--danger-border);background:var(--danger-soft)}

/* ---------- 12. 模态 ---------- */
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0;transform:translateY(6px) scale(.985)}to{opacity:1;transform:none}}
.mask{position:fixed;inset:0;z-index:50;background:var(--overlay);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  display:flex;align-items:flex-start;justify-content:center;padding:8vh 16px 32px;overflow-y:auto;animation:fadeIn .16s ease}
.modal{position:relative;width:100%;max-width:960px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--sh-lg);animation:popIn .18s var(--ease)}
.modal.sm{max-width:640px}
.x{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;color:var(--text-3);transition:background .15s,color .15s}
.x:hover{background:var(--surface-hover);color:var(--text)}
.modal>.x{position:absolute;top:12px;right:12px;z-index:2}

/* 帖子详情 */
.pd{display:grid;grid-template-columns:minmax(0,1fr) 268px}
.pd .left{padding:28px 28px 24px;min-width:0}
.pd .right{border-left:1px solid var(--border);padding:56px 20px 24px;background:var(--surface-sunken);border-radius:0 var(--r-lg) var(--r-lg) 0}
.pd h2{font-size:20px;font-weight:600;letter-spacing:-.015em;line-height:1.35;padding-right:36px;word-break:break-word}
.pd-by{display:flex;align-items:center;gap:8px;margin:10px 0 18px;font-size:12.5px;color:var(--text-3)}
.pd-by .nm{color:var(--text-2);font-weight:500}
.official{margin-top:20px;border:1px solid var(--accent-border);background:var(--accent-soft);border-radius:10px;padding:12px 14px}
.official-hd{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--accent)}
.official-bd{margin-top:6px;font-size:13.5px;color:var(--text);white-space:pre-wrap;word-break:break-word}
.tabs{display:flex;gap:18px;align-items:center;border-bottom:1px solid var(--border);margin:28px 0 2px}
.tabs button{display:inline-flex;align-items:center;gap:6px;height:36px;font-size:13.5px;font-weight:500;color:var(--text-2);border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs button.on{color:var(--text);border-bottom-color:var(--text)}
.tabs .tn{font-size:11px;font-weight:600;color:var(--text-3);background:var(--surface-3);border-radius:999px;padding:0 6px;line-height:17px}
.kv{display:flex;align-items:center;gap:10px;min-height:28px;margin-bottom:8px;font-size:13px;color:var(--text)}
.kv .k{width:56px;color:var(--text-3);font-size:12.5px;flex:none}
.kv-who{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adm{margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}
.adm h4{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12.5px;font-weight:600;margin-bottom:4px}
.adm h4 span{font-size:11.5px;font-weight:400;color:var(--text-3)}
.adm .lab{margin:12px 0 5px}
.adm-acts{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}

/* 评论 */
.cmt{display:flex;gap:10px;padding:14px 0;border-bottom:1px solid var(--border-soft)}
.cmt.reply{margin-left:34px;padding-top:10px}
.cmt>.av{margin-top:1px}
.cmt-main{flex:1;min-width:0}
.cmt-hd{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cmt .nm{font-weight:600;font-size:13px}
.cmt .bd{margin-top:3px}
.badge,.badge-admin{display:inline-flex;align-items:center;height:17px;padding:0 6px;border-radius:5px;font-size:10.5px;font-weight:600;background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent-border)}
.cmt .acts{display:flex;align-items:center;gap:2px;margin:6px 0 0 -6px}
.cmt .acts button{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 6px;border-radius:6px;font-size:12px;color:var(--text-3);transition:background .12s,color .12s}
.cmt .acts button .ic{width:13px;height:13px}
.cmt .acts button:hover{background:var(--surface-hover);color:var(--text)}
.cmt .acts .on{color:var(--accent);font-weight:600}
.cbox{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;margin-top:16px;align-items:start}
.cbox textarea{grid-area:1/1;width:100%;min-height:44px;resize:vertical;padding:10px 12px;border:1px solid var(--border-strong);border-radius:var(--r);background:var(--surface);
  color:var(--text);font-size:13.5px;line-height:1.55;outline:none;transition:border-color .15s,box-shadow .15s}
.cbox textarea:focus{border-color:var(--accent-solid);box-shadow:var(--ring)}
.cbox>.btn.pri{grid-area:1/2;height:auto;min-height:44px;align-self:stretch;padding:0 14px}

/* 邮件通知开关(管理员) */
.ntf{grid-area:2/1/auto/3;justify-self:start;position:relative;display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 4px 0 8px;border-radius:999px;
  border:1px solid var(--border-strong);background:var(--surface);cursor:pointer;font-size:12.5px;color:var(--text-2);user-select:none;transition:background .15s,border-color .15s,color .15s}
.ntf:hover{background:var(--surface-hover)}
.ntf input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ntf .bx{width:14px;height:14px;flex:none;border-radius:4px;border:1.5px solid var(--text-4);background:var(--surface);display:grid;place-items:center;color:transparent;transition:background .15s,border-color .15s,color .15s}
.ntf .bx .ic{width:11px;height:11px;stroke-width:3}
.ntf>.ic{width:13px;height:13px}
.ntf .who{font-size:11.5px;color:var(--text-3);background:var(--surface-3);padding:0 8px;border-radius:999px;line-height:20px;font-variant-numeric:tabular-nums;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ntf.on{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent)}
.ntf.on .bx{background:var(--accent-solid);border-color:var(--accent-solid);color:#fff}
.ntf.on .who{background:var(--surface);color:var(--accent)}
.ntf input:focus-visible+.bx{box-shadow:var(--ring);border-color:var(--accent-solid)}

/* 更新日志详情 */
.cld{padding:28px}
.cld-meta{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text-3)}
.cld h2{font-size:20px;font-weight:600;letter-spacing:-.015em;line-height:1.35;margin:8px 0 16px;padding-right:36px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* 提交建议 / 编辑更新 */
.sub .bar{display:flex;align-items:center;gap:8px;padding:14px 56px 14px 18px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.bar-ttl{font-size:14px;font-weight:600;margin-right:6px}
.pill-sel{position:relative;display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 2px 0 10px;border:1px solid var(--border-strong);border-radius:999px;background:var(--surface);color:var(--text-3);transition:border-color .15s,box-shadow .15s}
.pill-sel:hover{border-color:var(--text-4)}
.pill-sel:focus-within{border-color:var(--accent-solid);box-shadow:var(--ring)}
.pill-sel select{border:0;background:transparent;font-size:12.5px;font-weight:500;color:var(--text);height:26px;padding:0 6px 0 2px;outline:none;cursor:pointer}
.pill-sel select option{background:var(--surface);color:var(--text)}
.crumb{display:inline-flex;color:var(--text-4)}
.sub .ttl{display:block;width:100%;border:0;border-bottom:1px solid var(--border-soft);background:transparent;color:var(--text);font-size:18px;font-weight:600;letter-spacing:-.01em;
  padding:18px 18px 12px;outline:none;transition:border-color .15s,box-shadow .15s}
.sub .ttl:focus{border-bottom-color:var(--accent-solid);box-shadow:0 1px 0 0 var(--accent-solid)}
.sub .ttl::placeholder{color:var(--text-4)}
.sub .miss{background:var(--danger-soft)!important;box-shadow:inset 0 0 0 1.5px var(--danger)!important}
.sub textarea:not(.inp){display:block;width:100%;border:0;min-height:180px;resize:vertical;padding:14px 18px;background:transparent;color:var(--text);font-size:14px;line-height:1.65;outline:none}
.sub-row{display:flex;gap:8px;padding:14px 18px 0}
.sub-row #eV{width:168px;flex:none}
.sub .tb{display:flex;align-items:center;gap:2px;padding:6px 12px;border-top:1px solid var(--border-soft)}
.sub .tb button{width:30px;height:30px;border-radius:6px;display:grid;place-items:center;color:var(--text-2);transition:background .12s,color .12s}
.sub .tb button:hover{background:var(--surface-hover);color:var(--text)}
.tb-hint{margin-left:auto;font-size:12px;color:var(--text-3)}
.sub .ft{display:flex;align-items:center;gap:8px;padding:12px 16px;border-top:1px solid var(--border);background:var(--surface-sunken);border-radius:0 0 var(--r-lg) var(--r-lg)}
.sub .ft .sw{margin-left:-4px}

/* ---------- 13. Toast ---------- */
@keyframes toastIn{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:99;max-width:min(420px,calc(100% - 32px));
  background:var(--toast-bg);color:var(--toast-fg);padding:10px 16px;border-radius:10px;font-size:13px;font-weight:500;line-height:1.45;box-shadow:var(--sh-lg);
  animation:toastIn .2s var(--ease);transition:opacity .2s,transform .2s}
.toast.out{opacity:0;transform:translate(-50%,6px)}

#bugToasts{position:fixed;left:50%;bottom:24px;z-index:90;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;width:max-content;max-width:calc(100% - 32px)}
@keyframes tin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#bugToasts .toast{position:static;transform:none;pointer-events:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);
  min-width:240px;max-width:360px;display:flex;align-items:flex-start;gap:10px;animation:tin .2s var(--ease)}
#bugToasts .toast.dark{background:var(--toast-bg);color:var(--toast-fg);border-color:transparent}
#bugToasts .toast .tdot{width:8px;height:8px;border-radius:50%;background:var(--st-done-dot);margin-top:6px;flex:none;box-shadow:0 0 0 3px var(--st-done-bg)}

/* ---------- 14. 缺陷工单 ---------- */
.wrap.bugs-view:has(.bugs-grid.kanban){max-width:1480px}
.hero-meta{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}
.hero-meta:empty{display:none}
.stat{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:12px;color:var(--text-2)}
.stat b{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.stat .sdot{width:6px;height:6px}

.bugs-grid{display:grid;grid-template-columns:208px minmax(0,1fr) 320px;gap:28px;align-items:start}
.filters{position:sticky;top:calc(var(--hdr) + 20px)}
.filters h3{font-size:12px;font-weight:600;color:var(--text-3);padding:0 10px 8px;letter-spacing:.02em}
.filters .srch{margin-top:16px;flex:none;width:100%}
.filters .srch .inp{width:100%}

.bugs-grid .board{min-width:0}
.board-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap;min-height:34px}
.board-head h2{font-size:15px;font-weight:600;letter-spacing:-.01em}
.bh-r{display:flex;align-items:center;gap:12px}
.bh-r .muted{font-variant-numeric:tabular-nums}

.list{display:flex;flex-direction:column;gap:8px}
.list>.empty{background:var(--surface);border:1px dashed var(--border-strong);border-radius:var(--r-lg)}
.trow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:14px 16px;cursor:pointer;border-radius:10px;transition:border-color .15s,box-shadow .15s}
.trow:hover{border-color:var(--border-strong);box-shadow:var(--sh-sm)}
.trow-main{min-width:0}
.trow .id{display:flex;align-items:center;gap:6px;font:500 12px/1.4 var(--mono);color:var(--text-3)}
.trow .ttl{font-size:14.5px;font-weight:600;letter-spacing:-.005em;line-height:1.4;margin:4px 0 3px;word-break:break-word}
.trow .exc{color:var(--text-2);font-size:13px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.trow .exc:empty{display:none}
.trow .meta i,.kmeta i{font-style:normal}
.trow .side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:12px}
.counts{display:flex;gap:10px;color:var(--text-3);font-size:12px}
.counts span{display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums}
.counts .ic{width:12px;height:12px}
@keyframes flashin{from{background:var(--accent-soft-2)}to{background:var(--surface)}}
.trow.pulse{animation:flashin 1s ease;box-shadow:0 0 0 3px var(--accent-soft-2),var(--sh-sm);border-color:var(--accent-border)}
.srctag{display:inline-flex;align-items:center;gap:3px;height:18px;padding:0 6px;border-radius:5px;font:600 10.5px/1 var(--font);letter-spacing:0;
  background:var(--amber-bg);color:var(--amber-fg);border:1px solid var(--amber-border);vertical-align:middle}
.srctag .ic{width:11px;height:11px}

/* 提交表单 */
.compose{padding:20px;position:sticky;top:calc(var(--hdr) + 20px)}
.compose-hd{padding-bottom:14px;margin-bottom:2px;border-bottom:1px solid var(--border-soft)}
.compose-hd h2{font-size:15px;font-weight:600;letter-spacing:-.01em}
.compose-hd p{font-size:12.5px;color:var(--text-3);margin-top:4px;line-height:1.5}
.lab{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:var(--text);margin:14px 0 6px}
.req{display:inline-flex;align-items:center;height:17px;padding:0 6px;border-radius:999px;font-size:10.5px;font-weight:500;color:var(--danger);background:var(--danger-soft)}
.opt{font-size:11px;font-weight:400;color:var(--text-3)}
.fine{font-size:12px;color:var(--text-3);margin-top:6px;line-height:1.5}
.area{resize:vertical;min-height:120px}
.compose-form .btn.block{height:36px;margin-top:20px}
.desc-box{border:1px solid var(--border-strong);border-radius:var(--r);background:var(--surface);overflow:hidden;transition:border-color .15s,box-shadow .15s,background .15s}
.desc-box:hover{border-color:var(--text-4)}
.desc-box:focus-within{border-color:var(--accent-solid);box-shadow:var(--ring)}
.desc-box.over{border-color:var(--accent-solid);border-style:dashed;background:var(--accent-soft)}
.desc-box .area{border:0;border-radius:0;box-shadow:none!important;background:transparent;min-height:128px}
.desc-ft{display:flex;align-items:center;gap:6px;padding:7px 11px;border-top:1px dashed var(--border);font-size:12px;color:var(--text-3)}
.thumbs{display:flex;flex-wrap:wrap;gap:8px;padding:4px 10px 10px}
.thumbs:empty{display:none}
.thumb{position:relative;width:64px;height:48px;border-radius:6px;overflow:hidden;border:1px solid var(--border);background:var(--surface-3)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb.up .sk{width:100%;height:100%;border-radius:0}
.thumb .rm{position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.66);color:#fff;transition:background .15s}
.thumb .rm:hover{background:rgba(0,0,0,.85)}

/* 抽屉 / 遮罩 */
.bugs-mask{position:fixed;inset:0;z-index:55;background:var(--overlay);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;transition:opacity .2s ease}
.bugs-mask.show{opacity:1}
.drawer{position:fixed;top:8px;right:8px;bottom:8px;width:min(560px,calc(100% - 16px));z-index:60;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  box-shadow:var(--sh-lg);transform:translateX(calc(100% + 24px));transition:transform .2s var(--ease);display:flex;flex-direction:column;overflow:hidden}
.drawer.show{transform:translateX(0)}
.drawer-hd{display:flex;align-items:flex-start;gap:12px;padding:18px 18px 16px 22px;border-bottom:1px solid var(--border);flex:none}
.drawer-hd>div{min-width:0}
.drawer-hd .x{margin-left:auto;flex:none}
.drawer-id{font:500 12px/1.4 var(--mono);color:var(--text-3)}
.drawer-hd h2{font-size:17px;font-weight:600;letter-spacing:-.015em;line-height:1.4;margin-top:4px;word-break:break-word}
.drawer-body{padding:16px 22px 48px;overflow:auto;flex:1}
.kvs{display:grid;gap:2px;padding-bottom:4px}
.drawer .kv{margin-bottom:2px}
.drawer .kv .k{width:64px}
.bodytxt{color:var(--text);font-size:14px;white-space:pre-wrap;word-break:break-word;line-height:1.7}
.sec{margin-top:24px}
.sec h3{font-size:12px;font-weight:600;color:var(--text-3);margin-bottom:10px;letter-spacing:.02em}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.gallery button{border:1px solid var(--border);border-radius:var(--r);overflow:hidden;background:var(--surface-3);aspect-ratio:16/10;transition:border-color .15s,box-shadow .15s}
.gallery img{width:100%;height:100%;object-fit:cover;display:block}
.gallery button:hover{border-color:var(--accent-border);box-shadow:var(--sh-sm)}
.loglist{display:flex;flex-direction:column;gap:6px}
.logchip{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface-sunken);font-size:12.5px;transition:border-color .15s}
a.logchip:hover,.logchip:hover{border-color:var(--border-strong)}
.logchip .lnk{color:var(--text);text-decoration:none}
.logchip .lnk.dl{margin-left:auto;color:var(--accent);font-size:12px}
.logchip .lnk.dl:hover{text-decoration:underline}
.logchip .nm{display:inline-flex;align-items:center;gap:6px;font-weight:500;color:var(--text);min-width:0;word-break:break-all}
.logchip .nm .ic{width:13px;height:13px;color:var(--text-3)}
.logchip .sz{color:var(--text-3);margin-left:8px;font-size:12px;font-variant-numeric:tabular-nums;flex:none}
.logview{margin-top:10px;max-height:340px;overflow:auto;background:#0b0b0c;color:#d4d4d4;font:11.5px/1.55 var(--mono);padding:12px 14px;border-radius:var(--r);border:1px solid #1f1f22;white-space:pre-wrap;word-break:break-all}
.sec>.admin{background:var(--surface-sunken);border:1px solid var(--border);border-radius:10px;padding:12px}
.sec>.admin .cap{font-size:12px;font-weight:500;color:var(--text-2);margin-bottom:10px}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.seg button{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:32px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface);
  font-size:12.5px;font-weight:500;color:var(--text-2);transition:border-color .15s,background .15s,color .15s}
.seg button:hover{color:var(--text);background:var(--surface-hover)}
.seg button.on{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent)}
.thread{display:flex;flex-direction:column}
.thread-empty{padding:4px 0}
.drawer .cmt{padding:12px 0}
.drawer .cmt .av{width:26px;height:26px;font-size:11px}
.drawer .cmt .when{color:var(--text-3);font-size:12px}
.drawer .cmt .bd{white-space:pre-wrap}
.drawer .cbox textarea{min-height:52px}

/* 窄屏 / 看板模式下的提交弹窗 */
.bugs-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-48%) scale(.985);width:min(460px,calc(100% - 24px));max-height:90vh;overflow:auto;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--sh-lg);z-index:70;opacity:0;transition:opacity .18s,transform .18s var(--ease)}
.bugs-modal.show{opacity:1;transform:translate(-50%,-50%)}
.bugs-modal>.x{position:absolute;right:12px;top:12px;z-index:1}
#bugModalBody{padding:20px}

/* 灯箱 */
.lightbox{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.82);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:grid;place-items:center;padding:32px;animation:fadeIn .16s ease}
.lightbox img{max-width:min(1040px,100%);max-height:86vh;border-radius:var(--r);box-shadow:0 24px 64px rgba(0,0,0,.5);background:#111}
.light-x{position:absolute;right:16px;top:16px;width:36px;height:36px;border-radius:var(--r);color:#fff;background:rgba(255,255,255,.12)}
.light-x:hover{background:rgba(255,255,255,.22);color:#fff}

/* 看板 */
/* 看板模式:状态筛选没有意义(每列就是一个状态),左栏收成看板上方的一个搜索框 */
.bugs-grid.kanban{grid-template-columns:minmax(0,1fr);gap:16px}
.bugs-grid.kanban #composePane{display:none}
.bugs-grid.kanban .filters .snav,.bugs-grid.kanban .filters h3{display:none}
.bugs-grid.kanban .filters{position:static;max-width:300px}
.bugs-grid.kanban .filters .srch{margin-top:0}
.list.kanban-list{display:block}
.kanban-list>.kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(248px,1fr);gap:12px;align-items:start;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity}
.kcol{background:var(--surface-sunken);border:1px solid var(--border);border-radius:var(--r-lg);padding:6px;min-height:200px;transition:background .15s,border-color .15s,box-shadow .15s;scroll-snap-align:start;min-width:0}
.kcol.over{background:var(--accent-soft);border-color:var(--accent-border);box-shadow:inset 0 0 0 1px var(--accent-border)}
.kcol header{display:flex;align-items:center;gap:8px;padding:8px 8px 12px;font-size:13px;font-weight:600}
.kcol header b{margin-left:auto;font-size:11.5px;font-weight:500;color:var(--text-3);background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:0 7px;line-height:18px;font-variant-numeric:tabular-nums}
.kcol header .dot{width:8px;height:8px;border-radius:50%;background:var(--st-open-dot)}
.kcol.progress header .dot{background:var(--st-prog-dot)}
.kcol.fixed header .dot{background:var(--st-done-dot)}
.kcol.declined header .dot{background:var(--st-decl-dot)}
.kbody{display:flex;flex-direction:column;gap:6px}
.kempty{padding:28px 0;text-align:center;font-size:12.5px;color:var(--text-3);border:1px dashed var(--border-strong);border-radius:var(--r)}
.kcard{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:10px 12px;cursor:pointer;box-shadow:var(--sh-xs);transition:border-color .15s,box-shadow .15s,opacity .15s}
.kcard:hover{border-color:var(--border-strong);box-shadow:var(--sh-sm)}
.kcard[draggable="true"]{cursor:grab}
.kcard[draggable="true"]:active{cursor:grabbing}
.kcard.dragging{opacity:.45;box-shadow:var(--sh-md)}
.kcard .ktop{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.kcard .id{font:500 11.5px/1.4 var(--mono);color:var(--text-3)}
.kcard .ttl{font-size:13.5px;font-weight:500;line-height:1.45;margin:4px 0 8px;word-break:break-word}
.kthumb{margin:0 0 8px;border-radius:6px;overflow:hidden;border:1px solid var(--border-soft)}
.kthumb img{display:block;width:100%;height:96px;object-fit:cover;object-position:top}
.kmeta{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--text-3);min-width:0}
.kmeta .au{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}
.kmeta .kc{margin-left:auto;display:flex;gap:8px}
.kmeta .kc span{display:inline-flex;align-items:center;gap:3px;font-variant-numeric:tabular-nums}
.kmeta .kc .ic{width:12px;height:12px}

/* 横向滚动条:细一点 */
.rm::-webkit-scrollbar,.kanban-list>.kanban::-webkit-scrollbar{height:8px}
.rm::-webkit-scrollbar-thumb,.kanban-list>.kanban::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:999px}
.rm::-webkit-scrollbar-track,.kanban-list>.kanban::-webkit-scrollbar-track{background:transparent}

/* ---------- 15. Responsive ---------- */
@media (max-width:1100px){
  .bugs-grid{grid-template-columns:200px minmax(0,1fr)}
  #composePane{display:none}
}
@media (max-width:900px){
  .cols{grid-template-columns:minmax(0,1fr);gap:28px}
  #side{display:grid;grid-template-columns:1fr 1fr;gap:24px}
  .side-sec+.side-sec{margin-top:0}
  .pd{grid-template-columns:minmax(0,1fr)}
  .pd .right{border-left:0;border-top:1px solid var(--border);padding:20px;border-radius:0 0 var(--r-lg) var(--r-lg)}
}
@media (max-width:820px){
  :root{--hdr:101px}
  .hdr-in{height:auto;flex-wrap:wrap;padding:0 16px;gap:0 12px}
  .brand,.hdr-r{height:52px}
  .nav{order:3;width:calc(100% + 32px);margin:0 -16px;padding:0 8px;height:44px;overflow-x:auto;scrollbar-width:none;border-top:1px solid var(--border-soft)}
  .nav::-webkit-scrollbar{display:none}
  .nav a::before{inset:8px 2px}

  .bugs-grid,.bugs-grid.kanban{grid-template-columns:minmax(0,1fr);gap:16px}
  .filters{position:static}
  .filters h3{display:none}
  .filters .snav{flex-direction:row;flex-wrap:wrap;gap:4px}
  .frow{width:auto;height:30px;border:1px solid var(--border);background:var(--surface)}
  .frow.on{border-color:var(--border-strong)}
  .filters .srch{margin-top:10px}
  .drawer{top:0;right:0;bottom:0;width:100%;border-radius:0;border:0}
}
@media (max-width:640px){
  .wrap{padding:20px 16px 64px}
  .page-hd{flex-direction:column;align-items:stretch;gap:14px;margin-bottom:18px}
  .page-hd h1{font-size:22px}
  .page-hd-act{justify-content:flex-start;flex-wrap:wrap}
  .page-hd-act .btn.pri{flex:1}
  .tools .grow{display:none}
  .tools .srch{flex:1 1 100%;order:3}
  #side{grid-template-columns:minmax(0,1fr)}
  .prow{padding:12px;gap:12px}
  .vbox{width:40px;height:48px}
  .meta .tags{width:100%}
  .rm,.kanban-list>.kanban{grid-auto-columns:minmax(260px,86%);margin:0 -16px;padding:0 16px 8px;scroll-padding:0 16px}
  .clrow{grid-template-columns:minmax(0,1fr)}
  .clrow .date{position:relative;flex-direction:row;align-items:center;padding:0 0 8px 20px;border-left:1px solid var(--border)}
  .clrow .date::before{content:"";position:absolute;left:-5px;top:6px;width:9px;height:9px;border-radius:50%;background:var(--surface);box-shadow:0 0 0 2px var(--accent-solid),0 0 0 5px var(--bg)}
  .clrow .date time{position:static}
  .clmain{padding:0 0 36px 20px}
  .clmain::before{display:none}
  .mask{padding:0;align-items:flex-end}
  .modal,.modal.sm{max-width:none;border-radius:var(--r-lg) var(--r-lg) 0 0;border-bottom:0;min-height:60vh}
  .pd .left{padding:22px 18px 18px}
  .pd .right{border-radius:0}
  .cld{padding:22px 18px}
  .sub .bar{padding-right:52px}
  .sub-row{flex-direction:column}
  .sub-row #eV{width:100%}
  .tb-hint{display:none}
  .trow{grid-template-columns:minmax(0,1fr);gap:10px}
  .trow .side{flex-direction:row;align-items:center}
  .cbox{grid-template-columns:minmax(0,1fr)}
  .cbox>.btn.pri{grid-area:auto;min-height:36px;justify-self:end}
  .ntf{grid-area:auto}
  .cmt.reply{margin-left:20px}
}
@media (max-width:520px){
  .hdr .who{display:none}
  .brand-sub{display:none}
  .segc-btn{padding:0 9px}
  .tgl{padding:0 6px}
}

/* ---------- 16. Motion preference ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* ---------- 17. 工单对话 + 未读(2026-10-31) ---------- */
/* 看板卡片:未读红点、最后一条消息、等谁回复、标题右侧 16:9 小缩略图 */
.udot{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:auto;border-radius:999px;background:#ef4444;color:#fff;font:600 10.5px/1 var(--font);font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px var(--surface)}
.udot.sm{min-width:8px;width:8px;height:8px;padding:0;margin:0}
.stat.unread b{color:#ef4444}
.trow .id .udot{margin-left:4px}
.kcard.has-unread,.trow.has-unread{border-color:rgba(239,68,68,.35)}
.kcard .krow{display:flex;align-items:flex-start;gap:10px;margin:4px 0 6px}
.kcard .krow .ttl{flex:1;margin:0;min-width:0}
.kthumb{flex:none;width:64px;aspect-ratio:16/9;margin:2px 0 0;border-radius:5px;overflow:hidden;border:1px solid var(--border);background:var(--surface-3)}
.kthumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.klast{display:flex;align-items:flex-start;gap:6px;margin:0 0 8px;padding:6px 8px;border-radius:6px;background:var(--surface-sunken);font-size:12px;line-height:1.5;color:var(--text-2);min-width:0}
.klast>span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;min-width:0}
.klast b{font-weight:600;color:var(--text)}
.klast.cadm{background:var(--accent-soft)}
.klast.cadm b{color:var(--accent)}
.klast .av{margin-top:1px}
.trow .klast{margin:4px 0 6px;max-width:640px}
.kwait{margin-top:8px}
.wtag{display:inline-flex;align-items:center;gap:4px;height:19px;padding:0 7px;border-radius:999px;font-size:11px;font-weight:500;color:var(--text-3);background:var(--surface-3);border:1px solid var(--border)}
.wtag .ic{width:11px;height:11px}
.wtag.me{color:var(--amber-fg);background:var(--amber-bg);border-color:var(--amber-border)}
.trow .id .wtag{margin-left:2px;font-family:var(--font)}
.bh-l{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0}
.qtog .segc-btn .tn{display:inline-grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--surface-3);font-size:10.5px}
.qtog .segc-btn.on .tn{background:var(--accent-soft-2);color:var(--accent)}

/* 抽屉 = 对话 */
.chat-hd{padding:16px 16px 14px 20px}
.chd-main{flex:1;min-width:0}
.chat-hd .drawer-id{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chat-hd h2{margin-top:6px}
.chd-sub{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:var(--text-3);min-width:0}
.chd-sub .ic{width:12px;height:12px}
.chd-sub span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-admin{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 16px 10px 20px;border-bottom:1px solid var(--border);background:var(--surface-sunken);flex:none}
.seg.mini{display:inline-flex;gap:4px}
.seg.mini button{height:28px;padding:0 10px;font-size:12px}
.asg{display:inline-flex;align-items:center;gap:6px;margin-left:auto;height:28px;padding:0 4px 0 9px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface);color:var(--text-3);font-size:12px;max-width:220px}
.asg .ic{width:13px;height:13px;flex:none}
.asg select{border:0;background:transparent;color:var(--text);font:inherit;font-size:12px;height:26px;outline:none;min-width:0;max-width:180px;cursor:pointer}
.chat-scroll{flex:1;overflow:auto;padding:18px 18px 12px 20px;background:var(--bg);scroll-behavior:smooth}
.chat-list{display:flex;flex-direction:column;gap:2px}
.chat-empty{margin:18px auto 4px;max-width:300px;text-align:center;font-size:12.5px;color:var(--text-3);line-height:1.6}
.chat-empty:empty{display:none}
.chat-err{display:flex;align-items:center;gap:6px;color:var(--danger);font-size:13px;padding:12px}
.cmsg{display:flex;align-items:flex-end;gap:8px;margin-top:12px;max-width:100%}
.cmsg.grp{margin-top:3px}
.cmsg .cav{width:28px;flex:none;display:flex;align-items:flex-end}
.cmsg .cav .av{width:28px;height:28px;font-size:11.5px}
.cbub-wrap{display:flex;flex-direction:column;align-items:flex-start;max-width:min(78%,420px);min-width:0}
.cwho{display:flex;align-items:center;gap:6px;margin:0 0 4px 2px;font-size:12px;color:var(--text-3)}
.cwho b{font-weight:600;color:var(--text-2);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cwho .ct{font-variant-numeric:tabular-nums}
.badge-off,.badge-op{display:inline-flex;align-items:center;height:16px;padding:0 5px;border-radius:4px;font-size:10px;font-weight:600}
.badge-off{background:var(--accent-solid);color:#fff}
.badge-op{background:var(--surface-3);color:var(--text-3);border:1px solid var(--border)}
.cbub{padding:9px 12px;border-radius:14px 14px 14px 4px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--sh-xs);font-size:13.5px;line-height:1.6;color:var(--text);word-break:break-word;overflow-wrap:anywhere;min-width:0;max-width:100%}
.cbub a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.cmsg.grp .cbub{border-top-left-radius:6px}
.cmsg.cadm.them .cbub{background:var(--accent-soft);border-color:var(--accent-border)}
.cmsg.me{flex-direction:row-reverse}
.cmsg.me .cbub-wrap{align-items:flex-end}
.cmsg.me .cwho{margin:0 2px 4px 0}
.cmsg.me .cbub{background:var(--accent-solid);border-color:var(--accent-solid);color:#fff;border-radius:14px 14px 4px 14px}
.cmsg.me.grp .cbub{border-top-right-radius:6px}
.cmsg.me .cbub a{color:#fff}
.cmsg.origin .cbub{background:var(--surface);color:var(--text);border-color:var(--border);border-radius:14px 14px 14px 4px;max-width:100%}
.cmsg.origin.me .cbub{border-radius:14px 14px 4px 14px}
.cmsg.origin .cbub-wrap{max-width:min(92%,480px)}
.ctitle{font-weight:600;margin-bottom:4px}
.cimg{display:block;margin:6px 0 2px;border-radius:8px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:var(--surface-3);max-width:260px}
.cimg img{display:block;width:100%;max-height:200px;object-fit:cover}
.cgal{margin-top:10px;grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
.cbub .loglist{margin-top:10px}
.cbub .logview{margin-top:8px}
.cmsg.sys{justify-content:center;margin:14px 0 4px}
.cmsg.sys span{display:inline-flex;align-items:center;gap:6px;max-width:92%;padding:4px 10px;border-radius:999px;background:var(--surface-3);border:1px solid var(--border);color:var(--text-3);font-size:11.5px;line-height:1.4;text-align:center}
.cmsg.sys .ic{width:12px;height:12px;flex:none}
.rcpt{display:inline-flex;align-items:center;margin-top:4px;padding-right:2px;font-size:11px;color:var(--text-3)}
.rcpt .ic{width:12px;height:12px}
.rcpt .ic2{margin-left:-7px;margin-right:2px}
.rcpt.read{color:var(--accent)}
.chat-new{position:absolute;left:50%;bottom:118px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 12px;border-radius:999px;background:var(--toast-bg);color:var(--toast-fg);font-size:12px;box-shadow:var(--sh-md);z-index:2}
.chat-new .ic{transform:rotate(90deg)}
.chat-ft{flex:none;padding:10px 14px 12px;border-top:1px solid var(--border);background:var(--surface)}
.chat-ft .thumbs{padding:0 0 8px}
.chat-box{display:flex;align-items:flex-end;gap:6px;padding:6px 6px 6px 12px;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface);transition:border-color .15s,box-shadow .15s,background .15s}
.chat-box:focus-within{border-color:var(--accent-solid);box-shadow:var(--ring)}
.chat-box.over{border-style:dashed;border-color:var(--accent-solid);background:var(--accent-soft)}
.chat-box textarea{flex:1;min-width:0;border:0;outline:0;resize:none;background:transparent;color:var(--text);font:inherit;font-size:14px;line-height:1.5;padding:5px 0;max-height:160px}
.chat-box textarea::placeholder{color:var(--text-4)}
.ibtn{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;color:var(--text-3);cursor:pointer;flex:none;transition:background .15s,color .15s}
.ibtn:hover{background:var(--surface-hover);color:var(--text)}
.chat-box .btn.pri{height:32px;padding:0 12px;border-radius:8px;flex:none}
.chat-box .btn.pri:disabled{opacity:.6}
.chat-hint{margin:6px 2px 0;font-size:11.5px;color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){
  .chat-scroll{padding:14px 12px 10px}
  .cbub-wrap{max-width:84%}
  .chat-admin{padding:8px 12px}
  .asg{margin-left:0}
  .chat-box .btn.pri span{display:none}
  .chat-hint{display:none}
  .chat-new{bottom:84px}
  .board-head{align-items:flex-start}
  .bh-l{width:100%}
  .qtog{max-width:100%;overflow-x:auto}
}