:root {
  --bg-0: #05070b;
  --bg-1: #0d121f;
  --bg-2: #171d2f;
  --text-0: #f5f7ff;
  --text-1: #c9d4ff;
  --text-2: #8b98bf;
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(16, 22, 36, 0.82);
  --card-2: rgba(17, 29, 48, 0.9);
  --primary: #56a0ff;
  --primary-2: #4ec9b8;
  --danger: #ff5f6d;
  --ok: #4ad6b0;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text-0);
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-synthesis: none;
}

body {
  background:
    radial-gradient(circle at 12% 16%, rgba(45, 79, 255, 0.14), transparent 30%),
    radial-gradient(circle at 78% 10%, rgba(74, 214, 176, 0.1), transparent 28%),
    linear-gradient(175deg, #06090f 0%, var(--bg-0) 45%, #04050a 100%);
  padding: 24px;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 0.2rem;
  font-size: 28px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 18px;
  color: #ecf1ff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.muted {
  color: var(--text-2);
  font-size: 14px;
}

.container {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.top-nav,
.panel,
.auth-shell,
textarea,
input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

.top-nav {
  width: min(1320px, 100%);
  margin: 0 auto 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-nav p {
  color: var(--text-1);
  font-size: 14px;
}

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

.tab-btn {
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  color: #d9e2ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tab-btn.is-active {
  border-color: rgba(141, 178, 255, 0.68);
  background: linear-gradient(180deg, rgba(95, 151, 255, 0.28), rgba(74, 120, 220, 0.18));
  color: #f2f6ff;
  box-shadow: inset 0 0 0 1px rgba(174, 207, 255, 0.26), 0 8px 24px rgba(75, 118, 217, 0.28);
}

.ghost-btn,
.action-btn {
  border: 0;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  font-size: 14px;
  line-height: 1.1;
  border-radius: 12px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  color: #e3ebff;
  background: linear-gradient(180deg, rgba(17, 26, 43, 0.94), rgba(10, 15, 25, 0.98));
  border: 1px solid rgba(156, 180, 227, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 26px rgba(0, 0, 0, 0.24);
}

.ghost-btn:hover {
  background: linear-gradient(180deg, rgba(24, 35, 58, 0.98), rgba(14, 20, 32, 0.98));
  transform: translateY(-1px);
  border-color: rgba(156, 180, 227, 0.34);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 18px;
  background:
    linear-gradient(180deg, rgba(97, 155, 255, 0.22) 0%, rgba(34, 63, 128, 0.16) 100%),
    linear-gradient(180deg, #18243a 0%, #0d1421 100%);
  color: #eef4ff;
  border: 1px solid rgba(158, 185, 235, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 34px rgba(4, 10, 20, 0.45);
}

.action-btn:hover {
  background:
    linear-gradient(180deg, rgba(116, 171, 255, 0.26) 0%, rgba(42, 77, 154, 0.18) 100%),
    linear-gradient(180deg, #1b2941 0%, #111b2c 100%);
  transform: translateY(-1px);
  border-color: rgba(175, 198, 240, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 36px rgba(8, 16, 29, 0.5);
}

.action-btn:focus-visible,
.ghost-btn:focus-visible,
.tab-btn:focus-visible {
  outline: 2px solid rgba(149, 190, 255, 0.8);
  outline-offset: 2px;
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.action-btn .btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.action-btn .btn-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ghost-btn .btn-icon,
.tab-btn .btn-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
}

.ghost-btn .btn-icon svg,
.tab-btn .btn-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel {
  padding: 16px 18px;
  animation: show 230ms ease-out;
  margin-top: 12px;
}

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

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

.actions-row .action-btn {
  min-width: 220px;
}

.action-btn.danger {
  background: linear-gradient(180deg, #f06d79 0%, #d64d5a 100%);
  color: #fff0f2;
  border-color: rgba(255, 188, 195, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 26px rgba(214, 77, 90, 0.32);
}

.action-btn.danger:hover {
  background: linear-gradient(180deg, #ff7b87 0%, #e35c69 100%);
  box-shadow: 0 12px 28px rgba(214, 77, 90, 0.42);
}

.status {
  min-height: 62px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-text {
  flex: 1;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 600;
}

.status.ok {
  border-color: rgba(74, 214, 176, 0.4);
  background: rgba(74, 214, 176, 0.1);
  color: #baf2de;
}

.status.err {
  border-color: rgba(255, 95, 109, 0.45);
  background: rgba(255, 95, 109, 0.1);
  color: #ffd0d7;
}

.status.warn {
  border-color: rgba(244, 183, 74, 0.45);
  background: rgba(244, 183, 74, 0.12);
  color: #ffe5a7;
}

.status.info {
  border-color: rgba(90, 169, 255, 0.45);
  background: rgba(90, 169, 255, 0.11);
  color: #d7e4ff;
}

.status-spinner {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: spin 1.15s linear infinite;
  filter: drop-shadow(0 0 0.65rem rgba(90, 169, 255, 0.35));
}

.status-spinner.hidden {
  display: none;
}

.status-spinner svg {
  width: 100%;
  height: 100%;
}

.status-spinner circle {
  stroke: rgba(215, 228, 255, 0.15);
  stroke-width: 4;
}

.status-spinner path {
  stroke: url(#statusSpinGradient);
  stroke-width: 4.6;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 44 84;
  animation: dash 1.15s ease-in-out infinite;
}

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

@keyframes dash {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: -74; }
  100% { stroke-dashoffset: 0; }
}

.hidden {
  display: none !important;
}

label {
  color: var(--text-2);
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  background: #0d111a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-0);
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
}

.manual-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  overflow: auto;
  font-size: 13px;
  background: #070c13;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: #d3ddf7;
}

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

.metric-card {
  grid-column: span 3;
  background: linear-gradient(180deg, rgba(19, 29, 52, 0.85), rgba(13, 21, 36, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 12px;
  min-height: 100px;
}

.loading-zone.is-loading .metric-card,
.content-loading {
  background: linear-gradient(90deg, rgba(27, 38, 61, 0.85) 25%, rgba(22, 33, 56, 0.85) 37%, rgba(27, 38, 61, 0.85) 63%);
  background-size: 400% 100%;
  animation: pulseFlow 1.2s linear infinite;
  border-color: rgba(255, 255, 255, 0.18);
}

.content-loading .kv-grid,
.loading-zone.is-loading .kv-grid {
  opacity: 0.72;
}

.metric-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(90, 169, 255, 0.1);
}

.metric-icon svg {
  width: 18px;
  height: 18px;
  stroke: #d8e4ff;
  fill: transparent;
  stroke-width: 1.6;
}

.metric-label {
  color: var(--text-2);
  font-size: 13px;
  margin: 0 0 4px;
}

.metric-value {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.metric-chip-wrap {
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  color: #c9d8ff;
}

.chip-soft {
  border-color: rgba(90, 169, 255, 0.35);
  background: rgba(90, 169, 255, 0.12);
}

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

.kv-grid {
  display: grid;
  gap: 10px;
}

.kv-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding: 6px 0;
  position: relative;
  transition: opacity 150ms ease;
}

.kv-item + .kv-item {
  border-top: 1px dashed rgba(255, 255, 255, 0.02);
}

.kv-k {
  color: var(--text-2);
  font-size: 13px;
}

.kv-v {
  text-align: right;
  font-weight: 600;
  max-width: 64%;
  word-break: break-word;
}

.loading-placeholder {
  min-height: 18px;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: pulseFlow 1.3s ease-in-out infinite;
}

.log-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.log-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(17, 25, 40, 0.8), rgba(15, 20, 33, 0.85));
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
}

.log-item.ok {
  border-color: rgba(74, 214, 176, 0.3);
}

.log-item.warn {
  border-color: rgba(244, 183, 74, 0.4);
}

.log-item.error {
  border-color: rgba(255, 95, 109, 0.45);
}

.log-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--text-2);
}

.log-dot[data-level=\"error\"] {
  background: var(--danger);
}

.log-dot[data-level=\"warn\"] {
  background: #f4b74a;
}

.log-dot[data-level=\"ok\"] {
  background: var(--ok);
}

.log-title {
  margin: 0 0 3px;
  font-weight: 600;
}

.log-summary {
  margin: 0 0 8px;
  color: #dce6ff;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.log-meta {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--text-2);
}

.log-item pre {
  margin: 0;
  white-space: pre-wrap;
  background: #090f1a;
  max-height: 160px;
  overflow: auto;
}

.log-details {
  margin-top: 8px;
}

.log-details summary {
  cursor: pointer;
  color: #9bb5ea;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}

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

.log-details summary::before {
  content: "+";
  display: inline-block;
  margin-right: 8px;
}

.log-details[open] summary::before {
  content: "-";
}

.log-details pre {
  margin-top: 10px;
}

.compact-log {
  padding: 10px 12px;
}

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

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

.subgrid {
  margin-top: 0;
}

.wide-half {
  grid-column: span 6;
}

.compact-panel {
  margin-top: 0;
}

.mt-12 {
  margin-top: 12px;
}

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

.config-card {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(156, 180, 227, 0.18);
  background: linear-gradient(180deg, rgba(15, 21, 34, 0.92), rgba(10, 15, 24, 0.98));
  color: #e5edff;
  cursor: pointer;
  transition: transform 140ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.config-card:hover,
.config-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(129, 176, 255, 0.42);
  box-shadow: 0 14px 28px rgba(5, 12, 24, 0.34);
}

.config-card-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.config-card-path {
  color: var(--text-2);
  font-size: 12px;
  word-break: break-all;
}

.config-editor {
  min-height: 420px;
  margin-top: 6px;
  border-radius: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.5;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.98), rgba(12, 18, 28, 0.98));
}

.action-btn.loading,
.action-btn:disabled {
  opacity: 0.72;
}

.action-btn.loading .btn-icon svg {
  animation: spin 1s linear infinite;
}

.auth-body {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.auth-body::before,
.auth-body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
}

.auth-body::before {
  width: 360px;
  height: 360px;
  left: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(90, 169, 255, 0.18), transparent 68%);
}

.auth-body::after {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(78, 201, 184, 0.14), transparent 70%);
}

.auth-shell {
  width: min(1320px, 100%);
  padding: 28px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 480px);
  gap: 28px;
  align-items: center;
}

.auth-visual-card {
  border-radius: 28px;
  border: 1px solid rgba(160, 184, 224, 0.14);
  background:
    radial-gradient(circle at top left, rgba(94, 151, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(16, 24, 39, 0.88), rgba(9, 14, 24, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  overflow: hidden;
}

.auth-visual-copy {
  max-width: 500px;
}

.auth-visual-copy h2 {
  font-size: 40px;
  line-height: 1.02;
  margin: 12px 0 16px;
  letter-spacing: -0.03em;
}

.auth-visual-art {
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(156, 180, 227, 0.12);
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.92), rgba(7, 11, 18, 0.98));
  min-height: 280px;
}

.auth-visual-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-card {
  width: 100%;
  padding: 30px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18, 27, 43, 0.92), rgba(9, 14, 24, 0.96)),
    radial-gradient(circle at top right, rgba(90, 169, 255, 0.1), transparent 34%);
  border: 1px solid rgba(160, 184, 224, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.42);
  min-height: 620px;
}

.auth-top-nav {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.auth-nav-current {
  cursor: default;
  opacity: 0.9;
}

.auth-badge-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(152, 184, 255, 0.18);
  background: rgba(90, 169, 255, 0.08);
  color: #dce7ff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ec9b8;
  box-shadow: 0 0 12px rgba(78, 201, 184, 0.5);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.auth-brand-compact {
  margin-bottom: 14px;
}

.auth-brand-icon,
.auth-footer-icon,
.input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(92, 152, 255, 0.22), rgba(38, 67, 120, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid rgba(152, 184, 255, 0.22);
  box-shadow: 0 20px 40px rgba(5, 12, 24, 0.36);
}

.auth-brand-icon svg,
.auth-footer-icon svg,
.input-icon svg {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-brand-icon svg {
  width: 28px;
  height: 28px;
  color: #dce8ff;
}

.auth-lead {
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}

.auth-lead-compact {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(158, 185, 235, 0.16);
  background: linear-gradient(180deg, rgba(10, 16, 27, 0.96), rgba(14, 21, 34, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 0 0 0 1px rgba(69, 102, 166, 0.08);
}

.input-icon {
  width: 18px;
  height: 18px;
  color: #98aedf;
  flex: 0 0 18px;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.input-shell input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  min-height: 100%;
  font-size: 17px;
  color: #eef4ff;
  letter-spacing: 0.01em;
  caret-color: #8cb6ff;
}

.input-shell input::placeholder {
  color: rgba(155, 174, 214, 0.5);
}

.input-shell input:focus,
.input-shell input:focus-visible {
  outline: none;
  box-shadow: none;
}

.input-shell:focus-within {
  border-color: rgba(127, 176, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(95, 145, 234, 0.16),
    0 0 0 4px rgba(83, 140, 245, 0.1);
}

.auth-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 6px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: #eef4ff;
  border-radius: 16px;
  border: 1px solid rgba(158, 185, 235, 0.28);
  background:
    linear-gradient(180deg, rgba(97, 155, 255, 0.22) 0%, rgba(34, 63, 128, 0.16) 100%),
    linear-gradient(180deg, #18243a 0%, #0d1421 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 34px rgba(4, 10, 20, 0.45);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  border-color: rgba(175, 198, 240, 0.4);
  background:
    linear-gradient(180deg, rgba(116, 171, 255, 0.26) 0%, rgba(42, 77, 154, 0.18) 100%),
    linear-gradient(180deg, #1b2941 0%, #111b2c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 36px rgba(8, 16, 29, 0.5);
}

.auth-submit:focus-visible {
  outline: 2px solid rgba(149, 190, 255, 0.8);
  outline-offset: 2px;
}

.auth-submit .btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.auth-submit .btn-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-footer {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-footer-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #90a6d8;
  flex: 0 0 18px;
}

.auth-footer-icon svg {
  width: 18px;
  height: 18px;
}

.hint {
  color: var(--text-2);
  line-height: 1.55;
}

@keyframes pulseFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 140% 50%;
  }
}

@media (max-width: 1200px) {
  .metric-card {
    grid-column: span 4;
  }
}

@media (max-width: 900px) {
  .metric-card {
    grid-column: span 6;
  }

  .wide-half {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .metric-card {
    grid-column: span 12;
  }

  .top-nav,
  .panel-highlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions,
  .actions-row {
    width: 100%;
  }

  .top-actions > *,
  .actions-row .action-btn {
    width: 100%;
  }

  .manual-row {
    grid-template-columns: 1fr;
  }

  .status {
    align-items: flex-start;
  }

  .auth-shell {
    padding: 18px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-visual-card,
  .auth-card {
    padding: 20px;
    min-height: auto;
  }

  .auth-visual-copy h2 {
    font-size: 30px;
  }

  .auth-visual-art {
    min-height: 220px;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.panel.wide {
  grid-column: span 12;
}

.panel { grid-column: span 4; }

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

.page-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(17, 23, 38, 0.86), rgba(16, 25, 38, 0.9));
  margin-bottom: 12px;
}

@keyframes show {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .panel { grid-column: span 6; }
  .panel.wide { grid-column: span 12; }
}

@media (max-width: 760px) {
  .top-nav { flex-direction: column; align-items: flex-start; }
  .actions-row { flex-direction: column; }
  .manual-row { grid-template-columns: 1fr; }
  .panel,
  .panel.wide,
  .actions-row .action-btn,
  .panel.wide { grid-column: span 12; }
  .panel-highlight { flex-direction: column; align-items: flex-start; }
}

#serviceName {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-top: 10px;
}

#serviceBadge {
  margin-top: 6px;
}
