:root {
  --bg: #070a12;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2ff;
  --muted: #8e98b8;
  --dim: #5d6688;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 78%);
  opacity: 0.45;
}
.ambient {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.ambient-a { top: -30vw; left: -15vw; background: radial-gradient(circle, #7c5cff, transparent 65%); }
.ambient-b { bottom: -35vw; right: -20vw; background: radial-gradient(circle, #22d3ee, transparent 65%); opacity: 0.13; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(124, 92, 255, 0.7);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}
textarea { resize: vertical; min-height: 54px; }
::selection { background: rgba(124, 92, 255, 0.45); }

.app { position: relative; z-index: 1; display: flex; height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 292px;
  flex: 0 0 292px;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px 18px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #4f46e5 55%, var(--accent-2));
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-text h1 { margin: 0; font-size: 17px; letter-spacing: 0.2px; }
.brand-text span { color: var(--muted); font-size: 11px; letter-spacing: 0.4px; }

.global-progress {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; margin: 0 2px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}
.ring { position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: rgba(255,255,255,0.08); }
.ring-fg {
  stroke: url(#ringGrad);
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.7s cubic-bezier(.22,1,.36,1), stroke 0.4s;
}
.ring-lg { width: 86px; height: 86px; }
.ring-lg svg { width: 86px; height: 86px; }
.ring-label { position: absolute; display: grid; text-align: center; line-height: 1.1; }
.ring-label strong { font-size: 18px; }
.ring-label span { font-size: 9px; color: var(--muted); letter-spacing: 1px; }
.global-copy { display: grid; gap: 1px; }
.global-copy strong { font-size: 24px; line-height: 1; letter-spacing: -0.5px; }
.global-copy span { color: var(--muted); font-size: 11px; }
.global-copy em { color: var(--rose); font-style: normal; font-size: 10px; margin-top: 2px; }

.workspace-nav { flex: 1; overflow-y: auto; padding: 2px 0 10px; display: flex; flex-direction: column; gap: 3px; }
.nav-label { color: var(--dim); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; padding: 4px 10px 8px; }
.ws-item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
  text-align: left;
  transition: background 0.16s, color 0.16s, transform 0.16s;
}
.ws-item:hover { background: rgba(255,255,255,0.05); color: var(--text); transform: translateX(2px); }
.ws-item.active { background: rgba(124, 92, 255, 0.16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(124,92,255,0.25); }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; box-shadow: 0 0 10px currentColor; }
.ws-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ws-count { flex: 0 0 auto; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.ws-item.active .ws-count { color: #c9c2ff; }
.ws-bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.07); overflow: hidden; width: auto; margin: 0; }
.ws-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.5s; }

.sidebar-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.ghost {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(255,255,255,0.02);
  transition: all 0.16s;
}
.ghost:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,0.06); }
.scan-note { color: var(--dim); font-size: 10px; text-align: center; padding-top: 8px; }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 28px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(7,10,18,0.55);
  backdrop-filter: blur(14px);
  z-index: 5;
}
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  flex: 1; max-width: 440px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
  transition: border-color 0.18s, background 0.18s;
}
.search-wrap:focus-within { border-color: rgba(124,92,255,0.55); background: rgba(255,255,255,0.055); }
.search-wrap svg { width: 16px; height: 16px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; }
.search-wrap input { flex: 1; border: none; background: none; padding: 10px 0; box-shadow: none; }
.search-wrap input:focus { box-shadow: none; background: none; }
.search-wrap kbd { border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--dim); font-size: 10px; font-family: inherit; }

.filter-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,0.025); }
.filter-tab { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 11px; transition: all 0.16s; white-space: nowrap; }
.filter-tab:hover { color: var(--text); }
.filter-tab.active { background: rgba(255,255,255,0.1); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.filter-tab .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); margin-left: 4px; vertical-align: 2px; }

.primary {
  border-radius: 11px;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--accent), #5b4bff);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(124,92,255,0.28);
  transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
  white-space: nowrap;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(124,92,255,0.38); filter: brightness(1.05); }
.primary:active { transform: translateY(0); }

.phone-btn { padding: 9px 10px; font-size: 11px; }

.live { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 10px; letter-spacing: 0.5px; white-space: nowrap; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2s infinite; }
.live.off i { background: var(--rose); animation: none; box-shadow: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ---------- Hero ---------- */
.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 28px 28px 18px;
}
.eyebrow { margin: 0 0 6px; color: var(--accent-2); font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase; }
.hero h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -1.2px;
  background: linear-gradient(100deg, #fff 20%, #c9c2ff 60%, #8be9f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub, #heroSub { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(74px, 1fr)); gap: 8px; min-width: 380px; }
.stat {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  transition: transform 0.18s, border-color 0.18s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stat b { display: block; font-size: 20px; line-height: 1.2; letter-spacing: -0.4px; }
.stat span { color: var(--muted); font-size: 10px; }
.stat.amber b { color: var(--amber); }
.stat.green b { color: var(--green); }
.stat.rose b { color: var(--rose); }

/* ---------- Content ---------- */
.content { flex: 1; overflow-y: auto; padding: 8px 28px 40px; scroll-behavior: smooth; }
.schedule-panel {
  margin: 8px 0 18px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.08), rgba(124, 92, 255, 0.06));
  overflow: hidden;
  animation: fadeUp 0.35s ease both;
}
.schedule-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.schedule-head h3 { margin: 0; font-size: 14px; letter-spacing: 0.1px; }
.schedule-count { color: var(--accent-2); font-size: 10px; }
.schedule-list { display: grid; gap: 2px; padding: 0 10px 10px; }
.schedule-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; transition: background 0.15s; }
.schedule-item:hover { background: rgba(255, 255, 255, 0.04); }
.schedule-time { min-width: 86px; color: var(--accent-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.schedule-main { flex: 1; min-width: 0; }
.schedule-main strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-badge { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; font-size: 9px; white-space: nowrap; }

.workspace-group {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.042), rgba(255,255,255,0.018));
  overflow: hidden;
  animation: fadeUp 0.35s ease both;
}
.group-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.group-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.group-title h3 { margin: 0; font-size: 14px; letter-spacing: 0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-title .ws-dot { width: 9px; height: 9px; flex-basis: 9px; }
.group-meta { color: var(--dim); font-size: 10px; white-space: nowrap; }
.group-progress { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; max-width: 220px; margin-left: auto; }
.group-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px; transition: width 0.6s cubic-bezier(.22,1,.36,1); }
.group-collapse { color: var(--dim); font-size: 13px; padding: 2px 4px; transition: transform 0.2s, color 0.2s; }
.group-collapse:hover { color: var(--text); }
.workspace-group.collapsed .group-body { display: none; }
.workspace-group.collapsed .group-collapse { transform: rotate(-90deg); }

.group-body { padding: 0 10px 10px; }
.quick-add { display: flex; align-items: center; gap: 8px; margin: 0 6px 8px; padding: 7px 10px; border: 1px dashed rgba(255,255,255,0.1); border-radius: 10px; transition: border-color 0.18s, background 0.18s; }
.quick-add:focus-within { border-color: rgba(124,92,255,0.5); background: rgba(124,92,255,0.05); }
.quick-add input { flex: 1; border: none; background: none; padding: 4px 0; font-size: 12px; box-shadow: none; }
.quick-add input:focus { box-shadow: none; background: none; }
.quick-add span { color: var(--dim); font-size: 14px; }

.todo {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 8px 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.16s, border-color 0.16s, transform 0.16s, opacity 0.2s;
  animation: fadeUp 0.3s ease both;
}
.todo:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); }
.todo.completed { opacity: 0.48; }
.todo.completed .todo-title { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.3); }
.todo.overdue { border-color: rgba(251,113,133,0.18); background: rgba(251,113,133,0.035); }

.check {
  width: 19px; height: 19px; flex: 0 0 19px; margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: grid; place-items: center;
  transition: all 0.18s;
  background: rgba(0,0,0,0.15);
}
.check:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,0.12); }
.check svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.6); transition: all 0.18s; }
.todo.completed .check { background: linear-gradient(135deg, var(--green), #10b981); border-color: transparent; }
.todo.completed .check svg { opacity: 1; transform: scale(1); }
.todo.in_progress .check { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(34,211,238,0.1); }

.todo-main { flex: 1; min-width: 0; }
.todo-title { font-size: 13px; line-height: 1.55; word-break: break-word; }
.todo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 5px; }
.pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.7;
  white-space: nowrap;
}
.pill.p0 { color: #fecdd3; border-color: rgba(251,113,133,0.28); background: rgba(251,113,133,0.1); }
.pill.p1 { color: #fde68a; border-color: rgba(251,191,36,0.24); background: rgba(251,191,36,0.08); }
.pill.p2 { color: #a5b4fc; border-color: rgba(124,92,255,0.22); background: rgba(124,92,255,0.08); }
.pill.p3 { color: var(--dim); }
.pill.due { color: #bae6fd; border-color: rgba(34,211,238,0.2); background: rgba(34,211,238,0.07); }
.pill.due.overdue { color: #fecdd3; border-color: rgba(251,113,133,0.3); background: rgba(251,113,133,0.1); }
.pill.source { color: #c4b5fd; }
.pill.group-tag { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.todo-notes { margin-top: 5px; color: var(--dim); font-size: 11px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.todo-link { color: var(--accent-2); text-decoration: none; border-bottom: 1px dotted rgba(34,211,238,0.35); }

.todo-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 0.16s; }
.todo:hover .todo-actions { opacity: 1; }
.icon-btn { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--dim); font-size: 12px; transition: all 0.15s; }
.icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.icon-btn.danger:hover { background: rgba(251,113,133,0.12); color: var(--rose); }

.empty { padding: 60px 20px; text-align: center; color: var(--dim); }
.empty .big { font-size: 40px; margin-bottom: 8px; opacity: 0.5; }
.empty p { margin: 4px 0; font-size: 12px; }
.completed-block { margin: 4px 6px 2px; }
.completed-block summary { color: var(--dim); font-size: 10px; cursor: pointer; padding: 5px 0; list-style: none; }
.completed-block summary::-webkit-details-marker { display: none; }
.completed-block summary:hover { color: var(--muted); }

.login-dialog { width: min(430px, 92vw); }
.login-dialog form { padding: 20px 22px; display: grid; gap: 12px; }
.login-dialog code { color: var(--accent-2); font-size: 10px; }

.phone-dialog { width: min(560px, 92vw); }
.phone-body { padding: 0 22px 20px; }
.phone-hint { color: var(--muted); font-size: 11px; margin: 0 0 12px; }
.phone-urls { display: grid; gap: 8px; }
.phone-url { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); }
.phone-label { flex: 0 0 auto; color: var(--accent-2); font-size: 10px; }
.phone-url code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 11px; color: var(--text); }
.phone-note { color: var(--dim); font-size: 10px; margin: 12px 0 0; line-height: 1.6; }
.phone-empty { color: var(--muted); font-size: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.phone-loading { color: var(--dim); font-size: 12px; padding: 10px; }

/* ---------- Dialog ---------- */
.dialog {
  width: min(620px, 92vw);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #141a2b, #0d1220);
  color: var(--text);
  padding: 0;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.dialog::backdrop { background: rgba(3,5,10,0.7); backdrop-filter: blur(8px); }
.dialog form { padding: 20px 22px 18px; display: grid; gap: 12px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h3 { margin: 0; font-size: 17px; letter-spacing: -0.2px; }
.field { display: grid; gap: 5px; }
.field > span { color: var(--muted); font-size: 10px; letter-spacing: 0.5px; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.dialog-actions .spacer { flex: 1; }
.danger { color: var(--rose) !important; border-color: rgba(251,113,133,0.25) !important; }
.danger:hover { background: rgba(251,113,133,0.1) !important; }

/* ---------- Toasts / confetti ---------- */
.toasts { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 8px; z-index: 100; }
.toast {
  min-width: 220px; max-width: 360px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(18,24,40,0.95);
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: slideIn 0.25s ease both;
}
.toast.good { border-color: rgba(52,211,153,0.35); }
.toast.warn { border-color: rgba(251,191,36,0.35); }
.toast.bad { border-color: rgba(251,113,133,0.35); }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sidebar { width: 248px; flex-basis: 248px; }
  .hero-stats { min-width: 320px; }
  .filter-tabs { display: none; }
}
@media (max-width: 820px) {
  body { overflow: auto; }
  .app { display: block; height: auto; min-height: 100vh; }
  .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--line); padding: 14px; }
  .brand { padding-bottom: 10px; }
  .global-progress { display: none; }
  .workspace-nav { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .nav-label { display: none; }
  .ws-item { flex: 0 0 auto; width: auto; }
  .ws-bar { display: none; }
  .sidebar-footer { grid-template-columns: repeat(3, 1fr); max-width: 320px; }
  .scan-note { display: none; }
  .main { overflow: visible; }
  .topbar { flex-wrap: wrap; padding: 12px 14px; position: sticky; top: 0; }
  .search-wrap { max-width: none; flex: 1 1 100%; order: 1; }
  .filter-tabs { display: flex; order: 3; overflow-x: auto; max-width: 100%; }
  .addBtn, #addBtn { order: 2; }
  .live { display: none; }
  .hero { flex-direction: column; align-items: stretch; padding: 18px 16px 12px; }
  .hero-stats { min-width: 0; grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 8px; }
  .stat b { font-size: 16px; }
  .content { padding: 6px 12px 30px; overflow: visible; }
  .group-progress { max-width: 90px; }
  .field-row { grid-template-columns: 1fr; }
  .phone-btn { display: none; }
  .schedule-time { min-width: 72px; }
  .schedule-badge { display: none; }
  .phone-url { flex-wrap: wrap; }
  .phone-url code { flex-basis: 100%; order: 3; white-space: normal; word-break: break-all; }
  .hero h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .group-meta { display: none; }
  .todo-actions { opacity: 1; }
}
