:root {
  --bg: #0a0b09;
  --surface: #11130f;
  --surface-2: #171a14;
  --surface-3: #1e221a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #eef2e8;
  --muted: #8b927f;
  --dim: #5c6254;
  --lime: #c6ff3d;
  --lime-2: #a8e01c;
  --lime-fill: var(--lime); /* заливки кнопок и плашек */
  --lime-soft: rgba(198, 255, 61, 0.12);
  --lime-glow: rgba(198, 255, 61, 0.35);
  --amber: #ffbf47;
  --amber-soft: rgba(255, 191, 71, 0.12);
  --red: #ff5f57;
  --red-soft: rgba(255, 95, 87, 0.12);
  --blue: #6cc4ff;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
}

/* Пасхалка: режим чертежа */
body.blueprint {
  --bg: #0b1a33;
  --surface: #0f2242;
  --surface-2: #132a50;
  --surface-3: #18335f;
  --lime: #7fd3ff;
  --lime-2: #5bbdf0;
  --lime-fill: #7fd3ff;
  --lime-soft: rgba(127, 211, 255, 0.14);
  --lime-glow: rgba(127, 211, 255, 0.4);
  --text: #eef2e8;
  --muted: #8b927f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  transition: background 0.6s var(--ease);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime-fill); color: #000; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- фон: сетка чертежа + прожектор за курсором ---------- */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}
@keyframes gridDrift { to { background-position: 56px 56px, 56px 56px; } }
.spotlight {
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  pointer-events: none; z-index: 0; left: 0; top: 0;
  background: radial-gradient(circle, var(--lime-soft), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  will-change: transform;
}

/* ---------- экран входа ---------- */
.login {
  position: fixed; inset: 0; z-index: 50; display: grid;
  grid-template-columns: 1.1fr 1fr; align-items: center;
  padding: 48px; gap: 48px;
}
.login-art { position: relative; height: min(70vh, 560px); }
.login-art svg { width: 100%; height: 100%; overflow: visible; }
.login-art .draw {
  fill: none; stroke: var(--lime); stroke-width: 1.4;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: draw 2.4s var(--ease) forwards;
}
.login-art .draw.thin { stroke: var(--line-2); stroke-width: 1; }
.login-art .win { fill: var(--lime); opacity: 0; animation: winOn 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes winOn { to { opacity: 0.85; } }
.login-panel { max-width: 460px; animation: rise 0.9s var(--ease) 0.3s both; }
.login-panel h1 {
  font-family: var(--display); font-size: 44px; line-height: 1.05; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.login-panel h1 em { font-style: normal; color: var(--lime); }
.login-panel p.lead { color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.login-group-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--dim); margin: 18px 0 10px;
}
.login-users { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.login-user {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); text-align: left;
  transition: all 0.25s var(--ease);
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(0.5s + var(--i) * 45ms);
}
.login-user:hover { border-color: var(--lime); transform: translateY(-2px); background: var(--surface-2); }
.login-user small { display: block; color: var(--muted); font-size: 11.5px; }
.login-note { margin-top: 22px; font-size: 12px; color: var(--dim); }

/* ---------- каркас ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column;
  gap: 6px; background: rgba(10, 11, 9, 0.6); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; cursor: pointer; user-select: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--lime-fill); color: #000;
  display: grid; place-items: center; transition: transform 0.5s var(--spring);
}
.brand-mark svg { width: 22px; height: 22px; stroke-width: 1.9; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font); font-weight: 500; color: var(--muted); font-size: 11px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 12px; color: var(--muted); font-weight: 600; transition: color 0.2s, background 0.2s;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { color: var(--text); background: var(--surface); }
.nav-item.active { color: #000; background: var(--lime-fill); }
.nav-item .badge { margin-left: auto; }
.nav-item.active .badge { background: #000; color: var(--lime); }
.nav-sep { height: 1px; background: var(--line); margin: 12px 8px; }
.board-link {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px;
  border: 1px dashed var(--line-2); color: var(--text); font-weight: 600;
  transition: all 0.3s var(--ease);
}
.board-link svg { width: 18px; height: 18px; flex: none; }
.board-link:hover { border-color: var(--lime); border-style: solid; background: var(--lime-soft); }
.board-link .arrow { margin-left: auto; transition: transform 0.3s var(--spring); }
.board-link:hover .arrow { transform: translate(3px, -3px); }
.sidebar-foot { margin-top: auto; }
.me-card {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); width: 100%; text-align: left;
  transition: border-color 0.2s;
}
.me-card:hover { border-color: var(--line-2); }
.me-card small { display: block; color: var(--muted); font-size: 11.5px; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 18px 32px; border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 9, 0.5); backdrop-filter: blur(12px);
}
.greet h2 { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.greet p { color: var(--muted); font-size: 12.5px; }
.clock { font-variant-numeric: tabular-nums; color: var(--lime); font-weight: 700; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-width: 220px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted);
  transition: border-color 0.2s;
}
.search-btn:hover { border-color: var(--line-2); }
.search-btn svg { width: 16px; height: 16px; }
kbd {
  margin-left: auto; font-family: var(--font); font-size: 11px; padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--line-2); color: var(--muted);
}
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); transition: all 0.2s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime-fill); box-shadow: 0 0 0 0 var(--lime-glow); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--lime-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.icon-btn.ring svg { animation: bell 0.9s var(--ease); }
@keyframes bell {
  0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); }
  60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); }
}

.content { flex: 1; overflow-y: auto; padding: 28px 32px 60px; }
.view { animation: viewIn 0.55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.stagger > * { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }

.view-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.view-head h1 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; }
.view-head p { color: var(--muted); }
.view-head .spacer { flex: 1; }

/* ---------- кнопки, поля ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  font-weight: 700; font-size: 13.5px; transition: transform 0.2s var(--spring), background 0.2s, border-color 0.2s, box-shadow 0.3s;
  border: 1px solid var(--line-2); background: var(--surface-2); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--muted); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; }
.btn-lime { background: var(--lime-fill); color: #000; border-color: var(--lime); }
.btn-lime:hover { box-shadow: 0 8px 30px -6px var(--lime-glow); border-color: var(--lime); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--red); border-color: rgba(255, 95, 87, 0.3); background: var(--red-soft); }
.btn-sm { padding: 7px 11px; font-size: 12.5px; border-radius: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; padding: 11px 13px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line-2); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.textarea { min-height: 92px; resize: vertical; }
.select option { background: var(--surface); }
.input.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--lime-fill); color: #000;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--muted); white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; }
.chip.lime { background: var(--lime-soft); color: var(--lime); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.red { background: var(--red-soft); color: var(--red); }

.avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 12.5px; color: #0a0b09; position: relative;
}
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.bday::after {
  content: "🎂"; position: absolute; right: -6px; top: -8px; font-size: 14px; animation: bob 1.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-3px) rotate(8deg); } }

.panel {
  background: linear-gradient(180deg, var(--surface), rgba(17, 19, 15, 0.7));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.panel-title {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}

/* ---------- статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat {
  position: relative; overflow: hidden; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.stat:hover { border-color: var(--line-2); }
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat .value { font-family: var(--display); font-size: 30px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; }
.stat .value small { font-size: 14px; color: var(--muted); font-family: var(--font); font-weight: 600; margin-left: 4px; }
.stat .sub { color: var(--dim); font-size: 12px; margin-top: 2px; }
.stat.accent { background: var(--lime-fill); color: #000; border-color: var(--lime); }
.stat.accent .label, .stat.accent .sub, .stat.accent .value small { color: rgba(0, 0, 0, 0.6); }
.stat .glyph { position: absolute; right: -8px; bottom: -14px; font-size: 64px; opacity: 0.12; transform: rotate(-12deg); }
.coffee { cursor: pointer; user-select: none; }
.coffee:active { transform: scale(0.97); }
.coffee-pop {
  position: absolute; pointer-events: none; font-size: 22px; animation: coffeeUp 1s var(--ease) forwards;
}
@keyframes coffeeUp { to { transform: translateY(-60px) rotate(20deg); opacity: 0; } }
.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--lime-fill); transition: width 1.2s var(--ease); }
.stat.accent .progress { background: rgba(0, 0, 0, 0.15); }
.stat.accent .progress > i { background: #000; }

/* ---------- входящие ---------- */
.inbox { margin-bottom: 22px; }
.inbox-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.inbox-card {
  position: relative; padding: 16px 18px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); overflow: hidden;
}
.inbox-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(198, 255, 61, 0.09) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 3s var(--ease) infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.inbox-card h4 { font-size: 15px; margin: 8px 0 4px; cursor: pointer; }
.inbox-card h4:hover { color: var(--lime); }
.inbox-card .meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; }
.inbox-card .acts { display: flex; gap: 8px; margin-top: 14px; }

/* ---------- канбан ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filter {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 12.5px; color: var(--muted);
  transition: all 0.2s;
}
.filter:not(:has(.avatar)) { padding-left: 12px; }
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter.on { color: #000; background: var(--lime-fill); border-color: var(--lime); }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.col {
  border-radius: var(--radius); background: rgba(17, 19, 15, 0.55); border: 1px solid var(--line);
  padding: 14px; min-height: 380px; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.col.drag-over { border-color: var(--lime); background: var(--lime-soft); box-shadow: inset 0 0 0 1px var(--lime); }
.col.drag-deny { border-color: var(--red); background: var(--red-soft); }
.col { border-top: 3px solid var(--c, var(--line)); }
.col-head { display: flex; align-items: center; gap: 14px; padding: 6px 6px 16px; }
.col-num {
  font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; color: var(--c);
  text-shadow: 0 0 24px var(--c); min-width: 34px;
}
.col-head h3 { font-family: var(--display); font-size: 17px !important; font-weight: 600 !important; }
.col-head small { color: var(--muted); font-size: 12px; }
.card-new { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); cursor: pointer; }
.col-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.col-head h3 { font-size: 13.5px; font-weight: 800; }
.col-head .count {
  margin-left: auto; font-size: 12px; font-weight: 800; color: var(--muted);
  background: var(--surface-3); padding: 2px 8px; border-radius: 99px;
}
.col-body { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.col-empty {
  border: 1px dashed var(--line-2); border-radius: 14px; padding: 28px 16px; text-align: center;
  color: var(--dim); font-size: 12.5px;
}
.card {
  position: relative; padding: 14px; border-radius: 14px; background: var(--surface-2);
  border: 1px solid var(--line); cursor: grab; transform-style: preserve-3d;
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.3s, opacity 0.2s;
  animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.card:hover { border-color: var(--line-2); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8); transform: translateY(-2px); }
.card.dragging { opacity: 0.35; transform: scale(0.97) rotate(-1.5deg); }
.card.just-moved { animation: landed 0.7s var(--spring); }
@keyframes landed { 0% { transform: scale(0.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.card h4 { font-size: 14px; font-weight: 700; line-height: 1.35; }
.card .desc { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.card-foot .spacer { flex: 1; }
.card-foot .folder { color: var(--muted); display: flex; transition: color 0.2s; }
.card-foot .folder:hover { color: var(--lime); }
.card-foot .folder svg { width: 16px; height: 16px; }
.card .stamp {
  position: absolute; right: 12px; top: 10px; font-family: var(--display); font-size: 10px; font-weight: 700;
  color: var(--lime); border: 1.5px solid var(--lime); padding: 2px 6px; border-radius: 6px;
  transform: rotate(8deg); opacity: 0.8; letter-spacing: 0.05em;
}

/* ---------- модалки ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px; animation: fadeIn 0.25s ease both;
}
.overlay.closing { animation: fadeOut 0.2s ease forwards; }
.overlay.closing .modal { animation: modalOut 0.2s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal {
  width: min(680px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 26px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
  animation: modalIn 0.45s var(--spring) both;
}
.modal.wide { width: min(820px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.modal-head .x { margin-left: auto; }
.modal-body { display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }

.path-box {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
}
.path-box .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.path-box .ico svg { width: 18px; height: 18px; }
.path-box .ico.src { background: var(--surface-3); color: var(--text); }
.path-box .ico.out { background: var(--lime-soft); color: var(--lime); }
.path-box .txt { min-width: 0; flex: 1; }
.path-box .txt small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.path-box code {
  display: block; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy-btn.copied { background: var(--lime-fill); color: #000; border-color: var(--lime); }

.desc-full { white-space: pre-wrap; color: #d6dccd; background: var(--surface-2); border-radius: 14px; padding: 14px 16px; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kv > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.kv small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; margin-bottom: 4px; }
.kv b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }

.timeline { display: flex; align-items: center; gap: 0; margin: 4px 0; }
.timeline .step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; color: var(--dim); font-size: 11.5px; font-weight: 700; }
.timeline .step::before {
  content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--surface-3); z-index: 0;
}
.timeline .step:first-child::before { display: none; }
.timeline .step i { width: 16px; height: 16px; border-radius: 50%; background: var(--surface-3); position: relative; z-index: 1; transition: all 0.4s var(--spring); }
.timeline .step.done { color: var(--muted); }
.timeline .step.done i, .timeline .step.done::before { background: var(--lime-fill); }
.timeline .step.now { color: var(--lime); }
.timeline .step.now i { background: var(--lime-fill); box-shadow: 0 0 0 5px var(--lime-soft); transform: scale(1.15); }
.timeline .step.now::before { background: var(--lime-fill); }

.comments { display: flex; flex-direction: column; gap: 10px; }
.comment { display: flex; gap: 10px; }
.comment .bubble { background: var(--surface-2); border-radius: 4px 14px 14px 14px; padding: 9px 12px; flex: 1; }
.comment .bubble small { color: var(--muted); font-size: 11.5px; }
.comment.rework .bubble { background: var(--amber-soft); }
.comment-input { display: flex; gap: 8px; }

.assignee-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 230px; overflow-y: auto; padding: 2px; }
.assignee {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); text-align: left; transition: all 0.2s;
}
.assignee:hover { border-color: var(--line-2); }
.assignee.on { border-color: var(--lime); background: var(--lime-soft); }
.assignee .info { flex: 1; min-width: 0; }
.assignee .info b { display: block; font-size: 13px; }
.assignee .info small { color: var(--muted); font-size: 11.5px; }
.mini-load { width: 54px; text-align: right; font-size: 11.5px; font-weight: 800; }
.mini-load .bar { height: 4px; border-radius: 4px; background: var(--surface-3); margin-top: 4px; overflow: hidden; }
.mini-load .bar i { display: block; height: 100%; border-radius: 4px; }
.hint { font-size: 12px; color: var(--lime); display: flex; align-items: center; gap: 6px; }

/* ---------- команда ---------- */
.team-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.person {
  position: relative; padding: 18px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: transform 0.3s var(--ease), border-color 0.3s; transform-style: preserve-3d;
}
.person:hover { border-color: var(--line-2); }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-head b { display: block; font-size: 14.5px; }
.person-head small { color: var(--muted); font-size: 12px; }
.ring-wrap { position: relative; width: 64px; height: 64px; margin-left: auto; flex: none; }
.ring-wrap svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring-wrap circle { fill: none; stroke-width: 6; }
.ring-wrap .track { stroke: var(--surface-3); }
.ring-wrap .val { stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.ring-wrap span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.person-tasks { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.person-task {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 7px 10px; border-radius: 10px;
  background: var(--surface-2); cursor: pointer; transition: background 0.2s;
}
.person-task:hover { background: var(--surface-3); }
.person-task span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-task .d { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.status-pill { position: absolute; top: 14px; left: 14px; }
.load-legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.load-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

/* ---------- календарь ---------- */
.cal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-head h3 { font-family: var(--display); font-weight: 600; font-size: 18px; text-transform: capitalize; min-width: 180px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-layout > * { min-width: 0; }
.cal-dow { font-size: 11px; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; }
.cal-day {
  min-height: 92px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 8px;
  text-align: left; display: flex; flex-direction: column; gap: 4px; transition: all 0.2s var(--ease);
  animation: rise 0.4s var(--ease) both; animation-delay: calc(var(--i) * 12ms);
}
.cal-day:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cal-day.other { opacity: 0.35; }
.cal-day.weekend { background: rgba(17, 19, 15, 0.5); }
.cal-day.today { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.cal-day.today .n { background: var(--lime-fill); color: #000; }
.cal-day.sel { background: var(--surface-3); border-color: var(--muted); }
.cal-day .n { font-weight: 800; font-size: 12.5px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; }
.cal-ev {
  font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--surface-3); color: var(--text);
}
.cal-ev.dl { background: var(--lime-soft); color: var(--lime); }
.cal-ev.late { background: var(--red-soft); color: var(--red); }
.cal-ev.bd { background: rgba(255, 120, 200, 0.14); color: #ff8fd0; }
.cal-ev.more { background: transparent; color: var(--muted); padding: 0 6px; }
.day-list { display: flex; flex-direction: column; gap: 8px; }
.day-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.day-item:hover { background: var(--surface-3); }
.day-item .emo { font-size: 20px; }
.day-item b { display: block; font-size: 13px; }
.day-item small { color: var(--muted); font-size: 11.5px; }

/* ---------- часы ---------- */
.tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); gap: 2px; }
.tab { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--muted); transition: all 0.25s var(--ease); }
.tab.on { background: var(--lime-fill); color: #000; }
.hours-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.hours-table th { font-size: 11px; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; text-align: center; }
.hours-table th:first-child { text-align: left; }
.hours-table th.today { color: var(--lime); }
.hours-table td { background: var(--surface); padding: 8px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hours-table td:first-child { text-align: left; border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; padding-left: 14px; }
.hours-table td:last-child { border-right: 1px solid var(--line); border-radius: 0 12px 12px 0; font-weight: 800; }
.hours-table tr.total td { background: transparent; border-color: transparent; font-weight: 800; color: var(--lime); }
.task-cell b { display: block; font-size: 13px; }
.task-cell small { color: var(--muted); font-size: 11.5px; }
.h-input {
  width: 54px; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--line); outline: none; font-weight: 700; transition: all 0.2s; -moz-appearance: textfield;
}
.h-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.h-input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.h-input.has { color: var(--lime); border-color: rgba(198, 255, 61, 0.3); }
.h-cell { display: inline-block; min-width: 38px; padding: 6px 8px; border-radius: 8px; font-weight: 700; }
.week-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.week-progress { flex: 1; }
.hours-hero { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; margin-bottom: 18px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; max-width: 44px; border-radius: 8px 8px 4px 4px; background: var(--surface-3); height: 0; transition: height 1s var(--ease); position: relative; }
.bars .b.today i { background: var(--lime-fill); }
.bars .b.ok i { background: rgba(198, 255, 61, 0.5); }
.bars .b small { font-size: 11px; font-weight: 800; color: var(--dim); }
.bars .b em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }

/* ---------- люди / дни рождения ---------- */
.bday-hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px 28px; margin-bottom: 22px;
  background: radial-gradient(circle at 85% 20%, rgba(198, 255, 61, 0.25), transparent 45%), var(--surface);
  border: 1px solid var(--line-2); display: flex; align-items: center; gap: 22px;
}
.bday-hero .big { font-size: 56px; animation: bob 2s ease-in-out infinite; }
.bday-hero h3 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.bday-hero p { color: var(--muted); }
.bday-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; }
.bday-card {
  flex: none; width: 170px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform 0.3s var(--spring);
}
.bday-card:hover { transform: translateY(-4px) rotate(-1deg); }
.bday-card .days { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--lime); line-height: 1; }
.bday-card small { color: var(--muted); font-size: 11.5px; }
.bday-card b { font-size: 13px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pcard { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pcard b { display: block; font-size: 13.5px; }
.pcard small { display: block; color: var(--muted); font-size: 12px; }
.pcard .bd { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); }
.pcard .bd.none { color: var(--dim); font-style: italic; }
.banner {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; margin-bottom: 18px;
  background: var(--lime-soft); border: 1px solid rgba(198, 255, 61, 0.3); animation: rise 0.6s var(--ease) both;
}
.banner .emo { font-size: 26px; }
.banner .txt { flex: 1; }
.banner .txt b { display: block; }
.banner .txt small { color: var(--muted); }

/* ---------- виджеты дашборда ---------- */
.side-widgets { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 22px; }
.tip { cursor: pointer; display: flex; gap: 14px; align-items: center; min-height: 86px; }
.tip .emo { font-size: 30px; transition: transform 0.5s var(--spring); }
.tip:hover .emo { transform: rotate(-15deg) scale(1.15); }
.tip p { font-size: 14px; }
.tip small { color: var(--dim); font-size: 11.5px; }
.tip-text { transition: opacity 0.25s, transform 0.25s; }
.tip-text.swap { opacity: 0; transform: translateY(6px); }

/* ---------- уведомления ---------- */
.notif-pop {
  position: fixed; top: 74px; right: 32px; z-index: 90; width: 360px; max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9); animation: popIn 0.35s var(--spring) both; transform-origin: top right;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.9) translateY(-8px); } }
.notif-pop .head { display: flex; align-items: center; padding: 6px 8px 10px; font-weight: 800; }
.notif-pop .head button { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.notif-pop .head button:hover { color: var(--lime); }
.notif { display: flex; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; transition: background 0.2s; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: var(--lime-soft); }
.notif .emo { font-size: 18px; line-height: 1.2; }
.notif p { font-size: 13px; }
.notif small { color: var(--muted); font-size: 11.5px; }
.notif-empty { padding: 30px; text-align: center; color: var(--dim); }

.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; max-width: 380px;
  background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  animation: toastIn 0.5s var(--spring) both; font-weight: 600;
}
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
.toast .emo { font-size: 20px; }
.toast.ach { background: var(--lime-fill); color: #000; border-color: var(--lime); }
.toast.ach small { color: rgba(0, 0, 0, 0.6); }
.toast small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(0.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- палитра команд ---------- */
.palette { width: min(600px, 100%); padding: 0; overflow: hidden; align-self: start; margin-top: 12vh; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 18px; height: 18px; color: var(--muted); }
.palette-input input { flex: 1; background: none; border: 0; outline: none; font-size: 16px; }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-group { font-size: 11px; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; padding: 10px 10px 6px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; }
.palette-item.on { background: var(--lime-fill); color: #000; }
.palette-item.on small { color: rgba(0, 0, 0, 0.6); }
.palette-item small { margin-left: auto; color: var(--muted); font-size: 12px; }
.palette-item .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.palette-item.on .ic { background: rgba(0, 0, 0, 0.12); }
.palette-item .ic svg { width: 15px; height: 15px; }

/* ---------- рендер-шутка ---------- */
.render-joke { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 210; width: 380px;
  background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; animation: toastIn 0.4s var(--spring); }
.render-joke b { display: flex; justify-content: space-between; font-size: 13px; }
.render-joke .progress i { transition: width 0.4s linear; }

canvas#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

/* одна страница без меню */
.app.one-page { grid-template-columns: 1fr; }
.one-page .topbar { padding: 14px 32px; }
.one-page .brand { padding: 0; }
.one-page .content { scroll-behavior: smooth; }
.one-page .content > section { max-width: 1440px; margin: 0 auto; }
.page-sec { scroll-margin-top: 16px; }
.team-inline { margin-top: 40px; scroll-margin-top: 16px; }
.team-inline .view-head h1 { font-size: 22px; }
.one-page .col-body { position: relative; overflow-y: auto; padding: 4px 6px 4px 0; margin-right: -6px; scroll-behavior: smooth; }
/* прокрутка внутри блока задач: тонкий ползунок цвета колонки + затемнение снизу */
.col { position: relative; }
.col-body.scrolly { scrollbar-width: thin; scrollbar-color: var(--c) transparent; overscroll-behavior: contain; }
.col-body.scrolly::-webkit-scrollbar { width: 5px; }
.col-body.scrolly::-webkit-scrollbar-thumb { background: var(--c); border-radius: 6px; opacity: 0.6; }
.col:has(.scrolly)::after {
  content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 54px; pointer-events: none;
  border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(transparent, rgba(10, 11, 9, 0.95));
  transition: opacity 0.3s;
}
.col.at-end::after { opacity: 0; }
.col-more {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; pointer-events: none;
  font-size: 11px; font-weight: 800; color: var(--c); background: var(--surface); border: 1px solid var(--c);
  padding: 3px 10px; border-radius: 99px; box-shadow: 0 0 16px -4px var(--c); transition: opacity 0.3s;
}
@keyframes moreBob { 50% { transform: translate(-50%, 3px); } }
.col.at-end .col-more { opacity: 0; }
.col-body.scrolly { padding-bottom: 30px; }
.page-sec + .page-sec { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.me-btn { border-radius: 50%; transition: transform 0.3s var(--spring); }
.me-btn:hover { transform: scale(1.08); }
.me-btn .avatar { width: 40px; height: 40px; }
@media (max-width: 960px) {
  .hide-sm { display: none; }
  .one-page .topbar { padding: 12px 16px; gap: 10px; }
  .one-page .greet p { display: none; }
  .one-page .greet { min-width: 0; }
  .one-page .greet h2 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 560px) {
  .one-page .top-actions { gap: 6px; }
  .one-page .top-actions > a.btn, .one-page .search-btn { display: none; }
  .one-page .top-actions .icon-btn { width: 36px; height: 36px; }
  .one-page .top-actions .btn-lime { padding: 8px 10px; }
  .one-page .brand-mark { width: 36px; height: 36px; }
}

/* проявление разделов при прокрутке */
.page-sec.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.page-sec.reveal.in { opacity: 1; transform: none; }
.view-head h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.view-head h1 .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 0.9s var(--ease) var(--d, 0ms); }
.page-sec.in .view-head h1 .w > span { transform: none; }

/* штамп «УТВ.» шлёпается на карточку */
.card .stamp.slam { animation: slam 0.55s var(--spring) 0.45s both; }
@keyframes slam {
  0% { opacity: 0; transform: rotate(-25deg) scale(3.2); }
  70% { opacity: 1; transform: rotate(10deg) scale(0.9); }
  100% { opacity: 0.8; transform: rotate(8deg) scale(1); }
}

/* регистрация */
.reg-form { display: flex; flex-direction: column; gap: 14px; }
.reg-form > * { animation: rise 0.6s var(--ease) both; animation-delay: calc(0.4s + var(--i, 0) * 60ms); }
.login-note a:hover { text-decoration: underline; }

/* ---------- несколько исполнителей и загрузка точками ---------- */
.ava-stack { display: inline-flex; align-items: center; }
.ava-stack .avatar { box-shadow: 0 0 0 2px var(--surface-2); }
.ava-stack .avatar + .avatar { margin-left: -7px; }
.kv .ava-stack { margin-right: 2px; }
.load-dots { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; margin-right: 6px; }
.load-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); transition: background 0.3s, box-shadow 0.3s; }
.load-dots i.on { box-shadow: 0 0 8px currentColor; }
.load-dots b { font-size: 10.5px; margin-left: 2px; }
.mini-load { width: auto; min-width: 92px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mini-load small { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.assignee { position: relative; }
.assignee .tick {
  width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none;
  color: transparent; transition: all 0.25s var(--spring);
}
.assignee .tick svg { width: 12px; height: 12px; }
.assignee.on .tick { background: var(--lime-fill); border-color: var(--lime); color: #000; transform: scale(1.1); box-shadow: 0 0 10px var(--lime-glow); }
.assign-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.ring-wrap span { flex-direction: column; line-height: 1; }
.ring-wrap span b { font-family: var(--display); font-size: 20px; }
.ring-wrap span small { font-size: 9.5px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.ring-wrap.hot svg { filter: drop-shadow(0 0 8px rgba(255, 95, 87, 0.55)); animation: hotGlow 2.4s ease-in-out infinite; }
@keyframes hotGlow { 50% { filter: drop-shadow(0 0 14px rgba(255, 95, 87, 0.8)); } }
.person-task small.urgent { color: var(--amber); font-weight: 800; }

/* ---------- загрузка: сегментное кольцо ---------- */
.seg-ring { width: 70px; height: 70px; }
.seg-ring svg { width: 70px; height: 70px; transform: none; overflow: visible; }
.seg-ring > span {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1; pointer-events: none;
}
.seg-ring > span b { font-family: var(--display); font-size: 20px; }
.seg-ring > span small { font-size: 8.5px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.seg-ring .seg {
  fill: none; stroke: var(--surface-3); stroke-width: 6; stroke-linecap: round;
  transition: stroke-width 0.25s var(--ease), opacity 0.25s, filter 0.3s;
}
.seg-ring .seg.on { cursor: pointer; stroke-dashoffset: var(--len); animation: segIn 0.7s var(--ease) var(--d) forwards; }
.static .seg-ring .seg.on { animation: none; stroke-dashoffset: 0; }
@keyframes segIn { to { stroke-dashoffset: 0; } }
.seg-ring .seg.urgent { animation: segIn 0.7s var(--ease) var(--d) forwards, segPulse 1.8s ease-in-out 1s infinite; }
.static .seg-ring .seg.urgent { animation: segPulse 1.8s ease-in-out infinite; }
@keyframes segPulse { 50% { filter: drop-shadow(0 0 6px currentColor) brightness(1.35); opacity: 0.65; } }
.seg-ring .seg.on:hover, .seg-ring .seg.hl { stroke-width: 9; filter: drop-shadow(0 0 6px currentColor); }
.person.focus .seg.on:not(.hl) { opacity: 0.3; }
.ring-wrap.hot svg { animation: none; filter: none; }
.person { border-top: 2px solid var(--c, var(--line)); }
.load-why { margin-top: 12px; font-size: 12px; padding: 6px 10px; border-left: 2px solid; border-radius: 4px 8px 8px 4px; background: var(--surface-2); color: var(--muted); }
.person-task.hl { background: var(--surface-3); box-shadow: inset 2px 0 0 var(--c); }
.person-task.not-counted { opacity: 0.55; }
.pt-sep { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin: 8px 0 2px 2px; }
.lv-filter { text-align: left; cursor: pointer; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.lv-filter:hover { border-color: var(--c); box-shadow: 0 0 20px -8px var(--c); }
.lv-filter.on { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 26px -8px var(--c); background: var(--surface-2); }
.team-inline .team-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.person-head > div:nth-child(2) { flex: 1; }
.filter-note { font-size: 12.5px; color: var(--muted); margin: -8px 0 12px; }
.filter-note a { color: var(--lime); }

/* ---------- компактный срок на карточке ---------- */
.due {
  margin-left: auto; font-size: 10.5px; font-weight: 800; white-space: nowrap; letter-spacing: 0.02em;
  padding: 2px 7px; border-radius: 6px; color: var(--muted); background: var(--surface-3);
  font-variant-numeric: tabular-nums;
}
.due.urgent { color: var(--amber); background: var(--amber-soft); }
.due.late { color: var(--red); background: var(--red-soft); box-shadow: 0 0 12px -4px rgba(255, 95, 87, 0.6); }

/* ---------- блок «Новые задачи» у сотрудника ---------- */
.new-block {
  position: relative; overflow: hidden; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid rgba(198, 255, 61, 0.45); background: radial-gradient(circle at 0% 0%, rgba(198, 255, 61, 0.14), transparent 50%), var(--surface);
  box-shadow: 0 0 0 4px var(--lime-soft), 0 0 40px -16px var(--lime-glow);
  animation: nbGlow 3.2s ease-in-out infinite;
}
@keyframes nbGlow { 50% { box-shadow: 0 0 0 4px var(--lime-soft), 0 0 50px -10px var(--lime-glow); } }
.new-block::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(198, 255, 61, 0.08) 50%, transparent 65%);
  transform: translateX(-100%); animation: shine 3.5s var(--ease) infinite;
}
.new-block.empty { display: flex; align-items: center; gap: 12px; border-color: var(--line); border-style: dashed; background: transparent; box-shadow: none; animation: none; padding: 10px 16px; }
.new-block.empty::before { display: none; }
.new-block.empty b { font-size: 13px; }
.new-block small { display: block; color: var(--muted); font-size: 12px; }
.nb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.nb-head b { font-family: var(--display); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.nb-ico { font-size: 22px; animation: bob 2s ease-in-out infinite; }
.new-block.empty .nb-ico { animation: none; opacity: 0.6; }
.nb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.nb-list .card { cursor: grab; }

/* полёт принятой задачи */
.ghost-fly { position: fixed; margin: 0; z-index: 260; pointer-events: none; transform-origin: 0 0; border-color: var(--lime) !important; animation: none !important; }
.fly-spark {
  position: fixed; z-index: 255; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: var(--lime-fill); box-shadow: 0 0 10px var(--lime); animation: sparkFade 0.7s ease-out forwards;
}
@keyframes sparkFade { to { opacity: 0; transform: scale(0.2) translateY(10px); } }
.col.flash { animation: colFlash 0.9s var(--ease); }
@keyframes colFlash {
  0% { box-shadow: inset 0 0 0 1px var(--c), 0 0 0 0 var(--lime-glow); }
  30% { box-shadow: inset 0 0 0 2px var(--c), 0 0 40px 2px var(--lime-glow); background: var(--lime-soft); }
  100% { box-shadow: none; }
}

/* ---------- блок «Правки» ---------- */
:root { --orange: #ff8a4c; }
.kanban { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rework-note {
  margin-top: 6px; font-size: 12.5px; color: var(--orange); background: rgba(255, 138, 76, 0.1);
  border-left: 2px solid var(--orange); border-radius: 4px 8px 8px 4px; padding: 6px 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 1300px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kanban { grid-template-columns: 1fr; } }

/* ---------- общие аккаунты нейросетей ---------- */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.acc {
  position: relative; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.5s, background 0.5s;
}
.acc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(circle at 85% 0%, var(--lime-soft), transparent 60%);
}
.acc.mine { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft), 0 0 30px -8px var(--lime-glow); }
.acc.mine::after { opacity: 1; }
.acc.busy { background: rgba(17, 19, 15, 0.6); }
.acc.busy .acc-ico { filter: grayscale(0.7); opacity: 0.7; }
.acc.long .acc-state small { color: var(--amber); }
.acc-top { display: flex; align-items: center; gap: 12px; }
.acc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--surface-3); flex: none; transition: filter 0.4s; }
.acc-name { flex: 1; min-width: 0; }
.acc-name b { display: block; font-size: 14.5px; }
.acc-name small { color: var(--muted); font-size: 12px; }
.vpn { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; padding: 2px 5px; border-radius: 5px; background: rgba(108, 196, 255, 0.15); color: var(--blue); vertical-align: 2px; }
.acc-note { font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.creds { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid rgba(198, 255, 61, 0.25); animation: rise 0.45s var(--ease) both; }
.creds.locked { border-style: dashed; border-color: var(--line-2); color: var(--dim); font-size: 12px; animation: none; }
.cred-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cred-row small { width: 50px; flex: none; color: var(--dim); font-size: 11px; font-weight: 700; }
.cred-row code { flex: 1; min-width: 0; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cred-row code.masked { letter-spacing: 0.1em; color: var(--muted); }
.cred-btn { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 13px; color: var(--muted); transition: background 0.2s, color 0.2s, box-shadow 0.3s; }
.cred-btn svg { width: 13px; height: 13px; }
.cred-btn:hover { background: var(--surface-3); color: var(--lime); box-shadow: 0 0 12px -3px var(--lime-glow); }
.cred-btn.copied { background: var(--lime-fill); color: #000; }
.acc-rules { margin-top: 12px; font-size: 12.5px; color: var(--muted); padding: 10px 14px; border-radius: 12px; background: rgba(255, 210, 63, 0.06); border: 1px dashed rgba(255, 210, 63, 0.25); }
.acc-rules b { color: #ffd23f; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.check input { accent-color: var(--lime); width: 16px; height: 16px; }
.acc-state { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 13px; }
.acc-state b { display: block; font-size: 12.5px; }
.acc-state small { color: var(--muted); font-size: 11.5px; }
.acc-free { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 700; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-fill); animation: pulse 2s infinite; }
.acc-foot { display: flex; align-items: center; gap: 12px; font-size: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.acc-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; transition: color 0.2s; }
.acc-link:hover { color: var(--lime); }
.acc-edit { margin-left: auto; }
/* переключатель «пользуюсь» */
.acc-switch {
  position: relative; width: 50px; height: 28px; border-radius: 99px; flex: none;
  background: var(--surface-3); border: 1px solid var(--line-2); transition: background 0.35s, box-shadow 0.4s, border-color 0.35s;
}
.acc-switch i {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted);
  transition: transform 0.45s var(--spring), background 0.3s;
}
.acc-switch:hover:not([disabled]) { border-color: var(--lime); box-shadow: 0 0 14px -2px var(--lime-glow); }
.acc-switch.on { background: var(--lime-fill); border-color: var(--lime); box-shadow: 0 0 18px -2px var(--lime-glow); }
.acc-switch.on i { transform: translateX(22px); background: #000; }
.acc.busy .acc-switch { background: var(--amber-soft); border-color: rgba(255, 191, 71, 0.4); box-shadow: none; cursor: not-allowed; }
.acc.busy .acc-switch i { background: var(--amber); }

/* ---------- верхняя панель: календарь, часы, сроки ---------- */
.dash { display: grid; grid-template-columns: minmax(250px, 290px) minmax(300px, 1fr) minmax(300px, 1.25fr); gap: 14px; margin-bottom: 28px; }
.dash > .panel { padding: 16px 18px; min-width: 0; }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.sm svg { width: 14px; height: 14px; }
.mc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.mc-head b { flex: 1; font-family: var(--display); font-weight: 600; font-size: 14px; text-transform: capitalize; }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mc-dow { font-size: 10px; font-weight: 800; color: var(--dim); text-align: center; padding: 2px 0 4px; }
.mc-day {
  position: relative; aspect-ratio: 1; border-radius: 8px; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; transition: background 0.2s, transform 0.2s var(--spring);
}
.mc-day:hover { background: var(--surface-3); transform: scale(1.12); }
.mc-day.other { color: var(--dim); }
.mc-day.weekend:not(.today) { color: var(--muted); }
.mc-day.today { background: var(--lime-fill); color: #000; box-shadow: 0 0 16px var(--lime-glow); }
.mc-day.sel { outline: 1.5px solid var(--lime); }
.mc-dots { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.mc-dots i, .mc-legend i { width: 4px; height: 4px; border-radius: 50%; display: inline-block; }
i.dl { background: var(--lime-fill); } i.late { background: var(--red); } i.bd { background: #ff8fd0; }
.mc-day.today .mc-dots i.dl { background: #000; }
/* день зарплаты — золотая рамка с мягким свечением */
i.pay { background: #ffd23f; }
.mc-day.pay:not(.today) { color: #ffd23f; box-shadow: inset 0 0 0 1.5px rgba(255, 210, 63, 0.55); }
.mc-day.pay:not(.today):hover { box-shadow: inset 0 0 0 1.5px #ffd23f, 0 0 14px rgba(255, 210, 63, 0.35); }
.mc-day.pay.today { box-shadow: 0 0 0 2px #ffd23f, 0 0 18px rgba(255, 210, 63, 0.6); }
.dl-date.pay { background: rgba(255, 210, 63, 0.14); }
.pay-days { color: #ffd23f; }
.payday-today b {
  background: linear-gradient(90deg, #ffd23f, #fff3b0, var(--lime), #ffd23f); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: payShine 3s linear infinite;
}
@keyframes payShine { to { background-position: -300% 0; } }
.pay-click { cursor: pointer; border-radius: 8px; margin-left: -6px; padding: 2px 6px; transition: background 0.25s, box-shadow 0.3s; }
.pay-click:hover { background: rgba(255, 210, 63, 0.1); box-shadow: 0 0 16px -4px rgba(255, 210, 63, 0.5); }
.money-rain { position: fixed; inset: 0; pointer-events: none; z-index: 290; overflow: hidden; }
.money-rain span {
  position: absolute; top: -60px; animation: moneyFall var(--dur) cubic-bezier(0.4, 0.1, 0.6, 1) var(--delay) forwards;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
@keyframes moneyFall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  50% { transform: translate(var(--sway), 55vh) rotate(calc(var(--rot) / 2)); }
  100% { transform: translate(calc(var(--sway) * -0.5), 110vh) rotate(var(--rot)); opacity: 0.9; }
}
.mc-legend { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--dim); }
.mc-legend i { margin-right: 5px; vertical-align: 1px; }

.clock-card { display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.clock-card::before {
  content: ""; position: absolute; width: 260px; height: 260px; left: -70px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, var(--lime-soft), transparent 70%); pointer-events: none;
}
.clock-wrap { display: flex; align-items: center; gap: 20px; position: relative; }
.clock-info { min-width: 0; }
.clock-digits { font-family: var(--display); font-size: 38px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-digits small { font-size: 18px; color: var(--lime); margin-left: 2px; }
.clock-line { font-size: 13px; margin-top: 6px; }
.clock-line b { font-variant-numeric: tabular-nums; }
.clock-info { flex: 1; }
.day-bar { height: 4px; margin-top: 6px; }
.day-bar i { transition: width 1s var(--ease); }
.clock-bday { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); }
.clock-bday a { color: #ff8fd0; font-weight: 700; }

.dl-list { display: flex; flex-direction: column; gap: 4px; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; transition: background 0.2s, transform 0.25s var(--ease); }
.dl-row:hover { background: var(--surface-2); transform: translateX(3px); }
.dl-date { flex: none; min-width: 66px; text-align: center; font-size: 11.5px; font-weight: 800; padding: 4px 6px; border-radius: 8px; background: var(--surface-3); color: var(--muted); }
.dl-date.red { background: var(--red-soft); color: var(--red); }
.dl-date.amber { background: var(--amber-soft); color: var(--amber); }
.dl-title { min-width: 0; flex: 1; }
.dl-title b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-title small { color: var(--dim); font-size: 11.5px; }
.dl-reset { margin-left: auto; font-size: 11.5px; color: var(--lime); text-transform: none; letter-spacing: 0; }
@media (max-width: 1200px) { .dash { grid-template-columns: 1fr 1fr; } .dash .deadlines { grid-column: 1 / -1; } }
@media (max-width: 700px) { .dash { grid-template-columns: 1fr; } .clock-digits { font-size: 30px; } }

/* ---------- зал славы ---------- */
.fame-grid { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.3fr; gap: 14px; margin-bottom: 26px; }
.champion {
  position: relative; overflow: hidden; text-align: center; padding: 26px 22px; border-radius: var(--radius);
  border: 1px solid rgba(198, 255, 61, 0.3); transition: transform 0.3s var(--ease);
  background: radial-gradient(circle at 50% 0%, rgba(198, 255, 61, 0.2), transparent 60%), var(--surface);
}
.champion h3 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.champ-ava { position: relative; width: 116px; height: 116px; margin: 26px auto 14px; }
.champ-ava::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--lime), transparent 35%, var(--lime) 60%, transparent 85%, var(--lime));
  animation: spin 3.5s linear infinite; filter: blur(0.5px);
}
@keyframes spin { to { transform: rotate(360deg); } }
.champ-ava .avatar { position: relative; width: 116px; height: 116px; font-size: 34px; border: 5px solid var(--surface); }
.champ-ava .avatar.crown::before { display: none; }
.champ-crown { position: absolute; left: 0; right: 0; top: -34px; font-size: 38px; z-index: 2; animation: crownBob 2.2s ease-in-out infinite; }
@keyframes crownBob { 50% { transform: translateY(-5px) rotate(-6deg); } }
.champion blockquote { margin: 14px auto 0; max-width: 340px; font-size: 13.5px; color: #d6dccd; font-style: italic; }
.champion blockquote small { display: block; margin-top: 4px; color: var(--muted); font-style: normal; font-size: 12px; }
.champ-stats { display: flex; justify-content: center; gap: 22px; margin-top: 16px; }
.champ-stats span { font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; }
.champ-stats b { font-family: var(--display); font-size: 20px; color: var(--lime); }
.sparkles i {
  position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: var(--lime-fill);
  box-shadow: 0 0 10px var(--lime); opacity: 0; animation: twinkle 2.6s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes twinkle { 40% { opacity: 0.9; transform: scale(1.4); } 80% { opacity: 0; transform: scale(0.4); } }
.avatar.crown::before { content: "👑"; position: absolute; top: -0.95em; left: 50%; transform: translateX(-50%) rotate(-12deg); font-size: 1em; }

.cands { display: flex; flex-wrap: wrap; gap: 6px; }
.cand {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 5px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--bg); font-weight: 700; font-size: 12.5px; transition: all 0.25s var(--spring);
}
.cand:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cand.on { background: var(--lime-fill); color: #000; border-color: var(--lime); transform: scale(1.06); }
.vote-done { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.vote-done > div { flex: 1; }
.vote-done p { font-size: 12.5px; }
.lb { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.lb-row:hover { background: var(--surface-2); }
.lb-place { width: 24px; text-align: center; font-weight: 800; color: var(--muted); }
.lb-name { font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 90px; }
.lb-name:hover { color: var(--lime); }
.lb-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.lb-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--lime-2), var(--lime)); transition: width 1.2s var(--ease); }
.lb-n { min-width: 28px; text-align: right; margin-left: auto; }

.cand-row { width: 100%; text-align: left; border: 1px solid transparent; transition: background 0.2s, border-color 0.25s, box-shadow 0.3s; }
.cand-row.on { border-color: var(--lime); background: var(--lime-soft); box-shadow: 0 0 22px -6px var(--lime-glow); }
.lb.pick { max-height: 290px; overflow-y: auto; margin-top: 6px; }
.lb-row.hist { align-items: flex-start; }
.hist-txt { display: flex; flex-direction: column; min-width: 0; }
.hist-txt small { color: var(--muted); font-size: 12px; }
.fame-ach { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 4px; }
.ach-grid.compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ach {
  position: relative; text-align: center; padding: 16px 12px 14px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform 0.3s var(--ease), border-color 0.3s; opacity: 0.55;
}
.ach .ach-emo { font-size: 30px; filter: grayscale(1); transition: transform 0.4s var(--spring), filter 0.3s; }
.ach b { font-size: 12.5px; }
.ach small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.ach .progress { width: 100%; }
.ach-p { font-weight: 800; }
.ach.on { opacity: 1; border-color: rgba(198, 255, 61, 0.35); background: radial-gradient(circle at 50% 0%, var(--lime-soft), transparent 70%), var(--surface); }
.ach.on .ach-emo { filter: none; }
.ach.on:hover .ach-emo { animation: achGlow 1.6s ease-in-out infinite; }
.ach:hover .ach-emo { transform: scale(1.25) rotate(-8deg); }
.ach.secret { border-style: dashed; }
@keyframes achGlow { 50% { filter: drop-shadow(0 0 10px var(--lime-glow)); } }
@media (max-width: 960px) { .fame-grid, .fame-ach { grid-template-columns: 1fr; } }

/* ---------- вход по коду ---------- */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form > * { animation: rise 0.6s var(--ease) both; animation-delay: calc(0.35s + var(--i, 0) * 60ms); }
.input.big { padding: 15px 16px; font-size: 16px; border-radius: 14px; }
.btn.big { justify-content: center; padding: 14px; font-size: 14.5px; border-radius: 14px; }
.otp { display: flex; gap: 10px; margin: 6px 0 16px; }
.otp-cell {
  width: 56px; height: 66px; text-align: center; font-family: var(--display); font-size: 28px; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 14px; outline: none; caret-color: var(--lime);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--spring), background 0.3s;
  animation: rise 0.55s var(--spring) both; animation-delay: calc(0.3s + var(--i) * 55ms);
}
.otp-cell:focus { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); transform: translateY(-3px); }
.otp.bad .otp-cell { border-color: var(--red); background: var(--red-soft); }
.otp.ok .otp-cell { border-color: var(--lime); background: var(--lime-fill); color: #000; animation: otpOk 0.5s var(--spring) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes otpOk { 40% { transform: translateY(-8px) scale(1.08); } }
.demo-code {
  font-size: 13px; padding: 11px 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--muted);
  animation: rise 0.6s var(--ease) 0.7s both;
}
.demo-code b { color: var(--lime); letter-spacing: 0.15em; font-size: 15px; }
.otp-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.demo-users { margin-top: 26px; }
.demo-users summary { cursor: pointer; font-size: 12px; color: var(--dim); list-style: none; }
.demo-users summary::before { content: "▸ "; }
.demo-users[open] summary::before { content: "▾ "; }
.demo-users .login-users { margin-top: 10px; max-height: 260px; overflow-y: auto; }
@media (max-width: 520px) { .otp { gap: 6px; } .otp-cell { width: 44px; height: 54px; font-size: 22px; } }

/* ---------- дежурная неделя (заготовка) и объявление ---------- */
.duty { border-style: dashed; border-color: var(--line-2); display: flex; flex-direction: column; }
.duty-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 4px; }
.duty-empty span { font-size: 22px; opacity: 0.7; }
.duty-empty small { color: var(--dim); font-size: 11.5px; line-height: 1.35; }
.announce { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.announce .panel-title { display: flex; align-items: center; gap: 6px; }
.announce.important { border-color: rgba(255, 95, 87, 0.5); box-shadow: 0 0 26px -10px rgba(255, 95, 87, 0.6); }
.announce.important::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.ann-text {
  flex: 1; font-size: 13px; line-height: 1.45; color: #dfe5d6; overflow-y: auto; max-height: 120px; padding-right: 4px;
  white-space: pre-wrap;
}
.ann-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.ann-foot small { color: var(--muted); font-size: 11px; }
.ann-foot .avatar.sm { width: 20px; height: 20px; font-size: 8.5px; }
.ann-read { margin-left: auto; font-weight: 700; cursor: default; }
.ann-read.ok { color: var(--lime) !important; }
.ann-foot .btn { margin-left: auto; padding: 5px 10px; font-size: 11.5px; }

/* ---------- компактная верхняя панель ---------- */
.dash { grid-template-columns: minmax(220px, 250px) minmax(260px, 1fr) minmax(280px, 1.3fr); gap: 10px; margin-bottom: 20px; }
.dash > .panel { padding: 12px 14px; }
.dash .panel-title { margin-bottom: 8px; font-size: 10.5px; }
.mc-head { margin-bottom: 4px; }
.mc-head b { font-size: 12.5px; }
.mc-head .icon-btn.sm { width: 24px; height: 24px; }
.mc-dow { font-size: 9.5px; padding: 0 0 2px; }
.mc-day { aspect-ratio: auto; height: 24px; font-size: 11px; border-radius: 6px; }
.mc-dots { bottom: 1px; }
.mc-dots i { width: 3px; height: 3px; }
.mc-legend { margin-top: 4px; gap: 8px; font-size: 10px; }
.clock-wrap { gap: 14px; }
.clock-digits { font-size: 28px; }
.clock-digits small { font-size: 14px; }
.clock-line { font-size: 12px; margin-top: 3px; }
.clock-info > .muted { font-size: 11.5px !important; }
.clock-bday { margin-top: 8px; padding-top: 6px; font-size: 11.5px; }
.dl-list { gap: 2px; }
.dl-row { padding: 4px 6px; gap: 8px; }
.dl-date { min-width: 58px; font-size: 10.5px; padding: 3px 5px; border-radius: 6px; }
.dl-title b { font-size: 12.5px; }
.dl-title small { font-size: 10.5px; }
.dl-row .avatar.sm { width: 20px; height: 20px; font-size: 8.5px; }

/* ---------- верхняя строка из пяти блоков, ещё компактнее ---------- */
.dash { grid-template-columns: minmax(150px, 0.75fr) minmax(200px, 215px) minmax(230px, 1fr) minmax(240px, 1.15fr) minmax(220px, 1.1fr); gap: 10px; align-items: stretch; }
.dash > .panel { padding: 10px 12px; min-height: 0; }
.mc-day { height: 21px; font-size: 10.5px; }
.mc-legend { display: none; }
.clock-card { justify-content: center; }
.clock-wrap { gap: 10px; }
.clock-digits { font-size: 34px; }
.clock-digits small { font-size: 15px; }
.clock-line { font-size: 11px; margin-top: 2px; }
.clock-info > .muted { font-size: 10.5px !important; }
.clock-bday { margin-top: 6px; padding-top: 5px; font-size: 11px; }
.dl-row { padding: 3px 4px; }
.dl-date { min-width: 50px; font-size: 10px; }
.dl-title b { font-size: 12px; }
.dl-title small { display: none; }
@media (max-width: 1250px) {
  .dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash .deadlines { grid-column: auto; }
}
@media (max-width: 800px) { .dash { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dash { grid-template-columns: 1fr; } }

/* ---------- календарь: цветные числа вместо точек ---------- */
.mc-day { position: relative; font-weight: 700; }
.mc-day sup { position: absolute; top: 1px; right: 3px; font-size: 8px; font-weight: 800; line-height: 1; opacity: 0.85; }
.mc-day.ev-dl:not(.today) { color: var(--lime); background: var(--lime-soft); font-weight: 800; }
.mc-day.ev-late:not(.today) { color: var(--red); background: var(--red-soft); font-weight: 800; text-shadow: 0 0 10px rgba(255, 95, 87, 0.5); }
.mc-day.ev-bd:not(.today) { color: #ff8fd0; background: rgba(255, 143, 208, 0.12); font-weight: 800; }
.mc-day.ev-pay:not(.today) { color: #ffd23f; font-weight: 800; }
.mc-day.other.ev-dl, .mc-day.other.ev-late, .mc-day.other.ev-bd { opacity: 0.55; }
.mc-day.today.ev-late { box-shadow: 0 0 0 2px var(--red), 0 0 16px rgba(255, 95, 87, 0.5); }
.mc-day.today.ev-bd { box-shadow: 0 0 0 2px #ff8fd0, 0 0 16px var(--lime-glow); }
.mc-legend b { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; }
.mc-legend b.ev-dl { color: var(--lime); background: var(--lime-soft); }
.mc-legend b.ev-late { color: var(--red); background: var(--red-soft); }
.mc-legend b.ev-bd { color: #ff8fd0; background: rgba(255, 143, 208, 0.12); }
.mc-legend b.ev-pay { color: #ffd23f; box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.55); }

/* ---------- мини-игра «Помоги Сергею» ---------- */
.sg-layout { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: start; }
.sg-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); background: #000; }
#sg-canvas { display: block; width: 100%; height: auto; aspect-ratio: 960 / 360; image-rendering: auto; outline: none; }
#sg-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--lime); }
.sg-overlay { position: absolute; inset: 0; display: none; place-items: center; background: rgba(10, 11, 9, 0.55); backdrop-filter: blur(3px); padding: 14px; }
.sg-overlay.on { display: grid; animation: fadeIn 0.3s ease both; }
.sg-card {
  max-width: 520px; background: rgba(17, 19, 15, 0.94); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px; animation: modalIn 0.45s var(--spring) both;
}
.sg-card.small { max-width: 380px; text-align: center; align-items: center; }
.sg-card.win { border-color: var(--lime); box-shadow: 0 0 40px -10px var(--lime-glow); }
.sg-card.late { border-color: var(--red); box-shadow: 0 0 40px -10px rgba(255, 95, 87, 0.6); }
/* карточка проигрыша — внизу слева, чтобы не закрывать девушку в окне */
.sg-overlay.on:has(.late) { background: transparent; backdrop-filter: none; place-items: end start; }
.sg-overlay.on:has(.late) .sg-card { max-width: 290px; padding: 14px 16px; gap: 6px; }
.sg-title { font-family: var(--display); font-weight: 600; font-size: 19px; }
.sg-card p { color: var(--muted); font-size: 13px; }
.sg-card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #cfd6c6; }
.sg-keys { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sg-keys kbd { margin: 0; }
.sg-card .btn { align-self: flex-start; }
.sg-card.small .btn { align-self: center; }
.sg-touch { display: none; position: absolute; left: 0; right: 0; bottom: 10px; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.sg-touch button {
  pointer-events: auto; width: 54px; height: 54px; border-radius: 50%; font-size: 20px; color: #fff;
  background: rgba(10, 11, 9, 0.55); border: 1px solid rgba(255, 255, 255, 0.25); touch-action: none; user-select: none;
}
.sg-touch button.jump { margin-left: auto; background: rgba(198, 255, 61, 0.35); border-color: var(--lime); }
.sg-touch button + button:not(.jump) { margin-left: 8px; }
@media (hover: none) { .sg-touch { display: flex; } }
@media (max-width: 960px) { .sg-layout { grid-template-columns: 1fr; } }

/* обновление без повторной анимации появления */
.static .view, .static .stagger > *, .static .card, .static .cal-day, .static .banner { animation: none; }
.static .card.just-moved { animation: landed 0.7s var(--spring); }

/* ошибка в поле — мягкое красное свечение вместо тряски */
.shake { animation: errGlow 1.2s var(--ease); border-color: var(--red) !important; }
@keyframes errGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 95, 87, 0); }
  25% { box-shadow: 0 0 0 4px rgba(255, 95, 87, 0.3), 0 0 26px rgba(255, 95, 87, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 87, 0); }
}

/* кнопки: свечение за курсором и перелив вместо движения */
.btn, .icon-btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before, .icon-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 61, 0.22), transparent 70%);
}
.btn:hover::before, .icon-btn:hover::before { opacity: 1; }
.btn:hover, .icon-btn:hover { transform: none; border-color: rgba(198, 255, 61, 0.45); box-shadow: 0 0 18px -4px var(--lime-glow); }
.btn:active { transform: scale(0.98); }
.btn-lime { background: linear-gradient(110deg, var(--lime-fill) 0%, var(--lime-fill) 40%, #eaffb0 50%, var(--lime-fill) 60%, var(--lime-fill) 100%); background-size: 250% 100%; background-position: 100% 0; }
.btn-lime::before { background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.45), transparent 70%); }
.btn-lime:hover { animation: shimmer 1.4s var(--ease) infinite; box-shadow: 0 0 0 1px var(--lime), 0 8px 34px -6px var(--lime-glow); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.btn-danger:hover { border-color: var(--red); box-shadow: 0 0 18px -4px rgba(255, 95, 87, 0.5); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

.muted { color: var(--muted); }
.lime { color: var(--lime); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .emo { font-size: 44px; margin-bottom: 8px; }

@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .side-widgets { grid-template-columns: 1fr; }
  .cal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .kanban { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; padding: 24px 16px; overflow-y: auto; }
  .login-art { display: none; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .search-btn { min-width: 0; }
  .search-btn span, .search-btn kbd { display: none; }
  .team-summary, .hours-hero, .grid-2, .grid-3, .kv { grid-template-columns: 1fr 1fr; }
  .notif-pop { right: 16px; width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =====================================================================
   Светлая тема — основная. Тёмная включается в профиле (data-theme="dark").
   «Тёплая бумага + лайм»: тёплый нейтральный фон, белые карточки с мягкими
   тенями, один акцент (спокойный лайм) и статусы одной насыщенности.
   ===================================================================== */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ee;
  --surface: #fffffe;
  --surface-2: #f8f7f3;
  --surface-3: #ecebe4;
  --line: rgba(42, 40, 30, 0.08);
  --line-2: rgba(42, 40, 30, 0.14);
  --text: #1c1d18;
  --muted: #67685f;
  --dim: #9b9b92;
  /* акцент: текст — оливковый, заливки — мягкий лайм вместо неона */
  --lime: #4f7d12;
  --lime-2: #406a0b;
  --lime-fill: #c9ef5b;
  --lime-soft: rgba(140, 190, 40, 0.13);
  --lime-glow: rgba(150, 200, 40, 0.35);
  --acc-bg: linear-gradient(135deg, #e0f98e 0%, #c9ef5b 100%);
  --acc-ink: #24390a;
  --acc-border: #b8dd4a;
  --acc-glow: 0 6px 18px -10px rgba(110, 160, 20, 0.55);
  /* статусы — приглушённые, тёплые, одной насыщенности */
  --amber: #b5780f;
  --amber-soft: rgba(200, 140, 30, 0.12);
  --orange: #c8643a;
  --red: #cf4a41;
  --red-soft: rgba(207, 74, 65, 0.1);
  --blue: #4a6fb0;
  --gold: #a87a10;
  --pink: #b8487f;
  /* тени — тёплые, без зелёного оттенка */
  --shadow-sm: 0 1px 2px rgba(50, 45, 30, 0.05);
  --shadow: 0 1px 2px rgba(50, 45, 30, 0.04), 0 10px 28px -18px rgba(50, 45, 30, 0.22);
  --shadow-lg: 0 40px 100px -30px rgba(50, 45, 30, 0.38);
}
:root[data-theme="dark"] { color-scheme: dark; }

/* плавная смена темы */
body.theme-anim, body.theme-anim * { transition: background-color 0.5s ease, border-color 0.5s ease, color 0.4s ease, box-shadow 0.5s ease !important; }

/* поверхности */
[data-theme="light"] .sidebar, [data-theme="light"] .topbar { background: rgba(250, 249, 245, 0.82); }
[data-theme="light"] .panel { background: var(--surface); box-shadow: var(--shadow); }
[data-theme="light"] :is(.stat, .person, .acc, .ach, .pcard) { box-shadow: var(--shadow); }
[data-theme="light"] .col { background: rgba(232, 230, 222, 0.5); }
[data-theme="light"] .card { background: var(--surface); box-shadow: var(--shadow-sm); }
[data-theme="light"] .card:hover { box-shadow: 0 14px 30px -16px rgba(50, 45, 30, 0.3); }
[data-theme="light"] .col:has(.scrolly)::after { background: linear-gradient(transparent, rgba(239, 238, 232, 0.97)); }
[data-theme="light"] .desc-full, [data-theme="light"] .champion blockquote, [data-theme="light"] .ann-text, [data-theme="light"] .sg-card ul { color: var(--text); }
[data-theme="light"] .acc.busy, [data-theme="light"] .duty, [data-theme="light"] .path-box, [data-theme="light"] .creds { background: var(--surface-2); }
[data-theme="light"] .overlay { background: rgba(45, 42, 32, 0.28); }
[data-theme="light"] .modal, [data-theme="light"] .notif-pop { box-shadow: var(--shadow-lg); }
[data-theme="light"] .toast { background: var(--surface); box-shadow: 0 20px 50px -16px rgba(50, 45, 30, 0.32); }
[data-theme="light"] .input, [data-theme="light"] .textarea, [data-theme="light"] .select { background: var(--surface); }
[data-theme="light"] .spotlight { background: radial-gradient(circle, rgba(200, 235, 90, 0.16), transparent 65%); }
[data-theme="light"] .bg-grid { opacity: 0.55; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #d6d4cb; }
[data-theme="light"] ::selection { background: #dcf884; color: var(--acc-ink); }
[data-theme="light"] .login-art .draw.thin { stroke: rgba(42, 40, 30, 0.16); }
[data-theme="light"] .login-art .win { fill: #b5dc45; }
[data-theme="light"] .sg-wrap { box-shadow: 0 30px 60px -30px rgba(50, 45, 30, 0.4); }
[data-theme="light"] .sg-overlay { background: rgba(45, 42, 32, 0.35); }
[data-theme="light"] .sg-card { background: rgba(255, 255, 254, 0.96); box-shadow: var(--shadow-lg); }

/* аватары: неоновые цвета тёмной темы на светлом смягчаем */
[data-theme="light"] .avatar { filter: saturate(0.7) brightness(1.02); }

/* золото (зарплата) и розовый (ДР) — в тон остальной палитре */
[data-theme="light"] .mc-day.ev-pay:not(.today), [data-theme="light"] .pay-days, [data-theme="light"] .acc-rules b { color: var(--gold); }
[data-theme="light"] .mc-day.pay:not(.today) { box-shadow: inset 0 0 0 1.5px rgba(168, 122, 16, 0.45); }
[data-theme="light"] .mc-day.ev-bd:not(.today) { color: var(--pink); background: rgba(184, 72, 127, 0.09); }
[data-theme="light"] .clock-bday a { color: var(--pink); }
[data-theme="light"] .acc-rules { background: rgba(200, 150, 30, 0.07); border-color: rgba(168, 122, 16, 0.28); }

/* главные кнопки — мягкий лайм с оливковым текстом */
[data-theme="light"] .btn-lime {
  background: linear-gradient(110deg, #d4f46c 0%, #c9ef5b 40%, #eefcc2 50%, #c9ef5b 60%, #bfe74e 100%);
  background-size: 250% 100%; background-position: 100% 0;
  color: var(--acc-ink); border-color: var(--acc-border); box-shadow: var(--acc-glow);
}
[data-theme="light"] .btn-lime::before { background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.55), transparent 70%); }
[data-theme="light"] .btn-lime:hover { box-shadow: 0 0 0 1px var(--acc-border), 0 10px 26px -10px rgba(110, 160, 20, 0.7); border-color: var(--acc-border); }
[data-theme="light"] .btn:hover, [data-theme="light"] .icon-btn:hover { border-color: rgba(79, 125, 18, 0.35); box-shadow: 0 4px 14px -8px rgba(110, 160, 20, 0.5); }

/* активные и выделенные элементы */
[data-theme="light"] :is(.badge, .filter.on, .tab.on, .palette-item.on, .cand.on, .cred-btn.copied, .copy-btn.copied, .toast.ach, .otp.ok .otp-cell) {
  background: var(--acc-bg); color: var(--acc-ink); border-color: var(--acc-border);
}
[data-theme="light"] .palette-item.on small, [data-theme="light"] .toast.ach small { color: rgba(36, 57, 10, 0.68); }
[data-theme="light"] .palette-item.on .ic { background: rgba(255, 255, 255, 0.5); }
[data-theme="light"] .nav-item.active .badge { background: #fff; color: var(--acc-ink); }
[data-theme="light"] .brand-mark { background: var(--acc-bg); color: var(--acc-ink); box-shadow: var(--acc-glow); }
[data-theme="light"] .assignee.on { border-color: var(--acc-border); background: var(--lime-soft); }
[data-theme="light"] .assignee.on .tick { background: var(--acc-bg); border-color: var(--acc-border); color: var(--acc-ink); }
[data-theme="light"] .acc-switch.on { background: var(--acc-bg); border-color: var(--acc-border); box-shadow: var(--acc-glow); }
[data-theme="light"] .acc-switch.on i { background: #fff; box-shadow: 0 1px 4px rgba(36, 57, 10, 0.35); }
[data-theme="light"] .acc.mine { border-color: var(--acc-border); box-shadow: 0 0 0 3px rgba(200, 235, 90, 0.25), var(--shadow); }
[data-theme="light"] .acc.busy .acc-switch { background: var(--amber-soft); border-color: rgba(181, 120, 15, 0.3); box-shadow: none; }
[data-theme="light"] .acc.busy .acc-switch i { background: var(--amber); box-shadow: none; }
[data-theme="light"] .cand-row.on { border-color: var(--acc-border); background: var(--lime-soft); box-shadow: none; }
[data-theme="light"] .mc-day.sel { outline-color: var(--acc-border); }
[data-theme="light"] .lv-filter.on { background: var(--surface); }
[data-theme="light"] .theme-switch button.on { box-shadow: 0 0 0 1px var(--acc-border), 0 6px 16px -10px rgba(50, 45, 30, 0.35); }

/* лаймовые подсветки блоков: «новые задачи», чемпион, ачивки, ДР */
[data-theme="light"] .new-block { background: radial-gradient(circle at 0% 0%, rgba(210, 245, 110, 0.35), transparent 55%), var(--surface); border-color: rgba(150, 200, 50, 0.45); box-shadow: 0 0 0 4px rgba(200, 235, 90, 0.12), var(--shadow); animation: none; }
[data-theme="light"] .new-block.empty { background: transparent; box-shadow: none; }
[data-theme="light"] .champion { background: radial-gradient(circle at 50% 0%, rgba(210, 245, 110, 0.35), transparent 60%), var(--surface); border-color: rgba(150, 200, 50, 0.35); }
[data-theme="light"] .ach.on { background: radial-gradient(circle at 50% 0%, rgba(210, 245, 110, 0.32), transparent 70%), var(--surface); border-color: rgba(150, 200, 50, 0.4); }
[data-theme="light"] .bday-hero { background: radial-gradient(circle at 85% 20%, rgba(210, 245, 110, 0.4), transparent 45%), var(--surface); }
[data-theme="light"] .card-new { border-color: rgba(150, 200, 50, 0.6); box-shadow: 0 0 0 3px rgba(200, 235, 90, 0.18), var(--shadow-sm); }
[data-theme="light"] .creds { border-color: rgba(150, 200, 50, 0.35); }

/* карточка «Моя загрузка» — светлый лаймовый градиент */
[data-theme="light"] .stat.accent { background: linear-gradient(140deg, #f3fdd2 0%, #e2f99a 60%, #d2f272 100%); border-color: var(--acc-border); color: var(--acc-ink); box-shadow: 0 14px 34px -22px rgba(110, 160, 20, 0.8); }
[data-theme="light"] .stat.accent .label, [data-theme="light"] .stat.accent .sub, [data-theme="light"] .stat.accent .value small { color: rgba(36, 57, 10, 0.62); }
[data-theme="light"] .stat.accent .progress { background: rgba(36, 57, 10, 0.1); }
[data-theme="light"] .stat.accent .progress > i { background: linear-gradient(90deg, #4f7d12, #7aab26); box-shadow: none; }

/* календарь и часы */
[data-theme="light"] .mc-day.today { background: var(--acc-bg); color: var(--acc-ink); box-shadow: 0 0 0 1px var(--acc-border), 0 4px 12px -6px rgba(110, 160, 20, 0.7); }
[data-theme="light"] .mc-day.ev-dl:not(.today) { color: var(--lime); background: var(--lime-soft); }
[data-theme="light"] .mc-day.ev-late:not(.today) { text-shadow: none; }
[data-theme="light"] .clock-digits small { color: var(--lime); }

/* блоки задач: тонкая цветная полоса, спокойные цифры */
[data-theme="light"] .col-num { text-shadow: none; }
[data-theme="light"] .col[data-col="work"] { --c: #6f9e22; }
[data-theme="light"] .chip.lime { color: var(--lime); background: var(--lime-soft); }
[data-theme="light"] .due.urgent { color: var(--orange); }
[data-theme="light"] .lb-bar i, [data-theme="light"] .progress > i { background: linear-gradient(90deg, #6f9e22, #b5dc45); }
[data-theme="light"] .champion .champ-stats b { color: var(--lime); }

/* переключатель темы в профиле */
.theme-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.theme-switch button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--muted); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.theme-switch button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 6px 16px -8px rgba(0, 0, 0, 0.35); }
.theme-switch button .sw { width: 22px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); }
