/* iSmart Suite help centre — the user guide.
 *
 * Laid out like the console it explains: a dark bar across the top, the menu down the left, lists in
 * panels on the right. Someone who has spent a day in the product already knows how to move around
 * here, and someone reading this first learns the product's shape before they sign in.
 *
 * Mobile first, and not as a slogan: this is read one-handed, on a phone, in a warehouse or a van,
 * usually while something is going wrong. Every rule starts from the narrow screen and only widens
 * at a breakpoint. Nothing depends on hover, because a thumb cannot hover.
 *
 * Dark mode follows the platform's pattern: the media query carries the default, and an explicit
 * [data-theme] wins over it. The values are duplicated between the two blocks because CSS cannot
 * share a declaration between a media query and a selector — if you change one, change the other.
 *
 * No style attributes anywhere in the markup: the site's policy is style-src 'self'.
 */

:root {
  --g-bg: #F3F6F8;
  --g-panel: #ffffff;
  --g-ink: #0D2137;
  --g-muted: #4D6275;
  --g-line: #D9E3E9;
  --g-ice: #EEF3F6;
  --g-link: #1C53E3;
  --g-accent: #00F5C4;
  --g-accent-ink: #0D2137;
  --g-focus: #1C53E3;
  --g-bar: #0D2137;
  --g-bar-line: #0D2137;
  --g-aqua: #00C9A7;
  --g-warn-bg: #FFF6E6;
  --g-warn-line: #A85B00;
  --g-code-bg: #EEF3F6;
  --g-shadow: 0 1px 2px rgba(13, 33, 55, .05);
  --c-teal: #00806B;
  --c-blue: #1C53E3;
  --c-amber: #A85B00;
  --c-violet: #6442C9;
  --c-slate: #3F566B;
  --c-green: #1B7F3B;
  --c-rose: #C2315F;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --g-bg: #071726;
    --g-panel: #0D2137;
    --g-ink: #E8F0F5;
    --g-muted: #9DB1C0;
    --g-line: #1F3A52;
    --g-ice: #123049;
    --g-link: #8FB0FF;
    --g-accent: #00F5C4;
    --g-accent-ink: #0D2137;
    --g-focus: #00F5C4;
    --g-bar: #06121E;
    --g-bar-line: #1F3A52;
    --g-aqua: #00F5C4;
    --g-warn-bg: #2A2008;
    --g-warn-line: #F7A94A;
    --g-code-bg: #123049;
    --g-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --c-teal: #00F5C4;
    --c-blue: #8FB0FF;
    --c-amber: #F7A94A;
    --c-violet: #B49CFF;
    --c-slate: #A9BCD0;
    --c-green: #5FD48A;
    --c-rose: #FF8FB0;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --g-bg: #071726;
  --g-panel: #0D2137;
  --g-ink: #E8F0F5;
  --g-muted: #9DB1C0;
  --g-line: #1F3A52;
  --g-ice: #123049;
  --g-link: #8FB0FF;
  --g-accent: #00F5C4;
  --g-accent-ink: #0D2137;
  --g-focus: #00F5C4;
  --g-bar: #06121E;
  --g-bar-line: #1F3A52;
  --g-aqua: #00F5C4;
  --g-warn-bg: #2A2008;
  --g-warn-line: #F7A94A;
  --g-code-bg: #123049;
  --g-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --c-teal: #00F5C4;
  --c-blue: #8FB0FF;
  --c-amber: #F7A94A;
  --c-violet: #B49CFF;
  --c-slate: #A9BCD0;
  --c-green: #5FD48A;
  --c-rose: #FF8FB0;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body.guide {
  margin: 0;
  background: var(--g-bg);
  color: var(--g-ink);
  font: 16px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 90; background: var(--g-accent); color: var(--g-accent-ink); padding: 10px 14px; border-radius: 8px; }

a { color: var(--g-link); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--g-focus); outline-offset: 2px;
}
.ico { display: block; flex: none; }

/* ---------------------------------------------------------------- the bar across the top */
.kb-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 10px 16px;
  background: var(--g-bar); border-bottom: 1px solid var(--g-bar-line); color: #fff;
}
.kb-top a:focus-visible, .kb-top input:focus-visible, .kb-top button:focus-visible { outline-color: #00F5C4; }
.kb-burger {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; margin-left: -6px; border-radius: 10px; cursor: pointer; color: #fff;
}
.kb-burger:active { background: rgba(255, 255, 255, .1); }
body:has(.kb-toggle:focus-visible) .kb-burger { outline: 3px solid #00F5C4; outline-offset: 2px; }
.kb-brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: #fff; }
.kb-brand img { display: block; height: 22px; width: auto; flex: none; }
.kb-brand span {
  padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .22);
  font: 700 14px/1.2 "Manrope", "Inter", sans-serif; color: rgba(255, 255, 255, .78); white-space: nowrap;
}
.gsearch {
  order: 5; flex: 1 0 100%; position: relative; display: flex;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px;
}
.gsearch:focus-within { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .4); }
.gsearch .ico { position: absolute; left: 12px; top: 50%; margin-top: -10px; color: rgba(255, 255, 255, .62); pointer-events: none; }
.gsearch input {
  flex: 1; min-width: 0; font: inherit; padding: 10px 12px 10px 42px;
  border: 0; border-radius: 10px; background: transparent; color: #fff;
}
.gsearch input::placeholder { color: rgba(255, 255, 255, .58); }
.gsearch input::-webkit-search-cancel-button { filter: invert(1); opacity: .7; }
/* The button stays for a keyboard and a screen reader; Enter does the same job for everyone else. */
.gsearch button { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.gsearch button:focus-visible {
  position: static; width: auto; height: auto; margin: 4px; padding: 6px 12px; clip: auto;
  font: inherit; font-weight: 600; border-radius: 7px; background: var(--g-accent); color: var(--g-accent-ink);
}
.kb-links { display: none; align-items: center; gap: 6px; flex: none; }
.kb-links a { padding: 8px 12px; border-radius: 9px; color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px; font-weight: 600; }
.kb-links a.kb-cta { background: #00F5C4; color: #0D2137; }

/* ---------------------------------------------------------------- the menu down the left */
.kb-shell { display: block; }
.kb-side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
  width: min(86vw, 320px); padding: 14px 12px 28px;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--g-panel); border-right: 1px solid var(--g-line);
  transform: translateX(-102%); visibility: hidden;
  transition: transform .2s ease, visibility 0s linear .2s;
}
.kb-toggle:checked ~ .kb-shell .kb-side { transform: none; visibility: visible; transition: transform .2s ease; }
.kb-scrim { display: none; position: fixed; inset: 0; z-index: 55; background: rgba(6, 18, 30, .55); }
.kb-toggle:checked ~ .kb-shell .kb-scrim { display: block; }
@media (prefers-reduced-motion: reduce) { .kb-side { transition: none; } }

.kb-home {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px;
  border-radius: 10px; color: var(--g-ink); text-decoration: none; font-weight: 600;
}
.kb-home .ico { color: var(--g-muted); }
.kb-home.on { background: var(--g-ice); }

.kb-grp { margin-bottom: 2px; }
.kb-grp > summary {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border-radius: 10px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px;
}
.kb-grp > summary::-webkit-details-marker { display: none; }
.kb-grp > summary .lbl { flex: 1; min-width: 0; }
.kb-grp > summary b, .kb-sub b { font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--g-muted); font-variant-numeric: tabular-nums; }
.kb-grp > summary .chev { color: var(--g-muted); transition: transform .15s ease; }
.kb-grp > summary .chev .ico { width: 16px; height: 16px; }
.kb-grp[open] > summary .chev { transform: rotate(90deg); }
.kb-grp[open] > summary { background: var(--g-ice); }
@media (prefers-reduced-motion: reduce) { .kb-grp > summary .chev { transition: none; } }

/* The coloured tile is the same device the console menu uses for its groups. */
.tile {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 10px;
  --tc: var(--c-slate);
  color: var(--tc); background: var(--g-ice);
  background: color-mix(in srgb, var(--tc) 15%, var(--g-panel));
}
.g-guides .tile, .g-sales .tile { --tc: var(--c-teal); }
.g-tour .tile, .g-system .tile { --tc: var(--c-blue); }
.g-roles .tile, .g-purchasing .tile { --tc: var(--c-amber); }
.g-faq .tile, .g-catalog .tile { --tc: var(--c-violet); }
.g-money .tile { --tc: var(--c-green); }
.g-people .tile { --tc: var(--c-rose); }

.kb-sub { margin: 4px 0 10px 27px; padding-left: 10px; border-left: 2px solid var(--g-line); }
.kb-sub a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; margin-left: -12px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0;
  color: var(--g-ink); text-decoration: none; font-size: 14.5px; line-height: 1.35;
}
.kb-sub a.on { background: var(--g-ice); border-left-color: var(--g-aqua); font-weight: 600; }

/* ---------------------------------------------------------------- the page */
.kb-body { min-width: 0; }
.kb-main { padding: 18px 16px 48px; max-width: 1180px; margin: 0 auto; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
h2 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; margin: 30px 0 12px; }
h3 { font-size: 16px; margin: 0 0 4px; }
.hero { padding: 6px 0 4px; }
.lede { font-size: 16px; color: var(--g-muted); margin: 0 0 18px; max-width: 72ch; }
.who { font-size: 14px; color: var(--g-muted); margin: 0 0 18px; }
.intro { margin: 0 0 8px; max-width: 76ch; }
.crumbs { font-size: 13px; font-weight: 600; color: var(--g-muted); padding: 4px 0 8px; }
.crumbs a { color: var(--g-muted); }
.crumbs span { color: var(--g-muted); }
.muted { color: var(--g-muted); }
.note { background: var(--g-panel); border: 1px solid var(--g-line); border-radius: 12px; padding: 12px 16px; max-width: 86ch; }

code {
  font: 600 .9em/1.4 "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--g-code-bg); border: 1px solid var(--g-line);
  padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere;
}

/* What is in the help centre, as the console shows its own totals. */
.kb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; }
.kb-stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "t l" "t n" "t s"; column-gap: 12px; align-content: start;
  padding: 14px; border: 1px solid var(--g-line); border-radius: 12px;
  background: var(--g-panel); box-shadow: var(--g-shadow); color: var(--g-ink); text-decoration: none;
}
.kb-stat .tile { grid-area: t; }
.kb-stat .l { grid-area: l; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.kb-stat .n { grid-area: n; font: 700 26px/1.25 "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.kb-stat .s { grid-area: s; font-size: 13px; color: var(--g-muted); line-height: 1.35; }
.kb-stat:nth-child(1) .tile { --tc: var(--c-teal); }
.kb-stat:nth-child(2) .tile { --tc: var(--c-blue); }
.kb-stat:nth-child(3) .tile { --tc: var(--c-amber); }
.kb-stat:nth-child(4) .tile { --tc: var(--c-violet); }

/* A panel: a titled box with a count, holding rows. */
.kb-panel {
  margin: 0 0 16px; border: 1px solid var(--g-line); border-radius: 12px;
  background: var(--g-panel); box-shadow: var(--g-shadow); overflow: hidden;
}
.kb-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--g-line); }
.kb-ph h2 { margin: 0; font-size: 16px; letter-spacing: 0; }
.kb-count { flex: none; font-size: 13px; color: var(--g-muted); font-variant-numeric: tabular-nums; }
.kb-pf { margin: 0; padding: 12px 16px; border-top: 1px solid var(--g-line); font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- guides, as rows */
.areas { margin-top: 0; }
.cards { list-style: none; margin: 0; padding: 0; }
.card { border-top: 1px solid var(--g-line); }
.card:first-child { border-top: 0; }
.card[hidden] { display: none; }
.card a { display: block; padding: 14px 16px; text-decoration: none; color: inherit; }
.card a:active { background: var(--g-ice); }
.card h3 { color: var(--g-ink); font-size: 15.5px; }
.card p { margin: 0 0 8px; color: var(--g-muted); font-size: 14.5px; line-height: 1.5; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--g-muted); font-variant-numeric: tabular-nums; }
.card .meta span { padding: 2px 9px; border-radius: 999px; background: var(--g-ice); border: 1px solid var(--g-line); white-space: nowrap; }
.card .meta .pic { color: var(--c-teal); border-color: currentColor; background: transparent; font-weight: 600; }

/* ---------------------------------------------------------------- steps */
.topic { max-width: 900px; }
.steps { list-style: none; margin: 0; padding: 2px 16px; border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-panel); box-shadow: var(--g-shadow); }
.step { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--g-line); }
.step:first-child { border-top: 0; }
.stepno {
  flex: 0 0 32px; height: 32px; border-radius: 10px;
  background: var(--g-accent); color: var(--g-accent-ink);
  display: flex; align-items: center; justify-content: center; font: 700 14px/1 "JetBrains Mono", ui-monospace, monospace;
}
.stepbody { min-width: 0; }
.where { margin: 0 0 6px; font-size: 14px; }
.where .muted { margin-left: 6px; font-size: .9rem; }
.do { margin: 0 0 6px; font-weight: 600; }
.why { margin: 0; color: var(--g-muted); font-size: 15px; }

/* ---------------------------------------------------------------- watch-outs */
.watch { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.watch li {
  background: var(--g-warn-bg); border: 1px solid var(--g-line); border-left: 4px solid var(--g-warn-line);
  border-radius: 10px; padding: 12px 14px; font-size: 15px;
}

/* ---------------------------------------------------------------- questions */
.faqs { display: grid; gap: 10px; }
.faq { border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-panel); }
.faq[hidden] { display: none; }
.faq summary { position: relative; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--g-muted); border-bottom: 2px solid var(--g-muted); transform: rotate(45deg);
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq > div { padding: 0 16px 16px; color: var(--g-muted); max-width: 86ch; }
.faq .more, a.more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }
/* inside a panel the questions are rows of one list, not separate boxes */
.kb-panel .faqs { display: block; }
.kb-panel .faq { border: 0; border-top: 1px solid var(--g-line); border-radius: 0; background: transparent; }
.kb-panel .faq:first-child { border-top: 0; }
.kb-panel .faq[open] { background: var(--g-ice); }

/* Filter chips: subjects on the questions page, jump links on the tour pages. */
.kb-subjects, .faqnav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.kb-subjects, .faqnav { margin: 0 0 18px; }
.kb-subjects a, .faqnav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px;
  border: 1px solid var(--g-line); border-radius: 999px; background: var(--g-panel);
  color: var(--g-ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.kb-subjects a .n { font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--g-muted); font-variant-numeric: tabular-nums; }
.kb-subjects a.on { background: var(--g-accent); border-color: var(--g-accent); color: var(--g-accent-ink); }
.kb-subjects a.on .n { color: inherit; }
section[id], .screen, .role, .step { scroll-margin-top: 124px; }
/* On a phone sixteen chips would push the answers off the screen, so they become one strip to swipe. */
@media (max-width: 619px) {
  .kb-subjects, .faqnav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
  .kb-subjects::-webkit-scrollbar, .faqnav ul::-webkit-scrollbar { display: none; }
  .kb-subjects a, .faqnav a { flex: none; }
}

/* ---------------------------------------------------------------- buttons, footer */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--g-accent); background: var(--g-accent); color: var(--g-accent-ink);
}
.btn.ghost { background: var(--g-panel); color: var(--g-ink); border-color: var(--g-line); }
.nextup { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.kb-help {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin: 24px 0 0; padding: 20px; border-radius: 12px; background: #0D2137; border: 1px solid var(--g-bar-line); color: #fff;
}
.kb-help h2 { margin: 0 0 4px; font-size: 18px; }
.kb-help p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.kb-help .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.kb-help a:focus-visible { outline-color: #00F5C4; }
.gfoot { border-top: 1px solid var(--g-line); padding: 20px 16px 96px; font-size: 13.5px; color: var(--g-muted); }
.gfoot p { margin: 0 0 8px; max-width: 86ch; }

/* ---------------------------------------------------------------- the assistant
   Dressed as part of the product: the navy bar and the logo mark at the top, the same panels and
   Phosphor fills as the rest of the help centre. */
.askmark {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px; background: #fff;
}
.askmark img { display: block; width: 76%; height: 76%; }
.askbtn {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 7px 18px 7px 7px;
  font: 700 15px/1 "Manrope", "Inter", sans-serif;
  background: #0D2137; color: #fff; box-shadow: 0 10px 28px -10px rgba(6, 18, 30, .75);
  cursor: pointer;
}
.askbtn .askmark { width: 34px; height: 34px; border-radius: 50%; }
.askbtn.open { display: none; }
.askpanel {
  position: fixed; inset: auto 0 0 0; z-index: 70; max-height: 86vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--g-bg); border: 1px solid var(--g-line); border-bottom: 0;
  border-radius: 18px 18px 0 0; box-shadow: 0 -16px 48px -18px rgba(6, 18, 30, .6);
}
.askpanel[hidden] { display: none; }
.askhead { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: #0D2137; color: #fff; border-bottom: 3px solid #00F5C4; }
.askhead .askmark { width: 38px; height: 38px; border-radius: 11px; }
.askwho { flex: 1; min-width: 0; }
.askwho strong { display: block; font: 700 16px/1.25 "Manrope", "Inter", sans-serif; }
.askwho span { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255, 255, 255, .74); }
.askwho span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #00F5C4; }
.askclose {
  display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px;
  border: 0; border-radius: 10px; background: transparent; color: rgba(255, 255, 255, .8); cursor: pointer;
}
.askclose:focus-visible { outline-color: #00F5C4; }
.asklog { flex: 1; min-height: 120px; overflow: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 12px; }
.askmsg { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.askmsg .askmark { width: 28px; height: 28px; border: 1px solid var(--g-line); margin-top: 2px; }
.askbub { min-width: 0; padding: 11px 14px; }
.askbub p { margin: 0 0 6px; }
.askbub p:last-child { margin-bottom: 0; }
.askmsg.bot .askbub { background: var(--g-panel); border: 1px solid var(--g-line); border-radius: 4px 14px 14px 14px; box-shadow: var(--g-shadow); }
.askmsg.me { justify-content: flex-end; }
.askmsg.me .askbub { max-width: 85%; background: var(--g-ink); color: var(--g-panel); border-radius: 14px 14px 4px 14px; font-weight: 500; }
.askt { font: 700 15.5px/1.35 "Manrope", "Inter", sans-serif; }
.askgo {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 12px; border-radius: 9px;
  background: var(--g-accent); color: var(--g-accent-ink); font-weight: 700; font-size: 14px; text-decoration: none;
}
.askgo svg { width: 16px; height: 16px; }
.askrel { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--g-line); font-size: 12.5px; font-weight: 700; color: var(--g-muted); }
.askbub ul { list-style: none; margin: 4px 0 0; padding: 0; }
.askbub li { margin: 0; }
.askbub li a { display: block; padding: 5px 0; font-size: 14px; font-weight: 600; }
.askstart { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 38px; }
.askstart p { flex: 1 0 100%; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--g-muted); }
.askstart button {
  font: 600 13.5px/1.3 "Inter", sans-serif; text-align: left; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--g-line); background: var(--g-panel); color: var(--g-ink);
}
.askform { display: flex; gap: 8px; margin: 8px 14px 0; padding: 5px; border: 1px solid var(--g-line); border-radius: 14px; background: var(--g-panel); }
.askform:focus-within { border-color: var(--g-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-focus) 22%, transparent); }
.askform input { flex: 1; min-width: 0; font: inherit; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--g-ink); }
.askform input:focus-visible { outline: 0; }
.askform button {
  display: flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px;
  border: 0; border-radius: 10px; background: var(--g-accent); color: var(--g-accent-ink); cursor: pointer;
}
.askfoot { margin: 0; padding: 9px 16px 12px; font-size: 12.5px; color: var(--g-muted); text-align: center; }
@media (hover: hover) {
  .askstart button:hover { border-color: var(--g-muted); }
  .askclose:hover { background: rgba(255, 255, 255, .12); color: #fff; }
}

/* ---------------------------------------------------------------- pictures */
.shot { margin: 18px 0; }
.shot a { display: block; border: 1px solid var(--g-line); border-radius: 12px; overflow: hidden; box-shadow: var(--g-shadow); background: var(--g-ice); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 8px; color: var(--g-muted); font-size: .9rem; }

/* ---------------------------------------------------------------- every screen */
.tourmap { display: grid; gap: 12px; margin: 18px 0; }
.tourgroup { padding: 16px; border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-panel); box-shadow: var(--g-shadow); }
.tourgroup header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tourgroup h2 { flex: 1; min-width: 0; margin: 0; font-size: 17px; }
.tourgroup h2 a { color: var(--g-ink); text-decoration: none; }
.tourgroup p { margin: 0 0 10px; color: var(--g-muted); font-size: 14.5px; }
.tourgroup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tourgroup li a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--g-ice); border: 1px solid var(--g-line); color: var(--g-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }

.screen, .role {
  margin: 0 0 16px; padding: 18px 16px 14px; border: 1px solid var(--g-line); border-radius: 12px;
  background: var(--g-panel); box-shadow: var(--g-shadow);
}
.screen h2, .role h2 { margin: 0 0 6px; }
.screen h3, .role h3 { font-size: 15px; margin: 18px 0 8px; }
.screen > p, .role > p { max-width: 82ch; }
.cando { margin: 0; padding-left: 1.15em; max-width: 82ch; }
.cando li { margin: 6px 0; }
.usedby { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 0; font-size: .9rem; }
.usedby > span { color: var(--g-muted); margin-right: 4px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--g-ice); border: 1px solid var(--g-line); color: var(--g-ink); font-size: .84rem; font-weight: 600; text-decoration: none; }
.limit { padding: 10px 14px; border-left: 4px solid var(--g-warn-line); background: var(--g-warn-bg); border-radius: 0 8px 8px 0; }
.sees { margin: 0; display: grid; gap: 6px 16px; }
.sees dt { font-weight: 700; }
.sees dd { margin: 0 0 6px; color: var(--g-muted); }
.role .faq { margin-top: 14px; background: var(--g-bg); }

/* ---------------------------------------------------------------- tables */
.kb-scroll { overflow-x: auto; }
.kb-table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.kb-table th, .kb-table td { padding: 12px 16px; border-top: 1px solid var(--g-line); text-align: left; vertical-align: middle; }
.kb-table thead th {
  border-top: 0; background: var(--g-ice); color: var(--g-muted);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.kb-table tbody th { font-weight: 400; min-width: 15rem; }
.kb-table tbody th a { display: block; font-weight: 700; color: var(--g-ink); }
.kb-table tbody th span { display: block; color: var(--g-muted); font-size: 13.5px; line-height: 1.4; }
.kb-table .num { font: 500 13.5px/1.3 "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kb-table code { white-space: nowrap; }
.kb-table .perm { white-space: nowrap; }
.kb-table progress {
  -webkit-appearance: none; appearance: none; display: inline-block; vertical-align: middle;
  width: 84px; height: 8px; margin-right: 10px; border: 0; border-radius: 999px; overflow: hidden;
  background: var(--g-ice); color: var(--g-aqua);
}
.kb-table progress::-webkit-progress-bar { background: var(--g-ice); }
.kb-table progress::-webkit-progress-value { background: var(--g-aqua); border-radius: 999px; }
.kb-table progress::-moz-progress-bar { background: var(--g-aqua); border-radius: 999px; }

.matrixwrap { position: relative; overflow-x: auto; border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-panel); }
.matrix { border-collapse: collapse; font-size: .86rem; min-width: 780px; width: 100%; }
.matrix th, .matrix td { padding: 8px 10px; border-bottom: 1px solid var(--g-line); text-align: left; }
.matrix thead th { position: sticky; top: 0; background: var(--g-ice); vertical-align: bottom; font-size: .78rem; line-height: 1.2; }
.matrix thead th span { display: block; max-width: 5.2rem; }
.matrix tbody th { font-weight: 500; min-width: 15rem; }
.matrix tr.g th { background: var(--g-ice); font-weight: 700; font-size: .8rem; }
.matrix td { text-align: center; width: 5.4rem; position: relative; }
.matrix td::before { content: ""; display: inline-block; width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid var(--g-line); vertical-align: middle; }
.matrix td.y::before { background: var(--g-aqua); border-color: var(--g-ink); }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 520px) {
  .kb-links { display: flex; }
  .kb-links a:not(.kb-cta) { display: none; }
}
@media (min-width: 620px) {
  .sees { grid-template-columns: 9.5rem 1fr; }
  .sees dd { margin: 0; }
  .kb-main { padding: 22px 24px 56px; }
  .gfoot { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: 30px; }
  .card a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; }
  .card h3, .card p { grid-column: 1; }
  .card p { margin: 0; }
  .card .meta { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; max-width: 15rem; }
  .askpanel { inset: auto 16px 16px auto; width: 400px; height: 600px; max-height: calc(100vh - 96px); border-radius: 18px; border-bottom: 1px solid var(--g-line); box-shadow: 0 24px 60px -20px rgba(6, 18, 30, .55); }
  .screen, .role { padding: 22px 22px 16px; }
  .tourmap { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .kb-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .kb-stat { padding: 16px; }
}

/* From here the menu is always on screen, as it is in the console. */
@media (min-width: 1000px) {
  .kb-top { flex-wrap: nowrap; gap: 16px; height: 62px; padding: 0 20px; }
  .kb-burger, .kb-toggle, .kb-scrim, .kb-toggle:checked ~ .kb-shell .kb-scrim { display: none; }
  .kb-brand { flex: none; width: 244px; }
  .kb-brand img { height: 22px; }
  .gsearch { order: 0; flex: 1 1 auto; max-width: 560px; }
  .kb-links { margin-left: auto; }
  .kb-links a:not(.kb-cta) { display: block; }
  .kb-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .kb-side {
    position: sticky; top: 62px; z-index: 1; width: auto; height: calc(100vh - 62px);
    transform: none; visibility: visible; transition: none;
  }
  .kb-main { padding: 28px 36px 64px; }
  .gfoot { padding: 20px 36px 40px; }
  section[id], .screen, .role, .step { scroll-margin-top: 78px; }
}

@media (hover: hover) {
  .kb-home:hover, .kb-grp > summary:hover, .kb-sub a:hover, .card a:hover, .kb-panel .faq summary:hover { background: var(--g-ice); }
  .kb-links a:not(.kb-cta):hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .kb-stat:hover, .kb-subjects a:not(.on):hover, .faqnav a:hover, .tourgroup li a:hover, a.chip:hover, .btn.ghost:hover { border-color: var(--g-muted); }
}

@media print {
  .kb-top, .kb-side, .kb-scrim, .askbtn, .askpanel, .nextup, .gfoot, .kb-subjects, .kb-help { display: none !important; }
  .kb-shell { display: block; }
  .faq > div { display: block !important; }
  body.guide { color: #000; background: #fff; }
}

/* On a phone the roles list keeps the two columns that matter; the app's own name for each role is
   repeated in the role's section further down. */
@media (max-width: 619px) {
  .kb-table th:nth-child(2), .kb-table td:nth-child(2), .kb-table th:nth-child(3), .kb-table td:nth-child(3) { display: none; }
  .kb-table tbody th { min-width: 0; }
  .kb-table th, .kb-table td { padding: 12px; }
  .kb-table progress { width: 44px; margin-right: 8px; }
}
