@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-400.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/manrope-500.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-600.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/manrope-700.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/manrope-800.woff2") format("woff2");
}

:root {
  /* тот же navy/violet, но на 2–3 ступени светлее исходного #050625 */
  --bg-0: #1a1e4a;
  --bg-1: #22275a;
  --bg-2: #2a3068;
  --bg-card: rgba(42, 48, 104, 0.78);
  --ink: #f4f5ff;
  --muted: #b7bedd;
  --line: rgba(200, 208, 245, 0.18);
  --line-strong: rgba(200, 208, 245, 0.28);
  --cyan: #5fe0f4;
  --cyan-2: #7aebf8;
  --violet: #7a74ff;
  --violet-2: #908aff;
  --ok: #4dde9a;
  --warn: #f0c14a;
  --danger: #ff7b7b;
  --chip: rgba(95, 224, 244, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px rgba(10, 12, 40, 0.28);
  --font: "Manrope", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(122, 116, 255, 0.28), transparent 55%),
    radial-gradient(800px 420px at 88% 8%, rgba(95, 224, 244, 0.16), transparent 50%),
    radial-gradient(700px 500px at 50% 100%, rgba(118, 85, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #1e2352 0%, var(--bg-0) 42%, #171b42 100%);
  background-attachment: fixed;
}

a { color: var(--cyan); }
button, input, select, textarea { font: inherit; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(30, 35, 82, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.18s ease;
}
.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}
.nav a.active {
  color: #1a1e4a;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-2) 100%);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(95, 224, 244, 0.28);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 42%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 224, 244, 0.5), rgba(122, 116, 255, 0.4), transparent);
  pointer-events: none;
}

.panel-title,
.panel > h1,
.panel > h2 {
  margin: 0;
  padding: 18px 22px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: transparent;
  border: none;
  text-shadow: none;
  text-transform: none;
  box-shadow: none;
}

.panel-body {
  padding: 16px 22px 22px;
}

.panel > p.lead {
  margin: 0;
  padding: 8px 22px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.panel > form,
.panel > .table-wrap,
.panel > .bars,
.panel > .stack,
.panel > #mails {
  padding: 14px 22px 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

input, select, textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: rgba(26, 30, 74, 0.55);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: 0.15s ease;
}
input::placeholder,
textarea::placeholder { color: #8e97c0; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(95, 224, 244, 0.65);
  box-shadow: 0 0 0 3px rgba(95, 224, 244, 0.15);
}
select option { background: #22275a; color: var(--ink); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.btn {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-2) 100%);
  color: #1a1e4a;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(95, 224, 244, 0.22);
  transition: 0.18s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn.secondary:hover {
  border-color: rgba(95, 224, 244, 0.55);
  background: rgba(95, 224, 244, 0.08);
  filter: none;
}
.btn.danger {
  background: linear-gradient(135deg, #ff8a80, var(--danger));
  color: #2a0a10;
  box-shadow: 0 0 24px rgba(255, 123, 123, 0.22);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 999px;
}
.btn[hidden],
[hidden] {
  display: none !important;
}

.table-wrap { overflow: auto; border-radius: var(--radius-sm); }

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(200, 208, 245, 0.22);
  border-top-color: var(--cyan);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.spinner.lg {
  width: 40px;
  height: 40px;
  border-width: 3.5px;
}
.loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 12px;
  color: var(--muted);
  font-size: 13px;
}
.loading-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 8px;
  color: var(--muted);
  font-size: 13px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: rgba(26, 30, 74, 0.35);
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
tr:hover td { background: rgba(95, 224, 244, 0.05); }

table.table-framed {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
table.table-framed th,
table.table-framed td {
  border: 1px solid var(--line);
}
table.table-framed th {
  border-bottom-color: rgba(95, 224, 244, 0.28);
  background: linear-gradient(180deg, rgba(122, 116, 255, 0.2), rgba(42, 48, 104, 0.45));
  color: #e4e7ff;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--chip);
  color: var(--cyan);
  white-space: nowrap;
  border: 1px solid rgba(95, 224, 244, 0.28);
}
.badge.draft { background: rgba(183,190,221,0.14); color: #d0d5ee; border-color: rgba(183,190,221,0.28); }
.badge.sent { background: rgba(95,224,244,0.14); color: var(--cyan); border-color: rgba(95,224,244,0.3); }
.badge.waiting_manager { background: rgba(240,193,74,0.14); color: var(--warn); border-color: rgba(240,193,74,0.3); }
.badge.done { background: rgba(77,222,154,0.14); color: var(--ok); border-color: rgba(77,222,154,0.3); }
.badge.overdue { background: rgba(255,123,123,0.14); color: var(--danger); border-color: rgba(255,123,123,0.3); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.stat .n {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .l {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 36px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.bar-track {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(95, 224, 244, 0.3);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #2a3068;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
  pointer-events: none;
  max-width: 360px;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateY(0); }

.mail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(26, 30, 74, 0.4);
}
.mail-card.unread {
  border-color: rgba(95, 224, 244, 0.45);
  background: rgba(95, 224, 244, 0.08);
  box-shadow: 0 0 24px rgba(95, 224, 244, 0.08);
}
.mail-meta { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.mail-subject { font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.mail-body { font-size: 14px; line-height: 1.55; color: #d8dcef; }
.mail-body a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2)) !important;
  color: #1a1e4a !important;
  text-decoration: none !important;
  font-weight: 800;
}

.zz-list { display: flex; flex-direction: column; gap: 10px; }
.zz-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(26, 30, 74, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: 0.18s ease;
}
.zz-item:hover {
  border-color: rgba(95, 224, 244, 0.5);
  background: rgba(95, 224, 244, 0.08);
  box-shadow: 0 0 28px rgba(95, 224, 244, 0.1);
  transform: translateY(-1px);
}
.zz-item strong {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.zz-item .meta { color: var(--muted); font-size: 12px; }
.zz-item-rich {
  align-items: flex-start;
}
.zz-item-main {
  flex: 1;
  min-width: 0;
}
.zz-parties {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.zz-party {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(5, 6, 37, 0.28);
  border: 1px solid var(--line);
}
.zz-party-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.zz-party-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}
.zz-party-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.zz-party-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.zz-party .step-status {
  flex: 0 0 auto;
}

.chain-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.chain-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

.chain-step {
  background: rgba(26, 30, 74, 0.45);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(8, 10, 30, 0.22);
  position: relative;
}

.chain-step.step-level-0 { margin-left: 0; max-width: 100%; }
.chain-step.step-level-1 { margin-left: 28px; max-width: calc(100% - 28px); border-color: rgba(95, 224, 244, 0.28); }
.chain-step.step-level-2 { margin-left: 56px; max-width: calc(100% - 56px); border-color: rgba(122, 116, 255, 0.35); }

@media (max-width: 700px) {
  .chain-step.step-level-1 { margin-left: 14px; max-width: calc(100% - 14px); }
  .chain-step.step-level-2 { margin-left: 28px; max-width: calc(100% - 28px); }
}

.step-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--line);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #1a1e4a;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  flex: 0 0 auto;
}
.step-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.step-body { padding: 12px 16px 8px; }
.step-mail {
  padding: 12px;
  border-radius: 10px;
  background: rgba(5, 6, 37, 0.28);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.step-actions {
  display: flex;
  justify-content: flex-start;
  padding: 4px 16px 0;
}
.step-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.step-status-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.step-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.step-status.pending {
  color: var(--warn);
  background: rgba(240, 193, 74, 0.12);
  border-color: rgba(240, 193, 74, 0.3);
}
.step-status.overdue {
  color: var(--danger);
  background: rgba(255, 123, 123, 0.12);
  border-color: rgba(255, 123, 123, 0.3);
}
.step-status.done {
  color: var(--ok);
  background: rgba(77, 222, 154, 0.14);
  border-color: rgba(77, 222, 154, 0.35);
}
.status-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ok);
  color: #0b2a1a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  text-align: center;
  gap: 18px;
}

.login-hero-title {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f4f7ff;
}

.login-hero-sub {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.role-grid {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}

.role-btn {
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.02) 42%, rgba(0,0,0,0.12) 100%),
    linear-gradient(135deg, #3a4490 0%, #252b63 55%, #1a1e4a 100%);
  color: var(--ink);
  padding: 22px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.18s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -2px 0 rgba(0,0,0,0.25),
    0 10px 0 #12163a,
    0 18px 28px rgba(0, 0, 0, 0.35);
}
.role-btn strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.role-btn span {
  color: #c9d0ef;
  font-size: 13px;
  line-height: 1.4;
  max-width: 280px;
}
.role-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 224, 244, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.2),
    0 12px 0 #12163a,
    0 22px 34px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(95, 224, 244, 0.18);
}
.role-btn:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.35),
    0 4px 0 #12163a,
    0 8px 16px rgba(0, 0, 0, 0.3);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 10, 28, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.hidden { display: none; }
.modal-card {
  width: min(440px, 100%);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%),
    #22275a;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 22px;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12);
  text-align: left;
}
.modal-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.modal-label {
  margin-top: 14px;
}
.modal-actions {
  margin-top: 16px;
  justify-content: flex-end;
}
.modal-card .suggest-list {
  position: static;
  margin-top: 8px;
  max-height: 180px;
}

.status-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.status-tab {
  border: 1px solid var(--line-strong);
  background: rgba(26, 30, 74, 0.35);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.status-tab:hover {
  color: var(--ink);
  border-color: rgba(95, 224, 244, 0.4);
}
.status-tab.active {
  color: #1a1e4a;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  border-color: transparent;
  box-shadow: 0 0 20px rgba(95, 224, 244, 0.2);
}

.nav a.nav-logout {
  color: #ffb4b4;
}
.nav a.nav-logout:hover {
  color: #fff;
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.35);
}

.muted { color: var(--muted); }
.small { font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 0;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.search-box {
  flex: 1 1 280px;
  min-width: 220px;
}
.search-box input {
  width: 100%;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-panel {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(26, 30, 74, 0.35);
}
.filter-panel.hidden { display: none; }
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.filter-group-wide {
  grid-column: 1 / -1;
}
@media (max-width: 960px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .filter-grid { grid-template-columns: 1fr; }
}
.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow: auto;
  padding-right: 4px;
}
.check-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}
.check-item input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--cyan);
  box-shadow: none;
  padding: 0;
}

.employee-combo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.employee-combo input {
  width: 100%;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-list.empty { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  background: rgba(95, 224, 244, 0.14);
  border: 1px solid rgba(95, 224, 244, 0.35);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.chip-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}
.chip-remove:hover { color: var(--danger); }
.suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  max-height: 220px;
  overflow: auto;
  background: #22275a;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.suggest-list.hidden { display: none; }
.suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.suggest-item:hover,
.suggest-item:focus {
  background: rgba(95, 224, 244, 0.12);
  outline: none;
}
.suggest-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}
