:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #dce5f1;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #0891b2;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --ink: #334155;
  --shadow: 0 16px 38px rgba(15, 23, 42, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: rgba(255, 255, 255, .92);
  border-right: 1px solid rgba(203, 213, 225, .82);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(145deg, #2563eb, #10b981);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .28);
}

.brand-title {
  font-weight: 850;
  font-size: 19px;
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.nav-primary,
.side-link,
.btn,
.circle-btn,
.icon-btn {
  border: 0;
  cursor: pointer;
}

.nav-primary {
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #0891b2);
  color: #fff;
  font-weight: 760;
  box-shadow: 0 15px 30px rgba(37, 99, 235, .22);
}

.icon {
  margin-right: 8px;
  font-weight: 900;
}

.side-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-label {
  padding: 0 10px;
  color: #8896aa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 30vh;
  overflow: auto;
  padding-right: 2px;
}

.team-item,
.side-link {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: #43506a;
  text-align: left;
  display: grid;
  gap: 2px;
}

.team-item:hover,
.side-link:hover {
  background: #f0f4fb;
}

.team-item.active,
.side-link.active {
  color: var(--primary-dark);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18);
}

.team-name {
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-meta {
  color: var(--muted);
  font-size: 12px;
}

.health-card {
  margin-top: auto;
  min-height: 116px;
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(145deg, #0f172a 0%, #2563eb 58%, #0891b2 100%);
  box-shadow: 0 22px 40px rgba(15, 23, 42, .16);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.health-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.health-title {
  font-weight: 850;
  margin-bottom: 6px;
}

.health-copy {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .78);
}

.workspace {
  min-width: 0;
  overflow-x: hidden;
  padding: 22px 28px 42px;
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-wrap {
  width: min(560px, 100%);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(220, 229, 241, .8);
  box-shadow: 0 10px 28px rgba(72, 90, 125, .08);
}

.search-icon {
  color: #96a2b6;
  font-size: 23px;
}

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

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

.circle-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .74);
  color: #334155;
  border: 1px solid rgba(203, 213, 225, .78);
  box-shadow: 0 10px 24px rgba(72, 90, 125, .08);
}

.circle-btn:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.hero-band {
  margin-top: 18px;
  min-height: 136px;
  border-radius: 18px;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(112deg, rgba(15, 23, 42, .97), rgba(30, 64, 175, .92) 58%, rgba(8, 145, 178, .9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .7);
  font-weight: 850;
}

.hero-band h1 {
  margin: 8px 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0;
  line-height: 1;
}

.hero-band p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, .76);
}

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

.btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  font-weight: 780;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 26px rgba(49, 65, 92, .18);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn.accent {
  background: linear-gradient(135deg, #10b981, #0891b2);
}

.btn.soft {
  background: #4f607a;
}

.btn.danger {
  background: linear-gradient(135deg, #f43f5e, #ef4444);
}

.btn.quiet {
  color: #40506a;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(203, 213, 225, .8);
  box-shadow: none;
}

.hero-band .btn.quiet {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .24);
}

.metrics-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.metric {
  min-height: 116px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(220, 229, 241, .86);
  box-shadow: 0 16px 34px rgba(72, 90, 125, .08);
}

.metric-label,
.metric-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 34px;
  letter-spacing: 0;
}

.content-surface {
  margin-top: 18px;
  min-height: 480px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(220, 229, 241, .92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab {
  min-width: max-content;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: #5d6a80;
  cursor: pointer;
  font-weight: 760;
}

.tab.active {
  color: var(--primary-dark);
  background: #eff6ff;
}

.tab-panel {
  display: none;
  padding: 20px;
}

.tab-panel.active {
  display: block;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

select,
input,
textarea {
  border: 1px solid #d6dfec;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  outline: 0;
}

select,
input {
  min-height: 40px;
  padding: 0 12px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: rgba(108, 92, 231, .62);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, .1);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

thead {
  background: #f2f6fb;
}

th,
td {
  height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid #e7edf5;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #42516a;
  font-size: 13px;
  font-weight: 850;
}

td {
  color: #26344d;
  font-size: 14px;
}

tbody tr:hover {
  background: #fbfcff;
}

.empty-row td {
  height: 128px;
  text-align: center;
  color: #95a0b2;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f7;
  color: #53627a;
}

.pill.done,
.pill.available,
.pill.default {
  background: #eafaf1;
  color: #12824a;
}

.pill.running,
.pill.in_use,
.pill.usage_based {
  background: #e8f7fb;
  color: #087586;
}

.pill.failed,
.pill.bad {
  background: #fff0f1;
  color: #d22d44;
}

.pill.queued,
.pill.retry {
  background: #fff7e6;
  color: #a66a00;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.mini-btn {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d8e1ee;
  border-radius: 9px;
  background: #fff;
  color: #465672;
  cursor: pointer;
}

.mini-btn:hover {
  color: var(--primary-dark);
  border-color: rgba(108, 92, 231, .42);
}

.mail-counts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.invite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.logs-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.logs-list-card,
.log-detail-card {
  min-height: 560px;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .05);
}

.logs-list-card {
  padding: 18px;
}

.panel-title-row.compact {
  margin-bottom: 14px;
}

.panel-title-row.compact h2 {
  font-size: 20px;
}

.panel-title-row.compact p {
  max-width: 260px;
  line-height: 1.45;
}

.log-account-list {
  display: grid;
  gap: 8px;
  max-height: 470px;
  overflow: auto;
  padding-right: 4px;
}

.log-account {
  width: 100%;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.log-account:hover,
.log-account.active {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.log-account-main,
.log-account-meta {
  display: block;
}

.log-account-main {
  color: #0f172a;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-account-meta {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
}

.log-detail-card {
  padding: 22px;
  overflow: auto;
}

.log-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.log-detail-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.log-detail-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.log-error {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 760;
}

.log-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.log-event {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
}

.log-dot {
  width: 12px;
  height: 12px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: #635bff;
  box-shadow: 0 0 0 4px #eef2ff;
}

.log-event-body {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.log-event-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #0f172a;
}

.log-event-top span {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.log-event-text {
  margin-top: 7px;
  color: #334155;
  line-height: 1.5;
  word-break: break-word;
}

.log-event pre {
  margin: 10px 0 0;
  padding: 10px;
  overflow: auto;
  border-radius: 10px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 12px;
}

.log-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  text-align: center;
}

.invite-card,
.invite-side {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.invite-card {
  padding: 20px;
}

.invite-card textarea {
  min-height: 300px;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

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

.panel-title-row h2 {
  margin: 0 0 7px;
  font-size: 22px;
  letter-spacing: 0;
}

.panel-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.invite-side {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}

.mini-stat {
  min-height: 98px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.mini-stat strong {
  display: block;
  margin-top: 9px;
  font-size: 32px;
  letter-spacing: 0;
}

.wide {
  width: 100%;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.export-tile {
  min-height: 130px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 880;
  background: linear-gradient(145deg, #31415c, #6c5ce7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 34px rgba(49, 65, 92, .18);
}

.export-tile:nth-child(2) {
  background: linear-gradient(145deg, #0f766e, #13b5c8);
}

.export-tile:nth-child(3) {
  background: linear-gradient(145deg, #b45309, #f59e0b);
}

.export-tile:nth-child(4) {
  background: linear-gradient(145deg, #be123c, #7c3aed);
}

.export-tile span {
  display: block;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 650;
}

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

.settings-grid {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: #53627a;
  font-size: 13px;
  font-weight: 760;
}

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

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.check-row input {
  width: 16px;
  min-height: 16px;
}

dialog {
  width: min(720px, calc(100vw - 26px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

dialog::backdrop {
  background: rgba(18, 28, 45, .42);
  backdrop-filter: blur(5px);
}

.modal {
  padding: 22px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.modal-copy {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2f5fa;
  color: #53627a;
  font-size: 22px;
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.file-import-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.file-picker {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #13b5c8, #6c5ce7);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(108, 92, 231, .18);
}

.file-picker input {
  display: none;
}

#bulkFileName {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 240px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 280px;
  max-width: 440px;
  padding: 13px 15px;
  border-radius: 13px;
  color: #fff;
  background: #26344d;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
  font-weight: 720;
}

.toast.error {
  background: #dc2626;
}

.toast.ok {
  background: #059669;
}

.hide {
  display: none !important;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(203, 213, 225, .82);
  }

  .health-card {
    margin-top: 0;
  }

  .metrics-grid,
  .export-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .settings-grid {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }

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

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

@media (max-width: 720px) {
  .workspace {
    padding: 16px 12px 28px;
  }

  .topbar,
  .hero-band,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .hero-actions,
  .toolbar-left,
  .toolbar-right {
    justify-content: flex-start;
  }

  .metrics-grid,
  .export-grid,
  .form-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .content-surface,
  .hero-band {
    border-radius: 18px;
  }
}

/* Reference-style management console */
.system-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.system-title {
  color: #020617;
  font-size: 22px;
  font-weight: 880;
  letter-spacing: 0;
}

.system-user {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #0f172a;
  font-weight: 760;
}

.logout-top-btn {
  height: 42px;
  min-width: 86px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 820;
  cursor: pointer;
}

.logout-top-btn:hover {
  border-color: #6366f1;
  color: #4f46e5;
}

.app-shell {
  min-height: calc(100vh - 74px);
  grid-template-columns: 300px minmax(0, 1fr);
  background: #f7f8fb;
}

.sidebar {
  top: 74px;
  height: calc(100vh - 74px);
  padding: 40px 24px;
  background: #fff;
  border-right: 1px solid #dde5f0;
  box-shadow: none;
}

.sidebar .brand {
  display: none;
}

.nav-primary {
  height: 48px;
  border-radius: 10px;
  background: #635bff;
  box-shadow: 0 14px 28px rgba(99, 91, 255, .18);
}

.side-label {
  padding: 0 12px;
  color: #94a3b8;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

.side-link {
  min-height: 56px;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 0 18px;
  color: #64748b;
  font-size: 17px;
  font-weight: 820;
}

.side-link.active {
  color: #6257ff;
  background: #eef2ff;
  box-shadow: none;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: currentColor;
  font-size: 20px;
}

.team-list {
  max-height: 22vh;
}

.team-item {
  border: 1px solid transparent;
  background: #f8fafc;
}

.team-item.active {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.health-card {
  min-height: 106px;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.workspace {
  padding: 44px 48px 56px;
}

.topbar {
  height: auto;
  margin-bottom: 22px;
  justify-content: flex-end;
}

.search-wrap {
  height: 46px;
  width: min(360px, 100%);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.circle-btn {
  width: 44px;
  height: 44px;
  background: #fff;
  box-shadow: none;
}

.hero-band {
  min-height: 0;
  margin: 0 0 18px;
  padding: 0;
  color: #0f172a;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.hero-band .eyebrow {
  display: none;
}

.hero-band h1 {
  margin: 0 0 8px;
  color: #020617;
  font-size: 30px;
  line-height: 1.2;
}

.hero-band p {
  color: #64748b;
  font-size: 14px;
}

.hero-band .btn.quiet {
  color: #334155;
  background: #fff;
  border-color: #dbe3ef;
}

.metrics-grid {
  margin-top: 0;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 24px;
}

.metric {
  position: relative;
  min-height: 108px;
  padding: 24px 24px 18px 96px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dfe7f2;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .07);
}

.metric::before {
  content: "▦";
  position: absolute;
  left: 30px;
  top: 32px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #635bff;
  background: #eef2ff;
  font-size: 24px;
  font-weight: 900;
}

.metric:nth-child(2)::before {
  content: "✓";
}

.metric:nth-child(3)::before {
  content: "✉";
}

.metric:nth-child(4)::before {
  content: "◎";
}

.metric-label {
  color: #64748b;
  font-size: 14px;
  font-weight: 820;
}

.metric strong {
  margin: 0 0 4px;
  color: #020617;
  font-size: 30px;
}

.content-surface {
  margin-top: 28px;
  border-radius: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.tabs {
  display: none;
}

.tab {
  height: 56px;
  border-radius: 10px;
}

.tab.active {
  background: #eef2ff;
  color: #635bff;
}

.tab-panel {
  padding: 0;
}

.toolbar {
  margin-bottom: 24px;
  padding: 22px 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .05);
}

.toolbar-left {
  gap: 12px;
}

.btn {
  min-height: 44px;
  border-radius: 10px;
  box-shadow: none;
}

.btn.primary,
.btn.accent {
  background: #635bff;
}

.btn.soft {
  background: #475569;
}

.btn.danger {
  background: #ef4444;
}

.btn.quiet {
  background: #fff;
}

.table-wrap {
  border-radius: 14px;
  background: #fff;
  border-color: #dfe7f2;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .05);
}

thead {
  background: #f8fafc;
}

th {
  color: #64748b;
  font-size: 13px;
  text-transform: none;
}

td {
  color: #0f172a;
}

.invite-card,
.invite-side,
.export-tile,
.settings-grid,
.form-grid {
  box-shadow: 0 8px 16px rgba(15, 23, 42, .05);
}

@media (max-width: 1120px) {
  .system-header {
    padding: 0 22px;
  }

  .sidebar {
    top: 0;
    height: auto;
  }
}

@media (max-width: 720px) {
  .system-header {
    height: auto;
    min-height: 66px;
    padding: 14px 16px;
  }

  .system-title {
    font-size: 18px;
  }

  .workspace {
    padding: 22px 14px 34px;
  }

  .metric {
    padding-left: 86px;
  }
}
