:root {
  --bg: #07090d;
  --bg-soft: #0a0d12;
  --panel: #0d1117;
  --panel-2: #10151d;
  --panel-3: #141a23;
  --panel-4: #19212c;
  --border: #202834;
  --border-strong: #303b49;
  --text: #f5f7fb;
  --text-soft: #d6dce6;
  --muted: #8b96a7;
  --muted-2: #657183;
  --blue: #62a8ff;
  --cyan: #54d7dc;
  --green: #45d58a;
  --amber: #f1b958;
  --red: #ff6b72;
  --purple: #b98cff;
  --slate: #8997aa;
  --shadow-sm: 0 10px 28px rgba(0,0,0,.22);
  --shadow: 0 26px 80px rgba(0,0,0,.48);
  --sidebar-w: 232px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.22,.72,.16,1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 60% -20%, rgba(75,125,190,.08), transparent 34rem),
    linear-gradient(180deg, #07090d 0%, #080b10 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: -.01em;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
input, textarea, select { color: inherit; }
::selection { background: rgba(98,168,255,.24); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #242c37; border: 3px solid transparent; background-clip: padding-box; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #364153; border: 3px solid transparent; background-clip: padding-box; }

/* Boot */
.boot-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #06080b;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.boot-overlay.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-card { width: min(390px, calc(100vw - 44px)); }
.boot-logo {
  width: 64px; height: 64px; position: relative; display: grid; place-items: center;
  margin-bottom: 22px; border: 1px solid #293442; border-radius: 16px;
  background: linear-gradient(145deg, #151b23, #090c11); box-shadow: var(--shadow);
  overflow: hidden;
}
.boot-logo::before { content:""; position:absolute; inset:-1px; background:linear-gradient(130deg, rgba(98,168,255,.22), transparent 42%); }
.boot-logo span { position: relative; font-size: 20px; font-weight: 900; letter-spacing: -.08em; }
.boot-logo i { position:absolute; width:6px; height:6px; border-radius:50%; background:var(--green); right:10px; bottom:10px; box-shadow:0 0 18px rgba(69,213,138,.9); animation: pulse 1.4s infinite; }
.boot-copy { display:grid; gap:6px; }
.boot-copy strong { font-size: 14px; letter-spacing:.14em; }
.boot-copy span { color:var(--muted); font-size:13px; }
.boot-progress { height:2px; margin-top:20px; background:#151b23; overflow:hidden; border-radius:4px; }
.boot-progress span { display:block; height:100%; width:0; background:linear-gradient(90deg, var(--blue), var(--cyan)); transition:width .35s var(--ease); box-shadow:0 0 14px rgba(84,215,220,.45); }

@keyframes pulse { 0%,100%{transform:scale(.8);opacity:.6} 50%{transform:scale(1.25);opacity:1} }
@keyframes fadeUp { from{opacity:0;transform:translateY(9px)} to{opacity:1;transform:none} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes modalIn { from{opacity:0;transform:translateY(16px) scale(.975)} to{opacity:1;transform:none} }
@keyframes drawerIn { from{transform:translateX(36px);opacity:.5} to{transform:none;opacity:1} }
@keyframes cardIn { from{opacity:0;transform:translateY(8px) scale(.985)} to{opacity:1;transform:none} }
@keyframes glowPulse { 0%,100%{box-shadow:0 0 0 rgba(98,168,255,0)} 50%{box-shadow:0 0 0 5px rgba(98,168,255,.08)} }
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(260%)} }
@keyframes toastIn { from{opacity:0;transform:translateY(10px) scale(.97)} to{opacity:1;transform:none} }

.app-shell { min-height:100vh; display:grid; grid-template-columns:var(--sidebar-w) minmax(0,1fr); }
.sidebar {
  position:sticky; top:0; z-index:60; height:100vh; display:flex; flex-direction:column;
  padding:18px 12px 14px; background:rgba(8,11,15,.96); border-right:1px solid var(--border); backdrop-filter:blur(18px);
}
.brand { display:flex; align-items:center; gap:11px; padding:2px 8px 24px; }
.brand-mark {
  width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto;
  border:1px solid var(--border-strong); border-radius:9px; background:linear-gradient(145deg,#161d26,#090c10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035), 0 10px 22px rgba(0,0,0,.2);
}
.brand-mark span { font-weight:900; font-size:14px; letter-spacing:-.07em; }
.brand-copy { display:grid; gap:2px; }
.brand-copy strong { font-size:12px; letter-spacing:.13em; }
.brand-copy span { color:var(--muted); font-size:11px; }
.nav-list { display:grid; gap:3px; }
.nav-item {
  position:relative; width:100%; border:0; display:flex; align-items:center; gap:10px; padding:10px 11px;
  color:#9ba6b5; background:transparent; border-radius:8px; text-align:left; transition:background .2s var(--ease), color .2s, transform .2s var(--ease);
}
.nav-item::after { content:""; position:absolute; left:0; top:9px; bottom:9px; width:2px; border-radius:2px; background:var(--blue); transform:scaleY(0); opacity:0; transition:.2s var(--ease); }
.nav-item:hover { color:var(--text); background:#10151b; transform:translateX(1px); }
.nav-item.active { color:var(--text); background:#131922; }
.nav-item.active::after { transform:scaleY(1); opacity:1; }
.nav-icon { width:17px; text-align:center; color:#6f7c8f; font-size:15px; }
.nav-item.active .nav-icon { color:var(--blue); }
.sidebar-spacer { flex:1; }
.sidebar-status { margin:10px 5px 10px; border:1px solid var(--border); background:#0d1218; border-radius:10px; overflow:hidden; }
.sidebar-status-line { display:flex; align-items:center; gap:9px; padding:10px; }
.sidebar-status-line + .sidebar-status-line { border-top:1px solid var(--border); }
.sidebar-status-line div { min-width:0; display:grid; gap:1px; }
.sidebar-status-line strong { font-size:11px; font-weight:650; color:#d7dde7; }
.sidebar-status-line span:last-child { font-size:10px; color:var(--muted); }
.live-pulse { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 12px rgba(69,213,138,.55); animation:pulse 1.8s infinite; }
.settings-nav { margin-top:2px; }

.main-shell { min-width:0; }
.topbar {
  position:sticky; top:0; z-index:50; min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:12px 22px; border-bottom:1px solid var(--border); background:rgba(7,9,13,.86); backdrop-filter:blur(18px) saturate(130%);
}
.topbar-left { display:flex; align-items:center; gap:12px; min-width:0; }
.page-heading { min-width:0; }
.eyebrow { color:#78869a; font-size:9px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
h1,h2,h3,p { margin-top:0; }
h1 { margin:3px 0 0; font-size:21px; letter-spacing:-.04em; font-weight:720; }
h2 { margin:4px 0 0; font-size:20px; letter-spacing:-.035em; }
h3 { margin-bottom:8px; }
.topbar-actions { display:flex; align-items:center; gap:9px; min-width:0; }
.search-box {
  width:min(330px,29vw); height:40px; display:flex; align-items:center; gap:8px; padding:0 10px;
  border:1px solid var(--border); border-radius:9px; background:#0d1117; color:var(--muted); transition:.2s var(--ease);
}
.search-box:focus-within { border-color:#3b526e; background:#0f141b; box-shadow:0 0 0 3px rgba(98,168,255,.06); }
.search-box input { min-width:0; flex:1; border:0; outline:0; background:transparent; font-size:12px; color:var(--text); }
.search-box input::placeholder { color:#687485; }
.search-icon { font-size:18px; line-height:1; }
kbd { border:1px solid #29323e; border-bottom-color:#384452; border-radius:5px; padding:2px 5px; font-size:9px; color:#7e8999; background:#11161d; }
.mobile-menu { display:none; width:38px; height:38px; border:1px solid var(--border); background:#0e1319; color:var(--text); border-radius:8px; }
.icon-btn { border:1px solid var(--border); background:#0d1117; color:#a9b3c1; border-radius:8px; min-width:38px; height:38px; display:grid; place-items:center; transition:.2s var(--ease); }
.icon-btn:hover { border-color:#394556; color:var(--text); background:#121821; transform:translateY(-1px); }
.notification-btn { position:relative; }
.notification-btn > span { color:var(--blue); font-size:8px; }
.notification-btn i { position:absolute; top:-5px; right:-5px; min-width:17px; height:17px; padding:0 4px; display:none; place-items:center; border-radius:99px; background:var(--red); color:white; font-size:9px; font-style:normal; border:2px solid var(--bg); }
.notification-btn i.visible { display:grid; }
.user-switcher { position:relative; height:40px; display:flex; align-items:center; gap:8px; padding:0 9px 0 6px; border:1px solid var(--border); border-radius:9px; background:#0d1117; }
.user-switcher select { position:absolute; inset:0; width:100%; opacity:0; cursor:pointer; }
.user-switcher-copy { display:grid; line-height:1.1; min-width:64px; }
.user-switcher-copy strong { font-size:11px; font-weight:650; }
.user-switcher-copy small { order:-1; color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.avatar { width:27px; height:27px; display:grid; place-items:center; border-radius:7px; background:linear-gradient(145deg,#243246,#141b25); border:1px solid #334155; color:#dce9fb; font-size:9px; font-weight:800; }
.avatar.round { border-radius:50%; }
.primary-btn,.ghost-btn,.danger-btn,.soft-btn,.text-btn {
  border-radius:8px; min-height:38px; padding:0 13px; font-weight:650; font-size:12px; transition:.2s var(--ease);
}
.primary-btn { border:1px solid #5a83b5; color:#08111b; background:linear-gradient(180deg,#77b8ff,#5da5f4); box-shadow:0 8px 22px rgba(58,123,200,.16); }
.primary-btn:hover { transform:translateY(-1px); filter:brightness(1.04); box-shadow:0 12px 28px rgba(58,123,200,.2); }
.primary-btn:active,.ghost-btn:active,.soft-btn:active { transform:translateY(0) scale(.98); }
.ghost-btn { border:1px solid var(--border-strong); background:#11161d; color:#c7d0dc; }
.ghost-btn:hover { border-color:#465468; color:white; background:#151b24; }
.soft-btn { border:1px solid var(--border); background:#10161e; color:#bac5d2; }
.soft-btn:hover { background:#151c25; color:white; border-color:#354151; }
.danger-btn { border:1px solid rgba(255,107,114,.38); background:rgba(255,107,114,.09); color:#ff9499; }
.text-btn { min-height:auto; padding:0; border:0; background:transparent; color:var(--blue); }
.new-task-button span { font-size:15px; margin-right:2px; }

.content { min-height:calc(100vh - 78px); padding:20px 22px 34px; }
.view-enter { animation:fadeUp .34s var(--ease) both; }

/* Dashboard */
.dashboard-intro { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:17px; }
.dashboard-intro h2 { font-size:19px; margin:2px 0 5px; }
.dashboard-intro p { margin:0; color:var(--muted); font-size:12px; }
.board-tools { display:flex; align-items:center; gap:8px; }
.filter-select { min-height:35px; border:1px solid var(--border); border-radius:8px; background:#0d1218; color:#b7c0cc; padding:0 28px 0 10px; font-size:11px; outline:0; }
.stats-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; margin-bottom:16px; }
.stat-card { position:relative; overflow:hidden; min-height:92px; padding:14px; border:1px solid var(--border); border-radius:10px; background:linear-gradient(180deg,#0f141b,#0c1015); transition:.2s var(--ease); }
.stat-card::after { content:""; position:absolute; inset:auto 0 0; height:2px; background:var(--stat-color,#3a4758); opacity:.7; }
.stat-card:hover { transform:translateY(-2px); border-color:#303b49; box-shadow:var(--shadow-sm); }
.stat-label { color:#7e8999; font-size:9px; font-weight:750; letter-spacing:.11em; text-transform:uppercase; }
.stat-value { margin-top:8px; font-size:25px; font-weight:730; letter-spacing:-.055em; }
.stat-meta { color:var(--muted); font-size:10px; margin-top:2px; }
.operations-strip { display:grid; grid-template-columns:1.35fr .65fr; gap:10px; margin-bottom:16px; }
.ops-panel { border:1px solid var(--border); background:#0d1117; border-radius:10px; padding:13px 14px; min-width:0; }
.panel-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:11px; }
.panel-head h3 { margin:0; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#cfd6df; }
.panel-head small { color:var(--muted); font-size:9px; }
.workload-list { display:grid; gap:9px; }
.workload-row { display:grid; grid-template-columns:minmax(100px,145px) minmax(80px,1fr) auto; align-items:center; gap:10px; }
.person-mini { display:flex; align-items:center; gap:8px; min-width:0; }
.person-mini div { min-width:0; }
.person-mini strong { display:block; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.person-mini small { color:var(--muted); font-size:9px; }
.meter { height:5px; background:#181f28; border-radius:99px; overflow:hidden; }
.meter > span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#4a89d7,#64d0d3); transition:width .55s var(--ease); }
.workload-count { color:#8490a0; font-size:9px; min-width:42px; text-align:right; }
.attention-list { display:grid; gap:7px; }
.attention-item { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #181f28; }
.attention-item:last-child { border-bottom:0; }
.attention-dot { width:7px; height:7px; border-radius:50%; flex:0 0 auto; }
.attention-copy { min-width:0; flex:1; }
.attention-copy strong { display:block; font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.attention-copy span { color:var(--muted); font-size:9px; }

.board-shell { border-top:1px solid var(--border); padding-top:16px; }
.board-header { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:11px; }
.board-header-left { display:flex; align-items:center; gap:10px; }
.board-header h3 { margin:0; font-size:12px; letter-spacing:.04em; }
.board-hint { color:var(--muted); font-size:9px; }
.kanban-wrap { overflow-x:auto; overflow-y:hidden; padding-bottom:10px; scroll-snap-type:x proximity; }
.kanban-board { display:grid; grid-template-columns:repeat(6,minmax(248px,1fr)); gap:9px; min-width:1560px; align-items:start; }
.kanban-column {
  position:relative; min-height:420px; border:1px solid var(--border); border-radius:10px; background:rgba(12,16,22,.74);
  transition:border-color .2s var(--ease), background .2s, transform .2s var(--ease), box-shadow .2s;
  scroll-snap-align:start; overflow:hidden;
}
.kanban-column.drag-over { border-color:#4b759f; background:rgba(22,35,50,.82); box-shadow:0 0 0 3px rgba(98,168,255,.055); transform:translateY(-2px); }
.kanban-column.drag-over::after { content:"Drop to move task"; position:absolute; left:10px; right:10px; bottom:10px; height:38px; display:grid; place-items:center; border:1px dashed #4d6582; border-radius:8px; color:#8cb8e9; background:rgba(44,83,125,.08); font-size:10px; pointer-events:none; animation:fadeIn .18s; }
.column-head { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:11px 11px 10px; border-bottom:1px solid #1a222c; background:rgba(13,17,23,.96); backdrop-filter:blur(8px); }
.column-title { display:flex; align-items:center; gap:7px; font-size:9px; font-weight:800; letter-spacing:.1em; }
.column-dot { width:6px; height:6px; border-radius:50%; background:var(--status-color); box-shadow:0 0 10px color-mix(in srgb, var(--status-color) 40%, transparent); }
.column-count { min-width:22px; height:19px; padding:0 6px; display:grid; place-items:center; border:1px solid #27313d; border-radius:99px; background:#111720; color:#8d98a8; font-size:9px; }
.column-cards { min-height:365px; padding:8px; display:grid; align-content:start; gap:8px; }
.empty-column { min-height:92px; display:grid; place-items:center; border:1px dashed #222c38; border-radius:8px; color:#5f6b7b; font-size:10px; }

.task-card {
  position:relative; border:1px solid #252e3a; border-radius:9px; padding:10px; background:linear-gradient(180deg,#111720,#0e131a);
  box-shadow:0 7px 18px rgba(0,0,0,.11); cursor:grab; user-select:none; transition:transform .22s var(--ease), border-color .22s, box-shadow .22s, background .22s;
  animation:cardIn .32s var(--ease) both;
}
.task-card::before { content:""; position:absolute; left:0; top:9px; bottom:9px; width:2px; border-radius:3px; background:var(--priority-color,#536176); opacity:.75; }
.task-card:hover { transform:translateY(-2px); border-color:#354151; box-shadow:0 14px 30px rgba(0,0,0,.22); background:linear-gradient(180deg,#141b24,#10161d); }
.task-card:active { cursor:grabbing; }
.task-card.dragging { opacity:.38; transform:rotate(1.2deg) scale(.985); border-color:#4a6480; }
.task-card.just-moved { animation:glowPulse .65s var(--ease); }
.task-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.task-key { color:#687689; font-size:8px; font-weight:700; letter-spacing:.08em; }
.priority-pill,.status-pill,.category-pill,.age-pill,.mini-pill { display:inline-flex; align-items:center; gap:5px; border-radius:99px; white-space:nowrap; }
.priority-pill { padding:3px 6px; border:1px solid color-mix(in srgb, var(--priority-color) 34%, #28313c); color:var(--priority-color); background:color-mix(in srgb, var(--priority-color) 7%, #0d1218); font-size:7px; font-weight:800; letter-spacing:.07em; }
.task-card h4 { margin:0 0 7px; color:#eef2f7; font-size:11.5px; line-height:1.38; font-weight:650; letter-spacing:-.015em; }
.task-meta-line { display:flex; align-items:center; gap:6px; color:#778496; font-size:9px; margin-bottom:9px; min-width:0; }
.task-meta-line span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-special { margin:8px 0; padding:7px 8px; border:1px solid #26313e; border-radius:7px; background:#0c1117; }
.task-special strong { display:block; margin-bottom:2px; color:#909baa; font-size:7px; letter-spacing:.08em; text-transform:uppercase; }
.task-special span { color:#c4ccd7; font-size:9px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.progress-wrap { margin:8px 0; }
.progress-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:5px; color:#8c98a8; font-size:8px; }
.progress-track { position:relative; height:4px; overflow:hidden; border-radius:99px; background:#1b232d; }
.progress-track > span { display:block; height:100%; width:var(--progress,0%); border-radius:inherit; background:linear-gradient(90deg,var(--blue),var(--cyan)); transition:width .5s var(--ease); }
.task-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:7px; padding-top:8px; border-top:1px solid #1c242e; }
.avatar-stack { display:flex; align-items:center; }
.avatar-stack .mini-avatar { margin-left:-4px; }
.avatar-stack .mini-avatar:first-child { margin-left:0; }
.mini-avatar { width:22px; height:22px; display:grid; place-items:center; border:2px solid #10161d; border-radius:50%; background:#243246; color:#dce9fb; font-size:7px; font-weight:800; }
.card-time { text-align:right; min-width:0; }
.card-time strong { display:block; color:#abb5c2; font-size:8px; font-weight:600; }
.card-time span { display:block; margin-top:1px; color:#667385; font-size:7px; }
.card-time.overdue strong { color:var(--red); }
.age-pill { padding:3px 6px; border:1px solid #252e39; background:#0d1218; color:#7f8b9b; font-size:7px; }

/* Lists / tables */
.table-card { border:1px solid var(--border); border-radius:10px; overflow:hidden; background:#0d1117; }
.task-table { width:100%; border-collapse:collapse; }
.task-table th { padding:10px 12px; text-align:left; background:#0f141b; border-bottom:1px solid var(--border); color:#707d8f; font-size:8px; letter-spacing:.11em; text-transform:uppercase; font-weight:800; }
.task-table td { padding:11px 12px; border-bottom:1px solid #19212b; color:#bec7d2; font-size:10px; vertical-align:middle; }
.task-table tr:last-child td { border-bottom:0; }
.task-table tbody tr { transition:.16s; cursor:pointer; }
.task-table tbody tr:hover { background:#111821; }
.table-task-title { display:grid; gap:2px; }
.table-task-title strong { color:#eef2f6; font-size:11px; }
.table-task-title span { color:#6e7b8d; font-size:8px; }
.status-pill { padding:4px 7px; border:1px solid color-mix(in srgb, var(--status-color) 35%, #27313c); background:color-mix(in srgb, var(--status-color) 7%, #0d1218); color:var(--status-color); font-size:7px; font-weight:800; letter-spacing:.065em; }
.category-pill { padding:4px 7px; border:1px solid #29323d; color:#9ca7b6; background:#11171e; font-size:8px; }

/* Team */
.team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.team-card { position:relative; overflow:hidden; border:1px solid var(--border); border-radius:11px; background:linear-gradient(180deg,#0f141b,#0c1015); padding:15px; transition:.22s var(--ease); cursor:pointer; }
.team-card:hover { transform:translateY(-2px); border-color:#344051; box-shadow:var(--shadow-sm); }
.team-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.team-person { display:flex; align-items:center; gap:10px; }
.team-person .avatar { width:38px; height:38px; font-size:10px; }
.team-person strong { display:block; font-size:12px; }
.team-person span { color:var(--muted); font-size:9px; }
.team-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-top:15px; }
.team-metric { padding:8px; border:1px solid #1e2732; border-radius:8px; background:#0c1117; }
.team-metric strong { display:block; font-size:15px; letter-spacing:-.04em; }
.team-metric span { color:#728093; font-size:7px; text-transform:uppercase; letter-spacing:.07em; }
.team-contact { margin-top:12px; padding-top:10px; border-top:1px solid #1a222d; display:flex; align-items:center; justify-content:space-between; gap:10px; color:#8f9bab; font-size:9px; }

/* Activity */
.activity-layout { display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:12px; }
.activity-feed { border:1px solid var(--border); border-radius:10px; background:#0d1117; padding:7px 14px; }
.activity-entry { position:relative; display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:9px; padding:13px 0; border-bottom:1px solid #1a222c; }
.activity-entry:last-child { border-bottom:0; }
.activity-symbol { width:23px; height:23px; display:grid; place-items:center; border:1px solid #2b3541; border-radius:50%; background:#111821; color:#7e9dc1; font-size:8px; }
.activity-entry strong { display:block; color:#dce2ea; font-size:10px; font-weight:600; line-height:1.45; }
.activity-entry small { color:#667385; font-size:8px; }
.activity-time { color:#6f7c8e; font-size:8px; white-space:nowrap; padding-top:2px; }
.activity-side { display:grid; gap:10px; align-content:start; }
.mini-panel { border:1px solid var(--border); border-radius:10px; background:#0d1117; padding:13px; }
.mini-panel h3 { margin:0 0 10px; font-size:10px; letter-spacing:.08em; text-transform:uppercase; }

/* Settings */
.settings-layout { max-width:980px; display:grid; gap:12px; }
.settings-section { border:1px solid var(--border); border-radius:11px; background:#0d1117; overflow:hidden; }
.settings-section-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 15px; border-bottom:1px solid var(--border); }
.settings-section-head h3 { margin:0 0 3px; font-size:12px; }
.settings-section-head p { margin:0; color:var(--muted); font-size:9px; }
.settings-body { padding:0 15px; }
.settings-row { min-height:55px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid #19212b; }
.settings-row:last-child { border-bottom:0; }
.settings-row-copy { min-width:0; }
.settings-row-copy strong { display:block; font-size:10px; font-weight:600; }
.settings-row-copy span { display:block; margin-top:2px; color:#758294; font-size:8px; }
.settings-control { display:flex; align-items:center; gap:8px; }
.settings-control input[type="number"],.settings-control select { width:112px; height:33px; border:1px solid #2a3543; border-radius:7px; background:#10161e; color:#d0d7e1; padding:0 8px; font-size:9px; }
.switch { position:relative; width:36px; height:20px; display:inline-block; }
.switch input { opacity:0; width:0; height:0; }
.switch span { position:absolute; inset:0; border-radius:99px; background:#232c37; border:1px solid #303b49; transition:.2s; }
.switch span::after { content:""; position:absolute; width:14px; height:14px; left:2px; top:2px; border-radius:50%; background:#909baa; transition:.22s var(--ease); }
.switch input:checked + span { background:rgba(69,213,138,.16); border-color:rgba(69,213,138,.45); }
.switch input:checked + span::after { transform:translateX(16px); background:var(--green); }
.team-directory { width:100%; border-collapse:collapse; }
.team-directory td { padding:10px 0; border-bottom:1px solid #19212b; font-size:9px; }
.team-directory tr:last-child td { border-bottom:0; }
.team-directory .contact-name { display:flex; align-items:center; gap:8px; }
.team-directory strong { font-size:10px; }
.team-directory span { color:var(--muted); }
.inline-input { height:31px; border:1px solid #293441; border-radius:7px; background:#0e141b; padding:0 8px; color:#d7dee7; font-size:9px; outline:0; transition:.2s; }
.inline-input:focus { border-color:#47627f; box-shadow:0 0 0 3px rgba(98,168,255,.05); }

/* Drawer */
.drawer-backdrop { position:fixed; inset:0; z-index:90; background:rgba(0,0,0,.58); backdrop-filter:blur(3px); opacity:1; transition:opacity .28s var(--ease), visibility .28s; }
.drawer-backdrop.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.task-drawer { position:fixed; z-index:100; top:0; right:0; width:min(700px,92vw); height:100vh; background:#0b0f14; border-left:1px solid #29323d; box-shadow:-30px 0 90px rgba(0,0,0,.5); transform:translateX(103%); transition:transform .34s var(--ease); overflow-y:auto; }
.task-drawer.open { transform:translateX(0); }
.task-drawer.open #task-drawer-content { animation:fadeIn .28s .05s both; }
.drawer-head { position:sticky; top:0; z-index:4; padding:15px 18px; border-bottom:1px solid var(--border); background:rgba(11,15,20,.94); backdrop-filter:blur(16px); }
.drawer-head-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.drawer-head h2 { margin:5px 0 8px; font-size:21px; line-height:1.2; }
.drawer-badges { display:flex; flex-wrap:wrap; gap:6px; }
.drawer-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.drawer-body { padding:16px 18px 28px; display:grid; gap:14px; }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.detail-cell { min-height:58px; padding:10px; border:1px solid #252f3b; border-radius:8px; background:#0f141b; }
.detail-cell span { display:block; margin-bottom:5px; color:#718094; font-size:7px; letter-spacing:.09em; text-transform:uppercase; }
.detail-cell strong { color:#e7ebf1; font-size:10px; font-weight:600; }
.drawer-section { padding-top:13px; border-top:1px solid var(--border); }
.drawer-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
.drawer-section-head strong { font-size:9px; letter-spacing:.09em; text-transform:uppercase; }
.drawer-section-head span { color:#8090a4; font-size:8px; }
.description-text { margin:0; color:#b7c1ce; font-size:10px; line-height:1.7; white-space:pre-wrap; }
.subtask-list { display:grid; gap:6px; }
.subtask-row { min-height:38px; display:flex; align-items:center; gap:9px; padding:7px 9px; border:1px solid #222c37; border-radius:8px; background:#0e141a; transition:.18s; }
.subtask-row:hover { border-color:#303c4b; }
.subtask-row input[type="checkbox"] { width:14px; height:14px; accent-color:var(--green); }
.subtask-row label { flex:1; color:#c4ccd7; font-size:9px; }
.subtask-row.done label { text-decoration:line-through; color:#788494; }
.subtask-row time { color:#637184; font-size:7px; }
.add-inline { display:flex; gap:7px; margin-top:7px; }
.add-inline input { flex:1; min-width:0; height:36px; border:1px solid #27313e; border-radius:8px; background:#0e141a; padding:0 10px; outline:0; font-size:10px; }
.add-inline input:focus { border-color:#425b78; }
.timeline { display:grid; }
.timeline-item { position:relative; display:grid; grid-template-columns:14px minmax(0,1fr); gap:9px; padding:0 0 14px; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-item::before { content:""; position:absolute; left:5px; top:12px; bottom:-1px; width:1px; background:#2a3541; }
.timeline-item:last-child::before { display:none; }
.timeline-dot { width:11px; height:11px; margin-top:2px; border:2px solid #4a607a; border-radius:50%; background:#0b0f14; box-shadow:0 0 0 2px #0b0f14; }
.timeline-copy strong { display:block; color:#d0d7e1; font-size:9px; font-weight:550; line-height:1.45; }
.timeline-copy span { display:block; margin-top:2px; color:#637184; font-size:7px; }
.comment-list { display:grid; gap:7px; }
.comment { padding:9px; border:1px solid #222c37; border-radius:8px; background:#0e141a; }
.comment-head { display:flex; justify-content:space-between; gap:8px; margin-bottom:4px; }
.comment-head strong { font-size:8px; }
.comment-head time { color:#637184; font-size:7px; }
.comment p { margin:0; color:#aeb8c5; font-size:9px; line-height:1.55; }

/* Modals */
.modal-backdrop { position:fixed; inset:0; z-index:150; display:grid; place-items:center; padding:20px; background:rgba(0,0,0,.66); backdrop-filter:blur(5px); opacity:1; visibility:visible; transition:opacity .22s, visibility .22s; }
.modal-backdrop.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.modal-backdrop.transition-layer { z-index:220; }
.modal { width:min(650px,calc(100vw - 34px)); max-height:calc(100vh - 40px); overflow:auto; border:1px solid #2d3846; border-radius:12px; background:#0d1218; box-shadow:0 36px 110px rgba(0,0,0,.62); animation:modalIn .28s var(--ease) both; }
.transition-modal { width:min(490px,calc(100vw - 34px)); }
.contacts-modal { width:min(620px,calc(100vw - 34px)); }
.modal-header { position:sticky; top:0; z-index:2; display:flex; align-items:flex-start; justify-content:space-between; gap:15px; padding:15px 16px; border-bottom:1px solid var(--border); background:rgba(13,18,24,.96); backdrop-filter:blur(16px); }
.modal-header h2 { margin-top:3px; }
.close-btn { font-size:18px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:15px 16px 16px; }
.field { display:grid; gap:6px; }
.field.full,.full { grid-column:1/-1; }
.field > span { color:#9ba6b6; font-size:8px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.field > span small { color:#657184; font-weight:500; text-transform:none; letter-spacing:0; }
.field input,.field textarea,.field select { width:100%; border:1px solid #2a3542; border-radius:8px; background:#0b1016; padding:9px 10px; outline:0; font-size:10px; transition:.2s; resize:vertical; }
.field input,.field select { min-height:38px; }
.field input:focus,.field textarea:focus,.field select:focus { border-color:#446183; box-shadow:0 0 0 3px rgba(98,168,255,.055); background:#0e141b; }
.assignee-selector { display:flex; flex-wrap:wrap; gap:7px; }
.assignee-option { position:relative; }
.assignee-option input { position:absolute; opacity:0; }
.assignee-option span { display:flex; align-items:center; gap:7px; min-height:35px; padding:0 10px 0 6px; border:1px solid #293442; border-radius:8px; background:#0d131a; color:#aab5c2; font-size:9px; transition:.18s; }
.assignee-option input:checked + span { color:#e8edf4; border-color:#446486; background:#121d29; box-shadow:0 0 0 2px rgba(98,168,255,.04); }
.modal-actions { display:flex; justify-content:flex-end; gap:8px; padding:14px 16px 16px; border-top:1px solid var(--border); margin-top:14px; }
.form-grid .modal-actions { padding:14px 0 0; margin-top:2px; }
.transition-preview { margin:15px 16px 12px; padding:10px; border:1px solid #273240; border-radius:8px; background:#0b1016; color:#96a2b2; font-size:9px; }
.transition-preview strong { display:block; color:#e3e8ef; font-size:11px; margin-bottom:4px; }
#transition-body > .field { margin:0 16px 10px; }
.import-help { margin:15px 16px 10px; padding:10px 11px; border:1px solid #243140; border-radius:8px; background:#0b1118; display:grid; gap:3px; }
.import-help strong { font-size:9px; }
.import-help span { color:#7f8b9b; font-size:8px; }
code { padding:2px 5px; border-radius:4px; background:#151c25; color:#94c7ff; }
.file-drop { margin:0 16px 12px; min-height:108px; display:grid; place-items:center; align-content:center; gap:4px; border:1px dashed #334358; border-radius:9px; background:#0b1016; transition:.2s; }
.file-drop:hover,.file-drop.drag { border-color:#53789f; background:#101924; }
.file-drop input { display:none; }
.file-drop-icon { font-size:20px; color:#6eaef1; }
.file-drop strong { font-size:10px; }
.file-drop small { color:#6c7889; font-size:8px; }
.import-divider { display:flex; align-items:center; gap:10px; margin:0 16px 12px; color:#607084; font-size:8px; }
.import-divider::before,.import-divider::after { content:""; flex:1; height:1px; background:#1f2833; }
.contacts-modal > .field { margin:0 16px; }
.import-preview { margin:10px 16px 0; max-height:140px; overflow:auto; }
.preview-row { display:grid; grid-template-columns:1fr 1fr auto; gap:8px; align-items:center; padding:7px 8px; border-bottom:1px solid #1d2630; font-size:8px; }
.preview-row strong { font-size:9px; }
.preview-row span { color:#7e8a9a; }
.preview-row em { color:var(--green); font-style:normal; }

/* Notifications */
.notification-panel { position:fixed; z-index:130; top:67px; right:22px; width:min(360px,calc(100vw - 32px)); max-height:520px; overflow:hidden; border:1px solid #2b3542; border-radius:11px; background:#0d1218; box-shadow:var(--shadow); transform:translateY(-8px) scale(.985); transform-origin:top right; opacity:0; visibility:hidden; transition:.22s var(--ease); }
.notification-panel.open { transform:none; opacity:1; visibility:visible; }
.notification-panel-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px; border-bottom:1px solid var(--border); }
.notification-panel-head strong { display:block; margin-top:2px; font-size:11px; }
.notification-list { max-height:440px; overflow:auto; }
.notification-item { display:grid; grid-template-columns:8px minmax(0,1fr); gap:9px; padding:11px 13px; border-bottom:1px solid #19212b; transition:.16s; }
.notification-item:hover { background:#111820; }
.notification-item.unread { background:rgba(98,168,255,.035); }
.notification-dot { width:6px; height:6px; margin-top:4px; border-radius:50%; background:#3d4a5a; }
.notification-item.unread .notification-dot { background:var(--blue); box-shadow:0 0 9px rgba(98,168,255,.45); }
.notification-copy strong { display:block; font-size:9px; line-height:1.4; }
.notification-copy span { display:block; margin-top:3px; color:#69778a; font-size:7px; }
.notification-empty { padding:26px 14px; text-align:center; color:#697688; font-size:9px; }

/* Onboarding */
.onboarding { position:fixed; inset:0; z-index:900; display:grid; place-items:center; padding:20px; background:rgba(3,5,8,.82); backdrop-filter:blur(12px); transition:.3s; }
.onboarding.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.onboarding-card { position:relative; width:min(720px,calc(100vw - 34px)); min-height:390px; display:grid; grid-template-columns:1fr 1fr; overflow:hidden; border:1px solid #2b3746; border-radius:16px; background:#0d1218; box-shadow:0 40px 130px rgba(0,0,0,.68); animation:modalIn .45s var(--ease) both; }
.onboarding-close { position:absolute; z-index:3; top:12px; right:12px; width:32px; height:32px; border:1px solid #293440; border-radius:8px; background:#0f151c; color:#8995a5; font-size:16px; }
.onboarding-visual { position:relative; overflow:hidden; min-height:390px; border-right:1px solid #25303c; background:radial-gradient(circle at 45% 35%,rgba(74,133,197,.16),transparent 18rem),#090d12; }
.onboarding-visual::after { content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size:24px 24px; mask-image:linear-gradient(to bottom,black,transparent 92%); }
.tour-board { position:absolute; z-index:1; inset:55px 32px; display:grid; grid-template-columns:repeat(3,1fr); gap:7px; transform:rotate(-2deg); }
.tour-col { border:1px solid #293746; border-radius:8px; background:rgba(13,19,26,.93); padding:8px; }
.tour-col strong { display:block; color:#7f8ea1; font-size:7px; margin-bottom:8px; }
.tour-task { height:50px; margin-bottom:6px; border:1px solid #2b3948; border-radius:6px; background:linear-gradient(180deg,#19222d,#111821); position:relative; overflow:hidden; }
.tour-task::after { content:""; position:absolute; left:7px; right:18px; top:10px; height:4px; border-radius:4px; background:#65758a; box-shadow:0 10px 0 #334152,0 20px 0 #24303d; }
.tour-timeline { position:absolute; z-index:1; left:52px; right:52px; top:55px; display:grid; gap:0; }
.tour-line-item { position:relative; padding:0 0 24px 28px; color:#a6b2c1; font-size:8px; }
.tour-line-item::before { content:""; position:absolute; left:6px; top:8px; bottom:-1px; width:1px; background:#344151; }
.tour-line-item::after { content:""; position:absolute; left:2px; top:2px; width:9px; height:9px; border:2px solid #6098cf; border-radius:50%; background:#0a0f14; }
.tour-line-item:last-child::before { display:none; }
.onboarding-copy { padding:48px 36px 28px; display:flex; flex-direction:column; }
.onboarding-copy h2 { margin:7px 0 12px; font-size:25px; }
.onboarding-copy p { color:#909cab; font-size:11px; line-height:1.7; max-width:330px; }
.onboarding-footer { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.onboarding-dots { display:flex; gap:5px; }
.onboarding-dots i { width:6px; height:6px; border-radius:50%; background:#33404f; transition:.2s; }
.onboarding-dots i.active { width:18px; border-radius:99px; background:var(--blue); }

/* Toast */
.toast-root { position:fixed; z-index:500; right:18px; bottom:18px; width:min(350px,calc(100vw - 36px)); display:grid; gap:8px; pointer-events:none; }
.toast { pointer-events:auto; display:grid; grid-template-columns:8px minmax(0,1fr) auto; gap:10px; align-items:start; padding:11px 12px; border:1px solid #303a47; border-radius:9px; background:#111820; box-shadow:var(--shadow-sm); animation:toastIn .27s var(--ease) both; }
.toast-dot { width:7px; height:7px; margin-top:3px; border-radius:50%; background:var(--blue); }
.toast.success .toast-dot { background:var(--green); }
.toast.warning .toast-dot { background:var(--amber); }
.toast.error .toast-dot { background:var(--red); }
.toast strong { display:block; font-size:9px; }
.toast span { display:block; margin-top:2px; color:#788597; font-size:8px; line-height:1.4; }
.toast button { border:0; background:transparent; color:#7d8999; font-size:14px; padding:0; }

/* Small helpers */
.muted { color:var(--muted); }
.hidden { display:none!important; }
.no-results { min-height:220px; display:grid; place-items:center; text-align:center; border:1px dashed #25303b; border-radius:10px; color:#687688; }
.no-results strong { display:block; color:#aeb8c5; font-size:11px; margin-bottom:4px; }
.no-results span { font-size:9px; }
.empty-state { padding:20px; text-align:center; color:#6f7c8d; font-size:9px; }

/* Responsive */
@media (max-width: 1240px) {
  .stats-grid { grid-template-columns:repeat(3,1fr); }
  .operations-strip { grid-template-columns:1fr; }
  .search-box { width:250px; }
  .user-switcher-copy { display:none; }
}

@media (max-width: 900px) {
  :root { --sidebar-w:210px; }
  .team-grid { grid-template-columns:1fr 1fr; }
  .activity-layout { grid-template-columns:1fr; }
  .activity-side { grid-template-columns:1fr 1fr; }
  .search-box { display:none; }
}

@media (max-width: 720px) {
  .app-shell { grid-template-columns:1fr; }
  .sidebar { position:fixed; inset:0 auto 0 0; width:230px; transform:translateX(-105%); transition:transform .28s var(--ease); box-shadow:30px 0 80px rgba(0,0,0,.55); }
  .sidebar.open { transform:none; }
  .mobile-menu { display:grid; place-items:center; }
  .topbar { min-height:68px; padding:10px 12px; }
  .content { min-height:calc(100vh - 68px); padding:14px 12px 24px; }
  .topbar-actions { gap:6px; }
  .new-task-button { padding:0 10px; }
  .new-task-button { font-size:0; }
  .new-task-button span { font-size:18px; margin:0; }
  .stats-grid { grid-template-columns:repeat(2,1fr); gap:7px; }
  .stat-card { min-height:82px; }
  .operations-strip { display:none; }
  .dashboard-intro { align-items:flex-start; flex-direction:column; }
  .board-tools { width:100%; overflow:auto; }
  .kanban-board { min-width:1480px; }
  .team-grid { grid-template-columns:1fr; }
  .detail-grid { grid-template-columns:1fr; }
  .task-drawer { width:100vw; }
  .form-grid { grid-template-columns:1fr; }
  .field.full,.full { grid-column:auto; }
  .onboarding-card { grid-template-columns:1fr; width:min(520px,calc(100vw - 24px)); }
  .onboarding-visual { min-height:220px; border-right:0; border-bottom:1px solid #25303c; }
  .onboarding-copy { padding:28px 24px 22px; }
  .tour-board { inset:30px 24px; }
  .tour-timeline { top:32px; left:35px; right:35px; }
  .activity-side { grid-template-columns:1fr; }
  .settings-section-head { align-items:flex-start; flex-direction:column; }
  .team-directory { display:block; overflow-x:auto; }
}

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


/* =========================================================
   V3 — presentation, scale, motion and Windows drag polish
   ========================================================= */

:root {
  --sidebar-w: 246px;
  --radius: 14px;
  --radius-sm: 10px;
}

body {
  font-size: 15px;
  background:
    radial-gradient(circle at 72% -18%, rgba(67, 117, 171, .10), transparent 32rem),
    radial-gradient(circle at 18% 110%, rgba(45, 83, 124, .055), transparent 34rem),
    #080b10;
}

/* New animated loader */
.boot-overlay {
  gap: 28px;
  align-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(71, 129, 190, .12), transparent 21rem),
    linear-gradient(180deg, #070a0e, #05070a);
}
.boot-scene {
  position: relative;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
}
.boot-core {
  position: relative;
  z-index: 4;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid #344455;
  border-radius: 18px;
  background: linear-gradient(145deg, #151c25, #0a0e13);
  box-shadow: 0 18px 60px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.04);
}
.boot-core span { font-size: 20px; font-weight: 900; letter-spacing: -.08em; }
.boot-core i {
  position: absolute;
  width: 7px; height: 7px;
  right: 9px; bottom: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(69,213,138,.75);
  animation: pulse 1.5s infinite;
}
.boot-orbit {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(89, 130, 171, .19);
  border-radius: 50%;
}
.orbit-a { animation: bootOrbit 3.8s linear infinite; }
.orbit-b {
  inset: 28px;
  border-style: dashed;
  border-color: rgba(98,168,255,.18);
  animation: bootOrbitReverse 2.8s linear infinite;
}
.boot-orbit::before,
.boot-orbit::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #6eaef1;
  box-shadow: 0 0 13px rgba(98,168,255,.72);
}
.boot-orbit::before { top: 11px; left: 23px; }
.boot-orbit::after { right: 14px; bottom: 23px; background: #54d7dc; }
.boot-sweep {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  overflow: hidden;
  animation: bootOrbit 2.2s linear infinite;
}
.boot-sweep::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 50%; height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(98,168,255,.6), transparent);
}
.boot-node {
  position: absolute;
  z-index: 2;
  width: 8px; height: 8px;
  border: 1px solid #4c6988;
  border-radius: 50%;
  background: #0c1219;
  box-shadow: 0 0 0 5px rgba(98,168,255,.035);
  animation: nodeBlink 1.8s ease-in-out infinite;
}
.node-a { left: 3px; top: 65px; }
.node-b { right: 12px; top: 22px; animation-delay: .45s; }
.node-c { right: 22px; bottom: 12px; animation-delay: .9s; }
.boot-copy { text-align: center; display: grid; gap: 8px; }
.boot-copy strong { font-size: 13px; letter-spacing: .18em; }
.boot-copy > span { min-width: 240px; color: #8492a3; font-size: 12px; }
.boot-dots { display: flex; justify-content: center; gap: 6px; margin-top: 3px; }
.boot-dots i {
  width: 4px; height: 4px; border-radius: 50%;
  background: #435266;
  animation: bootDot 1.2s ease-in-out infinite;
}
.boot-dots i:nth-child(2) { animation-delay: .16s; }
.boot-dots i:nth-child(3) { animation-delay: .32s; }

@keyframes bootOrbit { to { transform: rotate(360deg); } }
@keyframes bootOrbitReverse { to { transform: rotate(-360deg); } }
@keyframes nodeBlink { 0%,100% { opacity:.28; transform:scale(.75); } 50% { opacity:1; transform:scale(1.08); } }
@keyframes bootDot { 0%,100% { transform:translateY(0); opacity:.35; } 50% { transform:translateY(-4px); opacity:1; background:#62a8ff; } }

/* Navigation / top bar */
.sidebar { padding: 20px 13px 15px; }
.brand { padding: 2px 8px 27px; }
.brand-mark { width: 42px; height: 42px; border-radius: 11px; }
.brand-copy strong { font-size: 12px; }
.brand-copy span { font-size: 11px; }
.nav-item { padding: 11px 12px; font-size: 13px; border-radius: 9px; }
.nav-icon { width: 19px; font-size: 16px; }
.sidebar-status { margin-top: 14px; }
.sidebar-status-line { padding: 12px; }
.sidebar-status-line strong { font-size: 11px; }
.sidebar-status-line span:last-child { font-size: 10px; }

.topbar { min-height: 82px; padding: 13px 25px; }
h1 { font-size: 22px; }
.eyebrow { font-size: 10px; }
.search-box { width: min(390px, 32vw); height: 43px; padding: 0 12px; border-radius: 10px; }
.search-box input { font-size: 13px; }
.icon-btn { min-width: 40px; height: 40px; border-radius: 9px; }
.user-switcher { height: 43px; }
.user-switcher-copy strong { font-size: 12px; }
.user-switcher-copy small { font-size: 9px; }

.avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  aspect-ratio: 1 / 1;
  flex: 0 0 30px;
  border-radius: 8px;
}
.avatar.round {
  border-radius: 50%;
  overflow: hidden;
}

/* Main canvas */
.content { min-height: calc(100vh - 82px); padding: 26px 26px 42px; }
.view-enter { animation: pageEnter .32s var(--ease) both; }
@keyframes pageEnter { from { opacity: .2; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.dashboard-intro { margin-bottom: 22px; align-items: center; }
.dashboard-intro h2 { margin: 4px 0 7px; font-size: 25px; line-height: 1.15; }
.dashboard-intro p { max-width: 720px; font-size: 13px; line-height: 1.55; }
.dashboard-intro-premium { padding: 4px 0 0; }
.board-tools { display: flex; gap: 9px; align-items: center; }
.filter-select { min-height: 40px; min-width: 145px; font-size: 12px; padding: 0 34px 0 11px; }

/* Dashboard no longer repeats six identical stat cards */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(330px, .85fr) minmax(330px, .85fr);
  gap: 12px;
  margin-bottom: 22px;
}
.overview-hero,
.overview-side {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18,25,34,.98), rgba(11,15,21,.98));
}
.overview-hero {
  min-height: 214px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 14%, rgba(98,168,255,.12), transparent 14rem),
    linear-gradient(145deg, #111821, #0b1016);
}
.overview-hero::after {
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to left, black, transparent 80%);
}
.overview-hero-top {
  position:relative; z-index:1;
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
}
.overview-hero h3 { margin: 7px 0 0; font-size: 19px; letter-spacing: -.025em; }
.health-badge {
  display:inline-flex; align-items:center; min-height:28px; padding:0 10px;
  border:1px solid #284937; border-radius:999px;
  background:rgba(69,213,138,.075); color:#71dfa4; font-size:10px; font-weight:750;
}
.health-badge.risk { border-color:#553136; background:rgba(255,107,114,.075); color:#ff8a90; }
.overview-hero-metrics {
  position:relative; z-index:1;
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:8px; margin-top:36px;
}
.overview-hero-metrics div { display:grid; gap:5px; }
.overview-hero-metrics strong { font-size:27px; letter-spacing:-.05em; }
.overview-hero-metrics span { color:#778598; font-size:10px; }
.overview-line { position:relative; z-index:1; height:4px; margin-top:21px; overflow:hidden; border-radius:99px; background:#1b2632; }
.overview-line span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#62a8ff,#54d7dc); transition:width .65s var(--ease); }

.overview-side { padding: 18px; min-height: 214px; }
.panel-head { margin-bottom: 14px; }
.panel-head h3 { margin:0; font-size:13px; }
.panel-head small { color:#667487; font-size:10px; }
.workload-list { gap: 12px; }
.workload-row { grid-template-columns:minmax(125px,1fr) minmax(80px,1fr) auto; gap:10px; }
.person-mini .avatar { width:28px; height:28px; min-width:28px; flex-basis:28px; font-size:8px; }
.person-mini strong { font-size:11px; }
.person-mini small { font-size:9px; }
.workload-count { font-size:9px; }
.attention-item { padding: 10px 0; }
.attention-copy strong { font-size: 11px; }
.attention-copy span { font-size: 9px; }

/* My Tasks stats: larger and readable */
.stats-grid { gap: 10px; margin-bottom: 20px; }
.stat-card { min-height: 105px; padding: 16px; border-radius: 12px; }
.stat-label { font-size: 9px; }
.stat-value { margin-top: 8px; font-size: 27px; }
.stat-meta { margin-top: 5px; font-size: 10px; }

/* Board */
.board-shell { padding-top: 0; border-top: 0; }
.board-header {
  display:flex; align-items:flex-end; justify-content:space-between; gap:18px;
  margin-bottom:12px; padding: 0 2px;
}
.board-header-left { display:flex; align-items:flex-end; gap:18px; min-width:0; }
.board-header-left h3 { margin:3px 0 0; font-size:16px; }
.board-hint { max-width: 520px; color:#6f7d8f; font-size:10px; line-height:1.45; }
.board-visible-count {
  min-width:74px; display:grid; justify-items:end; gap:1px;
}
.board-visible-count strong { font-size:19px; letter-spacing:-.04em; }
.board-visible-count span { color:#69778a; font-size:9px; }

.kanban-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 15px;
  scroll-snap-type: x proximity;
}
.kanban-board {
  grid-template-columns: repeat(6, 318px);
  min-width: max-content;
  gap: 11px;
}
.kanban-column {
  position:relative;
  min-height: 610px;
  max-height: calc(100vh - 220px);
  overflow:hidden;
  border:1px solid #202a36;
  border-radius:13px;
  background:linear-gradient(180deg,rgba(14,19,26,.98),rgba(10,14,19,.98));
  scroll-snap-align:start;
  transition:border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease), box-shadow .18s;
}
.kanban-column::before {
  content:"";
  position:absolute; left:0; right:0; top:0; height:2px;
  background:var(--status-color);
  opacity:.6;
  z-index:4;
}
.kanban-column.drag-over {
  border-color: color-mix(in srgb, var(--status-color) 62%, #4d5a69);
  background: color-mix(in srgb, #101923 94%, var(--status-color) 6%);
  transform: translateY(-3px);
  box-shadow: 0 14px 42px rgba(0,0,0,.25), inset 0 0 0 1px color-mix(in srgb, var(--status-color) 28%, transparent);
}
.kanban-column.drag-over::after {
  content:"Release to move here";
  bottom:12px; height:42px; left:12px; right:12px;
  border-radius:9px;
  font-size:10px;
  font-weight:700;
}
.column-head {
  min-height: 48px;
  padding: 13px 13px 11px;
  background: rgba(13,18,24,.97);
}
.column-title { font-size:10px; letter-spacing:.09em; }
.column-count { min-width:23px; height:23px; font-size:9px; }
.column-cards {
  height: calc(100% - 48px);
  max-height: calc(100vh - 268px);
  overflow-y:auto;
  padding: 11px;
}
.empty-column { min-height: 90px; font-size: 10px; }

/* Task cards */
.task-card {
  position: relative;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  min-height: 198px;
  border: 1px solid #26313e;
  border-radius: 11px;
  background: linear-gradient(180deg,#131a23,#0f151c);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  animation: cardIn .28s var(--ease) both;
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s, background .18s, opacity .18s;
}
.task-card::before { display:none; }
.task-card-accent {
  position:absolute; left:0; top:12px; bottom:12px;
  width:3px; border-radius:0 4px 4px 0;
  background:var(--priority-color);
  opacity:.85;
}
.task-card:hover {
  transform: translateY(-3px);
  border-color:#3a495b;
  box-shadow:0 18px 38px rgba(0,0,0,.27);
  background:linear-gradient(180deg,#17202a,#111821);
}
.task-card.dragging {
  opacity:.18;
  transform:scale(.985);
}
.task-card-top { margin-bottom:10px; }
.task-key { font-size:9px; }
.priority-pill,.status-pill { min-height:23px; padding:0 8px; font-size:8px; }
.task-card h4 {
  margin:0 0 7px;
  font-size:14px;
  line-height:1.35;
  font-weight:680;
  letter-spacing:-.02em;
}
.task-card-description {
  margin:0 0 11px;
  color:#7f8c9d;
  font-size:10.5px;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.task-meta-line { gap:6px; margin-bottom:11px; }
.meta-chip {
  display:inline-flex; align-items:center; min-height:22px; padding:0 7px;
  border:1px solid #273443; border-radius:6px;
  color:#8da1b7; background:#0d1319; font-size:8.5px;
}
.meta-location {
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:#657487; font-size:9px;
}
.progress-wrap { margin: 4px 0 12px; }
.progress-row { font-size:9px; text-transform:none; letter-spacing:0; }
.progress-track { height:5px; }
.task-special { margin:4px 0 11px; padding:9px 10px; border-radius:8px; }
.task-special strong { font-size:8px; }
.task-special span { font-size:9px; line-height:1.4; }
.task-card-bottom { padding-top:11px; }
.task-owner-block { display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
.avatar-stack { min-height:27px; }
.mini-avatar {
  width:27px; height:27px; min-width:27px;
  border-radius:50%;
  font-size:8px;
  border-width:2px;
}
.age-pill { min-height:21px; padding:0 7px; font-size:8px; }
.card-time strong { font-size:9px; }
.card-time span { font-size:8px; }
.drag-hint {
  position:absolute; right:10px; bottom:8px;
  display:flex; align-items:center; gap:3px;
  color:#465568; font-size:7px; opacity:0;
  transition:opacity .18s;
}
.task-card:hover .drag-hint { opacity:1; }

.drag-ghost {
  position:fixed!important;
  left:0!important; top:0!important;
  z-index:9999!important;
  margin:0!important;
  pointer-events:none!important;
  opacity:.97!important;
  cursor:grabbing!important;
  transform-origin: top left;
  box-shadow:0 28px 70px rgba(0,0,0,.54)!important;
  border-color:#536a84!important;
  transition:opacity .14s var(--ease), filter .14s!important;
  animation:none!important;
}
.drag-ghost.dropping { opacity:0!important; filter:blur(2px); }
body.is-dragging,
body.is-dragging * { cursor:grabbing!important; }

/* Tables / list pages */
.list-page-head { margin-bottom: 18px; }
.list-summary {
  display:flex; align-items:center; gap:7px; flex-wrap:wrap;
}
.list-summary span {
  min-height:43px; min-width:78px;
  display:grid; align-content:center; gap:1px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#0e1319;
  color:#758397; font-size:9px;
}
.list-summary strong { color:#eef3f8; font-size:15px; }
.danger-text strong { color:var(--red); }
.list-toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom:10px;
  color:#6e7c8e; font-size:10px;
}
.table-card-large { border-radius:12px; }
.task-table th { padding:13px 15px; font-size:9px; }
.task-table td { padding:15px; font-size:12px; }
.task-table tbody tr:hover { background:#121a23; }
.table-task-title { gap:4px; }
.table-task-title strong { font-size:13px; line-height:1.3; }
.table-task-title span { font-size:9px; }
.table-assignee { display:flex; align-items:center; gap:9px; min-width:155px; }
.table-assignee > span:last-child { font-size:11px; color:#b8c2cf; }

/* Team */
.team-grid-premium { gap:13px; }
.team-card-premium { padding:18px; min-height:210px; border-radius:13px; }
.team-avatar {
  width:42px!important; height:42px!important;
  min-width:42px!important; min-height:42px!important;
  flex:0 0 42px!important;
  font-size:11px!important;
}
.team-person strong { font-size:13px; }
.team-person span { font-size:10px; }
.member-state {
  display:inline-flex; align-items:center; min-height:25px; padding:0 8px;
  border:1px solid #293544; border-radius:999px;
  color:#8c9bad; background:#0d131a; font-size:8px;
}
.team-metrics { grid-template-columns:repeat(4,1fr); margin:22px 0 19px; }
.team-metric strong { font-size:22px; }
.team-metric span { font-size:8px; }
.metric-risk strong { color:var(--red); }
.team-contact { font-size:9px; }

/* Activity */
.activity-feed { border-radius:12px; padding:9px 17px; }
.activity-entry { grid-template-columns:30px minmax(0,1fr) auto; gap:11px; padding:15px 0; }
.activity-symbol { width:28px; height:28px; font-size:9px; }
.activity-entry strong { font-size:11px; }
.activity-entry small { font-size:9px; }
.activity-time { font-size:9px; }

/* Settings: compact and manager-ready */
.settings-layout-clean { max-width:900px; gap:14px; }
.settings-section { border-radius:12px; }
.settings-section-head { padding:16px 17px; }
.settings-section-head h3 { font-size:13px; }
.settings-section-head p { font-size:10px; }
.settings-row { min-height:67px; padding:13px 17px; }
.settings-row-copy strong { font-size:11px; }
.settings-row-copy span { font-size:9px; max-width:570px; }
.settings-control { display:flex; align-items:center; gap:8px; }
.settings-control input { width:76px; min-height:36px; }
.settings-control span { color:#768598; font-size:9px; }

/* Assignee selector — force true circles */
.assignee-selector { gap:9px; }
.assignee-option span {
  min-height:42px;
  padding:0 12px 0 7px;
  gap:9px;
  border-radius:10px;
  font-size:11px;
}
.assignee-avatar {
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  flex:0 0 30px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  font-size:8px!important;
}
.assignee-name { display:inline!important; min-height:0!important; padding:0!important; border:0!important; background:transparent!important; }

/* Modals / drawer */
.modal-backdrop { z-index:400; }
.modal-backdrop.transition-layer { z-index:700; }
.modal { border-radius:14px; }
.transition-modal { z-index:701; }
.task-drawer { z-index:240; width:min(760px,94vw); }
.drawer-backdrop { z-index:230; }
.drawer-head { padding:18px 20px; }
.drawer-head h2 { font-size:24px; }
.drawer-body { padding:18px 20px 34px; gap:17px; }
.detail-cell { min-height:68px; padding:12px; border-radius:9px; }
.detail-cell span { font-size:8px; }
.detail-cell strong { font-size:11px; }
.drawer-section-head strong { font-size:10px; }
.drawer-section-head span { font-size:9px; }
.drawer-section p { font-size:11px!important; line-height:1.6!important; }
.subtask-row { min-height:43px; }
.timeline-entry strong { font-size:10px; }
.timeline-entry small { font-size:8.5px; }

/* Onboarding */
.onboarding-card { width:min(780px,calc(100vw - 34px)); min-height:430px; }
.onboarding-visual { min-height:430px; }
.onboarding-copy { padding:52px 40px 31px; }
.onboarding-copy h2 { font-size:29px; }
.onboarding-copy p { font-size:12px; line-height:1.75; }
.tour-audit {
  position:absolute; z-index:1;
  left:38px; right:38px; top:47px;
  padding:16px;
  border:1px solid #2b3746; border-radius:11px;
  background:rgba(12,17,23,.94);
  transform:rotate(-1.3deg);
  box-shadow:0 24px 55px rgba(0,0,0,.34);
}
.audit-mock-head { display:flex; justify-content:space-between; align-items:center; padding-bottom:12px; border-bottom:1px solid #25313e; }
.audit-mock-head span { color:#71839a; font-size:8px; }
.audit-mock-head strong { font-size:10px; }
.audit-mock-line {
  position:relative;
  display:grid; grid-template-columns:13px 1fr; gap:9px;
  padding:13px 0 0;
}
.audit-mock-line i {
  width:9px; height:9px; margin-top:2px; border:2px solid #5a95d1; border-radius:50%; background:#0b1117;
  box-shadow:0 0 12px rgba(98,168,255,.18);
}
.audit-mock-line span { display:grid; gap:2px; }
.audit-mock-line strong { font-size:8px; color:#c5ced9; }
.audit-mock-line small { font-size:7px; color:#67768a; }

/* Toasts */
.toast { padding:13px 14px; }
.toast strong { font-size:10px; }
.toast span { font-size:9px; }

/* responsive */
@media (max-width: 1400px) {
  .overview-grid { grid-template-columns:1fr 1fr; }
  .overview-hero { grid-column:1 / -1; }
}
@media (max-width: 1100px) {
  .overview-grid { grid-template-columns:1fr; }
  .overview-hero { grid-column:auto; }
  .stats-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 720px) {
  .content { padding:17px 13px 30px; }
  .dashboard-intro h2 { font-size:22px; }
  .overview-hero { min-height:260px; }
  .overview-hero-metrics { grid-template-columns:repeat(2,1fr); margin-top:27px; }
  .board-header-left { align-items:flex-start; flex-direction:column; gap:5px; }
  .kanban-board { grid-template-columns:repeat(6, 292px); }
  .kanban-column { min-height:560px; }
  .task-card { min-height:190px; }
  .list-summary { width:100%; }
  .list-summary span { flex:1; min-width:70px; }
  .task-table { min-width:920px; }
  .table-card { overflow-x:auto; }
  .team-metrics { grid-template-columns:repeat(2,1fr); gap:8px; }
}
