:root{font-family:Noto Sans TC,Microsoft JhengHei,Segoe UI,system-ui,sans-serif;color:#111;background:#e8edf3;--border: #b8c4d4;--card: #fff;--accent: #1d4ed8;--danger: #b91c1c;--muted: #334155;--tap: 48px;--header-h: 56px;--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box}html{font-size:17px;-webkit-text-size-adjust:100%}body{margin:0;min-height:100dvh;background:#e8edf3}a{color:var(--accent);text-decoration:none;font-weight:700}.app-shell{min-height:100dvh;max-width:720px;margin:0 auto;position:relative;background:#e8edf3}.app-header{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:.65rem;min-height:var(--header-h);padding:.45rem .75rem;background:#0f172a;color:#f8fafc;border-bottom:1px solid #1e293b}.app-header-title{display:flex;flex-direction:column;line-height:1.2;flex:1;min-width:0}.app-header-title strong{font-size:1.05rem}.app-header-title .muted{color:#94a3b8;font-size:.85rem}.user-pill{font-size:.85rem;font-weight:700;background:#1e293b;color:#e2e8f0;padding:.35rem .6rem;border-radius:999px;max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hamburger{width:44px;height:44px;border:0;border-radius:10px;background:#1e293b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;flex-shrink:0}.hamburger span{display:block;width:20px;height:2.5px;background:#f8fafc;border-radius:2px}.menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:45;border:0;background:#0f172a73;cursor:pointer}.drawer{position:fixed;top:0;left:0;bottom:0;width:min(86vw,300px);z-index:50;background:#0f172a;color:#e2e8f0;padding:1rem .75rem calc(1rem + var(--safe-bottom));transform:translate(-105%);transition:transform .2s ease;display:flex;flex-direction:column;gap:.35rem;box-shadow:4px 0 24px #00000040}.drawer.open{transform:translate(0)}.drawer-brand{font-weight:800;font-size:1.1rem;margin:.25rem .5rem .75rem;line-height:1.35}.drawer a{display:flex;align-items:center;gap:.55rem;color:#e2e8f0;padding:.75rem .85rem;border-radius:12px;min-height:48px;background:transparent;font-size:1.05rem}.drawer a:hover,.drawer a.active{background:#2563eb;color:#fff}.drawer .nav-ico{font-size:1.2rem;width:1.5rem;text-align:center}.drawer-footer{margin-top:auto;padding:.75rem .35rem 0;border-top:1px solid #1e293b}.main{padding:.9rem .85rem calc(2rem + var(--safe-bottom))}.card{background:var(--card);border:2px solid var(--border);border-radius:12px;padding:1rem;margin-bottom:.85rem}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem}.stat{background:#f8fafc;border:2px solid var(--border);border-radius:12px;padding:.85rem}.stat strong{display:block;font-size:1.5rem}.muted{color:var(--muted);font-size:.98rem}.table{width:100%;border-collapse:collapse;font-size:.98rem}.table th,.table td{border-bottom:1px solid var(--border);text-align:left;padding:.65rem .3rem;vertical-align:top}.member-cards,.exchange-ops{display:flex;flex-direction:column;gap:.75rem}.btn{border:2px solid var(--border);background:#fff;border-radius:10px;padding:.55rem .85rem;font:inherit;font-weight:700;font-size:1rem;cursor:pointer;margin-right:.35rem;margin-bottom:.35rem;min-height:var(--tap)}.btn-primary{background:var(--accent);border-color:#1e40af;color:#fff}.btn-danger{color:var(--danger);border-color:#fecaca}.btn-ok{background:#16a34a;border-color:#15803d;color:#fff}.btn-warn{background:#ea580c;border-color:#c2410c;color:#fff}.btn-block{width:100%;margin-right:0}.btn-row{display:flex;flex-wrap:wrap;gap:.4rem}.error{color:var(--danger);background:#fef2f2;border:2px solid #fecaca;padding:.75rem;border-radius:10px;font-weight:700}.success{color:#166534;background:#f0fdf4;border:2px solid #bbf7d0;padding:.75rem;border-radius:10px;font-weight:700}form.stack{display:flex;flex-direction:column;gap:.75rem;max-width:none}label{display:flex;flex-direction:column;gap:.3rem;font-size:1rem;font-weight:700}input,select,textarea{font:inherit;font-size:1.05rem;min-height:var(--tap);padding:.5rem .65rem;border:2px solid var(--border);border-radius:10px;width:100%}textarea{min-height:88px;resize:vertical}.badge{display:inline-block;background:#e0e7ff;color:#3730a3;border-radius:999px;padding:.2rem .55rem;font-size:.9rem;font-weight:800}.badge-blue{background:#dbeafe;color:#1e40af}.badge-orange{background:#ffedd5;color:#9a3412}.badge-green{background:#dcfce7;color:#166534}.badge-red{background:#fee2e2;color:#991b1b}.badge-gray{background:#e2e8f0;color:#334155}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:.85rem;flex-wrap:wrap;gap:.5rem}.topbar h1{margin:0;font-size:1.35rem}.ops-block{border:2px solid var(--border);border-radius:12px;padding:.75rem;margin:.55rem 0;background:#f8fafc}.ops-block h3{margin:0 0 .45rem;font-size:1.05rem}.ops-block.inbound{border-color:#60a5fa;background:#eff6ff}.ops-block.outbound{border-color:#fb923c;background:#fff7ed}.ops-block.contact{border-color:#a78bfa;background:#f5f3ff}.field-grid{display:grid;gap:.55rem}.check-row{display:flex;align-items:center;gap:.5rem;font-weight:700}.check-row input{width:22px;height:22px;min-height:22px}@media(min-width:900px){.app-shell{max-width:960px}.stats{grid-template-columns:repeat(3,1fr)}.field-grid.two{grid-template-columns:1fr 1fr}}.modal-root{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:.75rem;padding-bottom:calc(.75rem + var(--safe-bottom))}.modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:#0f172a8c;cursor:pointer}.modal-panel{position:relative;z-index:1;width:100%;max-width:440px;max-height:min(88dvh,720px);overflow:auto;background:#fff;border:2px solid var(--border);border-radius:16px;box-shadow:0 16px 48px #00000038;padding:1rem 1rem 1.1rem;-webkit-overflow-scrolling:touch}.modal-panel.modal-panel-wide{max-width:480px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.65rem;margin-bottom:.75rem;position:sticky;top:0;background:#fff;z-index:2;padding-bottom:.35rem}.modal-head h2{margin:0;font-size:1.2rem;line-height:1.3;flex:1}.modal-close{width:44px;height:44px;flex-shrink:0;border:2px solid var(--border);border-radius:12px;background:#f8fafc;font-size:1.4rem;font-weight:900;line-height:1;cursor:pointer;color:#334155}.modal-close:hover{background:#e2e8f0}body.modal-open{overflow:hidden}.role-picks{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}.role-pick{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;border:2px solid var(--border);border-radius:12px;padding:.75rem .7rem;background:#f8fafc;cursor:pointer;font-weight:700;min-height:72px}.role-pick input{width:22px;height:22px;min-height:22px;margin:0 0 .15rem}.role-pick.on-admin{border-color:#ea580c;background:#fff7ed}.role-pick.on-reviewer{border-color:#2563eb;background:#eff6ff}.role-pick.on-dashboard{border-color:#059669;background:#ecfdf5}.role-picks-3{grid-template-columns:1fr}@media(min-width:520px){.role-picks-3{grid-template-columns:1fr 1fr 1fr}}.role-pick small{font-weight:600;color:var(--muted);font-size:.85rem;line-height:1.3}.boss-topbar{flex-wrap:wrap;align-items:flex-start;gap:.75rem}.boss-live-line{margin:.25rem 0 0;font-size:.9rem}.live-dot{color:#16a34a;font-weight:800;letter-spacing:.02em;animation:live-pulse 1.6s ease-in-out infinite}@keyframes live-pulse{0%,to{opacity:1}50%{opacity:.45}}.boss-actions{flex-wrap:wrap}.boss-kpi-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.55rem;margin-bottom:.85rem}@media(min-width:640px){.boss-kpi-grid{grid-template-columns:repeat(4,1fr)}}.boss-kpi{background:#fff;border:2px solid var(--border);border-radius:12px;padding:.75rem .7rem;display:flex;flex-direction:column;gap:.15rem;min-height:88px}.boss-kpi strong{font-size:1.55rem;line-height:1.15}.boss-kpi small{font-size:.8rem;line-height:1.25}.boss-kpi-warn{border-color:#fca5a5;background:#fef2f2}.boss-insights{background:linear-gradient(135deg,#eff6ff,#fff 55%);border-color:#93c5fd}.insight-list{margin:0;padding-left:1.15rem}.insight-list li{margin-bottom:.4rem;line-height:1.45}.boss-panels{display:grid;grid-template-columns:1fr;gap:.75rem}@media(min-width:720px){.boss-panels{grid-template-columns:1fr 1fr}}.bar-chart{display:flex;align-items:flex-end;gap:.28rem;height:160px;padding-top:.5rem}.bar-col{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;cursor:default}.bar-val{font-size:.7rem;font-weight:800;color:#1e40af;min-height:.9rem;line-height:1;margin-bottom:.15rem}.bar{width:100%;max-width:28px;background:linear-gradient(180deg,#3b82f6,#1d4ed8);border-radius:6px 6px 2px 2px;min-height:2px;transition:height .35s ease}.bar-col:hover .bar{background:linear-gradient(180deg,#60a5fa,#2563eb)}.bar-label{margin-top:.3rem;font-size:.65rem;color:var(--muted);white-space:nowrap}.status-bars{display:flex;flex-direction:column;gap:.55rem}.status-row{display:grid;grid-template-columns:5.5rem 1fr 2rem;gap:.45rem;align-items:center}.status-name{font-size:.88rem;font-weight:700}.status-track{height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden}.status-fill{height:100%;border-radius:999px;background:#64748b;transition:width .4s ease}.status-fill.status-awaiting_admin{background:#ea580c}.status-fill.status-shipping{background:#2563eb}.status-fill.status-completed{background:#16a34a}.status-fill.status-locked{background:#7c3aed}.status-fill.status-cancelled,.status-fill.status-rejected{background:#94a3b8}.status-count{text-align:right;font-size:.95rem}.rank-list{display:flex;flex-direction:column;gap:.65rem}.rank-row{display:flex;gap:.55rem;align-items:flex-start}.rank-no{width:1.6rem;height:1.6rem;border-radius:50%;background:#0f172a;color:#fff;font-weight:800;font-size:.85rem;display:grid;place-items:center;flex-shrink:0}.rank-body{flex:1;min-width:0}.rank-track{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:.3rem 0 .2rem}.rank-fill{height:100%;background:linear-gradient(90deg,#0ea5e9,#0369a1);border-radius:999px}.alert-list{margin:0;padding:0;list-style:none}.alert-list li{display:flex;flex-direction:column;gap:.15rem;padding:.55rem 0;border-bottom:1px solid #e2e8f0}.alert-list li:last-child{border-bottom:none}.text-danger{color:#b91c1c;font-weight:800}.text-warn{color:#c2410c;font-weight:700}.balance-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}@media(min-width:560px){.balance-grid{grid-template-columns:repeat(4,1fr)}}.balance-chip{background:#f8fafc;border:2px solid var(--border);border-radius:10px;padding:.55rem .6rem;display:flex;flex-direction:column;gap:.1rem}.balance-num{color:#1d4ed8;font-weight:900;font-size:1.05rem}.mode-picks{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin-bottom:.35rem}.mode-pick{border:3px solid var(--border);border-radius:14px;padding:.75rem .55rem;background:#fff;font:inherit;font-weight:800;cursor:pointer;text-align:center;min-height:72px}.mode-pick .mode-ico{display:block;font-size:1.35rem;margin-bottom:.2rem}.mode-pick.mode-delta{border-color:#93c5fd;background:#eff6ff;color:#1e40af}.mode-pick.mode-delta.on{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb40;background:#dbeafe}.mode-pick.mode-set{border-color:#fdba74;background:#fff7ed;color:#9a3412}.mode-pick.mode-set.on{border-color:#ea580c;box-shadow:0 0 0 3px #ea580c40;background:#ffedd5}.mode-pick small{display:block;font-weight:600;font-size:.8rem;margin-top:.2rem;opacity:.9}
