/* ─────────────────────────────────────────────────────────
   Reveal — design language matched to ventify.ai
   Inter (sans) + Noto Serif (italic display)
   Palette: navy / coral / teal / accent (warm brown)
───────────────────────────────────────────────────────── */
/* Light theme tokens (kept for optional toggle later) */
[data-theme="light"], :root {
  --c-primary: #1a2332;
  --c-secondary: #475569;
  --c-tertiary: #94a3b8;
  --c-accent: #745148;
  --c-coral: #ea6a50;
  --c-coral-soft: rgba(234, 106, 80, 0.10);
  --c-teal: #5d7c89;
  --c-green: #40c057;

  --bg-body: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-soft: #eeeff1;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-muted: #94a3b8;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 2px 8px -2px rgba(15,23,42,0.06);
  --shadow-lg: 0 24px 48px -12px rgba(26, 35, 50, 0.12);
  --shadow-xl: 0 50px 100px -20px rgba(50, 50, 93, 0.15), 0 30px 60px -30px rgba(0, 0, 0, 0.1);

  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
}

/* Dark theme — DEFAULT (html[data-theme="dark"]) */
[data-theme="dark"] {
  --c-primary: #f1f5f9;
  --c-secondary: #cbd5e1;
  --c-tertiary: #64748b;
  --c-accent: #a07566;
  --c-coral: #f87171;
  --c-coral-soft: rgba(248, 113, 113, 0.14);
  --c-teal: #7dd3c0;

  --bg-body: #0a1018;
  --bg-surface: #131c2a;
  --bg-soft: #1c2638;
  --bg-glass: rgba(19, 28, 42, 0.82);

  --border: #1e293b;
  --border-strong: #334155;
  --text-muted: #64748b;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 2px 8px -2px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 50px 100px -20px rgba(0, 0, 0, 0.6), 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-body);
  color: var(--c-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-coral); }

code, pre {
  font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
}

.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.strong { color: var(--c-primary); font-weight: 500; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.serif-it { font-family: var(--font-serif); font-style: italic; font-weight: 300; }
.error { color: #d33; min-height: 18px; font-size: 13px; }

.gradient-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-teal) 50%, var(--c-coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

/* ═════════════════════════════════════════════════════════
   Buttons
═════════════════════════════════════════════════════════ */
button { cursor: pointer; font-family: var(--font-sans); }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all .18s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-coral);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-coral);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px -6px rgba(234,106,80,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--c-primary); }

.btn-ghost-tiny {
  background: transparent;
  border: none;
  color: var(--c-coral);
  font-size: 12px;
  cursor: pointer;
  padding: 0 4px;
}
.btn-ghost-tiny:hover { text-decoration: underline; }

.full { width: 100%; }

/* ═════════════════════════════════════════════════════════
   Inputs
═════════════════════════════════════════════════════════ */
input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-sans);
  background: var(--bg-surface);
  color: var(--c-primary);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--c-coral);
  box-shadow: 0 0 0 3px var(--c-coral-soft);
}
input:disabled {
  background: var(--bg-soft);
  color: var(--c-tertiary);
  cursor: not-allowed;
}
.select-mini { width: auto; padding: 8px 12px; font-size: 13px; }

/* ═════════════════════════════════════════════════════════
   Brand (Ventify logo + Reveal wordmark)
═════════════════════════════════════════════════════════ */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  height: 22px;
  width: auto;        /* keep 320x79 aspect ratio */
  display: block;
  content: url("/static/img/logo-white.png"); /* default = dark theme */
}
[data-theme="light"] .brand-logo,
:root:not([data-theme]) .brand-logo {
  content: url("/static/img/logo.png");
}
.brand-divider {
  width: 1px; height: 18px;
  background: var(--border);
  margin: 0 4px;
}
.brand-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--c-secondary);
}

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  width: 34px; height: 34px;
  border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-secondary);
  padding: 0;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.theme-toggle:hover { color: var(--c-coral); border-color: var(--c-coral); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .t-sun, .theme-toggle .t-moon { display: none; }
[data-theme="dark"] .theme-toggle .t-sun { display: block; }
[data-theme="light"] .theme-toggle .t-moon,
:root:not([data-theme]) .theme-toggle .t-moon { display: block; }
.brand-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: none; /* logo already says Ventify */
}

/* ═════════════════════════════════════════════════════════
   LANDING — nav + hero + sections
═════════════════════════════════════════════════════════ */
.landing { min-height: 100vh; }

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--c-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--c-primary); }
.signin-link { color: var(--c-coral) !important; }

.hero {
  position: relative;
  padding: 110px 24px 90px;
  overflow: hidden;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero-orb-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(234,106,80,0.35), transparent 70%);
  top: -120px; left: -120px;
}
.hero-orb-2 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(93,124,137,0.30), transparent 70%);
  top: -80px; right: -160px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
}
[data-theme="dark"] .hero-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
}

.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-secondary);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--c-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(64,192,87,0.18);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--c-primary);
}

.hero-sub {
  font-size: 18px;
  color: var(--c-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-sub code {
  background: rgba(234,106,80,0.10);
  color: var(--c-coral);
  padding: 1px 6px;
  font-size: 0.92em;
}

.hero-form {
  display: flex; gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.hero-form input {
  flex: 1;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}
.hero-form .btn-primary { padding: 12px 22px; }

.hero-foot {
  margin-top: 14px;
  font-size: 12px;
}

/* ═════════════════════════════════════════════════════════
   Sections (How / Trust / CTA)
═════════════════════════════════════════════════════════ */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-coral);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--c-primary);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.how-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color .2s var(--ease-out), box-shadow .25s var(--ease-out);
}
.how-card:hover {
  border-color: var(--c-coral);
  box-shadow: var(--shadow-lg);
}
.how-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 38px;
  color: var(--c-coral);
  line-height: 1;
  margin-bottom: 16px;
}
.how-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--c-primary);
}
.how-card p { color: var(--c-secondary); margin: 0; font-size: 14.5px; }

.trust-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.trust-list li {
  display: flex;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.trust-list .x {
  width: 24px; height: 24px;
  flex-shrink: 0;
  background: rgba(234,106,80,0.12);
  color: var(--c-coral);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
  font-size: 16px;
}
.trust-list strong {
  display: block;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 4px;
}
.trust-list div { color: var(--c-secondary); font-size: 14px; }

.cta { padding-bottom: 100px; }
.cta-card {
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 36px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .cta-card, :root .cta-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, #fdf6f3 100%);
}
[data-theme="dark"] .cta-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(234,106,80,0.06) 100%);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(234,106,80,0.18), transparent 70%);
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cta-card .hero-form { margin-top: 24px; }

/* ═════════════════════════════════════════════════════════
   Footer
═════════════════════════════════════════════════════════ */
.foot {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 32px 0;
}
.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-brand { font-size: 13px; color: var(--c-secondary); }
.foot-brand a { color: var(--c-coral); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: 12px; color: var(--text-muted); }
.foot-links a:hover { color: var(--c-primary); }

/* ═════════════════════════════════════════════════════════
   Auth modal
═════════════════════════════════════════════════════════ */
[hidden] { display: none !important; }

.auth-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .2s var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.auth-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: cardIn .35s var(--ease-spring);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card .close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  transition: background .15s;
}
.auth-card .close:hover { background: var(--bg-soft); color: var(--c-primary); }
.auth-card h2 {
  font-size: 24px;
  margin: 6px 0 6px;
  letter-spacing: -0.01em;
}
.auth-card .muted { margin-bottom: 20px; }
.auth-card input { margin-bottom: 12px; }
.auth-card .btn-primary { margin-bottom: 8px; }
.auth-card .btn-ghost { margin-bottom: 0; }

/* ═════════════════════════════════════════════════════════
   DASHBOARD
═════════════════════════════════════════════════════════ */
.dash {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}
.dash-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--border);
}
.dash-who {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--c-tertiary);
}
.dash-who #me-email { color: var(--c-secondary); }

.dash-tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 28px;
  border-bottom: 1px solid var(--border);
}
.dash-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 11px 18px;
  color: var(--c-secondary);
  font-weight: 500;
  font-size: 14px;
  font-family: var(--font-sans);
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.dash-tab.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-coral);
}
.dash-tab:hover:not(.active) { color: var(--c-primary); }

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.panel h2 { font-size: 19px; font-weight: 500; margin: 0; letter-spacing: -0.005em; }

.install-hero { margin-bottom: 24px; }
.install-hero h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 4px 0 8px; }
.install-hero .muted { font-size: 14px; }

pre#snippet {
  background: linear-gradient(135deg, #0f1825 0%, #1e293b 100%);
  color: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  overflow-x: auto;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
  margin: 16px 0 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.install-tips {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.install-tips h3 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--c-primary);
}
.install-tips ol {
  margin: 0; padding-left: 22px;
  color: var(--c-secondary);
  font-size: 14px;
}
.install-tips li { margin-bottom: 6px; }
.install-tips strong { color: var(--c-primary); font-weight: 500; }

.count {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--c-secondary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 8px;
  font-weight: 500;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.data th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-soft);
  color: var(--c-secondary);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--border);
}
table.data th:first-child { border-top-left-radius: var(--radius-sm); }
table.data th:last-child { border-top-right-radius: var(--radius-sm); }
table.data td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--c-primary);
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(234,106,80,0.03); }
table.data .url-cell {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═════════════════════════════════════════════════════════
   Visitor cards (Person-level / Company-level)
═════════════════════════════════════════════════════════ */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.banner {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--c-secondary);
}
.v-card {
  display: grid;
  grid-template-columns: 84px 1fr 220px;
  gap: 18px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color .15s, box-shadow .2s;
}
.v-card:hover { border-color: var(--c-coral); box-shadow: var(--shadow-sm); }

/* Avatar (round, gradient if no image) */
.v-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-teal) 60%, var(--c-coral) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-serif); font-size: 24px; font-weight: 400;
  position: relative; overflow: hidden;
}
.v-avatar img { width: 100%; height: 100%; object-fit: cover; }
.v-avatar.large { width: 72px; height: 72px; font-size: 26px; }
.v-actions {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 8px;
}
.v-actions button {
  font-size: 11px; padding: 5px 10px;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--c-secondary); border-radius: 4px;
  cursor: pointer;
}
.v-actions button:hover { color: var(--c-coral); border-color: var(--c-coral); }
.v-col-avatar { text-align: center; }

.v-main { min-width: 0; }
.v-name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 19px;
  color: var(--c-primary);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.v-name a { color: var(--c-primary); }
.v-name a:hover { color: var(--c-coral); }
.li-icon {
  width: 16px; height: 16px;
  background: #0A66C2;
  border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 10px;
}
[data-theme="dark"] .li-icon { background: #2d83d6; }
.v-loc {
  font-size: 12px; color: var(--c-tertiary);
  display: flex; align-items: center; gap: 4px;
}
.v-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px;
  color: var(--c-secondary);
  margin-top: 4px;
}
.v-row .v-icon {
  width: 14px; height: 14px;
  color: var(--c-tertiary);
  flex-shrink: 0;
}
.v-row a { color: var(--c-secondary); }
.v-row a:hover { color: var(--c-coral); }

.v-side {
  text-align: right;
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-end;
  font-size: 12px;
  color: var(--c-tertiary);
}
.v-side .v-email {
  color: var(--c-secondary);
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
}
.v-side button {
  font-size: 12px;
  background: transparent;
  border: none;
  color: var(--c-coral);
  padding: 4px 8px;
  cursor: pointer;
}
.v-side button:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .v-card { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; }
  .v-side { grid-column: 1 / -1; text-align: left; align-items: flex-start; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
}

/* Reports tab */
.rep-card {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 18px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s;
}
.rep-card:hover { border-color: var(--c-coral); }
.rep-card .rep-period {
  font-family: var(--font-serif); font-size: 17px; font-weight: 400;
  color: var(--c-primary);
}
.rep-card .rep-meta {
  font-size: 12px; color: var(--text-muted);
  margin-top: 4px;
}
.rep-card .rep-summary {
  font-size: 13px; color: var(--c-secondary);
  margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.rep-stats {
  text-align: right;
  font-size: 11px; color: var(--text-muted);
}
.rep-stats .num { font-size: 18px; font-weight: 500; color: var(--c-primary); display: block; }

#rep-detail {
  margin-top: 16px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
#rep-detail .rep-back {
  margin-bottom: 12px;
}
#rep-detail .rep-html h1 { font-family: var(--font-serif); font-weight: 600; }
#rep-detail .rep-html h2 { font-family: var(--font-serif); font-weight: 500; border-bottom: 1.5px solid var(--c-coral); padding-bottom: 4px; }
#rep-detail .rep-html table { width: 100%; border-collapse: collapse; margin: 8px 0; }
#rep-detail .rep-html th { background: var(--bg-soft); padding: 6px 10px; text-align: left; }
#rep-detail .rep-html td { padding: 6px 10px; border-bottom: 1px solid var(--border); }
#rep-detail .rep-html .pill { display:inline-block; padding:1px 8px; border-radius:10px; font-size:10px; font-weight:600; }
#rep-detail .rep-html .pill-red { background:rgba(220,38,38,0.15); color:#ef4444; }
#rep-detail .rep-html .pill-amber { background:rgba(245,158,11,0.15); color:#f59e0b; }
#rep-detail .rep-html .pill-blue { background:rgba(37,99,235,0.15); color:#60a5fa; }
#rep-detail .rep-html .pill-green { background:rgba(22,101,52,0.15); color:#4ade80; }
#rep-detail .rep-html .pill-gray { background:var(--bg-soft); color:var(--c-secondary); }
#rep-detail .rep-html .alert { background: rgba(234,106,80,0.10); border: 1px solid rgba(234,106,80,0.30); padding: 10px 14px; border-radius: 6px; margin: 10px 0; }
#rep-detail .rep-html .note { background: rgba(93,124,137,0.10); border: 1px solid rgba(93,124,137,0.30); padding: 10px 14px; border-radius: 6px; margin: 10px 0; font-size: 13px; }
#rep-detail .rep-html h2 { font-family: var(--font-serif); font-weight: 500; padding-bottom: 4px; border-bottom: 1px solid var(--border); }

.team-switcher {
  width: auto;
  padding: 5px 8px;
  font-size: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--c-secondary);
  border-radius: 6px;
  max-width: 220px;
}
.team-switcher:focus { border-color: var(--c-coral); box-shadow: none; }
.dash-who-divider { color: var(--text-muted); }

.pill {
  display: inline-block; padding: 1px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.01em;
}
.pill-pending { background: rgba(245,158,11,0.18); color: #f59e0b; }
.pill-accepted { background: rgba(64,192,87,0.18); color: var(--c-green); }
.pill-expired { background: var(--bg-soft); color: var(--c-tertiary); }

.team-invite {
  display: flex; gap: 10px; margin-top: 16px;
}
.team-invite input { flex: 1; }
.team-invite button { white-space: nowrap; padding: 12px 22px; }

.acct-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px 24px;
  align-items: center;
  margin-bottom: 24px;
}
.acct-grid label {
  font-size: 13px;
  color: var(--c-secondary);
  font-weight: 500;
  text-align: right;
}

@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-links .signin-link { display: inline; }
  .nav-links { gap: 16px; }
  .hero { padding: 70px 18px 60px; }
  .section { padding: 64px 20px; }
  .dash { padding: 20px 18px 60px; }
  .dash-tabs { overflow-x: auto; }
  .dash-tab { padding: 10px 14px; font-size: 13px; flex-shrink: 0; }
  .panel { padding: 24px 22px; }
  .acct-grid { grid-template-columns: 1fr; gap: 6px; }
  .acct-grid label { text-align: left; }
  .hero-form { flex-direction: column; gap: 10px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Company detail view */
.co-detail-head { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.co-detail-hero { display:flex; align-items:center; gap:18px; padding:20px 24px; background:var(--bg-surface); border:1px solid var(--border); border-radius:12px; margin-bottom:20px; }
.co-detail-grid { display:grid; grid-template-columns:1fr 1.3fr; gap:20px; }
@media (max-width: 800px) { .co-detail-grid { grid-template-columns:1fr; } }
.co-info, .co-activity { background:var(--bg-surface); border:1px solid var(--border); border-radius:12px; padding:20px 24px; }
.co-section-h { margin:0 0 14px; font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); border-bottom:1px solid var(--border); padding-bottom:10px; }
.co-info-row { display:grid; grid-template-columns:140px 1fr; gap:12px; padding:8px 0; font-size:14px; align-items:start; }
.co-info-k { color:var(--text-muted); font-size:13px; }
.co-info-v { color:var(--c-primary); word-break:break-word; }
.co-info-v a { color:var(--c-coral); text-decoration:none; }
.co-info-v a:hover { text-decoration:underline; }
.co-act-month { margin-bottom:18px; }
.co-act-month-h { font-size:14px; font-weight:600; color:var(--c-primary); margin-bottom:2px; }
.co-act-card { background:var(--bg-body); border:1px solid var(--border); border-radius:8px; padding:12px 14px; margin-bottom:10px; font-size:13px; }
.co-act-row { display:grid; grid-template-columns:110px 1fr; gap:10px; padding:3px 0; word-break:break-word; }
.co-act-k { color:var(--text-muted); font-size:12px; }
.co-act-row a { color:var(--c-coral); text-decoration:none; }
.co-act-row a:hover { text-decoration:underline; }
