/* GO|RD Admin V2 — tokens from Figma export theme.css */
:root {
  --font-size: 15px;
  --background: #eef1f7;
  --foreground: #0a1628;
  --card: #ffffff;
  --muted-fg: #5a6880;
  --primary: #1a50d8;
  --primary-hover: #1440b8;
  --accent: #d4a520;
  --destructive: #c0311a;
  --border: rgba(10, 22, 40, 0.09);
  --input-bg: #e4e9f2;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --sidebar: #071020;
  --sidebar-fg: #a8b8cc;
  --sidebar-accent: #0f2040;
  --sidebar-border: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
  --font-body: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
}

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

html {
  font-size: var(--font-size);
  height: 100%;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ─── Prototype banner ─── */
.proto-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  padding: 0.45rem 1rem;
  background: linear-gradient(90deg, #0a1628, #152438);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--accent);
  text-align: center;
  flex-shrink: 0;
}

.proto-banner strong { color: var(--accent); font-weight: 600; }
.proto-banner__sep { opacity: 0.35; }

.proto-banner__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ─── App shell ─── */
.app-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.main {
  flex: 1;
  overflow-y: auto;
  background: var(--background);
}

.main-inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.page-stack { display: flex; flex-direction: column; gap: 1.25rem; }

/* ─── Sidebar ─── */
@keyframes gordAmbientGlow {
  0%, 100% {
    box-shadow: 0 0 10px 3px rgba(232, 135, 10, 0.55), 0 0 22px 8px rgba(232, 135, 10, 0.22);
  }
  50% {
    box-shadow: 0 0 16px 5px rgba(232, 135, 10, 0.8), 0 0 36px 14px rgba(232, 135, 10, 0.32);
  }
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 30;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: 264px;
  max-width: 85vw;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--sidebar);
  background-image: linear-gradient(180deg, rgba(212, 165, 32, 0.04) 0%, transparent 28%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.sidebar--open { transform: translateX(0); }

@media (min-width: 1024px) {
  .sidebar {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    transform: translateX(0);
    height: 100%;
    max-width: none;
  }

  .sidebar-backdrop { display: none !important; }
}

.sidebar__top {
  grid-row: 1;
  flex-shrink: 0;
  min-height: 0;
}

.sidebar__nav-scroll {
  grid-row: 2;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.sidebar__nav-scroll::-webkit-scrollbar { width: 5px; }
.sidebar__nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.sidebar__footer {
  grid-row: 3;
  flex-shrink: 0;
  background: var(--sidebar);
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-brand__home {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.2rem 0.35rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-brand__home:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-brand__home:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sidebar-brand__lockup { display: flex; align-items: center; gap: 0.875rem; }

.gord-brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #fdc830 50%, #f37335 75%, #ff6b35 100%);
  box-shadow: 0 4px 14px rgba(232, 135, 10, 0.35);
}

.gord-brand-mark--login {
  width: auto;
  height: auto;
  padding: 16px;
}

.gord-brand-mark--login .gord-brand-mark__car {
  width: 32px;
  height: 32px;
}

.gord-brand-mark--login .gord-brand-mark__zap {
  width: 14px;
  height: 14px;
}

.gord-brand-mark--sidebar {
  width: 42px;
  height: 42px;
  padding: 10px;
  animation: gordAmbientGlow 4s ease-in-out infinite;
}

.gord-brand-mark__car {
  display: block;
  width: 100%;
  height: 100%;
  stroke: white;
  fill: none;
}

.gord-brand-mark__zap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  fill: #fef08a;
}

.gord-brand-mark--sidebar .gord-brand-mark__zap {
  width: 11px;
  height: 11px;
}

.sidebar-brand__go-rd {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.sidebar-brand__go,
.sidebar-brand__rd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.07em;
}

.sidebar-brand__go { color: #fff; }
.sidebar-brand__rd { color: var(--accent); }

.sidebar-brand__center {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.sidebar-brand__sub {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: rgba(214, 226, 242, 0.84);
  max-width: 11rem;
}

.sidebar-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0.25rem;
  margin-top: 0.15rem;
}

@media (min-width: 1024px) { .sidebar-close { display: none; } }

.sidebar-vista {
  padding: 0.625rem 0.875rem 0.75rem;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-vista__label {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.sidebar-vista__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.vista-chip {
  width: 100%;
  min-height: 2.75rem;
  height: auto;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  background: color-mix(in srgb, var(--chip-color) 16%, transparent);
  color: var(--chip-color);
  padding: 0.35rem 0.25rem 0.3rem;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.vista-chip:hover {
  background: color-mix(in srgb, var(--chip-color) 28%, transparent);
  border-color: color-mix(in srgb, var(--chip-color) 42%, transparent);
  transform: translateY(-1px);
}

.vista-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.vista-chip--active {
  background: var(--chip-color);
  border-color: color-mix(in srgb, var(--chip-color) 78%, #fff);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.28);
}

.vista-chip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.vista-chip__icon .icon {
  width: 13px;
  height: 13px;
}

.vista-chip--active .vista-chip__icon .icon {
  color: #fff;
}

.vista-chip__label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  font-weight: 600;
  opacity: 0.9;
}

.vista-chip--active .vista-chip__label {
  opacity: 1;
}

.sidebar-vista__active {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.42);
}

.sidebar-vista__active strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.sidebar-nav {
  padding: 0.35rem 0 0.5rem;
}

.sidebar-nav__extra {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-group__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  color: #7a95b0;
  transition: background 0.15s, color 0.15s;
}

.nav-group__header:hover { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.8); }

.nav-group__header--active {
  border-left-color: var(--accent);
  background: #0d1e38;
  color: #fff;
}

.nav-group__header--active .icon { color: var(--group-color); }

.nav-group__left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
}

.nav-group__right {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  opacity: 0.5;
}

.nav-group__alert {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  background: var(--destructive);
  color: #fff;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.nav-group__items { padding: 0 0 0.25rem 26px; }

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px 5px 12px;
  margin-bottom: 1px;
  background: none;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  color: #6a8099;
  text-align: left;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
}

.nav-item--active {
  background: #162a48;
  border-left-color: rgba(212, 165, 32, 0.6);
  color: #fff;
}

.nav-item--locked { opacity: 0.35; cursor: not-allowed; }

.nav-item__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  min-width: 0;
}

.nav-item__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
}

.nav-item__badge {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 16px;
  text-align: center;
}

.nav-item__badge--active {
  background: var(--accent);
  color: var(--sidebar);
}

.sidebar-user-block {
  border-top: 1px solid var(--sidebar-border);
  padding: 0.75rem 1rem;
  flex-shrink: 0;
}

.sidebar-user {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.35rem 0.4rem;
  margin-bottom: 0.6rem;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: left;
}

.sidebar-user:hover { background: rgba(255, 255, 255, 0.05); }
.sidebar-user--active { background: rgba(255, 255, 255, 0.07); }

.sidebar-user__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user__name {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user__badge {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.02em;
}

.sidebar-user__actions { display: flex; gap: 0.5rem; }

.sidebar-user__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.35rem;
  background: none;
  border: none;
  border-radius: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.sidebar-user__btn:hover { color: rgba(255, 255, 255, 0.7); }
.sidebar-user__btn--danger:hover { color: #f87171; }

/* ─── Topbar ─── */
.topbar {
  height: 3.5rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 0.75rem;
  flex-shrink: 0;
}

.topbar-menu {
  display: flex;
  background: none;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
  padding: 0.25rem;
}

@media (min-width: 1024px) { .topbar-menu { display: none; } }

.topbar-search-wrap {
  flex: 1;
  max-width: 24rem;
  position: relative;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--background);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  color: var(--muted-fg);
  border: 1px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.topbar-search:focus-within {
  border-color: rgba(26, 80, 216, 0.25);
  box-shadow: 0 0 0 3px rgba(26, 80, 216, 0.08);
}

.topbar-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  color: var(--foreground);
  font-family: var(--font-body);
  min-width: 0;
}

.topbar-search input::placeholder { color: rgba(90, 104, 128, 0.6); }

.topbar-search__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
}

.topbar-search__clear:hover { color: var(--foreground); background: rgba(0, 0, 0, 0.05); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(7, 16, 32, 0.12);
  z-index: 120;
  overflow: hidden;
  animation: fade-in 0.12s ease;
}

.search-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-dropdown__clear {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.65rem;
  color: var(--primary);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.search-dropdown__body {
  max-height: 360px;
  overflow-y: auto;
}

.search-dropdown__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.search-dropdown__empty .icon { margin-bottom: 0.5rem; opacity: 0.5; }

.search-result {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s;
}

.search-result:last-child { border-bottom: none; }
.search-result:hover { background: rgba(26, 80, 216, 0.03); }

.search-result--restricted { opacity: 0.85; }
.search-result--restricted:hover { background: rgba(192, 49, 26, 0.04); }

.search-result__type {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--type-color, #64748B) 10%, #fff);
  color: var(--type-color, #64748B);
  border: 1px solid color-mix(in srgb, var(--type-color, #64748B) 20%, #fff);
  margin-top: 2px;
}

.search-result__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.search-result__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.3;
}

.search-result__meta {
  font-size: 0.7rem;
  color: var(--muted-fg);
  font-family: var(--font-mono);
}

.search-result__sub {
  font-size: 0.7rem;
  color: var(--muted-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result__go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--primary);
  margin-top: 4px;
}

.search-result__badge {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: #C0311A;
  background: rgba(192, 49, 26, 0.08);
  border: 1px solid rgba(192, 49, 26, 0.15);
  margin-top: 2px;
}

@media (max-width: 640px) {
  .topbar-search-wrap { max-width: none; }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.topbar-pill {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

@media (min-width: 640px) {
  .topbar-pill--env { display: inline-flex; }
}

.topbar-pill--env-production {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.topbar-pill--env-production .topbar-pill__dot {
  background: #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}

.topbar-pill--env-dev {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.topbar-pill--env-dev .topbar-pill__dot {
  background: #d97706;
  animation: none;
}

.topbar-pill--env-staging {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
}

.topbar-pill--env-staging .topbar-pill__dot {
  background: #3b82f6;
  animation: none;
}

.topbar-pill--env-unknown {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.topbar-pill__dot--static {
  animation: none;
}

@media (min-width: 768px) {
  .topbar-pill--geo,
  .topbar-pill--role { display: inline-flex; }
}

.topbar-pill--live {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.topbar-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}

.topbar-pill--geo {
  background: var(--background);
  color: var(--muted-fg);
}

.badge-ceo { background: rgba(212, 165, 32, 0.15); color: #9a7510; border: 1px solid rgba(212, 165, 32, 0.3); }
.badge-finance { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-ops { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-support { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-marketing { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-audit { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-hr { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge-risk { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-tech { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }

.topbar-pill--role { border-width: 1px; border-style: solid; font-weight: 700; }

.topbar-bell {
  position: relative;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  color: var(--muted-fg);
  cursor: pointer;
}

.topbar-bell:hover { background: var(--background); color: var(--foreground); }

.topbar-bell__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: var(--destructive);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.topbar-quick {
  display: none;
  align-items: center;
  gap: 0.375rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}

.topbar-quick:hover { background: var(--primary-hover); }

@media (min-width: 640px) { .topbar-quick { display: flex; } }

/* ─── Cards & KPIs ─── */
.card {
  background: var(--card);
  border: 1px solid rgba(10, 22, 40, 0.07);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-pad { padding: 1.25rem; }
.card-pad-lg { padding: 3rem 1.5rem; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .kpi-grid { grid-template-columns: repeat(6, 1fr); } }

.kpi { padding: 1rem; }

.kpi__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.kpi__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-fg);
  line-height: 1.35;
  max-width: 70%;
}

.kpi__icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi__value {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.kpi__foot { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }

.kpi__delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.kpi__delta--up { color: #059669; }
.kpi__delta--down { color: #ef4444; }

.kpi__sub { font-size: 10px; color: var(--muted-fg); }

/* ─── CEO Hero ─── */
.ceo-hero {
  position: relative;
  height: 14rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--sidebar);
  isolation: isolate;
}

.ceo-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0.5;
  filter: saturate(0.8) brightness(0.88) contrast(1.08);
  transform: scale(1.02);
}

.ceo-hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 32, 0.26);
  pointer-events: none;
}

.ceo-hero__grad { position: absolute; inset: 0; pointer-events: none; }

.ceo-hero__grad--lr {
  background: linear-gradient(
    to right,
    #071020 0%,
    rgba(7, 16, 32, 0.86) 22%,
    rgba(7, 16, 32, 0.52) 48%,
    rgba(7, 16, 32, 0.18) 74%,
    rgba(7, 16, 32, 0.04) 100%
  );
}

.ceo-hero__grad--tb {
  background: linear-gradient(
    to top,
    rgba(7, 16, 32, 0.76) 0%,
    rgba(7, 16, 32, 0.28) 36%,
    transparent 100%
  );
}

.ceo-hero__grad--vignette {
  background:
    radial-gradient(ellipse 85% 120% at 78% 50%, rgba(26, 80, 216, 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 70% 90% at 12% 18%, rgba(212, 165, 32, 0.06) 0%, transparent 52%);
}

.ceo-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .ceo-hero { height: 15.75rem; }
  .ceo-hero__content { padding: 2rem 2.25rem; }
}

.ceo-hero__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.ceo-hero__status-pill {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  margin-top: 0.625rem;
}

.ceo-hero__meta {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(7, 16, 32, 0.65);
}

.ceo-hero__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(7, 16, 32, 0.72);
}

@media (min-width: 768px) { .ceo-hero__title { font-size: 1.875rem; } }

.ceo-hero__accent {
  display: block;
  margin-top: 0.625rem;
  color: var(--accent);
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(7, 16, 32, 0.8);
}


.glass-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 4px 18px rgba(7, 16, 32, 0.28);
}

.glass-pill .icon { color: #34d399; }

.ceo-hero__metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ceo-hero__metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}

.ceo-hero__metric-value {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.ceo-hero__metric-label {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

/* ─── Live data banner (CEO dashboard metrics strip) ─── */
.live-data-banner {
  background: linear-gradient(180deg, #0c182c 0%, #071020 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 0.72rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 6px 18px rgba(7, 16, 32, 0.14);
}

.live-data-banner__left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding-right: 0.65rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.live-data-banner .sync-badge {
  color: rgba(168, 184, 204, 0.78);
  white-space: nowrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--live-color) 35%, transparent);
  background: color-mix(in srgb, var(--live-color) 12%, transparent);
  color: var(--live-color);
}

.live-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-color);
  animation: pulse-dot 2s ease-in-out infinite;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-fg);
}

.sync-badge--pulse { color: #059669; }
.sync-badge--pulse .icon { animation: spin 0.8s linear; color: #10b981; }

@keyframes spin { to { transform: rotate(360deg); } }

.live-data-banner__metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  column-gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.live-data-banner__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.12rem 0.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.live-data-banner__item:first-child {
  padding-left: 0.2rem;
}

.live-data-banner__item:last-child {
  border-right: none;
  padding-right: 0.2rem;
}

.live-data-banner__icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(212, 165, 32, 0.14);
  color: var(--accent);
  border: 1px solid rgba(212, 165, 32, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.live-data-banner__icon .icon {
  opacity: 0.95;
}

.live-data-banner__icon--alert {
  background: rgba(192, 49, 26, 0.18);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.12);
}

.live-data-banner__copy {
  min-width: 0;
  flex: 1;
}

.live-data-banner__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.live-data-banner__value--alert { color: #fca5a5; }

.live-data-banner__label {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(168, 184, 204, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .live-data-banner__left {
    width: 100%;
    border-right: none;
    padding-right: 0;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .live-data-banner__metrics {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.45rem;
    column-gap: 0.5rem;
  }

  .live-data-banner__item {
    padding: 0.3rem 0.35rem 0.3rem 0;
    border-right: none;
  }
}

/* ─── Chart + approvals ─── */
.chart-approvals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .chart-approvals-grid { grid-template-columns: 2fr 1fr; }
}

.card--span-2 { grid-column: span 1; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.section-header__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.section-header__sub {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-fg);
}

.revenue-chart { width: 100%; display: block; height: 160px; }

.revenue-chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.revenue-chart-card__head .section-header { margin-bottom: 0; flex: 1; min-width: 12rem; }

.revenue-chart-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.revenue-chart-filter {
  border: 1px solid rgba(10, 22, 40, 0.08);
  background: #f8fafc;
  color: #5b6b82;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.revenue-chart-filter:hover { background: #eef2f8; color: #334155; }

.revenue-chart-filter.is-active {
  background: rgba(26, 80, 216, 0.08);
  border-color: rgba(26, 80, 216, 0.22);
  color: #1A50D8;
}

.revenue-chart-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(10, 22, 40, 0.06);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

.revenue-chart-live__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}

.revenue-chart-live__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0E9E6E;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 158, 110, 0.22);
  background: rgba(14, 158, 110, 0.08);
}

.revenue-chart-card--historical .revenue-chart-live__badge {
  color: #64748B;
  border-color: rgba(100, 116, 139, 0.22);
  background: rgba(100, 116, 139, 0.08);
}

.revenue-chart-card--paused .revenue-chart-live__badge {
  color: #B45309;
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(180, 83, 9, 0.08);
}

.revenue-chart-live__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  animation: pulse-dot 2s ease-in-out infinite;
}

.revenue-chart-live__dot--muted {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

.revenue-chart-live__dot--paused {
  background: #f59e0b;
  box-shadow: none;
  animation: none;
}

.revenue-chart-live__stream,
.revenue-chart-live__updated {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--muted-fg);
  white-space: nowrap;
}

.revenue-chart-live__toggle {
  flex-shrink: 0;
  border: 1px solid rgba(10, 22, 40, 0.1);
  background: #fff;
  color: #334155;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.revenue-chart-live__toggle:hover:not(:disabled) {
  background: #eef2f8;
  border-color: rgba(26, 80, 216, 0.18);
  color: #1A50D8;
}

.revenue-chart-live__toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.revenue-chart-card--paused .revenue-chart-live__toggle {
  border-color: rgba(180, 83, 9, 0.22);
  color: #B45309;
}

.revenue-chart__point-group--live .revenue-chart__point {
  fill: #2563eb;
}

.revenue-chart__live-ring {
  stroke: rgba(37, 99, 235, 0.35);
  stroke-width: 1.5;
  animation: revenue-live-ring 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes revenue-live-ring {
  0% { r: 6; opacity: 0.7; }
  70% { r: 11; opacity: 0; }
  100% { r: 11; opacity: 0; }
}

.revenue-chart-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

@media (min-width: 768px) {
  .revenue-chart-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.revenue-chart-stat { min-width: 0; }

.revenue-chart-stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 0.15rem;
}

.revenue-chart-stat__value {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.revenue-chart-stat__value--subiendo { color: #0E9E6E; }
.revenue-chart-stat__value--bajando { color: #C0311A; }
.revenue-chart-stat__value--estable { color: #64748B; }

.revenue-chart__viewport { position: relative; min-height: 160px; }

.revenue-chart__wrap { position: relative; }

.revenue-chart__loading,
.revenue-chart__empty,
.revenue-chart__error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-fg);
  background: rgba(255, 255, 255, 0.72);
  z-index: 2;
}

.revenue-chart__error { color: #C0311A; }

.revenue-chart__tooltip {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -100%);
  pointer-events: none;
  min-width: 10rem;
  max-width: 16rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  background: rgba(7, 16, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(7, 16, 32, 0.24);
  color: #fff;
  font-size: 0.68rem;
  line-height: 1.35;
}

.revenue-chart__tooltip strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.revenue-chart__tooltip span { color: rgba(255, 255, 255, 0.82); }

.revenue-chart__point-group .revenue-chart__hit { cursor: pointer; outline: none; }

.revenue-chart__point-group.is-active .revenue-chart__point,
.revenue-chart__point-group:focus-within .revenue-chart__point {
  fill: #2563eb;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2px;
  filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.45));
}

.revenue-chart__point {
  transition: r 0.12s ease, fill 0.12s ease;
  pointer-events: none;
}

.pending-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--destructive);
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 2px 8px;
  border-radius: 999px;
}

.approval-list { display: flex; flex-direction: column; gap: 0.625rem; }

.approval-row {
  border: 1px solid rgba(10, 22, 40, 0.06);
  border-radius: var(--radius);
  padding: 0.75rem;
  transition: background 0.15s;
}

.approval-row:hover { background: #f5f7fc; }

.approval-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.approval-row__type { margin: 0; font-size: 0.75rem; font-weight: 600; }
.approval-row__detail { margin: 2px 0 0; font-size: 10px; color: var(--muted-fg); }

.priority-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  flex-shrink: 0;
}

.priority-critical { background: #dc2626; color: #fff; }
.priority-high { background: #f97316; color: #fff; }
.priority-medium { background: #fbbf24; color: #78350f; }
.priority-low { background: #f3f4f6; color: #4b5563; }

.approval-row__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.approval-row__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-fg);
}

.approval-row__actions { display: flex; gap: 6px; }

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
  cursor: pointer;
  background: #fff;
}

.mini-btn--view { color: var(--primary); border-color: #bfdbfe; background: #eff6ff; }
.mini-btn--approve { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.mini-btn--danger { color: #C0311A; border-color: #fecaca; background: #fef2f2; }

/* ─── Narrative panels ─── */
.narrative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) { .narrative-grid { grid-template-columns: 1fr 1fr; } }

.narrative-panel {
  position: relative;
  height: 12rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--sidebar);
}

.narrative-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.narrative-panel--blue img { opacity: 0.42; }

.narrative-panel__overlay {
  position: absolute;
  inset: 0;
}

.narrative-panel__overlay--left {
  background: linear-gradient(105deg, #071020 0%, rgba(7, 16, 32, 0.82) 40%, rgba(7, 16, 32, 0.25) 75%, transparent 100%);
}

.narrative-panel__overlay--right {
  background: linear-gradient(to left, #0a1628 0%, rgba(10, 22, 40, 0.6) 55%, rgba(10, 22, 40, 0.15) 100%);
}

.narrative-panel__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.narrative-panel__bar--gold { background: linear-gradient(to right, var(--accent), transparent); }
.narrative-panel__bar--blue { background: linear-gradient(to right, transparent, var(--primary), transparent); }

.narrative-panel__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
}

.narrative-panel__label {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.narrative-panel__label--blue { color: var(--primary); }

.narrative-panel__title {
  margin: 0 0 0.5rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.narrative-panel__stats { display: flex; gap: 1rem; flex-wrap: wrap; }

.narrative-panel__stat-value {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.narrative-panel__stat-label {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

/* ─── Dept grid ─── */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) { .dept-grid { grid-template-columns: repeat(4, 1fr); } }

.dept-card {
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.07);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.dept-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dept-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dept-card__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-card__alert {
  background: var(--destructive);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.dept-card__label { margin: 0; font-size: 0.875rem; font-weight: 600; }

.dept-card__metric {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.dept-card__sub {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-fg);
}

/* ─── Activity feed ─── */
.activity-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.activity-feed__title { margin: 0; font-size: 0.875rem; font-weight: 600; }

.activity-feed__body {}

.activity-feed__row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  border-top: 1px solid rgba(10, 22, 40, 0.04);
}

.activity-feed__row:hover { background: #f8f9fc; }

.feed-icon--alert { color: #ef4444; }
.feed-icon--info { color: #60a5fa; }
.feed-icon--success { color: #10b981; }
.feed-icon--warning { color: #f59e0b; }
.feed-icon--live { color: var(--accent); }

.activity-feed__text {
  flex: 1;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

.activity-feed__time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-fg);
  flex-shrink: 0;
}

/* ─── Corp badges ─── */
.corp-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid;
}

.corp-badge--readonly { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.corp-badge--support { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.corp-badge--ceo { background: rgba(212, 165, 32, 0.15); color: #9a7510; border-color: rgba(212, 165, 32, 0.4); }
.corp-badge--ceo-req { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.corp-badge--soon { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.corp-badge--risk { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.corp-badge--audit { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.corp-badge--restricted { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.corp-badge--operational { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.corp-badge--internal { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.corp-badge--technical { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }

/* ─── Page header & placeholder ─── */
.page-header { margin-bottom: 1.25rem; }

.page-header__crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.35rem;
}

.page-header__crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-fg);
}

.page-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-header__sub { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted-fg); }

.placeholder-center { text-align: center; }

.placeholder-center__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--muted-fg);
}

.placeholder-center__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.placeholder-center__text { margin: 0 0 1rem; font-size: 0.875rem; color: var(--muted-fg); }

.placeholder-center__text code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--background);
  padding: 2px 6px;
  border-radius: 4px;
}

.placeholder-center__badges { display: flex; justify-content: center; gap: 0.5rem; }

/* ─── Footer ─── */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-fg);
}

.app-footer__status { display: inline-flex; align-items: center; gap: 6px; }

.app-footer__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  background: var(--sidebar);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 320px;
}

.icon { flex-shrink: 0; vertical-align: middle; }

/* ─── Role banner & prepared pages ─── */
.role-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--role-color, var(--primary));
}

.role-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--role-color, var(--primary)) 12%, transparent);
  color: var(--role-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
}

.role-banner__desc { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted-fg); }
.role-banner__user { margin: 0.5rem 0 0; font-size: 0.75rem; font-family: var(--font-mono); color: var(--muted-fg); }

.role-home-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.kpi-grid--role { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.prepared-page { text-align: center; max-width: 560px; margin: 0 auto; }
.prepared-page--compact { max-width: none; text-align: left; }

.prepared-page__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--muted-fg);
}

.prepared-page__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.prepared-page__dept { margin: 0 0 0.75rem; font-size: 0.8rem; color: var(--muted-fg); }
.prepared-page__text { margin: 0 0 1rem; font-size: 0.875rem; color: var(--muted-fg); line-height: 1.5; }

.prepared-page__badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.prepared-page__steps {
  text-align: left;
  margin: 0 auto 1rem;
  max-width: 420px;
  padding-left: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted-fg);
}

.prepared-page__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-fg);
}

.prepared-page__note code {
  font-family: var(--font-mono);
  background: var(--background);
  padding: 2px 6px;
  border-radius: 4px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge--prepared {
  background: rgba(26, 80, 216, 0.08);
  color: var(--primary);
  border: 1px solid rgba(26, 80, 216, 0.15);
}

.approval-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.approval-empty .icon { margin-bottom: 0.5rem; color: #0E9E6E; }

/* ─── Overlays: modals & panels ─── */
#overlayRoot { position: relative; z-index: 200; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 32, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 210;
  animation: fade-in 0.15s ease;
  pointer-events: none;
}

.modal-overlay > .modal,
.modal-overlay > .quick-panel {
  pointer-events: auto;
}

.modal-overlay--top { z-index: 220; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal--wide { max-width: 720px; }
.modal--confirm { max-width: 440px; }
.modal--success { max-width: 320px; text-align: center; padding: 2rem 1.5rem; }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal__head--dark {
  background: var(--sidebar);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.modal__eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.modal__title { margin: 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.modal__title--light { color: #fff; }

.modal__close {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  opacity: 0.7;
}

.modal__close:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }
.modal__close--light:hover { background: rgba(255, 255, 255, 0.1); }

.modal__body { padding: 1.25rem; overflow-y: auto; }
.modal__body--scroll { max-height: 60vh; }
.modal__body--split { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; }

@media (max-width: 640px) {
  .modal__body--split { grid-template-columns: 1fr; }
}

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--background);
  flex-wrap: wrap;
}

.modal__foot--end { justify-content: flex-end; }
.modal__foot-left, .modal__foot-right { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 540px) {
  .modal-grid { grid-template-columns: 1fr; }
}

.modal-field__label {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
}

.modal-field__value { font-size: 0.875rem; }

.modal-block {
  margin-bottom: 1rem;
  padding: 0.875rem;
  background: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.modal-block--blue { background: rgba(26, 80, 216, 0.04); border-color: rgba(26, 80, 216, 0.12); }
.modal-block__label { margin: 0 0 0.35rem; font-size: 0.65rem; font-family: var(--font-mono); text-transform: uppercase; color: var(--muted-fg); }
.modal-block p { margin: 0; font-size: 0.875rem; line-height: 1.5; }

.modal-textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
  box-sizing: border-box;
}

.modal-audit {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(212, 165, 32, 0.08);
  border: 1px solid rgba(212, 165, 32, 0.2);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: #8B6A10;
}

.modal__pending { color: #C0311A; font-weight: 600; font-size: 0.8rem; }

.confirm-question { margin: 0 0 1rem; font-size: 0.9375rem; font-weight: 600; }

.modal-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}

.modal-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.modal-btn--ghost { background: #fff; border-color: var(--border); color: var(--foreground); }
.modal-btn--primary { background: var(--primary); color: #fff; }
.modal-btn--success { background: #0E9E6E; color: #fff; }
.modal-btn--danger { background: #C0311A; color: #fff; }

/* ─── Mock session closed ─── */
.app-shell--session-closed .sidebar,
.app-shell--session-closed .sidebar-backdrop {
  display: none;
}

.session-closed {
  min-height: calc(100vh - 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.session-closed__card {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem;
  text-align: center;
}

.session-closed__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 49, 26, 0.08);
  color: #C0311A;
}

.session-closed__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.session-closed__text {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--foreground);
}

.session-closed__sub {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-fg);
}

.session-closed__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  width: 100%;
}

/* ─── Premium corporate login shell ─── */
.app-shell--mock-login .main {
  overflow: hidden;
  background: transparent;
}

.app-shell--mock-login .main-inner {
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
}

.premium-login-screen {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 72% 58% at 50% 44%, rgba(37, 99, 235, 0.26), transparent 62%),
    radial-gradient(ellipse 48% 38% at 50% 6%, rgba(253, 200, 48, 0.11), transparent 58%),
    radial-gradient(ellipse 55% 45% at 92% 88%, rgba(30, 64, 175, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 35% at 8% 78%, rgba(15, 23, 42, 0.9), transparent 60%),
    linear-gradient(165deg, #060b14 0%, #0b1220 36%, #0f172a 62%, #0a101c 100%);
}

.premium-login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3Cfilter id='n' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.04 0 0 0 0 0.07 0 0 0 0 0.12 0 0 0 0.035 0'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='1200' height='800' filter='url(%23n)'/%3E%3Cg fill='none' stroke='%2360a5fa' stroke-width='0.85' stroke-linecap='round' opacity='0.075'%3E%3Cpath d='M160 210 Q320 150 460 190 T780 170 T1040 210'/%3E%3Cpath d='M120 470 Q300 410 520 440 T860 400 T1080 450'/%3E%3Cpath d='M260 640 Q460 560 620 600 T980 560'/%3E%3Cpath d='M460 190 Q500 310 520 440 Q540 560 620 600'/%3E%3Cpath d='M780 170 Q680 300 520 440 Q420 520 260 640'/%3E%3Cpath d='M860 400 Q720 480 620 600'/%3E%3Cpath d='M1040 210 Q960 320 860 400'/%3E%3C/g%3E%3Cg%3E%3Ccircle cx='160' cy='210' r='9' fill='%233b82f6' opacity='0.045'/%3E%3Ccircle cx='160' cy='210' r='2.5' fill='%2393c5fd' opacity='0.13'/%3E%3Ccircle cx='460' cy='190' r='8' fill='%233b82f6' opacity='0.04'/%3E%3Ccircle cx='460' cy='190' r='2.2' fill='%2393c5fd' opacity='0.12'/%3E%3Ccircle cx='780' cy='170' r='7' fill='%233b82f6' opacity='0.038'/%3E%3Ccircle cx='780' cy='170' r='2' fill='%2393c5fd' opacity='0.11'/%3E%3Ccircle cx='1040' cy='210' r='7' fill='%233b82f6' opacity='0.035'/%3E%3Ccircle cx='1040' cy='210' r='2' fill='%2393c5fd' opacity='0.1'/%3E%3Ccircle cx='120' cy='470' r='8' fill='%233b82f6' opacity='0.04'/%3E%3Ccircle cx='120' cy='470' r='2.2' fill='%2393c5fd' opacity='0.11'/%3E%3Ccircle cx='520' cy='440' r='10' fill='%233b82f6' opacity='0.05'/%3E%3Ccircle cx='520' cy='440' r='2.8' fill='%2393c5fd' opacity='0.14'/%3E%3Ccircle cx='860' cy='400' r='8' fill='%233b82f6' opacity='0.042'/%3E%3Ccircle cx='860' cy='400' r='2.3' fill='%2393c5fd' opacity='0.12'/%3E%3Ccircle cx='620' cy='600' r='9' fill='%233b82f6' opacity='0.04'/%3E%3Ccircle cx='620' cy='600' r='2.5' fill='%2393c5fd' opacity='0.11'/%3E%3Ccircle cx='260' cy='640' r='7' fill='%233b82f6' opacity='0.035'/%3E%3Ccircle cx='260' cy='640' r='2' fill='%2393c5fd' opacity='0.1'/%3E%3Ccircle cx='980' cy='560' r='7' fill='%233b82f6' opacity='0.032'/%3E%3Ccircle cx='980' cy='560' r='2' fill='%2393c5fd' opacity='0.095'/%3E%3C/g%3E%3C/svg%3E")
    center / cover no-repeat;
  opacity: 0.92;
  mask-image: radial-gradient(ellipse 96% 88% at 50% 46%, #000 32%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 96% 88% at 50% 46%, #000 32%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.premium-login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 48% at 50% 46%, rgba(59, 130, 246, 0.14), transparent 72%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 42%, rgba(6, 11, 20, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.premium-login-network {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.premium-login-pulse {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.55);
  box-shadow:
    0 0 6px rgba(147, 197, 253, 0.35),
    0 0 14px rgba(59, 130, 246, 0.2),
    0 0 28px rgba(59, 130, 246, 0.08);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.35;
  animation: premium-login-pulse-core 4.8s ease-in-out infinite;
  will-change: opacity, transform;
}

.premium-login-pulse::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.12);
  opacity: 0.35;
  animation: premium-login-pulse-halo 4.8s ease-in-out infinite;
  will-change: opacity, transform;
}

.premium-login-pulse--a { left: 18%; top: 28%; animation-duration: 4.2s; animation-delay: 0s; }
.premium-login-pulse--b { left: 68%; top: 23%; animation-duration: 5.4s; animation-delay: 1.1s; }
.premium-login-pulse--c { left: 47%; top: 54%; animation-duration: 3.8s; animation-delay: 0.6s; }
.premium-login-pulse--d { left: 56%; top: 73%; animation-duration: 5.8s; animation-delay: 2.3s; }
.premium-login-pulse--e { left: 77%; top: 48%; animation-duration: 4.6s; animation-delay: 1.8s; }

.premium-login-pulse--a::before { animation-duration: 4.2s; animation-delay: 0s; }
.premium-login-pulse--b::before { animation-duration: 5.4s; animation-delay: 1.1s; }
.premium-login-pulse--c::before { animation-duration: 3.8s; animation-delay: 0.6s; }
.premium-login-pulse--d::before { animation-duration: 5.8s; animation-delay: 2.3s; }
.premium-login-pulse--e::before { animation-duration: 4.6s; animation-delay: 1.8s; }

@keyframes premium-login-pulse-core {
  0%, 100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 6px rgba(147, 197, 253, 0.25),
      0 0 14px rgba(59, 130, 246, 0.12),
      0 0 28px rgba(59, 130, 246, 0.05);
  }
  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
      0 0 10px rgba(147, 197, 253, 0.55),
      0 0 22px rgba(59, 130, 246, 0.28),
      0 0 40px rgba(59, 130, 246, 0.12);
  }
}

@keyframes premium-login-pulse-halo {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .premium-login-pulse,
  .premium-login-pulse::before {
    animation: none;
    opacity: 0.45;
  }
}

.premium-login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 36px 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(165deg, rgba(31, 41, 55, 0.97) 0%, rgba(17, 24, 39, 0.99) 100%);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 48px rgba(37, 99, 235, 0.18);
}

.premium-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 8px;
}

.premium-login-brand .gord-brand-mark--login {
  box-shadow:
    0 20px 50px rgba(255, 107, 53, 0.28),
    0 0 24px rgba(253, 200, 48, 0.15);
}

.premium-login-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f8fafc;
}

.premium-login-pipe {
  color: var(--accent);
  font-weight: 900;
}

.premium-login-accent {
  display: inline;
  margin-left: 0.25em;
  font-size: inherit;
  font-weight: 700;
  color: #e2e8f0;
}

.premium-login-subtitle {
  margin: 0 0 24px;
  color: #94a3b8;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.45;
}

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

.premium-login-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

.premium-login-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.premium-login-input {
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(11, 18, 32, 0.85);
  color: #f8fafc;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.premium-login-input::placeholder {
  color: #64748b;
}

.premium-login-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.premium-login-submit {
  margin-top: 8px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #3b82f6 100%);
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.premium-login-submit:hover {
  filter: brightness(1.06);
  box-shadow:
    0 12px 28px rgba(37, 99, 235, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.premium-login-submit:active {
  transform: translateY(1px);
}

.premium-login-submit:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.85);
  outline-offset: 2px;
}

.premium-login-security {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  line-height: 1.45;
}

.premium-login-proto {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  line-height: 1.45;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .premium-login-screen { padding: 16px; }
  .premium-login-screen::before {
    opacity: 0.78;
    mask-image: radial-gradient(ellipse 100% 92% at 50% 48%, #000 26%, transparent 94%);
    -webkit-mask-image: radial-gradient(ellipse 100% 92% at 50% 48%, #000 26%, transparent 94%);
  }
  .premium-login-screen::after {
    background:
      radial-gradient(ellipse 65% 55% at 50% 48%, rgba(59, 130, 246, 0.12), transparent 70%),
      radial-gradient(ellipse 100% 100% at 50% 50%, transparent 38%, rgba(6, 11, 20, 0.6) 100%);
  }
  .premium-login-card { padding: 28px 20px 22px; border-radius: 16px; }
  .premium-login-title { font-size: 1.35rem; }
  .premium-login-subtitle { font-size: 0.88rem; margin-bottom: 20px; }
}

/* ─── Mock employee login ─── */
.app-shell--mock-login .sidebar,
.app-shell--mock-login .sidebar-backdrop,
.app-shell--mock-login .topbar {
  display: none;
}

.mock-login {
  min-height: calc(100vh - 2.5rem);
  padding: 2rem 1.25rem 3rem;
  max-width: 56rem;
  margin: 0 auto;
}

.mock-login__hero {
  text-align: center;
  margin-bottom: 2rem;
}

.mock-login__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mock-login__brand-text {
  text-align: left;
}

.mock-login__go-rd {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.1;
}

.mock-login__go { color: var(--foreground); }
.mock-login__rd { color: var(--primary); }

.mock-login__center-label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-login__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.mock-login__subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}

.mock-login__lead {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.mock-login__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .mock-login__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .mock-login__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mock-login-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.mock-login-card:hover,
.mock-login-card:focus-visible {
  border-color: rgba(26, 80, 216, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  outline: none;
}

.mock-login-card__avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.mock-login-card__body {
  flex: 1;
  min-width: 0;
}

.mock-login-card__name {
  margin: 0 0 0.125rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
}

.mock-login-card__role {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.mock-login-card__dept {
  margin: 0 0 0.125rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

.mock-login-card__access {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.35;
}

.mock-login-card__arrow {
  flex-shrink: 0;
  color: var(--muted);
}

.mock-login__disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.mock-login__disclaimer p {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.4;
}

.sidebar-vista__note {
  margin: 0.5rem 0 0;
  font-size: 0.625rem;
  line-height: 1.4;
  color: var(--muted);
}

.vista-chip--locked:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.vista-chip--active.vista-chip--locked:disabled {
  opacity: 1;
  cursor: default;
}

.doc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.625rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--muted-fg);
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(14, 158, 110, 0.12);
  color: #0E9E6E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.modal--success h3 { margin: 0 0 0.35rem; font-family: var(--font-display); }
.modal--success p { margin: 0; font-size: 0.8rem; color: var(--muted-fg); }

.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 32, 0.4);
  z-index: 205;
  animation: fade-in 0.15s ease;
}

.panel-backdrop--center { background: rgba(7, 16, 32, 0.5); }

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(7, 16, 32, 0.15);
  animation: slide-in 0.2s ease;
}

.slide-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.slide-panel__head--dark {
  background: var(--sidebar);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.slide-panel__head h2 { margin: 0; font-family: var(--font-display); font-size: 1.125rem; }
.slide-panel__head p { margin: 0.25rem 0 0; font-size: 0.75rem; opacity: 0.75; }
.slide-panel__head-actions { display: flex; align-items: center; gap: 0.75rem; }

.link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.slide-panel__body { flex: 1; overflow-y: auto; padding: 0.75rem; }
.slide-panel__foot { padding: 0.75rem 1rem; border-top: 1px solid var(--border); font-size: 0.65rem; color: var(--muted-fg); text-align: center; }

.notif-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.notif-filter {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  cursor: pointer;
  color: var(--muted-fg);
}

.notif-filter--active {
  background: color-mix(in srgb, var(--filter-color, var(--primary)) 12%, #fff);
  border-color: color-mix(in srgb, var(--filter-color, var(--primary)) 30%, #fff);
  color: var(--filter-color, var(--primary));
  font-weight: 600;
}

.notif-row {
  padding: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  background: #fff;
}

.notif-row--unread { border-left: 3px solid var(--primary); background: rgba(26, 80, 216, 0.02); }
.notif-row__top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.notif-row__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.notif-row__dept { margin-left: auto; font-size: 0.65rem; color: var(--muted-fg); font-family: var(--font-mono); }
.notif-row__title { margin: 0 0 0.25rem; font-size: 0.875rem; font-weight: 600; }
.notif-row__title--read { font-weight: 500; color: var(--muted-fg); }
.notif-row__desc { margin: 0 0 0.25rem; font-size: 0.75rem; color: var(--muted-fg); }
.notif-row__time { margin: 0 0 0.5rem; font-size: 0.65rem; font-family: var(--font-mono); color: var(--muted-fg); }
.notif-row__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.panel-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.quick-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 2rem));
  max-height: 85vh;
  background: #fff;
  border-radius: var(--radius-lg);
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  animation: fade-in 0.15s ease;
}

.quick-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.quick-panel__title { display: flex; align-items: center; gap: 0.75rem; }
.quick-panel__title h2 { margin: 0; font-family: var(--font-display); font-size: 1.125rem; }
.quick-panel__title p { margin: 0.15rem 0 0; font-size: 0.75rem; color: var(--muted-fg); }

.quick-panel__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-panel__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.quick-panel__search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  outline: none;
}

.quick-panel__body { flex: 1; overflow-y: auto; padding: 0.75rem 1rem; }

.qa-group { margin-bottom: 1rem; }
.qa-group__label { margin: 0 0 0.5rem; font-size: 0.65rem; font-family: var(--font-mono); text-transform: uppercase; color: var(--muted-fg); letter-spacing: 0.05em; }

.qa-action {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  text-align: left;
  margin-bottom: 0.35rem;
  font-family: inherit;
}

.qa-action:hover:not(:disabled) { border-color: var(--primary); background: rgba(26, 80, 216, 0.02); }
.qa-action--blocked, .qa-action:disabled { opacity: 0.55; cursor: not-allowed; background: var(--background); }

.qa-action__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted-fg);
}

.qa-action__label { flex: 1; font-size: 0.8125rem; font-weight: 500; }
.qa-action__block { font-size: 0.65rem; color: #C0311A; font-family: var(--font-mono); }

.config-user { text-align: center; }
.config-user__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  margin: 0 auto 0.75rem;
}

.config-user h3 { margin: 0; font-family: var(--font-display); }
.config-user > p { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--muted-fg); }
.config-user__badge { font-size: 0.7rem !important; font-family: var(--font-mono); color: var(--primary) !important; }

.config-meta {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  text-align: left;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.config-meta li { margin-bottom: 0.35rem; }

.config-sections { display: flex; flex-direction: column; gap: 0.5rem; }

.config-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  width: 100%;
}

.config-section span { font-size: 0.875rem; font-weight: 600; }
.config-section small { font-size: 0.7rem; color: var(--muted-fg); }
.config-section:hover { border-color: var(--primary); }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ─── Proto banner controls ─── */
.proto-banner__controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.proto-btn {
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.proto-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.proto-btn--accent {
  border-color: var(--accent);
  color: var(--accent);
}

.proto-btn--warn {
  border-color: rgba(192, 49, 26, 0.6);
  color: #f5a89a;
}

/* ─── Estado operativo GO RD ─── */
.ops-status {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.ops-status--compact {
  padding: 0.85rem 1rem;
}

.ops-status--compact .ops-status__grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.ops-status__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ops-status__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.ops-status__sub {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--muted-fg);
  font-family: var(--font-mono);
}

.ops-status__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

.ops-status__row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.ops-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.ops-status__dot--live { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); }
.ops-status__dot--degraded { background: #eab308; box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2); }
.ops-status__dot--pending { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.ops-status__dot--offline { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2); }

.ops-status__name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.ops-status__meta {
  margin: 0.15rem 0 0;
  font-size: 0.65rem;
  color: var(--muted-fg);
  font-family: var(--font-mono);
}

.ops-status__note {
  margin: 0.85rem 0 0;
  font-size: 0.68rem;
  color: var(--muted-fg);
  font-family: var(--font-mono);
}

/* ─── Centro de operaciones en vivo ─── */
.live-ops {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

.live-ops__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.live-ops__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.live-ops__head p {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.live-ops__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.live-ops__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.live-ops__metric {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.live-ops__metric-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.live-ops__metric-label {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: var(--muted-fg);
}

.live-ops__split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

@media (max-width: 960px) {
  .live-ops__split { grid-template-columns: 1fr; }
}

.live-ops__map {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.live-ops__map-placeholder {
  min-height: 180px;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  color: var(--muted-fg);
}

.live-ops__map-placeholder p {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
}

.live-ops__map-placeholder small {
  margin-top: 0.35rem;
  font-size: 0.68rem;
}

.live-ops__locs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.45rem;
}

.live-ops__loc {
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
}

.live-ops__loc-zone {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

.live-ops__loc-meta {
  margin: 0.15rem 0 0;
  font-size: 0.65rem;
  color: var(--muted-fg);
  font-family: var(--font-mono);
}

.live-ops__queues {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.live-ops__queue {
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.live-ops__queue-label {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-ops__queue-value {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.action-btn--warn {
  border-color: rgba(192, 49, 26, 0.35);
  color: #C0311A;
}

.action-btn--success {
  border-color: rgba(22, 163, 74, 0.35);
  color: #15803d;
}
