/* ============================================================
   GEYIKAPP — PREMIUM DESIGN SYSTEM
   Apple-grade, SaaS-quality, corporate & trustworthy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* Core palette */
  --ink:         #09090b;
  --ink-80:      rgba(9,9,11,0.80);
  --ink-60:      rgba(9,9,11,0.60);
  --ink-40:      rgba(9,9,11,0.40);
  --ink-12:      rgba(9,9,11,0.12);
  --ink-08:      rgba(9,9,11,0.08);
  --ink-05:      rgba(9,9,11,0.05);
  --ink-03:      rgba(9,9,11,0.03);

  --white:       #ffffff;
  --white-96:    rgba(255,255,255,0.96);
  --white-90:    rgba(255,255,255,0.90);
  --white-80:    rgba(255,255,255,0.80);
  --white-60:    rgba(255,255,255,0.60);
  --white-12:    rgba(255,255,255,0.12);
  --white-08:    rgba(255,255,255,0.08);

  --bg:          #f4f5f7;
  --bg-soft:     #f9fafb;
  --surface:     rgba(255,255,255,0.88);
  --surface-hi:  rgba(255,255,255,0.97);

  --night:       #0c0d10;
  --night-soft:  #13151a;
  --night-muted: rgba(255,255,255,0.56);
  --night-dim:   rgba(255,255,255,0.32);

  /* Accent */
  --accent:      #1a1a2e;
  --accent-blue: #2563eb;
  --green:       #16a34a;
  --red:         #dc2626;
  --amber:       #d97706;

  /* Type */
  --text:        var(--ink);
  --muted:       var(--ink-60);
  --muted-strong:var(--ink-80);

  /* Radius */
  --r-full: 9999px;
  --r-2xl:  28px;
  --r-xl:   22px;
  --r-lg:   18px;
  --r-md:   14px;
  --r-sm:   10px;

  /* Shadow */
  --sh-xl:  0 32px 80px rgba(9,9,11,0.10), 0 8px 24px rgba(9,9,11,0.06);
  --sh-lg:  0 20px 48px rgba(9,9,11,0.08), 0 4px 16px rgba(9,9,11,0.04);
  --sh-md:  0 10px 28px rgba(9,9,11,0.06);
  --sh-sm:  0 4px 12px rgba(9,9,11,0.04);
  --sh-btn: 0 2px 8px rgba(9,9,11,0.14), 0 1px 2px rgba(9,9,11,0.10);

  /* Layout */
  --container:      1240px;
  --container-wide: 1400px;
  --nav-h:          72px;

  /* Motion */
  --ease:    cubic-bezier(0.16,1,0.3,1);
  --ease-in: cubic-bezier(0.4,0,1,1);
  --t:       160ms;
  --t-md:    240ms;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: 'Geist', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,255,255,0.7) 0%, transparent 100%);
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; padding: 0; }

/* ── Shell ──────────────────────────────────────────────────── */
.site-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 56px;
}
.site-shell-wide,
.site-shell-panel {
  width: min(var(--container-wide), calc(100% - 32px));
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 20px;
  margin-bottom: 24px;
  border-radius: var(--r-full);
  background: var(--white-96);
  border: 1px solid var(--ink-08);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--white-60) inset;
  backdrop-filter: blur(20px) saturate(1.4);
}

.topbar-home {
  background: rgba(255,255,255,0.94);
}

.panel-topbar {
  border-radius: var(--r-2xl);
  height: 68px;
}

/* ── Brand ──────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #09090b 0%, #3f3f46 100%);
  box-shadow: 0 4px 12px rgba(9,9,11,0.24), 0 0 0 1px rgba(255,255,255,0.08) inset;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: '';
  position: absolute;
  top: 6px; left: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  box-shadow: 12px 12px 0 rgba(255,255,255,0.2);
}

.brand-stack {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: var(--ink-05);
}

.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  box-shadow: var(--sh-btn);
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--ink-80) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(9,9,11,0.20);
}

.nav-logout {
  border: 1px solid var(--ink-08) !important;
  color: var(--muted) !important;
  margin-left: 4px;
}

/* ── Menu toggle ────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-lg);
  background: var(--ink-05);
  border: 1px solid var(--ink-08);
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-md) var(--ease);
}

/* ── Eyebrow ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--ink-05);
  border: 1px solid var(--ink-08);
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease),
    border-color var(--t) var(--ease),
    opacity var(--t) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: var(--sh-btn);
}

.button-primary:hover {
  background: #27272a;
  box-shadow: 0 8px 24px rgba(9,9,11,0.22);
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink-12);
  box-shadow: var(--sh-sm);
}

.button-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--ink-12);
  box-shadow: var(--sh-md);
}

.button.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.full-width { width: 100%; }

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

/* ── Status pills & badges ──────────────────────────────────── */
.status-pill,
.badge,
.deliverable-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--ink-05);
  border: 1px solid var(--ink-08);
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Surface cards baseline ─────────────────────────────────── */
.topbar,
.panel-sidebar,
.sidebar-card,
.feature-panel,
.metric-card,
.trust-card,
.premium-card,
.workflow-step,
.page-hero,
.detail-hero,
.content-card,
.form-card,
.info-panel,
.contact-item,
.footer,
.workspace-panel,
.modal-card,
.table-card,
.studio-window,
.floating-stat,
.service-brief-card,
.deliverable-card,
.owned-service-card,
.request-compact-card,
.admin-request-card,
.list-row,
.mini-card,
.hero-inline-stat,
.workspace-shell,
.workspace-card,
.hero-proof-card {
  background: var(--white-96);
  border: 1px solid var(--ink-08);
  box-shadow: var(--sh-lg);
}

/* ── Spacing blocks ─────────────────────────────────────────── */
.section,
.hero-premium,
.page-hero,
.detail-hero,
.footer {
  margin-bottom: 20px;
}

/* ── Page hero ──────────────────────────────────────────────── */
.page-hero,
.detail-hero {
  border-radius: var(--r-2xl);
  padding: 40px;
  background: linear-gradient(160deg, var(--white-96) 0%, rgba(248,249,251,0.96) 100%);
}

.page-hero.narrow { max-width: 960px; }

.page-hero h1,
.detail-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.page-hero p, .detail-hero p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Hero premium ───────────────────────────────────────────── */
.hero-premium {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: 28px;
  align-items: center;
  border-radius: var(--r-2xl);
  padding: 44px;
  background: linear-gradient(160deg, var(--white-96) 0%, rgba(246,248,250,0.95) 100%);
}

.hero-premium-immersive { min-height: 720px; }

.hero-copy,
.workspace-hero-copy {
  display: grid;
  gap: 20px;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  line-height: 0.93;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.hero-lead {
  color: var(--muted);
  line-height: 1.72;
  max-width: 520px;
}

.hero-inline-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.hero-inline-stat {
  padding: 18px 20px;
  border-radius: var(--r-xl);
}

.hero-inline-stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-inline-stat span {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Hero next ──────────────────────────────────────────────── */
.hero-premium-next {
  gap: 36px;
  padding: 44px;
  border-radius: 36px;
}

.hero-copy-next {
  align-content: center;
  gap: 22px;
}

.hero-copy-next h1 {
  max-width: 600px;
  font-size: clamp(2.8rem, 4.4vw, 5rem);
  line-height: 0.93;
  letter-spacing: -0.08em;
}

.hero-copy-next .hero-lead {
  max-width: 520px;
  font-size: 1rem;
}

.hero-stage { position: relative; min-height: 580px; }
.hero-stage-next { min-height: 100%; }

/* ── Workspace shell ────────────────────────────────────────── */
.workspace-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,0.98) 0%, rgba(245,247,250,0.96) 100%);
}

.workspace-shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.workspace-shell-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-12);
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #22c55e; }

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(230px,0.88fr);
  gap: 14px;
}

/* ── Workspace editor ───────────────────────────────────────── */
.workspace-editor {
  min-height: 400px;
  padding: 16px;
  border-radius: 22px;
  background: var(--night);
  color: #e8edf4;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 44px rgba(9,9,11,0.22);
}

.workspace-editor-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 16px;
}

.workspace-tab {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: 0.73rem;
  font-weight: 600;
  font-family: 'Geist Mono', monospace;
}

.workspace-tab.is-active {
  background: rgba(255,255,255,0.13);
  color: #fff;
}

.workspace-editor-body {
  display: grid;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.75;
}

.code-line-no {
  display: inline-block;
  width: 26px;
  color: rgba(255,255,255,0.22);
  user-select: none;
}

.code-key   { color: #7dd3fc; }
.code-var   { color: #e2e8f0; }
.code-op    { color: rgba(255,255,255,0.4); }
.code-string{ color: #fcd34d; }

/* ── Workspace side ─────────────────────────────────────────── */
.workspace-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.workspace-card,
.workspace-chip,
.workspace-service {
  padding: 16px;
  border-radius: 18px;
  background: var(--white-96);
  border: 1px solid var(--ink-08);
  box-shadow: var(--sh-sm);
}

.workspace-card-highlight {
  background: linear-gradient(160deg, var(--white-96), rgba(248,250,252,0.96));
}

.workspace-card span,
.workspace-chip span,
.workspace-service span {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.workspace-card strong,
.workspace-chip strong,
.workspace-service strong {
  display: block;
  margin-top: 8px;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.workspace-card p,
.workspace-service p {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

.workspace-log {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--night-soft);
  color: #e8edf4;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 16px 32px rgba(9,9,11,0.18);
}

.workspace-chip-row,
.workspace-service-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}

.panel-kicker,
.code-caption {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Geist Mono', monospace;
}

.terminal-lines {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
}

.terminal-ok   { display: inline-block; min-width: 38px; margin-right: 8px; font-weight: 700; color: #4ade80; }
.terminal-pending { display: inline-block; min-width: 38px; margin-right: 8px; font-weight: 700; color: #fbbf24; }

.signal-meter {
  position: relative;
  overflow: hidden;
  height: 5px;
  margin-top: 14px;
  border-radius: var(--r-full);
  background: var(--ink-08);
}

.signal-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
  padding: 32px;
  border-radius: var(--r-2xl);
}

.section-soft,
.section-showcase {
  background: var(--white-96);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading.center {
  text-align: center;
  justify-items: center;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.section-heading p {
  color: var(--muted);
  max-width: 600px;
  line-height: 1.72;
}

/* ── Service grid ───────────────────────────────────────────── */
.service-grid        { display: grid; gap: 16px; grid-template-columns: repeat(2,1fr); }
.service-grid-3      { grid-template-columns: repeat(3,1fr); }

.premium-card,
.service-card {
  padding: 28px;
  border-radius: var(--r-2xl);
  transition: transform var(--t-md) var(--ease), box-shadow var(--t-md) var(--ease);
}

.premium-card:hover,
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-xl);
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--ink-05);
  border: 1px solid var(--ink-08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-family: 'Geist Mono', monospace;
}

.service-card h3,
.service-card h2 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.service-card p,
.trust-card p,
.content-card p,
.info-panel p,
.contact-item p,
.footer p,
.metric-card p,
.workspace-panel p,
.service-brief-card p,
.deliverable-card p,
.owned-service-card p,
.request-compact-card p,
.admin-request-card p,
.list-row p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

.feature-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 16px 0 20px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  top: 8px; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

/* ── Workflow grid ──────────────────────────────────────────── */
.workflow-section { background: var(--white-96) !important; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.request-workflow-grid { grid-template-columns: repeat(2,1fr); }

.workflow-step {
  padding: 24px;
  border-radius: var(--r-xl);
  min-height: 200px;
  transition: transform var(--t-md) var(--ease);
  background: var(--white-96);
}

.workflow-step:hover { transform: translateY(-2px); }

.workflow-step > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  font-family: 'Geist Mono', monospace;
  margin-bottom: 16px;
}

.workflow-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.workflow-step p { font-size: 0.86rem; }

/* ── Trust section ──────────────────────────────────────────── */
.trust-section { background: var(--white-96) !important; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.trust-card {
  padding: 26px;
  border-radius: var(--r-2xl);
  transition: transform var(--t-md) var(--ease);
}

.trust-card:hover { transform: translateY(-2px); }

.trust-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-board {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.contact-item {
  padding: 26px;
  border-radius: var(--r-2xl);
  transition: transform var(--t-md) var(--ease);
}

.contact-item:hover { transform: translateY(-2px); }

.contact-item span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-item p { margin-top: 8px; }

/* ── Callout ────────────────────────────────────────────────── */
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white-96);
}

.premium-callout {
  background: linear-gradient(135deg, var(--white-96), rgba(241,244,248,0.96));
}

.premium-callout h2 {
  margin: 12px 0 0;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
  font-weight: 800;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--r-2xl);
}

.footer strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-links a {
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}

.footer-links a:hover {
  color: var(--ink);
  background: var(--ink-05);
}

/* ── Panel grid ─────────────────────────────────────────────── */
.panel-grid {
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap: 20px;
  align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.panel-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-2xl);
}

.sidebar-card {
  padding: 20px;
  border-radius: var(--r-xl);
}

.sidebar-card h2 {
  margin: 12px 0 8px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1.05;
}

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

.sidebar-nav a {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--r-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition:
    color var(--t) var(--ease),
    background var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.sidebar-nav a:hover {
  color: var(--ink);
  background: var(--ink-05);
}

.sidebar-nav a.is-active {
  background: var(--ink);
  color: var(--white);
  transform: translateX(2px);
}

.sidebar-card-dark {
  background: var(--night) !important;
  border-color: rgba(255,255,255,0.07) !important;
  box-shadow: 0 16px 36px rgba(9,9,11,0.20) !important;
  color: rgba(255,255,255,0.88);
}

.sidebar-card-dark span { font-size: 0.73rem; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.03em; text-transform: uppercase; }
.sidebar-card-dark strong { display: block; margin: 8px 0 6px; font-size: 1rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.sidebar-card-dark p { font-size: 0.82rem; line-height: 1.62; color: rgba(255,255,255,0.56); }

/* ── Panel content ──────────────────────────────────────────── */
.panel-content,
.customer-dashboard,
.admin-content {
  display: grid;
  gap: 20px;
}

/* ── Workspace hero ─────────────────────────────────────────── */
.workspace-hero {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(260px,0.9fr);
  gap: 18px;
  padding: 32px;
  border-radius: var(--r-2xl);
  background: linear-gradient(160deg, var(--white-96), rgba(245,248,251,0.95));
  border: 1px solid var(--ink-08);
  box-shadow: var(--sh-lg);
}

.workspace-hero-side { display: grid; gap: 14px; }

.workspace-panel {
  padding: 22px;
  border-radius: var(--r-xl);
}

.workspace-panel-dark {
  background: var(--night) !important;
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: 0 16px 40px rgba(9,9,11,0.22) !important;
}

.workspace-panel-dark span { font-size: 0.73rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.03em; }
.workspace-panel-dark strong { display: block; margin: 8px 0 6px; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.04em; color: #fff; }
.workspace-panel-dark p { font-size: 0.86rem; color: rgba(255,255,255,0.56); line-height: 1.65; }

.workspace-panel-dark .stack-lines { display: grid; gap: 10px; margin-top: 16px; }
.workspace-panel-dark .stack-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.workspace-panel-dark .stack-lines span { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.workspace-panel-dark .stack-lines strong { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.85); margin: 0; }

/* ── Metric cards ───────────────────────────────────────────── */
.metric-grid   { display: grid; gap: 14px; }
.metric-grid-3 { grid-template-columns: repeat(3,1fr); }
.metric-grid-4 { grid-template-columns: repeat(4,1fr); }

.metric-card {
  padding: 22px;
  border-radius: var(--r-xl);
  transition: transform var(--t-md) var(--ease), box-shadow var(--t-md) var(--ease);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-xl);
}

.metric-card-strong {
  background: linear-gradient(160deg, var(--white-96), rgba(248,250,252,0.95));
}

.metric-card span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.metric-card p { margin-top: 8px; font-size: 0.82rem; }

/* ── Dual feature grid ──────────────────────────────────────── */
.dual-feature-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

/* ── Feature panel ──────────────────────────────────────────── */
.feature-panel {
  padding: 26px;
  border-radius: var(--r-2xl);
  background: var(--white-96);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.card-head h2 {
  margin-top: 6px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

/* ── Service summary ────────────────────────────────────────── */
.service-summary-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

.service-brief-card {
  padding: 18px;
  border-radius: var(--r-xl);
  background: var(--white-96);
  transition: transform var(--t) var(--ease);
}

.service-brief-card:hover { transform: translateY(-2px); }

.service-brief-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.service-brief-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* ── Deliverable ────────────────────────────────────────────── */
.deliverable-grid,
.request-card-grid,
.service-stack,
.support-message-stack {
  display: grid;
  gap: 14px;
}

.deliverable-card {
  padding: 22px;
  border-radius: var(--r-xl);
  transition: transform var(--t-md) var(--ease);
}

.deliverable-card:hover { transform: translateY(-2px); }

.deliverable-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.deliverable-card strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.deliverable-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.deliverable-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform var(--t), box-shadow var(--t);
}

.deliverable-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(9,9,11,0.2);
}

.deliverable-meta {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.deliverable-url {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--ink-03);
  border: 1px solid var(--ink-08);
  color: var(--muted);
  font-size: 0.78rem;
  word-break: break-all;
  font-family: 'Geist Mono', monospace;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-card {
  padding: 28px;
  border-radius: var(--r-2xl);
}

.form-card-inline {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 18px;
  align-items: start;
}

.stack-panel { display: grid; gap: 16px; }

/* ── Login ──────────────────────────────────────────────────── */
.login-hero {
  padding: 36px 40px;
}

.login-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.login-layout { align-items: start; }

.login-card {
  padding: 32px;
  border-radius: var(--r-2xl);
}

.login-card-head {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-08);
}

.login-card-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.login-side-panel { align-content: start; }

.login-info-panel {
  padding: 24px;
  border-radius: var(--r-2xl);
}

.login-info-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.login-info-panel p { margin-top: 8px; font-size: 0.86rem; }

/* ── Form grid & inputs ─────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-strong);
  letter-spacing: -0.01em;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  background: var(--white-96);
  color: var(--text);
  outline: 0;
  font-size: 0.9rem;
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease);
}

textarea { min-height: 120px; resize: vertical; }

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(9,9,11,0.07);
  background: var(--white);
}

input::placeholder,
textarea::placeholder { color: var(--ink-40); }

.full-card,
.full { grid-column: 1 / -1; }

/* ── Feedback ───────────────────────────────────────────────── */
.form-feedback,
.inline-feedback {
  min-height: 22px;
  margin: 8px 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.form-feedback.is-loading, .inline-feedback.is-loading { color: #6b7280; }
.form-feedback.is-success, .inline-feedback.is-success  { color: var(--green); }
.form-feedback.is-error,   .inline-feedback.is-error    { color: var(--red); }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--ink-03);
  border: 1px dashed var(--ink-12);
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

/* ── Admin structures ───────────────────────────────────────── */
.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

.admin-overview-card {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: var(--r-2xl);
  background: var(--white-96);
  border: 1px solid var(--ink-08);
  box-shadow: var(--sh-lg);
  min-height: 220px;
}

.admin-overview-card h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.06;
}

.table-card {
  padding: 28px;
  border-radius: var(--r-2xl);
}

.table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.table-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.filter-chip {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink-12);
  border-radius: var(--r-full);
  background: var(--white);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.filter-chip.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.filter-chip:hover:not(.is-active) { background: var(--ink-05); }

.request-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* ── Request / admin cards ──────────────────────────────────── */
.admin-request-card,
.owned-service-card,
.customer-request-card {
  padding: 24px;
  border-radius: var(--r-2xl);
  transition: transform var(--t-md) var(--ease);
}

.admin-request-card:hover { transform: translateY(-1px); }

.admin-request-head,
.owned-service-head,
.customer-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-request-card strong,
.owned-service-card h3,
.customer-request-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.admin-request-grid,
.owned-service-grid,
.customer-offer-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.mini-card {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--ink-03);
  border: 1px solid var(--ink-08);
}

.mini-card span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mini-card strong {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.mini-card p { margin-top: 5px; font-size: 0.8rem; }

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.request-compact-card {
  padding: 20px;
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.request-compact-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-xl);
}

.request-compact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.request-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.request-compact-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 6px 0 4px;
}

/* ── List row ───────────────────────────────────────────────── */
.list-row {
  padding: 20px;
  border-radius: var(--r-xl);
  display: grid;
  gap: 8px;
}

.list-row span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.list-row strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ── Customer request timeline ──────────────────────────────── */
.customer-request-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.customer-request-timeline span {
  padding: 7px 12px;
  border-radius: var(--r-full);
  background: var(--ink-05);
  border: 1px solid var(--ink-08);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  transition: background var(--t), color var(--t);
}

.customer-request-timeline span.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.customer-request-summary { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-top: 8px; }

/* ── Offer panel ────────────────────────────────────────────── */
.customer-offer-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--r-xl);
  background: var(--ink-03);
  border: 1px solid var(--ink-08);
}

.request-alert,
.request-pending-note {
  padding: 13px 16px;
  border-radius: var(--r-lg);
  background: var(--ink-05);
  color: var(--muted-strong);
  font-size: 0.86rem;
  line-height: 1.6;
  border: 1px solid var(--ink-08);
}

.request-payment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ── Service owned ──────────────────────────────────────────── */
.service-order-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: var(--ink-05);
  border: 1px solid var(--ink-08);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.owned-service-footer {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin-top: 16px;
}

.service-footer-item {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--ink-03);
  border: 1px solid var(--ink-08);
}

.service-footer-item span { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.service-footer-item strong { display: block; margin-top: 6px; font-size: 0.95rem; font-weight: 700; }

/* ── Support messages ───────────────────────────────────────── */
.support-message {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--ink-03);
  border: 1px solid var(--ink-08);
}

.support-message.is-admin {
  background: rgba(37,99,235,0.05);
  border-color: rgba(37,99,235,0.12);
}

.support-message strong { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; }
.support-message p { margin: 0 0 8px; color: var(--muted-strong); line-height: 1.7; font-size: 0.88rem; }
.support-message span { font-size: 0.76rem; color: var(--muted); font-weight: 600; }

/* ── Admin quick actions ────────────────────────────────────── */
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--r-xl);
  background: var(--ink-03);
  border: 1px solid var(--ink-08);
}

.admin-quote-preview {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.admin-quote-box {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--ink-03);
  border: 1px solid var(--ink-08);
}

.admin-quote-box span { font-size: 0.73rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.admin-quote-box strong { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.4; font-weight: 700; }

.dashboard-note { font-size: 0.84rem; color: var(--muted); line-height: 1.65; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 40px;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9,9,11,0.48);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: none;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--r-2xl);
  background: #fff;
  border: 1px solid var(--ink-08);
  box-shadow: 0 32px 80px rgba(9,9,11,0.22), 0 0 0 1px rgba(255,255,255,0.5) inset;
  align-self: flex-start;
}

.modal-card-wide { width: min(1120px, 100%); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  background: var(--ink-05);
  border: 1px solid var(--ink-08);
  font-size: 1.2rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), color var(--t);
}

.modal-close:hover { background: var(--ink-12); color: var(--ink); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-08);
  padding-right: 48px;
}

.modal-head h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 6px 0 0;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,0.82fr);
  gap: 24px;
}

.modal-column { display: grid; gap: 14px; align-content: start; }

/* ── Summary mini ───────────────────────────────────────────── */
.summary-mini {
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--white-96);
  border: 1px solid var(--ink-08);
  box-shadow: var(--sh-sm);
}

.summary-mini span { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.summary-mini strong { display: block; margin-top: 8px; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.06em; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: var(--r-xl);
  background: var(--night);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 16px 40px rgba(9,9,11,0.24);
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.08);
  animation: toast-in 260ms var(--ease) both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.toast.is-success { background: #14532d; border-color: rgba(74,222,128,0.16); }
.toast.is-error   { background: #7f1d1d; border-color: rgba(248,113,113,0.16); }

/* ── Floating stat ──────────────────────────────────────────── */
.floating-stat {
  position: absolute;
  z-index: 2;
  width: min(280px, 100%);
  padding: 16px 18px;
  border-radius: var(--r-xl);
}

.floating-stat span { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.floating-stat strong { display: block; margin-top: 8px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.04em; }

.stat-a { top: 20px; right: -10px; }
.stat-b { bottom: 20px; left: -8px; }

/* ── Misc helpers ───────────────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

.admin-summary-grid { display: grid; gap: 14px; }

.admin-support-list { display: grid; gap: 14px; }

.service-detail-grid { grid-template-columns: repeat(3,1fr); }
.service-detail-card-wide { grid-column: span 2; }

.service-offer-panel { margin-top: 16px; }

.compact-deliverables .deliverable-card { padding: 16px; }

.dashboard-note { margin: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-premium,
  .workspace-hero,
  .panel-grid,
  .dual-feature-grid,
  .form-layout,
  .split-section,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .panel-sidebar { position: static; }
  .hero-stage { min-height: auto; }
  .stat-a, .stat-b { position: static; width: 100%; margin-top: 10px; }
}

@media (max-width: 1040px) {
  .service-grid-3,
  .metric-grid-4,
  .metric-grid-3,
  .service-summary-grid,
  .trust-grid,
  .contact-board,
  .workflow-grid,
  .hero-inline-stats,
  .workspace-chip-row,
  .workspace-service-grid,
  .admin-request-grid,
  .owned-service-grid,
  .customer-offer-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .workspace-grid { grid-template-columns: 1fr; }
  .request-workflow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .site-shell,
  .site-shell-wide,
  .site-shell-panel {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .topbar { height: 60px; padding: 0 14px; border-radius: 20px; }
  .panel-topbar { border-radius: 18px; }

  .menu-toggle { display: flex; }

  .nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 20px;
    background: var(--white-96);
    border: 1px solid var(--ink-08);
    box-shadow: var(--sh-xl);
    backdrop-filter: blur(16px);
  }

  .nav.is-open { display: flex; }
  .nav a { width: 100%; border-radius: var(--r-lg); }
  .nav-cta { margin-left: 0; }

  .hero-premium,
  .page-hero,
  .detail-hero,
  .section,
  .feature-panel,
  .footer,
  .workspace-hero {
    padding: 22px;
    border-radius: 22px;
  }

  .hero-premium-next { padding: 24px; border-radius: 24px; }

  .hero-copy h1 { font-size: clamp(2.2rem, 10.5vw, 3.4rem); }
  .hero-copy-next h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }

  .service-grid,
  .service-grid-3,
  .admin-overview-grid,
  .trust-grid,
  .contact-board,
  .workflow-grid,
  .metric-grid-3,
  .metric-grid-4,
  .service-summary-grid,
  .workspace-chip-row,
  .workspace-service-grid,
  .admin-request-grid,
  .owned-service-grid,
  .customer-offer-grid,
  .admin-quote-preview,
  .form-grid,
  .owned-service-footer,
  .hero-inline-stats {
    grid-template-columns: 1fr;
  }

  .footer { flex-direction: column; align-items: flex-start; }
  .callout { flex-direction: column; align-items: flex-start; }
  .card-head { flex-direction: column; align-items: flex-start; }

  .modal-card,
  .modal-card-wide {
    width: calc(100% - 16px);
    padding: 20px;
    border-radius: 20px;
  }

  .modal-head { padding-right: 40px; }

  .workspace-editor { min-height: auto; }
}