/* HXP Tools brand stylesheet: the full hub look (tokens, shell, components)
   Generated by scripts/build-brand-css.mjs in hxp-tech/hxp-employee-hub from the hub's own
   stylesheet. Do not edit by hand; change the hub and rebuild. Guide and rules:
   hxp-tech/hxp-dev-pipeline/brand/GUIDE.md. Served at https://employee.hxp.org/brand/ */

:root {
    /* Semantic aliases for route templates; palette and type are in portalStyles. */
    --ink: var(--fg); --sub: var(--muted-fg); --line: var(--border); --hover: var(--cream);
    --red: var(--primary); --red-dark: var(--primary-hover);
    --ok-bg: var(--olive-pale); --ok-ink: var(--olive);
    --warn-ink: var(--orange); --bad-ink: var(--primary);
  }
  * { box-sizing: border-box; }
  /* Author display rules (.btn etc.) must never defeat the hidden attribute. */
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0; background: var(--bg); color: var(--fg);
    font-family: var(--body); font-size: 14px; line-height: 24px;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  a:hover { color: var(--primary); }
  .accent { color: var(--primary); }
  button { font: inherit; color: inherit; }

  /* type roles */
  .eyebrow, .kicker {
    font-family: var(--subhead); text-transform:none; letter-spacing:-.15px;
    font-size: 14px; line-height: 20px; color: var(--primary);
  }
  .caps { font-family: var(--subhead); text-transform:none; letter-spacing:-.15px; }
  .mono { font-family: var(--accent); font-size: 13px; line-height: 18px; color: var(--muted-fg); }

  /* ── App frame: 232px rail on cream, slim bar over the content ──── */
  .app { display: flex; min-height: 100vh; }
  .rail {
    width: 232px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column; padding: 18px 14px;
    background: var(--cream); border-right: 1px solid var(--border);
  }
  .railtop { display: flex; align-items: center; gap: 4px; padding: 4px 0 22px; }
  .railtop img { height: 28px; width: auto; display: block; }
  .railnav { display: flex; flex-direction: column; }
  .rnav { display: flex; flex-direction: column; gap: 2px; }
  .rnav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--fg);
    font-family: var(--subhead); text-transform:none; letter-spacing:-.15px;
    font-size: 12px; line-height: 16px; border: 1px solid transparent; white-space: nowrap;
  }
  .rnav a:hover { color: var(--primary); }
  .rnav a.on { background: var(--card); border-color: var(--border); color: var(--fg); }
  .rnav svg { width: 18px; height: 18px; flex: none; }
  .railsec {
    font-family: var(--accent); font-size: 12px; letter-spacing:-.15px; text-transform:none;
    color: var(--muted-fg); padding: 22px 14px 6px;
  }
  .railfoot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
  .railfoot details.menu > summary { display: flex; align-items: center; gap: 12px; padding: 0 0 0 14px; width: 100%; text-align: left; }
  .railfoot .avatar { width: 36px; height: 36px; flex: none; }
  .railfoot .who2 { display: flex; flex-direction: column; min-width: 0; }
  .railfoot .who2 .n { font-size: 14px; line-height: 18px; font-weight:500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .railfoot .who2 .t { font-family: var(--accent); font-size: 12px; line-height: 16px; color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .railfoot .pop { left: 0; right: auto; top: auto; bottom: calc(100% + 10px); }
  .rail-collapse { display: none; }
  @media (min-width: 841px) {
    /* Only the nav scrolls, so the account popup can extend past the rail. */
    .rail { overflow: visible; z-index: 21; }
    .railtop, .railfoot { flex: none; }
    .railtop { padding-right: 0; }
    .railnav { overflow-y: auto; min-height: 0; }
    .rail-collapse {
      display: flex; flex: none; align-items: center; justify-content: center;
      width: 28px; height: 28px; margin-left: auto; padding: 0;
      border: 1px solid transparent; background: transparent;
      color: var(--muted-fg); cursor: pointer;
    }
    .rail-collapse:hover { color: var(--primary); background: var(--cream-2); border-color: var(--border); }
    .rail-collapse:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
    .rail-collapse svg { width: 18px; height: 18px; flex: none; }
    .rail-collapsed .rail { width: 56px; padding: 18px 6px; }
    .rail-collapsed .railtop { justify-content: center; padding: 4px 0 22px; }
    .rail-collapsed .railtop .logo { display: none; }
    .rail-collapsed .rail-collapse { margin-left: 0; }
    .rail-collapsed .rail-label,
    .rail-collapsed .railsec span, .rail-collapsed .railfoot .who2 { display: none; }
    .rail-collapsed .rnav a { justify-content: center; padding: 10px 0; }
    .rail-collapsed .railsec { margin: 14px 6px 8px; padding: 0; border-top: 1px solid var(--border); }

    .rail-collapsed .railfoot details.menu > summary { padding: 0; }
  }
  .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .bar {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
    height: 52px; padding: 0 32px; background: var(--bg); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
  }
  .searchfield {
    display: flex; align-items: center; gap: 10px; width: 340px; max-width: 100%; height: 36px; padding: 0 12px;
    background: var(--card); border: 1px solid var(--border); color: var(--muted-fg); cursor: text;
    font-family: var(--accent); font-size: 13px; line-height: 1; text-align: left;
  }
  .searchfield:hover { border-color: var(--fg); }
  .searchfield svg { flex: none; }
  .searchfield .kbd { margin-left: auto; font-size: 12px; }
  .iconbtn {
    position: relative; width: 40px; height: 40px; padding: 0; cursor: pointer;
    border: 1px solid var(--border); background: var(--card); color: var(--fg);
    display: inline-flex; align-items: center; justify-content: center;
  }
  .iconbtn:hover { background: var(--cream-2); }
  .iconbtn.quiet { border-color: transparent; background: transparent; }
  .iconbtn.quiet:hover { background: var(--cream-2); }
  .iconbtn .dot {
    position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
    border-radius: 9999px; background: var(--primary); border: 1.5px solid var(--card);
  }
  details.menu { position: relative; }
  details.menu > summary { display: inline-flex; align-items: center; justify-content: center; list-style: none; cursor: pointer; }
  details.menu > summary::-webkit-details-marker { display: none; }
  details.menu > summary::marker { content: ''; }
  .avatar {
    width: 40px; height: 40px; background: var(--fg); color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--subhead); font-size: 12px; letter-spacing:-.15px; text-transform:none;
  }
  details.menu[open] .avatar, details.menu[open] .iconbtn { outline: 2px solid var(--ring); outline-offset: 1px; }

  .pop {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-xl);
    z-index: 30; overflow: hidden;
  }
  .pop.notif { width: 400px; max-width: calc(100vw - 32px); max-height: 72vh; overflow-y: auto; }
  .nhead {
    font-family: var(--subhead); text-transform:none; letter-spacing:-.15px; font-weight: 500;
    font-size: 14px; line-height: 1.3; padding: 14px 18px 12px;
    position: sticky; top: 0; background: var(--card);
  }
  .nitem { padding: 13px 18px; border-top: 1px solid var(--border); }
  .nitem .nbody { font-size: 14px; line-height: 20px; }
  .nitem .nmeta { font-family: var(--accent); font-size: 12px; line-height: 18px; color: var(--muted-fg); margin-top: 4px; }
  .nempty { padding: 28px 18px; text-align: center; color: var(--muted-fg); font-size: 14px; border-top: 1px solid var(--border); }

  .acct { min-width: 256px; background: var(--cream); padding-bottom: 6px; }
  .account-role { display:block; margin-top:4px; font-family:var(--body); font-size:13px; line-height:18px; }
  .acct form { margin:0; }
  .acct button { width:100%; border:0; background:transparent; text-align:left; font:inherit; cursor:pointer; }
  .acct a, .acct button { display: block; padding: 9px 16px; font-size: 14px; line-height: 20px; color: var(--fg); }
  .acct a:hover, .acct button:hover { background: var(--primary); color: #fff; }
  .acct .section {
    display: block; font-family: var(--subhead); text-transform:none; letter-spacing:-.15px;
    font-size: 12px; line-height: 14px; color: var(--muted-fg);
    padding: 12px 16px 4px; border-top: 1px solid var(--border);
  }
  .acct .section:first-child {
    border-top: 0; font-family: var(--accent); text-transform: none; letter-spacing: 0;
    font-size: 13px; line-height: 18px; padding: 14px 16px 6px;
  }

  /* ── Page frame ──────────────────────────────────────────── */
  .wrap { width:100%; min-width:0; margin: 0; padding: 40px 32px 80px; }
  .who h1 {
    margin: 8px 0 0; font-family: var(--heading); text-transform:none;
    font-size: 24px; line-height: 1; font-weight: 400; letter-spacing: 0;
  }
  .banner {
    margin-top: 24px; padding: 14px 18px; background: var(--cream);
    border: 1px solid var(--border); font-size: 14px; line-height: 20px;
    display: flex; gap: 10px; align-items: baseline;
  }
  .banner::before { content: ''; width: 8px; height: 8px; flex: none; background: var(--primary); position: relative; top: -1px; }
  h1.page {
    font-family: var(--heading); text-transform:none; font-weight: 400; letter-spacing: 0;
    font-size: 24px; line-height: 40px; margin: 0 0 12px;
  }
  .lede { font-size: 14px; line-height: 1.625; color: rgba(18,18,18,.85); max-width: 62ch; margin: 0 0 24px; }
  @media (prefers-color-scheme: dark) { .lede { color: rgba(242,238,227,.85); } }
  .wrap > p { margin: 0 0 16px; }

  /* ── Panels ──────────────────────────────────────────────── */
  .cols { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 20px; align-items: stretch; margin-top: 32px; }
  .cols.second { margin-top: 20px; }
  .panel.short { min-height: 0; }
  .quicklinks a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:2px 0; border-top:1px solid var(--border); font-size:14px; line-height:20px; }
  .quicklinks a:first-child { border-top:0; padding-top:0; }
  .quicklinks a span { color:var(--muted-fg); }
  .quicklinks a:focus-visible { outline:2px solid var(--ring); outline-offset:2px; }
  .annrow { padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; line-height: 22px; }
  .annrow:first-child { border-top: 0; padding-top: 0; }
  .annrow .nmeta { font-family: var(--accent); font-size: 12px; line-height: 18px; color: var(--muted-fg); margin-top: 4px; }
  .panel .pbody .btn.fill { align-self: flex-start; margin-top: 14px; }
  @media (max-width: 840px) { .cols { grid-template-columns: 1fr; } }
  .panel { background: var(--card); border: 1px solid var(--border); min-height: 380px; display: flex; flex-direction: column; }
  .panel .phead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 24px 0; }
  .panel .phead h2 {
    margin: 0; font-family: var(--heading); text-transform:none; font-weight: 400;
    font-size: 24px; line-height: 1.1; letter-spacing: 0;
  }
  .panel .phead .pmeta { font-family: var(--accent); font-size: 13px; line-height: 20px; color: var(--muted-fg); text-align: right; }
  .panel .pbody { padding: 16px 24px 24px; flex: 1; display: flex; flex-direction: column; }
  .empty {
    color: var(--muted-fg); font-size: 14px; line-height: 20px; flex: 1;
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  }
  .phead-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
  .gear {
    width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer;
    color: var(--muted-fg); display: inline-flex; align-items: center; justify-content: center;
  }
  .gear:hover { color: var(--fg); }
  .fgrid.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
  /* Arrange mode: dashed outlines, grab cursor, arrow buttons on each tile */
  .fitem { position: relative; }
  .tgrid.arranging .fitem { cursor: grab; outline: 1px dashed var(--primary); outline-offset: -1px; }
  .tgrid.arranging .fitem { cursor: grab; touch-action: none; }
  .tgrid.folded .fitem.beyond { display: none; }
  .tools-heading { display:flex;align-items:center;gap:14px;flex-wrap:wrap; }
  .tools-panel-head { flex-wrap:wrap; }
  .view-switch { display:inline-grid;grid-template-columns:1fr 1fr;position:relative;isolation:isolate;padding:3px;background:var(--cream);border:1px solid var(--border);border-radius:9px;min-width:144px; }
  .view-switch-slider { position:absolute;inset:3px auto 3px 3px;width:calc(50% - 3px);background:var(--card);border:1px solid var(--border);border-radius:6px;box-shadow:0 1px 3px #00000008;transition:transform 220ms cubic-bezier(.22,1,.36,1);z-index:-1; }
  .view-switch[data-view="tool"] .view-switch-slider { transform:translateX(100%); }
  .view-switch button { border:0;background:transparent;color:var(--muted-fg);font:14px/20px var(--body);padding:5px 14px;cursor:pointer; }
  .view-switch button[aria-pressed="true"] { color:var(--primary);font-weight:500; }
  .view-switch button:focus-visible { outline:2px solid var(--primary);outline-offset:1px;border-radius:5px; }
  .tools-footer { display:flex;align-items:center;justify-content:space-between;gap:12px; }
  .tools-add { margin-left:auto;font-size:13px;white-space:nowrap;color:var(--primary); }
  .tool-view { min-height:100%; }
  .tool-empty { display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:22px;min-height:180px;color:var(--muted-fg); }
  .tool-empty-icon { font-size:24px;color:var(--primary);margin-bottom:8px; }
  .tool-empty h3 { margin:0 0 8px;font:14px/24px var(--body);color:var(--fg); }
  .tool-empty p { max-width:300px;margin:0;font-size:14px; }
  .fitem > a { display:flex;flex:1;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:10px; }
  .tile-move { display:none;gap:8px; }
  .arranging .tile-move { display:flex; }
  .tile-move button { border:1px solid var(--border);background:var(--card);color:var(--fg);cursor:pointer;width:30px;height:26px; }
  .calendar-open { font-size:13px;white-space:nowrap;color:var(--primary); }
  .wrap:has(> .org-ui) { width:100%;min-width:0;max-width:none; }
  .org-ui { font-family:system-ui,sans-serif; }
  .org-filters { display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 16px; }
  .org-filters > label { display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted-fg);flex:1;min-width:125px; }
  .org-filters select,.org-filters input { min-width:0;width:100%;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--fg);padding:11px 12px;font:13px/20px system-ui,sans-serif; }
  .org-filters > .org-search { flex:2.4;min-width:230px;position:relative;display:block; }
  .org-search svg { position:absolute;left:13px;top:13px; }
  .org-search input { padding-left:40px; }
  .org-clear { font-size:12px;color:var(--muted-fg);padding:12px 0; }
  .org-ui.enhanced .org-apply { display:none; }
  .org-viewbar { flex-basis:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--border);padding-top:10px;margin-top:0; }
  .org-viewbar label { display:flex;align-items:center;gap:10px;font-size:12px;white-space:nowrap;color:var(--muted-fg); }
  .org-viewbar select { width:110px;padding:6px 9px; }
  .org-tree-actions { display:flex;gap:15px; }
  .org-tree-actions button { border:0;padding:5px 0;background:transparent;font:12px/20px system-ui,sans-serif;color:var(--muted-fg);cursor:pointer; }
  .org-tree-actions button:hover,.org-clear:hover { color:var(--primary); }
  .org-view-switch { display:flex;gap:3px;margin:0;padding:4px;border:1px solid var(--border);border-radius:9px;background:var(--card); }
  .org-view-switch label { position:relative;cursor:pointer; }
  .org-view-switch input { position:absolute;opacity:0;width:1px;height:1px; }
  .org-view-switch span { display:block;padding:7px 18px;border-radius:5px;color:var(--muted-fg);font-weight:500; }
  .org-view-switch input:checked + span { background:var(--primary);color:white; }
  .org-view-switch input:focus-visible + span { outline:2px solid var(--fg);outline-offset:2px; }
  #org-count { color:var(--muted-fg);font-size:12px;margin-left:auto; }
  .org-ui[data-view="list"] .org-canvas,.org-ui[data-view="list"] .org-tree-actions,.org-ui[data-view="list"] .org-group-control,
  .org-ui[data-view="tree"] .org-list { display:none; }
  .org-canvas { min-width:0; }
  .org-tier { position:relative;padding-bottom:12px;text-align:center; }
  .org-tier::after { content:'';position:absolute;bottom:0;left:50%;height:12px;border-left:1px solid var(--border); }
  .org-tier-label { font:500 12px/16px system-ui,sans-serif;letter-spacing:-.15px;text-transform:none;color:var(--muted-fg);margin:0 0 5px; }
  .org-csuite { padding-top:8px; }
  .org-leaders { display:flex;flex-wrap:wrap;justify-content:center;gap:12px;list-style:none;padding:0;margin:0; }
  .org-node { min-width:0;list-style:none; }
  .org-node-head { position:relative; }
  .org-person { display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:9px;min-width:0; }
  .org-person-copy { min-width:0; }
  .org-person h3 { font:500 12px/17px system-ui,sans-serif;text-transform:none;letter-spacing:0;margin:0;overflow-wrap:anywhere; }
  .org-person p { font:12px/15px system-ui,sans-serif;margin:2px 0 0;color:var(--muted-fg);overflow-wrap:anywhere; }
  .org-photo { display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:var(--cream);color:#99958e; }
  .org-photo svg { width:25px;height:25px; }
  .org-leaders .org-person { text-align:left;width:180px;height:100%;min-height:48px;padding:8px 12px;background:var(--card);border:1px solid var(--border);box-shadow:0 3px 12px #00000004; }
  .org-leaders .org-photo { width:48px;height:48px; }
  .org-leaders .org-photo svg { width:31px;height:31px; }
  .org-ceo .org-person { width:200px;border-top:3px solid var(--primary); }
  .org-ceo .org-person h3 { font-size:13px; }
  .org-team-panel { margin-top:6px; }
  .org-panel-header { display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid var(--border); }
  .org-panel-header h2 { font:500 14px/24px system-ui,sans-serif;text-transform:none;letter-spacing:0;margin:0; }
  .org-panel-header > span { color:var(--muted-fg);font:12px/18px system-ui,sans-serif; }
  .org-branches { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px;padding:0;align-items:start; }
  .org-branch { min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--card);padding:10px; }
  .org-branch-header { display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;padding:0 0 8px;margin:0 0 5px;border-bottom:1px solid var(--border); }
  .org-branch-header h3 { font:500 13px/20px system-ui,sans-serif;text-transform:none;letter-spacing:0;margin:0; }
  .org-branch-header p { margin:2px 0 0;font:12px/18px system-ui,sans-serif;color:var(--muted-fg); }
  .org-branch-tree,.org-children { list-style:none;margin:0;padding:0; }
  .org-branch-tree > .org-node + .org-node { margin-top:6px; }
  .org-branch-tree > .org-node > .org-node-head { background:var(--bg);border-radius:9px; }
  .org-branch-tree > .org-node > .org-node-head h3 { font-size:12px; }
  .org-children { margin-left:8px;padding-left:8px;border-left:1px solid var(--border); }
  .org-children > .org-node { position:relative;margin-top:4px; }
  .org-children > .org-node::before { content:'';position:absolute;left:-8px;top:22px;width:7px;border-top:1px solid var(--border); }
  .org-children .org-person { gap:6px;padding:6px 4px; }
  .org-children .org-photo { width:30px;height:30px; }
  .org-children .org-photo svg { width:21px;height:21px; }
  .org-node-head:has([data-toggle]) .org-person { padding-right:34px; }
  .org-toggle { position:absolute;right:2px;top:7px;width:24px;height:24px;border:0;border-radius:5px;background:transparent;color:var(--muted-fg);font:14px/1 system-ui,sans-serif;cursor:pointer; }
  .org-structure { list-style:none;padding:0;margin:0; }
  .org-structure > .org-node > .org-node-head { max-width:240px;margin:0 auto 16px;border-top:3px solid var(--primary); }
  .org-structure-node > .org-node-head { background:var(--card);border:1px solid var(--border);border-radius:7px; }
  .org-structure > .org-node > .org-children { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0;margin:0;padding:0;align-items:start; }
  .org-structure > .org-node > .org-children > .org-node::before { display:none; }
  .org-unit-label { margin:0;padding:8px 30px 8px 8px;font:500 12px/18px system-ui,sans-serif;text-transform:none;letter-spacing:0;overflow-wrap:anywhere; }
  .org-kind-group > .org-node-head { background:var(--primary);color:white; }
  .org-kind-group > .org-node-head .org-toggle { color:white; }
  .org-kind-team > .org-node-head { background:var(--cream); }
  .org-assignment { list-style:none;padding:6px 4px;font-size:12px;overflow-wrap:anywhere; }
  .org-assignment span { display:block;color:var(--muted-fg);font-size:12px; }
  .org-person:target,.org-person:focus { outline:2px solid var(--primary);outline-offset:2px; }
  @media(max-width:1100px) { .org-structure > .org-node > .org-children { grid-template-columns:repeat(2,minmax(0,1fr)); } }
  @media(max-width:600px) { .org-structure > .org-node > .org-children { grid-template-columns:1fr; } }
  .org-toggle:hover { background:var(--cream);color:var(--primary); }
  .org-toggle:focus-visible { outline:2px solid var(--primary);outline-offset:2px; }
  .org-context { opacity:.65; }
  .org-tier:not(:has([data-node]:not([hidden]))),.org-team-panel:not(:has([data-org-branch]:not([hidden]))) { display:none; }
  .org-placement { font:12px/20px system-ui,sans-serif;color:var(--muted-fg); }
  .org-placement button { font:inherit;border:0;background:none;padding:0;color:var(--primary);text-decoration:underline;cursor:pointer; }
  .org-ui[data-view="list"] .org-placement { display:none; }
  .org-avatar { flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--cream);color:var(--primary);font-size:12px;font-weight:500; }
  .org-list { overflow:auto;border:1px solid var(--border);border-radius:10px;background:var(--card); }
  .org-list table { width:100%;border-collapse:collapse;text-align:left;font:13px/20px system-ui,sans-serif; }
  .org-list th,.org-list td { padding:16px 20px;border-bottom:1px solid var(--border); }
  .org-list thead { background:var(--cream);color:var(--muted-fg);font-size:12px; }
  .org-list th { font-weight:500; }
  .org-list td { color:var(--muted-fg); }
  .org-list-name { display:flex;align-items:center;gap:12px;min-width:180px; }
  .org-list tbody tr:last-child > * { border-bottom:0; }
  .org-list tbody tr:hover { background:var(--bg); }
  .org-empty { border:1px dashed var(--border);border-radius:9px;text-align:center;padding:40px 20px;margin-top:20px; }
  .org-empty h2 { font:500 14px/26px system-ui,sans-serif;text-transform:none; }
  .org-empty a { color:var(--primary);font-size:13px; }
  .org-ui:has(.org-empty:not([hidden])) .org-canvas,.org-ui:has(.org-empty:not([hidden])) .org-list { display:none; }
  @media(max-width:600px) { .org-filters > .org-search { flex-basis:100%; } .org-filters > label { min-width:100px; } .org-viewbar { flex-wrap:wrap;gap:12px; } .org-tree-actions { margin-left:auto; } .org-leaders { gap:8px; } .org-csuite .org-leaders > .org-node { flex:1 1 140px;max-width:200px; } .org-csuite .org-person { width:100%; } .org-panel-header { padding:16px;align-items:start;flex-direction:column;gap:3px; } .org-branches { padding:0;gap:12px;grid-template-columns:1fr; } .org-children { margin-left:8px;padding-left:8px; } .org-list th,.org-list td { padding:12px; } }
  @media(prefers-reduced-motion:reduce) { .org-chevron { transition:none; } }

  @media(min-width:601px) and (max-width:1100px) { .org-branches { grid-template-columns:repeat(2,minmax(0,1fr)); } }
  @media(max-width:600px) { .org-list table,.org-list tbody,.org-list tr,.org-list th,.org-list td { display:block; } .org-list thead { display:none; } .org-list tr { padding:10px;border-bottom:1px solid var(--border); } .org-list th,.org-list td { padding:3px 0;border:0;overflow-wrap:anywhere; } .org-list td::before { content:attr(data-label) ': ';font-weight:500; } .org-list-name { min-width:0; } }
  .wrap:has(> .kb-ui) { max-width:none;padding:0; }
  .kb-ui { display:flex;min-height:calc(100dvh - 70px);font-family:system-ui,sans-serif; }
  .kb-nav { flex:none;width:215px;border-right:1px solid var(--border);padding:28px 18px;background:var(--bg); }
  .kb-home { display:block;font-size:14px;font-weight:500;margin:0 10px 28px;color:var(--fg); }
  .kb-nav-label { font-size:12px;letter-spacing:-.15px;text-transform:none;color:var(--muted-fg);margin:22px 10px 12px; }
  .kb-space { display:flex;gap:12px;padding:11px 13px;margin-bottom:5px;border-radius:7px;font-size:13px;color:var(--muted-fg); }
  .kb-space.active { color:var(--primary);background:var(--cream);font-weight:500; }
  .kb-space span { width:17px;text-align:center; }
  .kb-topics a { display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:8px 12px;color:var(--muted-fg);border-radius:5px; }
  .kb-topics a.active,.kb-topics a:hover { color:var(--primary);background:var(--cream); }
  .kb-topics a span { opacity:.65; }
  .kb-saved-link { display:block;padding:14px 10px;margin-top:24px;border-top:1px solid var(--border);font-size:12px;color:var(--muted-fg); }
  .kb-main { flex:1;min-width:0;max-width:none;margin:0;padding:26px 42px 55px;width:100%; }
  .kb-toolbar { display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:30px;min-height:34px; }
  .kb-breadcrumb { display:flex;gap:9px;font-size:12px;color:var(--muted-fg); }
  .kb-actions { display:flex;align-items:center;gap:10px; }
  .kb-team-picker { display:flex;flex-wrap:wrap;gap:8px;margin:16px 0; }
  .kb-team-picker label { width:100%;font-size:12px; }
  .kb-team-picker select { width:100%;min-width:0;padding:8px;background:var(--card);color:var(--fg);border:1px solid var(--border); }
  .kb-ui { overflow-wrap:anywhere; }
  .kb-space svg { flex:none; }
  .kb-actions .btn { white-space:nowrap; }
  .kb-eyebrow { color:var(--primary);font-size:12px;letter-spacing:-.15px;text-transform:none; }
  .kb-header h1 { font:500 24px/1.2 system-ui,sans-serif;letter-spacing:-.15px;text-transform:none;margin:12px 0; }
  .kb-header p { color:var(--muted-fg);font-size:14px;line-height:1.7;margin:0 0 26px; }
  .kb-search { display:flex;gap:12px;align-items:center;background:var(--card);border:1px solid var(--border);padding:12px 16px;border-radius:9px;margin-bottom:30px; }
  .kb-search > span { color:var(--muted-fg);font-size:14px; }
  .kb-search input[type=search] { flex:1;min-width:0;outline:0;border:0;background:transparent;color:var(--fg);font:14px/22px system-ui,sans-serif; }
  .kb-search button { background:var(--cream);color:var(--fg);border:1px solid var(--border);border-radius:5px;padding:4px 9px;font:12px/20px system-ui,sans-serif;cursor:pointer; }
  .kb-ui h2 { font:500 14px/22px system-ui,sans-serif;text-transform:none;letter-spacing:0;margin:0; }
  .kb-section { margin-bottom:30px; }
  .kb-section-head { display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px; }
  .kb-section-head > span,.kb-section-head > a { font-size:12px;color:var(--muted-fg); }
  .kb-topic-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:13px; }
  .kb-topic-card { padding:20px;border:1px solid var(--border);border-radius:9px;background:var(--card);transition:transform 160ms,border-color 160ms;min-width:0; }
  .kb-topic-card:hover { transform:translateY(-2px);border-color:var(--primary); }
  .kb-topic-icon { display:grid;place-items:center;width:32px;height:32px;background:var(--cream);color:var(--primary);border-radius:6px;margin-bottom:14px;font-size:14px; }
  .kb-topic-card h3 { font:500 14px/22px system-ui,sans-serif;margin:0 0 9px;text-transform:none; }
  .kb-topic-card p { font-size:12px;color:var(--muted-fg);line-height:1.7;margin:0 0 16px; }
  .kb-topic-card > span:last-child { font-size:12px;color:var(--muted-fg); }
  .kb-reading-grid { display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:32px;margin-top:30px; }
  .kb-page-list { border-top:1px solid var(--border); }
  .kb-ui .post { display:block;padding:18px 0;border-bottom:1px solid var(--border); }
  .kb-ui .ptitle { font:500 14px/22px system-ui,sans-serif;text-transform:none;letter-spacing:0; }
  .kb-ui .pmeta2 { font-size:12px;margin-top:7px; }
  .kb-ui .pexcerpt { font-size:12px;line-height:1.6;margin-top:7px; }
  .kb-help { border-left:1px solid var(--border);padding-left:22px;padding-top:2px; }
  .kb-help p { font-size:12px;line-height:1.7;color:var(--muted-fg); }
  .kb-help a { font-size:12px;color:var(--primary); }
  .kb-help hr { border:0;border-top:1px solid var(--border);margin:24px 0; }
  .kb-empty { padding:34px 24px;border:1px dashed var(--border);border-radius:8px;text-align:center; }
  .kb-empty h3 { font:500 14px/24px system-ui,sans-serif;text-transform:none;margin:0 0 10px; }
  .kb-empty p { color:var(--muted-fg);font-size:13px; }
  .kb-empty a { color:var(--primary);font-size:13px; }
  .kb-page-row { display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--border); }
  .kb-page-icon { color:var(--muted-fg);font-size:14px; }
  .kb-page-row > div { min-width:0; }
  .kb-page-row h3 { font:500 14px/22px system-ui,sans-serif;text-transform:none;margin:0 0 5px; }
  .kb-page-row p { font-size:12px;color:var(--muted-fg);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45vw; }
  .kb-row-meta { font-size:12px;color:var(--muted-fg);margin-left:auto;white-space:nowrap; }
  .kb-saved { border:1px solid var(--border);border-radius:9px;padding:24px;background:var(--card); }
  .kb-saved .dhead { margin-bottom:16px; }
  .kb-article-layout { display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:38px; }
  .kb-article-body { min-width:0;font:14px/1.85 system-ui,sans-serif; }
  .kb-article-body p { margin:0 0 22px;line-height:1.85; }
  .kb-article-body h2,.kb-article-body h3 { font:500 14px/30px system-ui,sans-serif;text-transform:none;margin:32px 0 16px;scroll-margin-top:25px; }
  .kb-article-body h3 { font-size:14px; }
  .kb-article-body img { max-width:100%;height:auto;border-radius:7px; }
  .kb-private-body { max-width:760px;white-space:pre-wrap;overflow-wrap:anywhere; }
  .kb-private-meta { font-size:12px;color:var(--muted-fg);margin:10px 0 28px; }
  .kb-toc { border-left:1px solid var(--border);padding-left:18px;align-self:start;position:sticky;top:24px; }
  .kb-toc h2 { font-size:12px;margin-bottom:12px;color:var(--muted-fg); }
  .kb-toc a { display:block;font-size:12px;padding:5px 0;color:var(--muted-fg); }
  .kb-related { border-top:1px solid var(--border);padding-top:24px;margin-top:36px; }
  .kb-related a { display:block;padding:9px 0;font-size:13px;color:var(--primary); }
  .kb-editor { display:flex;flex-direction:column;gap:20px; }
  .kb-editor label { display:flex;flex-direction:column;gap:8px;font-size:13px; }
  .kb-editor textarea { resize:vertical;min-height:350px;font:14px/1.8 system-ui,sans-serif; }
  .kb-delete { margin-top:40px; }
  @media(max-width:1100px) { .kb-nav { width:180px; } .kb-main { padding:24px; } .kb-reading-grid,.kb-article-layout { grid-template-columns:minmax(0,1fr); } .kb-help,.kb-toc { display:none; } }
  @media(max-width:700px) { .kb-ui { flex-direction:column; } .kb-nav { width:100%;padding:14px 16px;border-right:0;border-bottom:1px solid var(--border); } .kb-home,.kb-saved-link { display:none; } .kb-nav nav[aria-label="Knowledge spaces"] { display:flex;flex-wrap:wrap;gap:5px; } .kb-space { flex:none;margin:0;padding:8px 10px;font-size:12px;gap:7px; } .kb-toolbar { margin-bottom:22px;flex-wrap:wrap; } .kb-main { padding:22px 18px; } .kb-page-row { flex-wrap:wrap; } .kb-row-meta { margin-left:0; } .kb-page-row p { max-width:70vw; } .kb-saved { padding:18px; } .kb-topic-grid { grid-template-columns:1fr; } }
  @media(prefers-reduced-motion:reduce) { .kb-topic-card { transition:none; } }
  .access-intro { display:flex;justify-content:space-between;gap:30px;align-items:center;margin-bottom:22px; }
  .access-intro .lede { max-width:760px;margin:0; }
  .sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
  .wrap:has(> .access-grid-wrap) { width:100%;min-width:0;max-width:none; }
  .access-grid-wrap { width:100%;overflow:auto;max-height:65vh;border:1px solid var(--border);background:var(--card);border-radius:9px; }
  .access-grid { border-collapse:separate;border-spacing:0;min-width:100%;font-size:13px; }
  .access-grid th,.access-grid td { border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:10px;min-width:155px; }
  .access-grid thead th { position:sticky;top:0;z-index:3;background:var(--cream);text-align:left;font:14px/20px var(--body);font-weight:500; }
  .access-grid tr > :first-child { position:sticky;left:0;z-index:2;min-width:230px;max-width:260px;background:var(--card); }
  .access-grid thead tr > :first-child { z-index:4;background:var(--cream); }
  .access-app { text-align:left;font-weight:500; }
  .access-app img { width:24px;height:24px;object-fit:contain;vertical-align:middle;margin-right:10px; }
  .access-app span { display:inline-block;vertical-align:middle; }
  .access-app small { display:block;font-size:12px;color:var(--muted-fg);margin-top:2px; }
  .access-global-button { border:1px dashed var(--border);border-radius:6px;background:transparent;color:var(--muted-fg);padding:7px 10px;cursor:pointer;white-space:nowrap;font:12px/20px var(--body); }
  .access-global-button.enabled { border-style:solid;background:var(--cream);color:var(--primary); }
  .access-picker summary { display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;padding:7px 10px;border:1px solid var(--border);border-radius:6px;background:var(--bg);list-style:none;min-width:140px;font-size:12px; }
  .access-picker summary::-webkit-details-marker { display:none; }
  .access-options { position:absolute;z-index:50;background:var(--card);border:1px solid var(--border);border-radius:9px;padding:16px;width:300px;max-height:440px;overflow:auto;box-shadow:0 12px 40px #0002; }
  .access-options-head { display:flex;flex-direction:column;margin-bottom:12px; }
  .access-options-head span { font-size:12px;color:var(--muted-fg); }
  .access-options label { display:flex;align-items:center;gap:8px;padding:7px 0;font:13px/18px var(--body); }
  .access-options label small { font-size:12px; }
  .access-modes { border:0;border-bottom:1px solid var(--border);padding:0 0 10px;margin:0 0 10px; }
  .access-people label { align-items:flex-start; }
  .access-people label small { display:block; }
  .access-people input { flex:none;margin-top:3px; }
  .access-people { max-height:160px;overflow:auto;margin:8px 0 14px; }
  .access-options .btn { width:100%; }
  @media(max-width:700px) { .access-intro { flex-direction:column;align-items:stretch; } .access-grid tr > :first-child { min-width:160px; } }
  .catalog-add-actions { display:flex;gap:10px;margin:24px 0 16px; }
  .catalog-summary { cursor:pointer;font:14px/26px var(--heading); }
  .catalog-form { max-width:740px;display:flex;flex-direction:column;gap:14px;margin-top:16px; }
  .catalog-form label { display:flex;flex:1;flex-direction:column;gap:5px;font-size:14px; }
  .catalog-form .catalog-checkbox { flex-direction:row;align-items:center;gap:8px; }
  .catalog-form .btn { align-self:flex-start; }
  @media(prefers-reduced-motion:reduce) { .view-switch-slider { transition:none; } }
  .tools-more { align-self: flex-start; }
  .dashboard-panels > .panel { height: 380px; min-height: 0; overflow: hidden; }
  .dashboard-panels.second > .panel { height: 194px; }
  .dashboard-panels .phead { flex: none; }
  .dashboard-panels .pbody { min-height: 0; overflow: auto; }
  .dashboard-panels.second > .announcements-panel { height: auto; min-height: 194px; }
  .dashboard-panels .announcements-panel .pbody { overflow: visible; }
  .annbody { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
  .tools-panel .pbody { overflow: hidden; }
  .tools-preview { flex: 1; min-height: 0; overflow: auto; }
  .tools-preview.enhanced { overflow: hidden; }
  .tools-footer { min-height: 44px; padding-top: 14px; flex: none; }
  .tools-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--fg); }
  .tools-dialog[open] { display: flex; flex-direction: column; }
  .tools-dialog::backdrop { background: rgb(0 0 0 / .3); }
  .tools-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 32px; border-bottom: 1px solid var(--border); flex: none; }
  .tools-dialog-head h2 { margin: 0; font: 24px/1.1 var(--heading); text-transform:none; }
  .tools-dialog-head p { margin: 8px 0 0; font-size: 14px; color: var(--muted-fg); }
  .tools-dialog-scroll { overflow: auto; min-height: 0; padding: 24px 32px 40px; }
  .tools-dialog-actions, #tools-dialog-grid { width: 100%; max-width: 1280px; margin: 0 auto; }
  .tools-dialog-actions { min-height: 40px; margin-bottom: 20px; }
  .tools-dialog-actions .phead-right { flex-wrap: wrap; }
  body.tools-dialog-open { overflow: hidden; }
  .tools-dialog :is(button, a):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
  @media (max-width: 600px) {
    .tools-dialog-head { padding: 20px 16px; align-items: flex-start; }
    .tools-dialog-head h2 { font-size: 24px; }
    .tools-dialog-scroll { padding: 16px; }
    .tools-dialog-head p { max-width: 24ch; }
  }
  .tgrid.arranging .fitem:active { cursor: grabbing; }
  .tile-placeholder { border: 1px dashed var(--primary); background: rgba(206,83,70,.05); }
  .tile-dragging { box-shadow: 0 12px 30px rgba(0,0,0,.2); background: var(--card); }
  .tgrid.arranging .fitem.dragging { opacity: .45; }
  .fitem {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 20px 8px 16px; background: transparent; text-align: center;
  }
  .fitem:hover { background: var(--cream); }
  .fitem img { height: 36px; width: auto; }
  .fitem span {
    font-family: var(--subhead); text-transform:none; letter-spacing:-.15px;
    font-size: 12px; line-height: 14px; color: var(--fg);
  }

  /* Season panel */
  .panel.season { min-height: 0; margin-top: 20px; }
  .statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 0 12px; }
  .stat .n { font-family: var(--heading); font-size: 24px; line-height: 1; }
  .stat .n.accent { color: var(--primary); }
  .stat .l { font-size: 13px; line-height: 18px; color: var(--muted-fg); margin-top: 6px; }
  .subhead {
    font-family: var(--subhead); text-transform:none; letter-spacing:-.15px; font-weight: 500;
    font-size: 14px; line-height: 1.3; padding: 14px 0 4px; border-top: 1px solid var(--border);
  }
  .dep { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .dep:last-child { border-bottom: 0; }
  .dep .dname { flex: 1; font-size: 14px; line-height: 20px; }
  .dep .dwhen { font-family: var(--accent); font-size: 13px; color: var(--muted-fg); }
  .dep .dspots, .pill {
    display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px;
    font-family: var(--subhead); text-transform:none; letter-spacing:-.15px;
    font-size: 12px; line-height: 14px; border: 1px solid var(--border);
    background: var(--card); color: var(--muted-fg); white-space: nowrap;
  }
  .dep .dspots { min-width: 64px; }
  .dep .dspots.open { background: var(--primary); border-color: var(--primary); color: #fff; }

  .agenda-item { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
  .agenda-time { font-family: var(--accent); font-size: 13px; color: var(--muted-fg); min-width: 52px; padding-top: 1px; }
  .agenda-dot { width: 2px; background: var(--primary); align-self: stretch; }

  /* ── Tables, pills, buttons, forms ───────────────────────── */
  table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
  table.plain th {
    text-align: left; background: var(--cream); border: 1px solid var(--border); padding: 8px 12px;
    font-family: var(--subhead); text-transform:none; letter-spacing:-.15px;
    font-size: 13px; font-weight: 400;
  }
  table.plain td { border: 1px solid var(--border); padding: 10px 12px; vertical-align: middle; }
  .pill.active, .pill.published { background: var(--olive-pale); border-color: var(--olive-light); color: var(--olive); }
  .pill.onboarding, .pill.pending, .pill.draft { border-color: var(--orange); color: var(--orange); }
  .pill.offboarded { background: var(--fg); border-color: var(--fg); color: var(--bg); }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 6px 16px; border: 1px solid var(--border); background: var(--card); color: var(--fg);
    font-family: var(--subhead); text-transform:none; letter-spacing:-.15px;
    font-size: 12px; line-height: 16.5px; cursor: pointer; white-space: nowrap; text-decoration: none;
  }
  .btn:hover { background: var(--cream-2); color: var(--fg); }
  .btn.danger { color: var(--primary); border-color: var(--primary); }
  .btn.danger:hover { background: var(--primary); color: #fff; }
  .btn.fill { background: var(--primary); border-color: var(--primary); color: #fff; }
  .btn.fill:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
  .btn.primary {
    height: 44px; padding: 0 32px; font-size: 14px; line-height: 20px;
    background: var(--primary); border-color: var(--primary); color: #fff;
  }
  .btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
  .card { background: var(--card); border: 1px solid var(--border); padding: 20px 24px; margin-bottom: 20px; overflow-x: auto; }
  .grants { margin: 0; padding-left: 20px; }
  .grants li { margin: 7px 0; }
  .field {
    width: 100%; font-family: var(--body); font-size: 14px; line-height: 22px;
    padding: 10px 14px; min-height: 44px; border: 1px solid var(--border);
    background: var(--card); color: var(--fg); border-radius: 0; resize: vertical;
  }
  .field:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 2px rgba(206,83,70,.25); }
  .field.mono { font-family: var(--accent); font-size: 14px; color: var(--fg); }
  select.field { min-height: 0; appearance: auto; }
  label.flabel {
    display: block; font-family: var(--subhead); text-transform:none; letter-spacing:-.15px;
    font-size: 12px; line-height: 16px; color: var(--muted-fg); margin: 16px 0 6px;
  }
  label.flabel:first-child { margin-top: 0; }
  .formrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .formrow .field { width: auto; flex: 1; min-width: 140px; }

  /* ── Training ────────────────────────────────────────────── */
  .h4-like {
    font-family: var(--subhead); text-transform:none; letter-spacing:-.15px; font-weight: 500;
    font-size: 14px; line-height: 1.3; margin: 0 0 8px;
  }
  .trow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); color: var(--fg); }
  .trow:first-of-type { border-top: 0; }
  a.trow:hover { color: var(--primary); }
  .check {
    width: 20px; height: 20px; flex: none; border: 1px solid var(--border); background: var(--card); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .check.done { background: var(--olive); border-color: var(--olive); }
  .lessonlayout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
  .toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; }
  .lesson-outline > summary { cursor: pointer; font-family: var(--accent); font-size: 13px; padding: 12px 0; }
  .lesson-outline-content { padding-top: 10px; }
  @media (min-width: 841px) {
    .lesson-outline > summary { display: none; }
    .lesson-outline::details-content { content-visibility: visible; }
    .lesson-outline:not([open]) > .lesson-outline-content { display: block; }
  }
  .tockick { font-family: var(--accent); font-size: 12px; letter-spacing:-.15px; text-transform:none; color: var(--muted-fg); }
  .toclist { display: flex; flex-direction: column; }
  .toclist a { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); color: var(--fg); font-size: 14px; line-height: 20px; }
  .toclist a:first-child { border-top: 0; }
  .toclist a.cur { font-weight:500; }
  .toclist a:hover { color: var(--primary); }
  .toclist .n { font-family: var(--accent); font-size: 12px; color: var(--muted-fg); min-width: 16px; padding-top: 1px; }
  .toclist .t { flex: 1; }
  .toclist .ok { color: var(--olive); }
  .lessonmain { max-width: 720px; }
  .lessonmain h1.page { margin-bottom: 18px; }
  .lessonmain .lb-question { background: var(--card); }
  .lessonfoot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
  .quiz .q { padding: 18px 0; margin: 0; border: 0; border-top: 1px solid var(--border); }
  .quiz .q:first-of-type { border-top: 0; }
  .quiz .prompt { font-size: 14px; line-height: 24px; margin: 0 0 10px; padding: 0; }
  .quiz .opt {
    display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; margin-bottom: 6px;
    border: 1px solid var(--border); background: var(--card); cursor: pointer; font-size: 14px; line-height: 22px;
  }
  .quiz .opt input { margin-top: 5px; accent-color: var(--primary); }
  .quiz .opt.correct { border-color: var(--olive-light); background: var(--olive-pale); }
  .quiz .opt.wrong { border-color: var(--primary); }
  .result { padding: 18px 22px; border: 1px solid var(--border); background: var(--cream); margin-bottom: 20px; display: flex; gap: 20px; align-items: center; }
  .result.pass { background: var(--olive-pale); border-color: var(--olive-light); }
  .result .big { font-family: var(--heading); font-size: 24px; line-height: 1; }
  textarea.field.tall { min-height: 340px; font-family: var(--accent); font-size: 14px; line-height: 1.55; }
  .help { font-size: 13px; line-height: 1.55; color: var(--muted-fg); margin: 8px 0 0; }
  .help code { font-family: var(--accent); background: var(--cream); padding: 1px 5px; }
  .uploader { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
  .cal { list-style: none; margin: 0; padding: 0; }
  .cal li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); }
  .cal li:first-child { border-top: 0; padding-top: 0; }
  .cal time { font-family: var(--accent); font-size: 13px; line-height: 20px; color: var(--muted-fg); min-width: 68px; white-space: nowrap; }
  .cal .calbody { flex: 1; font-size: 14px; line-height: 20px; }
  .cal .calbody a { color: inherit; text-decoration: none; }
  .cal .calbody a:hover { text-decoration: underline; }
  .cal .calmeta { display: block; font-size: 13px; color: var(--muted-fg); }
  .cal .caltag { display: inline-block; margin-left: 6px; padding: 0 6px; font-family: var(--accent); font-size: 11px; line-height: 16px; color: var(--muted-fg); border: 1px solid var(--border); vertical-align: 1px; }
  .cal .calmeet { padding: 2px 10px; font-size: 12px; }
  .calnote { font-size: 13px; color: var(--primary); margin: 0 0 10px; }
  .empty.calcta { flex-direction: column; gap: 14px; text-align: center; }
  .empty.calcta p { margin: 0; max-width: 260px; }
  .caldisconnect { margin-top: auto; padding-top: 14px; text-align: right; }
  .linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted-fg); cursor: pointer; text-decoration: underline; }
  .postvideo-file video { display: block; width: 100%; max-height: 70vh; background: #000; }
  .lb { margin: 0 0 18px; }
  .lb-h2 { font-family: var(--heading); font-size: 14px; letter-spacing:-.15px; margin: 26px 0 10px; }
  .lb-h3 { font-family: var(--heading); font-size: 14px; letter-spacing:-.15px; margin: 20px 0 8px; }
  .lb-text p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
  .lb-text ul, .lb-text ol { margin: 0 0 12px 22px; }
  .lb-text code { font-family: var(--accent); background: var(--cream); padding: 1px 5px; }
  .lb-list { margin: 0 0 18px 22px; line-height: 1.6; }
  .lb-check { list-style: none; margin-left: 0; }
  .lb-check li::before { content: '☐ '; color: var(--muted-fg); }
  .lb-media { margin: 0 0 18px; }
  .lb-media.lb-sm { max-width: 33%; }
  .lb-media.lb-md { max-width: 60%; }
  .lb-media.lb-full { max-width: 100%; }
  .lb-media .postimage, .lb-media .postvideo { margin: 0; }
  .lb-media figcaption, .lb-audio figcaption { font-family: var(--accent); font-size: 13px; color: var(--muted-fg); margin-top: 6px; }
  .lb-audio audio { width: 100%; }
  .lb-divider { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
  .lb-steps { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: step; }
  .lb-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--border); line-height: 1.55; }
  .lb-steps li:first-child { border-top: 0; }
  .lb-stepnum { font-family: var(--accent); font-size: 13px; min-width: 26px; height: 26px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; }
  .lb-question { border: 1px solid var(--border); padding: 16px 18px; background: var(--cream); }
  .lb-question.correct { border-color: var(--good, #4e7a3b); }
  .lb-question .lb-qhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
  .lb-question .prompt { margin: 0; font-weight:500; }
  .lb-question .opt { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
  .lb-question .opt.correct { color: var(--good, #4e7a3b); }
  .lb-question .opt.wrong { color: var(--primary); }
  .pill.danger { color: var(--primary); border-color: var(--primary); }
  /* Block editor and drag lists: one interaction (drag the grip), quiet chrome */
  .drag-noselect, .drag-noselect * { user-select: none !important; }
  .drag-placeholder { border: 1px dashed var(--primary); background: rgba(206,83,70,.05); margin: 6px 0; }
  .drag-active { box-shadow: 0 10px 30px rgba(0,0,0,.18); background: var(--card); opacity: .95; }
  .grip, .be-grip { cursor: grab; color: var(--muted-fg); letter-spacing:-.15px; font-size: 14px; line-height: 1; padding: 0 2px; touch-action: none; user-select: none; }
  .grip:active, .be-grip:active { cursor: grabbing; }
  .dhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
  .dlist { position: relative; }
  .drow { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--border); background: var(--card); }
  .drow:first-child { border-top: 0; }
  .drow .dnum { min-width: 22px; color: var(--muted-fg); font-size: 13px; }
  .drow .dtitle { flex: 1; color: var(--fg); text-decoration: none; }
  .drow .dtitle:hover { color: var(--primary); }
  .drow .dmeta { font-family: var(--accent); font-size: 12px; color: var(--muted-fg); }
  .dadd { display: flex; gap: 10px; margin-top: 12px; }
  .dadd .be-in { flex: 1; }
  .sortable-status { min-height: 18px; margin-top: 6px; }
  .be-top { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
  .be-back { font-size: 14px; color: var(--muted-fg); text-decoration: none; padding: 0 4px; }
  .be-back:hover { color: var(--fg); }
  .be-title { flex: 1; min-width: 160px; border: 0; border-bottom: 1px solid transparent; background: transparent; font-family: var(--heading); font-size: 24px; letter-spacing:-.15px; color: var(--fg); padding: 4px 0; }
  .be-title:focus { outline: none; border-bottom-color: var(--ring); }
  .editor-status { font-family: var(--accent); font-size: 13px; color: var(--muted-fg); min-width: 60px; text-align: right; }
  .editor-status.dirty { color: var(--primary); }
  .editor-status.error { color: var(--primary); font-weight:500; }
  .be-list { max-width: 760px; }
  .be-card { background: var(--card); border: 1px solid var(--border); position: relative; }
  .be-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 0; position: relative; }
  .be-type { font-family: var(--accent); font-size: 12px; text-transform:none; letter-spacing:-.15px; color: var(--muted-fg); flex: 1; }
  .be-more { background: none; border: 0; font: inherit; font-size: 14px; line-height: 1; color: var(--muted-fg); cursor: pointer; padding: 0 6px; }
  .be-more:hover { color: var(--fg); }
  .be-menu { position: absolute; right: 8px; top: 30px; z-index: 20; background: var(--card); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; min-width: 140px; }
  .be-menu button { background: none; border: 0; font: inherit; text-align: left; padding: 9px 14px; cursor: pointer; }
  .be-menu button:hover { background: var(--cream); }
  .be-menu button.danger { color: var(--primary); }
  .be-body { padding: 8px 14px 14px 14px; }
  .be-in { width: 100%; box-sizing: border-box; border: 1px solid transparent; border-bottom-color: var(--border); background: transparent; font: inherit; font-size: 14px; padding: 6px 2px; color: var(--fg); resize: none; }
  .be-in:focus { outline: none; border-bottom-color: var(--ring); }
  .be-in.be-big { font-size: 14px; }
  .be-in::placeholder { color: var(--muted-fg); opacity: .8; }
  select.be-in { border: 1px solid var(--border); padding: 6px 8px; }
  .be-lab { display: block; margin-top: 10px; }
  .be-lab > span { display: block; font-family: var(--accent); font-size: 12px; color: var(--muted-fg); margin-bottom: 2px; }
  .be-seg { display: inline-flex; border: 1px solid var(--border); margin-top: 8px; }
  .be-seg button { background: none; border: 0; border-left: 1px solid var(--border); font: inherit; font-size: 13px; padding: 5px 11px; cursor: pointer; color: var(--muted-fg); }
  .be-seg button:first-child { border-left: 0; }
  .be-seg button.on { background: var(--fg); color: var(--bg, #fff); }
  .be-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
  .be-row .be-seg { margin-top: 0; }
  .be-ghost { background: none; border: 1px dashed var(--border); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; color: var(--muted-fg); margin-top: 8px; }
  .be-ghost:hover { border-color: var(--fg); color: var(--fg); }
  .be-note { font-family: var(--accent); font-size: 13px; color: var(--muted-fg); margin: 6px 0 0; }
  .be-details { margin-top: 10px; }
  /* Module editor: settings first, one calm card */
  .modset { display: flex; flex-direction: column; gap: 12px; overflow: visible; }
  .modtitle { width: 100%; border: 0; border-bottom: 1px solid var(--border); background: transparent; font-family: var(--heading); font-size: 26px; line-height: 1.2; color: var(--fg); padding: 4px 0 8px; }
  .modtitle:focus { outline: none; border-bottom-color: var(--ring); }
  .moddesc { font-size: 14px; }
  .modgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 20px; }
  .modgrid .be-lab { margin-top: 0; }
  .modpick { position: relative; padding: 0; }
  .modpick > summary { list-style: none; cursor: pointer; padding: 10px 32px 10px 12px; min-height: 40px; display: flex; align-items: center; }
  .modpick > summary::-webkit-details-marker { display: none; }
  .modpick > summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--muted-fg); border-bottom: 1.5px solid var(--muted-fg); transform: translateY(-70%) rotate(45deg); }
  .modpick-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px #00000014; padding: 6px; max-height: 280px; overflow-y: auto; }
  .modpick-opt { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; }
  .modpick-opt:hover { background: var(--cream); }
  .modpick-locked { color: var(--muted-fg); cursor: default; }
  .catalog-icon-preview { width: 22px; height: 22px; vertical-align: middle; margin-left: 8px; border-radius: 5px; }
  .modpick-locked small { font-size: 11px; }
  .modpick-solo + .modpick-opt:not(.modpick-solo) { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 12px; border-radius: 0 0 7px 7px; }
  .modfoot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
  .modswitch { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 14px; cursor: pointer; }
  .modswitch input { width: 18px; height: 18px; accent-color: var(--primary); }
  .modswitch small { color: var(--muted-fg); font-size: 12px; }
  .moddanger { margin-top: 14px; }
  /* Manage knowledge: one space at a time */
  .space-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
  .space-tabs a { padding: 8px 14px; font-size: 14px; color: var(--muted-fg); border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .space-tabs a.on { color: var(--fg); border-bottom-color: var(--primary); font-weight: 500; }
  .manage-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
  .manage-actions .dadd { flex: 1 1 260px; max-width: 420px; }
  .manage-row-actions { white-space: nowrap; text-align: right; }
  .manage-row-actions form { display: inline-block; margin-left: 4px; }
  .post-settings { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 16px; font-size: 14px; }
  .post-settings label { display: flex; align-items: center; gap: 8px; }
  .post-settings select { width: auto; min-width: 160px; }
  .post-space { color: var(--muted-fg); }
  .be-details > summary { cursor: pointer; font-family: var(--accent); font-size: 13px; color: var(--muted-fg); list-style: none; }
  .be-details > summary::-webkit-details-marker { display: none; }
  .be-details > summary::before { content: '▸ '; }
  .be-details[open] > summary::before { content: '▾ '; }
  .be-details > summary:hover { color: var(--fg); }
  .card.be-details { padding: 16px 24px; }
  .card.be-details > summary { font-family: var(--heading); font-size: 14px; letter-spacing:-.15px; text-transform:none; color: var(--fg); }
  .be-check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 10px; }
  .be-richwrap { position: relative; }
  .be-bar { display: none; gap: 2px; margin: 4px 0 6px; }
  .be-richwrap:focus-within .be-bar { display: flex; }
  .be-bar button { border: 1px solid var(--border); background: var(--card); font: inherit; font-size: 13px; padding: 2px 9px; cursor: pointer; min-width: 30px; }
  .be-bar .be-b { font-weight:500; } .be-bar .be-i { font-style: italic; } .be-bar .be-u { text-decoration: underline; }
  .be-rich { min-height: 60px; line-height: 1.6; font-size: 14px; padding: 4px 2px; }
  .be-rich:focus { outline: none; }
  .be-rich:empty::before, .be-rich p:only-child:empty::before { content: attr(data-placeholder); color: var(--muted-fg); }
  .be-rich p { margin: 0 0 8px; }
  .be-rich ul, .be-rich ol { margin: 0 0 8px 20px; }
  .be-preview { margin: 4px 0 6px; }
  .be-preview.empty { display: none; }
  .be-preview.be-small { max-width: 33%; } .be-preview.be-medium { max-width: 60%; }
  .be-preview img, .be-preview video { display: block; width: 100%; height: auto; }
  .be-preview audio { width: 100%; }
  .be-embed { font-family: var(--accent); font-size: 13px; color: var(--muted-fg); padding: 8px 10px; border: 1px solid var(--border); }
  .be-hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0 4px; }
  .be-q .be-seg { margin-top: 0; margin-bottom: 8px; }
  .be-opts { margin-top: 6px; }
  .be-opt { display: flex; gap: 8px; align-items: center; padding: 2px 0; background: var(--card); }
  .be-opt .be-in { flex: 1; }
  .be-x { background: none; border: 0; font: inherit; font-size: 14px; line-height: 1; color: var(--muted-fg); cursor: pointer; padding: 0 6px; }
  .be-x:hover { color: var(--primary); }
  .be-line { position: relative; height: 14px; margin: 0; }
  .be-line::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px solid transparent; }
  .be-line:hover::before, .be-line.open::before { border-top-color: var(--border); }
  .be-plus { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--muted-fg); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; }
  .be-line:hover .be-plus, .be-line.open .be-plus, .be-list > .be-line:last-child .be-plus, .be-list > .be-line:first-child:last-child .be-plus { opacity: 1; }
  .be-plus:hover { color: var(--fg); border-color: var(--fg); }
  .be-pal { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); z-index: 20; background: var(--card); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.12); display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px; width: 340px; }
  .be-pal button { background: none; border: 0; font: inherit; font-size: 13px; padding: 8px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--fg); }
  .be-pal button b { font-family: var(--accent); font-weight: 400; font-size: 14px; color: var(--muted-fg); }
  .be-pal button:hover { background: var(--cream); }
  .be-empty { text-align: center; color: var(--muted-fg); font-size: 14px; }
  .askbox { font-size: 14px; }
  .askrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
  .askq { font-family: var(--accent); font-size: 13px; color: var(--muted-fg); margin: 0 0 10px; }
  .asktext p { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
  .askcites { margin: 14px 0 0; padding-left: 22px; font-size: 14px; }
  .askcites li { margin: 4px 0; }
  .savedlist { list-style: none; margin: 0 0 10px; padding: 0; }
  .savedlist li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
  .savedlist li:first-child { border-top: 0; }
  .savedlist li a { flex: 1; color: var(--fg); text-decoration: none; }
  .savedlist li a:hover { color: var(--primary); }
  @media (max-width: 640px) { .be-pal { width: 280px; grid-template-columns: repeat(3, 1fr); } .be-preview.be-small, .be-preview.be-medium { max-width: 100%; } }
  .postfile a { font-family: var(--accent); font-size: 14px; }
  .postfile a::before { content: '⤓ '; }
  button.pill { cursor: pointer; }

  /* ── Resources ───────────────────────────────────────────── */
  .h3-like { font-family: var(--heading); text-transform:none; font-weight: 400; letter-spacing: 0; font-size: 24px; line-height: 1.1; margin: 0 0 8px; }
  .reshead { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
  .searchbar { position: relative; flex: 1; display: flex; align-items: center; }
  .searchbar svg { position: absolute; left: 14px; color: var(--muted-fg); pointer-events: none; }
  .searchbar .field { padding-left: 40px; }
  .reslayout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
  .colnav { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
  .colnav a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--fg); font-size: 14px; }
  .colnav a.on { color: var(--primary); }
  .colnav a .mono { color: var(--muted-fg); }
  .colselect { display: none; }
  @media (max-width: 760px) {
    .reslayout { grid-template-columns: 1fr; gap: 16px; }
    .colnav { display: none; }
    .colselect { display: block; }
  }
  .postlist { padding-top: 4px; padding-bottom: 8px; }
  .postlist a.post { display: block; padding: 20px 0; border-top: 1px solid var(--border); }
  .postlist a.post:first-child { border-top: 0; }
  .postlist a.post:hover .ptitle { color: var(--primary); }
  .postlist .ptitle { font-family: var(--heading); text-transform:none; font-size: 14px; line-height: 28px; }
  .postlist .pmeta2 { font-family: var(--accent); font-size: 13px; line-height: 20px; color: var(--muted-fg); margin-top: 4px; }
  .postlist .pexcerpt { font-size: 14px; line-height: 1.625; color: var(--muted-fg); margin-top: 6px; max-width: 64ch; }
  .postbody { overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; max-width: 720px; }
  .postbody > :first-child { margin-top: 0; }
  .postbody > :last-child { margin-bottom: 0; }
  .posttext { white-space: pre-wrap; margin: 0 0 18px; }
  .postimage { display: block; max-width: 100%; height: auto; margin: 22px auto; }
  .postvideo { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 22px 0; overflow: hidden; background: #121212; }
  .postvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .postcallout { margin: 20px 0; padding: 16px 22px; border-left: 4px solid #cd5144; background: var(--cream); font-style: italic; }
  .postlink { margin: 18px 0; }
  .postlink a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
  .postmeta { font-family: var(--accent); font-size: 13px; line-height: 20px; color: var(--muted-fg); margin: 0 0 20px; }

  /* ── Command palette (⌘K) ────────────────────────────────── */
  .cmdk {
    position: fixed; inset: 0; z-index: 50; background: rgba(18,18,18,.4);
    display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px;
  }
  .cmdk[hidden] { display: none; }
  .cmdk-panel { width: min(560px, 100%); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-xl); overflow: hidden; }
  .cmdk-input {
    width: 100%; border: 0; outline: none; background: transparent; color: var(--fg);
    font-family: var(--body); font-size: 14px; line-height: 24px;
    padding: 16px 18px; border-bottom: 1px solid var(--border); border-radius: 0;
  }
  .cmdk-list { max-height: 46vh; overflow-y: auto; padding: 8px 0; }
  .cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 14px; line-height: 20px; cursor: pointer; color: var(--fg); }
  .cmdk-item img { height: 20px; width: 20px; object-fit: contain; }
  .cmdk-item.sel, .cmdk-item:hover { background: var(--cream); color: var(--fg); }
  .cmdk-item .hint {
    margin-left: auto; font-family: var(--subhead); text-transform:none; letter-spacing:-.15px;
    font-size: 12px; color: var(--muted-fg);
  }
  .cmdk-empty { padding: 24px; text-align: center; color: var(--muted-fg); font-size: 14px; }

  /* ── Standalone (sign-in / denied / not-provisioned) ─────── */
  .center-card {
    max-width: 400px; margin: 14vh auto; background: var(--card);
    border: 1px solid var(--border); padding: 44px 40px; text-align: center;
  }
  .center-card img { height: 48px; width: auto; margin-bottom: 20px; }
  .center-card h1 {
    font-family: var(--heading); text-transform:none; font-weight: 400; letter-spacing: 0;
    font-size: 24px; line-height: 1.1; margin: 0 0 12px;
  }
  .center-card p { font-size: 14px; line-height: 1.625; color: var(--muted-fg); margin: 0 0 10px; }
  .center-card .btn.primary { box-shadow: var(--shadow-glow); }

  @media (max-width: 840px) {
    .app { flex-direction: column; }
    .rail {
      width: 100%; height: auto; position: static; overflow: visible;
      flex-direction: row; flex-wrap: wrap; align-items: center;
      padding: 8px 12px 0; border-right: 0; border-bottom: 1px solid var(--border);
    }
    .railtop { order: 1; padding: 4px 4px; }
    .railfoot { order: 2; margin: 0 0 0 auto; padding: 0; border-top: 0; }
    .railfoot details.menu > summary { padding: 0; }
    .railfoot .who2 { display: none; }
    .railfoot .pop { left: auto; right: 0; top: calc(100% + 8px); bottom: auto; }
    .railnav {
      order: 3; width: 100%; flex-direction: row; align-items: center; gap: 2px;
      padding-top: 6px; flex-wrap:wrap; min-width:0;
    }
    .railnav::-webkit-scrollbar { display: none; }
    .rnav { flex-direction: row; flex-wrap:wrap; min-width:0; }
    .rnav a { padding: 8px 10px; }
    .railsec { padding: 0 6px 0 10px; margin-left: 6px; border-left: 1px solid var(--border); white-space: nowrap; }
    .bar { padding: 0 16px; }
    .searchfield { width: auto; flex: 1; }
    .searchfield .kbd { display: none; }
    .lessonlayout { grid-template-columns: 1fr; gap: 16px; }
    .toc { position: static; }
  }
  @media (max-width: 640px) {
    .wrap { padding: 28px 16px 48px; }
    .who h1 { font-size: 24px; }
    h1.page { font-size: 24px; line-height: 36px; }
    .panel .phead { padding: 16px 16px 0; }
    .panel .pbody { padding: 12px 16px 16px; }
    .fgrid.tgrid { grid-template-columns: repeat(3, 1fr); }
    .statrow { gap: 12px; }
    .stat .n { font-size: 24px; }
  }
/* transitions.dev cli/free/icon-swap.md, 74e5723.
   State selectors adapted to the existing pre-paint saved rail class. See THIRD_PARTY_NOTICES.md. */
:root {
  --icon-swap-dur: 250ms;
  --icon-swap-blur: 2px;
  --icon-swap-start-scale: 0.25;
  --icon-swap-ease: ease-in-out;
}

.t-icon-swap {
  position: relative;
  display: inline-grid;
}
.t-icon-swap .t-icon {
  grid-area: 1 / 1;
  transition:
    opacity   var(--icon-swap-dur) var(--icon-swap-ease),
    filter    var(--icon-swap-dur) var(--icon-swap-ease),
    transform var(--icon-swap-dur) var(--icon-swap-ease);
  will-change: opacity, filter, transform;
}
body:not(.rail-collapsed) .t-icon-swap .t-icon[data-icon="a"],
body.rail-collapsed .t-icon-swap .t-icon[data-icon="b"] {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}
body:not(.rail-collapsed) .t-icon-swap .t-icon[data-icon="b"],
body.rail-collapsed .t-icon-swap .t-icon[data-icon="a"] {
  opacity: 0;
  filter: blur(var(--icon-swap-blur));
  transform: scale(var(--icon-swap-start-scale));
}

@media (prefers-reduced-motion: reduce) {
  .t-icon-swap .t-icon { transition: none !important; }
}

.t-icon-swap .t-icon { display: flex; }

/* transitions.dev cli/free/modal.md, 74e5723. Native dialog orchestration in pages.tsx. */
:root {
  --modal-open-dur: 250ms;
  --modal-close-dur: 150ms;
  --modal-scale: 0.96;
  --modal-scale-close: 0.96;
  --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.t-modal {
  transform-origin: center;
  transform: scale(var(--modal-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-open-dur) var(--modal-ease),
    opacity   var(--modal-open-dur) var(--modal-ease);
  will-change: transform, opacity;
}
.t-modal.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-modal.is-closing {
  transform: scale(var(--modal-scale-close));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-close-dur) var(--modal-ease),
    opacity   var(--modal-close-dur) var(--modal-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-modal { transition: none !important; }
}

/* Beautiful UI chat.tsx/context-cards.tsx + globals.css port; Amicro FadeUp.
   See THIRD_PARTY_NOTICES.md for upstream revisions, licenses, and adaptations. */
.app:has(.ask-ui) { height:100dvh; min-height:0; overflow:hidden; }
.main:has(.ask-ui) { min-height:0; }
.wrap:has(> .ask-ui) { display:flex; flex:1; min-height:0; width:100%; max-width:none; margin:0; padding:24px; }
.ask-ui {
  --ask-surface:#fff; --ask-field:#f2f2f3; --ask-inset:#f7f8f9;
  --ask-hover:#f4f5f6; --ask-ink:#1f2124; --ask-ink-2:#62656b;
  --ask-ink-3:#767980; --ask-line:#ecedef; --ask-line-strong:#e0e2e5;
  --ask-shadow:0 0 0 1px var(--ask-line),0 1px 2px #1018280a,0 2px 6px #10182808;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ask-ink); display:flex; flex-direction:column; flex:1; min-height:0; width:100%; max-width:none; margin:0;
  animation:ask-enter .6s cubic-bezier(.16,1,.3,1) both;
}
.ask-ui.ask-updated { animation:none; }
.ask-ui .ask-heading { flex:none; display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:22px; }
.ask-ui .ask-heading h1 { font-family:var(--heading); font-size:24px; line-height:1.2; margin:4px 0 0; }
.ask-ui .ask-chat { flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; border-radius:14px; background:var(--ask-surface); box-shadow:var(--ask-shadow); }
.ask-ui .ask-conversation { display:flex; flex-direction:column; flex:1; min-height:0; overflow:auto; padding:24px; outline:none; overflow-wrap:anywhere; }
.ask-ui .ask-conversation > * { flex-shrink:0; }
.ask-ui .ask-empty { text-align:center; margin:auto 0; padding:24px 0; }
.ask-ui .ask-empty-mark { display:block; color:var(--primary); font-size:24px; line-height:1; margin-bottom:18px; }
.ask-ui .ask-suggestions { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:26px; }
.ask-ui .ask-suggestions button { display:flex; align-items:center; gap:12px; border:1px solid var(--ask-line); background:var(--ask-surface); padding:9px 12px; border-radius:8px; font-size:12px; text-align:left; cursor:pointer; transition:background-color 150ms; }
.ask-ui .ask-suggestions button:hover { background:var(--ask-hover); }
.ask-ui .ask-suggestions button:disabled { cursor:default; opacity:.55; }
.ask-ui .ask-user { display:flex; justify-content:flex-end; padding-left:56px; margin-bottom:24px; }
.ask-ui .ask-user p { border-radius:12px; background:var(--ask-field); padding:6px 12px; margin:0; font-size:13px; line-height:1.4; white-space:pre-wrap; animation:ask-bubble 300ms cubic-bezier(.23,1,.32,1) both; }
.ask-ui .ask-response { animation:ask-fade-up 400ms cubic-bezier(.23,1,.32,1) both; }
.ask-ui .ask-author { font-size:12px; font-weight:500; margin-bottom:12px; }
.ask-ui .ask-author span { color:var(--ask-ink-2); font-weight:400; padding-left:6px; }
.ask-ui .ask-prose p { font-size:14px; line-height:1.7; margin:0 0 14px; white-space:pre-wrap; }
.ask-ui .ask-sources { margin-top:24px; }
.ask-ui .ask-sources h2 { display:flex; align-items:center; gap:8px; font:500 13px/20px system-ui,sans-serif; margin:0 0 10px; }
.ask-ui .ask-sources h2 span { background:var(--ask-inset); border-radius:6px; padding:0 6px; font-size:12px; font-weight:500; color:var(--ask-ink-2); }
.ask-ui .ask-sources ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:0; margin:0; list-style:none; }
.ask-ui .ask-source { display:flex; height:100%; flex-direction:column; align-items:flex-start; gap:8px; border-radius:10px; background:var(--ask-surface); box-shadow:var(--ask-shadow); padding-bottom:12px; overflow:hidden; transition:background-color 150ms; }
.ask-ui .ask-source:hover { background:var(--ask-hover); color:var(--ask-ink); }
.ask-ui .ask-source-title { display:flex; align-items:center; gap:6px; width:100%; border-bottom:1px solid var(--ask-line); padding:10px 12px; font-size:13px; font-weight:500; line-height:1.4; }
.ask-ui .ask-source-number { flex:none; color:var(--ask-ink-2); font-size:12px; }
.ask-ui .ask-source-arrow { margin-left:auto; }
.ask-ui .ask-source-section { padding:0 12px; font-size:13px; line-height:1.6; color:var(--ask-ink-2); }
.ask-ui .ask-source-chip { display:inline-flex; height:24px; gap:7px; align-items:center; border-radius:999px; margin:0 12px; padding:0 8px; background:var(--ask-inset); font-size:12px; color:var(--ask-ink-2); transition:background-color 300ms cubic-bezier(.23,1,.32,1); }
.ask-ui .ask-form { flex:none; margin-top:auto; padding:6px; }
.ask-ui .ask-composer { display:flex; flex-direction:column; gap:8px; border-radius:8px; border:1px solid var(--ask-line); background:var(--ask-field); padding:10px; box-shadow:0 1px 2px rgba(0,0,0,.035); transition:border-color 150ms,box-shadow 150ms; }
.ask-ui .ask-composer:focus-within { border-color:var(--ask-ink-3); box-shadow:0 1px 2px rgba(0,0,0,.025); }
.ask-ui .ask-composer textarea { display:block; width:100%; min-height:54px; max-height:200px; resize:vertical; border:0; background:transparent; font:13px/1.4 system-ui,sans-serif; color:var(--ask-ink); padding:0; outline:none; }
.ask-ui .ask-composer textarea::placeholder { color:var(--ask-ink-3); }
.ask-ui .ask-composer-bottom { display:flex; align-items:center; justify-content:flex-end; gap:12px; font-size:12px; color:var(--ask-ink-2); }
.ask-ui .ask-send { display:flex; flex:none; width:32px; height:32px; align-items:center; justify-content:center; border:0; border-radius:8px; background:var(--ask-ink); color:var(--ask-surface); cursor:pointer; transition:background-color 200ms,color 200ms,transform 200ms; }
.ask-ui .ask-send:enabled:active { transform:scale(.96); }
.ask-ui .ask-send:disabled { background:var(--ask-line-strong); color:var(--ask-ink-2); cursor:default; }
.ask-ui .ask-quota { margin:8px 6px 4px; color:var(--ask-ink-2); font-size:12px; line-height:1.5; }
.ask-ui .ask-notice { padding:12px; border-radius:8px; background:var(--bad-bg); color:var(--fg); font-size:13px; line-height:1.5; }
.ask-ui .ask-loading { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ask-ink-2); padding:12px 0; }
.ask-ui .ask-spinner { width:14px; height:14px; border:1.5px solid var(--ask-line-strong); border-top-color:var(--ask-ink-2); border-radius:50%; animation:ask-spin .8s linear infinite; flex:none; }
.ask-ui[data-busy] .ask-empty { display:none; }
.ask-ui :is(button,a):focus-visible { outline:2px solid var(--ring); outline-offset:3px; }
.ask-coming-soon .ask-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:32px 24px; text-align:center; }
.ask-coming-soon .ask-empty p { max-width:42ch; margin:0; font-size:14px; line-height:1.6; }
.ask-ui .ask-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
/* Source: Amicro entrance/fade-up.tsx defaults: duration .6, yOffset 20, ease [.16,1,.3,1]. */
@keyframes ask-enter { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes ask-bubble { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes ask-fade-up { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes ask-spin { to { transform:rotate(360deg); } }
@media(prefers-color-scheme:dark) { .ask-ui { --ask-surface:#19191b; --ask-field:#232326; --ask-inset:#202022; --ask-hover:#28282c; --ask-ink:#ececef; --ask-ink-2:#a5a5ad; --ask-ink-3:#95959e; --ask-line:#2b2b30; --ask-line-strong:#3a3a40; } }
@media(max-width:600px) { .wrap:has(> .ask-ui) { padding:12px; } .ask-ui { margin-top:0; } .ask-ui .ask-heading { margin-bottom:16px; } .ask-ui .ask-conversation { padding:18px 14px; min-height:0; } .ask-ui .ask-empty { padding-top:28px; } .ask-ui .ask-suggestions { flex-direction:column; } .ask-ui .ask-suggestions button { justify-content:space-between; font-size:12px; } .ask-ui .ask-user { padding-left:28px; } .ask-ui .ask-sources ol { grid-template-columns:1fr; } .ask-ui .ask-composer textarea { font-size:14px; } }
@media(prefers-reduced-motion:reduce) { .ask-ui,.ask-ui * { animation:none !important; transition:none !important; } }

@media(max-height:600px) { .ask-ui .ask-heading { display:none; } .ask-ui .ask-composer textarea { min-height:36px; } }

:root, body {
  --bg:#faf9f7; --fg:#292929; --card:#fff; --cream:#f6f4f1;
  --cream-2:#eeebe7; --border:#ece9e5; --muted:#eeebe7; --muted-fg:#5d5d5d;
  --primary:#b34437; --primary-hover:#96382e; --ring:#b34437;
  --body:-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif;
  --heading:var(--body); --subhead:var(--body); --accent:var(--body);
  --olive:#3c6148; --olive-light:#d6e5d8; --olive-pale:#eef5ef;
  --orange:#895221; --warn-bg:#fbf0e3; --bad-bg:#faeeeb;
  --teal:#00414c;
  --shadow-xl:0 16px 48px #29292914; --shadow-glow:0 2px 6px #b3443712;
  color-scheme:light; background:var(--bg); color:var(--fg);
  font:400 14px/1.5 var(--body); letter-spacing:-.15px;
}
body :is(button,input,select,textarea) { font-family:var(--body); letter-spacing:-.15px; }
body :is(.org-ui,.kb-ui,.ask-ui) { font-family:var(--body); }
body :is(h1,h2,h3,h4,strong,b) { font-weight:500; }
/* Contenteditable's bold command uses computed weight to detect bold state. */
body :is(.be-rich,.postbody,.kb-article-body) :is(strong,b) { font-weight:700; }
body .lb { margin-bottom:24px; }
body .lb-media { margin:28px 0; }
body .lb-media + .lb-media { margin-top:32px; }
body :is(h1,h2,h3,h4,p,span,a,label,summary,th,td) { letter-spacing:-.15px; }
body :is(h1,h2,h3,h4) { color:inherit; text-transform:none; }
body :is(a,button,summary,input,textarea,select,[contenteditable]):focus-visible { outline:2px solid var(--ring); outline-offset:3px; }
body :is(button,input,select,textarea):disabled { cursor:not-allowed; opacity:.55; }
body input:is([type=checkbox],[type=radio]) { accent-color:var(--primary); }
body input::placeholder,body textarea::placeholder { color:#85817c; }
body .wrap { max-width:1280px; margin:0 auto; padding:40px 40px 64px; }
body .wrap:has(> .org-ui),body .wrap:has(> .access-grid-wrap) { max-width:none; }
body h1.page { font-size:24px; font-weight:500; line-height:32px; margin:0 0 14px; }
body .lede { color:var(--muted-fg); font-size:14px; line-height:23px; max-width:76ch; margin-bottom:28px; }
body .card { border-radius:16px; padding:24px; box-shadow:0 2px 4px #29292902; }
body .card:has(#employee-email),body .card:has(#request),body .card:has(#import-text) { max-width:900px; }
body :is(.panel,.center-card,.be-card,.kb-saved,.org-list,.access-grid-wrap,.cmdk-panel,.be-pal,.access-options) { border-radius:16px; }
body :is(.h4-like,.h3-like,.subhead,.catalog-summary) { font-size:14px; font-weight:500; line-height:22px; }
body :is(.field,select.be-in,.kb-team-picker select,.org-filters input,.org-filters select) { border-radius:8px; font-family:var(--body); font-size:13px; padding:10px 12px; min-height:40px; }
body .org-search input { padding-left:40px; }
body :is(.field,.be-in,.kb-search):focus-within { border-color:var(--primary); box-shadow:0 0 0 3px #b344370d; }
body :is(.flabel,label.flabel) { font-size:12px; line-height:20px; color:var(--muted-fg); font-weight:500; text-transform:none; letter-spacing:-.15px; }
body .formrow { gap:16px; }
body .formrow > label .field { width:100%; }
body .btn { border-radius:999px; font-size:12px; font-weight:500; line-height:18px; padding:8px 16px; min-height:36px; }
body .btn.primary { height:auto; min-height:40px; padding:10px 20px; font-size:13px; box-shadow:0 2px 3px #b3443714; }
body .btn.danger { border-color:#ead1ca; background:#fff9f7; }
body .btn.danger:hover { background:var(--primary); color:#fff; }
body .pill { border-radius:999px; padding:3px 9px; font-size:12px; line-height:18px; font-weight:400; }
body .pill.pending,body .pill.onboarding,body .pill.draft { background:var(--warn-bg); border-color:#ecdcc8; }
body .pill.offboarded { background:#f0eeeb; color:#5d5d5d; border-color:#e4e0db; }
body table.plain { font-size:13px; line-height:20px; }
body table.plain :is(th,td) { border:0; border-bottom:1px solid var(--border); padding:14px 16px; }
body table.plain th { font-size:12px; font-weight:500; background:#f8f7f5; color:var(--muted-fg); }
body table.plain tbody tr:last-child td { border-bottom:0; }
body table.plain tbody tr:hover { background:#faf9f7; }
body table.plain td .btn { margin:3px 0; }
body :is(.banner,.result,.quiz .opt,.lb-question,.be-seg,.be-embed,.be-menu) { border-radius:12px; }
body .banner::before { border-radius:50%; }
body :is(.quiz .prompt,.quiz .opt,.lb-text p,.postbody,.be-rich,.be-in,.kb-article-body,.kb-editor textarea) { font-size:14px; line-height:1.7; }
body .result .big { font-size:24px; }
body .check { border-radius:6px; }
body .trow { gap:16px; padding:18px 0; font-size:14px; }
body .lessonlayout { grid-template-columns:220px minmax(0,1fr); gap:36px; }
body .toc { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:18px; }
body .toclist a { padding:12px 10px; border:0; border-radius:8px; font-size:13px; }
body .toclist a.cur { background:#f5e9e5; color:#96382e; font-weight:500; }
body .tockick { font-size:12px; padding:0 10px 10px; }
body .lessonmain { max-width:780px; background:var(--card); padding:28px; border:1px solid var(--border); border-radius:16px; }
body :is(.lb-h2,.kb-article-body h2) { font-size:24px; font-weight:500; line-height:32px; }
body :is(.lb-h3,.kb-article-body h3) { font-size:14px; font-weight:500; line-height:22px; }
body .lb-stepnum { border-radius:50%; background:var(--cream); }
body .be-card { margin:6px 0; }
body .be-head { padding:12px 16px 4px; }
body .be-body { padding:12px 20px 20px; }
body .be-title { font-size:24px; font-weight:500; }
body .be-top { max-width:760px; }
body .be-in { border:1px solid var(--border); border-radius:8px; padding:10px 12px; }
body .be-richwrap { border:1px solid var(--border); border-radius:8px; padding:8px 12px; }
body .be-richwrap:focus-within { border-color:var(--primary); }
body :is(.postbody,.kb-article-body,.be-rich) a,
body a.content-link { color:#1d4ed8; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
body :is(.postbody,.kb-article-body,.be-rich) a:hover,
body a.content-link:hover { color:#1e40af; }
body .be-bar { flex-wrap:wrap; }
body :is(.be-bar button,.be-ghost,.be-pal button) { border-radius:8px; }
body .be-pal { max-width:calc(100vw - 56px); }
body .be-seg { overflow:hidden; }
body .be-seg button { font-size:12px; }
body .be-seg button.on { background:#f5e9e5; color:#96382e; }
body .kb-ui { background:var(--bg); }
body .wrap:has(> .kb-ui) { padding:0; }
body .kb-nav { background:#fdfcfb; padding:30px 16px; width:200px; }
body .kb-home { font-size:14px; font-weight:500; }
body .kb-nav-label { font-size:12px; color:#9e9e9e; }
body .kb-space { border-radius:8px; gap:10px; padding:10px 12px; }
body .kb-space svg { width:14px; height:14px; }
body .kb-space.active { background:#f5e9e5; color:#96382e; font-weight:500; }
body .kb-main { padding:32px 36px 56px; max-width:1220px; margin:0 auto; }
body .kb-header h1 { font-size:24px; font-weight:500; line-height:32px; letter-spacing:-.15px; margin:0 0 24px; }
body .kb-ui h2 { font-size:14px; font-weight:500; }
body .kb-search { border-radius:12px; margin-bottom:30px; padding:10px 14px; }
body .kb-search input[type=search] { font-family:var(--body); font-size:13px; }
body .kb-search button { border-radius:999px; padding:6px 14px; background:var(--cream); }
body .kb-topic-card { padding:24px; border-radius:16px; }
body .kb-topic-card:hover { transform:none; background:#fdfbf9; border-color:#dacec3; }
body .kb-topic-card h3,body .kb-page-row h3 { font-family:var(--body); font-size:14px; font-weight:500; }
body .kb-topic-icon { border-radius:10px; background:#f5e9e5; }
body .kb-topic-icon svg { width:20px; height:20px; }
body .kb-topic-card > span:last-child,body .kb-row-meta { font-size:12px; color:#85817c; }
body .kb-reading-grid { gap:28px; }
body .kb-article-body { font-family:var(--body); max-width:780px; }
body .kb-empty { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:48px 24px; }
body .kb-empty h3 { font-size:14px; }
body .kb-saved .dadd { flex-wrap:wrap; }
body .kb-saved .dadd input { min-width:140px; }
body .org-filters { background:var(--card); padding:20px; border:1px solid var(--border); border-radius:16px; gap:16px; margin-bottom:26px; }
body .org-viewbar { padding-top:16px; }
body .org-view-switch { padding:3px; border:0; background:var(--cream); }
body .org-view-switch span { font-size:12px; font-weight:400; padding:6px 16px; }
body .org-view-switch input:checked + span { background:var(--card); color:var(--fg); box-shadow:0 1px 4px #29292910; font-weight:500; }
body .org-canvas { padding:24px; border:1px solid var(--border); border-radius:16px; background:#f6f4f1; }
body .org-branch { border-radius:16px; padding:14px; }
body :is(.org-person h3,.org-unit-label,.org-branch-header h3) { font-family:var(--body); font-size:13px; font-weight:500; }
body .org-person p { font-family:var(--body); font-size:12px; }
body .org-tier-label { font-family:var(--body); font-size:12px; font-weight:400; color:#85817c; }
body .org-person { padding:10px; border-radius:12px; }
body .org-leaders .org-person { border-radius:12px; }
body .org-structure-node > .org-node-head { border-radius:10px; }
body .org-kind-group > .org-node-head { background:#f1e4de; border-color:#e8d5cc; color:#833d32; }
body .org-kind-group > .org-node-head .org-toggle { color:#833d32; }
body .org-kind-team > .org-node-head { background:#f5f3ef; }
body .org-board { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; padding:2px 2px 16px; scrollbar-color:#c7b6ad #eee9e4; scrollbar-width:auto; }
body .org-board:focus-visible { outline:2px solid var(--primary); outline-offset:4px; }
body .org-canvas > .org-tier-label { text-align:left; margin:0 0 12px; }
body .org-board-lanes { display:flex; align-items:flex-start; gap:24px; width:max-content; min-width:100%; }
body .org-leadership-lane { flex:var(--team-count) 0 calc(var(--team-count) * 300px + (var(--team-count) - 1) * 16px); min-width:0; }
body .org-leadership-row { display:flex; flex-wrap:nowrap; gap:12px; list-style:none; margin:0; padding:0; }
body .org-leadership-row { justify-content:center; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid #ded2ca; }
body .org-leadership-row > .org-node { flex:0 1 300px; width:100%; }
body .org-leadership-row .org-node-head { height:100%; border-top:3px solid var(--primary); }
body .org-leadership-row .org-person { min-height:76px; padding:14px; }
body .org-team-row { display:grid; grid-template-columns:repeat(var(--team-count),minmax(0,1fr)); align-items:start; gap:16px; width:100%; }
body .org-team-accordion { min-width:0; width:100%; }
body .org-scroll-controls { position:sticky; top:12px; z-index:2; padding:4px 0 12px; background:#f6f4f1; }
body .org-scroll-controls input { display:block; appearance:none; -webkit-appearance:none; width:100%; height:22px; margin:0; padding:0; border:0; background:transparent; cursor:ew-resize; }
body .org-scroll-controls input::-webkit-slider-runnable-track { height:8px; border-radius:8px; background:#e2d9d2; }
body .org-scroll-controls input::-webkit-slider-thumb { -webkit-appearance:none; height:16px; width:64px; margin-top:-4px; border:1px solid #b49f93; border-radius:8px; background:#bca89c; }
body .org-scroll-controls input::-moz-range-track { height:8px; border-radius:8px; background:#e2d9d2; }
body .org-scroll-controls input::-moz-range-thumb { height:16px; width:64px; border:1px solid #b49f93; border-radius:8px; background:#bca89c; }
body .org-scroll-controls input:focus-visible { outline:2px solid var(--primary); outline-offset:2px; border-radius:8px; }
body .org-team-accordion > summary { margin:0; padding:0; border:0; min-height:44px; align-items:center; }
body .org-team-accordion > summary::-webkit-details-marker { display:none; }
body .org-team-accordion > summary:focus-visible { outline:2px solid var(--primary); outline-offset:5px; border-radius:8px; }
body .org-team-accordion > summary > span { transform:rotate(-90deg); transition:transform .15s; }
body .org-team-accordion[open] > summary { margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid var(--border); }
body .org-team-accordion[open] > summary > span { transform:rotate(0); }
body .org-team-accordion .org-kind-team > .org-node-head { display:none; }
body .org-team-accordion .org-kind-team > .org-children { margin:0; padding:0; border:0; }
body .org-team-accordion .org-kind-team > .org-children > .org-node::before { display:none; }
@media(max-width:600px) {
  body .org-board { overflow:visible; padding:0; }
  body .org-scroll-controls { display:none; }
  body .org-board-lanes { flex-direction:column; width:100%; min-width:0; }
  body .org-leadership-lane { flex:0 1 auto; width:100%; }
  body .org-team-row { grid-template-columns:minmax(0,1fr); }
  body .org-leadership-row > .org-node { flex:1 1 auto; max-width:none; }
  body .org-leadership-row .org-person { min-height:0; }
}
body .org-avatar { background:#f5e9e5; color:#96382e; }
body .org-list table { font-family:var(--body); }
body .org-list thead { background:#f8f7f5; }
body .access-grid th,body .access-grid td { padding:14px; }
body .access-grid thead th,body .access-grid thead tr > :first-child { background:#f8f7f5; font-size:12px; font-weight:500; }
body .access-app img { width:20px; height:20px; }
body .access-app small,body .access-options label small { font-size:12px; }
body .access-options { max-width:calc(100vw - 32px); }
body .access-global-button,body .access-picker summary { border-radius:8px; }
body .access-global-button.enabled { background:#f5e9e5; border-color:#e8d5cc; color:#96382e; }
body .catalog-add-actions { flex-wrap:wrap; }
body .ask-ui { --ask-surface:var(--card); --ask-field:#f7f5f2; --ask-inset:#f5f3ef; --ask-hover:#f8f6f3; --ask-ink:var(--fg); --ask-ink-2:var(--muted-fg); --ask-ink-3:#85817c; --ask-line:var(--border); --ask-line-strong:#ddd8d2; --ask-shadow:none; }
body .wrap:has(> .ask-ui) { padding:40px; }
body .ask-ui .ask-heading h1 { font-size:24px; line-height:32px; font-weight:500; }
body .ask-ui .ask-chat { border:1px solid var(--border); border-radius:16px; }
body .ask-ui .ask-form { padding:16px; }
body .ask-ui .ask-composer { border-radius:16px; padding:16px; }
body .ask-ui .ask-send { border-radius:50%; background:var(--primary); color:white; }
body .ask-ui .ask-empty { max-width:460px; align-self:center; padding:36px 24px; }
body .ask-preview-composer { flex:none; padding:16px; }
body .ask-coming-soon .ask-composer textarea { resize:none; cursor:not-allowed; }
body .ask-coming-soon .ask-send:disabled { background:var(--ask-line-strong); color:var(--ask-ink-2); cursor:not-allowed; }
body .rail-note { font-size:12px; font-weight:400; font-style:italic; color:var(--muted-fg); white-space:nowrap; }
.training-due { display:block; font-size:12px; color:var(--muted-fg); margin-top:4px; }
body .ask-ui .ask-source { border:1px solid var(--border); border-radius:16px; }
body .center-card { max-width:440px; width:calc(100% - 40px); padding:48px 36px; border-radius:16px; box-shadow:0 12px 50px #29292905; }
body .center-card h1 { font-size:24px; line-height:32px; font-weight:500; }
body .center-card p { font-size:14px; }
body .cmdk-list { padding:6px; }
body .cmdk-item { border-radius:8px; font-size:13px; }
body .cmdk-input { font-size:14px; }
body .empty { font-size:13px; }
@media(max-width:1100px) and (min-width:841px) {
  body .wrap { padding:32px 24px 48px; }
  body .kb-nav { width:170px; padding:24px 12px; }
  body .kb-main { padding:28px 24px; }
}
@media(max-width:840px) {
  body .wrap,body .wrap:has(> .ask-ui) { padding:28px 20px 40px; }
  body .wrap:has(> .kb-ui) { padding:0; }
  body .lessonlayout { grid-template-columns:minmax(0,1fr); gap:20px; }
  body .lessonmain { padding:20px; }
  body .toc { position:static; padding:8px 16px; }
  body .kb-ui { flex-direction:column; }
  body .kb-nav { width:100%; padding:18px 20px; border-right:0; border-bottom:1px solid var(--border); }
  body .kb-nav nav[aria-label="Knowledge spaces"] { display:flex; flex-wrap:wrap; gap:6px; }
  body .kb-space { margin:0; }
  body .kb-main { padding:24px 20px 40px; }
  body .kb-toolbar { flex-wrap:wrap; gap:12px; }
  body .kb-actions { flex-wrap:wrap; }
  body .org-canvas { padding:12px; }
  body .org-filters { padding:16px; }
  body .card { padding:20px; }
  body .be-top { flex-wrap:wrap; }
  body .be-title { flex-basis:65%; min-width:0; }
  body .drow { flex-wrap:wrap; }
  body .drow .dtitle { min-width:120px; }
  body .dadd { flex-wrap:wrap; }
  body .dadd .be-in { min-width:130px; }
  body .trow { flex-wrap:wrap; gap:12px; }
  body .ask-ui .ask-form { padding:10px; }
  body .tools-dialog-head { flex-wrap:wrap; }
}
body :is(h1,h2,h3,.kicker,.railsec,.rnav a,.fitem span,.btn,.nhead,.avatar,.acct .section) {
  font-family:var(--body); text-transform:none; letter-spacing:-.15px; font-weight:500;
}
body .rail { background:#fdfcfb; border-color:var(--border); }
body .railtop { padding-bottom:28px; }
body .rnav { gap:3px; }
body .rnav a { font-size:13px; line-height:20px; padding:9px 12px; border-radius:8px; color:#5d5d5d; font-weight:400; }
body .rnav a.on { background:#f5e9e5; color:#96382e; border-color:transparent; font-weight:500; }
body .rnav a:hover { background:#f2efeb; border-color:transparent; color:#292929; }
body .rnav a svg { width:14px; height:14px; }
body .railsec { font-size:12px; font-weight:400; color:#9e9e9e; margin-top:14px; padding-top:14px; }
body .rail-collapse { border-radius:8px; }
body .mobile-menu-label { display:none; }
body .railnav[hidden] { display:none; }
body .railfoot .avatar { background:#f2e6e1; color:#96382e; border-radius:50%; font-size:12px; }
body .railfoot .who2 .n { font-size:13px; font-weight:500; }
body .railfoot .who2 .t { font-size:12px; color:#9e9e9e; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:15px; }
body .bar { height:68px; background:#ffffffc9; border-color:var(--border); backdrop-filter:blur(14px); }
body.viewing-as .bar { top:64px; }
body .searchfield { border-radius:8px; border-color:transparent; background:#f5f4f2; height:34px; width:310px; font-size:13px; }
body .searchfield .kbd { font-size:12px; color:#9e9e9e; }
body .iconbtn { border-radius:8px; border-color:transparent; background:transparent; }
body .pop { border-radius:16px; box-shadow:0 12px 40px #29292912; }
body .nhead { font-size:14px; }
body .acct .section { font-size:12px; }
.onboarding-shell { min-height:100vh; }
.onboarding-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px clamp(16px,4vw,40px); border-bottom:1px solid var(--border); background:#fff; }
.onboarding-header img { display:block; height:auto; }
.onboarding-header .btn { min-height:44px; }
.onboarding-shell .wrap { max-width:1000px; margin:0 auto; }
.onboarding-shell .hub-lesson { grid-template-columns:minmax(0,1fr); max-width:760px; margin:0 auto; }
.home-page { max-width:1280px; margin:0 auto; padding:48px 40px 64px; }
.home-page .who { position:relative; padding-bottom:4px; }
.home-page .kicker { font-size:12px; line-height:18px; font-weight:400; color:#9e9e9e; }
.home-page .who h1 { font-size:24px; line-height:32px; margin:10px 0 8px; font-weight:500; }
.home-page .cols { gap:20px; margin-top:32px; grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr); }
.home-page .cols.second { margin-top:20px; }
.home-page .panel { border-radius:16px; border:1px solid var(--border); box-shadow:0 2px 4px #29292902; }
.home-page .dashboard-panels > .panel { height:auto; min-height:260px; }
.home-page .dashboard-panels > .tools-panel { height:auto; min-height:260px; }
.home-page .tools-panel .pbody { overflow:visible; }
.home-page .tools-preview { flex:none; height:auto; overflow:visible; }
.home-page .dashboard-panels.second > .panel { height:auto; min-height:180px; }
.home-page .dashboard-panels.second > .announcements-panel { height:auto; min-height:180px; }
.home-page .panel .phead { padding:22px 24px 0; align-items:center; }
.home-page .panel .phead h2 { font-size:14px; line-height:20px; font-weight:500; }
.home-page .panel .pbody { padding:20px 24px 22px; }
.home-page .panel .phead .pmeta { font-size:12px; color:#9e9e9e; }
.home-page .tools-heading { gap:16px; }
.home-page .view-switch { min-width:124px; border:0; background:#f5f4f2; }
.home-page .view-switch-slider { border:0; box-shadow:0 1px 4px #29292910; }
.home-page .view-switch button { padding:3px 10px; font-size:12px; }
.home-page .view-switch button[aria-pressed=true] { font-weight:500; color:#292929; }
.home-page .fgrid.tgrid { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; }
.home-page .fitem { padding:0; min-height:52px; border:1px solid #efedeb; border-radius:12px; background:#fff; transition:background .15s,border-color .15s; }
.home-page .fitem:hover { background:#faf7f4; border-color:#dfd6ce; }
.home-page .fitem > a { flex-direction:row; justify-content:flex-start; padding:13px 12px; gap:10px; min-width:0; }
.home-page .tool-unavailable { position:relative; overflow:hidden; border-radius:inherit; display:flex; align-items:center; padding:40px 14px 14px; gap:12px; min-width:0; width:100%; min-height:96px; height:100%; cursor:default; }
.home-page .coming-soon-ribbon { position:absolute; top:15px; right:-35px; width:154px; transform:rotate(26deg); padding:3px 0; border-block:1px solid #b844381a; background:#b8443814; color:#a44539; text-align:center; font-size:12px; line-height:16px; font-weight:500; white-space:nowrap; pointer-events:none; }
.home-page .fitem:has(.tool-unavailable):hover { background:#fff; border-color:#efedeb; }
.home-page .fitem img { width:20px; height:20px; object-fit:contain; flex:none; }
.home-page .fitem span { font-size:13px; line-height:18px; font-weight:400; text-align:left; overflow-wrap:anywhere; }
@media (max-width:380px) {
  .home-page .tool-unavailable { flex-direction:column; gap:6px; padding:42px 8px 12px; }
  .home-page .tool-unavailable > span { text-align:center; }
}
.home-page .gear { border-radius:8px; }
.home-page .gear:hover { background:#f5f4f2; }
.home-page .tools-footer { border-top:1px solid #f1efec; padding-top:14px; margin-top:14px; }
.home-page .tools-add,.home-page .calendar-open { font-size:12px; }
.home-page .calendar-open { color:#5d5d5d; }
.home-page .btn { border-radius:999px; font-size:12px; font-weight:500; padding:8px 16px; line-height:18px; }
.home-page .btn.primary { min-height:38px; padding:10px 18px; font-size:13px; box-shadow:0 2px 3px #b3443714; }
.home-page .empty { font-size:13px; line-height:20px; color:#9e9e9e; min-height:120px; }
.home-page .dashboard-panels .pbody { display:flex; flex-direction:column; }
.home-page .annrow { font-size:13px; line-height:21px; padding:16px 0; }
.home-page .annrow .nmeta { font-size:12px; color:#9e9e9e; margin-top:7px; }
.home-page .dashboard-panels.second > .pending-training-panel { height:auto; min-height:210px; }
.home-page .pending-training-panel .phead { flex-wrap:wrap; gap:8px; }
.home-page .pending-training-panel .phead > a { font-size:12px; padding:8px 0; }
.home-page .pending-training-panel .pbody { overflow:visible; }
.pending-training-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; padding:14px 0; min-height:44px; border-bottom:1px solid var(--border); text-decoration:none; }
.pending-training-row:last-child { border-bottom:0; }
.pending-training-row strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.pending-training-row small { display:block; color:var(--muted-fg); font-size:12px; margin-top:4px; }
.pending-training-due { color:var(--muted-fg); font-size:12px; }
.pending-training-row:hover strong { text-decoration:underline; }
.home-page .cal li { font-size:13px; }
.home-page .cal time,.home-page .cal .loc,.home-page .help { font-size:12px; }
.home-page .tool-empty h3 { font-size:14px; font-weight:500; }
.home-page .tool-empty p { font-size:13px; }
.resource-builder { min-width:0; }
.resource-builder .be-top { flex-wrap:wrap; }
.resource-builder .be-title { min-width:0; flex:1 1 240px; }
.resource-builder .editor-status { max-width:100%; text-align:left; overflow-wrap:anywhere; }
.resource-settings { margin-bottom:20px; max-width:760px; padding:14px 16px; border:1px solid var(--border); border-radius:12px; background:var(--card); }
.resource-settings > summary { cursor:pointer; font-size:13px; }
.resource-settings .formrow { margin:14px 0; }
.resource-settings .formrow > label { flex:1 1 220px; min-width:0; }
.resource-builder .be-pal { max-width:calc(100vw - 40px); }
.home-page .tool-empty-icon { font-size:24px; }
.home-page .tools-dialog { border-radius:16px; }
.home-page .tools-dialog h2 { font-size:24px; font-weight:500; }
.home-page .tools-dialog p { font-size:13px; }
@media(min-width:841px) {
  body:not(.rail-collapsed) .rail { width:216px; }
  body.rail-collapsed .rnav a { padding:10px 0; }
}
@media(max-width:1100px) and (min-width:841px) {
  .home-page { padding:36px 24px 48px; }
  .home-page .cols { grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr); }
  .home-page .panel .phead,.home-page .panel .pbody { padding-left:18px; padding-right:18px; }
}
@media(max-width:840px) {
  body .rail { padding-bottom:8px; }
  body .railtop { padding-bottom:0; flex:1; margin-right:16px; }
  body .rail-collapse { display:flex; align-items:center; justify-content:center; min-height:44px; padding:0 12px; margin-left:auto; border:1px solid var(--border); background:var(--card); color:var(--fg); cursor:pointer; }
  body .rail-collapse:focus-visible { outline:2px solid var(--ring); outline-offset:2px; }
  body .rail-collapse .t-icon-swap { display:none; }
  body .mobile-menu-label { display:flex; align-items:center; gap:8px; font-size:13px; }
  body .mobile-menu-label svg { width:14px; height:14px; }
  body.rail-menu-open .mobile-menu-label svg { transform:rotate(180deg); }
  body .railnav { display:flex; flex-direction:column; align-items:stretch; overflow:visible; padding:10px 0 0; gap:0; }
  body .rnav { flex:none; flex-direction:column; flex-wrap:nowrap; width:100%; }
  body .rnav a { min-height:44px; white-space:normal; }
  body .railsec { flex:none; margin:10px 0 4px; padding:12px 10px 0; border-left:0; border-top:1px solid var(--border); }
  body .bar { height:56px; }
  .home-page { padding:28px 20px 40px; }
  .home-page .cols { grid-template-columns:1fr; margin-top:24px; gap:16px; }
  .home-page .dashboard-panels > .panel { height:300px; }
  .home-page .dashboard-panels > .tools-panel { height:auto; }
  .home-page .tools-panel .pbody { overflow:visible; }
  .home-page .tools-preview { flex:none; height:auto; overflow:visible; }
  .home-page .dashboard-panels.second > .panel { height:auto; min-height:180px; }
  .home-page .panel .phead,.home-page .panel .pbody { padding-left:20px; padding-right:20px; }
  .home-page .fgrid.tgrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Resource organization uses compact rows with controls outside the page link. */
body .kb-search { flex-wrap:wrap; }
body .kb-search input[type=search] { flex:1 1 180px; }
.kb-search select { max-width:100%; min-height:36px; border:1px solid var(--border); border-radius:8px; background:var(--card); color:var(--fg); padding:6px 10px; font:inherit; }
.kb-star-filter { display:flex; align-items:center; gap:6px; font-size:13px; white-space:nowrap; }
.resource-list-row { display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--border); min-width:0; }
.resource-list-row > a { flex:1; min-width:0; border:0; overflow-wrap:anywhere; }
.resource-list-row .post { margin:0; }
.resource-action { display:inline-flex; flex:none; }
.resource-star { width:40px; height:40px; border:0; border-radius:8px; background:transparent; color:var(--muted-fg); cursor:pointer; font-size:24px; }
.resource-star.selected { color:var(--primary); background:var(--cream); }
.resource-star:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.resource-pinned { display:inline-block; font-size:12px; color:var(--primary); background:var(--cream); border-radius:6px; padding:2px 6px; margin-right:8px; }
.resource-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:18px 0; font-size:13px; color:var(--muted-fg); }
.resource-pagination > div { display:flex; gap:8px; }
.resource-manage-filter { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.resource-manage-filter .field { flex:1 1 180px; width:auto; }
.resource-table-wrap { overflow-x:auto; }
.resource-topic-edit { display:flex; flex-wrap:wrap; gap:8px; min-width:230px; max-width:450px; }
.resource-topic-edit > input { flex:1 1 180px; }
.resource-topic-edit label { display:flex; align-items:center; gap:8px; }
.resource-topic-edit input[type=number] { width:85px; }
.resource-move { display:flex; align-items:center; gap:6px; min-width:190px; }
.training-due { font-size:13px; color:var(--muted-fg); }
body .trow { flex-wrap:wrap; }
body .trow .pill { white-space:normal; }
@media(max-width:600px) {
  .resource-list-row { gap:3px; }
  .resource-list-row .btn { padding:6px 8px; font-size:12px; }
  .resource-list-row .kb-page-row { gap:6px; }
  .resource-list-row .kb-row-meta { width:100%; }
  .resource-star { width:40px; }
  body .trow .pill { max-width:100%; }
}

/* A shared space-first workspace for reading and publishing. */
body .kb-nav { position:sticky; top:68px; align-self:flex-start; max-height:calc(100dvh - 68px); overflow-y:auto; width:220px; }
body .kb-space { min-height:44px; align-items:center; }
body .kb-space svg { flex-shrink:0; }
body .kb-toolbar { flex-wrap:wrap; gap:12px; margin-bottom:20px; }
body .kb-breadcrumb { flex-wrap:wrap; }
body .kb-header h1 { margin-bottom:20px; }
.kb-space-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.kb-space-card { display:flex; align-items:center; gap:14px; padding:24px 20px; border:1px solid var(--border); border-radius:14px; background:var(--card); min-height:100px; }
.kb-space-card:hover { border-color:#d6b4a9; background:#fffcfa; }
.kb-space-card strong { font-size:14px; font-weight:500; }
.kb-space-symbol { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:#f5e9e5; color:#96382e; flex-shrink:0; }
.kb-space-arrow { margin-left:auto; color:var(--muted-fg); }
.kb-topic-filter { margin-bottom:20px; }
.kb-filter-label { display:block; font-size:12px; color:var(--muted-fg); margin-bottom:8px; }
.kb-topic-filter nav { display:flex; flex-wrap:wrap; gap:6px; }
.kb-topic-filter a { display:inline-flex; gap:8px; align-items:center; min-height:40px; padding:8px 12px; border:1px solid var(--border); border-radius:9px; background:var(--card); font-size:12px; }
.kb-topic-filter a.active { background:#f5e9e5; border-color:#f5e9e5; color:#96382e; }
.kb-topic-filter a span { color:var(--muted-fg); }
.kb-section-tabs { display:flex; gap:24px; border-bottom:1px solid var(--border); margin-bottom:24px; }
.kb-section-tabs a { padding:10px 0; min-height:44px; color:var(--muted-fg); border-bottom:2px solid transparent; }
.kb-section-tabs a.active { color:var(--fg); border-bottom-color:var(--primary); }
.kb-section-tabs a span { font-size:12px; margin-left:4px; }
.kb-managed-posts { display:flex; flex-direction:column; gap:10px; }
.kb-managed-post { display:flex; align-items:center; gap:16px; padding:18px 20px; background:var(--card); border:1px solid var(--border); border-radius:12px; }
.kb-managed-post-info { flex:1; min-width:0; }
.kb-managed-post-info > a { display:block; font-weight:500; padding:4px 0; overflow-wrap:anywhere; }
.kb-post-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; color:var(--muted-fg); font-size:12px; margin-top:6px; }
.kb-post-actions { position:relative; flex-shrink:0; }
.kb-post-actions > div { position:absolute; right:0; top:100%; min-width:145px; background:var(--card); padding:8px; border:1px solid var(--border); border-radius:10px; box-shadow:0 8px 24px #00000012; z-index:3; }
.kb-post-actions form + form { margin-top:4px; }
.kb-post-actions button { width:100%; justify-content:flex-start; min-height:44px; }
.kb-topic-manager { max-width:900px; }
.kb-topic-create { margin:0 0 20px; }
.kb-topic-create > summary { width:fit-content; cursor:pointer; min-height:44px; }
.kb-topic-create[open] { border:1px solid var(--border); border-radius:12px; background:var(--card); padding:16px; }
.kb-topic-list { border:1px solid var(--border); border-radius:14px; background:var(--card); }
.kb-topic-row + .kb-topic-row { border-top:1px solid var(--border); }
.kb-topic-row > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; cursor:pointer; list-style:none; }
.kb-topic-row > summary::-webkit-details-marker { display:none; }
.kb-topic-row strong { display:block; font-weight:500; overflow-wrap:anywhere; }
.kb-topic-row small { display:block; color:var(--muted-fg); font-size:12px; margin-top:4px; }
.kb-topic-edit-label { color:var(--primary); font-size:12px; }
.kb-topic-settings { border-top:1px solid var(--border); padding:0 20px 20px; }
.kb-topic-form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:16px; margin:16px 0; }
.kb-topic-form > label { flex:1 1 210px; min-width:0; display:block; font-size:12px; color:var(--muted-fg); }
.kb-topic-form .be-in { display:block; width:100%; min-width:0; margin-top:6px; border:1px solid var(--border); border-radius:8px; padding:10px; background:var(--card); }
.kb-topic-form button { min-height:44px; }
.kb-quiet-empty { padding:20px; color:var(--muted-fg); }
.kb-manage .be-top { flex-wrap:wrap; }
.kb-manage .post-settings select { max-width:100%; }
@media (max-width:840px) {
  body .kb-nav { position:static; width:100%; max-height:none; padding:18px 20px; }
  body .kb-nav nav[aria-label="Knowledge spaces"] { display:flex; flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; gap:6px; }
  body .kb-nav .kb-space { flex:none; margin:0; }
  body .kb-home { margin:0 0 10px; }
  body .kb-nav-label { margin:0 0 8px; }
  .kb-space-grid { grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); }
  .kb-topic-filter a { min-height:44px; }
}
@media (max-width:480px) {
  body .kb-main { padding:24px 20px 40px; }
  .kb-space-grid { grid-template-columns:minmax(0,1fr); }
  .kb-managed-post { padding:14px; gap:8px; align-items:flex-start; }
  .kb-topic-row > summary { padding:16px; }
  .kb-topic-settings { padding:0 16px 16px; }
  .kb-manage .be-title { flex-basis:100%; }
  .kb-manage .post-settings { align-items:stretch; }
  .kb-manage .post-settings label { flex-wrap:wrap; max-width:100%; }
}
