/* Provider-Dashboard — Design recycled aus Prozessdeck-App, schlanker Cut */

:root {
  --bg: oklch(0.992 0.002 270);
  --bg-elev: oklch(1 0 0);
  --bg-sunken: oklch(0.975 0.003 270);
  --line: oklch(0.925 0.004 270);
  --line-strong: oklch(0.86 0.006 270);
  --ink: oklch(0.18 0.014 270);
  --ink-2: oklch(0.40 0.012 270);
  --ink-3: oklch(0.58 0.010 270);
  --ink-4: oklch(0.74 0.008 270);

  --accent: #1E40AF;
  --accent-2: #2952C2;
  --accent-tint: #EEF2FF;
  --accent-ink: #1E3A8A;

  --ok: oklch(0.62 0.14 155);
  --ok-tint: oklch(0.96 0.035 155);
  --warn: oklch(0.70 0.15 70);
  --warn-tint: oklch(0.96 0.045 70);
  --err: oklch(0.58 0.20 22);
  --err-tint: oklch(0.96 0.035 22);

  --r-sm: 7px;
  --r: 12px;
  --r-lg: 16px;

  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-card: 0 1px 0 rgba(17,17,27,.02), 0 1px 2px rgba(17,17,27,.04);
  --shadow-pop: 0 1px 0 rgba(17,17,27,.03), 0 12px 32px rgba(17,17,27,.10), 0 2px 6px rgba(17,17,27,.04);
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;        /* iOS: Layout-Viewport nicht aufblähen lassen */
  max-width: 100vw;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

[hidden] { display: none !important; }

/* ─── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background 120ms, border-color 120ms, transform 80ms;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(30,64,175,.18);
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-danger {
  background: var(--err);
  color: #fff;
}
.btn-danger:hover { background: oklch(0.50 0.20 22); }

/* ─── Auth-Page ────────────────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(165deg, #0F1F5C 0%, #1E40AF 100%);
}

.auth-card {
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-pop);
  width: 360px;
  max-width: calc(100vw - 40px);
}

.auth-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  margin-bottom: 28px;
}
.auth-logo {
  height: 28px;
  width: auto;
}
.brand-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.auth-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 22px;
  line-height: 1.5;
}

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-error {
  padding: 9px 12px;
  background: var(--err-tint);
  color: var(--err);
  border-radius: var(--r-sm);
  font-size: 13px;
}

.field { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.field-input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 100ms, box-shadow 100ms;
}
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

/* ─── App-Shell ────────────────────────────────────────────────────── */

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

.topbar {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.topbar-logo {
  height: 24px;
  width: auto;
  display: block;
}
.topbar-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  padding: 3px 8px;
  background: var(--bg-sunken);
  border-radius: 4px;
  border: 1px solid var(--line);
}
.topbar-right {
  display: flex; align-items: center; gap: 14px;
}
.user-display {
  font-size: 13px;
  color: var(--ink-3);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  width: 100%;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0;
}

/* ─── Tenants-Liste ───────────────────────────────────────────────── */

.tenants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.is-loading {
  padding: 32px;
  text-align: center;
  color: var(--ink-3);
}

.tenant-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  transition: border-color 120ms, box-shadow 120ms;
}
.tenant-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.tenant-main {
  min-width: 0;
}
.tenant-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
}
.tenant-sub {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill-ok    { background: var(--ok-tint); color: oklch(0.42 0.14 155); }
.pill-warn  { background: var(--warn-tint); color: oklch(0.45 0.15 65); }
.pill-err   { background: var(--err-tint); color: var(--err); }
.pill-idle  { background: var(--bg-sunken); color: var(--ink-3); border-color: var(--line); }
.pill-blue  { background: var(--accent-tint); color: var(--accent); }

.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tenant-plan-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ─── Detail-Panel (Slide-In) ────────────────────────────────────── */

.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,15,30,0.45);
}
.detail-content {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 540px;
  max-width: 100vw;
  background: var(--bg-elev);
  box-shadow: -8px 0 24px rgba(0,0,0,0.08);
  overflow-y: auto;
  padding: 28px 32px;
  animation: slide-in 220ms ease-out;
}
@keyframes slide-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.detail-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 0;
  font-size: 22px;
  color: var(--ink-3);
}
.detail-close:hover {
  background: var(--bg-sunken);
  color: var(--ink);
}

.detail-section {
  margin: 22px 0;
}
.detail-h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 0 0 10px;
}

.kv-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px 14px;
  font-size: 13px;
}
.kv-grid dt {
  color: var(--ink-3);
}
.kv-grid dd {
  color: var(--ink);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  word-break: break-all;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ─── Settings-Modal ──────────────────────────────────────────────── */

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.settings-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  width: 480px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fade-in 200ms ease-out;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.settings-head h2 { font-size: 16px; font-weight: 650; margin: 0; }

.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  gap: 4px;
}
.settings-tab {
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.settings-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.settings-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.settings-panel { display: none; padding: 22px 24px; }
.settings-panel.is-active { display: block; }

.settings-section { margin-bottom: 16px; }
.settings-h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.settings-help {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.5;
}

.settings-feedback {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-bottom: 14px;
}
.settings-feedback.ok  { background: var(--ok-tint); color: oklch(0.42 0.14 155); }
.settings-feedback.err { background: var(--err-tint); color: var(--err); }

.totp-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-sunken);
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}
.totp-status-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
}
.totp-status.is-active .totp-status-icon { background: var(--ok-tint); color: oklch(0.42 0.14 155); }
.totp-status.is-inactive .totp-status-icon { background: var(--bg-elev); color: var(--ink-3); }
.totp-status-text strong { display: block; font-size: 13px; }
.totp-status-text span { font-size: 12px; color: var(--ink-3); }

.totp-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin: 14px 0;
}
.totp-qr-wrap canvas, .totp-qr-wrap img { max-width: 200px; height: auto; }

.totp-secret-fallback {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
  word-break: break-all;
  padding: 8px;
  background: var(--bg-sunken);
  border-radius: 4px;
  margin-top: 8px;
}

.backup-codes {
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px;
  margin: 14px 0;
}
.backup-codes-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.backup-codes-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  margin: 0;
}

/* ─── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .topbar-inner, .page { padding-left: 16px; padding-right: 16px; }
  .tenant-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .detail-content { width: 100vw; padding: 22px 18px; }

  /* Settings-Modal full-screen auf Mobile */
  .settings-modal { padding: 0; }
  .settings-card {
    width: 100%; height: 100%; max-height: 100%;
    border-radius: 0;
  }
}

/* Touch-Geräte: Settings-Modal full-screen */
@media (pointer: coarse) {
  .settings-modal { padding: 0 !important; }
  .settings-card {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
  }
  .field-input {
    min-height: 44px !important;
    font-size: 16px !important;
  }
}

/* ─── Topbar-Nav-Tabs (View-Switcher) ─────────────────────────────── */
.topbar-nav {
  display: flex;
  gap: 4px;
  margin-left: 24px;
  flex: 1;
}
.topbar-tab {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}
.topbar-tab:hover {
  background: var(--bg-elev, #f5f5f5);
  color: var(--ink-2);
}
.topbar-tab.is-active {
  background: var(--bg-elev, #f0f0f0);
  color: var(--ink, #111);
  font-weight: 600;
}

/* Page-Views innerhalb von <main class="page"> */
.page-view { display: block; }
.page-view[hidden] { display: none; }
.page-head-actions { display: flex; gap: 8px; align-items: center; }
.page-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* Inline-Create-Panel (Slide-Down statt Modal) */
.promo-create-panel {
  margin: 20px 0 8px;
  background: var(--bg-elev, #fafafa);
  border: 1px solid var(--ink-5, #e5e7eb);
  border-radius: 12px;
  padding: 20px 24px 24px;
}
.promo-create-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.promo-create-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.promo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.promo-form-help {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 14px 0 8px;
  line-height: 1.5;
}
.promo-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

/* ─── Promo-Codes-Tabelle ─────────────────────────────────────────── */
.promo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #fff;
  border: 1px solid var(--ink-5, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
}
.promo-table th,
.promo-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ink-5, #e5e7eb);
}
.promo-table th {
  font-weight: 600;
  color: var(--ink-3);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-elev, #fafafa);
}
.promo-table tr.is-archived { opacity: 0.5; }
.promo-table code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: oklch(0.96 0.005 270);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}
.promo-empty,
.promo-error,
.promo-ok {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin: 8px 0;
}
.promo-empty { background: var(--bg-elev, #fafafa); color: var(--ink-3); }
.promo-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.promo-ok    { background: oklch(0.96 0.04 150); border: 1px solid oklch(0.85 0.08 150); color: oklch(0.32 0.10 150); }
.promo-archived-tag {
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
}
.promo-create-summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 0;
  user-select: none;
}
.promo-create-summary::-webkit-details-marker { display: none; }
.promo-create-summary::before { content: "▸ "; margin-right: 4px; }
.promo-create-details[open] .promo-create-summary::before { content: "▾ "; }

@media (max-width: 720px) {
  .topbar-nav { margin-left: 8px; gap: 0; }
  .topbar-tab { padding: 6px 10px; font-size: 12.5px; }
  .promo-form-grid { grid-template-columns: 1fr; }
  .promo-create-panel { padding: 16px 14px 18px; }
  .promo-table { display: block; overflow-x: auto; white-space: nowrap; }
  .promo-table th, .promo-table td { padding: 6px 8px; font-size: 12px; }
}

/* ─── LinkedIn-Marketing-Tab ─────────────────────────────────────── */
.li-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 24px;
}
.li-card {
  background: #fff;
  border: 1px solid var(--ink-5, #e5e7eb);
  border-radius: 12px;
  padding: 20px 22px;
}
.li-card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.li-kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 12px;
  margin: 0 0 12px;
  font-size: 13.5px;
}
.li-kv dt { color: var(--ink-3); }
.li-kv dd { margin: 0; color: var(--ink); }
.li-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.li-connect { text-align: left; }
.li-connect h3 { font-size: 18px; }
.li-connect p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0 0 18px; max-width: 540px; }

.li-section-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}
.li-empty {
  color: var(--ink-3);
  font-size: 13.5px;
  font-style: italic;
  padding: 12px 0;
}
.li-warn {
  background: oklch(0.96 0.05 70);
  border: 1px solid oklch(0.85 0.10 70);
  color: oklch(0.32 0.12 70);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0 0 16px;
  font-size: 13px;
}
.li-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
}

.li-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.li-post {
  background: #fff;
  border: 1px solid var(--ink-5, #e5e7eb);
  border-radius: 10px;
  padding: 16px 18px;
}
.li-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.li-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-elev, #f5f5f5);
  color: var(--ink-3);
}
.li-badge.is-scheduled { background: oklch(0.94 0.04 250); color: oklch(0.35 0.12 255); }
.li-badge.is-posted    { background: oklch(0.94 0.04 150); color: oklch(0.32 0.10 150); }
.li-badge.is-failed    { background: #fef2f2; color: #991b1b; }
.li-badge.is-skipped   { background: var(--bg-elev, #f5f5f5); color: var(--ink-3); }
.li-bucket-tag {
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--bg-elev, #fafafa);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.li-post-date {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: auto;
}
.li-post-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-elev, #fafafa);
  padding: 12px 14px;
  border-radius: 6px;
  white-space: normal;
}
.li-post-stats {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.li-post-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.li-buckets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 24px;
}
.li-bucket {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--ink-5, #e5e7eb);
  border-radius: 10px;
  cursor: pointer;
}
.li-bucket input { margin-top: 3px; flex-shrink: 0; }
.li-bucket-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.li-bucket-head strong { font-size: 13.5px; }
.li-bucket-weight { font-size: 11px; color: var(--ink-3); font-family: ui-monospace, monospace; }
.li-bucket-desc { font-size: 12px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 720px) {
  .li-grid, .li-buckets { grid-template-columns: 1fr; }
  .li-kv { grid-template-columns: 1fr; }
  .li-kv dt { margin-top: 6px; font-size: 12px; }
}

/* ─── Comp-Upgrade-Modal (Tenant zur Vollversion) ─────────────────── */
.comp-upgrade-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.comp-upgrade-modal {
  background: #fff;
  border-radius: 12px;
  padding: 28px 30px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 12px 32px rgba(17,17,27,.18);
}
.comp-upgrade-modal h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
}
.comp-upgrade-modal p {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.comp-upgrade-modal code {
  background: var(--bg-sunken);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.comp-upgrade-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
