/* ============================================================
   协同任务系统 · 设计样式
   ============================================================ */

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e5eaf2;
  --line-2: #eef2f8;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-soft: #eaf1ff;
  --green: #0f9d76;
  --green-soft: #e7f8f1;
  --amber: #d97706;
  --amber-soft: #fff5e5;
  --red: #dc2626;
  --red-soft: #feecec;
  --purple: #7c3aed;
  --purple-soft: #f3edff;
  --sidebar: #0e1726;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 100% -10%, #edf4ff 0%, transparent 58%), var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

body.modal-open, body.drawer-open { overflow: hidden; }

button, input, select, textarea { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code { font-family: Consolas, "SFMono-Regular", monospace; }
::selection { background: #c7ddff; }

.muted { color: var(--muted); }
.small { font-size: 10.5px; }
.danger-text { color: var(--red) !important; }
.ok-text { color: var(--green) !important; }
.align-right { text-align: right !important; }
.hidden { display: none !important; }

.icon { display: inline-block; vertical-align: middle; flex: 0 0 auto; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------- animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(28px); opacity: 0.7; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px) scale(0.98); } }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3); } 50% { transform: scale(1.04); box-shadow: 0 18px 38px rgba(37, 99, 235, 0.42); } }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #dbe2ee; border-top-color: var(--brand);
  animation: spin 0.8s linear infinite; display: inline-block;
}

/* --------------------------------------------------------------- boot */
.boot-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: var(--bg); color: var(--muted);
}
.boot-logo {
  width: 58px; height: 58px; border-radius: 17px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
  animation: pulse 1.6s ease-in-out infinite;
}
.boot-name { font-size: 15px; font-weight: 700; color: #1e293b; letter-spacing: 0.08em; }
.boot-bar { width: 130px; height: 3px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.boot-bar span { display: block; width: 38%; height: 100%; background: var(--brand); border-radius: 99px; animation: loading 1.2s ease-in-out infinite; }
.boot-screen p { font-size: 11px; color: var(--muted-2); }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: #fff; font-size: 14px; }

/* --------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr); background: #fff; }

.login-art {
  position: relative; overflow: hidden; min-height: 100vh;
  background: #08152e; color: #fff;
  padding: 42px 52px 34px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-art-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 520px at 82% 8%, rgba(37, 99, 235, 0.55), transparent 62%),
    radial-gradient(620px 520px at 0% 92%, rgba(14, 116, 144, 0.34), transparent 62%),
    linear-gradient(160deg, #0b1e3f, #071326);
}
.login-art-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 76%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 76%);
}
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.login-brand-text { display: flex; flex-direction: column; }
.login-brand-text strong { font-size: 17px; letter-spacing: 0.02em; }
.login-brand-text span { font-size: 10px; color: #7f93b3; margin-top: 2px; }
.login-art-body { position: relative; z-index: 1; max-width: 560px; margin: 36px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.eyebrow.light { color: #7dd3fc; }
.login-art-body h1 { font-size: 40px; line-height: 1.28; letter-spacing: -0.02em; margin: 16px 0 14px; font-weight: 700; }
.login-art-desc { font-size: 13px; line-height: 1.8; color: #a9bad4; max-width: 520px; }
.login-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 34px; padding: 0; }
.login-features li { display: flex; gap: 10px; align-items: flex-start; }
.login-features li > .icon { color: #60a5fa; margin-top: 2px; }
.login-features div { display: flex; flex-direction: column; gap: 3px; }
.login-features strong { font-size: 12px; color: #e2e8f0; font-weight: 600; }
.login-features span { font-size: 10.5px; color: #8598b3; line-height: 1.5; }
.login-art-foot { position: relative; z-index: 1; display: flex; gap: 22px; font-size: 10px; color: #6f819c; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; }
.login-art-foot span { display: flex; align-items: center; gap: 6px; }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 32px; background: #fff; }
.login-card { width: min(382px, 100%); }
.login-mobile-brand { display: none; align-items: center; gap: 9px; margin-bottom: 26px; font-size: 15px; color: var(--ink); }
.login-card h2 { font-size: 26px; letter-spacing: -0.02em; margin: 10px 0 8px; }
.login-sub { font-size: 11.5px; color: var(--muted-2); margin-bottom: 28px; }
.login-form .field { margin-bottom: 16px; }
.login-hint { display: flex; gap: 7px; align-items: flex-start; background: #f0f7ff; border: 1px solid #dbeafe; border-radius: 9px; padding: 10px 11px; font-size: 10.5px; color: #1e40af; line-height: 1.65; margin-top: 16px; }
.login-hint b { font-family: Consolas, monospace; }
.login-remember { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); margin: -2px 0 14px; cursor: pointer; user-select: none; }
.login-remember input { width: 15px; height: 15px; accent-color: var(--brand); flex: 0 0 auto; }
.login-divider { height: 1px; background: var(--line-2); margin: 22px 0 14px; }
.login-foot { font-size: 9.5px; color: var(--muted-2); display: flex; align-items: center; gap: 5px; justify-content: center; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.brand-mark-light { width: 40px; height: 40px; border-radius: 12px; }

/* --------------------------------------------------------------- setup */
.setup-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 520px at 50% -10%, #e8f0ff, #f5f7fb); padding: 24px; }
.setup-card { width: min(430px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 30px 70px -30px rgba(15, 23, 42, 0.35); }
.setup-card .brand-mark { margin-bottom: 16px; }
.setup-card h2 { font-size: 23px; margin: 8px 0; letter-spacing: -0.02em; }
.setup-card > p { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.setup-user { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; margin: 18px 0; }
.setup-user div { display: flex; flex-direction: column; }
.setup-user strong { font-size: 12px; }
.setup-user span { font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.setup-card .field { margin-bottom: 14px; }
.setup-card .btn-block + .btn-block { margin-top: 8px; }

/* --------------------------------------------------------------- shell */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 40;
  background: linear-gradient(180deg, #0e1726 0%, #101d33 58%, #0c1525 100%);
  color: #cbd5e1; display: flex; flex-direction: column;
  padding: 22px 16px 14px;
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 320px at -20% 0%, rgba(59, 130, 246, 0.18), transparent 62%);
}
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; padding: 2px 8px 24px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { color: #fff; font-size: 16.5px; letter-spacing: 0.02em; }
.brand-text span { color: #8294b0; font-size: 10px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 165px; }
.nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-label { font-size: 9.5px; letter-spacing: 0.16em; color: #5f718d; padding: 18px 12px 7px; text-transform: uppercase; }
.nav-item {
  height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 12px;
  border: 0; border-radius: 9px; background: transparent; color: #9fb0c9;
  font-size: 13px; font-weight: 500; cursor: pointer; text-align: left;
  position: relative; transition: background 0.16s, color 0.16s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.055); color: #e2e8f0; }
.nav-item.active { background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.06)); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #60a5fa; }
.nav-item .icon { color: #7d90ad; }
.nav-item.active .icon { color: #93c5fd; }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 19px; padding: 0 6px;
  border-radius: 99px; background: #2563eb; color: #fff;
  font-size: 10px; font-weight: 600; display: grid; place-items: center;
}
.sidebar-note {
  position: relative; z-index: 1; margin-top: auto; display: flex; gap: 8px; align-items: center;
  font-size: 10.5px; color: #6f819c; padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-note .icon { color: #4f9d84; }
.sidebar-foot { position: relative; z-index: 1; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.user-card {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px;
  border-radius: 11px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05); color: #cbd5e1; cursor: pointer;
  transition: background 0.16s;
}
.user-card:hover { background: rgba(255, 255, 255, 0.07); }
.user-card > .icon { color: #64748b; }
.user-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.user-card-info strong { color: #f1f5f9; font-size: 12.5px; font-weight: 600; }
.user-card-info span { color: #7d8ea8; font-size: 10px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { margin-left: 252px; min-height: 100vh; min-width: 0; }
.topbar {
  height: 70px; position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 30px; background: rgba(245, 247, 251, 0.84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title h1 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.topbar-title p { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 9px; }
.menu-btn { display: none; }
.live-pill {
  display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 10px;
  border-radius: 99px; background: #e8f8f1; color: #087f5b;
  font-size: 10.5px; font-weight: 600; border: 1px solid #d1f0e3;
}
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #0f9d76; box-shadow: 0 0 0 3px rgba(15, 157, 118, 0.14); }
.live-pill.live-off { background: #fff7ed; color: #b45309; border-color: #fde9cf; }
.live-pill.live-off i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14); }
.bell-btn {
  position: relative; width: 38px; height: 38px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; transition: border-color 0.16s, background 0.16s;
}
.bell-btn:hover { border-color: #c9d6ea; background: #fafcff; }
.bell-btn.has-alerts { color: var(--brand); border-color: #c9dbf9; background: #f5f9ff; }
.bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #f5f7fb;
}
.new-task-btn { height: 38px; }
.avatar-btn { border: 0; background: transparent; padding: 0; border-radius: 50%; cursor: pointer; line-height: 0; }
.avatar-btn:hover { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
.page { max-width: 1400px; margin: 0 auto; padding: 24px 30px 56px; }

/* -------------------------------------------------------------- shared */
.avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-weight: 600; color: #fff; background: #94a3b8; user-select: none; line-height: 1; }
.avatar-xs { width: 20px; height: 20px; font-size: 8.5px; }
.avatar-sm { width: 28px; height: 28px; font-size: 10.5px; }
.avatar-md { width: 34px; height: 34px; font-size: 12px; }
.avatar-lg { width: 48px; height: 48px; font-size: 17px; }
.av-0 { background: #2f6fed; }
.av-1 { background: #0f9d76; }
.av-2 { background: #7c3aed; }
.av-3 { background: #d97706; }
.av-4 { background: #0e7490; }
.av-5 { background: #be185d; }
.av-6 { background: #4f46e5; }
.av-7 { background: #b45309; }

.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; display: inline-block; flex: 0 0 auto; }
.online-dot.is-online { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.13); }

.btn {
  height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-2); background: #fff;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.16s, border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 5px rgba(37, 99, 235, 0.22); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-secondary { background: #fff; border-color: #dbe2ee; color: #475569; }
.btn-secondary:hover { background: #f8fafc; border-color: #c9d6ea; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #0b8060; }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--red); }
.btn-danger:hover { background: #fff5f5; }
.btn-danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger-solid:hover { background: #b91c1c; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f5f9; color: var(--ink); }
.btn-light { background: #fff; border-color: #fff; color: #123a7a; }
.btn-light:hover { background: #eef5ff; border-color: #eef5ff; }
.btn-glass { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, 0.17); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 10.5px; border-radius: 7px; }
.btn-lg { height: 42px; padding: 0 18px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-loading { opacity: 0.82; cursor: wait; }
.btn-spinner { width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-secondary .btn-spinner { border-color: #cbd5e1; border-top-color: #64748b; }
.icon-btn {
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); display: inline-grid; place-items: center; cursor: pointer;
  transition: background 0.15s, color 0.15s; flex: 0 0 auto; padding: 0;
}
.icon-btn:hover { background: #f1f5f9; color: var(--ink); }
.danger-hover:hover { background: #fff1f1 !important; color: var(--red) !important; }

.field { display: flex; flex-direction: column; }
.label { font-size: 11.5px; font-weight: 600; color: #475569; margin-bottom: 6px; display: block; }
.req { color: var(--red); }
.field-hint { font-size: 10px; color: var(--muted-2); margin-top: 5px; line-height: 1.55; }
.input, .textarea {
  width: 100%; border: 1px solid #dbe2ee; background: #fff; border-radius: 9px;
  padding: 9px 11px; font-size: 12.5px; color: var(--ink); outline: none;
  transition: border-color 0.16s, box-shadow 0.16s; line-height: 1.5;
}
.input { height: 38px; }
.textarea { min-height: 82px; resize: vertical; }
.input:focus, .textarea:focus { border-color: #93b4f8; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.input::placeholder, .textarea::placeholder { color: #b0bccd; }
.input-sm { height: 33px; font-size: 11.5px; padding: 0 9px; }
.input-error { border-color: #fca5a5 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon { position: absolute; left: 12px; color: var(--muted-2); pointer-events: none; z-index: 1; }
.input.has-icon { padding-left: 37px; }
.input.has-icon-right { padding-right: 40px; }
.input-action { position: absolute; right: 6px; width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted-2); border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
.input-action:hover { background: #f1f5f9; color: #475569; }
.input-suffix { display: flex; align-items: center; border: 1px solid #dbe2ee; border-radius: 9px; background: #fff; overflow: hidden; }
.input-suffix .input { border: 0; box-shadow: none !important; border-radius: 0; flex: 1; min-width: 0; }
.input-suffix > span { padding: 0 11px; align-self: stretch; display: flex; align-items: center; font-size: 10.5px; color: var(--muted-2); background: #fafbfe; border-left: 1px solid var(--line-2); }
.form-error { background: #fff5f5; border: 1px solid #fde2e2; color: #b91c1c; font-size: 11px; line-height: 1.55; padding: 8px 10px; border-radius: 8px; margin: 10px 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.form-stack { display: flex; flex-direction: column; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.switch-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.switch-row.compact { align-items: center; }
.switch { position: relative; display: inline-flex; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-slider { width: 36px; height: 21px; background: #dbe2ee; border-radius: 99px; position: relative; transition: background 0.18s; display: block; }
.switch-slider::after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform 0.18s; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25); }
.switch input:checked + .switch-slider { background: var(--brand); }
.switch input:checked + .switch-slider::after { transform: translateX(15px); }
.switch input:focus-visible + .switch-slider { outline: 2px solid #93c5fd; outline-offset: 2px; }
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch-text strong { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.switch-text span { font-size: 10px; color: var(--muted-2); line-height: 1.5; }

.select {
  height: 38px; border: 1px solid #dbe2ee; border-radius: 9px; background-color: #fff;
  padding: 0 30px 0 11px; font-size: 12.5px; color: var(--ink); outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.select:focus { border-color: #93b4f8; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.select-sm { height: 34px; font-size: 11.5px; }

.progress { display: block; height: 6px; border-radius: 99px; background: #eef2f8; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3b82f6, #2563eb); transition: width 0.3s ease; }
.progress-green > span { background: linear-gradient(90deg, #34d399, #0f9d76); }
.progress-lg { height: 8px; }

.status { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; white-space: nowrap; background: #f1f5f9; color: #475569; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-open { background: var(--amber-soft); color: #b45309; }
.status-todo { background: #eef2f7; color: #475569; }
.status-doing { background: var(--brand-soft); color: #1d4ed8; }
.status-review { background: var(--purple-soft); color: #6d28d9; }
.status-done { background: var(--green-soft); color: #047857; }
.status-canceled { background: #f1f5f9; color: #94a3b8; }
.prio { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: #64748b; }
.prio i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.prio-high { color: #b91c1c; }
.prio-high i { background: #ef4444; }
.prio-normal { color: #b45309; }
.prio-normal i { background: #f59e0b; }
.prio-low { color: #475569; }
.prio-low i { background: #94a3b8; }
.mini-chip { font-size: 9.5px; padding: 2px 6px; border-radius: 5px; background: #eef2f7; color: #475569; font-weight: 600; white-space: nowrap; display: inline-flex; }
.mini-chip.danger { background: var(--red-soft); color: #b91c1c; }
.mini-chip.purple { background: var(--purple-soft); color: #6d28d9; }

.empty { text-align: center; padding: 42px 20px; color: var(--muted-2); }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; background: #f4f7fc; color: #b0bccd; display: grid; place-items: center; margin: 0 auto 12px; }
.empty h3 { font-size: 12.5px; color: #475569; font-weight: 600; }
.empty p { font-size: 10.5px; line-height: 1.7; margin: 5px auto 0; max-width: 350px; }
.empty-action { margin-top: 14px; }
.page-loading { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 90px 20px; color: var(--muted-2); font-size: 11.5px; }
.page-error { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 20px; text-align: center; color: var(--muted); }
.page-error .icon { color: #f59e0b; }
.page-error h3 { font-size: 15px; color: var(--ink); }
.page-error p { font-size: 11.5px; max-width: 420px; line-height: 1.7; }
.page-error .btn { margin-top: 8px; }

/* ------------------------------------------------------------- dashboard */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 20px; padding: 30px 34px; margin-bottom: 20px;
  background: linear-gradient(112deg, #0c1f42 0%, #123a7a 46%, #1d4ed8 100%);
  color: #fff; display: flex; justify-content: space-between; gap: 24px;
  box-shadow: 0 20px 44px -24px rgba(15, 42, 95, 0.6);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 85%);
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}
.hero-orb { position: absolute; border-radius: 50%; z-index: -1; }
.hero-orb-1 { width: 320px; height: 320px; right: -70px; top: -160px; background: radial-gradient(circle, rgba(96, 165, 250, 0.45), transparent 66%); }
.hero-orb-2 { width: 230px; height: 230px; right: 190px; bottom: -160px; background: radial-gradient(circle, rgba(14, 165, 233, 0.35), transparent 66%); }
.hero-main { position: relative; z-index: 1; max-width: 760px; }
.hero-date { display: inline-flex; gap: 6px; align-items: center; font-size: 10.5px; color: #a8c4ee; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); padding: 5px 10px; border-radius: 99px; }
.hero h2 { font-size: 27px; line-height: 1.28; margin: 14px 0 9px; letter-spacing: -0.015em; }
.hero p { font-size: 12.5px; line-height: 1.75; color: #c7d8f5; max-width: 640px; }
.hero p b { color: #fff; font-weight: 700; }
.hero-actions { display: flex; gap: 9px; margin-top: 22px; flex-wrap: wrap; }
.btn-count { background: rgba(255, 255, 255, 0.22); border-radius: 99px; padding: 1px 7px; font-size: 10px; margin-left: 4px; }
.hero-ring {
  width: 132px; height: 132px; border-radius: 50%; flex: 0 0 auto; align-self: center;
  background: conic-gradient(#7dd3fc calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); z-index: 1;
}
.hero-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #0f2a5f; }
.hero-ring-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-ring-inner strong { font-size: 27px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-ring-inner span { font-size: 9.5px; color: #9db9e6; margin-top: 3px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-grid-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: 16px 18px 15px; display: flex; flex-direction: column; text-align: left;
  box-shadow: var(--shadow); color: inherit; font-family: var(--font);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
  appearance: none; -webkit-appearance: none;
}
button.kpi { cursor: pointer; }
button.kpi:hover { transform: translateY(-2px); border-color: #d8e4f7; box-shadow: 0 14px 32px -20px rgba(15, 23, 42, 0.35); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.kpi-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.kpi-arrow { color: #cbd5e1; opacity: 0; transition: opacity 0.16s, color 0.16s; }
button.kpi:hover .kpi-arrow { opacity: 1; color: var(--brand); }
.kpi-value { font-size: 29px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 8px; }
.kpi-hint { font-size: 9.5px; color: var(--muted-2); margin-top: 4px; }
.tone-slate { background: #f1f5f9; color: #64748b; }
.tone-blue { background: var(--brand-soft); color: var(--brand); }
.tone-purple { background: var(--purple-soft); color: var(--purple); }
.tone-red { background: var(--red-soft); color: var(--red); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-amber { background: var(--amber-soft); color: var(--amber); }

.team-strip {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 18px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.team-strip-title { display: flex; gap: 7px; align-items: center; font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.team-strip-title .icon { color: var(--brand); }
.team-strip-metrics { display: flex; gap: 18px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-right: auto; }
.team-strip-metrics b { color: var(--ink); font-size: 13px; margin-right: 2px; font-variant-numeric: tabular-nums; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.panel-head h3 { font-size: 14px; font-weight: 650; color: var(--ink); }
.panel-head p { font-size: 10px; color: var(--muted-2); margin-top: 3px; }
.panel-body { padding: 18px 20px; }
.panel-body-flush { padding: 0; }
.panel-count { font-size: 10px; background: #f1f5f9; color: #475569; padding: 3px 8px; border-radius: 99px; font-weight: 600; }
.panel-count.danger { background: var(--red-soft); color: #b91c1c; }
.panel-count.warning { background: var(--amber-soft); color: #b45309; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; margin-bottom: 20px; }

.task-row {
  display: grid; grid-template-columns: 4px minmax(0, 1fr) 122px 18px;
  gap: 14px; align-items: center; padding: 13px 18px;
  border-bottom: 1px solid var(--line-2); cursor: pointer; background: #fff;
  transition: background 0.15s; text-align: left; font-family: var(--font);
}
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: #f8faff; }
.task-prio-bar { width: 3px; height: 34px; border-radius: 99px; background: #cbd5e1; }
.prio-bar-high { background: #ef4444; }
.prio-bar-normal { background: #f59e0b; }
.prio-bar-low { background: #94a3b8; }
.task-row-main { min-width: 0; }
.task-row-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.task-row-title { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 10.5px; color: var(--muted-2); }
.meta-chip { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; }
.meta-chip.danger { color: var(--red); background: var(--red-soft); padding: 2px 6px; border-radius: 5px; }
.meta-chip.warning { color: #b45309; background: var(--amber-soft); padding: 2px 6px; border-radius: 5px; }
.meta-chip.muted { color: var(--muted-2); }
.meta-person { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.task-row-progress { display: flex; flex-direction: column; gap: 5px; }
.task-progress-label { font-size: 9.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.task-row-arrow { color: #cbd5e1; display: grid; place-items: center; transition: color 0.15s, transform 0.15s; }
.task-row:hover .task-row-arrow { color: var(--brand); transform: translateX(2px); }

.feed-item { display: flex; gap: 10px; width: 100%; text-align: left; padding: 11px 18px; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; cursor: pointer; font-family: var(--font); }
.feed-item:last-child { border-bottom: 0; }
.feed-item:hover { background: #f8faff; }
.feed-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; }
.feed-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.feed-head { font-size: 10.5px; color: var(--muted-2); line-height: 1.55; }
.feed-head b { color: var(--ink-2); font-weight: 600; }
.feed-head em { font-style: normal; color: var(--brand); font-weight: 500; }
.feed-text { font-size: 11px; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.feed-task { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item time { font-size: 9px; color: #b0bccd; }

.team-load { display: flex; flex-direction: column; padding: 6px 18px 10px; }
.team-load-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.team-load-row:last-child { border-bottom: 0; }
.team-load-name { display: flex; flex-direction: column; min-width: 68px; }
.team-load-name strong { font-size: 11.5px; }
.team-load-name span { font-size: 9px; color: var(--muted-2); margin-top: 2px; }
.team-load-chips { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.team-load-rate { width: 36px; text-align: right; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.review-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; text-align: left; cursor: pointer; font-family: var(--font); }
.review-row:last-child { border-bottom: 0; }
.review-row:hover { background: #f8faff; }
.review-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.review-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.review-main strong { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-main span { font-size: 9.5px; color: var(--muted-2); margin-top: 3px; }
.review-row > .icon { color: #cbd5e1; }

/* ---------------------------------------------------------------- tasks */
.page-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 3px; background: #e9eef7; padding: 4px; border-radius: 11px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 32px; padding: 0 12px; border: 0; background: transparent; border-radius: 8px; font-size: 11px; color: var(--muted); cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 6px; font-family: var(--font); font-weight: 500; }
.tab:hover { color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1); }
.tab-count { font-size: 9px; color: var(--muted-2); background: #f1f5f9; border-radius: 99px; padding: 1px 5px; }
.tab.active .tab-count { background: var(--brand-soft); color: var(--brand); }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box .icon { position: absolute; left: 11px; color: var(--muted-2); pointer-events: none; }
.search-input { height: 34px; width: 250px; border: 1px solid #dbe2ee; border-radius: 9px; background: #fff; padding: 0 12px 0 34px; font-size: 11.5px; font-family: var(--font); color: var(--ink); outline: none; transition: border-color 0.16s, box-shadow 0.16s; }
.search-input:focus { border-color: #93b4f8; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.search-input::placeholder { color: #b0bccd; }
.filter-chip { height: 34px; padding: 0 11px; border-radius: 9px; border: 1px solid #dbe2ee; background: #fff; color: var(--muted); font-size: 11px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-family: var(--font); transition: 0.15s; }
.filter-chip:hover { border-color: #c9d6ea; color: var(--ink-2); }
.filter-chip.active { background: var(--red-soft); border-color: #fecaca; color: #b91c1c; }
.segmented { display: flex; background: #e9eef7; padding: 3px; border-radius: 9px; gap: 2px; }
.segment { min-width: 29px; height: 28px; border: 0; background: transparent; border-radius: 7px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-family: var(--font); font-size: 10.5px; padding: 0 8px; }
.segment.active { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1); }
.scope-switch .segment { padding: 0 10px; font-size: 10px; }
.list-summary { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted-2); margin-bottom: 10px; padding: 0 2px; min-height: 16px; }
.list-summary b { color: var(--ink); }
.task-list-panel { overflow: hidden; }
.load-more { display: flex; justify-content: center; padding: 16px; }

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.board-col { background: #eef2f8; border-radius: 14px; padding: 9px; min-height: 220px; }
.board-col-head { display: flex; align-items: center; gap: 7px; padding: 5px 6px 9px; font-size: 11px; }
.board-col-head strong { font-weight: 600; color: var(--ink-2); }
.board-col-head em { margin-left: auto; font-style: normal; font-size: 9px; color: var(--muted-2); background: #fff; padding: 2px 6px; border-radius: 99px; }
.col-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.col-dot.status-doing { background: var(--brand); }
.col-dot.status-review { background: var(--purple); }
.col-dot.status-done { background: var(--green); }
.board-cards { display: flex; flex-direction: column; gap: 8px; }
.board-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px; display: flex; flex-direction: column; gap: 7px; cursor: pointer; text-align: left; font-family: var(--font); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.board-card:hover { transform: translateY(-1px); border-color: #bcd2f8; box-shadow: 0 8px 18px -12px rgba(37, 99, 235, 0.4); }
.board-card-top { display: flex; justify-content: space-between; align-items: center; }
.board-id { font-size: 9px; color: #b0bccd; }
.board-card strong { font-size: 11.5px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board-card-meta { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--muted-2); }
.board-card-meta.danger { color: var(--red); }
.board-card-meta.warning { color: #b45309; }
.board-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; color: var(--muted-2); }
.board-person { display: flex; align-items: center; gap: 4px; }
.board-empty { text-align: center; font-size: 10px; color: #b0bccd; padding: 28px 0; }

/* ----------------------------------------------------------------- hall */
.hall-banner { display: flex; align-items: center; gap: 16px; background: linear-gradient(110deg, #eef5ff, #f8fbff); border: 1px solid #dbe8fd; border-radius: 16px; padding: 18px 22px; margin-bottom: 16px; }
.hall-banner-icon { width: 50px; height: 50px; border-radius: 14px; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); flex: 0 0 auto; }
.hall-banner-text { flex: 1; min-width: 0; }
.hall-banner-text h2 { font-size: 15px; }
.hall-banner-text p { font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.65; }
.hall-count { font-size: 11px; color: #1d4ed8; background: #fff; border: 1px solid #dbe8fd; padding: 7px 12px; border-radius: 99px; white-space: nowrap; }
.hall-count b { font-size: 14px; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.hall-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 17px; display: flex; flex-direction: column; gap: 9px; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s; }
.hall-card:hover { transform: translateY(-2px); border-color: #c9dbf9; box-shadow: 0 18px 34px -26px rgba(15, 23, 42, 0.5); }
.hall-card-top { display: flex; justify-content: space-between; align-items: center; }
.hall-id { font-size: 9px; color: #b0bccd; }
.hall-card h3 { font-size: 13.5px; line-height: 1.5; font-weight: 650; }
.hall-desc { font-size: 10.5px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.hall-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.hall-card-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hall-publisher { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--muted-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- stats */
.stats-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; margin-bottom: 16px; }
.stats-grid-2-1 { grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); }
.chart-legend { display: flex; gap: 12px; font-size: 9.5px; color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 4px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.trend-chart { width: 100%; height: auto; display: block; }
.donut-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.donut { width: 142px; height: 142px; border-radius: 50%; position: relative; flex: 0 0 auto; display: grid; place-items: center; }
.donut-hole { position: relative; width: 96px; height: 96px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 1px #f1f5f9; }
.donut-hole strong { font-size: 23px; letter-spacing: -0.03em; }
.donut-hole span { font-size: 9px; color: var(--muted-2); margin-top: 2px; }
.donut-legend { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 7px; }
.legend-row { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-row b { margin-left: auto; color: var(--ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.legend-row em { font-style: normal; width: 36px; text-align: right; color: var(--muted-2); font-size: 9.5px; }
.dept-block { border-top: 1px solid var(--line-2); margin-top: 14px; padding-top: 14px; }
.dept-block h4 { font-size: 10.5px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.dept-bars { display: flex; flex-direction: column; gap: 9px; }
.dept-bar-row { display: grid; grid-template-columns: 66px 1fr 26px 56px; gap: 8px; align-items: center; font-size: 9.5px; }
.dept-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dept-bar { height: 6px; border-radius: 99px; background: #eef2f8; overflow: hidden; }
.dept-bar span { display: block; height: 100%; background: linear-gradient(90deg, #93c5fd, #3b82f6); border-radius: 99px; }
.dept-value { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dept-overdue { font-size: 9px; text-align: right; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 780px; }
.data-table th { text-align: left; font-size: 9.5px; font-weight: 600; color: var(--muted-2); padding: 10px 14px; background: #fafbfe; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcff; }
.users-table tbody tr.member-row { cursor: pointer; }
.users-table tbody tr.member-row:focus-visible { outline: 2px solid #93b4f8; outline-offset: -2px; }
.table-person { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.table-person > div { display: flex; flex-direction: column; min-width: 0; }
.table-person strong { font-size: 11.5px; color: var(--ink); font-weight: 600; }
.table-person span { font-size: 9px; color: var(--muted-2); margin-top: 2px; }
.table-person .online-dot { margin-left: auto; }
.table-rate { display: flex; flex-direction: column; gap: 4px; min-width: 74px; }
.table-rate span { font-size: 9.5px; }
.table-rate .progress { height: 4px; }
.table-empty { text-align: center; color: var(--muted-2); padding: 34px !important; }
.table-actions { display: flex; gap: 2px; justify-content: flex-end; }
.stats-task-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line-2); }
.stats-task-row:last-child { border-bottom: 0; }
.stats-task-main { flex: 1; display: flex; flex-direction: column; gap: 3px; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--font); min-width: 0; padding: 0; }
.stats-task-title { font-size: 11.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-task-meta { font-size: 9.5px; color: var(--muted-2); }
.stats-task-row .btn { flex: 0 0 auto; }

/* ---------------------------------------------------------------- users */
.users-table code { font-family: Consolas, monospace; font-size: 10px; color: #475569; }
.role-pill { display: inline-flex; padding: 3px 8px; border-radius: 5px; font-size: 9.5px; font-weight: 600; }
.role-admin { background: var(--brand-soft); color: #1d4ed8; }
.role-manager { background: var(--purple-soft); color: #6d28d9; }
.role-employee { background: #f1f5f9; color: #475569; }
.row-muted { opacity: 0.62; }

/* ------------------------------------------------------------- settings */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.settings-wide { grid-column: 1 / -1; }
.backup-list { display: flex; flex-direction: column; }
.backup-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.backup-row:last-child { border-bottom: 0; }
.backup-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.backup-main strong { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backup-main span { font-size: 9px; color: var(--muted-2); margin-top: 2px; }
.file-icon { width: 30px; height: 30px; border-radius: 8px; background: #f1f5f9; color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.divider { height: 1px; background: var(--line-2); margin: 13px 0; }
.inline-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.server-box { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin-bottom: 14px; }
.server-label { font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }
.server-box code { flex: 1; font-family: Consolas, monospace; font-size: 10.5px; color: #1d4ed8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deploy-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0 0 15px; padding: 0; }
.deploy-steps li { display: flex; gap: 10px; }
.deploy-steps li > span { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 9px; font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.deploy-steps strong { font-size: 10.5px; display: block; }
.deploy-steps p { font-size: 9.5px; color: var(--muted-2); margin-top: 3px; line-height: 1.55; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.info-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; min-width: 0; }
.info-grid span { font-size: 9px; color: var(--muted-2); }
.info-grid strong, .info-grid code { font-size: 10.5px; color: var(--ink-2); font-weight: 600; }
.path-code { font-family: Consolas, monospace; font-size: 9.5px !important; overflow-wrap: anywhere; }

/* --------------------------------------------------------------- drawer */
.drawer-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.42); backdrop-filter: blur(2px); z-index: 60; animation: fadeIn 0.2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(700px, 100%); background: #f6f8fc; z-index: 61; display: flex; flex-direction: column; box-shadow: -30px 0 80px rgba(15, 23, 42, 0.25); animation: slideIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.drawer-head { background: #fff; padding: 18px 24px 18px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.drawer-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.task-code { font-size: 9.5px; color: var(--muted-2); font-weight: 600; letter-spacing: 0.05em; }
.drawer-spacer { flex: 1; }
.drawer-head h2 { font-size: 20px; line-height: 1.4; font-weight: 650; letter-spacing: -0.01em; }
.drawer-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 11px; font-size: 10px; color: var(--muted); }
.drawer-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.drawer-foot { flex: 0 0 auto; background: #fff; border-top: 1px solid var(--line); padding: 11px 24px calc(11px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.drawer-foot-left, .drawer-foot-right { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px; }
.detail-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; gap: 10px; }
.detail-card-head h4 { font-size: 11.5px; font-weight: 650; color: var(--ink); }
.soft-tag { font-size: 8.5px; background: #f1f5f9; color: var(--muted); padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
.task-description { font-size: 11.5px; line-height: 1.8; color: #334155; overflow-wrap: anywhere; }
.detail-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.detail-meta-grid > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.detail-meta-grid span { font-size: 8.5px; color: var(--muted-2); }
.detail-meta-grid strong { font-size: 9.5px; color: #475569; font-weight: 600; overflow-wrap: anywhere; }
.review-note { display: flex; gap: 7px; margin-top: 12px; padding: 9px 11px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; font-size: 10px; color: var(--muted); line-height: 1.6; }
.banner { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 10.5px; line-height: 1.6; border: 1px solid; }
.banner .icon { margin-top: 1px; flex: 0 0 auto; }
.banner-danger { background: #fff5f5; border-color: #fde2e2; color: #b91c1c; }
.banner-warning { background: #fffbeb; border-color: #fdecc8; color: #b45309; }
.banner-purple { background: #faf5ff; border-color: #eee0ff; color: #6d28d9; }
.progress-big { font-size: 18px; font-weight: 700; color: #1d4ed8; letter-spacing: -0.02em; }
.progress-editor .progress { margin: 9px 0; }
.progress-editor input[type="range"] { width: 100%; accent-color: var(--brand); margin: 3px 0 10px; }
.progress-presets { display: flex; gap: 5px; margin-bottom: 10px; }
.progress-presets button { flex: 1; height: 27px; border: 1px solid var(--line); background: #fafbfe; border-radius: 6px; font-size: 9.5px; color: var(--muted); cursor: pointer; font-family: var(--font); }
.progress-presets button:hover { border-color: #93b4f8; color: #1d4ed8; }
.progress-save { display: flex; gap: 7px; }
.progress-save .input { flex: 1; }
.attachment-list { display: flex; flex-direction: column; gap: 2px; }
.attachment-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.attachment-row:last-child { border-bottom: 0; }
.attachment-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.attachment-main strong { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attachment-main span { font-size: 8.5px; color: var(--muted-2); margin-top: 2px; }
.comment-form { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px; margin-bottom: 14px; }
.comment-form .textarea { border: 0; background: transparent; box-shadow: none !important; padding: 3px; min-height: 46px; font-size: 11px; }
.comment-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 3px; }
.comment-foot > span { font-size: 8.5px; color: #b0bccd; }
.comment-actions { display: flex; gap: 6px; align-items: center; }
.timeline { display: flex; flex-direction: column; gap: 13px; }
.timeline-item { display: flex; gap: 9px; align-items: flex-start; }
.timeline-icon { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; }
.timeline-content { flex: 1; min-width: 0; padding-top: 2px; }
.timeline-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 10px; color: var(--muted); line-height: 1.6; }
.timeline-head b { color: #334155; font-weight: 600; }
.timeline-head time { font-size: 8.5px; color: #b0bccd; margin-left: auto; }
.timeline-item.comment .timeline-content { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; }
.comment-text { font-size: 11px; color: #334155; line-height: 1.65; margin-top: 2px; overflow-wrap: anywhere; }
.done-label { display: inline-flex; gap: 6px; align-items: center; color: var(--green); font-size: 11px; font-weight: 600; }

/* ---------------------------------------------------------------- modal */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(3px); z-index: 80; display: grid; place-items: center; padding: 20px; animation: fadeIn 0.15s; }
.modal { width: min(560px, 100%); max-height: 90vh; background: #fff; border-radius: 17px; box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35); display: flex; flex-direction: column; animation: popIn 0.2s; overflow: hidden; }
.modal-wide { width: min(720px, 100%); }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 19px 22px 14px; border-bottom: 1px solid var(--line-2); }
.modal-head-text h3 { font-size: 16px; font-weight: 650; }
.modal-head-text p { font-size: 10px; color: var(--muted-2); margin-top: 4px; line-height: 1.5; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { padding: 12px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; background: #fafbfe; }
.modal-mask-out { animation: fadeOut 0.15s forwards; }
.confirm-text { font-size: 12px; color: var(--ink-2); line-height: 1.75; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: 0.16s; position: relative; }
.mode-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.mode-card:hover { border-color: #c9d6ea; }
.mode-card.selected { border-color: #93b4f8; background: #f5f9ff; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08); }
.mode-icon { width: 32px; height: 32px; border-radius: 9px; background: #f1f5f9; color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.mode-card.selected .mode-icon { background: var(--brand-soft); color: var(--brand); }
.mode-card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.mode-card strong { font-size: 11px; color: var(--ink-2); }
.mode-card small { font-size: 9px; color: var(--muted-2); line-height: 1.5; }
.priority-options { display: flex; gap: 6px; }
.priority-option { flex: 1; position: relative; }
.priority-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.priority-option > span { height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; transition: 0.15s; }
.priority-option:hover > span { border-color: #c9d6ea; }
.priority-option.p-high input:checked + span { background: var(--red-soft); border-color: #fecaca; color: #b91c1c; }
.priority-option.p-normal input:checked + span { background: var(--amber-soft); border-color: #fde9c8; color: #b45309; }
.priority-option.p-low input:checked + span { background: #f1f5f9; border-color: #dbe2ee; color: #475569; }
.priority-option input:focus-visible + span { outline: 2px solid #93c5fd; outline-offset: 2px; }

/* -------------------------------------------------------------- profile */
.profile-head { display: flex; gap: 14px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.profile-head h3 { font-size: 17px; }
.profile-head p { font-size: 10px; color: var(--muted-2); margin-top: 3px; }
.profile-section { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.profile-section h4 { font-size: 11.5px; margin-bottom: 9px; }
.section-inline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.section-inline h4 { margin-bottom: 0; }
.token-list { display: flex; flex-direction: column; margin-top: 6px; }
.token-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.token-row:last-child { border-bottom: 0; }
.token-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.token-main strong { font-size: 10.5px; }
.token-main span { font-size: 8.5px; color: var(--muted-2); margin-top: 2px; }
.token-reveal { display: flex; gap: 10px; align-items: flex-start; background: #f0f7ff; border: 1px solid #d6e8ff; border-radius: 10px; padding: 11px; margin: 8px 0 10px; }
.token-reveal > div { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.token-reveal strong { font-size: 10px; color: #1d4ed8; }
.token-reveal code { font-family: Consolas, monospace; font-size: 9px; color: #334155; overflow-wrap: anywhere; background: #fff; padding: 4px 6px; border-radius: 5px; border: 1px solid #e2edff; }
.token-reveal span { font-size: 8.5px; color: var(--muted); }
.profile-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; gap: 10px; }

/* ---------------------------------------------------------- notifications */
.notif-pop { position: fixed; top: 63px; right: 24px; width: 380px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.3); overflow: hidden; animation: popIn 0.16s; z-index: 70; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--line-2); }
.notif-head strong { font-size: 12.5px; }
.notif-head span { font-size: 9px; color: var(--muted-2); margin-left: 7px; }
.digest-banner { display: flex; gap: 6px; align-items: center; padding: 8px 15px; background: #fffbeb; color: #b45309; font-size: 9.5px; border-bottom: 1px solid #fdecc8; }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item { width: 100%; display: flex; gap: 9px; align-items: flex-start; padding: 10px 15px; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; text-align: left; cursor: pointer; font-family: var(--font); }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #f8faff; }
.notif-item-icon { width: 26px; height: 26px; border-radius: 7px; background: #f1f5f9; color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.level-danger .notif-item-icon { background: var(--red-soft); color: var(--red); }
.level-warning .notif-item-icon { background: var(--amber-soft); color: var(--amber); }
.level-info .notif-item-icon { background: var(--brand-soft); color: var(--brand); }
.notif-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-item-body strong { font-size: 10.5px; font-weight: 600; color: var(--ink); }
.notif-item-body span { font-size: 9.5px; color: var(--muted); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-item time { font-size: 8.5px; color: #b0bccd; white-space: nowrap; margin-top: 2px; }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px; color: var(--muted-2); font-size: 10px; }
.notif-foot { padding: 8px 15px; background: #fafbfe; border-top: 1px solid var(--line-2); font-size: 8.5px; color: var(--muted-2); text-align: center; }

/* --------------------------------------------------------------- toast */
.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { pointer-events: auto; width: 330px; max-width: calc(100vw - 40px); background: #0f172a; color: #f8fafc; border-radius: 12px; padding: 12px 12px 12px 13px; display: flex; gap: 10px; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35); animation: toastIn 0.22s; border-left: 3px solid #3b82f6; cursor: pointer; }
.toast:hover { background: #111c31; }
.toast-success { border-left-color: #10b981; }
.toast-warning { border-left-color: #f59e0b; }
.toast-danger { border-left-color: #ef4444; }
.toast-icon { width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; color: #93c5fd; flex: 0 0 auto; }
.toast-success .toast-icon { color: #6ee7b7; }
.toast-warning .toast-icon { color: #fcd34d; }
.toast-danger .toast-icon { color: #fca5a5; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 11.5px; font-weight: 600; }
.toast-msg { font-size: 9.5px; color: #cbd5e1; margin-top: 3px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast-close { background: none; border: 0; color: #94a3b8; cursor: pointer; padding: 2px; height: 20px; display: grid; place-items: center; }
.toast-close:hover { color: #e2e8f0; }
.toast-out { animation: toastOut 0.2s forwards; }

/* --------------------------------------------------------------- install */
.install-body { background: var(--bg); }
.install-header { height: 68px; display: flex; justify-content: space-between; align-items: center; padding: 0 max(24px, calc((100vw - 1100px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.install-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.install-brand:hover { text-decoration: none; }
.install-brand > span:last-child { display: flex; flex-direction: column; }
.install-brand strong { font-size: 14px; }
.install-brand small { font-size: 9px; color: var(--muted-2); letter-spacing: 0.1em; margin-top: 1px; }
.install-main { max-width: 1100px; margin: 0 auto; padding: 40px 24px 56px; }
.install-hero { padding: 12px 0 32px; max-width: 740px; }
.install-hero h1 { font-size: 38px; line-height: 1.28; letter-spacing: -0.02em; margin: 12px 0 14px; }
.install-hero p { font-size: 12.5px; line-height: 1.85; color: var(--muted); max-width: 660px; }
.install-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.install-size { font-size: 9.5px; color: var(--muted-2); }
.install-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.install-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.step-index { display: inline-block; font-size: 9px; color: var(--brand); background: var(--brand-soft); border-radius: 5px; padding: 3px 7px; font-weight: 700; letter-spacing: 0.06em; }
.install-step h3 { font-size: 13.5px; margin: 11px 0 6px; }
.install-step p { font-size: 10.5px; color: var(--muted); line-height: 1.7; }
.install-step code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 9.5px; }
.install-server { background: #0f172a; color: #e2e8f0; border-radius: 16px; padding: 26px; margin-bottom: 26px; }
.install-server h2 { font-size: 15px; }
.install-server p { font-size: 10.5px; color: #94a3b8; margin-top: 6px; line-height: 1.7; }
.install-server-box { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); margin: 14px 0 0; }
.install-server-box code { color: #93c5fd; font-size: 12px; }
.install-server-box .icon-btn { color: #cbd5e1; }
.install-server-box .icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.install-server-box .icon-btn.copied { color: #6ee7b7; background: rgba(16, 185, 129, 0.15); }
.install-tip { font-size: 9.5px !important; color: #64748b !important; line-height: 1.7; margin-top: 12px; }
.install-faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.install-faq h2 { font-size: 14px; margin-bottom: 8px; }
.install-faq details { border-bottom: 1px solid var(--line-2); padding: 10px 0; }
.install-faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.install-faq summary { font-size: 11px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.install-faq p { font-size: 10px; color: var(--muted); line-height: 1.75; margin-top: 7px; }
.install-footer { max-width: 1100px; margin: 0 auto; padding: 20px 24px 40px; display: flex; justify-content: space-between; font-size: 9px; color: var(--muted-2); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1360px) {
  .kpi-grid-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .dash-grid, .stats-grid, .stats-grid-2-1 { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .kpi-grid-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page { padding: 22px 22px 48px; }
  .topbar { padding: 0 22px; }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.24s ease; box-shadow: 30px 0 70px rgba(15, 23, 42, 0.25); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .sidebar-mask { display: none; }
  body.sidebar-open .sidebar-mask { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); z-index: 39; animation: fadeIn 0.2s; }
  .login-art { padding: 36px; }
  .login-art-body h1 { font-size: 34px; }
}

@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; padding: 32px 22px; }
  .login-mobile-brand { display: flex; }
  .login-card h2 { font-size: 24px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 24px; }
  .hero h2 { font-size: 23px; }
  .hero-ring { width: 108px; height: 108px; }
  .hero-ring-inner strong { font-size: 22px; }
  .hall-grid { grid-template-columns: 1fr; }
  .detail-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer { width: 100%; }
  .install-steps { grid-template-columns: 1fr; }
  .install-hero h1 { font-size: 32px; }
}

@media (max-width: 640px) {
  .page { padding: 16px 14px 40px; }
  .topbar { height: calc(62px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; }
  .input, .textarea, .select, .search-input { font-size: 16px; }
  .comment-form .textarea { font-size: 16px; }
  .topbar-title h1 { font-size: 17px; }
  .topbar-title p { display: none; }
  .live-pill { padding: 0 8px; }
  .live-pill span { display: none; }
  .new-task-btn span { display: none; }
  .new-task-btn { width: 38px; padding: 0; }
  .topbar-right { gap: 7px; }
  .hero { padding: 20px; border-radius: 16px; flex-direction: column; }
  .hero h2 { font-size: 21px; }
  .hero p { font-size: 12px; }
  .hero-ring { display: none; }
  .hero-actions .btn { flex: 1; }
  .kpi { padding: 13px 14px; }
  .kpi-value { font-size: 25px; }
  .kpi-icon { width: 32px; height: 32px; border-radius: 9px; }
  .team-strip { gap: 10px; padding: 12px; }
  .team-strip-metrics { gap: 10px 14px; }
  .page-toolbar { margin-bottom: 10px; }
  .tabs { border-radius: 9px; }
  .toolbar { gap: 8px; }
  .toolbar-group { width: 100%; }
  .search-box { flex: 1; }
  .search-input { width: 100%; }
  .list-summary { font-size: 9.5px; }
  .task-row { grid-template-columns: 3px minmax(0, 1fr) 18px; gap: 10px; padding: 12px 13px; }
  .task-row-progress { display: none; }
  .task-row-meta { gap: 7px; }
  .board { grid-template-columns: 1fr; }
  .hall-banner { gap: 11px; padding: 14px; }
  .hall-banner-icon { width: 42px; height: 42px; }
  .hall-banner-text h2 { font-size: 14px; }
  .hall-count { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .settings-grid { gap: 12px; }
  .info-grid { grid-template-columns: 1fr; }
  .drawer-head { padding: 15px 16px; }
  .drawer-head h2 { font-size: 17px; }
  .drawer-body { padding: 12px 14px 20px; }
  .drawer-foot { padding: 10px 14px; flex-direction: column; align-items: stretch; }
  .drawer-foot-left { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .drawer-foot-left .btn { flex: 0 0 auto; }
  .drawer-foot-right { width: 100%; justify-content: flex-end; }
  .drawer-foot-right .btn { flex: 1; }
  .detail-card { padding: 13px 14px; }
  .detail-meta-grid { grid-template-columns: 1fr 1fr; }
  .modal-mask { padding: 10px; }
  .modal { max-height: 94vh; border-radius: 14px; }
  .modal-head { padding: 15px 16px 12px; }
  .modal-body { padding: 14px 16px; }
  .modal-foot { padding: 10px 16px; }
  .mode-cards { grid-template-columns: 1fr; }
  .notif-pop { top: 58px; right: 10px; width: calc(100vw - 20px); }
  .toast-root { right: 10px; left: 10px; bottom: 10px; }
  .toast { width: 100%; max-width: none; }
  .profile-head { gap: 10px; }
  .token-reveal { flex-wrap: wrap; }
  .install-header { padding: 0 16px; height: 62px; }
  .install-main { padding: 26px 16px 40px; }
  .install-hero h1 { font-size: 27px; }
  .install-hero p { font-size: 11.5px; }
  .install-actions .btn { width: 100%; }
  .install-server { padding: 20px 16px; }
  .install-footer { padding: 16px; flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .kpi-grid, .kpi-grid-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px 13px; }
  .kpi-value { font-size: 23px; }
  .kpi-hint { display: none; }
  .team-strip-metrics span:last-child { display: none; }
  .tab { padding: 0 9px; }
}

@media (max-width: 360px) {
  .kpi-grid, .kpi-grid-six { grid-template-columns: 1fr; }
}

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