:root{--ink:#f4efe6;--panel:rgba(14,20,38,.78);--line:rgba(255,255,255,.14);--accent:#ffcf7a}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#0b1328;color:var(--ink);font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;overflow:hidden}
#scene{position:fixed;left:0;right:0;top:0;height:73vh}
.hud{position:fixed;z-index:2;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 14px;backdrop-filter:blur(6px)}
#title{left:16px;top:16px;max-width:calc(100vw - 32px)}
#title h1{margin:0;font-size:17px;font-weight:600;letter-spacing:.04em}
#title p{margin:4px 0 0;font-size:12px;opacity:.75}
#views{right:16px;top:16px;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100vw - 32px)}
#views button{background:rgba(255,255,255,.08);color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:6px 12px;font:inherit;font-size:12px;cursor:pointer}
#views button:hover,#views button.on{background:var(--accent);color:#2a1e08;border-color:var(--accent)}
#viewSel{display:none;background:rgba(20,26,44,.85);color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:7px 12px;font:inherit;font-size:13px}
@media (max-width:900px){#views button[data-view]{display:none}#viewSel{display:inline-block}}
#legend{left:16px;bottom:calc(27vh + 12px);font-size:12px;display:flex;gap:14px;flex-wrap:wrap;max-width:calc(100vw - 32px)}
#legend span{display:inline-flex;align-items:center;gap:6px}
#legend i{width:9px;height:9px;border-radius:50%;display:inline-block}
#note{right:16px;bottom:calc(27vh + 12px);font-size:12px;opacity:.8;max-width:300px}
#board{position:fixed;left:0;right:0;bottom:0;height:27vh;background:#0e1527;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr minmax(320px,400px);gap:24px;padding:10px 20px 12px;z-index:3}
#board h2{margin:0 0 8px;font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px}
#board h2 small{font-size:11px;font-weight:400;opacity:.6}
#board section{min-height:0;display:flex;flex-direction:column}
#team{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:7px;overflow-y:auto;padding-right:4px;align-content:start}
.card{background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:11px;padding:8px 10px;display:flex;gap:9px;align-items:center;cursor:pointer;min-width:0}
.card:hover{border-color:var(--accent)}
.card .av{width:32px;height:32px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:11px;font-weight:700;color:#1d2433;border:2px solid rgba(255,255,255,.5)}
.card .meta{flex:1;min-width:0}
.card .nm{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .rl{font-size:11px;opacity:.55}
.card .tk{font-size:11.5px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.pill{font-size:11px;padding:1px 7px;border-radius:999px;white-space:nowrap;display:inline-flex;gap:5px;align-items:center;background:rgba(255,255,255,.08);margin-left:4px;vertical-align:1px}
.pill i{width:7px;height:7px;border-radius:50%;display:inline-block}
#todo{overflow-y:auto;padding-right:4px;flex:1;min-height:0}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:8px}
.stat{border:1.5px solid;border-radius:10px;padding:7px 4px;text-align:center;background:rgba(255,255,255,.03)}
.stat b{display:block;font-size:22px;font-weight:700;line-height:1.15}
.stat span{font-size:12px;opacity:.9}
.grp{font-size:12px;margin:8px 2px 5px;display:flex;justify-content:space-between;opacity:.85}
.grp:first-child{margin-top:0}
.trow{display:flex;justify-content:space-between;gap:8px;padding:6px 9px;border-radius:8px;background:rgba(255,255,255,.045);margin-bottom:5px;font-size:12.5px;border-left:3px solid transparent}
.trow .who{opacity:.65;font-size:11.5px;white-space:nowrap}
.empty{font-size:12px;opacity:.6;padding:6px 2px}
@media (max-width:700px){#scene{height:55vh}#board{height:45vh;grid-template-columns:1fr;overflow-y:auto}#legend,#note{display:none}#title{top:12px;left:12px}#views{top:auto;bottom:calc(45vh + 10px);right:12px;left:12px;justify-content:center}#team{overflow:visible}#todo{overflow:visible}#board{display:block}#board section{min-height:auto;margin-bottom:16px}}
