/* App pages — same cream palette as the landing (styles.css) */

body.app-page {
  background: var(--cream);
  color: var(--ink-soft);
  min-height: 100vh;
}

body.app-page .oauth-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ——— auth page ——— */

.auth-body {
  background: var(--cream);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr min(100%, 440px);
  gap: 48px;
  align-items: center;
  width: min(100% - 48px, 960px);
  margin: 0 auto;
  padding: 48px 0 80px;
}

.auth-aside h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.auth-benefits {
  list-style: none;
  margin: 0 0 24px;
}

.auth-benefits li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
  color: #5c5752;
  line-height: 1.5;
}

.auth-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.auth-aside-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 36ch;
}

.auth-aside-note code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--leaf-pale);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--forest);
}

.doc-lead strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ——— feedback page ——— */

.feedback-page {
  padding-bottom: 80px;
}

.feedback-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.feedback-header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 40px);
  color: var(--ink);
  margin-bottom: 12px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.feedback-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 12px 32px rgba(47, 74, 58, 0.06);
}

.feedback-tabs {
  margin-bottom: 20px;
  grid-template-columns: 1fr 1fr 1fr;
}

.feedback-hint {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feedback-card textarea {
  width: 100%;
  font: 16px var(--sans);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  margin-bottom: 16px;
  resize: vertical;
  min-height: 140px;
}

.feedback-card textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(95, 125, 106, 0.15);
}

.field-note {
  font-size: 13px;
  color: var(--muted);
  margin: -8px 0 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.feedback-list {
  list-style: none;
}

.feedback-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.feedback-item:last-child {
  border-bottom: none;
}

.feedback-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin: 6px 0 4px;
}

.feedback-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
  background: var(--leaf-pale);
  padding: 2px 8px;
  border-radius: 999px;
}

.feedback-meta {
  font-size: 12px;
  color: var(--muted);
}

.feedback-empty {
  font-size: 14px;
  color: var(--muted);
}

/* ——— product video page ——— */

.demo-page {
  padding-bottom: 80px;
}

.demo-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.demo-header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 42px);
  color: var(--ink);
  margin-bottom: 12px;
}

.demo-video-inline {
  max-width: 720px;
  margin: 28px 0 20px;
}

.demo-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
  max-width: 720px;
  margin-inline: auto;
}

.demo-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(47, 74, 58, 0.05);
}

.demo-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.demo-panel-head h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.demo-select {
  font: 14px var(--sans);
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  max-width: 220px;
}

.demo-terminal {
  background: #1c1917;
  color: #e7e5e4;
  border-radius: 12px;
  padding: 20px;
  min-height: 280px;
  font: 13px/1.6 var(--mono);
  overflow: auto;
}

.demo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #44403c;
  color: #a8a29e;
}

.demo-stats strong {
  color: #fafaf9;
}

.stat-overdue { color: #fca5a5; }
.stat-ready { color: #86efac; }
.stat-pending { color: #fde68a; }

.demo-findings {
  list-style: none;
}

.demo-findings .finding,
.demo-parse-results .finding {
  padding: 10px 0;
  border-bottom: 1px solid #292524;
}

.demo-findings .finding:last-child,
.demo-parse-results .finding:last-child {
  border-bottom: none;
}

.finding-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 8px;
}

.finding.overdue .finding-status { color: #fca5a5; }
.finding.ready .finding-status { color: #86efac; }
.finding.pending .finding-status { color: #fde68a; }

.demo-findings code,
.demo-parse-results code {
  color: #e7e5e4;
  background: none;
  padding: 0;
}

.finding-cond {
  display: block;
  color: #d6d3d1;
  margin-top: 4px;
}

.finding-msg,
.demo-reason {
  display: block;
  color: #a8a29e;
  font-size: 12px;
  margin-top: 2px;
}

.demo-block {
  color: #93c5fd;
  font-size: 11px;
}

.demo-code {
  background: #1c1917;
  color: #e7e5e4;
  border-radius: 12px;
  padding: 16px;
  margin: 0;
  min-height: 280px;
  overflow: auto;
  font: 13px/1.6 var(--mono);
}

.demo-playground {
  margin-top: 0;
}

.demo-playground-input {
  width: 100%;
  font: 13px/1.6 var(--mono);
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
  min-height: 160px;
}

.demo-parse-results {
  list-style: none;
  margin-top: 16px;
  background: #1c1917;
  border-radius: 12px;
  padding: 12px 16px;
  font: 13px/1.6 var(--mono);
}

.demo-loading,
.demo-empty {
  color: #a8a29e;
}

@media (min-width: 768px) {
  .demo-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

.auth-card-wide {
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 28px;
}

.auth-tab {
  font: 500 15px var(--sans);
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active {
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.06);
}

.auth-panel[hidden] {
  display: none;
}

.label-opt {
  font-weight: 400;
  color: var(--faint);
}

.auth-legal {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 12px;
  text-align: center;
}

.auth-legal a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-oauth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-oauth .oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-soft);
}

.auth-oauth .oauth-btn:hover {
  border-color: var(--sage);
  background: var(--leaf-pale);
}

body.app-page .error-msg {
  background: var(--overdue-bg);
  border: 1px solid #e8c4bc;
  color: var(--overdue);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

@media (max-width: 800px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }

  .auth-aside {
    text-align: center;
  }

  .auth-benefits {
    display: inline-block;
    text-align: left;
  }

  .auth-aside-note {
    margin-inline: auto;
  }

  .auth-card-wide {
    justify-self: center;
    max-width: 100%;
  }
}

body.app-page .status-ok {
  color: var(--forest);
  font-size: 14px;
  margin-bottom: 12px;
  text-align: center;
}

body.app-page .user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.app-page .user-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

body.app-page .page-main {
  padding: 48px 0 80px;
}

body.app-page .page-main h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

body.app-page .page-main h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 32px 0 12px;
}

body.app-page .page-main p,
body.app-page .page-main li {
  color: #5c5752;
  line-height: 1.7;
  margin-bottom: 12px;
}

body.app-page .page-main code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #e4efe6;
  border: 1px solid #b8d4be;
  padding: 2px 7px;
  border-radius: 4px;
  color: #2a4536;
}

body.app-page .page-main pre {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--terminal-text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: visible;
  margin: 16px 0;
}

body.app-page .prose-narrow {
  max-width: 680px;
}

body.app-page .text-link {
  color: var(--forest);
  font-weight: 500;
}

body.app-page .text-link:hover {
  color: var(--forest-mid);
}

.success-page {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.success-card {
  width: min(100%, 520px);
  text-align: center;
}

.success-card h1 {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--ink);
  margin-bottom: 12px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.success-note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.success-note code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--leaf-pale);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--forest);
}

.dash-layout {
  max-width: 100%;
}

.dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
}

.feature-item.on { color: var(--ink-soft); }

.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.feature-item.on .feature-mark {
  background: var(--leaf-pale);
  color: var(--forest);
}

.feature-item.off .feature-mark {
  background: var(--cream);
  color: var(--muted);
}

.feature-note {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.meta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 0;
}

.meta-list > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-list dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.meta-list code {
  font-family: var(--mono);
  font-size: 13px;
}

.dash-panel-ci .copy-btn {
  margin-bottom: 16px;
}

.dash-panel-ci .field-note {
  margin-top: 8px;
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .feature-grid,
  .meta-list {
    grid-template-columns: 1fr;
  }
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dash-panel-key {
    grid-column: 1 / -1;
  }
}

.dash-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.dash-panel h2,
.dash-panel h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dash-panel-head h2 { margin-bottom: 0; }

.key-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.key-box .license-key {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  word-break: break-all;
}

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

.code-snippet-sm {
  font-size: 13px;
  margin: 12px 0 8px;
}

.dash-panel-key .copy-btn {
  margin-top: 4px;
  margin-bottom: 20px;
}

.dash-panel-key .field-note {
  margin: 0;
  line-height: 1.55;
}

.limits-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.limits-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.limits-list li:last-child { border-bottom: none; }

.limits-list strong {
  color: var(--ink-soft);
  font-weight: 500;
  text-align: right;
}

.setup-steps-compact li {
  padding-bottom: 20px;
}

.demo-page-simple {
  padding: 48px 0 80px;
}

.demo-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 20px;
}

.install-line-center {
  display: flex;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .dash-stats {
    width: 100%;
  }
  .stat-card {
    flex: 1;
    min-width: 0;
  }
}

body.app-page .doc-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

body.app-page .doc-nav {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.app-page .doc-nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
}

body.app-page .doc-nav a:hover,
body.app-page .doc-nav a.active {
  background: var(--leaf-pale);
  color: var(--forest);
}

@media (max-width: 800px) {
  body.app-page .doc-grid { grid-template-columns: 1fr; }
  body.app-page .doc-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }
  body.app-page .doc-nav-label { width: 100%; }
}

/* ——— docs page ——— */

.doc-content {
  min-width: 0;
  max-width: 720px;
}

.doc-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.doc-header h1 {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.doc-lead {
  font-size: 18px;
  color: #5c5752;
  line-height: 1.65;
  margin-bottom: 28px;
}

.doc-lead em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 500;
}

.doc-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.doc-path-card {
  display: block;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.doc-path-card:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 16px rgba(47, 74, 58, 0.06);
}

.doc-path-card strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.doc-path-card span {
  font-size: 14px;
  color: var(--muted);
}

.doc-nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding: 16px 12px 6px;
  margin: 0;
}

.doc-nav-label:first-child {
  padding-top: 0;
}

.doc-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.doc-section:last-child {
  border-bottom: none;
}

body.app-page .doc-section h2 {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 16px;
}

body.app-page .doc-section h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 28px 0 10px;
}

.doc-steps {
  list-style: none;
  counter-reset: docstep;
  margin: 24px 0;
}

.doc-steps li {
  counter-increment: docstep;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.doc-steps li:first-child {
  padding-top: 0;
}

.doc-steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.doc-steps li strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
}

.doc-steps li strong::before {
  content: counter(docstep) ". ";
  color: var(--sage);
}

.doc-steps-compact li {
  padding: 12px 0;
}

.doc-steps-compact li strong::before {
  content: counter(docstep) ". ";
}

.doc-list {
  margin: 12px 0 20px;
  padding-left: 1.25rem;
}

.doc-list-numbered {
  margin: 12px 0 20px;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.7;
}

.doc-list li {
  margin-bottom: 8px;
}

.doc-list-numbered li {
  margin-bottom: 10px;
}

.code-block {
  position: relative;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  padding: 16px 18px;
  padding-right: 72px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--terminal-text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 12px 0 16px;
}

.doc-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font: 12px var(--sans);
  font-weight: 500;
  color: var(--terminal-dim);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--terminal-border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  z-index: 1;
}

.doc-copy-btn:hover {
  color: var(--terminal-text);
  background: rgba(255, 255, 255, 0.14);
  border-color: #5a5548;
}

.doc-callout {
  padding: 18px 20px;
  border-radius: 12px;
  margin: 24px 0;
  border: 1px solid var(--line);
}

.doc-callout strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}

.doc-callout p {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.doc-callout-tip {
  background: var(--leaf-pale);
  border-color: var(--leaf-soft);
}

.doc-callout-tip strong {
  color: var(--forest);
}

.doc-callout-pro {
  background: var(--paper);
}

.doc-status-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.doc-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.doc-status strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.doc-status p {
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

.doc-status-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
}

.doc-status-dot.pending { background: #c4a882; }
.doc-status-dot.ready { background: var(--ready); }
.doc-status-dot.overdue { background: var(--overdue); }

.doc-examples {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.doc-examples figure {
  margin: 0;
}

.doc-examples figcaption {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.doc-examples .code-block {
  margin: 0;
}

.doc-details {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}

.doc-details summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.doc-details summary::-webkit-details-marker {
  display: none;
}

.doc-details summary::before {
  content: "→ ";
  color: var(--sage);
  display: inline-block;
  transition: transform 0.15s;
}

.doc-details[open] summary::before {
  transform: rotate(90deg);
}

.doc-details > p,
.doc-details > pre,
.doc-details > .doc-table-wrap {
  padding: 0 18px;
}

.doc-details > p:last-child,
.doc-details > pre:last-child,
.doc-details > .doc-table-wrap:last-child {
  padding-bottom: 18px;
}

.doc-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  -webkit-overflow-scrolling: touch;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--leaf-pale);
}

.doc-table td code {
  font-size: 12px;
}

.doc-table-compact td,
.doc-table-compact th {
  padding: 8px 12px;
}

.doc-footer-links {
  margin-top: 24px;
  font-size: 15px;
}

@media (max-width: 640px) {
  .doc-paths {
    grid-template-columns: 1fr;
  }

  .doc-table {
    font-size: 13px;
  }

  .doc-table th,
  .doc-table td {
    padding: 8px 10px;
  }
}
