/* ════════════════════════════════════════════════════════════════════
   ENSURE Docs — shared stylesheet
   ════════════════════════════════════════════════════════════════════
   Aligned with the main brand: ink + paper neutrals, safety-orange
   accent (the "sacred dot"), Geist for everything except the logo
   which uses Fugaz One.
   ──────────────────────────────────────────────────────────────────── */
:root {
  /* Brand neutrals (ink + paper system) */
  --doc-bg:        #FAFAFA;
  --doc-card:      #FFFFFF;
  --doc-surface-2: #F4F4F5;
  --doc-border:    #E5E5E5;
  --doc-border-2:  #D4D4D4;
  --doc-text:      #0A0A0A;
  --doc-text-2:    #3F3F3F;
  --doc-text-3:    #6B6B6B;

  /* Brand accents */
  --doc-ink:       #0A0A0A;   /* primary buttons / wordmark */
  --doc-ink-hover: #171717;
  --doc-orange:    #EA580C;   /* safety orange — the dot, sacred */
  --doc-orange-l:  #FFEDD5;
  --doc-orange-d:  #C2410C;

  /* KPI accents (from the main palette) */
  --doc-red:       #DC2626;
  --doc-red-l:     #FEE2E2;
  --doc-amber:     #D97706;
  --doc-amber-l:   #FEF3C7;
  --doc-green:     #059669;
  --doc-green-l:   #D1FAE5;
  --doc-blue:      #2563EB;
  --doc-blue-l:    #DBEAFE;

  --doc-radius:    14px;

  /* Type stack — Inter for body (matches the app), Fugaz One for the wordmark. */
  --doc-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --doc-display: 'Fugaz One', cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--doc-bg);
  color: var(--doc-text);
  font-family: var(--doc-sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Inter's tabular-numerals + contextual-alternates keep numbers tidy */
  font-feature-settings: 'tnum', 'cv11', 'cv05';
}

a { color: var(--doc-ink); text-decoration: none; transition: opacity .12s; }
a:hover { opacity: .7; text-decoration: underline; }

/* ── Top nav ── */
.doc-nav {
  background: var(--doc-card);
  border-bottom: 1px solid var(--doc-border);
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.doc-nav-brand {
  font-family: var(--doc-display);
  font-size: 28px; font-weight: 400; letter-spacing: 0; line-height: 1;
  color: var(--doc-ink);
  display: inline-flex; align-items: baseline; gap: 0;
}
.doc-nav-brand:hover { opacity: 1; text-decoration: none; }
.doc-nav-brand .dot { color: var(--doc-orange); }
.doc-nav-suffix {
  font-family: var(--doc-sans);
  font-size: 12.5px; font-weight: 500;
  color: var(--doc-text-3);
  letter-spacing: .04em; text-transform: uppercase;
  margin-left: 10px; padding: 3px 8px;
  border: 1px solid var(--doc-border);
  border-radius: 99px;
  position: relative; top: -3px;
}
.doc-nav-meta { font-size: 13.5px; color: var(--doc-text-3); }
.doc-nav-meta a {
  color: var(--doc-text-2); margin-left: 18px; font-weight: 500;
  font-size: 13.5px;
}

/* ── Layout ── */
.doc-shell { max-width: 880px; margin: 0 auto; padding: 56px 28px 80px; }
.doc-shell--wide { max-width: 1080px; }

/* ── Hub head ── */
.doc-hub-head { margin-bottom: 48px; }
.doc-hub-head h1 {
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  color: var(--doc-text);
  line-height: 1.05;
}
.doc-hub-head p {
  font-size: 17.5px;
  color: var(--doc-text-2);
  margin: 0; max-width: 640px;
  line-height: 1.55;
}

.doc-section-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--doc-text-3);
  margin: 36px 0 14px;
  font-family: var(--doc-sans);
}

.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.doc-card {
  display: block;
  background: var(--doc-card);
  border: 1px solid var(--doc-border);
  border-radius: var(--doc-radius);
  padding: 22px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s;
  color: inherit; text-decoration: none;
}
.doc-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(10,10,10,.06);
  border-color: var(--doc-border-2);
  text-decoration: none; opacity: 1;
}
.doc-card-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--doc-surface-2); color: var(--doc-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  margin-bottom: 14px;
}
.doc-card-icon--orange  { background: var(--doc-orange-l); color: var(--doc-orange-d); }
.doc-card-icon--success { background: var(--doc-green-l);  color: var(--doc-green); }
.doc-card-icon--danger  { background: var(--doc-red-l);    color: var(--doc-red); }
.doc-card-icon--info    { background: var(--doc-blue-l);   color: var(--doc-blue); }
.doc-card h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; color: var(--doc-text); letter-spacing: -.005em; }
.doc-card p  { font-size: 13.5px; color: var(--doc-text-2); margin: 0; line-height: 1.5; }

/* ── Article ── */
.doc-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--doc-text-3); font-weight: 500;
  margin-bottom: 22px;
}
.doc-back:hover { color: var(--doc-text-2); text-decoration: none; opacity: 1; }
.doc-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--doc-orange);
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 12px;
}
.doc-h1 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  line-height: 1.1;
  color: var(--doc-text);
}
.doc-lede {
  font-size: 18px;
  color: var(--doc-text-2);
  line-height: 1.6;
  margin: 0 0 6px;
  max-width: 680px;
}
.doc-meta {
  margin-top: 20px;
  font-size: 13px; color: var(--doc-text-3);
  display: flex; gap: 16px; flex-wrap: wrap;
  font-weight: 500;
}
.doc-meta span::before { content: '·'; margin-right: 8px; color: var(--doc-text-3); }
.doc-meta span:first-child::before { content: ''; margin-right: 0; }

/* ── TL;DR card ── */
.doc-tldr {
  background: var(--doc-card);
  border: 1px solid var(--doc-border);
  border-radius: var(--doc-radius);
  padding: 22px 26px;
  margin: 36px 0 30px;
}
.doc-tldr-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--doc-orange); text-transform: uppercase;
  margin-bottom: 10px;
}
.doc-tldr h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--doc-text);
  letter-spacing: -.005em;
}
.doc-tldr p, .doc-tldr ul {
  margin: 0;
  color: var(--doc-text-2);
  font-size: 14.5px;
  line-height: 1.65;
}
.doc-tldr ul { padding-left: 18px; }
.doc-tldr ul li { margin: 4px 0; }
.doc-tldr code { color: var(--doc-text); background: var(--doc-surface-2); padding: 1px 6px; border-radius: 4px; font-size: 13.5px; }

/* ── Section heading inside article ── */
.doc-h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 56px 0 16px;
  color: var(--doc-text);
  letter-spacing: -.015em;
}
.doc-h2 + p { color: var(--doc-text-2); }
.doc-p { color: var(--doc-text-2); font-size: 16px; line-height: 1.7; }

/* ── Callouts ── */
.callout {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
  border: 1px solid;
  font-size: 14.5px;
  display: flex; gap: 12px; align-items: flex-start;
  line-height: 1.6;
}
.callout-emoji { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.callout-body { color: var(--doc-text); }
.callout-body strong { color: var(--doc-text); font-weight: 700; }
.callout-info     { background: var(--doc-surface-2); border-color: var(--doc-border); }
.callout-warning  { background: var(--doc-amber-l);   border-color: #FCD34D; }
.callout-danger   { background: var(--doc-red-l);     border-color: #FCA5A5; }
.callout-success  { background: var(--doc-green-l);   border-color: #6EE7B7; }
.callout-tip      { background: var(--doc-orange-l);  border-color: #FED7AA; }

/* ── Steps ── */
.doc-step {
  background: var(--doc-card);
  border: 1px solid var(--doc-border);
  border-radius: var(--doc-radius);
  padding: 28px;
  margin: 18px 0;
}
.doc-step-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.doc-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--doc-ink); color: #fff;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--doc-sans);
}
.doc-step-title {
  font-size: 21px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
  color: var(--doc-text);
}
.doc-step-body { color: var(--doc-text-2); font-size: 16px; line-height: 1.7; }
.doc-step-body strong { color: var(--doc-text); font-weight: 700; }
.doc-step-body code {
  background: var(--doc-surface-2);
  padding: 1px 6px; border-radius: 5px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13.5px; color: var(--doc-text);
}
.doc-step-body ul { padding-left: 20px; margin: 8px 0; }
.doc-step-body ul li { margin: 4px 0; }

/* ── Screenshot frame ── */
.screenshot {
  background: var(--doc-bg);
  border: 1px solid var(--doc-border);
  border-radius: 10px;
  margin: 16px 0;
  overflow: hidden;
}
.screenshot img { display: block; width: 100%; height: auto; }
.screenshot-placeholder {
  background: repeating-linear-gradient(
    -45deg, #F4F4F5, #F4F4F5 8px, #E5E5E5 8px, #E5E5E5 16px
  );
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  font-size: 13px; color: var(--doc-text-3);
  font-style: italic;
}
.screenshot-caption {
  background: var(--doc-card);
  border-top: 1px solid var(--doc-border);
  font-size: 12.5px;
  color: var(--doc-text-3);
  padding: 8px 14px;
  text-align: center;
}

/* ── Lifecycle dots ── */
.lifecycle {
  display: flex; align-items: center; gap: 0;
  margin: 18px 0;
  flex-wrap: wrap;
}
.lifecycle-step {
  display: flex; align-items: center; gap: 8px;
  background: var(--doc-card);
  border: 1px solid var(--doc-border);
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--doc-text-2);
}
.lifecycle-step::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--doc-ink);
}
.lifecycle-arrow {
  color: var(--doc-text-3); margin: 0 6px;
  font-size: 12px;
}

/* ── Related guides ── */
.doc-footer {
  margin-top: 64px; padding-top: 30px;
  border-top: 1px solid var(--doc-border);
}
.doc-footer h3 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--doc-text-3);
  margin: 0 0 14px;
}

/* ── Page footer ── */
.doc-footer-meta {
  margin-top: 60px; padding-top: 28px;
  border-top: 1px solid var(--doc-border);
  font-size: 13px; color: var(--doc-text-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.doc-footer-meta a { color: var(--doc-text-2); }

/* ════════════════════════════════════════════════════════════════════
   UI MOCKS — coded recreations of the app interface for the guides.
   Each mock is a self-contained .ui-mock container with sidebar, topbar
   and content. Add .ui-mock-highlight to draw a 2.5px red outline +
   soft red glow on whichever element the step is teaching.
   ──────────────────────────────────────────────────────────────────── */
.ui-mock {
  background: #FAFAFA;
  border: 1px solid var(--doc-border);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 132px 1fr;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  color: #0A0A0A;
  margin: 16px 0;
  box-shadow: 0 6px 18px rgba(10,10,10,0.05);
  position: relative;
  isolation: isolate;
  line-height: 1.35;
}

/* ── Sidebar ── */
.ui-mock-sb {
  background: #FFFFFF;
  border-right: 1px solid var(--doc-border);
  padding: 9px 0 0;
  display: flex; flex-direction: column;
  min-height: 240px;
}
.ui-mock-sb-logo {
  padding: 2px 12px 9px;
  font-family: 'Fugaz One', cursive;
  font-size: 15px; font-weight: 400; letter-spacing: 0;
  color: #0A0A0A; line-height: 1;
  display: inline-flex; align-items: baseline;
}
.ui-mock-sb-logo .dot { color: #EA580C; }
.ui-mock-sb-section {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #94A3B8;
  text-transform: uppercase;
  padding: 9px 12px 3px;
  display: flex; align-items: center; gap: 3px;
}
.ui-mock-sb-section::before {
  content: '▾';
  font-size: 7px;
  opacity: .5;
}
.ui-mock-sb-item {
  display: flex; align-items: center; gap: 7px;
  padding: 3.5px 12px;
  font-size: 10.5px; font-weight: 500;
  color: #262626;
  cursor: default;
  position: relative;
  white-space: nowrap;
}
.ui-mock-sb-item .ui-mock-ico { color: #525252; width: 11px; height: 11px; }
.ui-mock-sb-item--active {
  background: #F4F4F5;
  font-weight: 600;
}
.ui-mock-sb-item--active::before {
  content: ''; position: absolute; left: 0; top: 1.5px; bottom: 1.5px;
  width: 2px; background: #0A0A0A; border-radius: 1px;
}
.ui-mock-sb-spacer { flex: 1; }
.ui-mock-sb-user {
  border-top: 1px solid var(--doc-border);
  padding: 8px 10px;
  display: flex; align-items: center; gap: 7px;
}
.ui-mock-sb-user-av {
  width: 20px; height: 20px; border-radius: 50%;
  background: #0A0A0A; color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ui-mock-sb-user-meta { flex: 1; min-width: 0; }
.ui-mock-sb-user-name { font-size: 10.5px; font-weight: 600; color: #0A0A0A; line-height: 1.15; }
.ui-mock-sb-user-role { font-size: 9px; color: #94A3B8; line-height: 1.15; margin-top: 1px; }
.ui-mock-sb-cog { color: #94A3B8; width: 11px; height: 11px; }

/* ── Topbar ── */
.ui-mock-main { display: flex; flex-direction: column; min-width: 0; }
.ui-mock-tb {
  height: 38px;
  border-bottom: 1px solid var(--doc-border);
  background: #FFFFFF;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
}
.ui-mock-tb-title { font-size: 11px; font-weight: 600; color: #262626; flex-shrink: 0; }
.ui-mock-search {
  flex: 1; max-width: 220px; margin: 0 auto;
  background: #F4F4F5; border-radius: 7px;
  height: 22px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 9px;
  font-size: 9.5px; color: #94A3B8;
  min-width: 0;
}
.ui-mock-search span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui-mock-tb-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.ui-mock-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #E5E5E5; background: #FFFFFF;
  border-radius: 6px;
  font-size: 9.5px; font-weight: 600;
  padding: 3px 8px;
  color: #262626;
  white-space: nowrap;
}
.ui-mock-btn--dark {
  background: #0A0A0A; color: #FFFFFF; border-color: #0A0A0A;
}
.ui-mock-btn--icon {
  width: 22px; height: 22px; padding: 0;
  justify-content: center; color: #525252;
  font-size: 11px;
}
.ui-mock-btn--circle {
  width: 22px; height: 22px; padding: 0;
  border-radius: 50%; justify-content: center; color: #525252;
  font-size: 11px;
}
.ui-mock-bell { color: #525252; width: 13px; height: 13px; }

/* ── Content ── */
.ui-mock-content { flex: 1; padding: 14px 16px; background: #FAFAFA; min-width: 0; }
.ui-mock-page-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 12px;
}
.ui-mock-page-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 3px; color: #0A0A0A; line-height: 1; }
.ui-mock-page-subtitle {
  font-size: 9.5px; color: #6B6B6B;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.ui-mock-page-subtitle strong { color: #0A0A0A; font-weight: 600; }
.ui-mock-page-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.ui-mock-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 2px; opacity: .85; }
.ui-mock-dot--amber { background: #F59E0B; }
.ui-mock-dot--gray  { background: #6B6B6B; }
.ui-mock-dot--blue  { background: #93C5FD; }
.ui-mock-dot--green { background: #6EE7B7; }
.ui-mock-dot--red   { background: #FCA5A5; }
.ui-mock-sep { color: #D4D4D4; margin: 0 1px; }

/* Tabs */
.ui-mock-tabs-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 8px; flex-wrap: nowrap;
}
.ui-mock-tabs { display: flex; gap: 3px; flex-shrink: 0; }
.ui-mock-tab {
  font-size: 9.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 99px;
  border: 1px solid transparent; color: #6B6B6B;
  white-space: nowrap;
}
.ui-mock-tab--all     { border-color: #0A0A0A; color: #0A0A0A; }
.ui-mock-tab--open    { color: #C2410C; }
.ui-mock-tab--prog    { color: #525252; }
.ui-mock-tab--overdue { color: #DC2626; }
.ui-mock-tab--closed  { color: #059669; border-color: #D1FAE5; background: #ECFDF5; }
.ui-mock-tabs-meta { display: flex; gap: 9px; font-size: 9.5px; color: #525252; font-weight: 500; flex-shrink: 0; }
.ui-mock-tabs-meta-item { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }

/* Table */
.ui-mock-table {
  background: #FFFFFF;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  min-height: 160px;
  overflow: hidden;
}
.ui-mock-thead {
  background: #FAFAFA;
  border-bottom: 1px solid var(--doc-border);
  display: grid;
  grid-template-columns: 26px 60px 60px 1.4fr 1fr 90px;
  align-items: center;
  height: 28px;
  padding: 0 0 0 9px;
  font-size: 8.5px; font-weight: 700;
  color: #6B6B6B;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ui-mock-th {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 0 8px;
  border-left: 1px solid var(--doc-border);
  height: 100%;
  white-space: nowrap;
}
.ui-mock-th:first-child, .ui-mock-th:nth-child(2) { border-left: none; }
.ui-mock-th .sort {
  font-size: 8px; opacity: .5;
}
.ui-mock-cb {
  width: 11px; height: 11px;
  border: 1px solid #D4D4D4;
  border-radius: 2.5px;
  display: inline-block;
}
.ui-mock-tbody-empty { height: 40px; }

/* ── Form-view shell (used for record-detail pages like "New CAPA") ── */
.ui-mock-form-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.ui-mock-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; color: #262626; font-weight: 600;
  padding: 3px 8px; border: 1px solid #E5E5E5;
  border-radius: 6px; background: #fff;
}
.ui-mock-form-title { font-size: 13px; font-weight: 700; color: #0A0A0A; }
.ui-mock-spacer { flex: 1; }
.ui-mock-pill {
  font-size: 8.5px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 99px;
}
.ui-mock-pill--draft { background: #FFEDD5; color: #C2410C; }

.ui-mock-form-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px;
  align-items: start;
}
.ui-mock-card {
  background: #FFFFFF; border: 1px solid var(--doc-border);
  border-radius: 8px; padding: 12px 14px;
  margin-bottom: 8px;
}
.ui-mock-card-title { font-size: 11px; font-weight: 700; margin: 0 0 9px; color: #0A0A0A; }
.ui-mock-card-desc { font-size: 9.5px; color: #6B6B6B; margin: 0 0 8px; line-height: 1.45; }

.ui-mock-field { margin-bottom: 8px; }
.ui-mock-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-mock-flbl { font-size: 9px; font-weight: 600; color: #0A0A0A; margin-bottom: 3px; display: block; }
.ui-mock-flbl .req { color: #DC2626; margin-left: 2px; }
.ui-mock-inp, .ui-mock-sel, .ui-mock-ta {
  background: #fff; border: 1px solid #E5E5E5; border-radius: 5px;
  font-size: 9px; color: #94A3B8; font-family: 'Inter', sans-serif;
  padding: 4px 7px; height: 22px; width: 100%;
  display: flex; align-items: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui-mock-inp--filled, .ui-mock-sel--filled { color: #0A0A0A; }
.ui-mock-ta { height: 38px; align-items: flex-start; padding-top: 4px; }
.ui-mock-sel::after { content: '▾'; margin-left: auto; opacity: .6; }
.ui-mock-sel { padding-right: 22px; }

.ui-mock-radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.ui-mock-radio {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #E5E5E5; border-radius: 6px;
  padding: 6px 9px; font-size: 9.5px; color: #262626; font-weight: 500;
  background: #fff;
}
.ui-mock-radio-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid #94A3B8; flex-shrink: 0;
  background: #fff; position: relative;
}
.ui-mock-radio--on .ui-mock-radio-dot { border-color: #2563EB; }
.ui-mock-radio--on .ui-mock-radio-dot::after {
  content: ''; position: absolute; inset: 2px;
  border-radius: 50%; background: #2563EB;
}

.ui-mock-numbered { margin: 0; padding-left: 16px; }
.ui-mock-numbered li {
  font-size: 9px; color: #3F3F3F; line-height: 1.55;
  margin-bottom: 5px;
}
.ui-mock-numbered li strong { color: #0A0A0A; }

.ui-mock-attach {
  border: 1px dashed #D4D4D4; border-radius: 6px;
  padding: 12px; text-align: center;
  font-size: 9.5px; color: #94A3B8; font-weight: 500;
  background: #FAFAFA;
}

.ui-mock-create-btn {
  display: block; width: 100%; margin-top: 4px;
  background: #0A0A0A; color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 10px; border-radius: 8px;
  border: 1px solid #0A0A0A;
  text-align: center;
}

/* ── Highlight ── */
.ui-mock-highlight {
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 2.5px #EF4444,
    0 0 0 7px rgba(239, 68, 68, 0.18);
  border-radius: 6px;
  animation: ui-mock-pulse 2s ease-in-out infinite;
}
@keyframes ui-mock-pulse {
  0%, 100% { box-shadow: 0 0 0 2.5px #EF4444, 0 0 0 7px rgba(239, 68, 68, 0.18); }
  50%      { box-shadow: 0 0 0 2.5px #EF4444, 0 0 0 9px rgba(239, 68, 68, 0.10); }
}
@media (prefers-reduced-motion: reduce) {
  .ui-mock-highlight { animation: none; }
}

/* ── Small inline SVG sizing ── */
.ui-mock-ico { width: 14px; height: 14px; flex-shrink: 0; }
.ui-mock-ico--sm { width: 12px; height: 12px; }

/* Mobile: collapse sidebar */
@media (max-width: 640px) {
  .ui-mock { grid-template-columns: 1fr; }
  .ui-mock-sb { display: none; }
  .ui-mock-thead { grid-template-columns: 32px 70px 1fr 80px; }
  .ui-mock-thead > .ui-mock-th:nth-child(n+5) { display: none; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .doc-shell { padding: 36px 18px 60px; }
  .doc-h1 { font-size: 32px; }
  .doc-h2 { font-size: 22px; margin-top: 40px; }
  .doc-hub-head h1 { font-size: 30px; }
  .doc-step { padding: 22px 18px; }
  .doc-nav { padding: 14px 18px; }
  .doc-nav-brand { font-size: 24px; }
  .doc-nav-suffix { display: none; }
  .doc-nav-meta a { margin-left: 10px; }
}
