/* Mansio SaaS visual system rebuilt from the delivered redesign package. */

:root {
  --defy: #9b51e0;
  --pursue: #ff3b30;
  --shape: #34c759;
  --thrive: #ff9f0a;
  --impact: #0a84ff;
  --c-blue: #0a84ff;
  --c-blue-tint: #e5f1ff;
  --c-green: #34c759;
  --c-green-tint: #e4f8ea;
  --c-orange: #ff9f0a;
  --c-orange-tint: #fff1dc;
  --c-red: #ff3b30;
  --c-red-tint: #ffe6e4;
  --c-purple: #af52de;
  --c-purple-tint: #f5e8fb;
  --c-cyan: #32ade6;
  --c-cyan-tint: #e3f4fc;
  --c-indigo: #5856d6;
  --c-indigo-tint: #e8e8fa;
  --bg: #eef1f5;
  --bg-soft: #f7faff;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: rgba(118, 118, 128, 0.08);
  --text: #0b0f17;
  --text-2: #6b7685;
  --text-3: #98a1b0;
  --border: rgba(11, 15, 23, 0.08);
  --border-strong: rgba(11, 15, 23, 0.13);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 26px rgba(16, 28, 52, 0.08);
  --shadow-lg: 0 22px 54px rgba(16, 28, 52, 0.14);
  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --admin-bg: #0a0e16;
  --admin-surface: #161d2b;
  --admin-surface-2: #1d2636;
  --admin-text: #eaf2f5;
  --admin-text-2: #9dacbe;
  --admin-text-3: #62718a;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-accent: #15cfe8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 12% 0%, rgba(10, 132, 255, 0.12), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(52, 199, 89, 0.09), transparent 30%),
    linear-gradient(180deg, #f9fbff, #eef1f5 60%);
}

body.admin-theme {
  color: var(--admin-text);
  background: radial-gradient(circle at 85% -5%, rgba(21, 207, 232, 0.1), transparent 40%), var(--admin-bg);
}

body.app-theme {
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: 0;
}

input::placeholder,
textarea::placeholder {
  color: #b4bcc8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.15);
}

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

thead th {
  text-align: left;
  padding: 10px 16px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}

tbody td {
  padding: 14px 16px;
  border-top: 0.5px solid rgba(60, 60, 67, 0.1);
  font-size: 14px;
  color: var(--text);
}

body.admin-theme tbody td,
body.admin-theme thead th {
  border-color: rgba(255, 255, 255, 0.08);
}

body.admin-theme tbody td {
  color: var(--admin-text-2);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-3);
}

body.admin-theme .muted {
  color: var(--admin-text-3);
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-meta {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

body.admin-theme .brand-meta {
  color: var(--admin-text-3);
}

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

body.admin-theme .section-label {
  color: var(--admin-text-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.22);
}

.btn-secondary {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
}

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.icon-tile.sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.tone-blue {
  background: var(--c-blue-tint);
  color: var(--c-blue);
}

.tone-green {
  background: var(--c-green-tint);
  color: var(--c-green);
}

.tone-orange {
  background: var(--c-orange-tint);
  color: #e68600;
}

.tone-purple {
  background: var(--c-purple-tint);
  color: var(--c-purple);
}

.tone-cyan {
  background: var(--c-cyan-tint);
  color: #1e9bd7;
}

.tone-indigo {
  background: var(--c-indigo-tint);
  color: var(--c-indigo);
}

.tone-red {
  background: var(--c-red-tint);
  color: #d1453b;
}

.marketing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(160%);
  background: rgba(249, 251, 255, 0.82);
  border-bottom: 1px solid rgba(11, 15, 23, 0.06);
}

.marketing-header-inner,
.marketing-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.marketing-header-inner {
  padding: 16px 0;
}

.marketing-nav,
.marketing-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.marketing-nav a,
.marketing-actions a {
  color: var(--text-2);
}

.marketing-nav a.active,
.marketing-actions a.active {
  color: var(--text);
}

.marketing-user-pill {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-main {
  padding-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  padding: 64px 0 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--c-blue-tint);
  color: #0759b8;
  font-size: 12.5px;
  font-weight: 700;
}

.hero-title {
  margin: 22px 0;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-copy {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 34px;
}

.hero-stats strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 13px;
  color: var(--text-3);
}

.floating-preview {
  position: relative;
  padding: 8px 0;
}

.floating-toast,
.floating-card,
.floating-subcard,
.soft-card,
.feature-card,
.admin-card,
.overview-card,
.surface-card {
  background: var(--surface);
  border: 1px solid rgba(11, 15, 23, 0.06);
  box-shadow: var(--shadow-sm), 0 4px 14px rgba(16, 24, 40, 0.04);
}

.floating-toast {
  position: absolute;
  top: -16px;
  left: -30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 15px;
  box-shadow: 0 18px 40px rgba(16, 28, 52, 0.18);
}

.floating-card {
  position: relative;
  z-index: 2;
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 34px 74px rgba(16, 28, 52, 0.2);
}

.floating-subcard {
  position: relative;
  z-index: 1;
  margin: -12px 0 0 36px;
  padding: 18px 20px;
  border-radius: 20px;
  box-shadow: 0 24px 54px rgba(16, 28, 52, 0.16);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-ok,
.st-satisfied,
.st-safe {
  color: #148b45;
  background: var(--c-green-tint);
}

.status-alert,
.st-last_chance {
  color: #d07f00;
  background: var(--c-orange-tint);
}

.status-danger,
.st-overdue {
  color: #d1453b;
  background: var(--c-red-tint);
}

.status-neutral,
.st-no_data {
  color: var(--text-2);
  background: var(--surface-2);
}

.section {
  padding: 32px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

.section-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

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

.feature-card {
  padding: 26px;
  border-radius: 24px;
}

.feature-card h3 {
  margin: 18px 0 7px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.016em;
}

.feature-card p,
.feature-card li {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.feature-card ul {
  margin: 0 0 24px;
  padding-left: 18px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: #3a4452;
  font-size: 14.5px;
  font-weight: 600;
}

.marketing-footer {
  border-top: 1px solid rgba(11, 15, 23, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.marketing-footer-inner {
  padding: 34px 0;
  flex-wrap: wrap;
}

.marketing-footer-copy {
  color: var(--text-3);
  font-size: 13px;
}

.marketing-page {
  padding: 36px 0 64px;
}

.marketing-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.soft-card {
  padding: 24px;
  border-radius: 22px;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 34px;
  border-radius: 26px;
  border: 1px solid rgba(11, 15, 23, 0.06);
  background: #fff;
  box-shadow: var(--shadow-sm), var(--shadow-lg);
}

.auth-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.auth-head img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.022em;
}

.auth-card p {
  margin: 0 0 24px;
  color: var(--text-3);
  font-size: 14.5px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: #fff;
  font-size: 15px;
  color: var(--text);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #b4bcc8;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(11, 15, 23, 0.08);
}

.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 90px;
  color: var(--text-2);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 132, 255, 0.15);
  border-top-color: var(--c-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.alert-error {
  background: var(--c-red-tint);
  color: #bf4338;
}

.alert-ok,
.alert-success {
  background: var(--c-green-tint);
  color: #148b45;
}

.alert-info {
  background: var(--c-blue-tint);
  color: #0759b8;
}

.session-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-2);
  margin-bottom: 18px;
}

.session-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.session-card p {
  margin: 0 0 14px;
  font-size: 13px;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  grid-template-rows: 84px minmax(0, 1fr);
  min-height: 100vh;
  overflow: hidden;
}

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

.workspace-sidebar {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid rgba(11, 15, 23, 0.08);
}

.workspace-shell.admin .workspace-sidebar {
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
}

.workspace-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(11, 15, 23, 0.08);
}

.workspace-shell.admin .workspace-sidebar-head {
  border-bottom-color: var(--admin-border);
}

.workspace-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 14px;
  overflow-y: auto;
}

.workspace-sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.workspace-sidebar-nav button.active {
  background: #e8f2ff;
  color: var(--c-blue);
}

.workspace-shell.admin .workspace-sidebar-nav button {
  color: var(--admin-text-2);
}

.workspace-shell.admin .workspace-sidebar-nav button.active {
  background: rgba(21, 207, 232, 0.14);
  color: var(--admin-accent);
}

.workspace-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px;
  border-top: 1px solid rgba(11, 15, 23, 0.08);
}

.workspace-shell.admin .workspace-sidebar-foot {
  border-top-color: var(--admin-border);
}

.sidebar-subcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 15px;
  background: var(--surface-2);
}

.workspace-shell.admin .sidebar-subcard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-header {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid rgba(11, 15, 23, 0.08);
}

.workspace-shell.admin .workspace-header {
  background: var(--admin-surface);
  border-bottom-color: var(--admin-border);
}

.workspace-header h1 {
  margin: 4px 0 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.05;
}

.workspace-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  overflow-y: auto;
  padding: 24px 28px 48px;
  background: var(--bg);
}

.workspace-shell.admin .workspace-main {
  background: transparent;
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.identity-switch {
  display: flex;
  align-items: center;
  gap: 9px;
}

.identity-switch-list {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: #edf0f4;
}

.identity-switch-list button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.identity-switch-list button.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.account-chip {
  position: relative;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 13px;
  border-radius: 13px;
  background: var(--surface-2);
  cursor: pointer;
}

.account-trigger-copy {
  text-align: right;
  line-height: 1.15;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0a84ff, #5856d6);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 248px;
  padding: 8px;
  border: 1px solid rgba(11, 15, 23, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 28, 52, 0.16);
}

.account-menu-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 12px;
}

.account-menu-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(11, 15, 23, 0.07);
}

.account-menu-items button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.account-menu-items button:hover {
  background: var(--surface-2);
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid-auto-2,
.grid-auto-3,
.grid-auto-4 {
  display: grid;
  gap: 16px;
}

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

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

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

.surface-card {
  padding: 24px;
  border-radius: 22px;
}

.overview-ribbon {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
}

.overview-ribbon-copy {
  flex: 1;
  min-width: 0;
}

.overview-ribbon-title {
  margin-top: 3px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.map-card {
  padding: 24px 24px 18px;
  border-radius: 22px;
}

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

.metric-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 14px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border-radius: 20px;
}

.metric-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ring-gauge {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 16px auto 12px;
}

.ring-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.kpi-strip {
  display: flex;
  gap: 10px;
}

.kpi-strip > div,
.stat-box {
  flex: 1;
  padding: 15px 8px;
  border-radius: 14px;
  background: var(--surface-3);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-box span {
  font-size: 12px;
  color: var(--text-3);
}

.warning-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--c-orange-tint);
}

.warning-banner svg {
  color: #e68600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.data-table-card {
  padding: 8px;
  overflow: hidden;
}

.data-table-card > h3,
.table-title {
  padding: 16px 16px 8px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.timeline-list,
.list-stack {
  display: flex;
  flex-direction: column;
}

.timeline-row {
  display: flex;
  gap: 13px;
  padding-bottom: 20px;
}

.timeline-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-dot {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: rgba(11, 15, 23, 0.08);
  margin-top: 6px;
}

.admin-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
}

.admin-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.admin-metric {
  padding: 20px;
  border-radius: 18px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
}

.admin-metric strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--admin-text);
}

.admin-metric span {
  color: var(--admin-text-3);
  font-size: 13px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.plan-badge.free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--admin-text-2);
}

.plan-badge.pro {
  background: rgba(10, 132, 255, 0.16);
  color: #5ab0ff;
}

.plan-badge.family {
  background: rgba(175, 82, 222, 0.18);
  color: #c98ae8;
}

.keybox {
  padding: 16px;
  border-radius: 16px;
  background: rgba(21, 207, 232, 0.08);
  border: 1px solid rgba(21, 207, 232, 0.18);
  color: var(--admin-text);
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-all;
}

.kv-list {
  display: flex;
  flex-direction: column;
}

.kv-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 0.5px solid rgba(60, 60, 67, 0.12);
}

.kv-row:first-child {
  border-top: 0;
}

.kv-row span {
  color: var(--text-3);
  font-size: 13px;
}

.kv-row strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

body.admin-theme .kv-row {
  border-color: rgba(255, 255, 255, 0.08);
}

body.admin-theme .kv-row span {
  color: var(--admin-text-3);
}

body.admin-theme .kv-row strong {
  color: var(--admin-text);
}

.empty-state {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px dashed rgba(11, 15, 23, 0.12);
  color: var(--text-2);
  text-align: center;
}

.dropdown-divider {
  width: 1px;
  height: 30px;
  background: rgba(11, 15, 23, 0.1);
}

.scroll-soft::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

.scroll-soft::-webkit-scrollbar-thumb {
  background: rgba(11, 15, 23, 0.15);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

body.admin-theme .scroll-soft::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid transparent;
  background-clip: padding-box;
}

@media (max-width: 1120px) {
  .hero-grid,
  .marketing-split,
  .grid-auto-2,
  .grid-auto-3,
  .grid-auto-4,
  .metric-box-grid,
  .admin-metric-grid {
    grid-template-columns: 1fr;
  }

  .workspace-shell,
  .workspace-shell.admin {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .workspace-sidebar {
    grid-row: 1;
    grid-column: 1;
    border-right: 0;
    border-bottom: 1px solid rgba(11, 15, 23, 0.08);
  }

  .workspace-shell.admin .workspace-sidebar {
    border-bottom-color: var(--admin-border);
  }

  .workspace-header,
  .workspace-main {
    grid-column: 1;
  }

  .workspace-header {
    grid-row: 2;
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-main {
    grid-row: 3;
    padding: 20px;
  }

  .workspace-sidebar-nav {
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .wrap {
    width: min(100%, calc(100% - 28px));
  }

  .marketing-header-inner,
  .marketing-footer-inner,
  .top-tools,
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .marketing-nav,
  .marketing-actions {
    flex-wrap: wrap;
    gap: 14px;
  }

  .auth-main {
    padding: 28px 14px 40px;
  }

  .auth-card {
    padding: 24px;
  }

  .workspace-sidebar-head,
  .workspace-sidebar-foot,
  .workspace-sidebar-nav,
  .workspace-header,
  .workspace-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .identity-switch {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .identity-switch-list {
    width: 100%;
    overflow-x: auto;
  }

  .account-menu {
    right: auto;
    left: 0;
    width: min(248px, calc(100vw - 28px));
  }
}

/* ============================================================
   Top Navigation (for marketing pages)
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px) saturate(180%);
  background: rgba(244, 247, 251, .8);
  border-bottom: 1px solid rgba(11, 15, 23, .06);
  font-family: var(--font-sans);
}

.topnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 32px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0B0F17;
  justify-self: start;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.brand span {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  justify-self: center;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 10px;
  transition: background .15s, color .15s;
}

.nav-link.active {
  background: rgba(10, 132, 255, .1);
  color: #0A84FF;
}

.nav-link:not(.active) {
  color: #5A6472;
}

.lang-btn, .login-link {
  border: 1px solid rgba(11, 15, 23, .1);
  background: #fff;
  cursor: pointer;
  color: #3A4452;
  padding: 7px 12px;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.login-link {
  padding: 8px 14px;
  border-radius: 11px;
}

.get-started-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: #0A84FF;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
