:root {
  color-scheme: dark;
  --bg: #060914;
  --bg-elevated: #0b1120;
  --surface: rgba(9, 14, 27, 0.86);
  --surface-strong: rgba(12, 18, 34, 0.94);
  --surface-soft: rgba(17, 24, 43, 0.76);
  --border: rgba(148, 163, 184, 0.1);
  --border-strong: rgba(129, 140, 248, 0.18);
  --text: #f3f7ff;
  --muted: #93a3c7;
  --muted-strong: #ced8f6;
  --accent: #7c3aed;
  --accent-strong: #4f46e5;
  --accent-cyan: #22d3ee;
  --accent-soft: rgba(124, 58, 237, 0.18);
  --success: #22c55e;
  --danger: #fb7185;
  --warning: #f59e0b;
  --shadow-lg: 0 26px 72px rgba(2, 6, 18, 0.36);
  --shadow-md: 0 14px 36px rgba(2, 6, 18, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 10px;
  --container: 1380px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 58, 237, 0.18), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(37, 99, 235, 0.12), transparent 22%),
    linear-gradient(180deg, #030712 0%, #060914 48%, #070b15 100%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.ambient {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  filter: blur(138px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  top: -8rem;
  left: -5rem;
  background: rgba(124, 58, 237, 0.34);
}

.ambient-b {
  right: -6rem;
  bottom: -10rem;
  background: rgba(34, 211, 238, 0.16);
}

#app,
.shell {
  position: relative;
  z-index: 1;
}

.glass-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 19, 34, 0.92), rgba(8, 13, 24, 0.9)),
    linear-gradient(135deg, rgba(124, 58, 237, 0.025), transparent 48%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%);
  pointer-events: none;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.login-grid {
  width: min(100%, 1120px);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.login-showcase,
.login-card {
  padding: 34px;
}

.login-showcase {
  display: grid;
  align-content: start;
  gap: 18px;
}

.login-card {
  width: 100%;
  display: grid;
  align-content: start;
  gap: 16px;
}

.login-card::after {
  content: "";
  position: absolute;
  inset: auto 12% -22% 12%;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 66%);
  filter: blur(40px);
  pointer-events: none;
}

.login-card h1,
.login-card h2,
.hero-panel h1,
.detail-head h1,
.loading-card h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.login-card p,
.login-showcase p,
.hero-panel p,
.detail-head p,
.loading-card p,
.summary-card p,
.side-help p,
.empty-state p,
.admin-panel p,
.management-copy p,
.stat-card p,
.section-card p,
.toggle-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-stack {
  display: grid;
  gap: 4px;
}

.brand-stack strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-stack span,
.feature-row span,
.login-note span,
.topbar-role-chip span,
.app-kpi span,
.management-points span {
  color: var(--muted);
}

.brand-badge,
.brand-mark,
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.26), rgba(34, 211, 238, 0.14)),
    rgba(11, 18, 34, 0.7);
  border: 1px solid rgba(129, 140, 248, 0.28);
  color: #f4f2ff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-badge {
  margin: 0;
}

.brand-badge-image,
.brand-mark-image {
  padding: 0;
  overflow: hidden;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-highlights,
.management-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.login-feature-list,
.overview-list,
.management-points {
  display: grid;
  gap: 12px;
}

.feature-row,
.overview-list span,
.management-points div,
.login-note {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-highlights span,
.management-badges span,
.status-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.2);
  color: #ddd8ff;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.login-note strong,
.feature-row strong,
.management-points strong,
.overview-list strong,
.app-kpi strong {
  color: var(--text);
}

.login-foot {
  color: #7f91bd;
  font-size: 0.84rem;
}

.button,
.ghost-button {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 15px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #6d28d9 0%, #4f46e5 58%, #2563eb 100%);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.24);
}

.button-primary:hover {
  box-shadow: 0 16px 28px rgba(79, 70, 229, 0.28);
}

.button-secondary,
.ghost-button {
  color: var(--text);
  background: rgba(10, 16, 30, 0.78);
  border-color: rgba(255, 255, 255, 0.06);
}

.button-full {
  width: 100%;
}

.topbar-primary {
  min-width: 168px;
  min-height: 44px;
  border-radius: 14px;
  padding-inline: 18px;
}

.ghost-button.danger {
  color: #ffd6dc;
  border-color: rgba(251, 113, 133, 0.2);
  background: rgba(72, 18, 30, 0.24);
}

.shell {
  min-height: 100vh;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 22px 22px 30px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 380px) minmax(0, auto);
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  margin-bottom: 22px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 36%),
    radial-gradient(circle at right center, rgba(37, 99, 235, 0.12), transparent 28%),
    rgba(6, 10, 22, 0.88);
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 38px rgba(3, 7, 18, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 0.96rem;
}

.brand-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy small,
.status-subtle,
.user-copy span,
.stat-label,
.app-card-head p,
.app-meta,
.summary-list span,
.assignment-head span,
.list-row span,
.empty-mini span,
.section-hint {
  color: var(--muted);
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  min-width: 0;
}

.dashboard-user-menu {
  position: relative;
  width: min(280px, 100%);
}

.dashboard-user-trigger {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dashboard-user-trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(226, 232, 240, 0.56);
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.56);
  transform: translateY(-62%) rotate(45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
  pointer-events: none;
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: min(360px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(7, 12, 24, 0.96);
  box-shadow: 0 18px 40px rgba(2, 6, 18, 0.3);
  color: #eef2ff;
  font-size: 0.94rem;
  line-height: 1.45;
  backdrop-filter: blur(18px);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.26);
  color: #dcfce7;
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.26);
  color: #fef3c7;
}

.toast-error {
  border-color: rgba(251, 113, 133, 0.26);
  color: #ffe4e6;
}

.dashboard-user-trigger[aria-expanded="true"]::after {
  transform: translateY(-38%) rotate(225deg);
}

.dashboard-user-trigger .user-chip {
  padding-right: 30px;
}

.dashboard-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(7, 12, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 22px 48px rgba(2, 6, 18, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  z-index: 30;
}

.dashboard-user-dropdown-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-user-dropdown-actions {
  display: grid;
  gap: 8px;
}

.dashboard-user-dropdown-link {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  justify-content: center;
  padding-inline: 16px;
}

.topbar-center {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.topbar-search {
  width: min(100%, 420px);
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(2, 6, 18, 0.14);
}

.topbar-search-icon {
  color: var(--muted);
  font-size: 0.88rem;
}

.topbar-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.topbar-search input::placeholder {
  color: var(--muted);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  padding: 4px 12px 4px 4px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), transparent 48%),
    rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-chip.is-client {
  padding-right: 14px;
}

.avatar-shell {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(34, 211, 238, 0.18));
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 18px rgba(79, 70, 229, 0.16);
}

.avatar-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-copy strong {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-copy span {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page {
  display: grid;
  gap: 14px;
}

.hero-panel,
.detail-head,
.loading-card,
.empty-state,
.admin-panel,
.summary-card,
.side-help,
.stat-card,
.assignment-card,
.empty-mini {
  padding: 24px;
}

.hero-panel,
.detail-head,
.management-spotlight {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}

.overview-panel {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
  padding: 18px 20px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    radial-gradient(circle at left center, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(14, 20, 37, 0.96), rgba(8, 13, 24, 0.94));
}

.overview-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.overview-side {
  display: grid;
  align-content: start;
  gap: 8px;
}

.overview-metric {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-metric strong {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.overview-metric span {
  color: var(--muted-strong);
}

.hero-panel-main {
  min-height: 260px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 26%),
    radial-gradient(circle at left center, rgba(124, 58, 237, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(16, 23, 42, 0.94), rgba(8, 13, 27, 0.88));
}

.hero-copy,
.management-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  max-width: 760px;
}

.hero-side {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 16px;
  min-width: 240px;
}

.hero-orb {
  width: 188px;
  height: 188px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(34, 211, 238, 0.16));
  border: 1px solid rgba(129, 140, 248, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-orb strong {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-orb span,
.hero-panel-mini p {
  color: var(--muted-strong);
  text-align: center;
}

.hero-panel-mini {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(11, 18, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.hero-actions,
.detail-actions,
.card-actions,
.management-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.eyebrow {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.18);
  color: #ddd7ff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
}

.stat-card-primary {
  border-color: rgba(129, 140, 248, 0.18);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(14, 20, 37, 0.98), rgba(8, 13, 24, 0.94));
}

.stat-card strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

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

.cards-grid-simple {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  justify-items: start;
}

.dashboard-ops-panel {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
  border-color: rgba(129, 140, 248, 0.18);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(14, 20, 37, 0.96), rgba(8, 13, 24, 0.94));
}

.dashboard-ops-copy {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.dashboard-ops-copy h1,
.dashboard-bots-head h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.dashboard-ops-copy h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

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

.dashboard-ops-stat {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(7, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-ops-stat span {
  color: var(--muted-strong);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-ops-stat strong {
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  letter-spacing: -0.04em;
}

.dashboard-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-ops-actions .button,
.dashboard-ops-actions .ghost-button {
  min-width: 168px;
}

.dashboard-bots-head {
  display: grid;
  gap: 12px;
  margin-bottom: 2px;
}

.dashboard-bots-head p {
  margin: 0;
  max-width: 720px;
}

.management-spotlight {
  padding: 14px 18px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(14, 20, 37, 0.96), rgba(8, 13, 24, 0.94));
  border-color: rgba(129, 140, 248, 0.18);
}

.management-actions {
  justify-content: flex-end;
  align-content: center;
}

.management-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.management-points div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 12, 24, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.management-copy h2,
.overview-copy h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.search-result-note {
  padding-inline: 4px;
}

.app-card {
  display: grid;
  gap: 13px;
  min-height: 0;
  padding: 18px 20px 20px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(11, 18, 34, 0.98), rgba(8, 13, 24, 0.94));
}

.app-card.is-client {
  padding-inline: 28px;
}

.app-card.is-client > * {
  width: min(100%, 1280px);
  margin-inline: auto;
}

.app-card-simple {
  gap: 14px;
  padding: 18px;
  border-color: rgba(129, 140, 248, 0.14);
}

.app-card-master-clean {
  gap: 16px;
  width: min(100%, 520px);
  justify-self: start;
}

.search-empty-state {
  margin-top: 4px;
}

.app-status-row,
.app-card-head,
.detail-brand,
.assignment-head,
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.app-status-row {
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 10px;
}

.status-subtle {
  font-size: 0.82rem;
}

.runtime-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.runtime-pill.is-online {
  color: #d7ffe6;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
}

.runtime-pill.is-busy {
  color: #fff3d0;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
}

.runtime-pill.is-offline {
  color: #ffd7de;
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.2);
}

.app-card-head {
  justify-content: flex-start;
  gap: 14px;
  padding-left: 0;
  margin-top: 0;
}

.app-card-head > div:last-child {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.app-card h3,
.section-card h3,
.summary-card h2,
.side-help h2,
.admin-panel h2,
.empty-state h2,
.management-copy h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.side-help {
  display: grid;
  gap: 18px;
  align-content: start;
}

.app-card h3 {
  font-size: 1.16rem;
  line-height: 1.05;
}

.app-card-head p {
  font-size: 0.92rem;
}

.app-card-runtime-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.app-card-runtime-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(7, 12, 24, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 0.78rem;
}

.app-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(14, 20, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.app-logo img,
.detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-logo {
  width: 78px;
  height: 78px;
  border-radius: 24px;
}

.detail-hero {
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.14), transparent 28%),
    radial-gradient(circle at left center, rgba(34, 211, 238, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(14, 20, 37, 0.97), rgba(8, 13, 24, 0.95));
  border-color: rgba(129, 140, 248, 0.18);
}

.detail-hero-side {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-width: min(100%, 380px);
}

.detail-mini-stats,
.detail-summary-grid {
  display: grid;
  gap: 14px;
}

.detail-mini-stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.detail-mini-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7, 12, 24, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-mini-stat strong {
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.detail-mini-stat span {
  color: var(--muted-strong);
  font-size: 0.88rem;
}

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

.app-kpi {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(7, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-content: center;
}

.app-kpi strong {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.app-meta,
.chip-row,
.summary-list,
.list-stack,
.assignment-list,
.form-stack,
.stack-column {
  display: grid;
  gap: 10px;
}

.app-meta {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.app-meta-master-clean {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.app-meta span,
.summary-list span,
.list-row {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 11px 14px;
  border-radius: 15px;
  background: rgba(7, 12, 24, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-list span,
.list-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bot-ops-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(129, 140, 248, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 16, 31, 0.88), rgba(7, 12, 24, 0.82));
}

.bot-ops-copy {
  display: grid;
  gap: 3px;
}

.bot-ops-copy strong {
  font-size: 0.96rem;
}

.bot-ops-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.bot-ops-owner {
  color: #e8ecff;
  font-size: 0.9rem;
  font-weight: 500;
}

.bot-ops-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.bot-ops-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-card-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-card-controls .button,
.app-card-controls .ghost-button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  justify-content: center;
}

.chip-row {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.permission-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 14, 28, 0.72);
  color: #d5ddff;
  text-align: center;
  font-size: 0.84rem;
}

.permission-chip.is-enabled {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.09);
  color: #d7ffe6;
}

.permission-chip.is-disabled {
  border-color: rgba(251, 113, 133, 0.18);
  background: rgba(251, 113, 133, 0.08);
  color: #ffd7de;
}

.card-actions .button,
.hero-actions .button,
.management-actions .button,
.detail-actions .button {
  min-width: 170px;
}

.card-actions.is-client {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.card-actions.is-master {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.card-actions.is-master .button,
.card-actions.is-master .ghost-button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  justify-content: center;
  text-align: center;
}

.card-actions.is-master > :first-child {
  grid-column: 1 / -1;
}

.card-actions.is-master [data-bot-reset-config] {
  grid-column: 1 / -1;
}

.card-actions.is-client .button,
.card-actions.is-client .ghost-button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.app-card-client-minimal {
  display: grid;
  gap: 18px;
  align-content: start;
  width: min(100%, 620px);
  justify-self: start;
}

.app-card-head-client {
  align-items: center;
  justify-content: space-between;
}

.app-card-head-client-main {
  min-width: 0;
  flex: 1;
}

.app-card-head-client h3 {
  margin-bottom: 0;
}

.bot-client-hash {
  display: inline-flex;
  margin-left: 8px;
  color: rgba(191, 201, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 600;
}

.app-card-client-minimal .app-card-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-actions.is-client.is-client-minimal {
  grid-template-columns: minmax(0, 1fr);
}

.empty-state {
  display: grid;
  gap: 14px;
  place-items: center;
  text-align: center;
  min-height: 320px;
}

.empty-icon {
  font-size: 1.4rem;
}

.detail-grid,
.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
}

.admin-workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.72fr);
}

.admin-main-column,
.admin-side-column,
.admin-guide-list {
  display: grid;
  gap: 18px;
}

.bot-access-panel,
.bot-access-editor,
.detail-sections-panel {
  display: grid;
  gap: 18px;
}

.bot-access-panel {
  padding: 24px;
  border-color: rgba(129, 140, 248, 0.18);
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(12, 18, 34, 0.96), rgba(8, 13, 24, 0.92));
}

.bot-access-editor {
  padding: 20px;
  border-color: rgba(129, 140, 248, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 16, 31, 0.96), rgba(7, 12, 24, 0.9));
}

.bot-access-list {
  gap: 12px;
}

.bot-access-card {
  border-color: rgba(129, 140, 248, 0.14);
}

.bot-access-empty {
  border-style: dashed;
}

.detail-sections-panel {
  padding: 24px;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-form-panel,
.admin-list-panel,
.admin-side-panel {
  padding: 24px;
}

.panel-head {
  display: grid;
  gap: 10px;
}

.panel-head h2 {
  margin: 0;
}

.panel-kicker,
.field-label {
  color: #cfd8f8;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-subhead {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8, 14, 27, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-subhead strong {
  color: var(--text);
}

.panel-subhead span,
.field-help,
.list-row-copy span,
.assignment-head-copy span,
.admin-guide-list span {
  color: var(--muted);
}

.admin-form-layout {
  gap: 16px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 8px;
}

.field-help {
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-permissions-grid {
  gap: 14px;
}

.admin-form-actions {
  padding-top: 4px;
}

.admin-master-list {
  gap: 12px;
}

.admin-list-row {
  min-height: 0;
  align-items: center;
  padding: 14px 16px;
}

.list-row-copy,
.assignment-head-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.assignment-card {
  padding: 18px 20px;
}

.assignment-head {
  align-items: flex-start;
  gap: 16px;
}

.assignment-head-copy strong {
  font-size: 1rem;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.assignment-list {
  gap: 14px;
}

.admin-guide-panel {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(12, 18, 34, 0.96), rgba(8, 13, 24, 0.92));
}

.admin-guide-list div {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 15px;
  background: rgba(8, 14, 27, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.section-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 22px;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  justify-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(12, 18, 36, 0.96), rgba(8, 13, 27, 0.9));
}

.section-card p {
  max-width: 100%;
  line-height: 1.6;
  justify-self: center;
}

.section-card.is-allowed {
  border-color: rgba(34, 197, 94, 0.18);
}

.section-card.is-locked {
  border-color: rgba(251, 113, 133, 0.18);
}

.section-status {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.18);
  color: #ddd7ff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
}

.section-title-wrap {
  display: grid;
  gap: 10px;
  min-width: 0;
  justify-items: center;
  width: 100%;
}

.section-title-wrap h3 {
  text-align: center;
  overflow-wrap: anywhere;
}

.section-hint-allowed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  width: min(100%, 220px);
  min-height: 44px;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: #d7ffe6;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.locked-panel {
  display: grid;
  gap: 12px;
  margin-top: auto;
  align-self: end;
  justify-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(251, 113, 133, 0.16);
  background: rgba(127, 29, 29, 0.08);
  text-align: center;
}

.locked-panel .button {
  width: 100%;
}

.summary-list strong,
.list-row strong,
.assignment-head strong,
.toggle-card span {
  color: var(--text);
}

.inline-form,
.form-stack {
  display: grid;
  gap: 12px;
}

.side-help-actions {
  margin-top: 18px;
  padding-top: 8px;
}

.inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.inline-form.is-master-form {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr) auto;
}

input[type="text"],
input[type="file"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 11, 24, 0.82);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

input[type="file"] {
  padding: 10px 14px;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  color: #fff;
  cursor: pointer;
}

textarea {
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}

input[type="text"]:hover,
input[type="file"]:hover,
textarea:hover,
select:hover {
  background: rgba(8, 14, 28, 0.92);
}

input[type="text"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(124, 58, 237, 0.48);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.brand-upload-preview {
  width: min(100%, 220px);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 11, 24, 0.78);
}

.brand-upload-preview img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.checkbox-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.toggle-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(13, 19, 36, 0.94), rgba(8, 13, 27, 0.8));
  cursor: pointer;
}

.toggle-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.assignment-card,
.empty-mini {
  display: grid;
  gap: 14px;
}

.assignment-card {
  border-color: rgba(129, 140, 248, 0.16);
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(10, 16, 31, 0.96), rgba(7, 12, 24, 0.92));
}

.assignment-head {
  align-items: flex-start;
}

.loading-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: 28px;
  text-align: left;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(13, 19, 34, 0.94), rgba(8, 13, 24, 0.92));
  border-color: rgba(129, 140, 248, 0.16);
}

.loading-layout .loading-card {
  width: min(100%, 980px);
}

.loading-card-compact {
  grid-template-columns: minmax(0, 1fr) 220px;
  min-height: 0;
}

.loading-copy,
.loading-visual,
.loading-skeleton {
  display: grid;
  gap: 14px;
}

.loading-copy {
  align-content: center;
}

.loading-copy p {
  max-width: 58ch;
}

.loading-visual {
  justify-items: end;
  align-content: center;
}

.loading-orbit {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.12), transparent 22%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(129, 140, 248, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 40px rgba(6, 11, 24, 0.3);
}

.loading-orbit-core,
.loading-orbit-ring {
  position: absolute;
  border-radius: 999px;
}

.loading-orbit-core {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  box-shadow:
    0 0 0 10px rgba(124, 58, 237, 0.12),
    0 0 30px rgba(79, 70, 229, 0.3);
}

.loading-orbit-ring {
  inset: 18px;
  border: 1px solid rgba(129, 140, 248, 0.16);
}

.loading-orbit-ring-a {
  animation: loading-spin 8s linear infinite;
}

.loading-orbit-ring-b {
  inset: 38px;
  border-style: dashed;
  border-color: rgba(34, 211, 238, 0.24);
  animation: loading-spin 5s linear infinite reverse;
}

.loading-skeleton {
  width: min(100%, 280px);
  padding: 18px;
  border-radius: 18px;
  background: rgba(7, 12, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.loading-line {
  position: relative;
  overflow: hidden;
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.loading-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: loading-shimmer 1.8s ease-in-out infinite;
}

.loading-line-lg {
  width: 100%;
}

.loading-line-md {
  width: 78%;
}

.loading-line-sm {
  width: 56%;
}

.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(34, 211, 238, 0.8));
  box-shadow: 0 0 18px rgba(79, 70, 229, 0.28);
  animation: loading-bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes loading-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.55;
  }
  40% {
    transform: translateY(-3px) scale(1);
    opacity: 1;
  }
}

code {
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.18);
  color: #ded8ff;
}

@media (max-width: 1180px) {
  .login-grid,
  .overview-panel,
  .management-points,
  .dashboard-ops-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .admin-grid,
  .admin-workspace,
  .field-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .detail-head,
  .management-spotlight,
  .dashboard-ops-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-hero-side {
    min-width: 0;
    width: 100%;
  }

  .hero-side {
    width: 100%;
    justify-items: flex-start;
  }
}

@media (max-width: 920px) {
  .shell {
    padding: 18px 16px 24px;
  }

  .topbar {
    position: static;
    padding: 12px;
    grid-template-columns: 1fr;
  }

  .brand {
    width: 100%;
  }

  .topbar-center {
    width: 100%;
    justify-content: stretch;
  }

  .topbar-search {
    width: 100%;
  }

  .topbar-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: stretch;
  }

  .dashboard-user-menu {
    width: 100%;
  }

  .dashboard-user-trigger {
    width: 100%;
  }

  .dashboard-user-dropdown {
    left: 0;
    right: auto;
    width: min(100%, 420px);
  }

  .topbar-primary {
    min-width: 0;
  }

  .user-chip {
    min-width: 0;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .compact-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .dashboard-user-dropdown {
    width: 100%;
  }

  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .login-showcase,
  .login-card,
  .hero-panel,
  .detail-head,
  .summary-card,
  .side-help,
  .admin-panel,
  .loading-card,
  .empty-state,
  .stat-card,
  .assignment-card,
  .empty-mini,
  .management-spotlight {
    padding: 22px;
  }

  .dashboard-ops-panel,
  .app-card-simple {
    padding: 20px;
  }

  .app-kpis,
  .cards-grid,
  .section-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .app-card-controls {
    grid-template-columns: 1fr;
  }

  .dashboard-ops-actions .button,
  .dashboard-ops-actions .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .detail-mini-stats,
  .detail-summary-grid {
    grid-template-columns: 1fr;
  }

  .app-card.is-client {
    padding-inline: 20px;
  }

  .brand-copy small,
  .user-copy span,
  .user-copy span {
    display: none;
  }

  .card-actions.is-client {
    grid-template-columns: 1fr;
  }

  .assignment-head,
  .admin-list-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-orb {
    width: 148px;
    height: 148px;
  }

  .loading-card,
  .loading-card-compact {
    grid-template-columns: 1fr;
  }

  .loading-visual {
    width: 100%;
    justify-items: flex-start;
  }

  .hero-orb strong {
    font-size: 2.4rem;
  }

  .bot-ops-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .bot-ops-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 14px 12px 20px;
  }

  .topbar,
  .dashboard-ops-panel,
  .app-card-simple,
  .admin-panel,
  .empty-state,
  .summary-card,
  .side-help,
  .assignment-card,
  .stat-card,
  .management-spotlight,
  .loading-card,
  .loading-card-compact {
    padding: 16px;
    border-radius: 18px;
  }

  .topbar {
    gap: 10px;
  }

  .brand {
    gap: 12px;
  }

  .brand-badge,
  .brand-mark,
  .empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .topbar-search input,
  .dashboard-user-trigger,
  .dashboard-user-dropdown,
  .dashboard-user-menu,
  .topbar-actions,
  .topbar-center,
  .topbar-primary,
  .dashboard-ops-actions .button,
  .dashboard-ops-actions .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .dashboard-user-dropdown {
    width: 100%;
    max-width: none;
  }

  .dashboard-user-dropdown.portal,
  .dashboard-user-dropdown.dashboard-user-dropdown-portal {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  .dashboard-ops-actions,
  .card-actions,
  .card-actions.is-master,
  .card-actions.is-client,
  .app-meta,
  .app-meta-master-clean,
  .cards-grid,
  .cards-grid-simple,
  .checkbox-grid,
  .section-grid,
  .detail-grid,
  .admin-grid,
  .admin-workspace,
  .detail-mini-stats,
  .detail-summary-grid,
  .overview-panel,
  .management-points {
    grid-template-columns: 1fr;
  }

  .app-card-master-clean,
  .app-card-client-minimal {
    width: 100%;
    max-width: none;
  }

  .app-card-head,
  .app-card-head-client,
  .assignment-head,
  .admin-list-row,
  .list-row,
  .dashboard-user-dropdown-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-status-row {
    flex-wrap: wrap;
  }

  .runtime-pill {
    align-self: flex-start;
  }

  .app-card-controls,
  .card-actions.is-master,
  .card-actions.is-client,
  .card-actions.is-client.is-client-minimal {
    grid-template-columns: 1fr;
  }

  .card-actions.is-master > :first-child,
  .card-actions.is-master [data-bot-reset-config] {
    grid-column: auto;
  }

  .app-card-controls .button,
  .app-card-controls .ghost-button,
  .card-actions .button,
  .card-actions .ghost-button {
    width: 100%;
  }

  .app-card-runtime-meta {
    width: 100%;
  }

  .app-card-runtime-meta span {
    min-width: 0;
  }

  .bot-client-hash {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .status-subtle.search-result-note {
    padding-inline: 2px;
  }
}
