:root {
  color-scheme: light;
  --bg: #f1ece1;
  --bg-strong: #e7dece;
  --panel: rgba(255, 251, 244, 0.88);
  --panel-strong: #fffaf1;
  --ink: #16130f;
  --muted: #63574a;
  --muted-2: #857664;
  --line: rgba(22, 19, 15, 0.08);
  --line-strong: rgba(22, 19, 15, 0.16);
  --brand: #111111;
  --brand-soft: #2a241b;
  --accent: #b9893d;
  --accent-soft: rgba(185, 137, 61, 0.14);
  --success: #2b7a58;
  --success-soft: rgba(43, 122, 88, 0.14);
  --danger: #8d3c2f;
  --shadow-lg: 0 28px 80px rgba(17, 17, 17, 0.14);
  --shadow-md: 0 12px 30px rgba(17, 17, 17, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-sans: "Avenir Next", "Sora", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(185, 137, 61, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(17, 17, 17, 0.09), transparent 28%),
    linear-gradient(180deg, #f7f2e8 0%, var(--bg) 100%);
}

body.auth-shell {
  color: #f4f7fb;
  background:
    radial-gradient(circle at 18% 18%, rgba(229, 35, 34, 0.28), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(154, 182, 202, 0.18), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(229, 35, 34, 0.12), transparent 34%),
    linear-gradient(180deg, #071121 0%, #040b1d 58%, #09060c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 70%);
}

body.auth-shell::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

body.auth-shell::after {
  content: "";
  position: fixed;
  inset: auto auto 10% 50%;
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  pointer-events: none;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(229, 35, 34, 0.2) 0%, rgba(229, 35, 34, 0.08) 32%, transparent 68%);
  filter: blur(24px);
}

h1,
h2,
h3,
p,
ul,
li {
  margin: 0;
}

a,
button,
input {
  font: inherit;
}

code {
  font-family: "SFMono-Regular", "SF Mono", "Menlo", monospace;
  background: rgba(17, 17, 17, 0.06);
  padding: 3px 8px;
  border-radius: 999px;
}

.brand-mark,
.eyebrow,
.story-kicker,
.hero-panel-label,
.panel-note,
.auth-footnote,
.chip,
.chip-dark {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
}

.brand-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #f2c77d);
}

.chip,
.chip-dark,
.pill,
.ghost-button,
.primary-button {
  border-radius: 999px;
}

.chip,
.chip-dark {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 700;
}

.chip {
  background: var(--accent-soft);
  color: #7b5c25;
}

.chip-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ea;
}

.auth-layout,
.dashboard-page {
  position: relative;
  z-index: 1;
}

.auth-stage {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 470px);
  margin: 0 auto;
  padding: 48px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-story,
.auth-card,
.hero,
.panel,
.metric-card,
.hero-panel {
  backdrop-filter: blur(18px);
}

.panel .eyebrow,
.hero-panel-label {
  font-size: 0.72rem;
}

.auth-card p,
.provider-row p,
.metric-card p,
.panel-note,
.hero p {
  line-height: 1.6;
}

.auth-stack {
  width: 100%;
  display: grid;
  gap: 24px;
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.logo-mark {
  width: clamp(180px, 54vw, 265px);
  color: #fff;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.34));
}

.logo-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.logo-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5552, #e52322);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  box-shadow: 0 16px 32px rgba(229, 35, 34, 0.28);
}

.auth-brand-copy {
  display: none;
}

.auth-card,
.panel,
.metric-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.auth-card {
  width: 100%;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.auth-card-compact {
  padding: 30px 28px 28px;
}

.auth-card-top {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-card-top-compact {
  justify-items: start;
  margin-bottom: 18px;
}

.auth-card h2,
.panel h3,
.hero h2 {
  letter-spacing: -0.03em;
}

.auth-card h1 {
  font-size: clamp(1.9rem, 4vw, 2.3rem);
  letter-spacing: -0.06em;
}

.auth-card p,
.notice,
.alert,
.panel-note,
small,
th,
td {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.field input::placeholder {
  color: rgba(22, 19, 15, 0.34);
}

.field input:focus {
  outline: none;
  border-color: rgba(185, 137, 61, 0.8);
  box-shadow: 0 0 0 4px rgba(185, 137, 61, 0.14);
  transform: none;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease, box-shadow 150ms ease;
}

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

.primary-button {
  padding: 15px 18px;
  background: linear-gradient(135deg, #171411, #2b241c);
  color: #fffaf1;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.16);
  font-weight: 700;
}

.ghost-button {
  padding: 12px 16px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink);
  font-weight: 700;
}

.alert,
.notice {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 0.94rem;
}

.alert {
  background: rgba(141, 60, 47, 0.08);
  border: 1px solid rgba(141, 60, 47, 0.18);
  color: var(--danger);
}

.notice {
  background: rgba(185, 137, 61, 0.1);
  border: 1px solid rgba(185, 137, 61, 0.2);
}

.auth-shell .auth-card {
  background: rgba(7, 14, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.auth-shell .auth-card p,
.auth-shell .notice,
.auth-shell .alert {
  color: rgba(233, 239, 247, 0.76);
}

.auth-shell .auth-card h1 {
  color: #fff;
}

.auth-shell .field span {
  color: #d7e2ef;
}

.auth-shell .field input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(154, 182, 202, 0.26);
  color: #fff;
}

.auth-shell .field input::placeholder {
  color: rgba(244, 247, 251, 0.38);
}

.auth-shell .field input:focus {
  border-color: rgba(229, 35, 34, 0.82);
  box-shadow:
    0 0 0 4px rgba(229, 35, 34, 0.16),
    0 16px 40px rgba(0, 0, 0, 0.16);
}

.auth-shell .primary-button {
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ff5653, #e52322);
  color: #fff;
  box-shadow: 0 18px 36px rgba(229, 35, 34, 0.28);
}

.auth-shell .primary-button:hover {
  box-shadow: 0 22px 44px rgba(229, 35, 34, 0.32);
}

.auth-shell .alert {
  background: rgba(229, 35, 34, 0.12);
  border-color: rgba(229, 35, 34, 0.24);
  color: #ffd8d7;
}

.auth-shell .notice {
  background: rgba(154, 182, 202, 0.1);
  border-color: rgba(154, 182, 202, 0.22);
}

.auth-footnote {
  margin-top: 18px;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.dashboard-page {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.topbar,
.hero,
.metric-grid,
.content-grid {
  margin-bottom: 20px;
}

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

.topbar h1 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
}

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

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.user-badge small {
  display: block;
  margin-top: 2px;
}

.user-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--success), #5cc495);
  box-shadow: 0 0 0 6px rgba(43, 122, 88, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(50, 43, 33, 0.92)),
    linear-gradient(180deg, rgba(185, 137, 61, 0.08), transparent);
  color: #fff9ef;
  box-shadow: var(--shadow-lg);
}

.hero h2 {
  max-width: 18ch;
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.97;
}

.hero p {
  max-width: 62ch;
  color: rgba(255, 249, 239, 0.76);
}

.hero-panel {
  align-self: end;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.4rem;
  color: #fff7ea;
}

.metric-grid,
.content-grid {
  display: grid;
  gap: 18px;
}

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

.metric-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.metric-value {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.content-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.lower-grid {
  align-items: start;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-lg);
}

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

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

.panel h3 {
  font-size: 1.5rem;
  margin-top: 10px;
}

.provider-list,
.list-clean {
  display: grid;
  gap: 14px;
}

.provider-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.provider-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.provider-row strong {
  display: block;
  margin-bottom: 6px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-ok {
  background: var(--success-soft);
  color: var(--success);
}

.pill-muted {
  background: rgba(99, 87, 74, 0.1);
  color: var(--muted);
}

.list-clean {
  list-style: none;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

td {
  color: var(--ink);
}

@media (max-width: 1120px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .auth-layout,
  .dashboard-page {
    width: min(100% - 24px, 1320px);
  }

  .auth-layout {
    padding: 16px 0 24px;
  }

  .auth-card,
  .hero,
  .panel,
  .metric-card {
    padding: 22px;
  }

  .metric-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-actions,
  .provider-row {
    align-items: start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .user-badge {
    width: 100%;
  }

  .logo-lockup {
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .auth-stage {
    width: min(100% - 24px, 470px);
    padding: 32px 0;
  }

  .auth-card-compact {
    padding: 24px 20px 20px;
  }

  .logo-mark {
    width: min(100%, 220px);
  }

  .logo-ai {
    min-width: 52px;
    height: 36px;
    padding: 0 14px;
  }
}

body.app-shell {
  color: #0b1220;
  background:
    radial-gradient(circle at top left, rgba(229, 35, 34, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(154, 182, 202, 0.22), transparent 28%),
    linear-gradient(180deg, #f7f8fc 0%, #eef2f9 100%);
}

body.app-shell::before {
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 82%);
}

.overview-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.overview-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 28px 22px;
  display: grid;
  align-content: start;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(4, 11, 29, 0.98), rgba(9, 14, 25, 0.98)),
    linear-gradient(180deg, rgba(229, 35, 34, 0.12), transparent);
  color: #eef4ff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: grid;
  gap: 14px;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-row strong {
  display: block;
  font-size: 1rem;
}

.sidebar-brand-row p {
  color: rgba(238, 244, 255, 0.66);
}

.sidebar-brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5855, #e52322);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 34px rgba(229, 35, 34, 0.25);
}

.sidebar-status {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef4ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(238, 244, 255, 0.74);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}

.sidebar-link-short {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sidebar-note {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-note strong {
  display: block;
  margin: 10px 0 8px;
  color: #fff;
}

.sidebar-note p {
  color: rgba(238, 244, 255, 0.7);
}

.overview-main {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.overview-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.overview-topbar h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.06em;
}

.overview-topbar p {
  max-width: 72ch;
  color: #596579;
}

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

.overview-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 16px 34px rgba(11, 18, 32, 0.06);
}

.overview-user small {
  display: block;
  margin-top: 2px;
}

.app-shell .ghost-button {
  padding: 12px 16px;
  background: #fff;
  color: #0b1220;
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 16px 34px rgba(11, 18, 32, 0.06);
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 360px);
  gap: 18px;
}

.overview-hero-copy,
.hero-side-card,
.summary-card,
.overview-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 18px 44px rgba(11, 18, 32, 0.06);
  backdrop-filter: blur(14px);
}

.overview-hero-copy {
  padding: 28px;
  border-radius: 28px;
}

.hero-pill {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(229, 35, 34, 0.1);
  color: #d62423;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overview-hero-copy h2 {
  max-width: 14ch;
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.overview-hero-copy p {
  max-width: 68ch;
  color: #586273;
}

.quick-action-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quick-action-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(247, 248, 252, 0.98), rgba(240, 243, 250, 0.98));
  border: 1px solid rgba(11, 18, 32, 0.06);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.quick-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 35, 34, 0.18);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.08);
}

.quick-action-card strong {
  font-size: 1rem;
}

.quick-action-card p {
  color: #5b677b;
  line-height: 1.55;
}

.quick-action-card span {
  color: #d62423;
  font-size: 0.82rem;
  font-weight: 700;
}

.overview-hero-side {
  display: grid;
  gap: 18px;
}

.hero-side-card {
  padding: 22px;
  border-radius: 26px;
}

.hero-side-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.2rem;
}

.hero-side-card p {
  color: #5c6779;
}

.hero-side-card-accent {
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.86);
}

.hero-side-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-mini-stat {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(11, 18, 32, 0.04);
}

.hero-mini-stat strong {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.hero-mini-stat span {
  display: block;
  color: #677387;
  font-size: 0.8rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-card {
  padding: 20px;
  border-radius: 24px;
}

.summary-label {
  display: block;
  margin-bottom: 16px;
  color: #6a7587;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-value {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.summary-card p {
  color: #5e6a7d;
  line-height: 1.55;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.overview-grid-main {
  align-items: start;
}

.overview-grid-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-panel {
  padding: 24px;
  border-radius: 28px;
}

.overview-panel-wide {
  min-width: 0;
}

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

.overview-panel-header h3 {
  margin-top: 10px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.panel-caption {
  color: #7a8596;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.workspace-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(11, 18, 32, 0.06);
  background: linear-gradient(180deg, rgba(249, 250, 253, 1), rgba(242, 244, 249, 1));
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.workspace-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(11, 18, 32, 0.08);
}

.workspace-card strong {
  font-size: 1.05rem;
}

.workspace-card p {
  color: #5d687b;
  line-height: 1.55;
}

.workspace-card-eyebrow {
  color: #697386;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6e798b;
  font-size: 0.8rem;
  font-weight: 700;
}

.workspace-state {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.06);
}

.workspace-card.tone-accent {
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.14), transparent 38%),
    linear-gradient(180deg, #fff9f9 0%, #fff 100%);
}

.workspace-card.tone-blue {
  background:
    radial-gradient(circle at top right, rgba(154, 182, 202, 0.24), transparent 38%),
    linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.workspace-card.tone-ink {
  background:
    radial-gradient(circle at top right, rgba(11, 18, 32, 0.1), transparent 36%),
    linear-gradient(180deg, #f8f9fb 0%, #fff 100%);
}

.activity-feed,
.stack-list,
.tag-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-item,
.stack-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.stack-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.activity-item:last-child,
.stack-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-time {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(229, 35, 34, 0.1);
  color: #d62423;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-item strong,
.stack-row strong,
.empty-state strong {
  display: block;
  margin-bottom: 6px;
}

.activity-item p,
.stack-row p,
.empty-state p {
  color: #5f6b7d;
  line-height: 1.55;
}

.data-table-shell {
  overflow-x: auto;
}

.app-shell table {
  width: 100%;
  border-collapse: collapse;
}

.app-shell th,
.app-shell td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.app-shell th {
  color: #7b8696;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.app-shell td {
  color: #0b1220;
}

.empty-state {
  padding: 18px;
  border-radius: 22px;
  background: rgba(11, 18, 32, 0.04);
}

.app-shell .pill {
  background: rgba(11, 18, 32, 0.06);
  color: #0b1220;
}

.app-shell .pill-ok {
  background: rgba(31, 138, 89, 0.12);
  color: #1c7f52;
}

.app-shell .pill-muted {
  background: rgba(11, 18, 32, 0.06);
  color: #677386;
}

.tag-list li {
  display: flex;
  align-items: center;
}

.tag-list code {
  background: rgba(11, 18, 32, 0.06);
  color: #0b1220;
}

.stack-list.compact {
  gap: 12px;
}

@media (max-width: 1280px) {
  .overview-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .quick-action-grid,
  .workspace-card-grid,
  .summary-grid,
  .overview-grid-triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .overview-sidebar {
    position: static;
    min-height: auto;
  }

  .overview-grid,
  .overview-hero,
  .overview-grid-triple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .overview-main {
    padding: 18px;
  }

  .overview-topbar,
  .overview-topbar-actions {
    align-items: start;
    flex-direction: column;
  }

  .overview-topbar-actions,
  .overview-user,
  .app-shell .ghost-button {
    width: 100%;
  }

  .quick-action-grid,
  .workspace-card-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-side-stats {
    grid-template-columns: 1fr;
  }

  .activity-item,
  .stack-row {
    grid-template-columns: 1fr;
  }
}
