*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg-top);
  color: var(--text);
  overflow-x: clip;
}

body {
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%) fixed;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  transform: translateZ(0);
}

body::before {
  top: -18vh;
  left: -12vw;
  width: 62vw;
  height: 62vw;
  max-width: 860px;
  max-height: 860px;
  background: radial-gradient(circle, var(--ambient-blue) 0%, rgba(15, 41, 66, 0) 68%);
}

body::after {
  bottom: -22vh;
  right: -10vw;
  width: 56vw;
  height: 56vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, var(--ambient-teal) 0%, rgba(11, 56, 52, 0) 68%);
}

html.eco-motion body::before,
html.eco-motion body::after {
  display: none;
}

.mono,
code,
pre,
.tabular {
  font-variant-numeric: tabular-nums;
}

.mono,
code,
pre {
  font-family: var(--mono);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-specular),
    var(--glass-shadow);
  border-radius: var(--r-lg);
}

.glass-raised {
  background: var(--glass-raised);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-raised-border);
  box-shadow:
    inset 0 1px 0 var(--glass-raised-specular),
    var(--glass-raised-shadow);
  border-radius: var(--r-md);
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

h1 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Form controls & buttons */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  max-width: 100%;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: rgba(24, 33, 48, 0.56);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

button:hover:not(:disabled) {
  background: rgba(34, 46, 66, 0.8);
  border-color: var(--hairline-strong);
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

button svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary,
.primary {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.94), rgba(16, 185, 129, 0.9));
  color: #041d15;
  border-color: rgba(110, 231, 183, 0.55);
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 4px 16px rgba(16, 185, 129, 0.22);
}

.btn-primary:hover:not(:disabled),
.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #4adeac, #10b981);
  border-color: rgba(167, 243, 208, 0.72);
  color: #031710;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-sec);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--hover-tint);
  border-color: var(--hairline);
  color: var(--text);
}

.btn-danger,
.danger {
  color: var(--coral);
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.24);
}

.btn-danger:hover:not(:disabled),
.danger:hover:not(:disabled) {
  background: rgba(251, 113, 133, 0.17);
  border-color: rgba(251, 113, 133, 0.45);
}

.btn-amber {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: var(--amber-border);
}

.btn-emerald {
  color: var(--emerald);
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}

.btn-emerald:hover:not(:disabled) {
  background: rgba(52, 211, 153, 0.24);
  border-color: rgba(52, 211, 153, 0.5);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 7px;
}

.btn-icon {
  padding: 7px;
  width: 34px;
  height: 34px;
}

input[type="text"],
input[type="password"],
input[type="search"],
select,
textarea {
  background: rgba(8, 12, 19, 0.68);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--hairline-strong);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

select option {
  background: #0d131d;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Status dots & breathing pulse */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--text-muted);
}

.dot-emerald {
  background: var(--emerald);
}
.dot-teal {
  background: var(--teal);
}
.dot-sky {
  background: var(--sky);
}
.dot-amber {
  background: var(--amber);
}
.dot-coral {
  background: var(--coral);
}

.dot-pulse {
  position: relative;
}
.dot-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.35;
  animation: breathe 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.45);
    opacity: 0.05;
  }
}

html.eco-motion .dot-pulse::after {
  animation: none;
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .dot-pulse::after {
    animation: none;
    display: none;
  }
}

/* Brand Emblem */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.24), rgba(56, 189, 248, 0.18));
  border: 1px solid rgba(52, 211, 153, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  color: var(--emerald);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.version-pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  padding: 1px 6px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

/* Semantic Pills / Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sec);
  white-space: nowrap;
}

.pill-emerald {
  color: var(--emerald);
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}
.pill-teal {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: var(--teal-border);
}
.pill-sky {
  color: var(--sky);
  background: var(--sky-soft);
  border-color: var(--sky-border);
}
.pill-amber {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: var(--amber-border);
}
.pill-coral {
  color: var(--coral);
  background: var(--coral-soft);
  border-color: var(--coral-border);
}
.pill-winner {
  color: #fde68a;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(52, 211, 153, 0.18));
  border-color: rgba(251, 191, 36, 0.45);
}

/* ==================== LOGIN SCREEN ==================== */
.login-screen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.login-card {
  width: 100%;
  max-width: 416px;
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp var(--dur-med) var(--ease-out) both;
}

.login-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.login-head .brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.login-head .brand-icon svg {
  width: 26px;
  height: 26px;
}

.login-head h1 {
  font-size: 22px;
  margin-top: 2px;
}

.login-sub {
  font-size: 13px;
  color: var(--text-sec);
  max-width: 32ch;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: var(--text-sec);
  margin-bottom: 6px;
}

.token-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.token-wrap input {
  width: 100%;
  padding: 11px 42px 11px 14px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 10px;
}

.eye-toggle {
  position: absolute;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}

.eye-toggle:hover {
  color: var(--text);
  background: var(--hover-tint);
}

#toggleToken:focus-visible + .eye-toggle {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.eye-toggle svg {
  width: 16px;
  height: 16px;
}

.eye-toggle .icon-eye-off {
  display: none;
}

#toggleToken:checked + .eye-toggle .icon-eye {
  display: none;
}

#toggleToken:checked + .eye-toggle .icon-eye-off {
  display: block;
}

.login-form .primary {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.login-status {
  min-height: 18px;
  font-size: 12px;
  color: var(--coral);
  text-align: center;
}

.login-status:empty {
  display: none;
}

.login-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.login-hint svg {
  width: 14px;
  height: 14px;
  color: var(--sky);
  flex-shrink: 0;
}

/* ==================== APP SHELL (DESKTOP GRID) ==================== */
#layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  grid-template-areas:
    "brand topbar"
    "sidebar main";
  min-height: 100dvh;
}

.sidebar-brand {
  grid-area: brand;
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(11, 16, 24, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.sidebar-body {
  grid-area: sidebar;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100dvh - var(--topbar-h));
  z-index: 25;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 16px;
  gap: 14px;
  background: rgba(11, 16, 24, 0.66);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--hairline);
  overflow-y: auto;
}

#tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tab-indicator {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition:
    transform var(--dur-med) var(--ease-out),
    width var(--dur-med) var(--ease-out),
    height var(--dur-med) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

#tabs button[role="tab"] {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-sec);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

#tabs button[role="tab"]:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

#tabs button[role="tab"][aria-selected="true"] {
  color: var(--text);
  font-weight: 600;
  background: transparent;
}

#tabs button[role="tab"][aria-selected="true"] svg {
  color: var(--emerald);
}

.tab-label-mobile {
  display: none;
}

.tab-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sec);
}

.tab-count.has-alert {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.tab-count.empty-zero {
  opacity: 0.45;
}

.sidebar-services {
  margin-top: auto;
  padding: 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-section-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.service-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.service-line-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-sec);
}

.service-port {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eco-btn {
  width: 100%;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--hairline);
  color: var(--text-sec);
}

.eco-btn[aria-pressed="true"] {
  background: var(--teal-soft);
  border-color: var(--teal-border);
  color: var(--teal);
}

.eco-state {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
}

.logout-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text-sec);
  background: transparent;
  border-color: var(--hairline);
}

.logout-btn:hover {
  color: var(--coral);
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.06);
}

/* ==================== TOPBAR ==================== */
.topbar {
  grid-area: topbar;
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--hairline);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mobile-brand {
  display: none;
}

.fleet-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
  white-space: nowrap;
}

.fleet-pill.is-paused {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber);
}

.poll-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-sec);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}

.viewer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--sky-soft);
  border: 1px solid var(--sky-border);
  color: var(--sky);
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.autopilot-btn {
  padding: 6px 11px;
  font-size: 12.5px;
  gap: 8px;
  background: rgba(24, 33, 48, 0.56);
}

.autopilot-btn[aria-pressed="true"] {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.38);
  color: var(--emerald);
}

.switch-track {
  width: 26px;
  height: 15px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  flex-shrink: 0;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: transform var(--dur-fast) var(--ease-out);
}

.autopilot-btn[aria-pressed="true"] .switch-track {
  background: var(--emerald);
}

.autopilot-btn[aria-pressed="true"] .switch-track::after {
  transform: translateX(11px);
  background: #041d15;
}

.mobile-only {
  display: none;
}

.desktop-logout-slot {
  display: block;
}

/* ==================== MAIN CONTENT ==================== */
#main {
  grid-area: main;
  width: 100%;
  max-width: 1620px;
  margin: 0 auto;
  padding: 20px 24px 36px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-header-sub {
  font-size: 12.5px;
  color: var(--text-sec);
  margin-top: 3px;
}

.updated-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.alert-banner {
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3;
  font-size: 13px;
}

.alert-banner:empty {
  display: none;
}

.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 14px;
  border-radius: var(--r-md);
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 12.5px;
  color: var(--sky);
}

section[role="tabpanel"] {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Stagger entrance animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-entering > * {
  animation: fadeUp var(--dur-med) var(--ease-out) both;
}
.tab-entering > *:nth-child(2) {
  animation-delay: 35ms;
}
.tab-entering > *:nth-child(3) {
  animation-delay: 70ms;
}
.tab-entering > *:nth-child(4) {
  animation-delay: 105ms;
}
.tab-entering > *:nth-child(5) {
  animation-delay: 140ms;
}

/* ==================== LOADING SKELETONS ==================== */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.045);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

html.eco-motion .skeleton::after {
  animation: none;
  display: none;
}

.boot-screen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: 36px 24px;
  display: grid;
  place-items: start center;
}

.boot-inner {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skeleton-card {
  height: 132px;
}

/* ==================== OVERVIEW: ACTIVE WORKERS STRIP ==================== */
.active-strip {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.active-strip-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-sec);
  min-width: 0;
}

.active-strip-head strong {
  color: var(--text);
  font-weight: 600;
}

.worker-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.worker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 12px;
  background: var(--glass-raised);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 12px;
  color: var(--text);
  flex-wrap: wrap;
}

.worker-chip .wc-meta {
  color: var(--text-sec);
  font-size: 11.5px;
}

.worker-chip .wc-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sky);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==================== OVERVIEW: APPROVALS BANNER STACK ==================== */
.approvals-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.approvals-stack.is-empty {
  display: none;
}

.approval-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(24, 33, 48, 0.72) 45%);
  border: 1px solid rgba(251, 191, 36, 0.34);
  box-shadow: inset 3px 0 0 var(--amber), 0 8px 24px rgba(0, 0, 0, 0.26);
}

.approval-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 260px;
}

.approval-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.approval-note {
  font-size: 12.5px;
  color: var(--text-sec);
  overflow-wrap: anywhere;
}

.approval-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==================== OVERVIEW: KPI RADIAL GAUGES ==================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.kpi-card:hover {
  border-color: var(--glass-raised-border);
}

.gauge-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
}

.gauge-svg {
  width: 78px;
  height: 78px;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6.5;
}

.gauge-track-dashed {
  stroke-dasharray: 4 4;
  stroke: rgba(251, 191, 36, 0.25);
}

.gauge-arc {
  fill: none;
  stroke-width: 6.5;
  stroke-linecap: round;
  transition:
    stroke-dashoffset var(--dur-slow) var(--ease-out),
    stroke var(--dur-med) var(--ease-out);
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}

.gauge-val {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.gauge-sub {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.kpi-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.kpi-title {
  font-size: 13.5px;
  font-weight: 620;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-subtitle {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.kpi-timer {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-sec);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.kpi-dual {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 2px;
}

.kpi-big-num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ==================== SECTION HEADERS & FILTER PILLS ==================== */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(8, 12, 19, 0.56);
  border: 1px solid var(--hairline);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.pill-group::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-sec);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 550;
  border-radius: 7px;
  white-space: nowrap;
}

.pill-btn:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.pill-btn[aria-pressed="true"] {
  background: var(--glass-raised);
  color: var(--text);
  border-color: var(--glass-raised-border);
}

/* ==================== OVERVIEW: KANBAN ==================== */
.kanban-filters-mobile {
  display: none;
}

.kanban-empty-hero {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-style: dashed;
  border-color: rgba(52, 211, 153, 0.24);
  background: linear-gradient(135deg, rgba(17, 23, 34, 0.65), rgba(11, 56, 52, 0.16));
}

.kanban-empty-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 56ch;
}

.kanban-empty-copy p {
  color: var(--text-sec);
  font-size: 13px;
}

.kanban-empty-tips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

#kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.lane {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 152px;
}

.lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.lane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 620;
  color: var(--text);
}

.lane-count {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sec);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 7px;
  border-radius: var(--r-pill);
}

.lane-empty {
  padding: 18px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.mission-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 13px;
  text-align: left;
  white-space: normal;
  border-radius: var(--r-md);
  background: var(--glass-raised);
  border: 1px solid var(--glass-raised-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.mission-card:hover {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(30, 41, 59, 0.88);
  transform: translateY(-1px);
}

.mission-card.is-selected {
  border-color: var(--emerald);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(52, 211, 153, 0.3);
}

.mc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mc-id-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tier-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--sky);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tier-T0 {
  color: var(--text-sec);
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
}
.tier-T1 {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: var(--teal-border);
}
.tier-T2 {
  color: var(--sky);
  background: var(--sky-soft);
  border-color: var(--sky-border);
}
.tier-T3 {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: var(--amber-border);
}

.mc-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.mc-elapsed {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.mc-title {
  font-size: 13px;
  font-weight: 560;
  line-height: 1.38;
  color: var(--text);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mc-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-track {
  display: block;
  width: 100%;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.085);
  overflow: hidden;
}

.mc-progress-row .progress-track,
.score-bar-cell .progress-track {
  flex: 1;
  width: auto;
  min-width: 48px;
}

.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--sky);
  transition: width var(--dur-slow) var(--ease-out);
}

.progress-fill.emerald {
  background: var(--emerald);
}
.progress-fill.teal {
  background: var(--teal);
}
.progress-fill.amber {
  background: var(--amber);
}
.progress-fill.coral {
  background: var(--coral);
}

.mc-pct {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  color: var(--text-sec);
  min-width: 32px;
  text-align: right;
}

.mc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.mc-worker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 10.5px;
}

.mc-blocked {
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.35;
  color: #fda4af;
  background: rgba(251, 113, 133, 0.1);
  border-left: 2px solid var(--coral);
  padding: 5px 8px;
  border-radius: 0 6px 6px 0;
  overflow-wrap: anywhere;
}

/* ==================== OVERVIEW: SERVER HEALTH WIDGET ==================== */
.hw-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hw-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hw-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.hw-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
}

.hw-pct {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
}

.hw-detail {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hw-warn {
  color: var(--coral);
  font-weight: 600;
}

/* ==================== SLIDE-OVER DRAWER / BOTTOM SHEET ==================== */
.drawer {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  width: min(500px, calc(100vw - var(--sidebar-w) - 24px));
  z-index: 45;
  display: flex;
  flex-direction: column;
  border-radius: 16px 0 0 0;
  border-right: 0;
  border-bottom: 0;
  transform: translateX(104%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--dur-med) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out),
    visibility 0s linear var(--dur-med);
  pointer-events: none;
}

.drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform var(--dur-med) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out),
    visibility 0s linear 0s;
  pointer-events: auto;
}

.drawer-handle {
  display: none;
}

.drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.drawer-body {
  padding: 18px 20px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.drawer-section-title {
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dag-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dag-step {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(8, 12, 19, 0.5);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dag-step-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dag-deps {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  width: 100%;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: rgba(8, 12, 19, 0.42);
  border: 1px solid var(--hairline);
  font-size: 12.5px;
}

.feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid var(--hairline-strong);
  color: transparent;
}

.feature-check.is-pass {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald);
}

.feature-check svg {
  width: 11px;
  height: 11px;
}

.contract-box {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-sec);
  background: rgba(6, 8, 13, 0.65);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 12px;
  max-height: 240px;
  overflow-y: auto;
}

/* ==================== TAB 2: QUOTAS & TRACES ==================== */
.chart-panel {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phase-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-sec);
}

.chart-stage {
  position: relative;
  width: 100%;
  height: 248px;
}

#chart {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}

.chart-tooltip {
  position: absolute;
  top: 10px;
  left: 0;
  z-index: 10;
  pointer-events: none;
  min-width: 170px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(11, 16, 24, 0.94);
  border: 1px solid var(--glass-raised-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-tooltip-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-tooltip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sec);
}

.chart-tooltip-val {
  font-family: var(--mono);
  font-weight: 650;
  color: var(--text);
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.legend-series {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--text);
}

.legend-btn.is-hidden {
  opacity: 0.38;
  text-decoration: line-through;
}

.legend-line {
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--swatch);
}

.legend-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.quota-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quota-mini {
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: rgba(8, 12, 19, 0.45);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analytics-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
}

.panel-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.stacked-bar {
  width: 100%;
  height: 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex;
}

.stacked-seg {
  height: 100%;
  transition: width var(--dur-slow) var(--ease-out);
}

.burn-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.burn-stat {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(8, 12, 19, 0.42);
  border: 1px solid var(--hairline);
}

.burn-stat span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.burn-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 650;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.donut-layout {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.donut-box {
  position: relative;
  width: 124px;
  height: 124px;
  flex-shrink: 0;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-center strong {
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
}

.donut-center span {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.donut-list {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.donut-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.donut-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.donut-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11.5px;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sec);
}

.trace-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trace-item {
  border-radius: var(--r-md);
  background: rgba(8, 12, 19, 0.48);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}

.trace-item[open] {
  border-color: var(--glass-raised-border);
  background: rgba(15, 22, 34, 0.72);
}

.trace-item summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: auto auto minmax(100px, 1fr) minmax(80px, 140px) auto auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.trace-item summary::-webkit-details-marker {
  display: none;
}

.trace-item summary:hover {
  background: var(--hover-tint);
}

.trace-dur-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trace-dur-track {
  flex: 1;
  height: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.trace-dur-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal), var(--sky));
}

.trace-detail {
  padding: 0 14px 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}

.trace-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trace-detail pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(5, 8, 13, 0.7);
  border: 1px solid var(--hairline);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-sec);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ==================== TABLES ==================== */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}

th {
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--hairline-strong);
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  overflow-wrap: anywhere;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

tr.row-winner td {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), rgba(52, 211, 153, 0.06));
}

tr.row-archived td {
  opacity: 0.62;
}

tr.row-archived .fact-val {
  text-decoration: line-through;
}

/* ==================== TAB 3: TOURNAMENTS ==================== */
.tournament-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tournament-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.score-bar-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}

/* ==================== TAB 4: CODE & RECEIPTS ==================== */
.diff-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diff-card {
  border-radius: var(--r-md);
  background: rgba(8, 12, 19, 0.72);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.diff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(24, 33, 48, 0.55);
  border-bottom: 1px solid var(--hairline);
}

.diff-file-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.diff-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.diff-plus {
  color: var(--emerald);
}
.diff-minus {
  color: var(--coral);
}

.diff-body {
  overflow-x: auto;
  max-height: 460px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

.diff-line {
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr);
  min-width: max-content;
  width: 100%;
}

.diff-ln {
  padding: 0 8px;
  text-align: right;
  color: var(--text-muted);
  user-select: none;
  font-size: 11px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.diff-code {
  padding: 0 12px;
  white-space: pre;
}

.diff-line.add {
  background: rgba(52, 211, 153, 0.11);
}
.diff-line.add .diff-code {
  color: #a7f3d0;
}
.diff-line.del {
  background: rgba(251, 113, 133, 0.11);
}
.diff-line.del .diff-code {
  color: #fecdd3;
}
.diff-line.hunk {
  background: rgba(56, 189, 248, 0.1);
}
.diff-line.hunk .diff-code {
  color: var(--sky);
}
.diff-line.meta {
  background: rgba(255, 255, 255, 0.03);
}
.diff-line.meta .diff-code {
  color: var(--text-muted);
}

/* ==================== TAB 5: MEMORY & SCARS ==================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skill-bucket {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(8, 12, 19, 0.45);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-item {
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.skill-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.skill-item strong {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.skill-item span {
  font-size: 12px;
  color: var(--text-sec);
}

.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-sec);
  cursor: pointer;
  user-select: none;
}

.toggle-check input {
  accent-color: var(--teal);
  width: 15px;
  height: 15px;
}

/* ==================== TAB 6: NODES, QA GALLERY & EVENTS ==================== */
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.node-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.node-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
}

.node-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sec);
}

.node-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lease-box {
  margin-top: 2px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lease-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.lease-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.shot-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: rgba(8, 12, 19, 0.58);
  border: 1px solid var(--hairline);
  text-align: left;
  white-space: normal;
}

.shot-card:hover {
  border-color: rgba(45, 212, 191, 0.45);
  transform: translateY(-2px);
}

.shot-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #06090f;
}

.shot-caption {
  padding: 8px 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shot-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Live Event Feed */
.event-feed {
  display: flex;
  flex-direction: column;
}

.event-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
}

.event-row:last-child {
  border-bottom: 0;
}

.event-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--text-sec);
  margin-top: 1px;
}

.event-ico svg {
  width: 13px;
  height: 13px;
}

.event-ico.emerald {
  color: var(--emerald);
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}
.event-ico.sky {
  color: var(--sky);
  background: var(--sky-soft);
  border-color: var(--sky-border);
}
.event-ico.amber {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: var(--amber-border);
}
.event-ico.coral {
  color: var(--coral);
  background: var(--coral-soft);
  border-color: var(--coral-border);
}

.event-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-title {
  color: var(--text);
  font-weight: 520;
  overflow-wrap: anywhere;
}

.event-sub {
  color: var(--text-sec);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.event-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==================== EMPTY STATES ==================== */
.empty-state {
  padding: 28px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-sec);
  font-size: 13px;
}

.empty-state-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 44ch;
}

/* ==================== DIALOGS / MODALS / LIGHTBOX ==================== */
dialog.glass-dialog {
  padding: 0;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  border: 1px solid var(--glass-raised-border);
  border-radius: var(--r-lg);
  background: rgba(15, 21, 32, 0.92);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 var(--glass-raised-specular),
    0 24px 64px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

html.eco-motion dialog.glass-dialog {
  backdrop-filter: none;
  background: #111722;
}

dialog.glass-dialog::backdrop {
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(6px);
}

html.eco-motion dialog.glass-dialog::backdrop {
  backdrop-filter: none;
}

.dialog-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: calc(100dvh - 150px);
}

.dialog-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field textarea {
  resize: vertical;
  min-height: 104px;
  line-height: 1.48;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
}

dialog.lightbox-dialog {
  width: min(1060px, calc(100vw - 24px));
}

.lightbox-stage {
  padding: 12px;
  background: rgba(4, 6, 10, 0.85);
  display: grid;
  place-items: center;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 76dvh;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-list button {
  width: 100%;
  justify-content: flex-start;
  padding: 11px 14px;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(17, 24, 36, 0.94);
  border: 1px solid var(--glass-raised-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
  font-size: 12.5px;
  color: var(--text);
  animation: fadeUp var(--dur-med) var(--ease-out) both;
}

.toast.is-ok {
  border-color: var(--emerald-border);
}
.toast.is-err {
  border-color: var(--coral-border);
}
.toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms, transform 180ms;
}

.kbd-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 6px;
}

kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline-strong);
  color: var(--text-sec);
}

/* ==================== RESPONSIVE: MEDIUM DESKTOP / TABLET ==================== */
@media (max-width: 1280px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar-actions .btn-label-opt {
    display: none;
  }
}

@media (max-width: 1040px) {
  :root {
    --sidebar-w: 212px;
  }
  .analytics-split {
    grid-template-columns: 1fr;
  }
  .poll-pill {
    display: none;
  }
}

/* ==================== RESPONSIVE: MOBILE / TELEGRAM MINI APP ==================== */
@media (max-width: 860px) {
  :root {
    --topbar-h: 56px;
  }

  #layout {
    display: block;
    min-height: 100dvh;
  }

  .sidebar-brand {
    display: none;
  }

  /* Transform sidebar-body into a layout passthrough so #tabs becomes fixed bottom nav */
  .sidebar-body {
    position: static;
    height: auto;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    overflow: visible;
  }

  .sidebar-services,
  .sidebar-controls .eco-btn {
    display: none;
  }

  /* Keep the single #logout button cleanly placed inside mobile topbar right slot */
  .sidebar-controls {
    position: fixed;
    top: 11px;
    right: 12px;
    z-index: 40;
    flex-direction: row;
    gap: 0;
  }

  .logout-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 9px;
    background: rgba(24, 33, 48, 0.72);
  }

  .logout-btn .logout-text {
    display: none;
  }

  /* Sticky glass Bottom Navigation Bar */
  #tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(9, 13, 20, 0.88);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid var(--glass-raised-border);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
  }

  html.eco-motion #tabs {
    backdrop-filter: none;
    background: #0d121c;
  }

  .tab-indicator {
    height: 3px;
    top: 0;
    bottom: auto;
    border-radius: 0 0 4px 4px;
    background: var(--emerald);
    border: 0;
    box-shadow: none;
  }

  #tabs button[role="tab"] {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px 4px;
    min-height: 48px;
    border-radius: 9px;
    font-size: 10px;
    text-align: center;
  }

  #tabs button[role="tab"] svg {
    width: 17px;
    height: 17px;
  }

  .tab-label-desktop {
    display: none;
  }

  .tab-label-mobile {
    display: block;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tab-count {
    position: absolute;
    top: 3px;
    right: 4px;
    margin: 0;
    padding: 0 4px;
    font-size: 9px;
    min-width: 15px;
    line-height: 14px;
    text-align: center;
  }

  .tab-count.empty-zero {
    display: none;
  }

  /* Compact mobile header */
  .topbar {
    padding: 0 50px 0 10px;
    gap: 6px;
  }

  .topbar-left {
    gap: 6px;
  }

  .mobile-brand {
    display: inline-flex;
    gap: 6px;
    flex-shrink: 0;
  }

  .mobile-brand .brand-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .mobile-brand .brand-text {
    font-size: 13.5px;
  }

  .mobile-brand .version-pill {
    display: none;
  }

  .fleet-pill {
    padding: 3px 7px;
    gap: 5px;
    font-size: 10.5px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-flex;
  }

  .viewer-badge {
    padding: 3px 6px;
    font-size: 9.5px;
  }

  .sidebar-controls {
    right: 10px;
  }

  #main {
    padding: 14px 12px calc(86px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .active-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 11px 12px;
  }

  .worker-chip {
    width: 100%;
    padding: 6px 10px;
    gap: 6px;
    font-size: 11.5px;
  }

  .worker-chip .wc-time {
    margin-left: auto;
  }

  .kpi-card {
    padding: 13px 14px;
  }

  .gauge-wrap,
  .gauge-svg {
    width: 68px;
    height: 68px;
  }

  .kanban-filters-mobile {
    display: flex;
    width: 100%;
  }

  #kanban {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lane.mobile-hidden {
    display: none;
  }

  .hw-grid,
  .quota-mini-grid,
  .nodes-grid,
  .skills-grid,
  .form-grid-2,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .chart-panel,
  .panel-card,
  .tournament-card {
    padding: 14px;
  }

  .chart-stage {
    height: 210px;
  }

  .trace-item summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 8px;
  }

  .trace-dur-wrap,
  .trace-tokens-col,
  .trace-model-col {
    display: none;
  }

  .filter-field {
    width: 100%;
  }

  .filter-field select,
  .filter-field input {
    flex: 1;
    width: 100%;
    min-width: 0;
  }

  /* Bottom Sheet for mission details on mobile */
  .drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 84dvh;
    border-radius: 20px 20px 0 0;
    border-left: 0;
    border-right: 0;
    transform: translateY(105%);
    z-index: 65;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .drawer.is-open {
    transform: translateY(0);
  }

  .drawer-handle {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.22);
    margin: 9px auto 2px;
    flex-shrink: 0;
  }

  .toast-host {
    right: 12px;
    left: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }

  .kbd-hint {
    display: none;
  }
}

/* ==================== LIVE AGENTS, CHATS & STEPPER ==================== */
.live-agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.live-agent-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.live-agent-card.is-live {
  border-color: rgba(16, 185, 129, 0.45);
}
.live-agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-agent-head .pill {
  margin-left: auto;
}
.live-agent-mission {
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #eef2f7);
}
.live-agent-meta {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}
.live-empty-card {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}
.bot-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.bot-roster-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bot-roster-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.bot-roster-top .pill {
  margin-left: auto;
  font-size: 11px;
}
.live-panel-card {
  padding: 14px;
  border-radius: 14px;
}
.chat-search-input {
  max-width: 220px;
  padding: 6px 10px;
  font-size: 12px;
}
.chat-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}
.chat-feed-compact {
  max-height: 280px;
}
.chat-msg {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.chat-msg-owner {
  border-left: 3px solid #38bdf8;
  background: rgba(56, 189, 248, 0.07);
}
.chat-msg-bot {
  border-left: 3px solid #10b981;
}
.chat-msg-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 12px;
}
.chat-msg-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}
.chat-msg-text {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.live-traces-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}
.live-trace-row {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.live-trace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.live-trace-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.live-trace-meta {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}
.stage-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
@media (max-width: 560px) {
  .stage-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.stage-node {
  padding: 7px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}
.stage-node.is-done {
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}
.stage-node.is-now {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
  font-weight: 600;
}
.drawer-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.drawer-add-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 7px 10px;
  font-size: 13px;
}
.is-clickable {
  cursor: pointer;
}
