/* ══════════════════════════════════════════════════
   Nomow Help Center — Design Tokens
   Ported 1:1 from the app design system (src/css/00-design-tokens.css)
   so the knowledge base is visually identical to app.nomow.ai.
   ══════════════════════════════════════════════════ */

/* ── Brand font: Duplet Open (same as the app) ── */
@font-face { font-family:'Duplet Open'; src:url('/assets/fonts/DupletOpen-Light.otf') format('opentype'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'Duplet Open'; src:url('/assets/fonts/DupletOpen-Regular.otf') format('opentype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Duplet Open'; src:url('/assets/fonts/DupletOpen-Italic.otf') format('opentype'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Duplet Open'; src:url('/assets/fonts/DupletOpen-Semibold.otf') format('opentype'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Duplet Open'; src:url('/assets/fonts/DupletOpen-Bold.otf') format('opentype'); font-weight:700; font-style:normal; font-display:swap; }

/* ── Light theme (default) ── */
:root, [data-theme="light"] {
  --font-sans: "Duplet Open", system-ui, -apple-system, sans-serif;
  --font-display: "Duplet Open", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;

  /* Brand — Nomow gradient: pink → orange */
  --brand: #FF2380;
  --brand-end: #FF5B1C;
  --brand-gradient: linear-gradient(135deg, #FF2380, #FF5B1C);
  --brand-dark: #CC1C66;
  --white: #FFFFFF;
  --black: #000000;

  /* Neutral scale */
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-300: #D4D4D4;
  --neutral-400: #A1A1A1;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0A0A0A;

  /* Semantic mapping */
  --bg: var(--neutral-100);
  --surface: var(--white);
  --surface2: var(--neutral-50);
  --border: #1717171A;
  --border-subtle: color-mix(in srgb, #171717 10%, transparent);
  --text: var(--neutral-900);
  --text2: var(--neutral-600);
  --text3: var(--neutral-400);
  --accent: #FF2380;
  --accent2: #FF5B1C;
  --accent-light: rgba(255,35,128,0.06);
  --accent-hover: #E61F73;
  --green: #10B981;
  --red: #EF4444;
  --orange: #F97316;
  --blue: #3B82F6;
  --wa: #25D366;

  --input-bg: var(--white);
  --input-text: var(--neutral-900);
  --hover-bg: rgba(255,91,28,0.04);
  --logo-gradient: linear-gradient(135deg, #FF5B1C, #290938);

  /* Callout surfaces */
  --note-bg: #EFF6FF;     --note-border: #3B82F6;
  --tip-bg: #ECFDF5;      --tip-border: #10B981;
  --warn-bg: #FFFBEB;     --warn-border: #F97316;
  --danger-bg: #FEF2F2;   --danger-border: #EF4444;

  /* Shadows — layered elevation system */
  --shadow: inset 0 0 0 0.5px #17171719;
  --shadow-hover: 0 0.5px 1.5px rgba(0,0,0,0.1), 0 0 0 0.5px rgba(13,27,65,0.05), inset 0 2px 1px rgba(255,255,255,0.06);
  --shadow-card: 0 0.5px 1.5px rgba(0,0,0,0.1), 0 0 0 0.5px rgba(13,27,65,0.05);
  --shadow-float: 0 -1px 0 rgba(255,255,255,0.04), 0 3px 6px rgba(0,0,0,0.04), 0 6px 12px rgba(0,0,0,0.04);
  --shadow-lift: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  /* Motion */
  --duration: 0.15s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Blur */
  --blur-md: 12px;
  --blur-lg: 16px;

  /* ── Knowledge-base layout tokens ── */
  --kb-header-h: 64px;
  --kb-sidebar-w: 280px;
  --kb-toc-w: 240px;
  --kb-content-max: 1320px;
  --kb-prose-max: 760px;
}

/* ── Dark theme ── */
[data-theme="dark"] {
  --bg: var(--neutral-950);
  --surface: var(--neutral-900);
  --surface2: var(--neutral-800);
  --border: rgba(255,255,255,0.08);
  --border-subtle: rgba(255,255,255,0.05);
  --text: #e8eaed;
  --text2: #8b8fa3;
  --text3: #555a6e;
  --accent: #FF4D94;
  --accent2: #FF7A47;
  --accent-light: rgba(255,35,128,0.12);
  --accent-hover: #FF1F73;
  --green: #4ade80;
  --red: #f87171;
  --orange: #fbbf24;
  --blue: #60a5fa;
  --wa: #25D366;
  --input-bg: var(--neutral-950);
  --input-text: #e8eaed;
  --hover-bg: rgba(255,91,28,0.06);
  --logo-gradient: linear-gradient(135deg, #FF5B1C, #C07AFF);

  --note-bg: rgba(96,165,250,0.10);   --note-border: #60a5fa;
  --tip-bg: rgba(74,222,128,0.10);    --tip-border: #4ade80;
  --warn-bg: rgba(251,191,36,0.10);   --warn-border: #fbbf24;
  --danger-bg: rgba(248,113,113,0.10);--danger-border: #f87171;

  --shadow: rgba(255,255,255,0.06) 0px 0px 0px 0.5px inset;
  --shadow-hover: rgba(255,255,255,0.04) 0px 1px 2px 0px, rgba(255,255,255,0.06) 0px 0px 0px 0.5px inset;
  --shadow-card: rgba(255,255,255,0.04) 0px 1px 2px 0px, rgba(255,255,255,0.06) 0px 0px 0px 0.5px inset;
  --shadow-float: rgba(0,0,0,0.3) 0px 8px 16px 0px;
  --shadow-lift: rgba(0,0,0,0.4) 0px 8px 24px 0px;
}

/* ══════════════════════════════════════════════════
   Base — reset, typography, primitives
   ══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum";
  scroll-padding-top: calc(var(--kb-header-h) + 16px);
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }

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

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

code, pre, kbd { font-family: var(--font-mono); }

::selection { background: var(--accent-light); color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  transition: top var(--duration) var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--neutral-300) transparent; }
[data-theme="dark"] * { scrollbar-color: var(--neutral-700) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); background-clip: padding-box; }

/* Layout containers */
.wrap { max-width: var(--kb-content-max); margin-inline: auto; padding-inline: 24px; }

/* Generic gradient text */
.grad-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ══════════════════════════════════════════════════
   Layout — header, sidebar, footer, page grid
   ══════════════════════════════════════════════════ */

/* ── Header ── */
.kb-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--kb-header-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.kb-header__inner {
  height: 100%;
  max-width: var(--kb-content-max);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.kb-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.kb-brand:hover { text-decoration: none; }
.kb-brand img { width: 26px; height: 26px; }
.kb-brand__name { font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -0.02em; }
.kb-brand__sub {
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 7px;
  border-radius: 99px;
}
.kb-header__nav { display: flex; gap: 4px; margin-left: 8px; }
.kb-header__nav a {
  color: var(--text2);
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 12px;
  border-radius: var(--radius-lg);
}
.kb-header__nav a:hover { color: var(--text); background: var(--hover-bg); text-decoration: none; }
.kb-header__nav a.active { color: var(--accent); }
.kb-header__spacer { flex: 1; }

.kb-header__search {
  display: flex; align-items: center; gap: 8px;
  width: 240px;
  height: 38px;
  padding: 0 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text3);
  font-size: 13px;
  transition: border-color var(--duration) var(--ease);
}
.kb-header__search:hover { border-color: var(--text3); }
.kb-header__search kbd {
  margin-left: auto;
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  color: var(--text3);
}
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text2);
}
.icon-btn:hover { color: var(--accent); border-color: var(--text3); }
.icon-btn svg { width: 18px; height: 18px; }

.kb-burger { display: none; }

/* ── App shell grid ── */
.kb-shell {
  max-width: var(--kb-content-max);
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: var(--kb-sidebar-w) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.kb-shell--with-toc {
  grid-template-columns: var(--kb-sidebar-w) minmax(0, 1fr) var(--kb-toc-w);
}

/* ── Sidebar ── */
.kb-sidebar {
  position: sticky;
  top: var(--kb-header-h);
  height: calc(100vh - var(--kb-header-h));
  overflow-y: auto;
  padding: 28px 8px 48px 0;
}
.kb-sidebar__group { margin-bottom: 22px; }
.kb-sidebar__label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 0 12px 8px;
}
.kb-sidebar__label::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 99px; background: var(--accent);
}
.kb-navlink {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px;
  border-radius: var(--radius-lg);
  color: var(--text2);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}
.kb-navlink:hover { background: var(--hover-bg); color: var(--text); text-decoration: none; }
.kb-navlink.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
.kb-navlink svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.kb-navlink__count { margin-left: auto; font-size: 11px; color: var(--text3); font-weight: 600; }

/* ── Main column ── */
.kb-main { padding: 36px 0 96px; min-width: 0; }

/* ── Table of contents (article right rail) ── */
.kb-toc {
  position: sticky;
  top: calc(var(--kb-header-h) + 36px);
  padding: 4px 0;
  font-size: 13px;
}
.kb-toc__title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 10px;
}
.kb-toc a {
  display: block;
  padding: 4px 0 4px 12px;
  color: var(--text2);
  border-left: 2px solid var(--border);
  line-height: 1.4;
}
.kb-toc a:hover { color: var(--text); text-decoration: none; }
.kb-toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.kb-toc a[data-depth="3"] { padding-left: 24px; font-size: 12.5px; }

/* ── Footer ── */
.kb-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 56px;
  margin-top: 64px;
}
.kb-footer__inner {
  max-width: var(--kb-content-max);
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.kb-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 14px; }
.kb-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.kb-footer a { color: var(--text2); font-size: 13.5px; }
.kb-footer a:hover { color: var(--accent); }
.kb-footer__brand p { color: var(--text2); font-size: 13.5px; max-width: 280px; margin-top: 12px; }
.kb-footer__legal {
  max-width: var(--kb-content-max);
  margin: 36px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text3); font-size: 12.5px;
}

/* ── Mobile nav overlay ── */
.kb-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 70;
}

@media (max-width: 1080px) {
  .kb-shell, .kb-shell--with-toc { grid-template-columns: 1fr; gap: 0; }
  .kb-toc { display: none; }
  .kb-burger { display: grid; }
  .kb-header__nav { display: none; }
  .kb-header__search { width: 38px; padding: 0; justify-content: center; }
  .kb-header__search span, .kb-header__search kbd { display: none; }
  .kb-sidebar {
    position: fixed;
    top: var(--kb-header-h); left: 0;
    width: 300px; max-width: 86vw;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 16px 48px;
    transform: translateX(-105%);
    transition: transform var(--duration) var(--ease);
    z-index: 80;
  }
  body.nav-open .kb-sidebar { transform: translateX(0); }
  body.nav-open .kb-scrim { display: block; }
}
@media (max-width: 640px) {
  .wrap, .kb-header__inner, .kb-shell, .kb-footer__inner { padding-inline: 16px; }
  .kb-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  h1 { font-size: 1.6rem; }
}

/* ══════════════════════════════════════════════════
   Components — cards, buttons, badges, hero, search,
   personas, steps, callouts, mockups
   ══════════════════════════════════════════════════ */

/* ── Icon sizing for inline contexts ── */
.kb-header__search svg { width: 16px; height: 16px; }
.hero__eyebrow svg { width: 14px; height: 14px; }
.persona-card__link svg { width: 14px; height: 14px; }
.article-row__arrow { width: 16px; height: 16px; }
.section-head svg, .pager svg { width: 16px; height: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 13.5px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--brand-gradient); color: #fff; }
.btn--primary:hover { filter: brightness(1.06); box-shadow: 0 4px 14px rgba(255,35,128,0.3); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-card); }
.btn--ghost:hover { border-color: var(--text3); color: var(--accent); }
.btn--lg { padding: 12px 22px; font-size: 14.5px; }

/* ── Badges & chips ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border);
}
.badge--accent { background: var(--accent-light); color: var(--accent); border-color: transparent; }
.badge svg { width: 12px; height: 12px; }

.persona-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px 3px 7px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
}
.persona-tag::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--dot, var(--accent)); }
.persona-tag[data-persona="owner"]   { --dot: #FF2380; }
.persona-tag[data-persona="admin"]   { --dot: #8B5CF6; }
.persona-tag[data-persona="manager"] { --dot: #3B82F6; }
.persona-tag[data-persona="agent"]   { --dot: #10B981; }
.persona-tag[data-persona="viewer"]  { --dot: #A1A1A1; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 18% -8%, rgba(255,35,128,0.12), transparent 70%),
    radial-gradient(560px 300px at 92% 0%, rgba(255,91,28,0.10), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; margin-inline: auto; text-align: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-light);
  padding: 5px 12px; border-radius: 99px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.12; }
.hero__lede { color: var(--text2); font-size: 17px; margin: 14px auto 28px; max-width: 560px; }

/* Big search box (home + search page) */
.searchbox {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 560px;
  margin-inline: auto;
  height: 56px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lift);
  cursor: text;
}
.searchbox svg { width: 20px; height: 20px; color: var(--text3); flex-shrink: 0; }
.searchbox input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 16px; color: var(--text);
}
.searchbox input::placeholder { color: var(--text3); }
.searchbox kbd {
  font-size: 11px; color: var(--text3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 2px 7px;
}
.hero__hints { margin-top: 14px; font-size: 13px; color: var(--text3); }
.hero__hints a { color: var(--text2); }

/* ── Section header ── */
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 1.5rem; }
.section-head p { color: var(--text2); margin-top: 4px; }
.section { padding: 56px 0; }
.section + .section { padding-top: 8px; }

/* ── Card grids ── */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* Category card */
.cat-card {
  display: flex; flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.cat-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.cat-card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--radius-lg);
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 14px;
}
.cat-card__icon svg { width: 22px; height: 22px; }
.cat-card h3 { font-size: 15.5px; }
.cat-card p { color: var(--text2); font-size: 13.5px; margin-top: 5px; flex: 1; }
.cat-card__meta { margin-top: 14px; font-size: 12px; color: var(--text3); font-weight: 600; }

/* Persona card */
.persona-card {
  display: flex; flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.persona-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.persona-card__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px; color: #fff;
  margin-bottom: 14px;
}
.persona-card h3 { font-size: 15.5px; }
.persona-card p { color: var(--text2); font-size: 13.5px; margin-top: 5px; flex: 1; }
.persona-card__link { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* Article link list */
.article-list { display: flex; flex-direction: column; }
.article-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
}
.article-row:hover { background: var(--surface); border-color: var(--border); text-decoration: none; }
.article-row__icon {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--surface2);
  color: var(--text3);
}
.article-row__icon svg { width: 15px; height: 15px; }
.article-row__body { min-width: 0; flex: 1; }
.article-row__title { font-weight: 600; font-size: 14px; color: var(--text); }
.article-row__desc { font-size: 12.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-row__arrow { color: var(--text3); flex-shrink: 0; }
.article-row:hover .article-row__arrow { color: var(--accent); }

/* ── Breadcrumbs ── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text3); margin-bottom: 16px; }
.crumbs a { color: var(--text2); }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 13px; height: 13px; }

/* ── Article header ── */
.article-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-head h1 { font-size: clamp(1.7rem, 3vw, 2.15rem); }
.article-head__lede { color: var(--text2); font-size: 16.5px; margin-top: 10px; }
.article-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.article-head__meta .updated { font-size: 12px; color: var(--text3); }

/* ── Callouts ── */
.callout {
  display: flex; gap: 12px;
  padding: 14px 16px;
  margin: 20px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface2);
  border-left: 3px solid var(--text3);
}
.callout__icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.callout__body { font-size: 14px; }
.callout__body > :first-child { margin-top: 0; }
.callout__body > :last-child { margin-bottom: 0; }
.callout__title { font-weight: 700; display: block; margin-bottom: 2px; }
.callout--note   { background: var(--note-bg);   border-left-color: var(--note-border); }
.callout--note   .callout__icon { color: var(--note-border); }
.callout--tip    { background: var(--tip-bg);    border-left-color: var(--tip-border); }
.callout--tip    .callout__icon { color: var(--tip-border); }
.callout--warning{ background: var(--warn-bg);   border-left-color: var(--warn-border); }
.callout--warning .callout__icon { color: var(--warn-border); }
.callout--danger { background: var(--danger-bg); border-left-color: var(--danger-border); }
.callout--danger .callout__icon { color: var(--danger-border); }

/* ── Step list ── */
.steps { counter-reset: step; margin: 24px 0; display: flex; flex-direction: column; gap: 2px; }
.step { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.step:not(:last-child)::before {
  content: ""; position: absolute;
  left: 13px; top: 30px; bottom: 0;
  width: 2px; background: var(--border);
}
.step__num {
  counter-increment: step;
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff; font-weight: 700; font-size: 13px;
  z-index: 1;
}
.step__num::before { content: counter(step); }
.step__body { padding-top: 2px; min-width: 0; flex: 1; }
.step__body > :first-child { margin-top: 0; }
.step__title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }

/* ── Figure / mockup frame ── */
.figure { margin: 24px 0; }
.figure__frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--surface);
}
.figure__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.figure__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.figure__url {
  margin-left: 10px;
  font-size: 11.5px; color: var(--text3);
  font-family: var(--font-mono);
}
.figure figcaption {
  margin-top: 10px;
  font-size: 12.5px; color: var(--text3);
  text-align: center;
}
.figure figcaption strong { color: var(--text2); }

/* ── Video embed slot ── */
.video-embed {
  position: relative;
  margin: 24px 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0A0A0A;
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__placeholder { text-align: center; color: #d4d4d4; }
.video-embed__play {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 8px 30px rgba(255,35,128,0.4);
}
.video-embed__play svg { width: 26px; height: 26px; color: #fff; margin-left: 3px; }
.video-embed__placeholder p { font-weight: 600; font-size: 14px; }
.video-embed__placeholder span { font-size: 12px; color: #8b8b8b; }

/* ── "Was this helpful" ── */
.helpful {
  margin-top: 48px;
  padding: 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.helpful p { font-weight: 600; margin-bottom: 12px; }
.helpful__btns { display: flex; gap: 10px; justify-content: center; }
.helpful__btns button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  font-weight: 600; font-size: 13px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text2);
}
.helpful__btns button:hover { border-color: var(--accent); color: var(--accent); }
.helpful__btns button.selected { background: var(--accent-light); color: var(--accent); border-color: transparent; }
.helpful__btns svg { width: 15px; height: 15px; }
.helpful__thanks { color: var(--text2); font-weight: 500; }

/* ── Prev / next pager ── */
.pager { display: flex; gap: 14px; margin-top: 28px; }
.pager a {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager span { display: block; font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.pager strong { font-size: 14px; color: var(--text); }
.pager a:hover strong { color: var(--accent); }
.pager .next { text-align: right; }

/* ── Empty / 404 ── */
.notice { text-align: center; padding: 80px 24px; max-width: 460px; margin-inline: auto; }
.notice__glyph {
  width: 72px; height: 72px; margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: var(--radius-2xl);
  background: var(--accent-light); color: var(--accent);
}
.notice__glyph svg { width: 34px; height: 34px; }
.notice h1 { font-size: 1.5rem; }
.notice p { color: var(--text2); margin: 8px 0 20px; }

/* ── Search overlay ── */
.search-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 120;
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(4px);
  padding: 10vh 16px 16px;
}
.search-overlay.open { display: block; }
.search-panel {
  max-width: 620px; margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.search-panel__input {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.search-panel__input svg { width: 20px; height: 20px; color: var(--text3); }
.search-panel__input input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 16px; color: var(--text);
}
.search-panel__results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.search-result {
  display: block;
  padding: 11px 12px;
  border-radius: var(--radius-lg);
}
.search-result:hover, .search-result.active { background: var(--hover-bg); text-decoration: none; }
.search-result__cat { font-size: 11px; font-weight: 600; color: var(--accent); }
.search-result__title { font-weight: 600; font-size: 14px; color: var(--text); }
.search-result__excerpt { font-size: 12.5px; color: var(--text3); margin-top: 2px; }
.search-result mark { background: var(--accent-light); color: var(--accent); border-radius: 2px; padding: 0 1px; }
.search-empty { padding: 32px; text-align: center; color: var(--text3); font-size: 13.5px; }
.search-panel__foot {
  display: flex; gap: 14px;
  padding: 9px 16px;
  border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--text3);
}
.search-panel__foot kbd {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1px 5px; margin-right: 3px;
}

/* ── Persona hub ── */
.persona-hero {
  display: flex; align-items: center; gap: 20px;
  padding: 28px;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}
.persona-hero__avatar {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 26px; color: #fff;
}
.persona-hero h1 { font-size: 1.8rem; }
.persona-hero p { color: var(--text2); margin-top: 4px; }

.path { counter-reset: path; display: flex; flex-direction: column; gap: 10px; }
.path__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.path__item:hover { border-color: var(--accent); text-decoration: none; }
.path__num {
  counter-increment: path;
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-weight: 700; font-size: 12px; color: var(--text3);
}
.path__num::before { content: counter(path); }
.path__item:hover .path__num { border-color: var(--accent); color: var(--accent); }
.path__body { flex: 1; min-width: 0; }
.path__body strong { font-size: 14px; }
.path__body span { display: block; font-size: 12.5px; color: var(--text3); }
.path__cat { font-size: 11px; color: var(--text3); font-weight: 600; }

/* ══════════════════════════════════════════════════
   Content — prose styles for rendered article bodies
   ══════════════════════════════════════════════════ */

.prose { max-width: var(--kb-prose-max); }
.prose > :first-child { margin-top: 0; }

.prose p,
.prose ul,
.prose ol,
.prose blockquote { margin: 16px 0; }

.prose h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
  padding-top: 6px;
  scroll-margin-top: calc(var(--kb-header-h) + 20px);
}
.prose h3 {
  font-size: 1.12rem;
  margin: 28px 0 8px;
  scroll-margin-top: calc(var(--kb-header-h) + 20px);
}
.prose h4 { font-size: 1rem; margin: 22px 0 6px; }

/* Anchor link on hover */
.prose h2, .prose h3 { position: relative; }
.heading-anchor {
  position: absolute;
  left: -22px; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--text3);
  font-weight: 400;
  transition: opacity var(--duration) var(--ease);
}
.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor { opacity: 1; }
.heading-anchor:hover { color: var(--accent); text-decoration: none; }

.prose strong { font-weight: 700; color: var(--text); }
.prose em { font-style: italic; }

.prose a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }

/* Lists */
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--text3); }
.prose ul li::marker { color: var(--accent); }
.prose li > ul, .prose li > ol { margin: 5px 0; }

/* Inline code */
.prose code {
  font-size: 0.86em;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5px 5px;
  color: var(--accent);
}

/* Code blocks */
.prose pre {
  position: relative;
  margin: 20px 0;
  background: var(--neutral-950);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.prose pre code {
  display: block;
  background: none; border: none; padding: 16px 18px;
  color: #e8eaed;
  font-size: 13px;
  line-height: 1.6;
}
.code-copy {
  position: absolute; top: 8px; right: 8px;
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 5px 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: #d4d4d4;
}
.code-copy:hover { background: rgba(255,255,255,0.16); color: #fff; }
.code-copy svg { width: 12px; height: 12px; }
.code-copy.done { color: var(--green); }

/* Blockquote */
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  color: var(--text2);
  font-style: italic;
}
.prose blockquote p { margin: 6px 0; }

/* Horizontal rule */
.prose hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* Tables */
.prose .table-wrap { overflow-x: auto; margin: 20px 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.prose thead { background: var(--surface2); }
.prose th {
  text-align: left;
  font-weight: 700;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.prose td { padding: 9px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover { background: var(--hover-bg); }

/* Images inside prose */
.prose img { border-radius: var(--radius-lg); border: 1px solid var(--border); margin: 20px 0; }

/* Keyboard key */
.prose kbd {
  font-size: 0.8em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  color: var(--text2);
}

/* Definition-style lists used in FAQ */
.faq { margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: none; border: none;
  font-family: inherit; font-weight: 600; font-size: 14px;
  color: var(--text); text-align: left;
}
.faq__q svg { width: 16px; height: 16px; margin-left: auto; color: var(--text3); transition: transform var(--duration) var(--ease); }
.faq__item[open] .faq__q svg { transform: rotate(180deg); }
.faq__a { padding: 0 16px 14px; font-size: 14px; color: var(--text2); }
.faq__a > :first-child { margin-top: 0; }

/* ══════════════════════════════════════════════════
   Mockups — illustrative mini-UIs built from the
   Nomow design system (stand in for screenshots)
   ══════════════════════════════════════════════════ */

.mk { background: var(--bg); font-size: 11px; color: var(--text); user-select: none; }
.mk * { box-sizing: border-box; }

/* App shell: mini sidebar + canvas */
.mk-app { display: grid; grid-template-columns: 132px 1fr; min-height: 280px; }
.mk-side {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
}
.mk-side__brand { display: flex; align-items: center; gap: 6px; padding: 2px 6px 12px; }
.mk-side__brand i { width: 16px; height: 16px; border-radius: 5px; background: var(--brand-gradient); display: block; }
.mk-side__brand b { font-size: 11px; font-weight: 700; }
.mk-side__label { font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); padding: 8px 6px 4px; }
.mk-nav { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 6px; color: var(--text2); }
.mk-nav i { width: 11px; height: 11px; border-radius: 3px; background: currentColor; opacity: .45; display: block; flex-shrink: 0; }
.mk-nav.on { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.mk-nav.on i { opacity: 1; }
.mk-canvas { padding: 14px; overflow: hidden; }
.mk-topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mk-topbar h4 { font-size: 13px; font-weight: 700; }
.mk-topbar .sp { flex: 1; }

/* Generic chips & buttons */
.mk-btn { padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 10px; background: var(--brand-gradient); color: #fff; }
.mk-btn.ghost { background: var(--surface); color: var(--text2); border: 1px solid var(--border); }
.mk-chip { padding: 3px 8px; border-radius: 99px; font-size: 9px; font-weight: 600; background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }
.mk-chip.on { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.mk-search { flex: 1; max-width: 180px; height: 22px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--border); }

/* KPI cards */
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.mk-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; }
.mk-kpi .lbl { font-size: 8.5px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mk-kpi .val { font-size: 16px; font-weight: 700; margin-top: 3px; }
.mk-kpi .dl { font-size: 8.5px; font-weight: 600; margin-top: 1px; }
.mk-kpi .dl.up { color: var(--green); }
.mk-kpi .dl.dn { color: var(--red); }

/* Panels */
.mk-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 11px; }
.mk-panel h5 { font-size: 10.5px; font-weight: 700; margin-bottom: 8px; }
.mk-cols { display: grid; gap: 8px; }
.mk-cols.c2 { grid-template-columns: 1fr 1fr; }
.mk-cols.c3 { grid-template-columns: 2fr 1fr; }

/* Bar chart */
.mk-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.mk-bars span { flex: 1; border-radius: 3px 3px 0 0; background: var(--brand-gradient); opacity: .85; }
.mk-bars span:nth-child(even) { opacity: .55; }
/* Funnel */
.mk-funnel { display: flex; flex-direction: column; gap: 5px; }
.mk-funnel span { height: 16px; border-radius: 4px; background: var(--brand-gradient); }
.mk-funnel span:nth-child(1) { width: 100%; }
.mk-funnel span:nth-child(2) { width: 74%; }
.mk-funnel span:nth-child(3) { width: 48%; }
.mk-funnel span:nth-child(4) { width: 27%; }
/* Donut */
.mk-donut {
  width: 76px; height: 76px; border-radius: 50%;
  background: conic-gradient(var(--brand) 0 38%, var(--accent2) 38% 63%, var(--blue) 63% 82%, var(--neutral-300) 82% 100%);
  display: grid; place-items: center; margin: 4px auto;
}
.mk-donut::after { content: ""; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); }

/* Tables */
.mk-table { width: 100%; border-collapse: collapse; }
.mk-table th { text-align: left; font-size: 8.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text3); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.mk-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.mk-table tr:last-child td { border-bottom: none; }
.mk-row-name { display: flex; align-items: center; gap: 7px; }
.mk-av { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 700; }
.mk-row-name b { font-size: 10px; font-weight: 600; }
.mk-row-name small { display: block; font-size: 8.5px; color: var(--text3); }

/* Stage tags */
.mk-tag { padding: 2px 7px; border-radius: 99px; font-size: 8.5px; font-weight: 600; }
.mk-tag.cold { background: var(--surface2); color: var(--text2); }
.mk-tag.lead { background: var(--accent-light); color: var(--accent); }
.mk-tag.won { background: rgba(16,185,129,.12); color: var(--green); }
.mk-tag.lost { background: rgba(239,68,68,.12); color: var(--red); }
.mk-tag.prop { background: rgba(249,115,22,.12); color: var(--orange); }
.mk-score { padding: 2px 6px; border-radius: 5px; font-size: 9px; font-weight: 700; }
.mk-score.hot { background: var(--accent-light); color: var(--accent); }
.mk-score.warm { background: rgba(249,115,22,.12); color: var(--orange); }
.mk-score.cold { background: var(--surface2); color: var(--text3); }

/* Kanban */
.mk-kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mk-kcol { background: var(--surface2); border-radius: 8px; padding: 7px; }
.mk-kcol__head { display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 700; margin-bottom: 7px; }
.mk-kcol__head i { width: 6px; height: 6px; border-radius: 50%; }
.mk-kcol__head small { margin-left: auto; color: var(--text3); }
.mk-deal { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 7px 8px; margin-bottom: 6px; box-shadow: var(--shadow-card); }
.mk-deal:last-child { margin-bottom: 0; }
.mk-deal b { font-size: 9.5px; font-weight: 600; }
.mk-deal .co { font-size: 8.5px; color: var(--text3); }
.mk-deal__foot { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.mk-deal__val { font-size: 9.5px; font-weight: 700; }
.mk-deal__foot .sp { flex: 1; }

/* Wizard steps */
.mk-wizard { display: flex; gap: 6px; margin-bottom: 12px; }
.mk-wstep { flex: 1; text-align: center; }
.mk-wstep i { display: block; height: 3px; border-radius: 99px; background: var(--border); margin-bottom: 4px; }
.mk-wstep span { font-size: 8.5px; color: var(--text3); font-weight: 600; }
.mk-wstep.done i { background: var(--accent2); }
.mk-wstep.done span { color: var(--text2); }
.mk-wstep.on i { background: var(--brand-gradient); }
.mk-wstep.on span { color: var(--accent); }

/* Form field rows */
.mk-field { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px 9px; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.mk-field .grab { color: var(--text3); font-size: 11px; line-height: 1; }
.mk-field b { font-size: 9.5px; font-weight: 600; }
.mk-field small { font-size: 8.5px; color: var(--text3); }
.mk-field .sp { flex: 1; }
.mk-input { height: 24px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--border); }
.mk-label { font-size: 9px; font-weight: 600; color: var(--text2); margin-bottom: 3px; display: block; }

/* Booking calendar */
.mk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mk-cal span { aspect-ratio: 1; border-radius: 5px; background: var(--surface2); display: grid; place-items: center; font-size: 8.5px; color: var(--text2); }
.mk-cal span.dim { opacity: .35; }
.mk-cal span.on { background: var(--brand-gradient); color: #fff; font-weight: 700; }
.mk-cal span.has { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font-weight: 600; }
.mk-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.mk-slot { height: 22px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; font-size: 9px; font-weight: 600; color: var(--text2); }
.mk-slot.on { background: var(--accent-light); color: var(--accent); border-color: transparent; }

/* Generic skeleton lines */
.mk-sk { height: 8px; border-radius: 99px; background: var(--surface2); margin: 5px 0; }
.mk-sk.w70 { width: 70%; } .mk-sk.w50 { width: 50%; } .mk-sk.w40 { width: 40%; }

/* Stage stepper */
.mk-stepper { display: flex; gap: 3px; }
.mk-stepper i { flex: 1; height: 5px; border-radius: 99px; background: var(--border); }
.mk-stepper i.passed { background: var(--red); }
.mk-stepper i.active { background: var(--brand-gradient); }

/* Avatar palette helpers */
.av-pink { background: #FF2380; } .av-orange { background: #FF5B1C; }
.av-blue { background: #3B82F6; } .av-green { background: #10B981; }
.av-violet { background: #8B5CF6; }

@media (max-width: 560px) {
  .mk-app { grid-template-columns: 1fr; }
  .mk-side { display: none; }
  .mk-kpis, .mk-kanban { grid-template-columns: repeat(2, 1fr); }
  .mk-cols.c2, .mk-cols.c3 { grid-template-columns: 1fr; }
}
