:root {
  --bg-top: #141821;
  --bg-bottom: #0c1017;
  --panel: rgba(29, 34, 45, 0.58);
  --panel-2: rgba(35, 41, 54, 0.68);
  --panel-3: rgba(46, 54, 70, 0.76);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fb;
  --muted: #b5becc;
  --muted-2: #7f8b9b;
  --accent: #c4ddff;
  --accent-2: #e4efff;
  --danger: #ff9b9b;
  --success: #e5fff1;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --button-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  --button-shadow-pressed: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.18);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(141, 167, 214, 0.16), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(212, 226, 255, 0.13), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(88, 102, 138, 0.1), transparent 24%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.route-auth,
body.route-app {
  min-height: 100dvh;
}

body.route-auth {
  overflow: hidden;
}

body.route-app {
  overflow: hidden;
  --bg-top: #f4f6fb;
  --bg-bottom: #e6ebf4;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-2: rgba(252, 253, 255, 0.92);
  --panel-3: rgba(244, 248, 255, 0.96);
  --line: rgba(34, 49, 74, 0.08);
  --line-strong: rgba(34, 49, 74, 0.18);
  --text: #182234;
  --muted: #637287;
  --muted-2: #8693a3;
  --accent: #0a84ff;
  --accent-2: #d9ebff;
  --danger: #c24b4b;
  --success: #2a7c57;
  --shadow: 0 20px 42px rgba(22, 33, 52, 0.12);
  --button-shadow: 0 10px 22px rgba(22, 33, 52, 0.1);
  --button-shadow-pressed: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 4px 12px rgba(22, 33, 52, 0.08);
  background:
    radial-gradient(circle at top left, rgba(111, 140, 187, 0.18), transparent 20%),
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body.is-busy,
body.is-busy button,
body.is-busy .nav-btn,
body.is-busy .result-card.clickable {
  cursor: progress;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--accent);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

body.route-auth .auth-shell {
  min-height: 100dvh;
  height: 100dvh;
  padding: clamp(20px, 4vw, 36px);
}

.auth-card {
  width: min(720px, 100%);
  padding: 32px;
  border-radius: 32px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 16, 30, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.boot-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(240, 245, 252, 0.16);
  backdrop-filter: blur(8px);
}

.boot-card {
  width: min(520px, calc(100vw - 40px));
  padding: 24px 24px 20px;
  border-radius: 26px;
  border: 1px solid rgba(34, 49, 74, 0.12);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(135%);
  box-shadow: var(--shadow);
}

.boot-copy h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.boot-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.boot-indicator {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.boot-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: esos-spin 0.7s linear infinite;
}

.auth-brand {
  margin-bottom: 22px;
}

.auth-copy h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.auth-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-panel {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.auth-links,
.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-link-btn {
  padding-inline: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.auth-link-btn:hover,
.auth-link-btn:focus-visible {
  color: var(--accent-2);
  background: transparent;
  border: none;
  transform: none;
}

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

.auth-grid input:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.auth-message {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-message.error {
  color: #ffe6e6;
}

.shell {
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  min-height: 100vh;
}

body.route-app .shell {
  min-height: 100dvh;
  height: 100dvh;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.sidebar {
  padding: 24px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(18, 22, 29, 0.56);
  backdrop-filter: blur(30px) saturate(135%);
}

body.route-app .sidebar {
  height: calc(100dvh - 36px);
  overflow: auto;
  border-right: none;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(240, 244, 251, 0.92)),
    rgba(18, 22, 29, 0.56);
  box-shadow: var(--shadow);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(198, 214, 236, 0.84));
  color: #202632;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.nav-group {
  display: grid;
  gap: 10px;
}

.nav-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 11px 14px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.nav-btn:hover,
.nav-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.nav-btn:active,
.nav-btn.just-pressed {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.18);
  transform: translateX(1px) translateY(1px) scale(0.99);
}

.sidebar-note,
.meta-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sidebar-note {
  margin-top: 24px;
}

.meta-note {
  margin-top: 12px;
  word-break: break-word;
}

.portal-user-card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
}

.portal-user-name {
  font-weight: 700;
}

.portal-user-meta {
  margin-top: 4px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.status-pill.ready {
  color: var(--success);
  border-color: rgba(114, 224, 194, 0.28);
}

.main {
  padding: 24px 24px 32px;
}

body.route-app .main {
  height: calc(100dvh - 36px);
  overflow: auto;
  padding: 24px 24px 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(123, 149, 193, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 247, 252, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(135%);
}

body.route-app .app-shell.is-booting {
  filter: saturate(0.88) blur(1px);
  transform: scale(0.998);
}

.flash {
  min-height: 48px;
  padding: 0 0 14px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.flash.visible {
  opacity: 1;
  transform: translateY(0);
}

.flash-bubble {
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 25, 42, 0.92);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 14px;
}

.flash-bubble.error {
  border-color: rgba(255, 155, 155, 0.32);
  color: #ffe6e6;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.02;
}

.lede,
.panel-sub {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 16px;
}

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

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.45fr);
  gap: 16px;
}

.workspace-grid.single-editor {
  grid-template-columns: minmax(0, 1fr);
}

.detail-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.org-chart-level {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(18, 23, 32, 0.82);
}

.org-chart-level + .org-chart-level::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 2px;
  height: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(166, 191, 233, 0.34));
}

.org-chart-level-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.org-chart-level-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.org-chart-level-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.org-chart-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 2px;
}

.org-chart-row .result-card {
  min-width: 260px;
  max-width: 280px;
  flex: 0 0 280px;
}

.upload-toolbar {
  align-items: center;
}

.inline-link,
.form-note {
  font-size: 13px;
  color: var(--muted);
}

.inline-link {
  text-decoration: none;
}

.inline-link:hover {
  color: var(--text);
}

.inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-card,
.panel,
.result-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px) saturate(135%);
  box-shadow: var(--shadow);
}

.panel,
.result-card {
  padding: 16px;
}

.panel-head,
.editor-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.editor-header {
  margin-bottom: 14px;
}

.editor-header.small {
  margin-bottom: 12px;
}

.panel-head h3,
.editor-header h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.metric-card {
  padding: 18px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 34px;
  font-weight: 700;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.search-scope-select {
  flex: 0 0 160px;
  max-width: 160px;
}

.sticky-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px;
  background: rgba(28, 33, 43, 0.58);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(28px) saturate(135%);
}

input,
select,
textarea,
button {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(21, 26, 35, 0.9);
  color: var(--text);
  padding: 13px 14px;
}

body.route-app input,
body.route-app select,
body.route-app textarea {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(34, 49, 74, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

input,
select,
textarea {
  width: 100%;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-width: 130px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: var(--button-shadow);
  transition: filter 140ms ease, transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

body.route-app button {
  border-color: rgba(34, 49, 74, 0.1);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.96), rgba(10, 132, 255, 0.82));
  color: #ffffff;
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

button:active,
button.just-pressed {
  filter: brightness(0.98);
  transform: translateY(1px) scale(0.986);
  box-shadow: var(--button-shadow-pressed);
}

button.is-processing {
  filter: brightness(1.02);
  transform: translateY(1px) scale(0.988);
  box-shadow: var(--button-shadow-pressed);
}

button.is-processing::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: esos-spin 0.75s linear infinite;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

body.route-app .ghost-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 253, 0.9));
  border-color: rgba(34, 49, 74, 0.12);
  color: var(--text);
}

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

.list,
.stack {
  display: grid;
  gap: 12px;
}

.selectable-list {
  max-height: calc(100vh - 270px);
  overflow: auto;
  padding-right: 4px;
}

.compact-list {
  max-height: 240px;
}

.tracker-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(18, 23, 32, 0.72);
}

.tracker-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.tracker-table th,
.tracker-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(166, 191, 233, 0.12);
}

.tracker-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(12, 16, 24, 0.94);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-row {
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.tracker-row:hover {
  background: rgba(166, 191, 233, 0.08);
}

.tracker-row.active {
  background: rgba(166, 191, 233, 0.14);
  box-shadow: inset 0 0 0 1px rgba(166, 191, 233, 0.24);
}

.tracker-table tbody tr:last-child td {
  border-bottom: none;
}

.result-card {
  padding: 14px 15px;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.result-card.clickable {
  cursor: pointer;
}

.result-card:hover,
.result-card.active {
  border-color: var(--line-strong);
  background: var(--panel-3);
  transform: translateY(-1px);
}

.result-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.result-subtitle {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.result-meta {
  margin-top: 10px;
  color: #c8d4ef;
  font-size: 12px;
}

.result-note {
  margin-top: 8px;
  font-size: 13px;
  color: #dbe8ff;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-actions button {
  min-width: 0;
  padding: 9px 12px;
  font-size: 12px;
}

.count-pill {
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
}

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

.form-grid textarea,
.form-grid .check-grid {
  grid-column: span 2;
}

.form-grid.narrow {
  margin-top: 12px;
}

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

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(19, 23, 31, 0.82);
  color: var(--muted);
}

.check-card input {
  width: 16px;
  height: 16px;
  margin: 0;
}

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

.stat-grid.compact {
  margin-bottom: 14px;
}

.stat-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 24, 33, 0.72);
  backdrop-filter: blur(18px);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
}

.inset-panel {
  border-radius: 20px;
  background: rgba(18, 22, 30, 0.48);
}

.empty {
  color: var(--muted);
  padding: 14px 4px;
}

.empty.large {
  padding: 18px 6px;
}

.editor-panel {
  min-width: 0;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.field-stack {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-spacer {
  display: none;
}

.toggle-card {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(19, 23, 31, 0.82);
  color: var(--muted);
}

.toggle-card input {
  width: 16px;
  height: 16px;
  margin: 0;
}

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

.admin-split {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.25fr);
  gap: 16px;
  margin-top: 14px;
}

.admin-detail-grid {
  margin-top: 4px;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.busy-indicator {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 18, 28, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

body.route-app .sticky-toolbar {
  background: rgba(255, 255, 255, 0.72);
}

body.route-app .portal-user-card,
body.route-app .status-pill,
body.route-app .stat-card,
body.route-app .check-card,
body.route-app .toggle-card,
body.route-app .tracker-table-wrap,
body.route-app .org-chart-level,
body.route-app .inset-panel,
body.route-app .busy-indicator {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(34, 49, 74, 0.1);
}

body.route-app .tracker-table th {
  background: rgba(241, 245, 251, 0.96);
}

body.route-app .nav-btn {
  color: var(--text);
}

body.route-app .nav-btn:hover,
body.route-app .nav-btn.active {
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.route-app .nav-btn:active,
body.route-app .nav-btn.just-pressed {
  background: rgba(10, 132, 255, 0.16);
  border-color: rgba(10, 132, 255, 0.18);
}

body.route-app .flash-bubble {
  background: rgba(255, 255, 255, 0.92);
}

body.route-app .result-meta,
body.route-app .result-note {
  color: #5e6f88;
}

.busy-indicator.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.busy-indicator-spinner {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-top-color: rgba(255, 255, 255, 0.96);
  animation: esos-spin 0.7s linear infinite;
}

.busy-indicator-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.admin-list {
  max-height: 420px;
}

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

  .dashboard-grid > :last-child {
    grid-column: span 2;
  }

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

@media (max-width: 1220px) {
  .kpi-grid,
  .search-grid,
  .detail-grid,
  .admin-split {
    grid-template-columns: 1fr;
  }

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

  .selectable-list {
    max-height: 420px;
  }
}

@media (max-width: 980px) {
  body.route-auth,
  body.route-app {
    overflow: auto;
  }

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

  body.route-app .shell {
    height: auto;
    min-height: 100dvh;
    gap: 12px;
    padding: 12px;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  body.route-app .sidebar,
  body.route-app .main {
    height: auto;
    overflow: visible;
    border-radius: 24px;
  }

  .main {
    padding: 20px 16px 26px;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .dashboard-grid,
  .auth-grid,
  .form-grid,
  .kpi-grid,
  .check-grid,
  .stat-grid,
  .admin-split {
    grid-template-columns: 1fr;
  }

  .form-grid textarea,
  .form-grid .check-grid {
    grid-column: auto;
  }
}
