/* 任务打卡板 · 单文件样式（无外部依赖，CSP 兼容） */
:root {
  --paper: #f2efe6;
  --paper-deep: #e9e3d7;
  --surface: #fffdf8;
  --surface-soft: #f8f5ed;
  --surface-line: #ece6da;
  --ink: #15251e;
  --ink-soft: #435249;
  --muted: #78837b;
  --line: #e3ddcf;
  --line-strong: #cec6b6;
  --brand: #1f5b44;
  --brand-deep: #133e2e;
  --brand-mid: #2e7457;
  --brand-soft: #e4efe8;
  --accent: #cf8f33;
  --accent-soft: #f8ecd5;
  --success: #31775a;
  --success-soft: #e5f1e9;
  --danger: #ad493c;
  --danger-soft: #f8e7e3;
  --shadow-sm: 0 1px 2px rgba(29, 45, 35, .05), 0 8px 24px -18px rgba(29, 45, 35, .22);
  --shadow-md: 0 1px 2px rgba(29, 45, 35, .05), 0 22px 55px -36px rgba(29, 45, 35, .4);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Microsoft YaHei UI", monospace;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(1100px 560px at 8% -6%, rgba(255, 250, 235, .95), transparent 58%),
    radial-gradient(900px 460px at 102% 4%, rgba(224, 237, 228, .85), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(40, 63, 49, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 63, 49, .028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
::selection { background: #cfe4d7; color: var(--brand-deep); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.clipboard-helper {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 品牌与按钮 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: .01em;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--brand); }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #f9f2df;
  background: linear-gradient(145deg, var(--brand-mid), var(--brand-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.17), 0 6px 16px -10px rgba(16, 55, 39, .7);
  flex: 0 0 auto;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand--plain:hover { text-decoration: none; }
.brand-badge {
  margin-left: 2px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 248, .6);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
}
.brand--light, .brand--light:hover { color: #f9f3e3; }
.brand--light .brand-mark {
  color: var(--brand-deep);
  background: #f6ecd8;
  box-shadow: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fffdf7;
  background: linear-gradient(180deg, #2b6d51, var(--brand));
  box-shadow: 0 8px 20px -14px rgba(20, 62, 45, .8), inset 0 1px 0 rgba(255,255,255,.14);
  font-weight: 680;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, opacity .16s ease;
}
.button:hover { background: linear-gradient(180deg, #30785a, #1c543f); box-shadow: 0 12px 24px -15px rgba(20, 62, 45, .9); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible, .icon-button:focus-visible, .segmented button:focus-visible, .copy-button:focus-visible {
  outline: 3px solid rgba(207, 143, 51, .45);
  outline-offset: 2px;
}
.button:disabled { opacity: .5; transform: none; box-shadow: none; }
.button--soft {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: #cfdfd4;
  box-shadow: none;
}
.button--soft:hover { background: #d9eadf; box-shadow: none; }
.button--ghost {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}
.button--ghost:hover { background: var(--surface-soft); box-shadow: none; color: var(--ink); }
.button--sm { min-height: 34px; padding: 8px 12px; border-radius: 9px; font-size: 12.5px; }
.button .icon { width: 17px; height: 17px; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.icon-button {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, .7);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.icon-button:hover { color: var(--brand); background: #fff; transform: translateY(-1px); }
.icon-button.is-spinning .icon { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(210, 202, 186, .66);
  background: rgba(247, 244, 236, .82);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
.topbar-inner {
  width: min(100%, 1344px);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-meta { display: flex; align-items: center; gap: 14px; min-width: 0; }
.live-status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-soft); font-size: 12.5px; font-weight: 620;
  white-space: nowrap;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(49, 119, 90, .12);
}
.live-dot.is-offline { background: var(--danger); box-shadow: 0 0 0 4px rgba(173, 73, 60, .12); }
.net-chip {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 290px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, .64);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.net-chip .icon { width: 14px; height: 14px; color: var(--brand-mid); }
.net-chip.is-warning { color: #8a5b16; border-color: #ecd7b4; background: var(--accent-soft); }

/* ---------- 管理台 ---------- */
.admin-shell {
  position: relative;
  width: min(100%, 1344px);
  margin: 0 auto;
  padding: 24px 32px 64px;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 0 25px;
}
.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 780;
  line-height: 1.14;
  letter-spacing: -.025em;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-copy {
  max-width: 620px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}
.hero-aside {
  flex: 0 0 auto;
  padding-bottom: 5px;
  text-align: right;
}
.today-date { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.today-note { margin-top: 4px; color: var(--muted); font-size: 12px; }
.hero-rule { width: 54px; height: 3px; margin: 16px 0 0 auto; border-radius: 99px; background: var(--accent); opacity: .8; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  position: relative;
  min-height: 112px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, .82);
  box-shadow: var(--shadow-sm);
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -24px; bottom: -36px;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: rgba(31, 91, 68, .05);
}
.stat-card:nth-child(2)::after { background: rgba(207, 143, 51, .08); }
.stat-card:nth-child(3)::after { background: rgba(49, 119, 90, .08); }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.stat-value-row { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.stat-value {
  color: var(--ink);
  font-size: 37px;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat-unit { color: var(--muted); font-size: 12px; }
.stat-card--done .stat-value { color: var(--brand); }
.stat-card--pending .stat-value { color: var(--accent); }
.stat-spark {
  position: absolute; right: 18px; top: 18px;
  width: 27px; height: 27px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
}
.stat-spark .icon { width: 15px; height: 15px; }
.stat-card--done .stat-spark { color: var(--brand); background: var(--brand-soft); }
.stat-card--pending .stat-spark { color: var(--accent); background: var(--accent-soft); }

.action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: stretch;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, .9);
  box-shadow: var(--shadow-md);
}
.card-pad { padding: 22px 24px; }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card-head h2 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.card-head p { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.card-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 5px;
}
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.task-card-head { align-items: center; }
.soft-divider { height: 1px; background: var(--line); margin: 16px 0; }

.stack-form { display: flex; flex-direction: column; gap: 13px; }
.field-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span, .field-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .02em;
}
.field-note { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fffefa;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field select { padding-right: 34px; }
.field textarea { min-height: 78px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a6ada6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9b09f; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(46, 116, 87, .14);
  background: #fff;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
}
.form-hint { color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.form-hint.is-warning { color: #9a6017; }
.form-error {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 11px; padding: 9px 11px;
  border-radius: 9px;
  background: var(--danger-soft);
  color: #89362c;
  font-size: 12.5px;
}
.form-error::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; background: #e6b7ae; font-size: 10px; font-weight: 800; }
.form-success {
  margin-top: 11px; padding: 9px 11px;
  border-radius: 9px;
  background: var(--success-soft);
  color: #236045;
  font-size: 12.5px;
}

/* ---------- 任务看板 ---------- */
.task-card { overflow: hidden; }
.task-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 15px;
  flex-wrap: wrap;
}
.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.segmented button {
  min-height: 29px;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] {
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 1px 4px rgba(28, 44, 34, .1);
}
.search-box {
  position: relative;
  flex: 1 1 180px;
  max-width: 250px;
  min-width: 150px;
}
.search-box .icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--muted); pointer-events: none;
}
.search-box input {
  width: 100%;
  height: 36px;
  padding: 6px 11px 6px 33px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefa;
  color: var(--ink);
  font-size: 12.5px;
}
.search-box input:focus { outline: none; border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(46, 116, 87, .12); }
.task-table-head {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(120px, .75fr) minmax(155px, .85fr);
  gap: 18px;
  padding: 10px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 237, .72);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .11em;
}
.task-list { min-height: 66px; }
.task-row {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(120px, .75fr) minmax(155px, .85fr);
  gap: 18px;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid var(--surface-line);
  background: transparent;
  transition: background .16s ease;
}
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: rgba(246, 242, 232, .55); }
.task-info { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.task-dot {
  position: relative;
  flex: 0 0 auto;
  width: 9px; height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(207, 143, 51, .1);
}
.task-row.is-completed .task-dot { background: var(--success); box-shadow: 0 0 0 4px rgba(49, 119, 90, .1); }
.task-copy { min-width: 0; }
.task-title {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 690;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.task-notes {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.2px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.task-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.task-status--pending { color: #91601d; background: var(--accent-soft); }
.task-status--done { color: var(--brand); background: var(--brand-soft); }
.task-status .mini-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.task-owner { display: flex; align-items: center; gap: 8px; min-width: 0; }
.owner-name { color: var(--ink-soft); font-size: 12.8px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  user-select: none;
}
.avatar--2 { color: #7b5618; background: var(--accent-soft); }
.avatar--3 { color: #345b6d; background: #e4eef1; }
.avatar--4 { color: #7b3f44; background: #f3e5e4; }
.avatar--5 { color: #4c4e6d; background: #e9e8f3; }
.time-stack { min-width: 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.time-stack strong { display: block; color: var(--ink-soft); font-size: 12.2px; font-weight: 650; }
.time-stack .done-time { color: var(--brand); }
.time-stack .pending-time { color: var(--accent); }
.task-row.is-completed .task-title { color: #3b5849; }

/* ---------- 多责任人选择 ---------- */
.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.selected-count { color: var(--brand); font-size: 11.5px; font-weight: 720; white-space: nowrap; }
.assignee-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fffefa;
}
.assignee-empty { padding: 4px 3px; color: var(--muted); font-size: 12px; }
.assignee-option { position: relative; display: inline-flex; }
.assignee-option input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.assignee-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 620;
  cursor: pointer;
  user-select: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.assignee-pill:hover { border-color: #bfd2c5; transform: translateY(-1px); }
.assignee-pill .avatar { width: 24px; height: 24px; border-radius: 7px; font-size: 10.5px; }
.assignee-check {
  width: 14px; height: 14px;
  opacity: 0;
  color: #fffdf7;
  transition: opacity .16s ease;
}
.assignee-option input:checked + .assignee-pill {
  color: #fffdf7;
  background: linear-gradient(180deg, #2b6d51, var(--brand));
  border-color: var(--brand);
  box-shadow: 0 5px 14px -10px rgba(20, 62, 45, .7);
}
.assignee-option input:checked + .assignee-pill .avatar {
  color: #fffdf7;
  background: rgba(255, 255, 255, .16);
}
.assignee-option input:checked + .assignee-pill .assignee-check { opacity: 1; }
.assignee-option input:focus-visible + .assignee-pill { outline: 3px solid rgba(207, 143, 51, .45); outline-offset: 2px; }

/* ---------- 多责任人任务卡 ---------- */
.task-group {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  gap: 22px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--surface-line);
  transition: background .16s ease;
}
.task-group:last-child { border-bottom: 0; }
.task-group:hover { background: rgba(246, 242, 232, .55); }
.task-group.is-completed .task-dot { background: var(--success); box-shadow: 0 0 0 4px rgba(49, 119, 90, .1); }
.task-group-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.task-group-copy { min-width: 0; }
.task-group-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-group-title {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.task-group-notes {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.2px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.task-group-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 7px; color: #929b94; font-size: 10.8px; }
.assignment-stack { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.assignment-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  background: rgba(248, 245, 237, .68);
}
.assignment-person { display: flex; align-items: center; gap: 7px; min-width: 0; }
.assignment-person .avatar { width: 25px; height: 25px; border-radius: 7px; font-size: 10.5px; }
.assignment-name { color: var(--ink-soft); font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assignment-result {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: end;
  gap: 2px 6px;
  min-width: 0;
  text-align: right;
}
.assignment-time { grid-column: 1; grid-row: 1; color: var(--muted); font-size: 11px; white-space: nowrap; }
.assignment-time.is-done { color: var(--brand); font-weight: 680; }
.assignment-time.is-pending { color: var(--accent); font-weight: 650; }
.download-btn { grid-column: 2; grid-row: 1; }
.assignment-file {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  max-width: 190px;
  color: #98a099;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  justify-self: end;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #cbded2;
  border-radius: 7px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 10.5px;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}
.download-btn:hover { color: var(--brand-deep); background: #d9eadf; text-decoration: none; }
.download-btn .icon { width: 11px; height: 11px; }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 26px;
  text-align: center;
}
.empty-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--brand-mid);
  border: 1px solid var(--line);
}
.empty-icon .icon { width: 24px; height: 24px; }
.empty-state h3 { margin-top: 13px; font-size: 15px; font-weight: 700; }
.empty-state p { max-width: 300px; margin-top: 5px; color: var(--muted); font-size: 12.5px; }

/* ---------- 员工链接 ---------- */
.employee-list { display: flex; flex-direction: column; }
.employee-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--surface-line);
}
.employee-row:first-child { padding-top: 2px; }
.employee-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.employee-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.employee-id { min-width: 0; flex: 1; }
.employee-name { color: var(--ink); font-size: 13.5px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-count { margin-top: 1px; color: var(--muted); font-size: 11px; }
.copy-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  background: #fffefa;
  font-size: 11.5px;
  font-weight: 650;
  transition: background .16s ease, border-color .16s ease;
}
.copy-button:hover { background: var(--brand-soft); border-color: #cbded2; }
.copy-button .icon { width: 13px; height: 13px; }
.employee-link {
  margin: 7px 0 0 40px;
  color: #8b948d;
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.employee-empty { padding: 15px 0 7px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.side-note {
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px solid #ead8b8;
  border-radius: 12px;
  background: #fbf3e3;
  color: #7c5b25;
  font-size: 11.5px;
  line-height: 1.6;
}
.side-note strong { color: #664716; }
.quick-guide { display: flex; flex-direction: column; gap: 12px; }
.guide-step { display: flex; gap: 10px; align-items: flex-start; }
.guide-num {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 800;
}
.guide-text { color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.guide-text strong { color: var(--ink); }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--muted);
  font-size: 11.5px;
}
.footer .dot-sep { margin: 0 7px; color: var(--line-strong); }

/* ---------- 加载、提示、错误 ---------- */
.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  color: var(--muted);
  gap: 12px;
}
.loader-mark {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  color: #f9f2df;
  background: var(--brand);
  animation: breathe 1.7s ease-in-out infinite;
}
.loader-mark svg { width: 23px; height: 23px; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(.93); opacity: .72; } }
.app-loading p { font-size: 12.5px; }
.error-banner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 15px;
  margin-bottom: 18px; padding: 13px 15px;
  border: 1px solid #e9cbc4;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: #81362c;
  font-size: 13px;
  line-height: 1.55;
}
.error-banner strong { display: block; margin-bottom: 1px; font-size: 12.5px; }
.error-banner .button { flex: 0 0 auto; color: #81362c; border-color: #dfb9b0; background: rgba(255,255,255,.45); }
.toast-stack {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefa;
  color: var(--ink);
  box-shadow: 0 18px 50px -24px rgba(20, 39, 28, .55);
  font-size: 12.5px;
  line-height: 1.5;
  animation: toast-in .22s ease both;
}
.toast .toast-icon {
  display: grid; place-items: center;
  width: 21px; height: 21px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.toast .toast-icon .icon { width: 13px; height: 13px; }
.toast--error { border-color: #e9cbc4; }
.toast--error .toast-icon { color: var(--danger); background: var(--danger-soft); }
.toast.is-leaving { animation: toast-out .2s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ---------- 员工端 ---------- */
.employee-page { min-height: 100vh; }
.employee-topbar {
  position: relative;
  z-index: 20;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 22px 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.employee-topbar .meta { color: var(--muted); font-size: 11.5px; letter-spacing: .08em; }
.employee-shell {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px 30px 60px;
}
.employee-hero {
  position: relative;
  overflow: hidden;
  padding: 29px 31px 26px;
  border-radius: 28px;
  color: #f8f2e4;
  background:
    radial-gradient(480px 260px at 100% 0%, rgba(222, 179, 100, .24), transparent 68%),
    linear-gradient(135deg, #205d45 0%, #184a37 58%, #153f2f 100%);
  box-shadow: 0 30px 60px -38px rgba(18, 58, 42, .75);
}
.employee-hero::before, .employee-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 235, .12);
  pointer-events: none;
}
.employee-hero::before { width: 260px; height: 260px; right: -80px; top: -140px; }
.employee-hero::after { width: 380px; height: 380px; right: -155px; bottom: -260px; }
.employee-hero-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.employee-date { color: rgba(250, 245, 231, .66); font-size: 11.5px; letter-spacing: .06em; }
.employee-greeting {
  margin-top: 12px;
  color: #fffaf0;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 760;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.employee-greeting span { color: #f1cf92; }
.employee-sub { margin-top: 7px; color: rgba(248, 243, 230, .68); font-size: 12.5px; }
.employee-avatar {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 250, 235, .26);
  border-radius: 19px;
  color: #fff8e8;
  background: rgba(255, 250, 235, .1);
  font-size: 23px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
}
.employee-progress { position: relative; margin-top: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.progress-copy { min-width: 0; flex: 1; }
.progress-labels { display: flex; align-items: baseline; gap: 7px; margin-bottom: 9px; color: rgba(250, 245, 231, .65); font-size: 11.5px; }
.progress-labels strong { color: #fff8e8; font-size: 18px; font-weight: 760; font-variant-numeric: tabular-nums; }
.progress-copy progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 250, 235, .15);
}
.progress-copy progress::-webkit-progress-bar { background: rgba(255, 250, 235, .15); border-radius: 99px; }
.progress-copy progress::-webkit-progress-value { background: linear-gradient(90deg, #e7c17a, #f4dca9); border-radius: 99px; transition: width .3s ease; }
.progress-copy progress::-moz-progress-bar { background: #efd49b; border-radius: 99px; }
.progress-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 250, 235, .16);
  border-radius: 11px;
  color: #f4dcaa;
  background: rgba(255, 250, 235, .07);
  font-size: 11.5px;
  font-weight: 650;
}
.employee-main { margin-top: 25px; }
.employee-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 2px 13px; }
.employee-section-head h2 { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.employee-section-head p { margin-top: 2px; color: var(--muted); font-size: 12px; }
.sync-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.sync-note .live-dot { width: 6px; height: 6px; box-shadow: none; }
.employee-task-list { display: flex; flex-direction: column; gap: 10px; }
.employee-task {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.employee-task:hover { border-color: #d2c8b5; transform: translateY(-1px); }
.employee-task.is-complete {
  border-color: #d4e3d8;
  background: rgba(246, 251, 246, .82);
  box-shadow: none;
}
.employee-task.is-complete:hover { transform: none; }
.task-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: 0 0 auto;
  margin-top: 1px;
  cursor: pointer;
}
.task-check input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.check-box {
  display: grid;
  place-items: center;
  width: 31px; height: 31px;
  border: 1.5px solid #c9c1b1;
  border-radius: 9px;
  color: #fffdf7;
  background: #fffefa;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.check-box svg { width: 17px; height: 17px; opacity: 0; transform: scale(.75); transition: opacity .16s ease, transform .16s ease; }
.task-check:hover .check-box { border-color: var(--brand-mid); transform: scale(1.04); }
.task-check input:focus-visible + .check-box { outline: 3px solid rgba(207, 143, 51, .45); outline-offset: 2px; }
.task-check input:checked + .check-box { border-color: var(--brand); background: var(--brand); }
.task-check input:checked + .check-box svg { opacity: 1; transform: scale(1); }
.task-check input:disabled + .check-box { cursor: default; }
.task-check input:disabled + .check-box:hover { transform: none; }
.employee-task.is-complete .check-box { border-color: var(--brand); background: var(--brand); }
.employee-task-body { flex: 1; min-width: 0; }
.employee-task-title { color: var(--ink); font-size: 15.5px; font-weight: 720; line-height: 1.45; overflow-wrap: anywhere; }
.employee-task.is-complete .employee-task-title { color: #365a47; }
.employee-task-notes {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12.8px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.employee-task.is-complete .employee-task-notes { color: #738277; }
.employee-task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-top: 9px; color: #939c95; font-size: 10.8px; }
.done-stamp {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--brand); font-weight: 680;
}
.done-stamp .icon { width: 12px; height: 12px; }
.task-actions { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 1px; }
.complete-label {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #cfe3d5;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.complete-label .icon { width: 11px; height: 11px; }
.pending-label {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}
.employee-task.is-saving { opacity: .72; }
.employee-task.is-saving .check-box { border-color: var(--brand-mid); animation: check-pulse 1s ease-in-out infinite; }
@keyframes check-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(46, 116, 87, .16); } 50% { box-shadow: 0 0 0 5px rgba(46, 116, 87, .1); } }

/* ---------- 员工上传附件 ---------- */
.task-check-indicator {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  color: transparent;
  background: #fffefa;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.task-check-indicator .icon { width: 18px; height: 18px; }
.employee-task.is-complete .task-check-indicator {
  color: #fffdf7;
  border-color: var(--brand);
  background: var(--brand);
}
.upload-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.upload-current {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 9px;
  padding: 9px 10px;
  border: 1px solid #d1e1d6;
  border-radius: 9px;
  background: rgba(229, 241, 233, .58);
}
.upload-current-icon {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--brand);
  background: #fffefa;
  border: 1px solid #d6e4da;
}
.upload-current-icon .icon { width: 14px; height: 14px; }
.upload-current-copy { min-width: 0; flex: 1; }
.upload-current-name {
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 680;
  overflow-wrap: anywhere;
}
.upload-current-meta { margin-top: 1px; color: #718276; font-size: 10.5px; }
.upload-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.file-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.file-pick:hover { color: var(--brand); border-color: var(--brand-mid); background: var(--brand-soft); }
.file-pick:focus-within { outline: 3px solid rgba(207, 143, 51, .4); outline-offset: 2px; }
.file-pick input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-pick .icon { width: 14px; height: 14px; }
.selected-file {
  min-width: 0;
  max-width: 250px;
  color: var(--muted);
  font-size: 10.8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-note { margin-top: 7px; color: #929b94; font-size: 10.5px; line-height: 1.5; }
.upload-error {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--danger-soft);
  color: #89362c;
  font-size: 11.5px;
  line-height: 1.5;
}
.submit-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.employee-task .button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 12px;
}
.employee-task .button .icon { width: 14px; height: 14px; }
.task-file-info {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid #d3e3d8;
  border-radius: 8px;
  background: rgba(229, 241, 233, .58);
  color: #506b5b;
  font-size: 11.5px;
}
.task-file-info .icon { width: 13px; height: 13px; flex: 0 0 auto; color: var(--brand); }
.task-file-info span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-file-info small { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.empty-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 50px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, .55);
  text-align: center;
}
.empty-card .empty-icon { width: 62px; height: 62px; border-radius: 19px; background: var(--brand-soft); }
.empty-card h3 { margin-top: 15px; font-size: 17px; }
.empty-card p { max-width: 330px; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.employee-footer { margin-top: 28px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.7; }
.employee-loading { min-height: 50vh; }
.employee-error-wrap { padding-top: 9vh; }
.employee-error-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.employee-error-card .empty-icon { margin: 0 auto; background: var(--danger-soft); color: var(--danger); border-color: #eed4ce; }
.employee-error-card h1 { margin-top: 16px; font-size: 21px; }
.employee-error-card p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* ---------- 首页 ---------- */
.landing-body { display: grid; place-items: center; padding: 34px 24px; }
.landing-shell { position: relative; width: min(100%, 1040px); }
.landing-card {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 36px 80px -50px rgba(29, 46, 35, .5);
}
.landing-main { padding: 46px 46px 42px; }
.landing-kicker { margin-top: 48px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.landing-title {
  margin-top: 11px;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 790;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.landing-title em { font-style: normal; color: var(--brand); }
.landing-desc { max-width: 470px; margin-top: 15px; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.landing-divider { width: 100%; height: 1px; margin: 28px 0 22px; background: var(--line); }
.landing-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.landing-info {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.landing-info .info-icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
}
.landing-info .info-icon .icon { width: 15px; height: 15px; }
.landing-info h2 { margin-top: 10px; font-size: 13px; font-weight: 720; }
.landing-info p { margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.landing-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  color: #fbf5e6;
  background:
    radial-gradient(380px 300px at 110% 0%, rgba(230, 184, 99, .25), transparent 65%),
    linear-gradient(155deg, #235f47, #143f2f 75%);
}
.landing-visual::after {
  content: "";
  position: absolute;
  width: 440px; height: 440px;
  border: 1px solid rgba(255, 249, 233, .12);
  border-radius: 50%;
  right: -240px; bottom: -260px;
}
.mock-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 249, 233, .18);
  border-radius: 18px;
  background: rgba(255, 250, 238, .075);
  backdrop-filter: blur(5px);
  box-shadow: 0 25px 55px -35px rgba(0, 0, 0, .55);
}
.mock-card + .mock-card { margin-top: 12px; transform: translateX(17px); opacity: .7; }
.mock-head { display: flex; align-items: center; gap: 8px; color: rgba(255, 249, 235, .58); font-size: 10.5px; letter-spacing: .05em; }
.mock-head .live-dot { background: #e6c27d; box-shadow: none; width: 6px; height: 6px; }
.mock-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; }
.mock-check {
  display: grid; place-items: center;
  width: 22px; height: 22px; flex: 0 0 auto;
  border: 1px solid rgba(255, 249, 235, .35);
  border-radius: 6px;
  color: #f9f2df;
}
.mock-check.done { background: #e4bd77; border-color: #e4bd77; color: #183e2e; }
.mock-check .icon { width: 12px; height: 12px; }
.mock-lines { flex: 1; }
.mock-line { display: block; height: 7px; border-radius: 99px; background: rgba(255, 249, 235, .38); }
.mock-line.short { width: 56%; margin-top: 6px; background: rgba(255, 249, 235, .17); }
.mock-card + .mock-card .mock-line { background: rgba(255, 249, 235, .26); }
.mock-card + .mock-card .mock-line.short { background: rgba(255, 249, 235, .12); }
.visual-caption { position: relative; z-index: 1; margin-top: 24px; color: rgba(255, 249, 235, .6); font-size: 11px; line-height: 1.6; }
.landing-foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: 11px; }

/* ---------- 错误页 ---------- */
.error-body { display: grid; place-items: center; padding: 30px 22px; }
.error-panel {
  width: min(100%, 510px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.error-code { margin-top: 34px; color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.error-panel h1 { margin-top: 8px; font-size: 25px; font-weight: 770; letter-spacing: -.02em; }
.error-message { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.error-hint { margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: var(--accent-soft); color: #79551f; font-size: 12px; line-height: 1.6; }
.error-panel .button { margin-top: 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .action-grid, .content-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { align-items: flex-start; }
  .hero-aside { padding-top: 8px; }
  .employee-hero { padding: 27px; }
  .task-group { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 820px) {
  .topbar-inner { padding: 12px 20px; }
  .admin-shell { padding: 18px 20px 48px; }
  .topbar-meta .net-chip { display: none; }
  .hero { flex-direction: column; gap: 12px; padding-top: 8px; }
  .hero-aside { text-align: left; padding: 0; }
  .hero-rule { display: none; }
  .hero h1 { font-size: 33px; }
  .action-grid, .content-grid { gap: 14px; }
  .card-pad { padding: 19px; }
  .task-toolbar { padding: 0 19px 13px; }
  .task-table-head { display: none; }
  .task-row {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 15px 19px;
  }
  .task-info { grid-column: 1 / -1; }
  .task-owner { grid-column: 1; }
  .time-stack { grid-column: 2; text-align: right; }
  .task-group { padding: 15px 19px; }
  .search-box { max-width: none; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .landing-card { grid-template-columns: 1fr; }
  .landing-visual { min-height: 310px; padding: 30px; order: 2; }
  .landing-main { padding: 32px 28px 30px; }
  .landing-kicker { margin-top: 30px; }
}
@media (max-width: 620px) {
  .topbar-inner { gap: 8px; }
  .brand { font-size: 15.5px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-badge { display: none; }
  .topbar-meta { gap: 8px; }
  .live-status { font-size: 11.5px; }
  .topbar-meta .icon-button { width: 36px; height: 36px; }
  .admin-shell { padding: 16px 14px 42px; }
  .employee-topbar, .employee-shell { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 29px; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 99px; padding: 15px; border-radius: 16px; }
  .stat-value { font-size: 31px; }
  .field-row { grid-template-columns: 1fr; }
  .card { border-radius: 20px; }
  .task-toolbar { align-items: stretch; gap: 9px; }
  .segmented { align-self: flex-start; }
  .form-footer .button { width: 100%; }
  .employee-hero { padding: 23px 20px 21px; border-radius: 22px; }
  .employee-hero-top { align-items: flex-start; }
  .employee-avatar { width: 50px; height: 50px; border-radius: 15px; font-size: 19px; }
  .employee-progress { margin-top: 22px; gap: 12px; }
  .progress-badge { display: none; }
  .employee-task { padding: 15px; gap: 11px; }
  .task-actions { display: none; }
  .assignment-row { grid-template-columns: 1fr; gap: 5px; align-items: start; }
  .assignment-result { width: 100%; justify-items: start; text-align: left; }
  .assignment-file { max-width: 100%; justify-self: start; }
  .upload-controls { align-items: stretch; flex-direction: column; }
  .file-pick { justify-content: center; }
  .selected-file { max-width: 100%; }
  .submit-actions .button { flex: 1; }
  .employee-section-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .landing-body { padding: 16px 12px; }
  .landing-main { padding: 27px 21px 25px; }
  .landing-title { font-size: 37px; }
  .landing-info-grid { grid-template-columns: 1fr; }
  .landing-visual { padding: 24px 21px; min-height: 280px; }
  .mock-card + .mock-card { transform: none; }
  .error-panel { padding: 26px 21px; }
  .toast-stack { right: 14px; bottom: 14px; left: 14px; align-items: stretch; }
  .toast { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- v1.4 周期任务、日期与历史保留 ---------- */
.task-kind {
  display: inline-flex;
  align-self: flex-start;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.task-kind-btn {
  min-height: 30px;
  padding: 5px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.task-kind-btn:hover { color: var(--ink); }
.task-kind-btn.is-active {
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 1px 4px rgba(28, 44, 34, .1);
}
.weekday-field { display: flex; flex-direction: column; gap: 7px; }
.weekday-field[hidden] { display: none; }
.weekday-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.weekday-picker label { position: relative; cursor: pointer; }
.weekday-picker input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.weekday-picker span {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.weekday-picker input:checked + span {
  border-color: var(--brand-mid);
  background: var(--brand-soft);
  color: var(--brand);
}
.weekday-picker input:focus-visible + span { outline: 3px solid rgba(46, 116, 87, .22); outline-offset: 2px; }
.date-filter {
  height: 36px;
  max-width: 178px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefa;
  color: var(--ink-soft);
  font-size: 12px;
}
.task-date-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}
.task-delete {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #a7654d;
  font-size: 11px;
  font-weight: 650;
  opacity: .6;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.task-group:hover .task-delete, .task-delete:focus-visible { opacity: 1; }
.task-delete:hover { border-color: rgba(167, 101, 77, .25); background: rgba(167, 101, 77, .08); }
.recurring-list { display: flex; flex-direction: column; }
.recurring-row {
  padding: 11px 0;
  border-top: 1px solid var(--surface-line);
}
.recurring-row:first-child { border-top: 0; padding-top: 2px; }
.recurring-row-head { display: flex; align-items: center; gap: 8px; }
.recurring-title { min-width: 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.recurring-delete {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #a7654d;
  font-size: 11px;
  font-weight: 650;
}
.recurring-delete:hover { border-color: rgba(167, 101, 77, .25); background: rgba(167, 101, 77, .08); }
.recurring-meta { margin-top: 3px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.5; }
.recurring-notes { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.recurring-next { margin-top: 3px; color: #929b94; font-size: 10.8px; }
@media (max-width: 720px) {
  .date-filter { flex: 1 1 100%; max-width: none; }
  .task-delete { opacity: 1; }
}

/* ---------- 完成说明 ---------- */
.completion-note-field { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.completion-note-field > span { color: var(--muted); font-size: 11px; font-weight: 650; }
.completion-note-field textarea {
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
}
.completion-note-field textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(46, 116, 87, .12);
}
.completion-note-display {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--brand-mid);
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.completion-note-display strong {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}
.completion-note-display p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assignment-note {
  grid-column: 1 / -1;
  justify-self: stretch;
  max-width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border-left: 3px solid var(--brand-mid);
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.employee-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.employee-delete {
  min-height: 31px;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #a7654d;
  font-size: 11px;
  font-weight: 650;
  opacity: .65;
}
.employee-delete:hover { opacity: 1; border-color: rgba(167, 101, 77, .23); background: rgba(167, 101, 77, .07); }
.employee-delete:focus-visible { outline: 3px solid rgba(207, 143, 51, .45); outline-offset: 2px; }

/* ---------- 日期日历选择器 ---------- */
.task-card { overflow: visible; }
.date-picker { position: relative; flex: 0 0 auto; }
.date-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefa;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 650;
}
.date-trigger:hover { border-color: #cbded2; background: var(--brand-soft); }
.date-trigger:focus-visible { outline: 3px solid rgba(46, 116, 87, .22); outline-offset: 2px; }
.date-trigger .icon { width: 15px; height: 15px; color: var(--muted); }
.date-trigger .date-chevron { width: 13px; height: 13px; margin-left: 1px; }
.date-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  width: min(620px, calc(100vw - 70px));
  padding: 13px 14px 12px;
  border: 1px solid #d9d5c8;
  border-radius: 13px;
  background: #fffdf8;
  box-shadow: 0 16px 38px rgba(43, 57, 46, .18);
}
.date-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}
.date-nav {
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
}
.date-nav:hover { background: var(--brand-soft); color: var(--brand); }
.date-months { display: flex; gap: 22px; }
.date-month { flex: 1; min-width: 0; }
.date-month-title { margin-bottom: 7px; color: var(--ink); font-size: 12.5px; font-weight: 700; text-align: center; }
.date-weekdays, .date-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.date-weekdays span { padding: 2px 0 5px; color: var(--muted); font-size: 10.5px; text-align: center; }
.date-day {
  display: grid;
  place-items: center;
  min-height: 27px;
  margin: 1px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
}
.date-day:hover { background: var(--brand-soft); color: var(--brand); }
.date-day.is-outside { color: #c5c8c1; }
.date-day.is-today { border-color: var(--brand-mid); color: var(--brand); font-weight: 750; }
.date-day.is-selected { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; }
.date-presets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--surface-line); }
.date-presets button {
  padding: 4px 8px;
  border: 1px solid #d4e4db;
  border-radius: 6px;
  background: #f8fcfa;
  color: var(--brand);
  font-size: 11px;
  font-weight: 650;
}
.date-presets button:hover, .date-presets button.is-active { background: var(--brand-soft); border-color: var(--brand-mid); }
@media (max-width: 720px) {
  .date-popover { left: auto; right: 0; width: min(94vw, 560px); }
  .date-months { gap: 10px; }
  .date-day { min-height: 25px; }
}

/* ---------- 附件下载面板 ---------- */
.attachment-list { display: flex; flex-direction: column; }
.attachment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--surface-line);
}
.attachment-row:first-child { border-top: 0; padding-top: 2px; }
.attachment-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.attachment-row-main strong { color: var(--ink); font-size: 12.5px; }
.attachment-task { color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-file-name { color: var(--ink-soft); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 已完成任务替换附件 ---------- */
.replace-panel { margin-top: 8px; padding-top: 8px; }
.replace-panel .upload-controls { margin-top: 2px; }
.replace-panel .upload-note { color: #7f8a81; }

/* 主管工作区、进度表与员工交付 */
:root {
  --paper:#e8ebea; --paper-deep:#dce1df; --surface:#fff; --surface-soft:#f2f4f2;
  --surface-line:#dbdfdd; --ink:#161d1c; --ink-soft:#36423f; --muted:#56615f;
  --line:#c6cecb; --line-strong:#9daa9f; --brand:#ffc735; --brand-mid:#eab323;
  --brand-deep:#39443d; --brand-soft:#f3efd9; --accent:#967020; --accent-soft:#fff5dc;
  --success:#187664; --success-soft:#e7f6ef; --danger:#aa4354; --danger-soft:#fff0f1;
  --shadow-sm:0 2px 5px rgba(24,34,65,.035); --shadow-md:0 10px 30px rgba(31,39,69,.08);
  --radius-xl:18px; --radius-lg:15px; --radius-md:10px; --rail:204px;
  --font:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei","PingFang SC",system-ui,sans-serif;
}
body {background:var(--paper)}
body::before {display:none}
::selection {background:#ddd7ff;color:#272044}
:focus-visible {outline:3px solid #427d94;outline-offset:3px}
[hidden] {display:none!important}
.brand-mark {width:35px;height:35px;background:#6957e8;color:white;border-radius:10px;box-shadow:none}
.brand-mark svg {width:25px;height:25px}
.brand-badge {background:#fff;border-color:var(--line);color:var(--muted)}
.workspace-rail {position:fixed;inset:0 auto 0 0;z-index:25;width:var(--rail);padding:28px 15px 20px;display:flex;flex-direction:column;background:#191e30;color:#eaecfa}
.workspace-rail .brand {color:white;padding:0 8px;font-size:18px;letter-spacing:.015em}
.workspace-rail nav {display:grid;gap:7px;margin-top:54px}
.workspace-rail nav a {display:flex;align-items:center;gap:13px;min-height:45px;padding:10px 15px;text-decoration:none;color:#b9bfd0;font-size:14px;font-weight:550;border-radius:8px}
.workspace-rail nav a:hover {color:white;background:#272e45}
.workspace-rail nav a[aria-current] {color:white;background:#393650;box-shadow:inset 3px 0 #aa99ff}
.workspace-rail nav a[aria-current] svg {color:#c9bfff}
.rail-id {border-top:1px solid #343a4c;margin-top:auto;padding:22px 6px 0;display:flex;align-items:center;gap:11px}
.rail-avatar {width:34px;height:34px;border:1px solid #4c536a;display:grid;place-items:center;border-radius:50%;color:#d7d9ec}
.rail-id strong,.rail-id small {display:block;line-height:1.6}
.rail-id strong {font-size:13px}.rail-id small {font-size:11px;color:#a1a8bb}
.workspace-page {margin-left:var(--rail)}
.workspace-bar {height:64px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,2.8vw,48px);gap:12px}
.crumb {display:flex;gap:13px;align-items:center;font-size:13px;color:var(--muted)}
.crumb span {color:#a4abba}.crumb b {color:var(--ink);font-weight:600}
.workspace-bar .net-chip {background:none;border:0;color:var(--muted)}
.topbar-meta .icon-button {width:34px;height:34px}
.admin-shell {max-width:1600px;width:100%;margin:auto;padding:32px clamp(18px,2.8vw,48px) 26px}
.workspace-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 25px}
.workspace-heading h1 {font-size:clamp(29px,2.5vw,41px);line-height:1.2;letter-spacing:-.055em;font-weight:720}
.desk-date,.heading-actions {display:flex;align-items:center;gap:9px}
.desk-date {color:var(--muted);font-size:13px;margin-top:10px}.desk-date svg {width:15px;height:15px}
.heading-actions {gap:10px}
.button,.button:hover {background:var(--brand);color:white;box-shadow:none;border-radius:8px;font-weight:630}
.button:hover {background:#edb218}
.button--soft,.button--soft:hover {color:var(--brand-deep);background:var(--brand-soft);border-color:#ced4cd}
.button--ghost,.button--ghost:hover,.icon-button {color:var(--ink-soft);background:white;border-color:var(--line)}
.button--ghost:hover,.icon-button:hover {background:var(--surface-soft)}
.stats-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
.stat-card,.card,.employee-task {background:white;border-color:var(--line);box-shadow:var(--shadow-sm);border-radius:var(--radius-lg)}
.stat-card {min-height:105px;padding:18px 21px}.stat-card::after {display:none}
.stat-label {color:var(--muted);font-size:12.5px;letter-spacing:.02em}
.stat-value {color:var(--ink)!important;font-size:34px;font-weight:600;letter-spacing:-.045em;line-height:1.02;font-variant-numeric:tabular-nums}
.stat-value-row {margin-top:11px}.stat-unit {color:var(--muted);font-size:12px}
.stat-spark {position:absolute;right:18px;top:18px;width:31px;height:31px;border-radius:9px;background:#ecf0fa;color:#526997}
.stat-card:nth-child(2) .stat-spark {background:#f1eac7;color:#6953cd}
.stat-card--done .stat-spark {background:#e1f4ed;color:#19775e}
.stat-card--pending .stat-spark {background:#fff0d5;color:#946418}
.workspace-panels {display:grid;grid-template-columns:minmax(0,1fr) minmax(232px,29%);align-items:start;gap:18px}
#adminApp:not([data-view=overview]) .workspace-panels {grid-template-columns:minmax(0,1fr)}
.overview-aside {min-width:0;display:grid;gap:18px}
.activity-card {position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(127deg,#282640,#33305b 65%,#40366e);color:white;padding:20px 20px 16px;border-radius:var(--radius-lg)}
.activity-card::before,.employee-hero::after,.landing-visual::after {content:"";position:absolute;z-index:-1;pointer-events:none;width:260px;height:200%;right:-116px;top:-45%;bottom:auto;border:none;border-radius:0;transform:rotate(17deg);background:repeating-radial-gradient(ellipse at 110% 45%,transparent 0 8px,rgba(194,182,255,.18) 8.5px 9.3px,transparent 10px 13px)}
.activity-head {display:flex;align-items:center;justify-content:space-between}.activity-head h2 {font-size:17px;font-weight:650}.activity-head svg {color:#d5dcd9}
.rate-chart {position:relative;width:142px;height:142px;margin:5px auto 4px}
.rate-chart svg {width:100%;height:100%;fill:none;stroke-width:8}
.rate-track {stroke:#55516f}
#rateArc {stroke:#bcb1ff;transform:rotate(-90deg);transform-origin:center;stroke-linecap:round}
.rate-chart>div {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}
.rate-chart strong {font-size:33px;font-weight:600;letter-spacing:-.04em}.rate-chart span {font-size:11px;color:#d7d3e8}
.rate-legend {border-top:1px solid #5b5575;display:flex;justify-content:space-between;gap:12px;padding-top:12px;color:#edeaf4;font-size:12px}
.rate-legend i {display:inline-block;width:7px;height:7px;border-radius:50%;background:#bcb1ff;margin-right:5px}
.rate-legend span+span i {background:#87829e}.rate-legend b {margin-left:3px}
.card-pad {padding:21px}.card-head h2,.employee-section-head h2 {font-size:19px;line-height:1.4;letter-spacing:-.025em;color:var(--ink)}
.card-head p {color:var(--muted);font-size:12px}.card-head {margin-bottom:15px}
.count-badge {color:#405347;border-color:#d8ded8;background:#edf0ed;font-weight:600}
.task-toolbar {padding:0 20px 15px;gap:8px}
.segmented,.task-kind {background:#eef1ee;border-color:#d0d8d2}
.filter-btn[aria-selected=true],.task-kind-btn.is-active {color:var(--brand-deep);background:#fff}
.search-box,.date-trigger,.date-popover,.field input,.field textarea,.assignee-picker {background:white;border-color:var(--line)}
.task-group {padding:17px 20px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px}
.task-group:hover,.task-group.is-completed {background:#f7f9f7}
.task-dot {background:#c49a52}.task-group.is-completed .task-dot {background:#47a68e}
.assignment-row {background:#f0f2f0;border-color:#dbdfdd}
.task-group-title {font-size:15px;color:var(--ink)}.task-group-notes,.task-group-meta,.attachment-updated {color:var(--muted)}
.task-status--done,.assignment-time.is-done,.done-stamp {color:#22735d;background:#e8f5ee}
.task-status--pending {color:#825c20;background:#faf0dc}
.task-date-badge,.date-trigger,.recurring-next {color:var(--ink-soft)}
.task-delete,.recurring-delete {color:#945061;background:transparent}
.employee-list,.attachment-list {min-width:0}
.attachment-row,.recurring-row,.employee-row {border-color:var(--surface-line);background:var(--surface-soft)}
.attachment-updated {font-size:11px;display:block}
.attachment-row {row-gap:7px}.attachment-file-name {overflow-wrap:anywhere}
.download-btn,.copy-button {color:var(--brand-deep);background:#eef1ee;border-color:#ced5cf}
.footer {margin-top:22px;border-color:var(--line);color:var(--muted)}
.work-dialog {width:min(560px,calc(100% - 28px));max-height:90dvh;padding:0;margin:auto;color:var(--ink);background:white;border:0;border-radius:17px;box-shadow:0 25px 90px #131b3652}
.work-dialog::backdrop {background:#171c325c}
.work-dialog .card {border:0;box-shadow:none;overflow:visible}
.work-dialog .card-pad {padding:26px}
.dialog-tools {position:absolute;right:16px;top:16px;z-index:1}
.dialog-tools .icon-button {width:30px;height:30px}
.work-dialog .card-head {margin-right:30px}
.work-dialog .count-badge {margin-right:6px}
body:has(dialog[open]) {overflow:hidden}
.employee-topbar,.employee-shell {max-width:890px}
.employee-topbar {padding-top:27px}.employee-shell {padding-top:22px}
.employee-hero,.landing-visual {isolation:isolate;background:linear-gradient(112deg,#23243b,#373259 72%,#48406f);box-shadow:var(--shadow-sm);color:white}
.employee-hero {border-radius:19px;padding:26px 32px}
.employee-hero::before {display:none}.employee-hero::after {width:340px;right:-90px}
.employee-greeting {font-size:clamp(27px,3.2vw,36px);color:#fff;letter-spacing:-.04em}
.employee-date,.employee-sub,.progress-labels {color:#e0deef}
.employee-avatar {background:#ffffff14;border-color:#aaa1cd;border-radius:15px;color:#e7e2ff}
.progress-badge {color:#f4ead2;border-color:#787091;background:#ffffff0d}
.progress-copy progress {height:6px}.progress-copy progress::-webkit-progress-value {background:#b6aaff}
.employee-section-head {flex-direction:row;align-items:center;margin-bottom:16px}
.employee-task,.employee-task.is-complete {padding:21px 22px;background:#fff;border-color:var(--line)}
.employee-task:hover {border-color:#c8c5db;transform:none}
.employee-task.is-complete .employee-task-title {color:var(--ink-soft);text-decoration:none}
.employee-task-title {font-size:16px}.employee-task-notes {color:var(--muted)}
.employee-task .upload-panel {background:transparent;border:0;padding:0}
.submission-details {min-width:0;margin-top:12px;border-top:1px solid var(--surface-line);padding-top:9px}
.submission-details summary {cursor:pointer;color:var(--brand-deep);font-size:13px;font-weight:600;width:fit-content;padding:5px 0}
.submission-details[open] summary {margin-bottom:9px}
.submit-actions {justify-content:flex-end;margin-top:4px}
.employee-footer {color:var(--muted)}
.landing-title {font-size:clamp(32px,4vw,55px);margin-top:38px;color:var(--ink)}
.landing-card,.landing-info {background:#fff}.landing-visual {position:relative;overflow:hidden}
@media(max-width:1250px){:root{--rail:174px}.workspace-rail{padding-inline:10px}.workspace-panels{grid-template-columns:minmax(0,1fr) 240px}.task-group {grid-template-columns:minmax(0,1fr)}}
@media(max-width:1000px){:root{--rail:72px}.workspace-rail .brand>span:last-child,.workspace-rail nav span,.rail-id div{display:none}.workspace-rail .brand,.workspace-rail nav a{justify-content:center;padding-inline:0}.workspace-rail nav a[aria-current]{box-shadow:inset 2px 0 #aa99ff}.rail-id{justify-content:center}.stats-grid{gap:10px}.stat-spark{right:12px}.workspace-panels{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:780px){.workspace-panels{grid-template-columns:minmax(0,1fr)}.overview-aside{grid-template-columns:repeat(2,minmax(0,1fr))}#adminApp[data-view=files] .overview-aside{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.task-toolbar{flex-wrap:wrap}.workspace-bar .net-chip{display:none}}
@media(max-width:600px){.workspace-rail{position:static;width:100%;padding:13px 14px 8px;display:block}.workspace-rail .brand{justify-content:flex-start;font-size:16px}.workspace-rail .brand>span:last-child,.workspace-rail nav span{display:inline}.workspace-rail nav{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;margin:10px 0 0}.workspace-rail nav a{font-size:12px;min-height:36px;gap:5px}.workspace-rail nav svg{width:14px}.workspace-rail nav a[aria-current]{box-shadow:none}.rail-id,.crumb{display:none}.workspace-page{margin:0}.workspace-bar{height:38px;justify-content:flex-end;padding:0 14px}.workspace-bar .topbar-meta .icon-button{width:26px;height:26px}.admin-shell{padding:19px 14px}.workspace-heading{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:17px}.heading-actions{width:100%;gap:8px}.heading-actions .button{flex:1;min-height:40px}.stats-grid{gap:8px;margin-bottom:14px}.stat-card{min-height:82px;padding:11px 13px}.stat-spark{width:24px;height:24px;top:10px;right:10px}.stat-spark svg{width:15px}.stat-value{font-size:28px}.workspace-panels,.overview-aside{gap:14px}.overview-aside{grid-template-columns:1fr}.card-pad,.work-dialog .card-pad{padding:17px}.task-group{padding:15px;gap:8px}.task-toolbar{padding:0 15px 12px}.employee-topbar{padding-top:14px}.employee-shell{padding-top:14px}.employee-hero{padding:22px 20px}.employee-task,.employee-task.is-complete{padding:16px}.employee-section-head{gap:10px}.form-footer .button{width:100%}.date-popover{max-width:calc(100vw - 36px)}}

.button > svg,.task-check-indicator > svg {width:18px;height:18px;flex:0 0 18px}
.employee-task .task-check-indicator {background:#faf1dd;border-color:transparent;color:#936718}
.employee-task.is-complete .task-check-indicator {background:#e0f4ed;border-color:transparent;color:#18745c}
.task-group .task-group-meta {color:#687285}
.task-group .task-delete {opacity:1;color:#875967}
#overviewBoard .task-card-head {margin-bottom:0}
#overviewBoard .card-pad {padding-bottom:15px}
@media(max-width:600px){.submit-actions .button{min-height:40px}.attachment-row-main{min-width:0}}


/* 工业终端。主管与员工的任务工作区。 */
:root {
  --terminal-ink:#151b1c; --terminal-panel:#202a2b; --signal:#ffcd38;
  --terminal-grid:rgba(41,61,56,.052);
  --radius-xl:3px; --radius-lg:2px; --radius-md:2px; --radius-sm:2px;
  --shadow-sm:none; --shadow-md:0 8px 24px #17262318;
  --mono:"Bahnschrift","Cascadia Mono","Consolas","Microsoft YaHei UI",monospace;
}
body {
  background-color:#e8ebea;
  background-image:linear-gradient(90deg,var(--terminal-grid) 1px,transparent 1px),linear-gradient(var(--terminal-grid) 1px,transparent 1px);
  background-size:32px 32px;
}
::selection {color:#161c18;background:#ffe791}
.brand-mark {border-radius:0;color:var(--signal);background:#182020;box-shadow:none}
.brand-mark svg {width:29px;height:29px}
.workspace-rail {width:var(--rail);padding:25px 13px 20px;background:linear-gradient(163deg,#151c1d,#202b2c);border-right:1px solid #49504d}
.workspace-rail .brand {gap:10px;letter-spacing:.055em;font-weight:750}
.workspace-rail .brand-mark {background:transparent;color:var(--signal)}
.workspace-rail nav {padding-top:14px;border-top:1px solid #46504f;margin-top:28px;gap:4px}
.workspace-rail nav a {border-radius:0;color:#c4cecb;min-height:46px;border-left:3px solid transparent}
.workspace-rail nav a:hover {background:#303c3b;color:#fff}
.workspace-rail nav a[aria-current] {color:#ffe390;border-left-color:var(--signal);box-shadow:none;background:linear-gradient(90deg,#3e4234,#303830)}
.workspace-rail nav a[aria-current] svg {color:var(--signal)}
.rail-id {border-color:#495250;position:relative}
.rail-id::before {content:"";position:absolute;left:0;top:-19px;width:48px;height:6px;background:repeating-linear-gradient(125deg,#a9a57b 0 3px,transparent 3px 7px)}
.rail-avatar {border-radius:1px;color:#dfe5df;border-color:#596361}
.rail-id small {color:#b0bbb7}
.workspace-bar {height:49px;background:#f6f8f6;border-color:#bac3bf}
.workspace-bar .net-chip,.crumb {font-family:var(--mono);font-size:12px}
.workspace-bar .icon-button {border-radius:2px}
.live-dot {background:#32866e;box-shadow:none}
.admin-shell {padding-top:22px}
.workspace-heading,.employee-hero,.landing-visual {position:relative;isolation:isolate;background:#20292b;color:#fbfcf6;overflow:hidden}
.workspace-heading {min-height:115px;margin:0 0 14px;padding:21px 25px;border-left:5px solid var(--signal);clip-path:polygon(0 0,100% 0,100% calc(100% - 13px),calc(100% - 13px) 100%,0 100%)}
.workspace-heading::before,.employee-hero::before,.landing-visual::before {
  content:"";position:absolute;inset:0;display:block;z-index:-1;pointer-events:none;border:0;border-radius:0;width:auto;height:auto;
  background-image:linear-gradient(#a9c7be12 1px,transparent 1px),linear-gradient(90deg,#a9c7be12 1px,transparent 1px);
  background-size:22px 22px;
}

.workspace-heading h1 {color:#fff;font-size:clamp(29px,2.7vw,39px);letter-spacing:.015em;font-weight:730}
.desk-date {color:#cbd5d0;font-family:var(--mono);margin-top:10px}
.desk-date svg {color:#e3bd4d}
.button,.button:hover {background:var(--signal);border:1px solid #eac145;color:#171c19;border-radius:1px;font-weight:700;box-shadow:none}
.button:hover {background:#ffe075}
.button--ghost,.button--soft,.icon-button {background:#f3f5f1;color:#2b3632;border:1px solid #bdc6bf}
.button--ghost:hover,.button--soft:hover,.icon-button:hover {background:#e0e6df;color:#15201a}
.heading-actions .button--ghost {background:#252f30;color:#e1e8e4;border-color:#6b7572}
.heading-actions .button--ghost:hover {background:#35403f}
.heading-actions .button:not(.button--ghost),.submit-actions .button {clip-path:polygon(0 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%)}
.heading-actions .button {padding-inline:17px}
.stats-grid {gap:0;border:1px solid #aeb9b4;background:#fff;margin-bottom:17px}
.stat-card {min-height:88px;padding:13px 19px 12px;border:0;border-right:1px solid #c6ceca;border-radius:0;background:transparent;box-shadow:none}
.stat-card:last-child {border-right:0}.stat-label {line-height:1.4;font-weight:650;color:#4b5752}
.stat-spark,.stat-card:nth-child(2) .stat-spark,.stat-card--done .stat-spark,.stat-card--pending .stat-spark {border-radius:0;background:transparent;color:#65726c;width:20px;height:20px;right:15px;top:15px}
.stat-value-row {margin-top:5px}
.stat-value {font-family:var(--mono);font-size:37px;font-weight:650;letter-spacing:-.045em;line-height:1.05}
.stat-card--pending {box-shadow:inset 0 -3px #e7b72d}.stat-card--pending .stat-spark {color:#876619}
.workspace-panels,.overview-aside {gap:15px}
.card,.employee-task,.employee-task.is-complete {border:1px solid #bbc5bf;border-radius:2px;background:#fbfcfa;box-shadow:none}
.card-head h2,.employee-section-head h2,.activity-head h2 {font-size:19px;font-weight:720;letter-spacing:.015em}
#overviewBoard .task-card-head h2,#filesPanel h2,#teamPanel h2,#autoPanel h2 {display:flex;gap:8px;align-items:center}
#overviewBoard .task-card-head h2::before,#filesPanel h2::before,#teamPanel h2::before,#autoPanel h2::before,.employee-section-head h2::before {content:"";display:inline-block;width:4px;height:17px;margin-right:2px;background:#d6ae30;vertical-align:-2px}
.count-badge,.brand-badge {border-radius:1px;border:1px solid #cbd1cb;color:#46514b;background:#eef1ec;font-family:var(--mono)}
.segmented,.task-kind,.date-trigger,.search-box,.date-popover,.date-nav,.date-presets button,.field input,.field textarea,.assignee-picker,.assignee-option,.completion-note-field textarea,.file-pick,.download-btn,.copy-button,.employee-row,.recurring-row,.assignment-row,.attachment-row,.avatar,.employee-avatar,.filter-btn,.task-kind-btn {border-radius:2px}
.segmented,.task-kind {padding:2px;background:#e7ebe7;border-color:#c6cec9}
.segmented .filter-btn[aria-selected=true],.task-kind .task-kind-btn.is-active {background:#26302d;color:white;box-shadow:none}
.task-toolbar,.task-group {border-color:#d6ddd7}
.task-group.is-completed,.task-group:hover {background:#f5f7f3}
.task-status,.task-date-badge,.assignment-time,.done-stamp,.recurring-next,.employee-count {border-radius:2px}
.task-group-title,.employee-task-title {letter-spacing:.012em}
.assignment-row {background:#f0f3ef}
.task-status--pending,.assignment-time.is-pending {color:#705214;background:#fbf0cb}
.task-dot {background:#af861d}.task-group.is-completed .task-dot {background:#479480}
.assignment-time.is-done,.task-status--done,.done-stamp {color:#23664e;background:#e4efe9}
.assignment-note,.completion-note-display {background:#ecf0e9;color:#435146;border-color:#8a9e8b}
.task-group .task-delete,.recurring-delete {color:#804b45}
.activity-card {border-radius:1px;background:#232d2d;border-top:3px solid var(--signal);padding:18px 21px}
.activity-card::before {inset:0;width:auto;height:auto;top:0;right:0;transform:none;background:repeating-linear-gradient(125deg,transparent 0 6px,#adc9c114 6px 7px);mask-image:linear-gradient(90deg,transparent 42%,black)}
.activity-head svg {color:#d0c99d}
.rate-chart {position:relative;width:auto;height:auto;margin:14px 0 16px}
.rate-chart>div {position:static;display:flex;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:13px}
.rate-chart strong {font:650 58px/1 var(--mono);letter-spacing:-.055em;color:#ffcf41}
.rate-chart span {color:#d0d8d1}
.rate-chart svg {width:100%;height:12px;display:block;margin-top:14px;stroke-width:12}
.rate-track {stroke:#596361}
#rateArc {transform:none;stroke:#f4c63c;stroke-linecap:butt}
.rate-chart::after {content:"";position:absolute;left:0;right:0;bottom:0;height:12px;background:repeating-linear-gradient(90deg,transparent 0 calc(5% - 2px),#25302e calc(5% - 2px) 5%);pointer-events:none}
.rate-legend {border-color:#56605b;color:#e0e6df}
.rate-legend i,.rate-legend span+span i {border-radius:0;background:#f4c63c}
.rate-legend span+span i {background:#83908a}
.attachment-row {background:transparent;padding-block:12px;border-color:#d3dad4}
.download-btn,.copy-button {background:#edf1eb;border-color:#cad3ca;color:#37493c}
.download-btn:hover,.copy-button:hover {background:#dfe6dd;color:#17251c}
.work-dialog {border-radius:3px;border-top:4px solid #e5ba31;background:#fafcf8}
.work-dialog::backdrop {background:#10191887}
.work-dialog .card {background:#fafbf8}
.work-dialog .icon-button {border-radius:2px}.assignee-empty {color:#5b665e}
.date-popover {box-shadow:0 12px 32px #18241e30}
.employee-topbar,.employee-shell {width:min(100%,1220px);max-width:1220px}
.employee-topbar {padding:21px 32px 14px;border-bottom:1px solid #aeb9b2}
.employee-topbar .brand-mark {background:#202927;color:var(--signal)}
.employee-shell {padding:23px 32px 45px}
#employeeApp {display:grid;grid-template-columns:minmax(255px,32%) minmax(0,1fr);column-gap:20px;align-items:start}
.employee-hero {position:sticky;top:18px;min-height:365px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;border-radius:0;border-top:4px solid var(--signal);padding:23px 24px 21px;clip-path:polygon(0 0,100% 0,100% calc(100% - 17px),calc(100% - 17px) 100%,0 100%)}
.employee-hero-top {gap:8px}.employee-date {font-family:var(--mono);font-size:12px;color:#d7ded6}
.employee-greeting {font-size:clamp(25px,2.2vw,33px);letter-spacing:.01em}
.employee-avatar {width:40px;height:40px;background:#303a37;border:1px solid #778377;border-radius:1px;font-size:17px;color:#ffdc70}
.employee-sub {color:#dce3dc}
.employee-progress {margin-top:auto;align-items:center}
.progress-labels {color:#d5ded6}.progress-labels strong {font:650 26px/1 var(--mono);color:#ffce42}
.progress-badge {border:0;background:none;border-radius:0;color:#e4e6cc;padding:0}
.progress-copy progress,.progress-copy progress::-webkit-progress-bar {border-radius:0;background:#68716a}
.progress-copy progress::-webkit-progress-value {background:#ffca36;border-radius:0}
.progress-copy progress::-moz-progress-bar {background:#ffca36}
.employee-main {margin-top:0;min-width:0}
.employee-section-head {padding:0 0 11px;margin:0;border-bottom:2px solid #303d37}
.employee-section-head h2::before {margin-right:9px}
.employee-task-list {margin-top:11px;gap:10px}
.employee-task,.employee-task.is-complete {padding:18px 19px}
.employee-task:not(.is-complete) {border-left:4px solid #d6ad28}
.employee-task .task-check-indicator,.employee-task.is-complete .task-check-indicator {border-radius:1px}
.employee-task-title {font-size:17px}.employee-task .submit-actions {margin-top:6px}
.employee-footer {grid-column:1/-1;text-align:right;margin-top:20px;padding-top:12px;border-top:1px solid #c4cec6}
.submission-details summary {color:#384d3c}
.landing-card,.landing-info,.landing-visual,.mock-card {border-radius:2px}
.landing-visual {background:#27322f}.landing-visual::after {display:none}
.landing-visual .mock-card {color:#253028;background:#f6f7ed}
.error-panel {background:#f9faf5;border-radius:2px}
:focus-visible,.button:focus-visible,.icon-button:focus-visible,.segmented button:focus-visible {outline:3px solid #458895;outline-offset:2px}
@media(max-width:1000px){.workspace-heading::after{left:22%;width:43%}.employee-hero{padding:19px 17px}}
@media(max-width:800px){#employeeApp{grid-template-columns:1fr}.employee-hero{position:relative;top:0;min-height:190px;margin-bottom:18px}.employee-hero::after{inset:0 0 0 50%}.employee-progress{max-width:65%}.workspace-heading::after{opacity:.35}}
@media(max-width:600px){.workspace-rail{width:100%;padding:12px}.workspace-rail nav{margin-top:10px;padding-top:6px}.workspace-heading{padding:15px;gap:14px}.workspace-heading::after{left:38%;width:60%}.stat-card:nth-child(2n){border-right:0}.stats-grid{border:0;gap:1px;background:#b7c1b9}.stat-card{background:#fafbf7}.employee-topbar,.employee-shell{padding-inline:14px}}



/* 今日调度和个人任务：视图中的统计直接来自打卡记录。 */
:root { --terminal-grid:rgba(41,61,56,.026) }
.workspace-heading::after,.employee-hero::after {content:none}
.workspace-heading {
  display:grid; grid-template-columns:minmax(150px,.9fr) minmax(230px,1.35fr) auto;
  min-height:107px; gap:22px; align-items:center; padding:19px 24px;
}
.workspace-heading::before,.employee-hero::before {opacity:.44}
.workspace-heading h1 {font-size:clamp(28px,2.4vw,38px)}
.today-dispatch {display:flex;align-items:center;gap:18px;padding-left:22px;border-left:1px solid #54625f}
.today-dispatch>div:first-child {display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:5px}
.today-dispatch>div:first-child>span {grid-column:1/-1;font-size:12px;color:#e5eae5}
.today-dispatch strong {font:650 36px/1.1 var(--mono);color:#ffcf45}
.today-dispatch small {font-size:12px;color:#dce3dd}
.today-dispatch>div:last-child {display:grid;justify-items:start;gap:4px}
#todayBreakdown {font-size:12px;color:#d3ddd7}
#openTodayPending {border:0;padding:3px 0;background:none;color:#ffda69;font-size:13px;font-weight:650}
#openTodayPending:hover:not(:disabled) {text-decoration:underline}
#openTodayPending:disabled {color:#a7b3ac;cursor:default}
#adminApp:not([data-view=overview]) .today-dispatch {display:none}
#adminApp:not([data-view=overview]) .workspace-heading {grid-template-columns:1fr auto}
.recent-checkins {background:#24302d;color:#f1f5ed;border-top:3px solid #ebc145;padding:18px 19px 10px}
.recent-checkins header {display:flex;align-items:center;justify-content:space-between;gap:10px}
.recent-checkins h2 {font-size:19px;line-height:1.45}
.recent-checkins header>span,.recent-checkins time {font:12px var(--mono);color:#ced8d2}
.recent-checkins ol {list-style:none;padding:0;margin:8px 0 0}
.recent-checkins li {position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:2px;border-top:1px solid #45524d;padding:10px 0 10px 14px}
.recent-checkins li:first-child {border:0}
.recent-checkins li::before {content:"";width:5px;height:5px;position:absolute;left:0;top:17px;background:#92c9ad}
.recent-checkins li:first-child::before {background:var(--signal)}
.recent-checkins li strong {font-size:13px;overflow-wrap:anywhere}
.recent-checkins time {align-self:center;white-space:nowrap}
.checkin-task {grid-column:1/-1;font-size:12px;color:#d9e2da;overflow-wrap:anywhere}
#noCheckins {padding:16px 0;color:#d2dcd4;font-size:13px}
#employeeApp {display:block}
.employee-topbar,.employee-shell {max-width:1110px}
.employee-hero {
  position:relative;top:0;min-height:0;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(230px,.6fr);align-items:center;gap:34px;
  padding:23px 29px; border-top:0;border-left:4px solid var(--signal);margin:0 0 22px;
}
.employee-hero-top {justify-content:flex-start;align-items:center}
.employee-avatar {display:none}
.employee-greeting {margin-top:6px;font-size:clamp(25px,2.2vw,32px)}
.employee-sub {margin-top:5px;color:#d2dcd6}
.employee-progress {display:grid;position:relative;grid-template-columns:1fr auto;max-width:none;align-items:baseline;gap:13px;margin:0;padding-left:24px;border-left:1px solid #54625f}
.progress-copy {width:100%}
.progress-labels {gap:7px;margin-bottom:10px;color:#e2e8e0}
.progress-labels strong {font-size:31px}
.progress-badge {display:block;font:600 19px var(--mono);color:#ffcf45}
.employee-section-head {border-bottom:0;padding:0 1px 9px;margin:0}
#taskSummary:empty {display:none}
.employee-main {min-width:0}
.employee-filters {display:flex;align-items:center;gap:16px;border-bottom:1px solid #aab5ad;margin-bottom:12px}
.employee-filters button {display:inline-flex;gap:7px;align-items:center;border:0;border-bottom:3px solid transparent;background:none;padding:8px 3px;color:#4a574e;font-size:13px}
.employee-filters button[aria-pressed=true] {font-weight:700;color:#19261c;border-color:#bd9316}
.employee-filters b {padding:0 5px;min-width:19px;line-height:18px;background:#dfe5df;color:#3a483f;font:600 13px/18px var(--mono)}
.employee-filters [aria-pressed=true] b {background:#f4da81;color:#3a3115}
.employee-task-list {margin:0}
#employeeTaskList[data-filter=pending] .is-complete,
#employeeTaskList[data-filter=done] .employee-task:not(.is-complete) {display:none}
.personal-filter-empty {padding:24px;background:#fafbf8;border:1px solid #c8d0c9;color:#556058}
.employee-task,.employee-task.is-complete {padding:17px 20px}
.employee-task .upload-panel:has(> .submission-details) {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px 12px;border-top:1px solid #d8dfd9;margin-top:12px;padding-top:10px}
.employee-task .upload-panel>.submission-details {margin:0;padding:0;border:0}
.employee-task .upload-panel>.submission-details[open] {grid-column:1/-1}
.employee-task .upload-panel>.submission-details[open]+.submit-actions,.employee-task .upload-error {grid-column:1/-1}
.employee-task .upload-panel>.submit-actions {margin:0}
.employee-task .submit-actions .button {min-height:36px;border-radius:1px}
@media(max-width:1100px){.workspace-heading{gap:13px}.today-dispatch{gap:10px;padding-left:15px}}
@media(max-width:820px){.workspace-heading{grid-template-columns:minmax(0,1fr) auto}.today-dispatch{grid-row:2;grid-column:1/-1;border-left:0;border-top:1px solid #4d5953;padding:9px 0 0}.employee-hero{gap:15px;padding:19px}.employee-progress{padding-left:15px}}
@media(max-width:600px){.workspace-heading{display:flex;align-items:stretch}.employee-hero{grid-template-columns:1fr}.employee-progress{padding-left:0;border-left:0}}

