/* ============================================================
   科创部 · 部门协同系统
   设计语言:深空底色 + 青紫渐变 + 玻璃面板 + 等宽数字
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --bg: #05070e;
  --bg-soft: #080c16;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .075);
  --panel-solid: #0c1220;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #e9edf7;
  --text-2: #a6b0c6;
  --text-3: #6b7690;
  --cyan: #3ee0ff;
  --violet: #8b5cf6;
  --pink: #ff5c9d;
  --lime: #3ddc97;
  --amber: #ffc247;
  --red: #ff5f7a;
  --grad: linear-gradient(135deg, #3ee0ff 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(62, 224, 255, .16), rgba(139, 92, 246, .16));
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .3);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, "Cascadia Mono", monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="light"] {
  --bg: #f2f5fb;
  --bg-soft: #e9eef8;
  --panel: rgba(255, 255, 255, .78);
  --panel-2: #ffffff;
  --panel-solid: #ffffff;
  --line: rgba(16, 24, 40, .1);
  --line-strong: rgba(16, 24, 40, .22);
  --text: #101828;
  --text-2: #4a5568;
  --text-3: #8a94a6;
  --cyan: #0091b3;
  --violet: #6d3ff0;
  --lime: #0f9d63;
  --amber: #c98a00;
  --red: #e03854;
  --shadow: 0 20px 50px rgba(16, 24, 40, .14);
  --shadow-sm: 0 6px 18px rgba(16, 24, 40, .1);
  --grad-soft: linear-gradient(135deg, rgba(0, 145, 179, .1), rgba(109, 63, 240, .1));
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(62, 224, 255, .14), transparent 62%),
    radial-gradient(760px 560px at 92% 6%, rgba(139, 92, 246, .15), transparent 60%),
    radial-gradient(680px 520px at 60% 110%, rgba(255, 92, 157, .07), transparent 65%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, black, transparent 78%);
}
html[data-theme="light"] body::after { opacity: .8; background-image:
    linear-gradient(rgba(16, 24, 40, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, .035) 1px, transparent 1px); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(62, 224, 255, .3); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .13); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(16, 24, 40, .2); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
[hidden] { display: none !important; }

/* ---------- 启动遮罩 ---------- */
.boot {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg);
  transition: opacity .5s var(--ease), visibility .5s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot-mark {
  font-family: var(--mono); font-size: 40px; letter-spacing: .32em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bootPulse 1.6s ease-in-out infinite;
}
.boot-bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; border-radius: 9px; }
.boot-bar i { display: block; height: 100%; width: 40%; background: var(--grad); animation: bootSlide 1.1s ease-in-out infinite; }
.boot-text { font-size: 12px; color: var(--text-3); letter-spacing: .18em; }
@keyframes bootPulse { 50% { opacity: .45; } }
@keyframes bootSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

/* ============================================================
   登录 / 注册
   ============================================================ */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.auth-visual {
  position: relative;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 28% 32%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 28% 32%, black 0%, transparent 72%);
  opacity: .9;
}
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.glow.g1 { width: 420px; height: 420px; background: rgba(62, 224, 255, .26); top: -120px; left: -80px; animation: float1 14s ease-in-out infinite; }
.glow.g2 { width: 380px; height: 380px; background: rgba(139, 92, 246, .3); bottom: -140px; right: -60px; animation: float2 17s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(-30px, -40px) scale(1.12); } }

.visual-top, .visual-main, .visual-stats, .visual-line { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  font-size: 20px; font-weight: 700; letter-spacing: .12em;
  padding: 9px 13px; border-radius: 11px;
  background: var(--grad); color: #04060d;
  box-shadow: 0 10px 30px rgba(62, 224, 255, .25);
}
.brand-sub { font-family: var(--mono); font-size: 9.5px; line-height: 1.5; letter-spacing: .2em; color: var(--text-3); }

.visual-main h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
  margin-bottom: 22px;
}
.visual-main h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.visual-lead { color: var(--text-2); font-size: 15px; line-height: 1.85; max-width: 30em; }
.visual-points { margin-top: 34px; display: grid; gap: 14px; }
.visual-points li {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 13.5px; color: var(--text-2);
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); backdrop-filter: blur(8px);
  width: fit-content; min-width: 320px;
}
.visual-points b { font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: .1em; }

.visual-stats { display: flex; gap: 42px; margin-top: 40px; }
.visual-stats b { display: block; font-family: var(--mono); font-size: 30px; letter-spacing: -.02em; }
.visual-stats span { font-size: 11.5px; color: var(--text-3); letter-spacing: .1em; }
.visual-line { height: 1px; background: linear-gradient(90deg, rgba(62, 224, 255, .5), transparent); margin-top: 26px; }

.auth-panel {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 40px 32px; gap: 20px;
}
.auth-card {
  width: 100%; max-width: 430px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  animation: cardIn .6s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.auth-screen { width: 100%; display: flex; justify-content: center; }
.auth-card.wide { max-width: 560px; }
.auth-head { margin-bottom: 22px; }
.auth-head h2 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 7px; }
.auth-head p { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.auth-back {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: transparent; color: var(--text-3);
  font-size: 12px; padding: 0; margin-bottom: 14px; transition: color .16s;
}
.auth-back:hover { color: var(--cyan); }
.auth-switch {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--text-3); text-align: center;
}
.auth-switch a { color: var(--cyan); font-weight: 500; margin-left: 3px; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-form { display: grid; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field-label { font-size: 12px; color: var(--text-2); letter-spacing: .04em; }
.field-label i { font-style: normal; color: var(--text-3); font-size: 11px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea { background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(62, 224, 255, .6);
  box-shadow: 0 0 0 3px rgba(62, 224, 255, .12);
  background: rgba(255, 255, 255, .06);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.7; }
.field-pw { position: relative; }
.field-pw input { padding-right: 42px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px; border: 0;
  background: transparent; color: var(--text-3); font-size: 14px;
}
.pw-eye:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.pw-meter { display: flex; gap: 4px; margin-top: 2px; opacity: 0; transition: opacity .2s; }
.pw-meter.is-on { opacity: 1; }
.pw-meter i { height: 3px; flex: 1; border-radius: 3px; background: var(--line-strong); transition: background .2s; }
.pw-meter.s1 i:nth-child(1) { background: var(--red); }
.pw-meter.s2 i:nth-child(-n+2) { background: var(--amber); }
.pw-meter.s3 i { background: var(--lime); }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; line-height: 1.6; }
.check input { appearance: none; width: 15px; height: 15px; margin: 2px 0 0; border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; position: relative; flex: none; transition: .18s; }
.check input:checked { background: var(--grad); border-color: transparent; }
.check input:checked::after { content: "✓"; position: absolute; inset: 0; display: grid; place-content: center; font-size: 10px; color: #04060d; }
.check.tos { margin: 2px 0; }
.link-btn { border: 0; background: transparent; color: var(--text-3); font-size: 12.5px; padding: 0; }
.link-btn:hover { color: var(--cyan); }
.auth-hint { font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.7; }
.auth-foot { font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.9; max-width: 460px; }
.auth-foot b { color: var(--text-2); font-family: var(--mono); }
.auth-msg {
  margin-top: 16px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px;
  border: 1px solid rgba(255, 95, 122, .35); background: rgba(255, 95, 122, .1); color: #ffb3c0;
}
.auth-msg.is-ok { border-color: rgba(61, 220, 151, .35); background: rgba(61, 220, 151, .1); color: #a7f3cf; }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: var(--panel-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); font-size: 13.5px; font-weight: 500; color: var(--text);
  transition: transform .16s var(--ease), background .18s, border-color .18s, box-shadow .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-2); border-color: var(--line-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary {
  background: var(--grad); border-color: transparent; color: #04060d; font-weight: 600;
  box-shadow: 0 10px 26px rgba(62, 224, 255, .18);
}
html[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(62, 224, 255, .3); background: var(--grad); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--red); border-color: rgba(255, 95, 122, .3); background: rgba(255, 95, 122, .08); }
.btn-danger:hover { background: rgba(255, 95, 122, .16); border-color: rgba(255, 95, 122, .5); }
.btn-lg { padding: 13px 18px; font-size: 14px; border-radius: 11px; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text-2); font-size: 15px; transition: .18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel-2); }
.icon-btn.is-on { color: #04060d; background: var(--grad); border-color: transparent; }

/* ============================================================
   应用外壳
   ============================================================ */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 14px 14px;
  border-right: 1px solid var(--line);
  background: rgba(6, 9, 18, .55);
  backdrop-filter: blur(18px);
  z-index: 40;
}
html[data-theme="light"] .sidebar { background: rgba(255, 255, 255, .7); }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; }
.logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-content: center;
  background: var(--grad); color: #04060d; font-weight: 700; font-size: 14px; letter-spacing: .05em;
  box-shadow: 0 8px 22px rgba(62, 224, 255, .22);
}
.side-brand-text b { display: block; font-size: 14.5px; letter-spacing: .04em; }
.side-brand-text span { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: .08em; }
.side-nav { display: grid; gap: 3px; overflow-y: auto; flex: 1; padding-right: 2px; }
.nav-sec { font-size: 10px; letter-spacing: .16em; color: var(--text-3); padding: 16px 12px 7px; font-family: var(--mono); }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-size: 13.5px; border: 1px solid transparent;
  transition: .18s; position: relative;
}
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item.is-on {
  color: var(--text); background: var(--grad-soft);
  border-color: rgba(62, 224, 255, .22);
}
.nav-item.is-on svg { opacity: 1; color: var(--cyan); }
.nav-item.is-on::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--grad);
}
.nav-badge {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px;
  padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: var(--text-2);
}
.nav-item.is-on .nav-badge { background: rgba(62, 224, 255, .2); color: var(--cyan); }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.side-user {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); text-align: left; transition: .18s;
}
.side-user:hover { background: var(--panel-2); border-color: var(--line-strong); }
.side-user-txt { display: grid; min-width: 0; }
.side-user-txt b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-txt i { font-style: normal; font-size: 11px; color: var(--text-3); }
.side-user-arrow { margin-left: auto; color: var(--text-3); }

.avatar {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: grid; place-content: center;
  font-size: 13px; font-weight: 600; color: #04060d;
  background: var(--grad);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.avatar.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.avatar.lg { width: 62px; height: 62px; border-radius: 18px; font-size: 24px; }
.avatar[data-tone="v"] { background: linear-gradient(135deg, #8b5cf6, #ff5c9d); }
.avatar[data-tone="l"] { background: linear-gradient(135deg, #3ddc97, #3ee0ff); }
.avatar[data-tone="a"] { background: linear-gradient(135deg, #ffc247, #ff5c9d); }
.avatar[data-tone="r"] { background: linear-gradient(135deg, #ff5f7a, #8b5cf6); }
.avatar[data-tone="c"] { background: linear-gradient(135deg, #3ee0ff, #3ddc97); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 14, .72);
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .topbar { background: rgba(242, 245, 251, .8); }
.page-head h2 { font-size: 19px; letter-spacing: -.01em; }
.page-head p { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search { position: relative; display: flex; align-items: center; }
.search-ico { position: absolute; left: 11px; color: var(--text-3); font-size: 14px; }
.search input {
  width: 200px; padding: 8px 12px 8px 30px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); font-size: 12.5px; transition: .2s;
}
.search input:focus { outline: none; width: 250px; border-color: rgba(62, 224, 255, .5); }
.only-mobile { display: none; }
.view { padding: 24px 28px 60px; max-width: 1440px; width: 100%; margin: 0 auto; }
.scrim { display: none; }

/* ============================================================
   通用组件
   ============================================================ */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(14px);
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 14.5px; font-weight: 600; letter-spacing: .01em; }
.card-head .spacer { flex: 1; }
.card-title-note { font-size: 11.5px; color: var(--text-3); }

.section-head { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; }
.section-head h3 { font-size: 15px; letter-spacing: .01em; }
.section-head .spacer { flex: 1; }
.section-head .hint { font-size: 11.5px; color: var(--text-3); }

.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* 统计卡 */
.stat {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; background: var(--panel);
  transition: transform .2s var(--ease), border-color .2s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--grad); opacity: .1; filter: blur(12px);
}
.stat-label { font-size: 11.5px; color: var(--text-3); letter-spacing: .08em; display: flex; align-items: center; gap: 6px; }
.stat-value { font-family: var(--mono); font-size: 30px; letter-spacing: -.03em; margin: 8px 0 4px; line-height: 1; }
.stat-value small { font-size: 13px; color: var(--text-3); margin-left: 2px; }
.stat-foot { font-size: 11.5px; color: var(--text-2); }
.stat-trend.up { color: var(--lime); }
.stat-trend.down { color: var(--red); }

/* 角色徽章 */
.role {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 2px 9px; border-radius: 99px;
  border: 1px solid var(--line-strong); color: var(--text-2);
  font-weight: 500; letter-spacing: .02em;
}
.role[data-r="admin"] { color: #ffd479; border-color: rgba(255, 194, 71, .4); background: rgba(255, 194, 71, .1); }
.role[data-r="president"] { color: #7ef0ff; border-color: rgba(62, 224, 255, .4); background: rgba(62, 224, 255, .1); }
.role[data-r="leader"] { color: #c4b1ff; border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .12); }
.role[data-r="member"] { color: var(--text-2); }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); color: var(--text-2);
}
html[data-theme="light"] .tag { background: rgba(16, 24, 40, .06); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px; font-size: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
  transition: .16s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-on { background: var(--grad); border-color: transparent; color: #04060d; font-weight: 600; }

.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.high { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 95, 122, .16); }
.dot.normal { background: var(--cyan); box-shadow: 0 0 0 3px rgba(62, 224, 255, .14); }
.dot.low { background: var(--text-3); }

.empty {
  display: grid; place-items: center; gap: 8px;
  padding: 46px 20px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--text-3); font-size: 13px;
}
.empty b { color: var(--text-2); font-weight: 600; font-size: 14px; }
.empty .empty-ico { font-size: 26px; opacity: .5; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .08em;
  color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, .025); }
html[data-theme="light"] .table tr:hover td { background: rgba(16, 24, 40, .02); }
.table .cell-user { display: flex; align-items: center; gap: 9px; }
.table .cell-user b { font-weight: 600; font-size: 13px; }
.table .cell-user span { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.pwd-cell { font-family: var(--mono); font-size: 12.5px; }
.pwd-mask { letter-spacing: .18em; color: var(--text-3); }
.pwd-real { color: var(--amber); }

/* 进度条 */
.bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
html[data-theme="light"] .bar { background: rgba(16, 24, 40, .1); }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .5s var(--ease); }

/* ============================================================
   总览
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 28px;
  background:
    radial-gradient(600px 220px at 88% -30%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(500px 240px at 4% 120%, rgba(62, 224, 255, .2), transparent 70%),
    var(--panel);
  margin-bottom: 18px;
}
.hero-top { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.hero h1 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 8px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); font-size: 13px; line-height: 1.8; max-width: 52em; }
.hero-meta { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chip {
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); min-width: 96px;
}
.hero-chip span { display: block; font-size: 10.5px; color: var(--text-3); letter-spacing: .1em; }
.hero-chip b { font-family: var(--mono); font-size: 16px; }
.hero-line { height: 1px; background: linear-gradient(90deg, rgba(62, 224, 255, .42), rgba(139, 92, 246, .22), transparent); margin: 20px 0 16px; }
.hero-quick { display: flex; gap: 8px; flex-wrap: wrap; }

/* 公告 */
.post { padding: 13px 0; border-bottom: 1px dashed var(--line); }
.post:last-child { border-bottom: 0; padding-bottom: 0; }
.post:first-child { padding-top: 0; }
.post-head { display: flex; align-items: center; gap: 8px; }
.post-head h4 { font-size: 13.5px; font-weight: 600; }
.post-meta { font-size: 11px; color: var(--text-3); margin-top: 5px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-body { font-size: 12.5px; color: var(--text-2); line-height: 1.75; margin-top: 6px; }
.pin { font-size: 10px; padding: 1px 6px; border-radius: 5px; background: rgba(255, 194, 71, .14); color: var(--amber); border: 1px solid rgba(255, 194, 71, .3); }

/* 动态时间线 */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 15px; font-size: 12.5px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -18px; top: 5px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--text-3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .04);
}
.tl-item:first-child::before { background: var(--cyan); box-shadow: 0 0 0 3px rgba(62, 224, 255, .16); }
.tl-item b { font-weight: 600; }
.tl-item span { color: var(--text-3); font-size: 11px; margin-left: 6px; }
.tl-item p { color: var(--text-2); margin-top: 3px; font-size: 12px; }

/* ============================================================
   任务看板
   ============================================================ */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { display: grid; gap: 10px; }
.col-head {
  display: flex; align-items: center; gap: 8px;
  padding: 0 2px 2px; font-size: 12px; color: var(--text-2); letter-spacing: .06em;
}
.col-head b { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.col-head .bar-tag { margin-left: auto; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.col-body { display: grid; gap: 10px; min-height: 60px; }

.task {
  position: relative;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); padding: 14px;
  transition: .2s var(--ease);
  cursor: pointer;
}
.task:hover { border-color: rgba(62, 224, 255, .38); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.task-top { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.task-top .dot { margin-top: 0; }
.task-pri { font-size: 10.5px; color: var(--text-3); letter-spacing: .06em; }
.task h4 { font-size: 13.5px; line-height: 1.5; font-weight: 600; margin-bottom: 6px; }
.task p { font-size: 12px; color: var(--text-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.task-foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.task-who { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); }
.task-due { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.task-due.late { color: var(--red); }
.task-due.soon { color: var(--amber); }
.task-progress { margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.task-progress .bar { flex: 1; }
.task-progress span { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.task.done { opacity: .62; }
.task.done h4 { text-decoration: line-through; text-decoration-color: var(--text-3); }

/* 任务详情弹窗内 */
.detail-grid { display: grid; gap: 14px; }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.meta-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .025); }
.meta-box span { display: block; font-size: 10.5px; color: var(--text-3); letter-spacing: .06em; margin-bottom: 4px; }
.meta-box b { font-size: 13px; font-weight: 600; }
.comment { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.comment:last-child { border-bottom: 0; }
.comment-body b { font-size: 12.5px; }
.comment-body p { font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.65; }
.comment-body span { font-size: 10.5px; color: var(--text-3); }

/* ============================================================
   文件共享
   ============================================================ */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.file {
  display: grid; gap: 9px;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  background: var(--panel); transition: .18s;
}
.file:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.file-top { display: flex; align-items: flex-start; gap: 10px; }
.file-ico {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-content: center; font-family: var(--mono); font-size: 10px;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--cyan); letter-spacing: .04em;
}
.file-name { font-size: 13px; font-weight: 600; line-height: 1.5; word-break: break-all; }
.file-note { font-size: 11.5px; color: var(--text-3); margin-top: 3px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.file-foot { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); padding-top: 9px; border-top: 1px solid var(--line); }
.file-foot .spacer { flex: 1; }
.file-actions { display: flex; gap: 6px; }
.file-actions .btn { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
.drop {
  border: 1.5px dashed var(--line-strong); border-radius: 14px;
  padding: 22px; text-align: center; color: var(--text-3); font-size: 12.5px;
  transition: .18s; cursor: pointer;
}
.drop:hover, .drop.is-over { border-color: rgba(62, 224, 255, .6); background: rgba(62, 224, 255, .05); color: var(--text); }

/* ============================================================
   人员一览
   ============================================================ */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: 13px; }
.member {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 16px; transition: .2s var(--ease);
}
.member:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.member::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--grad); opacity: .07; filter: blur(10px);
}
.member-head { display: flex; align-items: center; gap: 12px; }
.member-id b { font-size: 15px; letter-spacing: -.01em; }
.member-id p { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.member-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.member-bio { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-top: 10px; min-height: 40px; }
.member-grid-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 12px; }
.member-grid-mini i { height: 6px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
html[data-theme="light"] .member-grid-mini i { background: rgba(16, 24, 40, .08); }
.member-grid-mini i.on { background: linear-gradient(135deg, rgba(62, 224, 255, .8), rgba(139, 92, 246, .8)); }
.member-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text-3); }
.member-foot .spacer { flex: 1; }
.contact-row { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-3); margin-top: 9px; flex-wrap: wrap; }

/* ============================================================
   无课时间
   ============================================================ */
.sched-wrap { overflow-x: auto; }
.sched { display: grid; grid-template-columns: 52px repeat(7, minmax(64px, 1fr)); gap: 5px; min-width: 620px; }
.sched .hd { font-size: 11px; color: var(--text-3); text-align: center; padding: 6px 0; letter-spacing: .06em; }
.sched .hd.today { color: var(--cyan); }
.sched .slot-no {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-3);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px;
  padding-left: 4px; line-height: 1.25;
}
.sched .slot-no b { color: var(--text-2); font-size: 11px; font-weight: 500; }
.cell {
  height: 42px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025); display: grid; place-content: center;
  font-size: 10.5px; color: transparent; transition: .14s; user-select: none;
}
html[data-theme="light"] .cell { background: rgba(16, 24, 40, .02); }
.cell.is-busy { background: linear-gradient(135deg, rgba(255, 95, 122, .22), rgba(139, 92, 246, .2)); border-color: rgba(255, 95, 122, .3); color: #ffb3c0; }
.cell.is-busy::after { content: "课"; }
.cell.editable { cursor: pointer; }
.cell.editable:hover { border-color: rgba(62, 224, 255, .5); background: rgba(62, 224, 255, .08); }
.cell.is-free-common { background: linear-gradient(135deg, rgba(62, 224, 255, .26), rgba(61, 220, 151, .22)); border-color: rgba(62, 224, 255, .42); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); margin-top: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .free { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.legend .busy { background: linear-gradient(135deg, rgba(255, 95, 122, .5), rgba(139, 92, 246, .45)); }
.legend .common { background: linear-gradient(135deg, rgba(62, 224, 255, .6), rgba(61, 220, 151, .5)); }

/* ============================================================
   个人中心
   ============================================================ */
.profile-hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background:
    radial-gradient(420px 200px at 90% -40%, rgba(139, 92, 246, .3), transparent 70%),
    radial-gradient(380px 180px at 0% 120%, rgba(62, 224, 255, .22), transparent 70%),
    var(--panel);
  margin-bottom: 16px;
}
.profile-hero .who h3 { font-size: 22px; letter-spacing: -.01em; }
.profile-hero .who p { font-size: 12.5px; color: var(--text-2); margin-top: 5px; }
.profile-stats { margin-left: auto; display: flex; gap: 26px; flex-wrap: wrap; }
.profile-stats div span { display: block; font-size: 10.5px; color: var(--text-3); letter-spacing: .08em; }
.profile-stats div b { font-family: var(--mono); font-size: 21px; }
.level-wrap { margin-top: 14px; min-width: 240px; }
.level-wrap .lv-line { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); width: fit-content; margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: 12.5px; color: var(--text-3); }
.tab.is-on { background: var(--grad); color: #04060d; font-weight: 600; }
html[data-theme="light"] .tab.is-on { color: #fff; }

/* ============================================================
   设置
   ============================================================ */
.setting-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.setting-row:last-child { border-bottom: 0; }
.setting-row .txt { flex: 1; min-width: 0; }
.setting-row .txt b { font-size: 13px; font-weight: 600; display: block; }
.setting-row .txt span { font-size: 11.5px; color: var(--text-3); display: block; margin-top: 3px; line-height: 1.6; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid var(--line); flex: none; cursor: pointer; transition: .2s; }
html[data-theme="light"] .switch { background: rgba(16, 24, 40, .1); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .22s var(--ease); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.switch.is-on { background: var(--grad); border-color: transparent; }
.switch.is-on::after { transform: translateX(20px); }
.theme-opts { display: flex; gap: 8px; }
.theme-opt {
  width: 74px; border-radius: 10px; border: 1px solid var(--line); padding: 7px;
  display: grid; gap: 6px; background: var(--panel); cursor: pointer; text-align: center;
}
.theme-opt span { font-size: 10.5px; color: var(--text-3); }
.theme-opt .prev { height: 26px; border-radius: 6px; border: 1px solid var(--line); }
.theme-opt[data-t="dark"] .prev { background: linear-gradient(135deg, #0a1020, #1a1030); }
.theme-opt[data-t="light"] .prev { background: linear-gradient(135deg, #f4f7fd, #dfe7f6); }
.theme-opt.is-on { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(62, 224, 255, .18); }

/* ============================================================
   弹窗 / 提示
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 4, 10, .68);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  animation: modalIn .26s var(--ease);
}
.modal.wide { max-width: 720px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.modal-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 15.5px; }
.modal-head p { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.modal-head .icon-btn { margin-left: auto; flex: none; }
.modal-body { padding: 18px 22px; display: grid; gap: 14px; }
.modal-foot { padding: 14px 22px 20px; display: flex; gap: 9px; justify-content: flex-end; border-top: 1px solid var(--line); }
.modal-foot .spacer { flex: 1; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 9px; max-width: 340px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px; line-height: 1.6;
  animation: toastIn .28s var(--ease);
}
.toast.is-out { animation: toastOut .22s ease forwards; }
.toast .ti { font-size: 14px; line-height: 1.3; }
.toast[data-kind="ok"] { border-color: rgba(61, 220, 151, .4); }
.toast[data-kind="ok"] .ti { color: var(--lime); }
.toast[data-kind="err"] { border-color: rgba(255, 95, 122, .42); }
.toast[data-kind="err"] .ti { color: var(--red); }
.toast[data-kind="info"] .ti { color: var(--cyan); }
@keyframes toastIn { from { opacity: 0; transform: translateX(22px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(22px); } }

/* 确认对话框 */
.confirm-txt { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.confirm-txt b { color: var(--text); }

/* 骨架 */
.skel { border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .1), rgba(255, 255, 255, .05)); background-size: 200% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 262px;
    transform: translateX(-100%); transition: transform .3s var(--ease);
    background: var(--panel-solid); box-shadow: var(--shadow);
  }
  .sidebar.is-open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(2, 4, 10, .6); opacity: 0; visibility: hidden; transition: .25s; }
  .scrim.is-on { opacity: 1; visibility: visible; }
  .only-mobile { display: grid; }
  .view { padding: 18px 16px 60px; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .page-head h2 { font-size: 16.5px; }
  .page-head p { display: none; }
  .search input { width: 140px; }
  .search input:focus { width: 160px; }
}
@media (max-width: 720px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: 1fr; }
  .hero-meta { margin-left: 0; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 21px; }
  .profile-hero { flex-direction: column; align-items: flex-start; }
  .profile-stats { margin-left: 0; gap: 18px; }
  .search { display: none; }
  .auth-card { padding: 20px; }
  .modal { max-height: 92vh; }
  .toasts { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .stat-value { font-size: 25px; }
}

/* ---------- 紧凑模式 / 细节 ---------- */
/* ---------- 表单控件统一 ---------- */
.field select, .role-select {
  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 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%238b96ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px;
  padding-right: 30px;
  cursor: pointer;
}
html[data-theme="dark"] option { background: #0c1220; color: #e9edf7; }
html[data-theme="light"] option { background: #fff; color: #101828; }
select:focus { outline: none; }

:focus-visible { outline: 2px solid rgba(62, 224, 255, .65); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible { outline-offset: 3px; }
.task:focus-visible { outline: 2px solid rgba(62, 224, 255, .6); outline-offset: 2px; }

body.is-compact .card { padding: 13px; }
body.is-compact .task { padding: 11px; }
body.is-compact .file { padding: 11px; }
body.is-compact .view { padding-top: 16px; }
body.is-compact .post { padding: 9px 0; }
code {
  font-family: var(--mono); font-size: 11.5px;
  background: rgba(255, 255, 255, .08); padding: 1px 5px; border-radius: 5px;
}
html[data-theme="light"] code { background: rgba(16, 24, 40, .07); }
.role-select { color: var(--text); cursor: pointer; }
.role-select:focus { outline: none; border-color: rgba(62, 224, 255, .55); }
input[type="date"] { color-scheme: dark; }
html[data-theme="light"] input[type="date"] { color-scheme: light; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
