/* ================= 个人工作台 · CYBER HUD 主题 ================= */
:root {
  --bg: #050813;
  --bg2: #080E1C;
  --panel: rgba(11,20,38,.78);
  --panel2: rgba(16,27,50,.92);
  --line: rgba(34,231,255,.16);
  --line2: rgba(34,231,255,.34);
  --cyan: #22E7FF;
  --magenta: #FF2E8B;
  --violet: #9B6BFF;
  --lime: #B8FF42;
  --amber: #FFB020;
  --danger: #FF4570;
  --ink: #E8F2FF;
  --ink2: #93A9C8;
  --ink3: #5E739A;
  --r: 4px;
  --sidebar-w: 232px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html, body { height: 100% }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
/* 网格 + 霓虹光斑背景 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(34,231,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,231,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 100%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(760px 460px at 8% -10%, rgba(155,107,255,.22), transparent 62%),
    radial-gradient(660px 420px at 102% 2%, rgba(34,231,255,.16), transparent 62%),
    radial-gradient(560px 460px at 55% 118%, rgba(255,46,139,.14), transparent 62%);
}
button, input, select, textarea { font-family: inherit; font-size: 16px; color: inherit }
button { cursor: pointer; background: none; border: none }
a { color: var(--cyan); text-decoration: none }
::selection { background: rgba(34,231,255,.3) }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.2px }
.mono { font-family: var(--mono) }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px }
::-webkit-scrollbar-track { background: rgba(255,255,255,.03) }
::-webkit-scrollbar-thumb { background: rgba(34,231,255,.24); border-radius: 6px }
::-webkit-scrollbar-thumb:hover { background: rgba(34,231,255,.45) }

/* ---------- 图标 ---------- */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none }
.ic-s { width: 15px; height: 15px }
.ic-l { width: 22px; height: 22px }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 15px; font-size: 13.5px; font-weight: 600;
  letter-spacing: .4px; border: 1px solid transparent; position: relative;
  transition: .16s; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.btn-primary {
  background: linear-gradient(120deg, rgba(34,231,255,.22), rgba(155,107,255,.22));
  border-color: rgba(34,231,255,.5); color: #DFF8FF;
  box-shadow: 0 0 14px rgba(34,231,255,.14), inset 0 0 12px rgba(34,231,255,.08);
}
.btn-primary:hover { box-shadow: 0 0 22px rgba(34,231,255,.4); transform: translateY(-1px); border-color: var(--cyan) }
.btn-gold {
  background: linear-gradient(120deg, rgba(255,46,139,.28), rgba(155,107,255,.28));
  border-color: rgba(255,46,139,.55); color: #FFE1EF;
  box-shadow: 0 0 14px rgba(255,46,139,.18);
}
.btn-gold:hover { box-shadow: 0 0 24px rgba(255,46,139,.42); transform: translateY(-1px) }
.btn-outline { border-color: rgba(34,231,255,.28); background: rgba(11,20,38,.6); color: var(--ink2) }
.btn-outline:hover { border-color: var(--cyan); color: #DFF8FF; box-shadow: 0 0 16px rgba(34,231,255,.2) }
.btn-ghost { color: var(--ink2) }
.btn-ghost:hover { background: rgba(34,231,255,.08); color: var(--ink) }
.btn-danger { background: rgba(255,69,112,.18); border-color: rgba(255,69,112,.5); color: #FFC3D2 }
.btn-danger:hover { box-shadow: 0 0 20px rgba(255,69,112,.35) }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: 12.5px }
.btn-xs { min-height: 28px; padding: 0 9px; font-size: 11.5px; font-weight: 500 }
.btn-block { width: 100% }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink2); transition: .15s; border: 1px solid transparent;
}
.icon-btn:hover { background: rgba(34,231,255,.1); color: var(--cyan); border-color: rgba(34,231,255,.25) }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 5px }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink2); letter-spacing: .6px }
.field .hint { font-size: 11px; color: var(--ink3); font-weight: 400 }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=month], input[type=url], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid rgba(34,231,255,.18);
  background: rgba(6,12,24,.75); color: var(--ink); font-size: 16px;
  transition: .15s; outline: none; border-radius: 2px;
}
@media (min-width: 769px) { input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=month], input[type=url], select, textarea { font-size: 13.5px } }
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,231,255,.1), 0 0 16px rgba(34,231,255,.15)
}
input::placeholder, textarea::placeholder { color: var(--ink3) }
textarea { min-height: 96px; resize: vertical; line-height: 1.7 }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E739A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 15px; padding-right: 32px;
}
input[type=date]::-webkit-calendar-picker-indicator, input[type=month]::-webkit-calendar-picker-indicator { filter: invert(.75) hue-rotate(160deg); cursor: pointer }
.check-row { display: flex; align-items: center; gap: 8px; min-height: 42px; cursor: pointer; font-size: 14px }
.check-row input[type=checkbox] { width: 18px; height: 18px; accent-color: #22E7FF; flex: none }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.form-grid .span2 { grid-column: 1/-1 }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr } }

/* ================= 登录 ================= */
.login-screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow: auto;
  background:
    radial-gradient(900px 600px at 20% -10%, rgba(155,107,255,.25), transparent 60%),
    radial-gradient(700px 500px at 110% 10%, rgba(34,231,255,.2), transparent 60%),
    radial-gradient(600px 600px at 50% 120%, rgba(255,46,139,.18), transparent 60%),
    #050813;
}
.login-card {
  width: 100%; max-width: 392px; padding: 32px 26px 22px; position: relative;
  background: linear-gradient(160deg, rgba(16,28,52,.92), rgba(7,13,26,.95));
  border: 1px solid rgba(34,231,255,.3);
  box-shadow: 0 0 40px rgba(34,231,255,.12), 0 24px 60px rgba(0,0,0,.6);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.login-card::before { content: ''; position: absolute; left: 0; top: 0; width: 70px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent) }
.login-card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,231,255,.5), transparent);
  animation: scan 3.6s linear infinite; opacity: .6;
}
@keyframes scan { 0% { transform: translateY(0); opacity: 0 } 8% { opacity: .7 } 92% { opacity: .7 } 100% { transform: translateY(420px); opacity: 0 } }
.login-brand { text-align: center; margin-bottom: 24px; position: relative }
.login-logo { width: 72px; height: 72px; display: block; margin: 0 auto 12px; filter: drop-shadow(0 0 16px rgba(34,231,255,.5)) }
.login-brand h1 { font-size: 22px; letter-spacing: 3px; color: #EAFDFF; text-shadow: 0 0 18px rgba(34,231,255,.5) }
.login-brand p { font-size: 12px; color: var(--ink3); margin-top: 6px; letter-spacing: 1px }
.login-card .field { margin-bottom: 14px }
.login-tip { min-height: 20px; font-size: 12.5px; color: var(--danger); text-align: center; margin-top: 10px }
.login-foot { text-align: center; font-size: 11px; color: var(--ink3); margin-top: 16px; letter-spacing: .5px }

/* ================= 布局 ================= */
.app { display: flex; min-height: 100vh }
.sidebar {
  width: var(--sidebar-w); flex: none; display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 60; overflow-y: auto;
  background: linear-gradient(180deg, rgba(9,16,32,.96), rgba(5,9,20,.98));
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 24px rgba(0,0,0,.5);
}
.sidebar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 220px; pointer-events: none;
  background: linear-gradient(180deg, rgba(34,231,255,.08), transparent);
}
.sidebar-head { display: flex; align-items: center; gap: 10px; padding: 16px 14px; border-bottom: 1px solid var(--line); position: relative }
.brand-logo { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(34,231,255,.45)) }
.brand-txt b { display: block; font-size: 14px; color: #EAFDFF; letter-spacing: 2px }
.brand-txt small { display: block; font-size: 10.5px; color: var(--ink3); font-family: var(--mono) }
.sidebar-close { display: none; color: var(--ink2) }
.nav { display: flex; flex-direction: column; gap: 3px; padding: 8px; position: relative }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13px;
  color: var(--ink2); transition: .15s; text-align: left; width: 100%; position: relative;
  border-left: 2px solid transparent; letter-spacing: .4px;
}
.nav-item:hover { background: rgba(34,231,255,.07); color: var(--ink) }
.nav-item.active {
  background: linear-gradient(90deg, rgba(34,231,255,.16), rgba(34,231,255,.02));
  color: #DFF8FF; border-left-color: var(--cyan);
  box-shadow: inset 0 0 18px rgba(34,231,255,.08);
}
.nav-item.active .ic { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(34,231,255,.8)) }
.nav-item .ic { width: 16px; height: 16px; opacity: .85 }
.nav-badge {
  margin-left: auto; background: rgba(255,69,112,.2); color: #FF9DB5; font-size: 10.5px; font-weight: 700;
  min-width: 20px; height: 19px; border: 1px solid rgba(255,69,112,.5);
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
  font-family: var(--mono); box-shadow: 0 0 10px rgba(255,69,112,.25);
}
.nav-badge.gold { background: rgba(255,176,32,.16); color: #FFD58A; border-color: rgba(255,176,32,.45); box-shadow: 0 0 10px rgba(255,176,32,.2) }
.nav-section-title { font-size: 10px; color: var(--ink3); letter-spacing: 2px; padding: 12px 20px 4px; font-weight: 700 }
.sidebar-foot { padding: 12px; margin-top: auto; position: relative }
.sidebar-foot .btn { color: var(--ink2) }
.sidebar-foot .btn:hover { background: rgba(255,69,112,.12); color: #FF9DB5 }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column }
.topbar {
  height: 62px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(8,14,28,.94), rgba(8,14,28,.8));
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--cyan), rgba(155,107,255,.6), transparent) }
.menu-btn { display: none }
.topbar-title { min-width: 0; flex: 1 }
.topbar-title h2 {
  font-size: 16px; font-weight: 700; letter-spacing: 2px; color: #EAFDFF;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 14px rgba(34,231,255,.35);
}
.topbar-title span { font-size: 11px; color: var(--ink3); font-family: var(--mono); letter-spacing: .5px }
.topbar-actions { display: flex; gap: 4px; align-items: center }
.view { flex: 1; padding: 18px; max-width: 1480px; width: 100% }
.tabbar { display: none }
.scrim { position: fixed; inset: 0; background: rgba(2,5,12,.72); backdrop-filter: blur(2px); z-index: 55; opacity: 0; transition: .2s }
.scrim.show { opacity: 1 }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; box-shadow: 0 0 40px rgba(0,0,0,.7) }
  .sidebar.open { transform: none }
  .sidebar-close { display: inline-flex }
  .main { margin-left: 0 }
  .menu-btn { display: inline-flex }
  .view { padding: 12px 12px 92px }
  .scrim[hidden] { display: block; opacity: 0; pointer-events: none }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(180deg, rgba(8,14,28,.92), rgba(5,9,20,.98));
    backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px; font-size: 10px; color: var(--ink3); min-height: 54px; letter-spacing: .5px }
  .tabbar-item.active { color: #DFF8FF }
  .tabbar-item.active .ic { color: var(--cyan); filter: drop-shadow(0 0 8px rgba(34,231,255,.9)) }
  .tabbar-item .ic { width: 21px; height: 21px }
}

/* ================= 卡片 ================= */
.card {
  background: linear-gradient(158deg, rgba(16,27,50,.8), rgba(8,14,28,.9));
  border: 1px solid var(--line); border-radius: 3px; position: relative;
  box-shadow: 0 10px 34px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.03);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.card::before { content: ''; position: absolute; left: 0; top: 0; width: 56px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); z-index: 2 }
.card-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap }
.card-head h3 { font-size: 13.5px; font-weight: 700; letter-spacing: 1.2px; display: flex; align-items: center; gap: 8px; color: #DFF8FF }
.card-head h3 .ic { color: var(--cyan); width: 16px; height: 16px; filter: drop-shadow(0 0 6px rgba(34,231,255,.7)) }
.card-head .spacer { flex: 1 }
.card-body { padding: 14px 16px }
.card-body.tight { padding: 10px 12px }
.grid { display: grid; gap: 14px }
.g2 { grid-template-columns: repeat(2, 1fr) }
.g3 { grid-template-columns: repeat(3, 1fr) }
.g4 { grid-template-columns: repeat(4, 1fr) }
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, 1fr) } .g3 { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 780px) { .g2, .g3, .g4 { grid-template-columns: 1fr } }
.mb { margin-bottom: 14px }

/* ================= 仪表盘 HUD ================= */
.hud {
  position: relative; overflow: hidden; margin-bottom: 14px;
  padding: 18px 20px;
  background: linear-gradient(120deg, rgba(18,32,60,.9), rgba(10,18,36,.85) 55%, rgba(30,14,48,.85));
  border: 1px solid rgba(34,231,255,.26);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 0 50px rgba(34,231,255,.05);
}
.hud::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(34,231,255,.05) 0 1px, transparent 1px 4px);
  opacity: .55;
}
.hud::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: hudscan 5s linear infinite;
}
@keyframes hudscan { 0% { transform: translateY(0); opacity: 0 } 10% { opacity: .8 } 90% { opacity: .8 } 100% { transform: translateY(190px); opacity: 0 } }
.hud-top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1 }
.hud-title { flex: 1; min-width: 200px }
.hud-title h1 { font-size: 20px; letter-spacing: 3px; color: #EAFDFF; text-shadow: 0 0 20px rgba(34,231,255,.5) }
.hud-title .hud-date { font-size: 11.5px; color: var(--ink3); font-family: var(--mono); letter-spacing: 1px; margin-top: 3px }
.hud-stats { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; margin-top: 14px }
.hud-stat {
  flex: 1; min-width: 92px; padding: 10px 14px; position: relative;
  background: rgba(6,12,24,.6); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.hud-stat b { display: block; font-size: 26px; font-weight: 700; line-height: 1.15; font-family: var(--mono); color: var(--cyan); text-shadow: 0 0 16px rgba(34,231,255,.5) }
.hud-stat span { font-size: 11px; color: var(--ink3); letter-spacing: 1px }
.hud-stat.alert b { color: var(--danger); text-shadow: 0 0 16px rgba(255,69,112,.6) }
.hud-stat.alert { border-color: rgba(255,69,112,.35); background: rgba(255,69,112,.07) }
.hud-stat.gold b { color: var(--amber); text-shadow: 0 0 16px rgba(255,176,32,.5) }
.hud-stat.ok b { color: var(--lime); text-shadow: 0 0 16px rgba(184,255,66,.45) }
.hud-ring { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1 }

/* 任务队列 */
.qlist { display: flex; flex-direction: column; gap: 8px }
.today-item {
  display: flex; align-items: flex-start; gap: 11px; padding: 11px 13px;
  border: 1px solid var(--line); background: rgba(8,15,30,.6); position: relative;
  transition: .16s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.today-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(34,231,255,.3) }
.today-item:hover { border-color: rgba(34,231,255,.4); background: rgba(14,26,48,.75); box-shadow: 0 0 20px rgba(34,231,255,.1) }
.today-item.overdue { border-color: rgba(255,69,112,.4); background: rgba(255,69,112,.07) }
.today-item.overdue::before { background: var(--danger); box-shadow: 0 0 10px rgba(255,69,112,.8) }
.today-item.today { border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.06) }
.today-item.today::before { background: var(--amber); box-shadow: 0 0 10px rgba(255,176,32,.8) }
.tick {
  width: 22px; height: 22px; flex: none; border: 1.5px solid rgba(34,231,255,.4);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
  color: transparent; transition: .15s; background: rgba(0,0,0,.3);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.tick:hover { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 12px rgba(184,255,66,.4) }
.ti-main { flex: 1; min-width: 0 }
.ti-title { font-size: 14px; font-weight: 600; word-break: break-word; letter-spacing: .3px }
.ti-meta { font-size: 11.5px; color: var(--ink3); display: flex; gap: 7px; flex-wrap: wrap; margin-top: 3px; align-items: center }
.ti-acts { display: flex; gap: 4px; flex: none }
.done-item .ti-title { text-decoration: line-through; color: var(--ink3); font-weight: 500 }
.done-item::before { background: rgba(34,231,255,.15) }

/* 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600;
  padding: 1px 8px; border-radius: 2px; letter-spacing: .4px;
  background: rgba(34,231,255,.08); border: 1px solid rgba(34,231,255,.25); color: #9FE6F5;
  white-space: nowrap; font-family: var(--mono);
}
.tag.overdue { background: rgba(255,69,112,.12); border-color: rgba(255,69,112,.45); color: #FF9DB5 }
.tag.today { background: rgba(255,176,32,.12); border-color: rgba(255,176,32,.4); color: #FFD58A }
.tag.soon { background: rgba(34,231,255,.1); border-color: rgba(34,231,255,.35); color: #9FE6F5 }
.tag.done { background: rgba(184,255,66,.08); border-color: rgba(184,255,66,.32); color: #D6FF93 }
.tag.gold { background: rgba(155,107,255,.14); border-color: rgba(155,107,255,.45); color: #D3BCFF }
.tag.gray { background: rgba(94,115,154,.12); border-color: rgba(94,115,154,.3); color: var(--ink3) }
.tag.line { background: rgba(34,231,255,.05); border-color: rgba(34,231,255,.2); color: var(--ink2) }

/* 板块卡（模块舱） */
.board-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px }
@media (max-width: 1180px) { .board-cards { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 560px) { .board-cards { grid-template-columns: 1fr } }
.board-card {
  background: linear-gradient(155deg, rgba(16,28,52,.85), rgba(8,14,28,.9));
  border: 1px solid var(--line); padding: 14px; cursor: pointer; transition: .18s;
  position: relative; overflow: hidden; text-align: left; width: 100%;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.board-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--cyan), var(--violet)) }
.board-card::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  border: 1px solid rgba(34,231,255,.1); transform: rotate(45deg); transition: .25s;
}
.board-card:hover { border-color: rgba(34,231,255,.55); box-shadow: 0 0 26px rgba(34,231,255,.2); transform: translateY(-2px) }
.board-card:hover::after { right: -18px; top: -18px; border-color: rgba(34,231,255,.3) }
.bc-top { display: flex; align-items: center; gap: 9px; position: relative }
.bc-icon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex: none;
  background: rgba(34,231,255,.1); border: 1px solid rgba(34,231,255,.28); color: var(--cyan);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.bc-name { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: #EAFDFF }
.bc-sum { font-size: 12px; color: var(--ink3); margin-top: 9px; min-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.bc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px dashed rgba(34,231,255,.15) }
.bc-count { font-size: 11.5px; color: var(--ink3); font-family: var(--mono) }
.bc-count b { color: var(--danger); font-weight: 700; text-shadow: 0 0 8px rgba(255,69,112,.5) }
.bc-count b.zero { color: var(--ink3); text-shadow: none }

/* ================= 页面头 / 工具条 ================= */
.page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap }
.page-head h2 { font-size: 17px; font-weight: 700; letter-spacing: 1.5px; color: #EAFDFF }
.page-head .spacer { flex: 1 }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px }
.search-box { position: relative; flex: 1; min-width: 150px; max-width: 320px }
.search-box .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink3); width: 16px; height: 16px; pointer-events: none }
.search-box input { padding-left: 34px; min-height: 38px }
.seg { display: inline-flex; background: rgba(6,12,24,.7); border: 1px solid var(--line); padding: 3px; gap: 2px; flex-wrap: wrap }
.seg button { padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink2); min-height: 30px; letter-spacing: .5px; transition: .15s }
.seg button.on { background: linear-gradient(120deg, rgba(34,231,255,.22), rgba(155,107,255,.22)); color: #DFF8FF; box-shadow: 0 0 14px rgba(34,231,255,.25) }

/* ================= 台账列表 ================= */
.rec-list { display: flex; flex-direction: column; gap: 7px }
.rec {
  display: grid; gap: 10px; align-items: center; padding: 11px 14px;
  border: 1px solid var(--line); background: rgba(8,15,30,.55); transition: .15s;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.rec:hover { border-color: rgba(34,231,255,.38); background: rgba(14,26,48,.7); box-shadow: 0 0 18px rgba(34,231,255,.08) }
.rec.archived { opacity: .45 }
.rec-cell { min-width: 0; font-size: 13.5px }
.rec-cell .lb { display: none }
.rec-cell .v { word-break: break-word }
.rec-cell.strong .v { font-weight: 600; color: #EAFDFF }
.rec-cell.small .v { font-size: 12.5px; color: var(--ink3) }
.rec-acts { display: flex; gap: 2px; justify-content: flex-end }
@media (max-width: 860px) {
  .rec { grid-template-columns: 1fr 1fr !important; padding: 12px; gap: 8px 12px }
  .rec-cell { display: flex; flex-direction: column; gap: 1px }
  .rec-cell .lb { display: block; font-size: 10px; color: var(--ink3); font-weight: 700; letter-spacing: 1px }
  .rec-acts { grid-column: 1/-1; justify-content: flex-start; border-top: 1px dashed rgba(34,231,255,.15); padding-top: 8px; margin-top: 2px }
}
.empty { text-align: center; padding: 34px 16px; color: var(--ink3); font-size: 13px }
.empty .ic { width: 32px; height: 32px; stroke-width: 1.4; opacity: .35; display: block; margin: 0 auto 8px }

/* ================= 表格 ================= */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px }
table.tbl th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--ink3);
  padding: 9px 10px; background: rgba(6,12,24,.8); border-bottom: 1px solid var(--line2);
  white-space: nowrap; text-transform: uppercase;
}
table.tbl td { padding: 9px 10px; border-bottom: 1px solid rgba(34,231,255,.08) }
table.tbl tr:last-child td { border-bottom: none }
table.tbl tbody tr:hover { background: rgba(34,231,255,.05) }
table.tbl td.r, table.tbl th.r { text-align: right }
table.tbl td.c, table.tbl th.c { text-align: center }

/* ================= 排班表 ================= */
.sched { overflow-x: auto }
.sched-grid { display: grid; grid-template-columns: 84px repeat(3, minmax(120px, 1fr)); gap: 6px; min-width: 520px }
.sched-cell {
  border: 1px solid var(--line); min-height: 66px; padding: 7px; font-size: 12.5px;
  background: rgba(8,15,30,.6); transition: .15s; display: flex; flex-direction: column; gap: 5px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.sched-cell.head { border: none; background: none; min-height: auto; padding: 4px 2px; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--ink3); align-items: center; justify-content: center }
.sched-cell.date { font-size: 12px; color: var(--ink2); border: none; background: none; min-height: auto; align-items: flex-start; padding: 8px 4px 0 }
.sched-cell.date b { font-size: 13px; color: #EAFDFF; display: block; font-family: var(--mono) }
.sched-cell.slot { cursor: pointer; align-items: stretch; text-align: left; width: 100% }
.sched-cell.slot:hover { border-color: var(--cyan); background: rgba(34,231,255,.08); box-shadow: 0 0 16px rgba(34,231,255,.15) }
.sched-cell.slot.boss-on { background: rgba(255,176,32,.08); border-color: rgba(255,176,32,.4) }
.chips { display: flex; flex-wrap: wrap; gap: 4px }
.chip { font-size: 11px; padding: 1px 7px; border-radius: 2px; background: rgba(34,231,255,.1); border: 1px solid rgba(34,231,255,.22); color: #9FE6F5; white-space: nowrap }
.chip.boss { background: rgba(255,176,32,.14); border-color: rgba(255,176,32,.4); color: #FFD58A; font-weight: 600 }
.chip.empty { background: none; border-color: transparent; color: var(--ink3) }
.chip.danger { background: rgba(255,69,112,.12); border-color: rgba(255,69,112,.4); color: #FF9DB5 }

/* ================= 打卡 ================= */
.habit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px }
.habit-card {
  border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 9px;
  background: linear-gradient(155deg, rgba(16,28,52,.7), rgba(8,14,28,.8)); position: relative; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.habit-card.done { border-color: rgba(184,255,66,.42); background: linear-gradient(155deg, rgba(30,52,30,.5), rgba(10,20,20,.8)) }
.habit-card.done::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--lime); box-shadow: 0 0 12px rgba(184,255,66,.7) }
.habit-name { font-size: 13.5px; font-weight: 700; letter-spacing: .8px; color: #EAFDFF }
.habit-streak { font-size: 11.5px; color: var(--ink3) }
.habit-streak b { color: var(--cyan); font-size: 17px; font-weight: 700; font-family: var(--mono); text-shadow: 0 0 12px rgba(34,231,255,.6) }
.heat { display: flex; gap: 3px; flex-wrap: wrap }
.heat i { width: 10px; height: 10px; border-radius: 1px; background: rgba(94,115,154,.2); display: block }
.heat i.on { background: var(--cyan); box-shadow: 0 0 7px rgba(34,231,255,.8) }
.heat i.today { outline: 1px solid var(--magenta); outline-offset: 1px }

/* ================= 图表 ================= */
.chart-box { width: 100%; overflow-x: auto }
svg.chart { display: block; width: 100%; height: auto }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink2); margin-top: 8px }
.legend i { width: 10px; height: 10px; border-radius: 1px; display: inline-block; margin-right: 5px; vertical-align: -1px }
.legend span { font-family: var(--mono) }

/* ================= 模态 ================= */
.modal-mask { position: fixed; inset: 0; background: rgba(2,5,12,.78); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .16s }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: linear-gradient(160deg, rgba(14,25,46,.98), rgba(7,13,26,.99));
  width: 100%; max-width: 570px; max-height: 92vh; display: flex; flex-direction: column;
  border: 1px solid rgba(34,231,255,.35);
  box-shadow: 0 0 60px rgba(34,231,255,.15), 0 30px 70px rgba(0,0,0,.7);
  animation: up .22s cubic-bezier(.2,.8,.3,1);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
@keyframes up { from { transform: translateY(28px); opacity: .4 } to { transform: none; opacity: 1 } }
@media (min-width: 769px) {
  .modal-mask { align-items: center; padding: 20px }
  .modal { border-radius: 3px; max-height: 86vh }
}
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex: none }
.modal-head h3 { font-size: 15px; font-weight: 700; flex: 1; letter-spacing: 1.2px; color: #EAFDFF }
.modal-body { padding: 16px 18px; overflow-y: auto; flex: 1 }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); flex: none; padding-bottom: calc(12px + env(safe-area-inset-bottom)) }
@media (max-width: 768px) { .modal-foot .btn { flex: 1 } }

/* 快录预览 */
.quick-preview {
  border: 1px solid rgba(34,231,255,.3); background: rgba(34,231,255,.05); padding: 11px 13px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.qp-title { font-size: 14.5px; font-weight: 700; color: #EAFDFF; margin-bottom: 7px; letter-spacing: .5px }

/* ================= Toast ================= */
.toast-root {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
  width: calc(100% - 32px); max-width: 380px;
}
@media (min-width: 901px) { .toast-root { bottom: 24px } }
.toast {
  padding: 10px 16px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; max-width: 100%;
  background: rgba(10,20,38,.96); color: #DFF8FF; border: 1px solid rgba(34,231,255,.45);
  box-shadow: 0 0 26px rgba(34,231,255,.25); animation: tin .2s; letter-spacing: .4px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.toast.ok { border-color: rgba(184,255,66,.5); box-shadow: 0 0 26px rgba(184,255,66,.2) }
.toast.err { border-color: rgba(255,69,112,.55); box-shadow: 0 0 26px rgba(255,69,112,.25) }
.toast.warn { border-color: rgba(255,176,32,.5); box-shadow: 0 0 26px rgba(255,176,32,.2) }
@keyframes tin { from { transform: translateY(12px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ================= 文档库 ================= */
.docs-layout { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: start }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr } }
.doc-list { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 210px); overflow-y: auto }
.doc-item { padding: 8px 10px; cursor: pointer; border: 1px solid transparent; text-align: left; width: 100%; transition: .14s }
.doc-item:hover { background: rgba(34,231,255,.07) }
.doc-item.active { background: rgba(34,231,255,.12); border-color: rgba(34,231,255,.35) }
.doc-item b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #EAFDFF }
.doc-item small { font-size: 11px; color: var(--ink3); font-family: var(--mono) }
.md-in { min-height: 340px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; background: rgba(4,9,18,.8) }
.md-out {
  font-size: 14px; line-height: 1.8; min-height: 340px; padding: 12px 14px;
  border: 1px solid var(--line); background: rgba(6,12,24,.5); overflow-wrap: break-word;
}
.md-out h1, .md-out h2, .md-out h3 { margin: 14px 0 8px; line-height: 1.35; font-weight: 700; color: #EAFDFF; letter-spacing: .8px }
.md-out h1 { font-size: 19px; padding-bottom: 6px; border-bottom: 1px solid var(--line) }
.md-out h2 { font-size: 16px }
.md-out h3 { font-size: 14.5px }
.md-out p { margin: 8px 0 }
.md-out ul, .md-out ol { margin: 8px 0; padding-left: 22px }
.md-out li { margin: 3px 0 }
.md-out code { background: rgba(34,231,255,.1); padding: 1px 5px; border: 1px solid rgba(34,231,255,.18); font-size: 12.5px; font-family: var(--mono); color: var(--cyan) }
.md-out pre { background: rgba(3,7,15,.9); border: 1px solid var(--line); padding: 11px 13px; overflow-x: auto; margin: 10px 0 }
.md-out pre code { background: none; color: #B7E9F7; border: none; padding: 0 }
.md-out blockquote { border-left: 2px solid var(--magenta); background: rgba(255,46,139,.06); padding: 6px 12px; margin: 10px 0; color: var(--ink2) }
.md-out table { border-collapse: collapse; margin: 10px 0; font-size: 13px }
.md-out th, .md-out td { border: 1px solid var(--line); padding: 6px 9px }
.md-out th { background: rgba(34,231,255,.07) }
.md-out hr { border: none; border-top: 1px solid var(--line); margin: 14px 0 }
.md-out a { color: var(--cyan); text-decoration: underline }

/* ================= 看板 ================= */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px }
@media (max-width: 900px) { .kanban { grid-template-columns: repeat(5, minmax(160px, 1fr)) } }
.kb-col { background: rgba(6,12,24,.55); border: 1px solid var(--line); padding: 10px; min-height: 120px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) }
.kb-col h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--ink2); margin-bottom: 8px; display: flex; align-items: center; gap: 6px }
.kb-col h4 i { width: 7px; height: 7px; display: inline-block; background: var(--cyan); box-shadow: 0 0 8px var(--cyan) }
.kb-card { background: rgba(14,26,48,.8); border: 1px solid var(--line); padding: 9px 10px; margin-bottom: 8px; cursor: pointer; font-size: 13px; transition: .15s; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)) }
.kb-card:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(34,231,255,.18) }
.kb-card b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; color: #EAFDFF }
.kb-card small { color: var(--ink3); font-size: 11.5px; display: block }

/* ================= 杂项 ================= */
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(34,231,255,.12); font-size: 13.5px }
.kv-row:last-child { border-bottom: none }
.kv-row span { color: var(--ink2); flex: none }
.kv-row b { font-weight: 600; text-align: right; word-break: break-word; color: #EAFDFF }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px }
.stat { background: rgba(6,12,24,.6); border: 1px solid var(--line); padding: 10px 12px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)) }
.stat b { display: block; font-size: 19px; font-weight: 700; line-height: 1.25; font-family: var(--mono); color: var(--cyan) }
.stat span { font-size: 11px; color: var(--ink3); letter-spacing: .5px }
.divider { height: 1px; background: var(--line); margin: 14px 0 }
.muted { color: var(--ink3) }
.small { font-size: 12.5px }
.nowrap { white-space: nowrap }
.scroll-x { overflow-x: auto }
.chk-list { display: flex; flex-direction: column; gap: 8px }
.chk-item { display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--line); background: rgba(8,15,30,.6); cursor: pointer; font-size: 13.5px; transition: .15s }
.chk-item.on { background: rgba(184,255,66,.07); border-color: rgba(184,255,66,.3) }
.chk-item input { width: 18px; height: 18px; accent-color: #B8FF42; flex: none; margin-top: 1px }
.board-icon-sm { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: rgba(34,231,255,.1); border: 1px solid rgba(34,231,255,.25); color: var(--cyan); flex: none }
.board-icon-sm .ic { width: 15px; height: 15px }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center }

/* 悬浮快录按钮（移动端） */
.fab {
  position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 45;
  width: 54px; height: 54px; display: none; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(34,231,255,.9), rgba(155,107,255,.9)); color: #04121F;
  border: none; box-shadow: 0 0 24px rgba(34,231,255,.5);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.fab .ic { width: 24px; height: 24px; stroke-width: 2.4 }
.fab:active { transform: scale(.94) }
@media (max-width: 900px) { .fab { display: flex } }
@media (min-width: 901px) { .fab { display: none !important } }
