:root {
  --bg: #f6f0e6;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: #fffaf1;
  --ink: #1f1b16;
  --muted: #6b6258;
  --line: rgba(86, 69, 45, 0.18);
  --accent: #bf5b2b;
  --accent-strong: #9f3f1a;
  --accent-soft: #f7d7b8;
  --success: #28624e;
  --danger: #a03333;
  --shadow: 0 18px 45px rgba(68, 49, 30, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

body.auth-app,
body.console-app {
  --bg: #1b1d2a;
  --surface: rgba(38, 40, 56, 0.92);
  --surface-strong: rgba(47, 50, 72, 0.98);
  --ink: #f3f4ff;
  --muted: #afb4d4;
  --line: rgba(144, 153, 255, 0.14);
  --accent: #5865f2;
  --accent-strong: #4752c4;
  --accent-soft: rgba(88, 101, 242, 0.14);
  --success: #46c995;
  --danger: #ff6b8a;
  --shadow: 0 24px 60px rgba(7, 8, 18, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 209, 168, 0.9), transparent 35%),
    radial-gradient(circle at top right, rgba(255, 241, 205, 0.9), transparent 30%),
    linear-gradient(180deg, #f8efe2 0%, #f5efe8 45%, #efe6d6 100%);
}

body.auth-app,
body.console-app {
  background:
    radial-gradient(circle at top left, rgba(107, 123, 255, 0.28), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(77, 208, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(126, 87, 255, 0.2), transparent 26%),
    linear-gradient(180deg, #12131d 0%, #181a28 36%, #16192a 100%);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.hero {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(255, 244, 225, 0.86));
  border: 1px solid rgba(191, 91, 43, 0.12);
  box-shadow: var(--shadow);
}

body.auth-app .shell,
body.console-app .shell {
  width: min(1180px, calc(100% - 32px));
}

body.auth-app .hero,
body.console-app .hero {
  background:
    linear-gradient(180deg, rgba(31, 34, 51, 0.96), rgba(27, 30, 46, 0.94)),
    radial-gradient(circle at top right, rgba(88, 101, 242, 0.22), transparent 34%);
  border: 1px solid rgba(120, 131, 255, 0.14);
  box-shadow: 0 28px 80px rgba(5, 7, 16, 0.48);
}

.hero h1,
.panel h2,
.panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.auth-app .hero h1,
body.console-app .hero h1,
body.auth-app .panel h2,
body.console-app .panel h2,
body.auth-app .panel h3,
body.console-app .panel h3 {
  font-family: "Avenir Next", "PingFang SC", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero p,
.panel p,
.hint,
.meta {
  color: var(--muted);
}

.auth-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.auth-shell {
  width: min(1100px, calc(100% - 32px));
}

.auth-landing {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.auth-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(122, 132, 255, 0.12);
  background:
    radial-gradient(circle at 22% 18%, rgba(93, 108, 255, 0.28), transparent 22%),
    radial-gradient(circle at 78% 24%, rgba(97, 214, 255, 0.2), transparent 18%),
    radial-gradient(circle at 62% 84%, rgba(153, 95, 255, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(19, 21, 35, 0.98), rgba(15, 17, 29, 0.98));
  box-shadow: 0 28px 80px rgba(5, 7, 16, 0.52);
  animation: authBackgroundShift 10s ease-in-out infinite alternate;
}

.auth-gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(145, 154, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 154, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 16%, rgba(0, 0, 0, 0.4) 78%, transparent 100%);
}

.auth-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(136, 145, 255, 0.18);
}

.auth-ring-large {
  width: 460px;
  height: 460px;
  right: -80px;
  top: -90px;
}

.auth-ring-small {
  width: 220px;
  height: 220px;
  left: 10%;
  bottom: -70px;
}

.auth-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
}

.auth-glow-left {
  width: 240px;
  height: 240px;
  left: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.4), transparent 65%);
  animation: authGlowLeftFloat 9s ease-in-out infinite;
}

.auth-glow-right {
  width: 280px;
  height: 280px;
  right: 8%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(91, 204, 255, 0.24), transparent 65%);
  animation: authGlowRightFloat 11s ease-in-out infinite;
}

.auth-pillars {
  position: absolute;
  right: 12%;
  bottom: 12%;
  display: flex;
  gap: 18px;
  align-items: flex-end;
}

.auth-pillars span {
  display: block;
  width: 72px;
  border-radius: 22px 22px 10px 10px;
  background: linear-gradient(180deg, rgba(104, 117, 255, 0.42), rgba(42, 48, 83, 0.92));
  border: 1px solid rgba(124, 132, 255, 0.14);
}

.auth-pillars span:nth-child(1) {
  height: 170px;
}

.auth-pillars span:nth-child(2) {
  height: 118px;
}

.auth-pillars span:nth-child(3) {
  height: 86px;
}

@keyframes authBackgroundShift {
  0% {
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }
  100% {
    filter: saturate(1.08) brightness(1.04);
    transform: scale(1.015);
  }
}

@keyframes authGlowLeftFloat {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(18px, 10px, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(-12px, 18px, 0);
    opacity: 0.82;
  }
}

@keyframes authGlowRightFloat {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(-20px, -14px, 0);
    opacity: 0.94;
  }
  100% {
    transform: translate3d(16px, -6px, 0);
    opacity: 0.78;
  }
}

.auth-slogan {
  margin: 16px 0 20px;
  max-width: 420px;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 800;
  color: #f6f7ff;
}

.auth-login-card {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px;
}

.panel {
  margin-top: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body.auth-app .panel,
body.console-app .panel {
  border: 1px solid rgba(125, 133, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(43, 46, 68, 0.92), rgba(33, 36, 54, 0.92));
  backdrop-filter: blur(14px);
}

.panel + .panel {
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(99, 77, 49, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.auth-app .field input,
body.auth-app .field textarea,
body.auth-app .field select,
body.console-app .field input,
body.console-app .field textarea,
body.console-app .field select {
  border: 1px solid rgba(136, 145, 255, 0.14);
  background: rgba(21, 24, 38, 0.9);
  color: var(--ink);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(191, 91, 43, 0.48);
  box-shadow: 0 0 0 4px rgba(191, 91, 43, 0.12);
  transform: translateY(-1px);
}

body.auth-app .field input:focus,
body.auth-app .field textarea:focus,
body.auth-app .field select:focus,
body.console-app .field input:focus,
body.console-app .field textarea:focus,
body.console-app .field select:focus {
  border-color: rgba(112, 124, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.18);
}

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

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff8f0;
  box-shadow: 0 16px 30px rgba(159, 63, 26, 0.24);
}

body.auth-app .button.primary,
body.console-app .button.primary {
  color: #f8f9ff;
  box-shadow: 0 16px 30px rgba(71, 82, 196, 0.32);
}

.button.secondary {
  background: rgba(31, 27, 22, 0.06);
  color: var(--ink);
}

body.auth-app .button.secondary,
body.console-app .button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost {
  background: transparent;
  color: var(--accent-strong);
}

body.auth-app .button.ghost,
body.console-app .button.ghost {
  color: #b8beff;
}

.message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
}

.message.error {
  display: block;
  background: rgba(160, 51, 51, 0.1);
  color: var(--danger);
}

.message.success {
  display: block;
  background: rgba(40, 98, 78, 0.1);
  color: var(--success);
}

.capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

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

body.auth-app .capsule,
body.console-app .capsule {
  background: rgba(88, 101, 242, 0.14);
  color: #c6ccff;
}

.capsule-beta {
  background: rgba(91, 204, 255, 0.14);
  color: #aee9ff;
}

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

.tab-button {
  border: 1px solid rgba(99, 77, 49, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.auth-app .tab-button,
body.console-app .tab-button {
  border-color: rgba(126, 134, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #b8bdd8;
}

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

.tab-button.active {
  border-color: rgba(191, 91, 43, 0.26);
  background: rgba(191, 91, 43, 0.12);
  color: var(--accent-strong);
}

body.auth-app .tab-button.active,
body.console-app .tab-button.active {
  border-color: rgba(110, 123, 255, 0.3);
  background: rgba(88, 101, 242, 0.18);
  color: #eef0ff;
}

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

.stat {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

body.auth-app .stat,
body.console-app .stat {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(125, 133, 255, 0.1);
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
}

.console-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 360px minmax(0, 1fr);
  margin-top: 20px;
}

.agent-network-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.agent-sidebar,
.agent-detail-surface {
  min-width: 0;
}

.agent-tab-list {
  display: grid;
  gap: 10px;
}

.agent-tab-item {
  display: grid;
  gap: 8px;
  justify-items: start;
  text-align: left;
  padding: 14px 14px 14px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

.agent-tab-topline {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.agent-tab-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
}

.agent-tab-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(106, 118, 255, 0.92), rgba(73, 83, 197, 0.92));
  color: #f7f8ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.agent-tab-presence {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(24, 27, 40, 0.96);
  background: #7c809a;
}

.agent-tab-presence.tone-success {
  background: #46c995;
}

.agent-tab-presence.tone-warning {
  background: #f0b35f;
}

.agent-tab-presence.tone-danger {
  background: #ff6b8a;
}

.agent-tab-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.agent-tab-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
}

.agent-tab-item.active {
  border-color: rgba(110, 123, 255, 0.16);
  background: rgba(88, 101, 242, 0.16);
  box-shadow: 0 10px 20px rgba(10, 13, 28, 0.22);
}

.agent-tab-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: transparent;
}

.agent-tab-item.active::before {
  background: linear-gradient(180deg, #8ea1ff, #5865f2);
}

.agent-tab-title {
  font-size: 16px;
  font-weight: 700;
}

.agent-tab-subtitle,
.agent-tab-meta {
  color: var(--muted);
  font-size: 12px;
}

.agent-tab-unread {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5865f2;
  color: #f8f9ff;
  font-size: 11px;
  font-weight: 800;
}

.agent-tab-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-detail-surface {
  display: grid;
}

.agent-profile-panel {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(125, 133, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(42, 46, 70, 0.96), rgba(31, 34, 52, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.agent-profile-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.agent-profile-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.agent-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(106, 118, 255, 0.96), rgba(73, 83, 197, 0.96));
  color: #f7f8ff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.agent-profile-copy {
  min-width: 0;
}

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

.agent-profile-stats {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.agent-mini-stat {
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(125, 133, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.agent-mini-stat-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.agent-mini-stat-value {
  display: block;
  margin-top: 6px;
  color: #f4f6ff;
  font-size: 22px;
  font-weight: 800;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
}

.pager-summary {
  color: var(--muted);
  font-size: 13px;
}

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

.pager-button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

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

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

.ops-table {
  display: grid;
  gap: 8px;
}

.ops-head,
.ops-row {
  display: grid;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
}

.ops-head {
  background: rgba(31, 27, 22, 0.06);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.ops-row {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

body.console-app .ops-row,
body.auth-app .list-item,
body.console-app .list-item,
body.console-app .ops-head,
body.console-app .ops-row {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(125, 133, 255, 0.1);
}

body.console-app .ops-head {
  background: rgba(255, 255, 255, 0.05);
}

body.console-app .agent-sidebar {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(125, 133, 255, 0.1);
  background: linear-gradient(180deg, rgba(26, 29, 44, 0.96), rgba(23, 25, 39, 0.96));
}

body.console-app .agent-detail-surface {
  padding: 0;
}

.ops-head-agents,
.ops-row-agent {
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr 0.7fr 1fr 1.6fr;
}

.ops-head-workspace-agents,
.ops-row-agent-workspace {
  grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 1.6fr 0.9fr;
}

.ops-head-tasks,
.ops-row-task {
  grid-template-columns: 1.5fr 1.2fr 1fr 1fr 0.9fr 0.9fr 0.8fr;
}

.ops-head-workspace-tasks {
  grid-template-columns: 1.6fr 0.9fr 1fr 0.9fr 0.9fr 0.8fr;
}

.ops-head-dispatch,
.ops-row-dispatch {
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr 1.8fr;
}

.ops-cell {
  min-width: 0;
  font-size: 14px;
}

.ops-cell strong {
  display: block;
  margin-bottom: 4px;
}

.ops-cell .hint,
.ops-cell .meta {
  margin-top: 4px;
}

.ops-action-cell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.list-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.selected-item {
  border-color: rgba(191, 91, 43, 0.36);
  box-shadow: 0 10px 24px rgba(159, 63, 26, 0.08);
}

.list-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(191, 91, 43, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.chip.tone-success {
  background: rgba(40, 98, 78, 0.12);
  color: var(--success);
}

.chip.tone-danger {
  background: rgba(160, 51, 51, 0.12);
  color: var(--danger);
}

.chip.tone-warning {
  background: rgba(191, 91, 43, 0.16);
  color: var(--accent-strong);
}

.chip.tone-info {
  background: rgba(31, 27, 22, 0.08);
  color: var(--ink);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.mono {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 12px;
}

.code-block {
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(31, 27, 22, 0.05);
  color: var(--ink);
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

body.auth-app .code-block,
body.console-app .code-block {
  background: rgba(16, 18, 29, 0.78);
  border-color: rgba(125, 133, 255, 0.1);
}

.toolbar + .message {
  margin-top: 18px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 27, 22, 0.42);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(255, 244, 225, 0.95));
  border: 1px solid rgba(191, 91, 43, 0.12);
  box-shadow: 0 28px 80px rgba(31, 27, 22, 0.24);
}

body.console-app .modal-panel,
body.auth-app .modal-panel {
  background:
    linear-gradient(180deg, rgba(35, 38, 58, 0.98), rgba(28, 31, 47, 0.97));
  border-color: rgba(125, 133, 255, 0.14);
  box-shadow: 0 32px 90px rgba(6, 8, 20, 0.52);
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

@media (max-width: 900px) {
  .auth-grid,
  .console-grid,
  .agent-network-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 20px, 1120px);
    margin: 20px auto;
  }

  .hero,
  .panel {
    padding: 20px;
  }

  .ops-head {
    display: none;
  }

  .ops-row,
  .ops-head-agents,
  .ops-head-workspace-agents,
  .ops-head-tasks,
  .ops-head-workspace-tasks,
  .ops-head-dispatch,
  .ops-row-agent,
  .ops-row-agent-workspace,
  .ops-row-task,
  .ops-row-dispatch {
    grid-template-columns: 1fr;
  }

  .ops-action-cell {
    justify-content: flex-start;
  }

  .modal-shell {
    padding: 12px;
  }

  .modal-panel {
    width: min(100vw - 16px, 960px);
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .auth-landing {
    min-height: calc(100vh - 40px);
  }

  .auth-background {
    border-radius: 24px;
  }

  .auth-login-card {
    width: min(100vw - 24px, 440px);
    padding: 22px;
  }

  .auth-pillars {
    right: 8%;
    bottom: 8%;
    gap: 12px;
  }

  .auth-pillars span {
    width: 52px;
    border-radius: 18px 18px 8px 8px;
  }

  .auth-ring-large {
    width: 320px;
    height: 320px;
    right: -70px;
    top: -50px;
  }

  .auth-ring-small {
    width: 180px;
    height: 180px;
  }
}
