/* ============================================================
   ClinicalWriter Pro — app.css
   Greyscale · Minimalist · Bootstrap 5 extended
   Fonts: DM Serif Display / Outfit / DM Mono
   ============================================================ */

:root {
  --cw-black:      #111111;
  --cw-ink:        #222222;
  --cw-slate:      #444444;
  --cw-mid:        #777777;
  --cw-muted:      #999999;
  --cw-border:     #e2e2de;
  --cw-surface:    #f7f7f5;
  --cw-bg:         #fafaf8;
  --cw-white:      #ffffff;
  --cw-accent:     #111111;

  --sidebar-w:     240px;
  --topbar-h:      60px;

  --font-display:  'DM Serif Display', Georgia, serif;
  --font-body:     'Outfit', system-ui, sans-serif;
  --font-mono:     'DM Mono', monospace;

  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;

  --transition:    0.15s ease;
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 15px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--cw-ink);
  background: var(--cw-bg);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--cw-black);
  line-height: 1.2;
}

p { line-height: 1.7; }

a { color: var(--cw-black); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ─── Layout ────────────────────────────────────────────────── */
.cw-layout {
  display: flex;
  min-height: 100vh;
}

.cw-sidebar {
  width: var(--sidebar-w);
  background: var(--cw-black);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
}

.cw-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.cw-content {
  padding: 32px 36px;
  flex: 1;
}

/* ─── Sidebar Brand ─────────────────────────────────────────── */
.cw-sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--cw-white);
  color: var(--cw-black);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  line-height: 1.3;
}

.brand-name em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* ─── Sidebar Nav ───────────────────────────────────────────── */
.cw-nav {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}

.cw-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.cw-nav li a i {
  font-size: 15px;
  width: 16px;
  text-align: center;
}

.cw-nav li a:hover {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.05);
}

.cw-nav li.active a {
  color: var(--cw-white);
  background: rgba(255,255,255,.1);
  border-left: 2px solid var(--cw-white);
  padding-left: 18px;
}

.cw-nav-section {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  padding: 16px 20px 4px;
}

/* ─── Sidebar User Footer ───────────────────────────────────── */
.cw-sidebar-user {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }

.user-name {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

.user-logout {
  color: rgba(255,255,255,.3);
  font-size: 16px;
  text-decoration: none;
  transition: color var(--transition);
  flex-shrink: 0;
}

.user-logout:hover { color: rgba(255,255,255,.7); }

/* ─── Topbar ────────────────────────────────────────────────── */
.cw-topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--cw-border);
  background: var(--cw-white);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--cw-black);
  margin: 0;
  flex: 1;
}

.topbar-actions { display: flex; gap: 8px; }

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--cw-mid);
  cursor: pointer;
  padding: 4px;
  display: none;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-cw-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cw-black);
  color: var(--cw-white) !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--cw-black);
  cursor: pointer;
  text-decoration: none !important;
  transition: background var(--transition), border-color var(--transition);
  letter-spacing: .01em;
}

.btn-cw-primary:hover {
  background: var(--cw-slate);
  border-color: var(--cw-slate);
}

.btn-cw-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--cw-ink) !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  padding: 8px 18px;
  border: 1px solid var(--cw-border);
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color var(--transition), background var(--transition);
}

.btn-cw-secondary:hover {
  border-color: var(--cw-mid);
  background: var(--cw-surface);
}

.btn-cw-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--cw-mid) !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: color var(--transition);
}

.btn-cw-ghost:hover { color: var(--cw-ink) !important; }

/* ─── Cards ─────────────────────────────────────────────────── */
.cw-card {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.cw-card-sm {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.cw-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cw-border);
}

.cw-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

/* ─── Stat Cards ─────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  padding: 20px 22px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cw-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--cw-black);
  line-height: 1;
}

.stat-sub {
  font-size: 12px;
  color: var(--cw-muted);
  margin-top: 4px;
}

/* ─── Document List ─────────────────────────────────────────── */
.doc-list { list-style: none; padding: 0; margin: 0; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--cw-border);
  background: var(--cw-white);
  transition: background var(--transition);
}

.doc-item:first-child { border-top: 1px solid var(--cw-border); }
.doc-item:hover { background: var(--cw-surface); }

.doc-type-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cw-mid);
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.doc-item-title {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--cw-black);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-item-title a { color: inherit; text-decoration: none; }
.doc-item-title a:hover { text-decoration: underline; }

.doc-item-meta {
  font-size: 12px;
  color: var(--cw-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Status Badges ─────────────────────────────────────────── */
.status-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
}

.status-draft        { color: var(--cw-muted); }
.status-generated    { color: #555; }
.status-under_review { color: #888; }
.status-approved     { color: var(--cw-black); }
.status-archived     { color: #bbb; }

/* Plan badges */
.badge-plan {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid;
}

.badge-free       { color: var(--cw-mid);   border-color: var(--cw-border); }
.badge-starter    { color: #555;             border-color: #aaa; }
.badge-pro        { color: var(--cw-black);  border-color: var(--cw-black); }
.badge-enterprise { color: var(--cw-white);  border-color: var(--cw-black); background: var(--cw-black); }

/* ─── Forms ─────────────────────────────────────────────────── */
.cw-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--cw-slate);
  margin-bottom: 6px;
}

.cw-input,
.cw-select,
.cw-textarea {
  width: 100%;
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cw-ink);
  padding: 10px 14px;
  transition: border-color var(--transition);
  appearance: none;
}

.cw-input:focus,
.cw-select:focus,
.cw-textarea:focus {
  outline: none;
  border-color: var(--cw-black);
  box-shadow: none;
}

.cw-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.cw-field { margin-bottom: 20px; }

.field-hint {
  font-size: 12px;
  color: var(--cw-muted);
  margin-top: 5px;
}

.field-error {
  font-size: 12px;
  color: #c00;
  margin-top: 5px;
}

/* ─── Alerts ─────────────────────────────────────────────────── */
.cw-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 18px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid;
}

.cw-alert-success {
  background: #f4f8f4;
  border-color: #c5d9c5;
  color: #2a5a2a;
}

.cw-alert-error {
  background: #fdf4f4;
  border-color: #e0c5c5;
  color: #7a2020;
}

.cw-alert-info {
  background: var(--cw-surface);
  border-color: var(--cw-border);
  color: var(--cw-slate);
}

/* ─── Document Type Grid ─────────────────────────────────────── */
.doctype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.doctype-card {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  padding: 22px 20px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
  display: block;
  color: var(--cw-ink);
}

.doctype-card:hover {
  border-color: var(--cw-black);
  background: var(--cw-surface);
  text-decoration: none;
  color: var(--cw-ink);
}

.doctype-icon {
  font-size: 22px;
  color: var(--cw-mid);
  margin-bottom: 12px;
}

.doctype-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--cw-black);
}

.doctype-desc {
  font-size: 12px;
  color: var(--cw-muted);
  line-height: 1.5;
  margin: 0;
}

.doctype-cat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cw-muted);
  margin-top: 12px;
}

.doctype-plan-lock {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--cw-mid);
  margin-top: 6px;
}

/* ─── Document Viewer ────────────────────────────────────────── */
.doc-viewer {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  padding: 40px 48px;
  max-width: 760px;
  line-height: 1.8;
  font-size: 15px;
}

.doc-viewer h2 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cw-mid);
  margin: 24px 0 8px;
  border-top: 1px solid var(--cw-border);
  padding-top: 20px;
}

.doc-viewer p { margin-bottom: 14px; }

.doc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cw-border);
}

/* ─── Upgrade / Pricing ──────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--cw-border);
  border: 1px solid var(--cw-border);
  margin-bottom: 32px;
}

.plan-col {
  background: var(--cw-white);
  padding: 28px 24px;
}

.plan-col.featured {
  background: var(--cw-black);
  color: var(--cw-white);
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cw-mid);
  margin-bottom: 12px;
}

.plan-col.featured .plan-name { color: rgba(255,255,255,.5); }

.plan-price {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--cw-black);
  margin-bottom: 4px;
}

.plan-col.featured .plan-price { color: var(--cw-white); }

.plan-period {
  font-size: 12px;
  color: var(--cw-muted);
  margin-bottom: 20px;
}

.plan-col.featured .plan-period { color: rgba(255,255,255,.4); }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.plan-features li {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--cw-border);
  color: var(--cw-slate);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.plan-col.featured .plan-features li {
  color: rgba(255,255,255,.7);
  border-bottom-color: rgba(255,255,255,.1);
}

.plan-features li i { color: var(--cw-mid); margin-top: 2px; flex-shrink: 0; }
.plan-col.featured .plan-features li i { color: rgba(255,255,255,.5); }

/* ─── Public / Landing ───────────────────────────────────────── */
.cw-public {
  min-height: 100vh;
}

.pub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--cw-border);
  background: var(--cw-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.pub-logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cw-black);
  text-decoration: none;
}

.pub-logo em {
  font-style: italic;
  color: var(--cw-mid);
}

.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.pub-nav-links a {
  font-size: 14px;
  color: var(--cw-mid);
  text-decoration: none;
  transition: color var(--transition);
}

.pub-nav-links a:hover { color: var(--cw-black); }

.pub-hero {
  padding: 100px 48px 80px;
  max-width: 880px;
  margin: 0 auto;
}

.pub-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cw-muted);
  margin-bottom: 20px;
}

.pub-hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--cw-black);
  margin-bottom: 24px;
}

.pub-hero-title em {
  font-style: italic;
  color: var(--cw-mid);
}

.pub-hero-sub {
  font-size: 17px;
  color: var(--cw-slate);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 36px;
}

.pub-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.pub-section {
  padding: 72px 48px;
  max-width: 960px;
  margin: 0 auto;
}

.pub-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cw-muted);
  margin-bottom: 12px;
}

.pub-section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 40px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--cw-border);
}

.feature-item {
  padding: 28px 24px;
  border-right: 1px solid var(--cw-border);
  border-bottom: 1px solid var(--cw-border);
}

.feature-item:last-child { border-right: none; }

.feature-icon {
  font-size: 20px;
  color: var(--cw-mid);
  margin-bottom: 14px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--cw-muted);
  line-height: 1.6;
  margin: 0;
}

.pub-footer {
  border-top: 1px solid var(--cw-border);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--cw-muted);
}

/* ─── Auth Pages ─────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  background: var(--cw-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  padding: 40px 44px;
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  font-family: var(--font-display);
  font-size: 22px;
  text-align: center;
  margin-bottom: 4px;
  color: var(--cw-black);
}

.auth-brand em { font-style: italic; color: var(--cw-mid); }

.auth-tagline {
  font-size: 13px;
  color: var(--cw-muted);
  text-align: center;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--cw-muted);
  margin: 20px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--cw-border);
  z-index: 0;
}

.auth-divider span {
  background: var(--cw-white);
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

/* ─── Progress / Loading ─────────────────────────────────────── */
.generating-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}

.generating-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--cw-border);
  border-top-color: var(--cw-black);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-bottom: 20px;
}

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

.generating-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cw-muted);
}

/* ─── Tables ─────────────────────────────────────────────────── */
.cw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cw-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cw-muted);
  font-weight: 400;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cw-border);
  text-align: left;
  background: var(--cw-surface);
}

.cw-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cw-border);
  color: var(--cw-ink);
  vertical-align: middle;
}

.cw-table tr:hover td { background: var(--cw-surface); }

/* ─── Usage Bar ──────────────────────────────────────────────── */
.usage-bar-wrap { margin-bottom: 6px; }

.usage-bar-track {
  height: 3px;
  background: var(--cw-border);
  width: 100%;
  margin: 6px 0 4px;
}

.usage-bar-fill {
  height: 3px;
  background: var(--cw-black);
  transition: width .4s ease;
}

.usage-bar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cw-muted);
  display: flex;
  justify-content: space-between;
}

/* ─── Divider ────────────────────────────────────────────────── */
.cw-divider {
  border: none;
  border-top: 1px solid var(--cw-border);
  margin: 28px 0;
}

/* ─── Empty State ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 40px;
  color: var(--cw-muted);
}

.empty-state i { font-size: 36px; margin-bottom: 16px; display: block; }
.empty-state h3 { font-family: var(--font-display); font-size: 20px; color: var(--cw-slate); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .cw-sidebar {
    transform: translateX(-100%);
  }

  .cw-sidebar.open {
    transform: translateX(0);
  }

  .cw-main {
    margin-left: 0;
  }

  .cw-content {
    padding: 24px 20px;
  }

  .cw-topbar {
    padding: 0 20px;
  }

  .sidebar-toggle { display: block; }

  .pub-hero { padding: 60px 24px 48px; }
  .pub-hero-title { font-size: 36px; }
  .pub-section { padding: 48px 24px; }
  .pub-nav { padding: 16px 24px; }
  .pub-footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }

  .doc-viewer { padding: 24px 20px; }
  .auth-card { padding: 32px 24px; }
}
