/* ==========================================================================
   星脉 Studio · 2026 控制台主题
   在 styles.css 之后加载，只覆盖视觉层，不改动页面结构与交互。
   ========================================================================== */

:root {
  --blue: #3b6cff;
  --blue-dark: #2b53d6;
  --navy: #0b1426;
  --ink: #14233c;
  --text: #2b3a54;
  --muted: #6f7d94;
  --line: #e8edf5;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 10px 26px -22px rgba(16, 24, 40, .22);
  --shadow-lg: 0 36px 90px -34px rgba(15, 23, 42, .45);
  --brand-grad: linear-gradient(135deg, #3b6cff 0%, #6d5cff 100%);
  --surface-soft: #fbfcff;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-family: var(--font-sans);
}

html { background: #f6f8fc; }

body {
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 82% -12%, #eef2ff 0%, rgba(238, 242, 255, 0) 62%),
    radial-gradient(900px 460px at 8% 0%, #f3f7ff 0%, rgba(243, 247, 255, 0) 55%),
    #f6f8fc;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #dbe4ff; color: #12224a; }

* { scrollbar-width: thin; scrollbar-color: #ccd7e9 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d3ddec; border: 3px solid transparent; background-clip: content-box; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #b8c6dd; background-clip: content-box; }

h1 { font-size: 27px; font-weight: 700; letter-spacing: -.8px; color: var(--ink); }
h2 { font-size: 16px; font-weight: 650; color: var(--ink); }
h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
p { color: var(--text); }
.muted, .help { color: var(--muted); }
.mono, code, pre { font-variant-numeric: tabular-nums; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #5b82ff;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Shell / sidebar
   -------------------------------------------------------------------------- */

.shell { grid-template-columns: 256px minmax(0, 1fr); }

.sidebar {
  width: 256px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-right: 1px solid var(--line);
  color: #52617a;
  padding: 22px 14px 16px;
  box-shadow: 1px 0 0 rgba(16, 24, 40, .01);
}

.brand { padding: 4px 10px 24px; color: var(--ink); gap: 12px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--brand-grad);
  box-shadow: 0 12px 22px -10px rgba(59, 108, 255, .65);
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); }
.brand-sub { font-size: 9px; color: #93a0b7; letter-spacing: 2.2px; margin-top: 4px; }

.nav-group { color: #9aa7bd; font-size: 10px; letter-spacing: 2px; padding: 0 13px; margin: 2px 0 8px; }
.nav { gap: 3px; }
.nav a {
  position: relative;
  height: 42px;
  padding: 0 12px;
  gap: 11px;
  border-radius: 10px;
  color: #54627b;
  font-size: 13px;
  font-weight: 500;
}
.nav a .icon { width: 18px; height: 18px; color: #8492a9; transition: color .15s; }
.nav a:hover { background: #f3f6fc; color: var(--ink); }
.nav a:hover .icon { color: #4d5f7d; }
.nav a.active {
  background: linear-gradient(90deg, #eef2ff 0%, #f6f2ff 100%);
  color: var(--blue);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #e2e8ff;
}
.nav a.active .icon { color: var(--blue); }
.nav a.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 11px;
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--brand-grad);
}
.nav a.active::after { display: none; }

.sidebar-foot { border-top: 1px solid #eef1f7; padding: 16px 12px 4px; }
.connection { color: #5b6b84; font-size: 11.5px; }
.connection .dot { width: 7px; height: 7px; background: #12b76a; box-shadow: 0 0 0 3px #d9f7e8; }
.sidebar-foot p { color: #7c8aa3; font-size: 10.5px; line-height: 1.75; margin: 6px 0 0; }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */

.topbar {
  height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 15;
}
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #7f8ca3; }
.breadcrumb .slash { color: #c3ccda; }
.breadcrumb strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.environment {
  background: #f3f6fc;
  border: 1px solid #e7ebf4;
  color: #5b6b84;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
}
.user-info { background: #f8faff; border: 1px solid #e9eef7; border-radius: 999px; padding: 4px 13px 4px 5px; gap: 9px; }
.avatar {
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--brand-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 8px -2px rgba(59, 108, 255, .55);
}
.user-name { color: var(--ink); font-size: 12px; font-weight: 600; }
.user-role { color: #7f8ca3; font-size: 10px; }
.logout {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #e7ebf4;
  border-radius: 10px;
  background: #fff;
  color: #7b8aa2;
  transition: background .15s, color .15s, border-color .15s;
}
.logout:hover { background: #fff1f3; border-color: #ffd7de; color: #e11d48; }
.logout .icon { width: 17px; height: 17px; }
.mobile-menu { display: none; }

/* --------------------------------------------------------------------------
   Content / page heading
   -------------------------------------------------------------------------- */

.content { padding: 30px 32px 52px; max-width: 1560px; }
.page-heading { margin-bottom: 22px; gap: 22px; }
.page-heading p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.page-heading .actions { gap: 9px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  min-height: 40px;
  padding: 0 16px;
  gap: 7px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  background: #fff;
  color: #33415c;
  font-size: 12.5px;
  font-weight: 550;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:hover {
  background: #f8faff;
  border-color: #cfd9ea;
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -10px rgba(16, 24, 40, .35);
}
.btn .icon { width: 16px; height: 16px; }
.btn-primary {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(59, 108, 255, .75);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3363f5 0%, #5f50f5 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 24px -12px rgba(59, 108, 255, .8);
}
.btn-danger { background: #fff1f3; border-color: #ffd7de; color: #d61f45; box-shadow: none; }
.btn-danger:hover { background: #ffe4e8; border-color: #ffc5cf; color: #b91c3c; }
.btn-quiet { background: transparent; border-color: transparent; color: #5b6b84; box-shadow: none; }
.btn-quiet:hover { background: #f2f5fb; border-color: transparent; color: var(--ink); box-shadow: none; }
.btn-icon { width: 36px; min-height: 36px; padding: 0; border-radius: 10px; }

/* --------------------------------------------------------------------------
   Cards / callouts / stats / steps / timeline
   -------------------------------------------------------------------------- */

.card { margin-bottom: 20px; }
.card-header { padding: 18px 22px; border-bottom: 1px solid #f0f3f9; background: linear-gradient(180deg, #fff 0%, #fcfdff 100%); }
.card-header h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 650; }
.card-header p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.count { background: #f2f5fb; color: #6b7a93; border-radius: 999px; padding: 2px 9px; font-size: 10.5px; font-weight: 500; }
.card-body { padding: 22px; }
.card-footer { padding: 13px 22px; background: #fafbfe; border-top: 1px solid #f1f4f9; color: #74829a; font-size: 11.5px; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid #e3eaff;
  border-radius: 12px;
  background: linear-gradient(90deg, #f3f7ff 0%, #f8f9ff 100%);
  color: #4a5a76;
  font-size: 12.5px;
  line-height: 1.7;
}
.callout .icon { color: var(--blue); margin-top: 1px; }
.callout strong { color: var(--ink); }
.callout-warning { border-color: #f7e8c9; background: linear-gradient(90deg, #fff9ee, #fffdf8); color: #7a5a22; }
.callout-warning .icon, .callout-warning strong { color: #b7791f; }
.callout-error { border-color: #fbd5dd; background: linear-gradient(90deg, #fff4f6, #fffafb); color: #8c2a3d; }
.callout-error .icon, .callout-error strong { color: #d61f45; }

.stats-grid { gap: 16px; margin-bottom: 22px; }
.stat {
  min-height: 138px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.stat:hover { transform: translateY(-2px); border-color: #dbe3f2; box-shadow: 0 22px 38px -30px rgba(16, 24, 40, .45); }
.stat-label { font-size: 12px; color: #78879e; margin-bottom: 9px; }
.stat-value { font-size: 32px; font-weight: 700; letter-spacing: -1.2px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-foot { font-size: 11.5px; color: #7c8aa3; margin-top: 7px; }
.stat-icon { width: 42px; height: 42px; top: 18px; right: 18px; border-radius: 12px; background: #eef2ff; color: var(--blue); }
.stat-icon .icon { width: 20px; height: 20px; }
.stat-icon.green { background: #e9faf2; color: #0f9f6e; }
.stat-icon.purple { background: #f1eeff; color: #7a5af8; }
.stat-icon.orange { background: #fff5e8; color: #d97706; }

.step { padding: 16px 0; gap: 14px; }
.step-count {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f1f5ff;
  border: 1px solid #e2e9fb;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.step-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.step-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.step a { font-size: 11.5px; font-weight: 500; }

.status-banner { border-radius: 14px; border: 1px solid #e4ebfa; background: linear-gradient(120deg, #f4f8ff, #fbfaff); padding: 16px 18px; }
.status-banner h3 { font-size: 13.5px; }
.status-banner p { font-size: 11.5px; color: var(--muted); }

.timeline li { padding: 0 0 16px 20px; }
.timeline-mark { width: 8px; height: 8px; background: var(--blue); box-shadow: 0 0 0 3px #e8eeff; }
.timeline li:not(:last-child) .timeline-mark::after { background: #eaeff8; }
.timeline-title { font-size: 12.5px; color: #33415c; }
.timeline-date { font-size: 11px; color: #7c8aa3; }

/* --------------------------------------------------------------------------
   Toolbar / forms
   -------------------------------------------------------------------------- */

.toolbar { padding: 16px 22px; gap: 12px; background: #fcfdff; border-bottom: 1px solid #f0f3f9; }
.toolbar label { font-size: 11.5px; color: #78879e; font-weight: 500; }
.toolbar input, .toolbar select { height: 38px; border-radius: 9px; border-color: #e0e7f1; font-size: 12.5px; }
.toolbar .search { flex: 1 1 260px; min-width: 200px; }
.toolbar .filter { display: flex; flex-direction: column; gap: 6px; min-width: 132px; }
.toolbar > .btn { align-self: flex-end; }

.field > label, .field-label { font-size: 11.5px; color: #6b7a93; font-weight: 600; }
.field input, .field select, .field textarea, .toolbar input, .toolbar select {
  border-color: #e0e7f1;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 12.5px;
  padding: 9px 11px;
}
.field input, .field select { min-height: 40px; }
.field input::placeholder, .field textarea::placeholder, .toolbar input::placeholder { color: #a6b2c6; }
.field input:focus, .field textarea:focus, .field select:focus, .toolbar input:focus, .toolbar select:focus {
  border-color: #8aa8ff;
  box-shadow: 0 0 0 4px rgba(59, 108, 255, .10);
}
.form-grid { gap: 18px; }
.form-note, .help { font-size: 11.5px; line-height: 1.7; }
.check-list { border-color: #e7ecf5; border-radius: 10px; background: #fbfcff; gap: 6px; }
.check-list label, .checkbox { border-radius: 8px; padding: 6px 8px; }
.check-list label:hover { background: #f3f7fd; }
.check-list input, .checkbox input { accent-color: var(--blue); }
.toggle-field { border-radius: 10px; }
.section-title { font-size: 12px; letter-spacing: .03em; color: #7a889f; }
.form-error { border-color: #fbd5dd; background: #fff5f7; color: #b32746; border-radius: 10px; }
.preview-box { border: 1px solid #e7ecf5; border-radius: 12px; background: #fbfcff; }
.preview-box pre { color: #33415c; }

.variable-row { gap: 10px; }
.variable-row input { border-radius: 8px; }
.variable-labels { color: #93a0b5; font-size: 10.5px; letter-spacing: .02em; }

/* --------------------------------------------------------------------------
   Tables / badges / actions
   -------------------------------------------------------------------------- */

.table-wrap { background: #fff; }
table { border-collapse: separate; border-spacing: 0; }
th {
  background: #f8fafd;
  color: #6f7d94;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 11px 16px;
  border-bottom: 1px solid #edf1f8;
  white-space: nowrap;
}
td { padding: 14px 16px; border-bottom: 1px solid #f1f4f9; color: #55637b; font-size: 12.5px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8faff; }
td.title-cell { color: var(--ink); font-weight: 600; }
.cell-sub { font-size: 11px; color: #7c8aa3; margin-top: 3px; }
.table-action {
  color: var(--blue);
  font-size: 12px;
  font-weight: 550;
  padding: 4px 7px;
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.table-action:hover { background: #eef3ff; text-decoration: none; }
.table-action.danger { color: #d61f45; }
.table-action.danger:hover { background: #fff1f4; color: #b91c3c; }
.table-action + .table-action { margin-left: 2px; }

.badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.6;
  border-width: 1px;
}
.badge-green { color: #0f8a5f; background: #e9f9f1; border-color: #c9f0dd; }
.badge-blue { color: #2f5bd6; background: #edf2ff; border-color: #dbe5ff; }
.badge-gray { color: #64748b; background: #f4f6fa; border-color: #e9edf4; }
.badge-orange { color: #b45309; background: #fff6e8; border-color: #fbe7c6; }
.badge-red { color: #c81e4a; background: #fff1f4; border-color: #fbd5de; }
.badge-purple { color: #6d4bd8; background: #f3efff; border-color: #e6ddff; }
.badges { gap: 6px; }

.row-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef3ff, #f4f0ff);
  border: 1px solid #e4eaff;
  color: #4d6ad1;
  font-size: 12px;
  font-weight: 600;
}
.member-management .row-avatar { border-radius: 10px; }
.member-management th:last-child { background: #f8fafd; }
.member-management td:last-child { background: #fff; }
.member-management tbody tr:hover td:last-child { background: #f8faff; }
.member-management th:last-child, .member-management td:last-child { box-shadow: -1px 0 0 #eef2f8; }

/* Tabs (成员管理) */
.module-tabs { background: #eef2f8; border-color: #e6ebf3; border-radius: 12px; padding: 4px; }
.module-tab { min-width: 92px; height: 36px; padding: 0 18px; border-radius: 9px; color: #60708a; font-size: 12.5px; }
.module-tab:hover { background: #e5ebf6; color: var(--ink); }
.module-tab.active { background: #fff; color: var(--blue); box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px #e2e8f4; }
.module-tab:focus-visible { outline-offset: 0; }

/* --------------------------------------------------------------------------
   Dialogs
   -------------------------------------------------------------------------- */

dialog {
  border: 1px solid #e7ecf5;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
dialog::backdrop { background: rgba(16, 24, 40, .46); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dialog-header { padding: 20px 24px; border-bottom: 1px solid #f0f3f9; }
.dialog-header h2 { font-size: 18px; letter-spacing: -.3px; }
.dialog-header p { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.dialog-content { padding: 22px 24px; }
.dialog-footer { padding: 14px 24px; background: #fafbfe; border-top: 1px solid #f0f3f9; border-radius: 0 0 18px 18px; }
.dialog-footer .btn { min-height: 38px; }

/* --------------------------------------------------------------------------
   Toasts / empty / loading
   -------------------------------------------------------------------------- */

.notifications { top: 18px; right: 20px; }
.toast {
  background: #101a2e;
  color: #e8eefc;
  border: 1px solid #22304d;
  border-radius: 12px;
  box-shadow: 0 20px 44px -20px rgba(15, 23, 42, .65);
  padding: 12px 16px;
  font-size: 12px;
}
.toast .icon { color: #8fb0ff; }
.toast-error { background: #2a1119; border-color: #4a1d2b; color: #ffe4e9; }
.toast-error .icon { color: #ff8fa8; }

.empty { padding: 42px 24px; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: #f2f5fc; color: #8fa0bb; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty h3 { font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.empty p { font-size: 12px; color: var(--muted); max-width: 430px; margin: 0 auto 16px; }
.empty.compact { padding: 28px 20px; }

.loading-panel { color: var(--muted); font-size: 12.5px; }
.spinner { border-color: #e2e9f5; border-top-color: var(--blue); }
.boot-screen { background: transparent; }

details { border-radius: 12px; }
summary { cursor: pointer; border-radius: 10px; }
summary:hover { background: #f6f9ff; }

/* --------------------------------------------------------------------------
   Releases / preview / detail
   -------------------------------------------------------------------------- */

.release-summary {
  border: 1px solid #e6ecf7;
  border-radius: 16px;
  background: linear-gradient(120deg, #f6f9ff 0%, #fbfaff 100%);
  padding: 20px 22px;
}
.release-symbol { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid #e4eaf7; color: var(--blue); }
.release-summary h2 { font-size: 15px; }
.release-summary p { font-size: 11.5px; color: var(--muted); }
.release-version {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #7a889f;
  background: #fff;
  border: 1px solid #e6ecf7;
  border-radius: 999px;
}

.detail-block { border: 1px solid #e9eef6; border-radius: 12px; background: #fbfcff; }
.detail-item dt { font-size: 10.5px; color: #8a96ad; letter-spacing: .02em; }
.detail-item dd { font-size: 12.5px; color: var(--ink); }
.detail-list li { border-color: #f0f3f9; }

/* --------------------------------------------------------------------------
   Model management / filters
   -------------------------------------------------------------------------- */

.model-filters { border-bottom: 1px solid #f0f3f9; background: #fcfdff; }
.model-filter {
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f4f7fc;
  color: #5b6b84;
  padding: 7px 13px;
  font-size: 12px;
}
.model-filter:hover { background: #edf2fa; }
.model-filter[aria-pressed="true"] { background: #eef2ff; border-color: #dbe4ff; color: var(--blue); box-shadow: inset 0 0 0 1px #e5ebff; }
.model-filter span { font-size: 10.5px; color: #93a0b5; }
.model-filter[aria-pressed="true"] span { color: #6d86d8; }
.model-row-actions { gap: 8px; }
.model-key-note .help { color: #93a0b5; }
.model-clear-key input { accent-color: var(--blue); }

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */

.auth-screen {
  grid-template-columns: minmax(380px, 44%) 1fr;
  background: #f6f8fc;
}

.auth-branding {
  position: relative;
  overflow: hidden;
  padding: 54px 58px;
  color: #dbe5ff;
  background:
    radial-gradient(720px 420px at 12% 6%, rgba(59, 108, 255, .30) 0%, rgba(59, 108, 255, 0) 58%),
    radial-gradient(680px 480px at 92% 92%, rgba(109, 92, 255, .26) 0%, rgba(109, 92, 255, 0) 60%),
    linear-gradient(155deg, #0a1224 0%, #101d3b 52%, #162550 100%);
}
.auth-branding::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 30% 28%, #000 0%, transparent 100%);
  pointer-events: none;
}
.auth-branding::after { opacity: .75;
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -190px;
  bottom: -210px;
  border-radius: 50%;
  border: 1px solid rgba(140, 170, 255, .18);
  background: radial-gradient(circle at 35% 35%, rgba(109, 140, 255, .22), rgba(109, 140, 255, 0) 68%);
  pointer-events: none;
}
.auth-branding .brand { position: relative; z-index: 1; padding: 0; color: #fff; }
.auth-branding .brand-name { color: #fff; }
.auth-branding .brand-sub { color: #8ea2cc; }
.auth-branding .brand-mark { box-shadow: 0 16px 32px -14px rgba(59, 108, 255, .95); }

.auth-message { position: relative; z-index: 1; margin: auto 0; padding: 40px 0 0; }
.auth-eyebrow { color: #8fa8ff; font-size: 10.5px; letter-spacing: 3.4px; font-weight: 600; }
.auth-message h1 { color: #fff; font-size: 42px; line-height: 1.22; letter-spacing: -1.2px; margin: 14px 0 16px; }
.auth-message > p { color: #b3c3e2; font-size: 13px; line-height: 1.9; max-width: 380px; }
.auth-points { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.auth-points li {
  color: #c6d4ee;
  font-size: 12px;
  gap: 11px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 175, 235, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}
.auth-points .icon { width: 17px; height: 17px; color: #8fb0ff; }
.auth-branding-footer { position: relative; z-index: 1; color: #7f93ba; font-size: 10.5px; letter-spacing: .04em; }

.auth-main { padding: 48px; background: radial-gradient(680px 460px at 72% 0%, #eef3ff 0%, rgba(246, 248, 252, 0) 62%), #f6f8fc; }
.auth-box {
  width: 100%;
  max-width: 404px;
  padding: 36px;
  border: 1px solid #e9eef7;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 40px 80px -52px rgba(15, 23, 42, .55);
  backdrop-filter: blur(10px);
}
.auth-box h2 { font-size: 26px; letter-spacing: -.8px; color: var(--ink); margin-bottom: 8px; }
.auth-intro { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.auth-form { gap: 16px; }
.auth-form .field > label { font-size: 11.5px; }
.auth-form input { min-height: 44px; border-radius: 10px; background: #fbfcff; }
.auth-form input:focus { background: #fff; }
.auth-form .btn { min-height: 46px; margin-top: 4px; border-radius: 11px; font-size: 13px; }
.auth-foot { font-size: 11px; color: #93a0b5; line-height: 1.8; margin-top: 18px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 1600px) {
  .content { padding-top: 34px; }
}

@media (max-width: 1180px) {
  .shell { grid-template-columns: 232px minmax(0, 1fr); }
  .sidebar { width: 232px; }
  .topbar { padding: 0 22px; }
  .content { padding: 26px 22px 46px; }
  .stat { padding: 18px 19px; }
  .stat-icon { width: 38px; height: 38px; top: 16px; right: 16px; }
  .auth-branding { padding: 44px; }
  .auth-message h1 { font-size: 34px; }
}

@media (max-width: 950px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-columns { grid-template-columns: 1fr; }
  .auth-screen { grid-template-columns: 40% 1fr; }
  .auth-branding { padding: 34px 26px; }
  .auth-message h1 { font-size: 27px; }
  .auth-message > p { font-size: 12px; }
  .auth-points { margin-top: 18px; }
  .auth-main { padding: 32px; }
  .environment { display: none; }
}

@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 24px 0 60px -30px rgba(15, 23, 42, .55);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 19; background: rgba(15, 23, 42, .46); backdrop-filter: blur(2px); }
  .workspace { grid-column: 1; }
  .mobile-menu { display: inline-flex; }
  .topbar { height: 60px; padding: 0 14px; }
  .topbar-left { display: flex; align-items: center; gap: 10px; }
  .breadcrumb { font-size: 11px; gap: 7px; }
  .breadcrumb > span:first-child, .breadcrumb .slash { display: none; }
  .topbar-right { gap: 7px; }
  .user-name { max-width: 88px; font-size: 11px; }
  .user-info { gap: 7px; padding: 3px 9px 3px 4px; }
  .avatar { width: 28px; height: 28px; }
  .content { padding: 22px 16px 36px; }
  .page-heading { flex-direction: column; gap: 14px; margin-bottom: 20px; }
  h1 { font-size: 23px; letter-spacing: -.5px; }
  .page-heading p { font-size: 12px; }
  .page-heading > .actions { width: 100%; }
  .page-heading > .actions .btn { flex: 1; }
  .stats-grid { gap: 10px; }
  .stat { min-height: 128px; padding: 16px; }
  .stat-label { font-size: 11px; margin-bottom: 7px; }
  .stat-value { font-size: 27px; }
  .stat-foot { font-size: 10px; }
  .stat-icon { width: 30px; height: 30px; top: 14px; right: 14px; }
  .card-header { padding: 15px 16px; }
  .card-body { padding: 16px; }
  .card-footer { padding: 11px 16px; }
  .toolbar { padding: 13px 15px; gap: 10px; }
  .toolbar .filter { flex: 1; min-width: 110px; max-width: none; }
  .toolbar .search { flex-basis: 100%; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .dialog-header { padding: 18px; }
  .dialog-content { padding: 18px; }
  .dialog-footer { padding: 14px 18px; }
  .variable-row { grid-template-columns: 1fr 1fr 35px 25px; }
  .variable-row .variable-default { grid-column: 1 / 3; grid-row: 2; }
  .variable-row .variable-required { grid-column: 3; grid-row: 1; }
  .variable-row .variable-remove { grid-column: 4; grid-row: 1; }
  .variable-labels { display: none; }
  .module-tabs { display: flex; width: 100%; }
  .module-tab { flex: 1; min-width: 0; }
  .auth-screen { display: flex; flex-direction: column; }
  .auth-branding { padding: 24px 24px 22px; display: block; }
  .auth-message, .auth-branding-footer { display: none; }
  .auth-branding .brand { padding: 0; }
  .auth-branding::after { opacity: .75; display: none; }
  .auth-main { padding: 24px 16px 44px; justify-content: flex-start; }
  .auth-box { padding: 26px 22px; border-radius: 18px; }
  .auth-box h2 { font-size: 23px; }
  .release-summary { align-items: flex-start; padding: 18px; gap: 12px; }
  .release-summary > .actions { display: none; }
  .notifications { right: 14px; top: 12px; }
  .callout { font-size: 11.5px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
