@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url('fonts/plus-jakarta-sans.woff2') format('woff2')}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url('fonts/geist-mono.woff2') format('woff2')}
/* Tokens follow the rehale.ai brand (Cobalt identity, Lucas 14.11.2026: cobalt #244DDA, ink #111827, paper #F5F4EF, periwinkle #C7D2FE).
   The first block is the dark theme, :root[data-theme="light"] overrides only the primitives. Cobalt is the one brand color: the primary
   action, focus and selection, and --ok (allowed or current). Coral --no stays for denied or failed; everything else is neutral ink.
   Planes, from back to front: --bg is the frame around the app (sidebar), --sheet the page the work happens on, --surface a group on the
   sheet, --raised a control or a selected row, --float anything that lies above the page (dialog, drawer, search). Each step is a tone,
   not a line; lines only separate rows inside one plane.
   The names below the primitives are the component tokens of the control-center design, derived from the primitives. */
:root{color-scheme:dark;
--bg:#0b0e16;--sheet:#111522;--surface:#171c2b;--raised:#20263a;--sunk:#0d111b;--float:#1a2032;--hover:#272e44;--skeleton:#20263a;
--line:rgba(255,255,255,.08);--line-strong:rgba(255,255,255,.14);--field-edge:#5a6378;
--text:#f3f4f7;--text-2:#cdd2dd;--muted:#a2a9b8;--dim:#8a92a3;
--ok:#9db2ff;--ok-bg:rgba(157,178,255,.08);--ok-line:rgba(157,178,255,.45);--ok-fill:rgba(157,178,255,.16);
--no:#f2a48f;--no-bg:rgba(242,164,143,.06);--no-line:rgba(242,164,143,.42);
--btn-bg:#3a62f0;--btn-text:#ffffff;--btn-hover:#4467f2;
--edge:inset 0 1px 0 rgba(255,255,255,.06);--lift:inset 0 1px 0 rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.35),0 14px 32px -18px rgba(0,0,0,.6);--sheet-shadow:0 0 0 1px rgba(255,255,255,.07),0 24px 60px -24px rgba(0,0,0,.9);--control-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 2px rgba(0,0,0,.35);
--float-shadow:0 0 0 1px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.06),0 28px 64px -16px rgba(0,0,0,.72);
--focus:#9db2ff;--focus-ring:rgba(157,178,255,.2);--select:rgba(157,178,255,.24);
--row-hover:rgba(255,255,255,.055);--backdrop:rgba(4,6,12,.66);--nav-scrim:rgba(4,6,12,.5);--tab-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 2px rgba(0,0,0,.4);
--check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.5 2.5 5.1-5.4' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
--caret:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23a2a9b8' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
--head:'Plus Jakarta Sans',ui-sans-serif,system-ui,sans-serif;
--font:'Plus Jakarta Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
--mono:'Geist Mono',ui-monospace,'SF Mono',Menlo,monospace;
--ease-out:cubic-bezier(.2,.8,.2,1);
--r-control:7px;--r-surface:10px;--r-dialog:12px;--r-sheet:12px;
/* One rhythm for every list and control: 30 px controls, 40 px rows, 16 px inside a group, 28 px page gutter */
--control:30px;--row:40px;--pad:16px;--gutter:28px;
/* Component tokens */
--side:var(--bg);--plane:var(--row-hover);--border:var(--line-strong);--subtle:var(--line);--radius:var(--r-surface);
--green:var(--ok);--accent:var(--text-2);--red:var(--no);--amber:var(--muted);
--accent-soft:var(--ok-bg);--accent-line:var(--ok-line);
--primary:var(--btn-bg);--primary-hover:var(--btn-hover);--on-primary:var(--btn-text);--primary-shadow:0 1px 2px rgba(0,0,0,.4);
--field:var(--sunk);--field-line:var(--field-edge);
--shadow-card:none;--shadow-lift:var(--float-shadow);--side-shadow:0 0 0 1px var(--line),24px 0 60px rgba(0,0,0,.45);--shell-line:var(--line);
--red-bg:var(--no-bg);--red-line:var(--no-line);--danger-bg:var(--no-bg);
--app-ring:transparent;
--drive:var(--text-2);--drive-bg:var(--raised);--slack:var(--text-2);--slack-bg:var(--raised);--notion:var(--text-2);--notion-bg:var(--raised);
--sharepoint:var(--text-2);--sharepoint-bg:var(--raised);--claude:var(--text-2);--claude-bg:var(--raised);--codex:var(--text-2);--codex-bg:var(--raised);--cursor:var(--text-2);--cursor-bg:var(--raised);
--nav-text:var(--muted);--nav-hover:rgba(255,255,255,.045);--nav-on:rgba(199,210,254,.14);--nav-on-text:var(--text);--crumb:var(--text);--crumb-sep:var(--dim);
--button-bg:var(--raised);--button-text:var(--text);--button-hover:var(--hover);--button-hover-line:rgba(255,255,255,.18);
--stat-bg:var(--surface);--stat-icon:var(--dim);--stat-foot:var(--dim);
--label-bg:transparent;--label-line:var(--border);--pill-bg:var(--raised);--pill-line:var(--line);--pill-text:var(--text-2);
--core-title:var(--text);--core-caption:var(--muted);
--activity-text:var(--text-2);--well:var(--sunk);--tab-on:var(--raised);--tab-on-text:var(--text);
--th-bg:rgba(255,255,255,.022);--td-text:var(--text-2);
--space-card-bg:var(--surface);--card-hover-line:var(--line-strong);
--banner-bg:var(--raised);--banner-line:transparent;--endpoint-bg:var(--sunk);--endpoint-line:var(--border);--endpoint-text:var(--text-2);--code-bg:var(--sunk);
--notice-bg:var(--raised);--notice-line:transparent;--notice-text:var(--text-2);
--dialog:var(--float);--dialog-line:var(--line-strong);--dialog-shadow:var(--float-shadow);
--prose:var(--text-2);--fact-dd:var(--text);--excerpt:var(--text-2);--link-bg:var(--raised);--link-text:var(--text);--link-hover-line:var(--line-strong);
--toast-bg:var(--float);--toast-line:transparent;--toast-text:var(--text);--toast-shadow:var(--float-shadow)}
/* Light theme: same token names, set by <html data-theme="light">. Keep --bg in sync with theme.js (theme-color) */
:root[data-theme="light"]{color-scheme:light;
--bg:#f5f4ef;--sheet:#ffffff;--surface:#faf9f6;--raised:#ffffff;--sunk:#efeee8;--float:#ffffff;--hover:#ecebe5;--skeleton:#ecebe5;
--line:rgba(17,24,39,.085);--line-strong:rgba(17,24,39,.14);--field-edge:#8b909a;
--text:#111827;--text-2:#2b3341;--muted:#4b5263;--dim:#5e6573;
--ok:#244dda;--ok-bg:rgba(36,77,218,.07);--ok-line:rgba(36,77,218,.45);--ok-fill:rgba(36,77,218,.11);
--no:#a1381e;--no-bg:rgba(161,56,30,.06);--no-line:rgba(161,56,30,.42);
--btn-bg:#244dda;--btn-text:#ffffff;--btn-hover:#1d3fb8;
--edge:0 1px 1px rgba(17,24,39,.04);--lift:0 1px 2px rgba(17,24,39,.06),0 12px 28px -18px rgba(17,24,39,.18);--sheet-shadow:0 0 0 1px rgba(17,24,39,.08),0 20px 50px -28px rgba(17,24,39,.25);--control-shadow:0 1px 1.5px rgba(17,24,39,.07);
--float-shadow:0 0 0 1px rgba(17,24,39,.07),0 28px 64px -18px rgba(17,24,39,.3);
--focus:#244dda;--focus-ring:rgba(36,77,218,.16);--select:rgba(36,77,218,.16);
--row-hover:rgba(17,24,39,.045);--th-bg:rgba(17,24,39,.02);--backdrop:rgba(17,24,39,.3);--nav-scrim:rgba(17,24,39,.22);--tab-shadow:0 0 0 1px rgba(17,24,39,.07),0 1px 2px rgba(17,24,39,.08);
--check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.5 2.5 5.1-5.4' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
--caret:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%234b5263' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
--side-shadow:24px 0 60px rgba(17,24,39,.16);--tab-on:#ffffff;--field:#ffffff;--primary-shadow:0 1px 2px rgba(17,24,39,.18);
--nav-hover:rgba(17,24,39,.045);--nav-on:#e0e6fe;--nav-on-text:#1d3fb8;--button-bg:#ffffff;--button-hover:#faf9f6;--button-hover-line:rgba(17,24,39,.22);--row-hover:rgba(17,24,39,.04);
--toast-shadow:var(--float-shadow)}
*{box-sizing:border-box}
*{scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
::selection{background:var(--select)}
body{margin:0;background:var(--bg);color:var(--text);font:13px/1.5 var(--font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-feature-settings:"ss01" 0}
td,.time,.nav-badge,.count,.chip-count,.stat-value,.num,time,.fact-list dd,.peek-row strong,.lbl{font-variant-numeric:tabular-nums}
button,input,select,textarea{font:inherit;color:inherit}
button,a,select,input[type=checkbox]{-webkit-tap-highlight-color:transparent}
button,select{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.45}
button{text-align:inherit}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* Fields: one height, sunk into the plane they sit on. Focus is the edge turning to full contrast plus a soft ring. */
input,select,textarea{background:var(--field);border:1px solid var(--field-line);border-radius:var(--r-control);padding:0 10px;min-height:32px;min-width:0;transition:border-color .12s var(--ease-out),box-shadow .12s var(--ease-out)}
textarea{padding:7px 10px;line-height:1.55}
input:hover,select:hover,textarea:hover{border-color:var(--muted)}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;border-color:var(--focus);box-shadow:0 0 0 3px var(--focus-ring)}
input::placeholder,textarea::placeholder{color:var(--dim)}
/* Every select gets the same caret with room to the edge; the native one sits flush against the border. */
select{-webkit-appearance:none;appearance:none;padding-right:28px;background-image:var(--caret);background-repeat:no-repeat;background-position:right 9px center;background-size:12px 12px;text-overflow:ellipsis}
/* Where the browser lets a page draw the list of a select, it is the floating plane with 30 px rows; elsewhere the browser's list stays. */
@supports (appearance:base-select){
  select,::picker(select){-webkit-appearance:base-select;appearance:base-select}
  select{display:inline-flex;align-items:center}
  select::picker-icon{display:none}
  ::picker(select){margin:4px 0;padding:4px;border:0;border-radius:var(--r-surface);background:var(--float);color:var(--text);box-shadow:var(--float-shadow);font:13px/1.5 var(--font)}
  select option{display:flex;align-items:center;gap:8px;min-height:30px;padding:0 8px;border-radius:6px;font-weight:500;color:var(--text-2);white-space:nowrap}
  select option:hover,select option:focus-visible{background:var(--hover);color:var(--text);outline:none}
  select option:checked{color:var(--text)}
  select option::checkmark{order:2;margin-left:auto;padding-left:12px;color:var(--muted);font-size:12px}
}
/* Checkbox and radio: drawn, so they look the same in every browser. Checked is the primary tone, not a color. */
input[type=checkbox],input[type=radio]{-webkit-appearance:none;appearance:none;width:16px;height:16px;min-height:0;padding:0;margin:0;flex:0 0 auto;border:1px solid var(--field-line);border-radius:4px;background:var(--field) center/16px 16px no-repeat;cursor:pointer;transition:background-color .12s var(--ease-out),border-color .12s var(--ease-out),box-shadow .12s var(--ease-out)}
input[type=radio]{border-radius:50%}
input[type=checkbox]:checked{background-color:var(--btn-bg);border-color:var(--btn-bg);background-image:var(--check)}
input[type=radio]:checked{background-color:var(--btn-text);border-color:var(--btn-bg);box-shadow:inset 0 0 0 4px var(--btn-bg)}
input[type=checkbox]:disabled,input[type=radio]:disabled{opacity:.5;cursor:not-allowed}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:2px solid var(--focus);outline-offset:2px;box-shadow:none}
input[type=radio]:checked:focus-visible{box-shadow:inset 0 0 0 4px var(--btn-bg)}
h1,h2,h3,h4,p{margin:0}
/* Mono only for real code and identifiers (ids, hashes, endpoints, tool names) */
code,kbd,pre,samp{font-family:var(--mono)}
h1{font:700 26px/1.15 var(--head);letter-spacing:-.03em}
h2{font:650 16px/1.3 var(--head);letter-spacing:-.015em}
h3{font-size:14px;line-height:1.4;font-weight:600}
small{font-size:12px}
strong{font-weight:600}
/* Key hints: a small raised key, in the UI font */
kbd{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;font:500 11px/1 var(--font);color:var(--muted);background:var(--raised);border-radius:5px;box-shadow:inset 0 0 0 1px var(--line),var(--edge)}
svg.icon{width:16px;height:16px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
/* Phosphor glyphs are filled shapes; their viewBox is already centered on the drawn form (icons.js) */
svg.icon[data-fill]{fill:currentColor;stroke:none}
button .icon{pointer-events:none}
.skip-link{position:absolute;left:248px;top:-60px;background:var(--btn-bg);color:var(--btn-text);padding:10px 12px;border-radius:var(--r-control);z-index:200;font-weight:500}
.skip-link:focus{top:14px}
/* Frame: the sidebar lies on the frame tone, the page is a sheet set into it. The sheet scrolls, the frame stays. */
.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:var(--side);border-right:0;padding:14px 10px 10px;display:flex;flex-direction:column;z-index:40;overflow-y:auto}
/* Lockup at 16 px: cap height 13 px as on the website, about 147 px wide; the mark lines up with the nav icons and keeps one cap height free. */
.brand{display:flex;align-items:center;height:32px;padding:0 10px;color:var(--text);max-width:100%;border-radius:var(--r-control)}
/* rehale.ai lockup as in Lucas' kit: mark and word in one color (ink on paper, white in the dark), Plus Jakarta Sans 700 */
.brand-logo{display:flex;align-items:center;gap:4px;font:700 19px/1 var(--head);letter-spacing:-.035em;color:var(--text);white-space:nowrap}
.brand-mark{display:block;width:auto;height:21px;flex:0 0 auto;fill:currentColor}
.brand-dot{margin:0 -.045em}
.workspace{display:flex;align-items:center;gap:9px;margin:12px 0 14px;padding:7px 8px;border-radius:9px;background:var(--nav-hover);box-shadow:inset 0 0 0 1px var(--line)}
.workspace-mark{background:var(--btn-bg);border-radius:6px;width:26px;height:26px;display:grid;place-items:center;color:var(--btn-text);font:600 11px/1 var(--head)}
.workspace strong{display:block;font-size:13px;font-weight:550;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace small{display:block;color:var(--muted);font-size:12px;line-height:1.3}
.workspace>div{min-width:0}
.nav-label{font-size:12px;font-weight:500;color:var(--dim);padding:0 10px;margin:18px 0 4px}
.nav-label:first-child{margin-top:4px}
.nav-item{position:relative;display:flex;gap:9px;align-items:center;height:30px;padding:0 10px;border-radius:var(--r-control);margin:1px 0;color:var(--nav-text);font-size:13px;font-weight:500;transition:background .12s var(--ease-out),color .12s var(--ease-out)}
.nav-item:hover{background:var(--nav-hover);color:var(--text)}
.nav-item.active{background:var(--nav-on);color:var(--nav-on-text)}
.nav-item .icon{width:16px;height:16px;color:var(--dim);transition:color .12s var(--ease-out)}
.nav-item:hover .icon{color:var(--text)}
.nav-item.active .icon{color:var(--nav-on-text)}
.nav-badge{font-size:12px;font-weight:450;color:var(--dim);margin-left:auto}
.nav-item.active .nav-badge{color:var(--muted)}
.sidebar-bottom{margin-top:auto;padding-top:24px}
.account{display:flex;gap:9px;align-items:center;padding:7px 8px;background:transparent;border:0;border-radius:9px;width:100%;font-size:13px;transition:background .12s var(--ease-out)}
.account:hover{background:var(--nav-hover)}
.account strong,.account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account strong{font-weight:550;line-height:1.3}
.account>span:not(.avatar){min-width:0;flex:1}
.account small{font-size:11.5px;letter-spacing:-.01em;color:var(--muted);line-height:1.3}
.account-arrow{margin-left:auto;color:var(--dim);width:12px;height:12px}
.avatar{width:26px;height:26px;border-radius:50%;display:inline-grid;place-items:center;background:color-mix(in srgb,var(--c,#888) 20%,var(--raised));color:color-mix(in srgb,var(--c,#888) 55%,var(--text));font-size:10.5px;font-weight:600;flex:0 0 auto;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c,#888) 28%,transparent)}
:root[data-theme="light"] .avatar{background:color-mix(in srgb,var(--c,#888) 32%,#fff);color:color-mix(in srgb,var(--c,#888) 30%,#0d1210);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c,#888) 45%,transparent)}
.purple{color:var(--text-2);background:var(--raised)}
.blue{color:var(--text-2);background:var(--raised)}
.amber{color:var(--text-2);background:var(--raised)}
.avatar-stack{display:flex}
.avatar-stack .avatar+.avatar{margin-left:-3px}
.app-shell{position:fixed;inset:8px 8px 8px 240px;background:var(--sheet);border-radius:var(--r-sheet);box-shadow:var(--sheet-shadow);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
.topbar{position:sticky;top:0;z-index:20;height:48px;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:0 var(--gutter);background:var(--sheet);border-bottom:1px solid var(--shell-line)}
.breadcrumbs{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted);min-width:0}
.breadcrumbs strong{color:var(--crumb);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.crumb-separator{color:var(--crumb-sep)}
.topbar-actions{display:flex;gap:8px;align-items:center}
/* Search reads as a field with its key hint, the way it opens */
.global-search{background:var(--field);border:0;box-shadow:inset 0 0 0 1px var(--line-strong);color:var(--dim);display:flex;align-items:center;gap:8px;font-size:13px;height:28px;min-width:220px;padding:0 4px 0 9px;border-radius:var(--r-control);transition:box-shadow .12s var(--ease-out),color .12s var(--ease-out)}
.global-search:hover{color:var(--muted);box-shadow:inset 0 0 0 1px var(--field-line)}
.global-search .icon{width:14px;height:14px}
.global-search kbd{margin-left:auto}
.environment{font-size:12px;color:var(--muted);display:flex;gap:7px;align-items:center}
.icon-button{width:28px;height:28px;border:0;display:inline-grid;place-items:center;border-radius:var(--r-control);background:transparent;color:var(--muted);padding:6px;transition:background .12s var(--ease-out),color .12s var(--ease-out)}
.icon-button:hover{background:var(--hover);color:var(--text)}
.icon-button:active{background:var(--raised)}
/* A select next to other values keeps the wrapper for its own caret icon; the caret image of the plain select steps back. */
.select-wrap{position:relative;display:inline-flex;min-width:0}
.select-wrap>select{padding-right:30px;background-image:none}
.select-caret{position:absolute;right:9px;top:50%;width:12px;height:12px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.mobile-menu{display:none}
#main{padding:28px var(--gutter) 48px;max-width:1560px;margin:0 auto;min-height:calc(100% - 49px)}
.page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}
.eyebrow{font-size:13px;color:var(--muted);margin-bottom:8px}
.subtitle{color:var(--muted);font-size:13px;margin-top:6px;max-width:65ch}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
/* Buttons: a raised key on the plane. Primary is the inverse tone, never a color. */
.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;min-height:var(--control);border:1px solid var(--border);border-radius:var(--r-control);background:var(--button-bg);color:var(--button-text);font-size:13px;font-weight:500;line-height:1;white-space:nowrap;box-shadow:var(--control-shadow);transition:background .12s var(--ease-out),border-color .12s var(--ease-out),transform .08s var(--ease-out)}
.button:hover{background:var(--button-hover);border-color:var(--button-hover-line)}
.button:active:not(:disabled){transform:translateY(.5px);box-shadow:none}
.button.primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary);box-shadow:var(--primary-shadow);font-weight:600}
.button.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.button.subtle{background:transparent;box-shadow:none;border-color:transparent;color:var(--text-2)}
.button.subtle:hover{background:var(--hover);color:var(--text)}
/* What triggers or ends something is a key, also where the code asks for the quiet variant. The quiet look stays for links that lead elsewhere (Cancel, Back). */
button.button.subtle:not(.sign-out){background:var(--button-bg);border-color:var(--border);box-shadow:var(--control-shadow);color:var(--button-text)}
button.button.subtle:not(.sign-out):hover{background:var(--button-hover);border-color:var(--button-hover-line)}
/* In a page head every action is a key; the quiet variant is for dialogs and rows */
.page-head .actions .button.subtle{background:var(--button-bg);border-color:var(--border);box-shadow:var(--control-shadow);color:var(--button-text)}
.page-head .actions .button.subtle:hover{background:var(--button-hover);border-color:var(--button-hover-line)}
.button.danger{color:var(--red);background:var(--danger-bg);border-color:var(--red-line);box-shadow:none}
.button .icon{width:14px;height:14px;margin-left:-1px}
/* The one action of a list row that changes something (Make active, Sync now, Retry). */
.button.small{min-height:28px;padding:0 10px;font-size:12.5px;gap:5px;border-radius:6px}
.button.small .icon{width:12px;height:12px}
/* Three tiers: actions are --text-2/500 and react on hover, statuses (.label) never look pressable, information is --muted/400. */
.text-button{display:inline-flex;gap:6px;align-items:center;border:0;background:transparent;color:var(--text-2);font-size:13px;font-weight:500;padding:4px 0;border-radius:4px;text-underline-offset:3px;text-decoration-thickness:1px;transition:color .12s var(--ease-out)}
.text-button:hover{color:var(--text);text-decoration-line:underline}
.text-button .icon{width:13px;height:13px}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);margin-bottom:20px;overflow:hidden;box-shadow:var(--lift)}
.stat{padding:14px var(--pad) 14px;position:relative}
.stat+.stat{border-left:1px solid var(--line)}
.stat-top{color:var(--muted);font-size:12.5px;font-weight:500;display:flex;justify-content:space-between;gap:8px;align-items:center}
.stat-top .icon{width:14px;height:14px;color:var(--stat-icon)}
.stat-line{display:flex;align-items:baseline;gap:10px;margin-top:10px}
.stat-value{font:600 26px/1 var(--head);letter-spacing:-.02em}
.stat-foot{color:var(--dim);font-size:12px;margin-top:8px}
/* A group on the sheet: one tone up, one hairline, a lit top edge. Never a group inside a group. */
.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0;overflow:hidden;box-shadow:var(--lift)}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:14px var(--pad) 0}
.panel-head>.text-button,.panel-head>.label{margin-top:-4px;min-height:28px}
.panel-head>.icon-button,.panel-head>.actions{margin-top:-4px}
.panel-head h2{font-size:15px}
.panel-head p{font-size:13px;color:var(--muted);margin-top:2px}
.label{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:var(--muted);padding:0;font-size:13px;white-space:nowrap}
.label.green{color:var(--ok)}
.label.amber{color:var(--muted)}
.label.purple{color:var(--muted)}
.label.blue{color:var(--muted)}
.label.red{color:var(--no)}
/* Status mark: a small diamond, the logo intersection in miniature */
.label .dot{width:6px;height:6px;background:currentColor;border-radius:1px;transform:rotate(45deg);flex:0 0 auto}
.app-icon{width:28px;height:28px;border-radius:var(--r-control);display:inline-grid;place-items:center;flex-shrink:0;background:var(--raised);color:var(--text-2);box-shadow:inset 0 0 0 1px var(--line),var(--edge)}
.app-icon.drive{background:var(--drive-bg);color:var(--drive)}
.app-icon.slack{background:var(--slack-bg);color:var(--slack)}
.app-icon.notion{background:var(--notion-bg);color:var(--notion)}
.app-icon.sharepoint{background:var(--sharepoint-bg);color:var(--sharepoint)}
.app-icon.claude{background:var(--claude-bg);color:var(--claude)}
.app-icon.codex{background:var(--codex-bg);color:var(--codex)}
.app-icon.cursor{background:var(--cursor-bg);color:var(--cursor)}
.app-icon .icon{width:16px;height:16px}
/* Original logos sit on a white tile in both themes: several are black or carry their own colors and need that ground. */
.app-icon.logo{background:#fff;box-shadow:inset 0 0 0 1px rgba(17,24,39,.1),0 1px 2px rgba(0,0,0,.25)}
.app-icon.logo>img{display:block;width:62%;height:62%;object-fit:contain}
.core{position:relative;display:flex;align-items:center;flex-direction:column;text-align:center;z-index:1;padding:10px 0;color:var(--accent);border:0;background:transparent}
.core strong{color:var(--core-title);font-size:14px;margin-top:3px}
.core small{color:var(--core-caption);font-size:12px;margin-top:4px}
.color-icon{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:var(--r-control);flex:0 0 auto;color:var(--text-2);background:var(--raised);box-shadow:inset 0 0 0 1px var(--line),var(--edge)}
.color-icon .icon{width:16px;height:16px}
.activity-list{padding:6px var(--pad) 8px}
.activity-item{display:flex;gap:10px;align-items:center;padding:0;min-height:var(--row);border-bottom:1px solid var(--subtle)}
.activity-item:last-child{border:0}
.activity-item .avatar{width:22px;height:22px;font-size:9.5px}
.activity-item>div{min-width:0;flex:1}
.activity-item p{font-size:13px;color:var(--activity-text);line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.activity-item p strong{font-weight:550;color:var(--text)}
.activity-item small{font-size:12px;color:var(--dim)}
.activity-item .time{margin-left:auto;font-size:12px;white-space:nowrap;color:var(--dim)}
.section-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:28px 0 12px}
.section-header h2{font-size:15px}
.section-header .count{color:var(--dim);font:450 13px/1 var(--font);margin-left:8px;letter-spacing:0}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
/* Segmented switch: a sunk track, the chosen segment is a raised key */
.tab-bar{display:flex;gap:2px;background:var(--sunk);padding:2px;border-radius:9px;flex-wrap:wrap;box-shadow:inset 0 0 0 1px var(--line)}
.tab{border:0;background:transparent;font-size:13px;font-weight:500;border-radius:var(--r-control);color:var(--muted);padding:0 11px;height:26px;transition:color .12s var(--ease-out),background .12s var(--ease-out)}
.tab:hover{color:var(--text)}
.tab[aria-pressed=true]{color:var(--tab-on-text);background:var(--tab-on);box-shadow:var(--tab-shadow)}
/* Tabs that switch the page's own views are a row of words on a rule; the filled segments above stay filters. */
.toolbar:has(.tab-bar.pages){align-items:flex-end;box-shadow:inset 0 -1px 0 var(--line);margin-bottom:16px;min-height:38px}
.toolbar:has(.tab-bar.pages)>.table-search{margin-bottom:3px}
.tab-bar.pages{background:none;box-shadow:none;padding:0;border-radius:0;gap:20px;flex-wrap:nowrap}
.tab-bar.pages .tab{height:38px;padding:0;border-radius:0;background:none;box-shadow:none;white-space:nowrap}
.tab-bar.pages .tab[aria-pressed=true]{color:var(--text);box-shadow:inset 0 -2px 0 var(--text)}
.tab-bar.pages .tab:focus-visible{outline-offset:-2px}
.table-search{display:flex;align-items:center;gap:8px;color:var(--dim);background:var(--field);border:1px solid var(--field-line);border-radius:var(--r-control);padding:0 10px;min-width:240px;height:32px;transition:border-color .12s var(--ease-out),box-shadow .12s var(--ease-out)}
.table-search:hover{border-color:var(--muted)}
.table-search input{border:0;padding:0;min-height:0;height:100%;width:100%;font-size:13px;background:transparent;box-shadow:none}
.table-search .icon{width:14px;height:14px}
/* Tables: 40 px rows, quiet head, the first column carries the weight */
.table-wrap{border:1px solid var(--line);border-radius:var(--radius);overflow-x:auto;background:var(--surface);box-shadow:var(--lift)}
table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}
th{font-weight:500;color:var(--dim);font-size:12px;padding:0 var(--pad);height:34px;background:var(--th-bg);white-space:nowrap;border-bottom:1px solid var(--line)}
td{padding:9px var(--pad);height:var(--row);border-top:1px solid var(--line);color:var(--td-text)}
tbody tr:first-child td{border-top:0}
td strong{color:var(--text);font-weight:550}
tr.click-row td{transition:background .1s var(--ease-out)}
tr.click-row:hover td{background:var(--row-hover)}
tr.click-row{cursor:pointer}
.table-title{display:flex;gap:10px;align-items:center}
.table-title .icon{color:var(--dim);width:15px;height:15px}
.table-title small{display:block;color:var(--muted);font-size:12px;margin-top:1px}
.table-wrap td svg.icon{vertical-align:-3px}
.table-wrap td .source-kind,.table-wrap td .bucket-tag,.table-wrap td .label{vertical-align:middle}
.table-wrap td>svg.icon:only-child{display:block}
/* A tile in front of every title is decoration; the source logo (.app-icon) is the one mark that stays. */
.table-title>.color-icon,.table-title>svg.icon,.drawer-head>.color-icon,.role-row>.color-icon,.sk-challenge .card-top>.color-icon{display:none}
.row-button{border:0;background:transparent;color:var(--text);font-weight:550;padding:0;border-radius:3px}
.table-tail{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--dim);padding:0 var(--pad);min-height:38px}
.space-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.space-card{border:1px solid var(--line);border-radius:var(--radius);padding:12px var(--pad) 14px;background:var(--surface);text-align:left;position:relative;transition:background .12s var(--ease-out),border-color .12s var(--ease-out)}
.space-card:after{content:none}
.space-card:hover{background:var(--row-hover);border-color:var(--line-strong)}
.space-card.selected{background:var(--raised);border-color:var(--text-2)}
.space-card h3{margin:0 0 1px;font-size:13px;font-weight:550}
.space-card p{font-size:12px;color:var(--muted)}
.space-card-foot{display:flex;justify-content:space-between;align-items:baseline;margin-top:12px}
.space-card-foot strong{font:600 22px/1 var(--head);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.space-card-foot small{font-size:12px;color:var(--dim)}
.card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:14px;border-top:1px solid var(--line)}
.muted{color:var(--muted)}
.tiny{font-size:12px}
.card-footer .button{padding:0 9px;min-height:26px;font-size:12px}
.pill-row{display:flex;flex-wrap:wrap;gap:5px}
.pill{display:inline-flex;align-items:center;gap:5px;background:var(--pill-bg);border:0;box-shadow:inset 0 0 0 1px var(--pill-line);color:var(--pill-text);padding:0 7px;height:21px;border-radius:5px;font-size:12px;font-weight:500;white-space:nowrap}
/* A chip is a word; a symbol in front of every value says nothing */
.pill>.icon{display:none}
.endpoint{display:flex;align-items:center;gap:12px;background:var(--endpoint-bg);border:1px solid var(--endpoint-line);border-radius:var(--r-control);padding:8px 11px;color:var(--endpoint-text);font:12px var(--mono);overflow-wrap:anywhere}
.permission-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(260px,1fr);gap:16px}
.person-selector{display:flex;gap:12px;align-items:center;padding:14px var(--pad);border-bottom:1px solid var(--line)}
.person-selector select{margin-left:auto;max-width:190px;font-size:13px}
.access-yes{color:var(--accent);display:inline-flex;align-items:center;gap:5px;font-size:13px}
.access-no{color:var(--dim);font-size:13px}
.rule-panel{padding:var(--pad)}
.rule-panel h2{font-size:15px}
.rule-panel p{color:var(--muted);font-size:13px;margin-top:10px;line-height:1.6}
.rule-panel .pill-row{margin:16px 0}
.notice{padding:10px 12px;border:0;background:var(--notice-bg);border-radius:8px;color:var(--notice-text);font-size:13px;line-height:1.5;margin:16px 0;box-shadow:inset 0 0 0 1px var(--line)}
.notice.green{background:var(--ok-bg);color:var(--text);box-shadow:inset 0 0 0 1px var(--ok-bg)}
.notice.green>.icon{color:var(--ok)}
.group-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.group-card{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:var(--pad);box-shadow:var(--lift)}
.group-card h3{margin:14px 0 6px}
.group-card p{font-size:13px;color:var(--muted);min-height:40px}
.group-card .pill-row{margin:14px 0;min-height:50px;align-content:start}
/* Empty, error and denied: the icon sits on a tile, so a blank page still has its mark */
.empty{position:relative;padding:92px 24px 44px;text-align:center;color:var(--text);font-size:14px}
.empty::before{content:'';position:absolute;top:36px;left:50%;width:34px;height:34px;margin-left:-17px;transform:rotate(45deg);border-radius:8px;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line-strong)}
.empty.denied::before{background:var(--no-bg);box-shadow:inset 0 0 0 1px var(--no-line)}
.empty.denied>.icon{color:var(--no)}
.empty h3{font:500 15px/1.35 var(--head)}
.empty p{font-size:13px;color:var(--muted);margin:4px auto 0;max-width:46ch}
.timeline{padding:6px var(--pad)}
.timeline .activity-item{padding:0;min-height:var(--row);border:0}
.timeline .activity-item p{font-size:13px}
.timeline .activity-item small,.timeline .activity-item .time{font-size:12px}
.timeline .activity-item .avatar{width:22px;height:22px;font-size:9.5px}
/* Details and forms. Everything above the page is one plane: --float, a dark outline, a lit top edge, one deep shadow. */
dialog{color:var(--text);font:13px/1.5 var(--font);background:var(--dialog);border:0;padding:0;box-shadow:var(--dialog-shadow)}
dialog::backdrop{background:var(--backdrop)}
/* Opening answers the click: the plane settles into place. No motion with reduced motion (rule at the end of this block). */
dialog[open]{animation:bp-rise .18s var(--ease-out)}
dialog.drawer[open]{animation:bp-slide .22s var(--ease-out)}
dialog[open]::backdrop{animation:bp-appear .18s var(--ease-out)}
.drawer{position:fixed;inset:8px 8px 8px auto;margin:0;width:480px;max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:none;border-radius:var(--r-dialog);overflow-y:auto}
.drawer-head{display:flex;justify-content:space-between;align-items:start;padding:16px 20px;border-bottom:1px solid var(--line);gap:12px}
.drawer-head h2{font-size:17px;letter-spacing:-.015em;margin-top:15px}
.drawer-head p{font-size:13px;color:var(--muted);margin-top:1px}
.drawer[open]{display:flex;flex-direction:column}
.drawer-body{padding:20px;flex:1 0 auto}
.drawer-body>.fact-list{margin-bottom:16px}
.drawer-section{margin-bottom:24px}
.drawer-section>h3{font-size:12px;font-weight:500;color:var(--dim);margin-bottom:8px}
.drawer-section>p{font-size:13px;color:var(--prose);line-height:1.65}
.drawer-footer{padding:12px 20px;display:flex;gap:8px;justify-content:flex-end;border-top:1px solid var(--line);background:var(--dialog);position:sticky;bottom:0}
.fact-list{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.fact-list dt{font-size:12px;color:var(--dim);margin-bottom:2px}
.fact-list dd{font-size:13px;font-weight:500;margin:0;color:var(--fact-dd);overflow-wrap:anywhere}
.path{font:12px/1.8 var(--mono);padding:10px 12px;border:1px solid var(--border);border-radius:var(--r-control);color:var(--muted);background:var(--sunk);overflow-wrap:anywhere}
/* A choice row: the whole row is the target */
.check-row{display:flex;align-items:flex-start;gap:10px;padding:9px 8px;margin:0 -8px;border-radius:8px;font-size:13px;cursor:pointer;transition:background .1s var(--ease-out)}
.check-row:hover{background:var(--row-hover)}
.check-row div{flex:1}
.check-row strong{font-weight:500;color:var(--text);line-height:1.3;display:block}
.check-row small{font-size:12px;color:var(--muted);display:block;margin-top:2px}
.check-row input{margin:1px 0 0}
.form-grid{display:grid;gap:14px}
.form-field{display:grid;gap:6px;font-size:13px;color:var(--muted)}
.form-field>label{font-weight:500;color:var(--text-2)}
.form-field input,.form-field select,.form-field textarea{width:100%;font-size:13px;color:var(--text)}
.form-field textarea{resize:vertical;min-height:88px}
@supports (field-sizing:content){
  .form-field textarea{field-sizing:content;resize:none}
}
.form-fieldset{border:0;padding:0;margin:0}
.form-fieldset legend{font-size:13px;font-weight:500;color:var(--text-2);padding:0 0 4px}
.form-hint{font-size:12px;color:var(--dim);line-height:1.5}
/* Inside a form the form's own gap sets the rhythm: sections and hints add none, choice rows sit together */
.form>.drawer-section{margin:6px 0 0}
.form>.form-hint,.modal-body .form>.form-hint,.modal-body .form-field .form-hint,.drawer-body .form-field .form-hint{margin-top:0}
.form>.check-row+.check-row{margin-top:-14px}
.modal{width:460px;max-width:calc(100vw - 24px);max-height:88dvh;border-radius:var(--r-dialog);overflow-y:auto}
.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 14px 0 20px}
.modal-head h2{font-size:17px;letter-spacing:-.015em}
.modal-body{padding:14px 20px 20px}
.modal-body>.subtitle{margin:0 0 18px}
.form-error{font-size:13px;color:var(--red);margin-top:8px}
/* A link to a related thing is a row of its group, not a box inside it */
.related-link{width:calc(100% + 16px);display:flex;gap:10px;align-items:center;justify-content:space-between;background:transparent;border:0;border-radius:var(--r-control);padding:0 8px;min-height:36px;font-size:13px;font-weight:500;margin:0 -8px;color:var(--link-text);transition:background .1s var(--ease-out)}
.related-link:hover{background:var(--row-hover)}
.related-link .icon{width:13px;height:13px;color:var(--dim)}
/* Search: the fastest way anywhere, so it gets the calmest plane. The focused result is the selection. */
.command-dialog{width:600px;max-width:calc(100vw - 24px);border-radius:var(--r-dialog);max-height:76dvh;margin-top:14vh;overflow:hidden}
.command-top{display:flex;align-items:center;gap:11px;padding:0 14px 0 16px;height:50px;border-bottom:1px solid var(--line);color:var(--dim)}
.command-top input{font-size:15px;border:0;background:transparent;padding:0;flex:1;outline:none;box-shadow:none;min-height:0;height:100%}
.command-top input:focus-visible{box-shadow:none}
.command-results{padding:6px;max-height:50dvh;overflow-y:auto}
.command-result{display:flex;gap:10px;align-items:center;padding:0 10px;height:36px;width:100%;border:0;border-radius:var(--r-control);background:transparent;font-size:13px;font-weight:500;color:var(--text-2)}
.command-result:hover{background:var(--row-hover)}
.command-result:focus-visible{outline:none;background:var(--hover);color:var(--text)}
.command-result small{color:var(--muted);font-size:12px;font-weight:400;margin-left:auto}
.command-result .icon{color:var(--dim);width:15px;height:15px}
.command-result:focus-visible .icon{color:var(--text)}
/* Enter opens the first result while the cursor is in the field, so that row is shown as chosen */
.command-dialog:has(.command-top input:focus) .command-result:first-child{background:var(--hover);color:var(--text)}
.command-dialog:has(.command-top input:focus) .command-result:first-child .icon{color:var(--text)}
.command-footer{display:flex;align-items:center;gap:6px;border-top:1px solid var(--line);font-size:12px;color:var(--dim);padding:0 14px;height:36px;background:var(--sunk)}
.command-footer kbd+span{margin-right:10px}
.command-dialog .empty{padding-bottom:28px}
/* A message appears in the free middle of the top bar, where it covers no content and no control */
.toast{position:fixed;transform:translate(-50%,-6px);border:0;border-radius:var(--r-surface);background:var(--toast-bg);color:var(--toast-text);box-shadow:var(--toast-shadow);padding:9px 14px;font-size:13px;font-weight:500;opacity:0;pointer-events:none;transition:opacity .16s var(--ease-out),transform .16s var(--ease-out);z-index:120;max-width:90vw}
.toast.visible{opacity:1;transform:translate(-50%,0)}
.toast[popover]{inset:13px auto auto calc(50% + 120px);margin:0;overflow:visible}
.diff{display:flex;justify-content:space-between;gap:16px;padding:8px 0;font-size:13px;border-bottom:1px solid var(--subtle)}
.diff .added{color:var(--accent)}
.diff .removed{color:var(--red)}
.chip-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:5px;color:var(--muted);font-size:11.5px;font-weight:500;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line)}
.code{white-space:pre-wrap;font:12px/1.7 var(--mono);background:var(--code-bg);padding:14px;border-radius:8px;border:1px solid var(--line);overflow-wrap:anywhere}
@media(min-width:1500px){
  :root{--gutter:40px}
  .stat-value{font-size:30px}
}
@media(max-width:1200px){
  :root{--gutter:22px}
  .sidebar{width:216px}
  .app-shell{left:216px}
  .skip-link{left:224px}
  .global-search{min-width:180px}
  .page-head{align-items:flex-start}
  .page-head .actions{justify-content:flex-end}
  .permission-layout{grid-template-columns:1fr}
  .group-grid{grid-template-columns:repeat(2,1fr)}
  .toast[popover]{left:calc(50% + 108px)}
}
@media(max-width:1020px){
  .space-grid{grid-template-columns:repeat(2,1fr)}
  .global-search{min-width:0;padding-right:9px}
  .global-search>span:not(:first-child){display:none}
  .global-search kbd{display:none}
  .stat-top .icon:not(.stat-go){display:none}
  .stat-value{font-size:24px}
}
@media(max-width:760px){
  /* Narrow: the frame gives way, the sheet is the page and scrolls with the window. Targets grow to a thumb. */
  :root{--gutter:16px;--control:40px;--row:44px}
  body{background:var(--sheet);font-size:14px}
  .sidebar{transform:translateX(-100%);width:256px;box-shadow:var(--side-shadow);transition:transform .2s var(--ease-out);padding-top:12px}
  .sidebar.open{transform:translateX(0)}
  .nav-item{height:38px;font-size:14px}
  .app-shell{position:static;inset:auto;border-radius:0;box-shadow:none;overflow:visible;min-height:100dvh}
  .mobile-menu{display:inline-grid}
  .topbar{padding:0 12px 0 8px;height:52px}
  .skip-link{left:16px}
  .breadcrumbs{gap:6px}
  .workspace-label,.crumb-separator{display:none}
  .breadcrumbs strong{font-size:15px}
  .icon-button{width:36px;height:36px}
  .global-search{height:36px;box-shadow:none;background:transparent;padding:0 9px}
  .global-search .icon{width:17px;height:17px}
  #main{padding:20px var(--gutter) 32px;min-height:calc(100dvh - 53px)}
  h1{font-size:22px}
  .page-head{flex-direction:column;gap:16px;margin-bottom:20px}
  .page-head .actions{justify-content:flex-start}
  input,select,textarea,.table-search{min-height:40px;font-size:16px}
  .table-search{height:40px}
  .table-search input,.form-field input,.form-field select,.form-field textarea{font-size:16px}
  input[type=checkbox],input[type=radio]{width:18px;height:18px;background-size:18px 18px}
  .tab{height:36px}
  .person-selector .subject-select,.sk-version{height:40px;min-height:40px}
  .ov-person{height:40px}
  .stat-grid{grid-template-columns:1fr 1fr}
  .stat:nth-child(3){border-left:0;border-top:1px solid var(--line)}
  .stat:nth-child(4){border-top:1px solid var(--line)}
  .core strong{font-size:13px}
  .core small{font-size:11px}
  .permission-layout{display:block}
  .rule-panel{margin-top:16px}
  .toast[popover]{inset:auto 16px 16px 16px;margin:0 auto;width:fit-content;text-align:center}
  .toast{transform:translateY(6px)}
  .toast.visible{transform:none}
  .table-search{flex:1}
  .group-grid{grid-template-columns:1fr}
  .topbar .environment{display:none}
  .drawer{inset:0;margin:0;border-radius:0;width:100vw;max-width:none;height:100dvh}
  .table-title{min-width:170px}
  .button.small{min-height:32px}
}
@media(max-width:420px){
  .core{grid-column:1/-1;grid-row:1}
  .person-selector{flex-wrap:wrap}
  .person-selector select{width:100%;max-width:none;margin:8px 0 0}
  .endpoint{font-size:12px;width:100%;word-break:break-all}
  .table-search{min-width:180px}
  .fact-list{gap:14px}
  .modal{max-width:calc(100vw - 16px)}
  .button{white-space:normal;line-height:1.25;padding-block:6px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
}
/* Entity layouts and readable inspection states */
.card-footer>span{display:inline-flex;gap:6px;align-items:center;font-size:12px;color:var(--dim)}
.card-footer>span>.icon{width:12px;height:12px}
.person-selector p{font-size:12px;color:var(--muted);margin-top:1px}
.rule-panel>.label{margin-bottom:14px}
.group-card h2{font-size:15px;margin:16px 0 6px}
.drawer-head{align-items:center}
.drawer-head h2{margin-top:0}
.drawer-head>div{flex:1;min-width:0}
.drawer-head>.app-icon,.drawer-head>.color-icon,.drawer-head>.avatar{width:36px;height:36px;font-size:12px}
.drawer-body>.pill-row{margin-bottom:24px}
.drawer-section>.fact-list{margin-top:12px}
.related-link>span{display:inline-flex;align-items:center;gap:8px;min-width:0}
.related-link .color-icon{width:22px;height:22px;border-radius:6px}
.drawer .form-grid{grid-template-columns:1fr 1fr;margin-bottom:24px}
.drawer-footer{flex-wrap:wrap}
.notice{display:flex;align-items:flex-start;gap:9px}
.notice>.icon{width:14px;height:14px;margin-top:3px;color:var(--muted)}
.check-row>span{min-width:0}
.check-row strong{overflow-wrap:anywhere}
.timeline .panel-head{padding:12px 0 6px}
.timeline .activity-list{padding-inline:0}
.table-wrap .pill-row{max-width:270px}
.command-result small{display:flex;gap:7px;align-items:center}
.drawer-section form .form-hint{margin-top:10px}
.group-card .card-footer{margin-top:0}
@media(min-width:1400px){
  .space-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(min-width:1021px) and (max-width:1399px){
  .space-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .drawer .form-grid{grid-template-columns:1fr}
  .timeline .activity-item{flex-wrap:wrap;padding:10px 0;row-gap:2px}
  .timeline .activity-item p{white-space:normal}
  .timeline .activity-item .time{margin-left:36px;width:100%;font-size:12px}
  .space-card h3{min-height:34px}
}
.drawer-head{position:sticky;top:0;z-index:2;background:var(--dialog)}
.drawer-body>form{margin-bottom:24px}
.drawer-body form>.form-hint{margin-top:12px}
.modal-body .form-hint{margin-top:14px}
.stat-foot{color:var(--stat-foot)}
/* Open mobile navigation: a layer over the content closes it on tap (app.js), visible as a scrim in the light theme */
@media(max-width:760px){
  .sidebar{visibility:hidden}
  .sidebar.open{visibility:visible}
  .sidebar.open~.app-shell::before{content:'';position:fixed;inset:0;z-index:39;background:var(--nav-scrim)}
}
/* Toast sits in the top layer above open dialogs. Next to an open drawer it moves to the free area, on narrow screens to the top */
@media(min-width:960px){
  .drawer[open]~.toast[popover]{left:calc((100vw - 496px) / 2)}
}
@media(max-width:959px){
  .drawer[open]~.toast[popover]{inset:16px 16px auto 16px}
}
:root[data-theme="light"] .table-title .color-icon .icon,:root[data-theme="light"] .table-title .app-icon .icon,:root[data-theme="light"] .related-link .color-icon .icon,:root[data-theme="light"] .related-link .app-icon .icon{color:inherit}
:root[data-theme="light"] .workspace{background:transparent}
/* Light theme: a key is white, so on the white sheet the chosen settings entry takes the group tone instead */
:root[data-theme="light"] .settings-link[aria-current=page]{background:var(--nav-on)}
/* The search box takes the focus ring as a whole instead of crossing it */
.table-search input:focus-visible{outline:none;box-shadow:none}
.table-search:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px var(--focus-ring)}
/* Theme switch: no transitions while the tokens change */
.theme-switch *,.theme-switch *::before,.theme-switch *::after{transition:none!important}
/* Print: content only, always in the light theme (app.js switches it for the print run) */
@media print{
  .sidebar,.topbar,.app-footer,.skip-link,.toast,.app-shell::before{display:none}
  .app-shell{position:static;inset:auto;box-shadow:none;overflow:visible}
}
/* ===== BrainPlane additions: components the control-center demo did not need. Tokens only. ===== */
#app{min-height:100dvh}
[hidden]{display:none!important}
.sidebar .sign-out{width:100%;margin-top:2px;justify-content:flex-start;gap:9px;padding:0 10px;border-color:transparent;background:transparent;box-shadow:none;color:var(--nav-text)}
.sidebar .sign-out:hover{background:var(--nav-hover);color:var(--text)}
.sidebar .sign-out .icon{width:16px;height:16px;color:var(--dim);margin:0}
.button.wide{width:100%}
.button.danger{color:var(--red);border-color:var(--red-line);background:var(--danger-bg)}
.button.danger:hover{background:var(--red-bg);border-color:var(--red)}
.button:disabled{opacity:.5;cursor:not-allowed}
.button.primary:disabled{opacity:1;background:var(--raised);border-color:var(--line-strong);color:var(--dim);box-shadow:none}
a.button{text-decoration:none}
.form{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.notice.red{background:var(--no-bg);color:var(--text);box-shadow:inset 0 0 0 1px var(--no-bg)}
.notice.red>.icon{color:var(--no)}
.form-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:4px}
.form-error{white-space:pre-line}
.form-error:empty{display:none}
#main:focus{outline:none}
.modal-text{font-size:13px;color:var(--prose);line-height:1.6;margin-bottom:6px}
.small-heading{font-size:12px;font-weight:500;color:var(--dim);margin:18px 0 8px}
.secret-row{display:flex;gap:8px;align-items:center;margin:10px 0}
.secret-row code{flex:1;font:12px/1.6 var(--mono);background:var(--code-bg);border:1px solid var(--border);border-radius:var(--r-control);padding:6px 10px;overflow-wrap:anywhere}
mark{background:var(--hover);color:inherit;border-radius:3px;padding:0 1px;box-shadow:inset 0 -1.5px 0 var(--text-2)}
.toast.error{background:var(--float);color:var(--red);box-shadow:inset 0 0 0 1px var(--red-line),var(--toast-shadow)}
.command-result>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
/* Loading: grey bars in the shape of the content. They appear after 150 ms so fast answers do not flash,
   then breathe gently (a loading indicator is the one allowed endless loop). No shimmer. */
.loading{display:grid;gap:12px;padding:16px 0;opacity:0;animation:bp-appear .2s .15s forwards}
.loading .sk-bar{display:block;height:10px;width:60%;border-radius:4px;background:var(--skeleton);animation:bp-breathe 1.4s .35s infinite ease-in-out}
.loading.rows{padding:6px var(--pad);gap:0}
.loading.page{gap:0;padding:2px 0;max-width:900px}
.loading.page .sk-bar.title{width:200px;height:24px;border-radius:6px}
.loading.page .sk-bar.subtitle{width:300px;height:10px;margin:12px 0 30px}
.loading-rows{display:grid}
.sk-ghost{display:flex;align-items:center;gap:12px;min-height:48px}
.loading .sk-bar.mark{width:28px;height:28px;border-radius:var(--r-control);flex:none}
.sk-ghost-text{flex:1;display:grid;gap:7px}
.sk-ghost-text .sk-bar{width:38%}
.sk-ghost-text .sk-bar.small{width:24%;height:8px}
.sk-ghost:nth-child(2n) .sk-ghost-text .sk-bar:first-child{width:30%}
.sk-ghost:nth-child(3n) .sk-ghost-text .sk-bar:first-child{width:44%}
.loading .sk-bar.status{width:84px;flex:none}
.loading.line{padding:6px 0}
.page-head .loading.line{padding:10px 0 0}
.page-head .loading.line .sk-bar{width:280px;max-width:60vw}
/* The access placeholder has no mark, like the overlap list it stands for. */
.ov-who .loading .sk-bar.mark{display:none}
/* Lists load inside the surface the list will take */
.sk-results>.loading,.knowledge-results>.loading,.src-list>.loading{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:4px var(--pad)}
@keyframes bp-appear{
  from{opacity:0}
  to{opacity:1}
}
@keyframes bp-rise{
  from{opacity:0;transform:translateY(6px) scale(.985)}
}
@keyframes bp-slide{
  from{opacity:0;transform:translateX(16px)}
}
@keyframes bp-breathe{
  50%{opacity:.55}
}
@media(prefers-reduced-motion:reduce){
  .loading{opacity:1}
}
@keyframes bp-pulse{
  50%{opacity:1}
}
.empty .actions{display:flex;gap:8px;justify-content:center;margin-top:16px}
.empty>.icon{position:absolute;top:44px;left:50%;margin-left:-9px;width:18px;height:18px;color:var(--text-2)}
/* Sign-in and other screens without the app shell */
/* The sign-in page is the main element too, so it resets the page padding and takes the whole window */
.auth-shell,#main.auth-shell{min-height:100dvh;max-width:none;display:grid;place-items:center;padding:32px 16px;background:var(--bg)}
.auth-card{width:100%;max-width:392px;background:var(--sheet);border:0;border-radius:14px;padding:28px 28px 26px;box-shadow:0 0 0 1px var(--line),var(--edge)}
.auth-card .brand{padding:0;margin-bottom:26px;height:auto}
.auth-card .brand-logo{font-size:23px;gap:5px}
.auth-card .brand-mark{height:25px}
.auth-card h1{font-size:22px;letter-spacing:-.02em;margin-bottom:4px}
.auth-card>.subtitle{margin:0 0 20px;font-size:13px;color:var(--muted)}
.auth-card .form{margin-top:16px}
.auth-card .button{min-height:36px}
.auth-card input{min-height:36px}
.auth-card .form-actions .button.primary{flex:1}
.auth-card>.button,.auth-card>a.button{margin-top:20px}
.auth-foot{margin-top:16px;text-align:center}
.auth-sso{display:grid;gap:8px;margin-top:16px}
.auth-divider{display:flex;align-items:center;gap:12px;color:var(--dim);font-size:12px}
.auth-divider::before,.auth-divider::after{content:'';flex:1;border-top:1px solid var(--line)}
.check-list{list-style:none;display:grid;gap:8px;margin:16px 0;padding:0;font-size:13px;color:var(--prose)}
.check-list li{display:flex;gap:9px;align-items:center}
.check-list .icon{width:14px;height:14px;color:var(--green)}
@media(max-width:420px){
  .auth-card{padding:24px 20px}
}
/* ===== Page styles. Each area keeps its rules inside its own section. ===== */
/* --- overview --- */
/* Sources and access side by side; lists of rows, one frame level, status as text with a diamond mark. */
.ov-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:16px;margin-bottom:16px;align-items:stretch}
.ov-list{list-style:none;margin:6px 0 0;padding:0 6px 6px}
/* Rows of one list need no rules between them: the row height and the hover tone carry the reading line. */
.ov-row{display:flex;align-items:center;gap:10px;padding:0 10px;min-height:var(--row);border-radius:var(--r-control);transition:background .1s var(--ease-out)}
a.ov-row:hover{background:var(--row-hover)}
.ov-name{display:flex;align-items:baseline;gap:10px;min-width:0;flex:1}
.ov-name strong{font-weight:550;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}
.ov-name small{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-num,.ov-row .time{color:var(--muted);font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ov-more{padding:6px 10px 4px}
.ov-activity .activity-item{border:0}
.label.syncing{color:var(--text-2)}
.label.syncing .dot{background:var(--dim);animation:bp-pulse 1.2s infinite ease-in-out}
/* Who sees what: the logo's overlap as a list. A filled diamond is a bucket the person can see, an outline one they cannot. */
.ov-who .panel-head{padding-bottom:4px}
/* The person is a field: avatar inside, the whole box takes hover and focus */
.ov-person{display:flex;align-items:center;gap:8px;margin:10px var(--pad) 0;padding:0 2px 0 6px;height:32px;background:var(--field);border-radius:var(--r-control);box-shadow:inset 0 0 0 1px var(--field-line);transition:box-shadow .12s var(--ease-out)}
.ov-person:hover{box-shadow:inset 0 0 0 1px var(--muted)}
.ov-person:focus-within{box-shadow:inset 0 0 0 1px var(--text-2),0 0 0 3px var(--focus-ring)}
.ov-person .avatar{width:22px;height:22px;font-size:9.5px}
.ov-person select{flex:1;min-width:0;background-color:transparent;border:0;min-height:0;height:100%;padding:0 28px 0 0;font-size:13px;font-weight:550;color:var(--text)}
.ov-person select:focus-visible{box-shadow:none}
/* A share as a measure (dom.js shareMark): slanted segments at the angle of the Cut-R cut, the visible share filled in --ok */
.share-mark{height:13px;width:auto;flex:0 0 auto;align-self:center}
.share-seg{fill:var(--line-strong)}
.share-seg.on{fill:var(--ok)}
.ov-access-body{padding:0 var(--pad)}
.ov-sum{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:16px 0 10px;color:var(--muted);font-size:13px}
.ov-sum strong{font:600 22px/1 var(--head);color:var(--text);margin-right:-2px;letter-spacing:-.01em}
.ov-access{list-style:none;margin:0;padding:0;display:grid;gap:1px;border-radius:8px;overflow:hidden}
.ov-access li{display:flex;align-items:center;gap:11px;padding:0 12px;min-height:36px;font-size:13px;font-weight:500}
.ov-access li.in{background:var(--ok-bg)}
.ov-diamond{width:10px;height:10px;transform:rotate(45deg);border-radius:2px;flex:0 0 auto;border:1.5px solid var(--dim)}
.ov-access li.in .ov-diamond{background:var(--ok);border-color:var(--ok)}
.ov-bucket{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-access li.out .ov-bucket{color:var(--muted)}
.ov-role{color:var(--muted);font-size:13px;white-space:nowrap}
.ov-access li.in .ov-role{color:var(--text-2)}
.ov-note{padding:18px 0;color:var(--muted);font-size:13px}
.ov-foot{padding:10px var(--pad) 14px}
.activity-target{color:var(--muted)}
a.activity-item{color:inherit}
@media(max-width:1020px){
  .ov-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  /* Narrow: the overview reads like a start page. Sections instead of framed blocks, weight through length. */
  .ov-grid,.ov-grid+.ov-grid{gap:24px;margin-bottom:24px}
  #main .ov-grid .panel{border:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible}
  #main .ov-grid .panel-head{padding:0}
  #main .ov-grid .loading.rows{padding-inline:0}
  .ov-list{margin-top:8px;padding:0}
  .ov-row{padding:9px 0;gap:12px;min-height:48px}
  /* The last row of a section ends on its text, so the space to the next section is the gap alone. */
  #main .ov-grid .ov-list>li:last-child>.ov-row{padding-bottom:0;min-height:0}
  #main .ov-list li+li .ov-row{box-shadow:none}
  a.ov-row:hover{background:transparent}
  .ov-sources .ov-list li:nth-child(n+5):not(.ov-more){display:none}
  #main .ov-sources .ov-list>li:nth-child(4)>.ov-row{padding-bottom:0;min-height:0}
  .ov-activity .activity-list{padding:4px 0 0}
  .ov-activity .activity-item:nth-child(n+4){display:none}
  .ov-activity .activity-item{border:0;padding:8px 0;flex-wrap:wrap;row-gap:0}
  .ov-activity .activity-item>div{flex:1;min-width:0}
  .ov-activity .activity-item p{font-size:14px}
  .ov-activity .activity-item .time{margin-left:32px;width:100%;padding-top:0;font-size:13px;color:var(--muted)}
  /* Who sees what: person, tally, then the buckets as wrapping chips */
  .ov-person{margin:12px 0 0}
  .ov-access-body,.ov-foot{padding-inline:0}
  .ov-sum{margin:14px 0 10px}
  .ov-access{display:flex;flex-wrap:wrap;gap:6px;border-radius:0;overflow:visible}
  .ov-access li{padding:6px 10px;border-radius:var(--r-control);background:var(--raised);font-size:13px}
  .ov-access li.in{background:var(--ok-bg)}
  .ov-access .ov-role{display:none}
  .ov-bucket{flex:none}
  .ov-foot{padding-block:12px 0}
  /* Knowledge: two compact columns of name and amount */
  .ov-knowledge .ov-list{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}
  .ov-knowledge .ov-list{row-gap:4px}
  .ov-knowledge .ov-row{flex-direction:column;align-items:flex-start;gap:0;min-height:0;padding:10px 0}
  .ov-knowledge .ov-name small{display:none}
  .ov-knowledge .ov-num{font-size:13px}
  /* One clear main action: checking access becomes a text link */
  .page-head .button.ov-check{border-color:transparent;background:transparent;padding-inline:4px;color:var(--muted)}
}
/* --- end overview --- */
/* --- knowledge, document, imports --- */
.knowledge-cards{margin-bottom:6px}
.knowledge-head .section-header .button{white-space:nowrap;flex:0 0 auto}
.knowledge-head .section-header h2{min-width:0;overflow-wrap:anywhere}
button.space-card{width:100%;font:inherit;cursor:pointer;transition:border-color .16s,box-shadow .16s}
button.space-card:focus-visible{outline-offset:2px}
.space-card-foot>small{font-size:12px;color:var(--muted)}
.knowledge-toolbar .table-search{flex:1;max-width:420px}
.knowledge-toolbar .knowledge-toolbar .table-search input:focus-visible{outline:none}
.search-hint{font-size:13px;color:var(--muted);margin:-6px 0 14px}
.search-hint:empty{display:none}
.knowledge-results mark{background:var(--hover);color:inherit;border-radius:3px;padding:0 1px}
.knowledge-results .col-entry{min-width:260px}
.knowledge-results .table-title small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:72ch;line-height:1.55}
.knowledge-results td.col-date,.knowledge-results td.col-bucket{white-space:nowrap}
td.kb-go{width:36px;color:var(--dim);padding-left:0}
td.kb-go .icon{width:16px;height:16px}
.bucket-tag{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.table-tail .text-button{padding:0}
.upload-banner{align-items:center;margin:0 0 20px}
.upload-banner>span{flex:1}
.upload-banner .text-button{padding:0}
.drop-overlay{position:fixed;inset:12px;z-index:90;display:none;place-items:center;border:2px solid var(--ok-line);border-radius:var(--r-dialog);background:color-mix(in srgb,var(--bg) 90%,transparent);pointer-events:none}
.drop-overlay.visible{display:grid}
.drop-overlay>div{display:grid;justify-items:center;gap:12px;color:var(--accent);font-size:15px;background:var(--surface);border:1px solid var(--accent-line);border-radius:14px;padding:28px 40px;box-shadow:var(--shadow-lift)}
.drop-overlay .icon{width:34px;height:34px}
.upload-modal [hidden]{display:none!important}
.upload-list{list-style:none;margin:-6px 0 0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.upload-list:empty{display:none}
.upload-list li{display:flex;align-items:center;gap:9px;font-size:13px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--well)}
.upload-list li>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upload-list li small{font-size:12px;color:var(--dim);white-space:nowrap}
.upload-list li.bad small{color:var(--red)}
.upload-list .icon{width:15px;height:15px;color:var(--dim)}
.upload-modal .form,.doc-editor .form,.relation-modal .form{grid-template-columns:minmax(0,1fr)}
.upload-modal .form-field,.upload-modal .form-grid{min-width:0}
.upload-modal input[type=file]{padding:5px 6px;font-size:13px;color:var(--muted);height:auto}
.upload-modal input[type=file]::file-selector-button{font:inherit;font-size:13px;font-weight:500;border:1px solid var(--border);background:var(--button-bg);color:var(--button-text);border-radius:5px;padding:4px 9px;margin-right:10px;cursor:pointer}
.upload-modal input[type=file]::file-selector-button:hover{background:var(--button-hover);border-color:var(--button-hover-line)}
/* The way back is the same on every detail page: arrow, 8 px, grey, on the page edge, 20 px high, 12 px above the title */
.doc-back,.sk-back,a.source-back{display:inline-flex;align-items:center;gap:8px;min-height:20px;padding:0;margin:0 0 12px;font-size:13px;font-weight:400;line-height:20px;color:var(--muted);text-decoration:none;border-radius:4px;transition:color .12s var(--ease-out)}
.doc-back:hover,.sk-back:hover,a.source-back:hover{color:var(--text);text-decoration:none}
.doc-back .icon,.sk-back .icon,a.source-back .icon{width:14px;height:14px}
.eyebrow{display:flex;align-items:center;min-height:20px;margin-bottom:12px}
.eyebrow>.doc-back{margin-bottom:0}
/* The head action sits on the title's line, below the way back */
.page-head:has(.eyebrow)>.actions,.doc-head>.actions,.source-head>.actions{margin-top:31px}
.doc-head{align-items:flex-start}
.doc-head h1{overflow-wrap:anywhere}
.doc-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px;font-size:13px;color:var(--muted)}
.doc-meta a.pill:hover{border-color:var(--accent-line);color:var(--text)}
.doc-head+.notice{margin-top:-6px}
/* The document is the page: it reads on the sheet, without a group around it */
.doc-body{max-width:72ch;font-size:14.5px;line-height:1.7;color:var(--excerpt);overflow-wrap:anywhere}
.doc-body>*+*{margin-top:14px}
.doc-body p{white-space:pre-wrap}
.doc-body h2,.doc-body h3,.doc-body h4{color:var(--text);letter-spacing:-.2px;line-height:1.35}
.doc-body h2{font-size:21px;margin-top:30px}
.doc-body h3{font-size:17px;margin-top:26px}
.doc-body h4{font-size:15px;margin-top:22px}
.doc-body>:first-child{margin-top:0}
.doc-body ul,.doc-body ol{padding-left:22px;margin-bottom:0}
.doc-body li+li{margin-top:6px}
.doc-body li::marker{color:var(--dim)}
.doc-body code{font:13px var(--mono);background:var(--code-bg);border:1px solid var(--border);border-radius:5px;padding:1px 5px}
.doc-body pre{font:12.5px/1.7 var(--mono);background:var(--code-bg);border:1px solid var(--border);border-radius:9px;padding:14px 16px;overflow-x:auto;white-space:pre}
.doc-figure{margin:0 0 26px}
.doc-figure img{display:block;max-width:100%;max-height:70vh;height:auto;border-radius:10px;border:1px solid var(--border);background:var(--well)}
.doc-figure figcaption{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--muted);padding:14px;border:0;background:var(--raised);border-radius:var(--r-surface)}
.doc-figure figcaption .icon{width:16px;height:16px}
.doc-count{font-size:13px;color:var(--dim)}
.source-list{padding:4px var(--pad) 8px}
.source-item{padding:14px 0 12px;display:grid;gap:10px}
.source-item+.source-item{border-top:1px solid var(--subtle)}
.source-top{display:flex;gap:11px;align-items:flex-start;min-width:0}
.source-top>div{min-width:0}
.source-top strong{display:block;font-size:13px;color:var(--text);overflow-wrap:anywhere}
.source-top small{display:block;font-size:12px;color:var(--dim);margin-top:3px;overflow-wrap:anywhere}
.source-state{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.source-state small{font-size:12px;color:var(--dim)}
.source-note{font-size:13px;color:var(--notice-text);background:var(--notice-bg);border:1px solid var(--notice-line);border-radius:7px;padding:7px 10px}
.source-note.bad{color:var(--red);background:var(--red-bg);border-color:var(--red-line)}
.source-actions{display:flex;flex-wrap:wrap;gap:2px 14px}
.source-actions .text-button{padding:4px 0}
.source-actions .text-button .icon{width:13px;height:13px}
.source-actions .danger:hover,.source-actions .danger{color:var(--red)}
.relation-list{list-style:none;margin:0;padding:4px var(--pad) 8px}
.relation-item{padding:12px 0;display:grid;gap:7px}
.relation-item+.relation-item{border-top:1px solid var(--subtle)}
.relation-top{display:flex;align-items:center;gap:9px}
.relation-top small{flex:1;font-size:12px;color:var(--dim)}
.relation-top .icon-button{width:26px;height:26px;padding:5px}
.relation-title{font-size:13px;font-weight:500;color:var(--text);overflow-wrap:anywhere}
.relation-title:hover{color:var(--accent)}
.relation-item p{font-size:13px;color:var(--prose);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.doc-empty{font-size:13px;color:var(--dim);padding:8px var(--pad) 16px}
.doc-more{padding:0 var(--pad) 12px}
.doc-facts{padding:12px var(--pad) var(--pad);display:grid;gap:16px}
.fact-list.doc-ids{grid-template-columns:1fr;gap:14px}
.doc-copy{display:flex;align-items:center;gap:4px;min-width:0}
.doc-copy code{font:12px/1.5 var(--mono);color:var(--muted);overflow-wrap:anywhere;min-width:0}
.doc-copy .icon-button{width:26px;height:26px;padding:5px;flex:0 0 auto}
.version-list{list-style:none;margin:0;padding:0}
.version-list li{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--subtle)}
.version-list li:last-child{border-bottom:0}
.version-list li>div{flex:1;min-width:0}
.version-list strong{display:block;font-size:13px}
.version-list small{display:block;font-size:12px;color:var(--dim);margin-top:3px;overflow-wrap:anywhere}
.publication-origin{margin-top:18px;display:grid;gap:6px;justify-items:start}
.modal-body>.fact-list+.notice{margin-top:20px}
.modal.doc-editor{width:820px}
.doc-editor-text{min-height:36vh!important;font:12.5px/1.7 var(--mono)!important}
.relation-modal .form+div{margin-top:18px}
.relation-modal .form+div:empty{display:none}
/* A dialog without a footer ends 20 px under its last content */
.modal-body>:last-child{margin-bottom:0}
.modal-body>.version-list:last-child>li:last-child,.modal-body .version-list:last-child>li:last-child{padding-bottom:0}
.relation-modal .modal-body>.form:first-child{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
.relation-modal .modal-body>.form:first-child .form-error{order:3;grid-column:1/-1;margin:0}
.relation-modal .modal-body>.form:first-child .button{min-height:32px}
.imports-count{display:inline-block;min-width:16px;margin-left:6px;padding:0 5px;border-radius:9px;background:var(--label-bg);border:1px solid var(--label-line);font-size:12px;line-height:15px;text-align:center;color:var(--muted)}
.import-error{color:var(--red)!important}
td.imports-action{text-align:right;width:1%;white-space:nowrap}
.imports-table td.col-date{white-space:nowrap}
@media(max-width:1020px){
}
@media(max-width:760px){
  .knowledge-toolbar .table-search{max-width:none;min-width:0;flex:1 1 100%}
  .doc-head{align-items:flex-start}
  .doc-body{font-size:14px}
  .source-list,.relation-list{padding-inline:19px}
  .doc-facts{padding:14px 19px 20px}
  .doc-empty,.doc-more{padding-inline:19px}
  .drop-overlay{inset:8px}
  .space-grid.knowledge-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .knowledge-cards .space-card{padding:13px 14px}
  .knowledge-cards .space-card:last-child:nth-child(odd){grid-column:1/-1}
  .role-row{font-size:15px}
  .doc-head>.actions,.source-head>.actions,.page-head:has(.eyebrow)>.actions{margin-top:0}
  .knowledge-cards .space-card h3{margin:0 0 2px;font-size:14px}
  .knowledge-cards .color-icon{width:28px;height:28px;border-radius:8px}
  .knowledge-cards .color-icon .icon{width:15px;height:15px}
  .knowledge-cards .space-card-foot{margin-top:10px}
  .knowledge-cards .space-card-foot strong{font-size:18px}
  .imports-table .col-date{display:none}
  .imports-table td{padding:13px 12px}
  .imports-table .table-title{min-width:0}
}
.source-kind{display:inline-flex;gap:7px;align-items:center}
.source-kind .app-icon{width:20px;height:20px}
.source-kind .app-icon .icon,.source-kind>.icon{width:14px;height:14px}
/* Bucket filter: the same segments as every other filter, each bucket with its count. The role is read out, not shown. */
.space-grid.knowledge-cards{display:flex;flex-wrap:wrap;gap:2px;width:fit-content;max-width:100%;padding:2px;border:0;border-radius:9px;background:var(--sunk);box-shadow:inset 0 0 0 1px var(--line);overflow:visible}
.knowledge-cards .space-card{display:inline-flex;align-items:center;gap:7px;width:auto;height:26px;padding:0 10px;border:0;border-radius:var(--r-control);background:transparent;box-shadow:none;color:var(--muted);transition:color .12s var(--ease-out),background .12s var(--ease-out)}
.knowledge-cards .space-card:hover{border:0;background:transparent;color:var(--text)}
.knowledge-cards .space-card.selected{background:var(--tab-on);box-shadow:var(--tab-shadow);color:var(--text)}
.knowledge-cards .space-card h3{margin:0;min-height:0;font:500 13px/1 var(--font);color:inherit;white-space:nowrap}
.knowledge-cards .space-card p,.knowledge-cards .space-card-foot>div>small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.knowledge-cards .space-card-foot{display:inline-flex;align-items:center;gap:7px;margin:0}
.knowledge-cards .space-card-foot strong{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:5px;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);font:500 11.5px/1 var(--font);letter-spacing:0}
.knowledge-cards .space-card-foot>small{font-size:12px;color:var(--dim);white-space:nowrap}
@media(max-width:760px){
  .knowledge-cards .space-card{height:36px;padding:0 12px}
  /* Narrow: every segment filter wraps, none runs out of the window */
  .source-tab .toolbar .tab-bar{flex-wrap:wrap;overflow:visible}
}
/* --- end knowledge --- */
/* --- sources and connections --- */
.source-narrow [hidden],.source-setup [hidden],.source-tab [hidden]{display:none!important}
.source-tone-good,.source-card .source-tone-good{color:var(--green)}
.source-tone-pending,.source-card .source-tone-pending{color:var(--amber)}
.source-tone-bad,.source-card .source-tone-bad{color:var(--red)}
.notice.source-alert{border-color:var(--red-line);background:var(--red-bg);color:var(--red)}
.source-ext{display:inline-flex;align-items:center;gap:6px;color:var(--text);text-decoration:none;overflow-wrap:anywhere;min-width:0}
.source-ext:hover{color:var(--accent)}
.source-ext .icon{width:12px;height:12px;color:var(--dim)}
.source-mono.source-mono{font:12.5px/1.6 var(--mono)}
.source-body{padding:12px var(--pad) var(--pad)}
.source-body>.fact-list:not(:last-child){margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid var(--subtle)}
.source-lead{font-size:14px;color:var(--prose);line-height:1.7;margin-bottom:14px;overflow-wrap:anywhere}
.source-narrow{max-width:760px}
.source-num{white-space:nowrap}
td.source-chevron{width:44px;color:var(--dim)}
/* Cards */
/* Steps */
.source-steps{list-style:none;margin:-6px 0 22px;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:var(--dim)}
.source-steps li{display:flex;align-items:center;gap:8px}
.source-steps li+li::before{content:'';width:22px;height:1px;background:var(--border);margin-right:2px}
.source-step-mark{width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;border:1px solid var(--border);background:var(--surface);font-size:12px;font-weight:550}
.source-step-mark .icon{width:11px;height:11px;stroke-width:2.6}
.source-steps .done{color:var(--muted)}
.source-steps .done .source-step-mark{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.source-steps .current{color:var(--text);font-weight:550}
.source-steps .current .source-step-mark{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
/* Add source */
.source-provider-grid{display:grid;grid-template-columns:minmax(0,1fr);max-width:760px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--lift);overflow:hidden}
/* Source types are a list like every other list: logo, name, what it brings, and the state if it cannot be chosen yet. The whole row is the link. */
.source-tile{display:grid;grid-template-columns:28px 148px minmax(0,1fr) auto;align-items:center;column-gap:12px;min-height:var(--row);padding:6px var(--pad);color:inherit;text-decoration:none;transition:background .1s var(--ease-out)}
.source-tile+.source-tile{border-top:1px solid var(--line)}
a.source-tile:hover{background:var(--row-hover)}
.source-tile h3{font-size:13px;font-weight:550;margin:0}
.source-tile p{font-size:13px;color:var(--muted);line-height:1.45}
.source-tile.disabled h3,.source-tile.disabled p{color:var(--dim)}
.source-tile.disabled .app-icon{opacity:.6}
.source-tile-foot{display:flex;align-items:center;gap:16px;white-space:nowrap}
.source-provider{display:flex;gap:12px;align-items:center;margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid var(--subtle)}
.source-provider p{font-size:13px;color:var(--muted)}
.source-secret{display:grid;gap:2px;margin-bottom:14px}
.source-secret small{font-size:12px;color:var(--dim)}
.source-secret .secret-row{margin:4px 0 0}
.source-secret .button{flex:0 0 auto}
/* Setup */
.source-setup{display:grid;gap:16px;max-width:760px}
.source-setup>.source-steps{margin:0 0 4px}
.subtitle.source-choose{margin:-10px 0 12px}
.source-setup .notice{margin:0}
.source-account{margin:-6px 0 0}
.source-picker{display:grid;gap:12px}
.source-search{display:flex;gap:8px}
.source-search .table-search{flex:1;min-width:0}
.source-tree-box{border:1px solid var(--border);border-radius:10px;background:var(--field);max-height:380px;overflow:auto;padding:6px}
.source-tree{list-style:none;margin:0;padding:0}
.source-tree .source-tree{padding-left:22px}
.source-tree-row{display:flex;align-items:center;gap:4px;min-height:32px;border-radius:6px;padding-right:6px}
.source-tree-row:hover{background:var(--row-hover)}
.icon-button.source-tree-toggle{width:28px;height:28px;padding:5px;flex:0 0 auto}
.source-tree-toggle .icon{transition:transform .15s}
.source-tree-toggle[aria-expanded=true] .icon{transform:rotate(90deg)}
.source-tree-spacer{width:28px;flex:0 0 28px}
.source-tree-name{display:flex;align-items:center;gap:8px;flex:1;min-width:0;font-size:13px;padding:6px 0;cursor:pointer}
.source-tree-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.source-tree-name .icon{width:15px;height:15px;color:var(--dim)}
.source-tree-name.muted{cursor:default}
.source-tree-name input{margin:0 2px 0 0;accent-color:var(--accent)}
.source-tree-note{list-style:none;font-size:13px;color:var(--dim);padding:8px 10px}
.source-tree-note.source-tone-bad{color:var(--red)}
.source-tree-row .button,.source-tree-note .button{min-height:26px;padding:0 9px}
.source-picked-label{font-size:12px;color:var(--dim)}
.source-picked{min-height:24px}
.source-picked-pill{padding-right:3px;max-width:100%}
.source-picked-remove{border:0;background:transparent;color:var(--dim);padding:2px;display:inline-grid;place-items:center;border-radius:4px}
.source-picked-remove:hover{color:var(--red)}
.source-picked-remove .icon{width:11px;height:11px}
.source-repos{display:grid;gap:10px;margin-top:16px;justify-items:start}
.source-repos>.source-tree{width:100%;border:1px solid var(--border);border-radius:10px;padding:6px}
.source-scopes{list-style:none;margin:0 0 16px;padding:0;display:grid}
.source-scopes li{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--subtle);font-size:13px;min-width:0}
.source-scopes li:first-child{border-top:0}
.source-scopes li>.icon{width:15px;height:15px;color:var(--dim)}
.source-scopes li>div{flex:1;min-width:0;display:grid;gap:3px}
.source-scopes small{font-size:12px}
.panel>.source-scopes{margin:0;padding:4px var(--pad) 8px}
/* Connection */
.page-head.source-head{align-items:flex-start}
.source-head>.actions:empty{display:none}
.source-title{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:start;min-width:0}
.source-title>div{display:contents}
.source-title .source-back{grid-column:1/-1;justify-self:start}
.source-title>.app-icon{grid-column:1;grid-row:2/span 2}
.source-title h1,.source-title .source-meta{grid-column:2}
.source-title>div{min-width:0}
.source-title>.app-icon{width:40px;height:40px;border-radius:10px;margin-top:2px}
.source-title>.app-icon .icon{width:20px;height:20px}
.source-title h1{overflow-wrap:anywhere}
.source-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:8px;font-size:13px;color:var(--muted)}
.source-tab{display:grid;gap:16px;min-width:0}
.source-tab>*,.source-setup>*{min-width:0}
.source-tab>.stat-grid,.source-tab>.toolbar{margin:0}
.source-tab .table-tail{align-items:center;gap:12px}
.source-tab .panel .empty{padding-bottom:32px}
.source-filter{min-width:0;max-width:100%}
.source-tab .toolbar .tab-bar{flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:none}
.source-tab .toolbar .tab{flex:0 0 auto;white-space:nowrap}
.tab .chip-count{margin-left:6px;min-width:17px;height:17px;font-size:11px}
/* Item counts of a source: a list like every other list. Count, state, what it means; the row opens the items in that state. */
.stat-grid.source-stats{grid-template-columns:minmax(0,1fr)}
.source-stats .stat{display:flex;align-items:center;gap:10px;min-height:var(--row);padding:0 var(--pad);font-size:13px}
.source-stats .stat+.stat{border-left:0;border-top:0}
.source-stats .stat-top{display:contents;color:var(--text);font-weight:550}
.source-stats .stat-line{order:-1;margin:0;min-width:28px}
.source-stats .stat-value{font:600 14px/1 var(--font);letter-spacing:0}
.source-stats .stat-foot{order:2;margin:0;font-size:13px;color:var(--muted)}
.source-stats .stat .stat-go{order:3;margin:0 0 0 auto}
button.source-stat{border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;width:100%}
/* A clickable count opens the items with that state: hover surface and a chevron say so. */
button.source-stat{transition:background .15s var(--ease-out)}
button.source-stat:hover{background:var(--hover)}
.source-stat .stat-go{width:12px;height:12px;color:var(--dim);margin-left:4px;vertical-align:-1px;transition:transform .15s var(--ease-out)}
button.source-stat:hover .stat-go{transform:translateX(2px);color:var(--text)}
button.source-stat:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;border-radius:var(--radius)}
.source-stat.source-tone-bad .stat-value{color:var(--red)}
.source-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start}
.source-settings{display:grid;gap:16px;max-width:760px;min-width:0}
.source-reason{display:grid;gap:3px;max-width:360px}
td .source-reason{min-width:180px}
.source-reason code{font:12px/1.4 var(--mono);color:var(--dim);overflow-wrap:anywhere}
.source-pager{display:flex;gap:8px}
.source-pager .button{min-height:26px;padding:0 9px}
.source-pair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.source-danger{border-color:var(--line)}
.source-danger-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px var(--pad);border-top:1px solid var(--subtle)}
.source-danger .panel-head+.source-danger-row{margin-top:16px}
.source-danger-row strong{display:block;font-size:13px;font-weight:550}
.source-danger-row small{display:block;font-size:13px;color:var(--dim);margin-top:3px}
@media(max-width:1020px){
  .source-columns{grid-template-columns:1fr}
}
@media(max-width:760px){
  .source-body{padding:16px 19px 19px}
  .source-steps li:not(.current) .source-step-text{display:none}
  .source-steps li+li::before{width:14px}
  .source-tile{grid-template-columns:28px minmax(0,1fr);align-items:start;row-gap:2px;padding:12px var(--pad)}
  .source-tile .app-icon{grid-row:span 3}
  .source-tile p,.source-tile-foot{grid-column:2}
  .source-tile-foot{flex-wrap:wrap;gap:4px 16px;margin-top:4px;white-space:normal}
  .source-title{gap:12px}
  .source-title>.app-icon{width:40px;height:40px;margin-top:4px}
  .source-pair,.source-limits{grid-template-columns:1fr}
  .source-danger-row{flex-direction:column;align-items:flex-start;padding:15px 19px}
}
/* Source list: rows like every other list; the one next action sits at the end of the row */
.src-list td.src-action{text-align:right;width:1%;white-space:nowrap;padding-block:8px}
.src-list td.src-num,.src-list td.src-status{white-space:nowrap}
.src-list .table-title small{max-width:52ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.src-list .button.subtle{border-color:transparent;color:var(--muted);min-height:28px;padding:0 10px}
.src-list .button.subtle:hover{color:var(--text);background:var(--raised)}
/* --- end sources --- */
/* --- skills and challenges --- */
.sk-muted{font-size:13px;color:var(--dim)}
.sk-pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;color:var(--prose)}
.sk-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sk-nowrap{white-space:nowrap}
.sk-eyebrow{display:block;font-size:12px;color:var(--dim);margin-bottom:6px}
.sk-label{font-size:13px;font-weight:500;color:var(--dim);margin:24px 0 10px}
.sk-label:first-child{margin-top:0}
.sk-more{display:flex;justify-content:center;margin-top:22px}
.sk-pager{display:flex;justify-content:space-between;gap:12px;margin-top:10px}
.table-tail .sk-pager{margin:0;width:100%}
.modal.sk-wide{width:760px}
.sk-code{max-height:58dvh;overflow:auto;margin:16px 0}
/* Skill cards: one-line purpose, the whole card opens the skill */
/* Panels with a padded body */
.sk-box-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px var(--pad) 0}
.sk-box-head h2{font-size:15px}
.sk-box-head .count{font-size:13px;color:var(--dim)}
.sk-box-head .actions{gap:8px}
.sk-box-body{padding:12px var(--pad) var(--pad);min-width:0}
.sk-box .loading{padding:6px 0}
/* Skill page */
.sk-head{align-items:flex-start}
.sk-title{display:flex;gap:16px;align-items:flex-start;min-width:0}
.sk-title>.color-icon{width:40px;height:40px;border-radius:10px}
.sk-title>.color-icon .icon{width:20px;height:20px}
.sk-title h1{overflow-wrap:anywhere}
.sk-badges{margin-top:12px;align-items:center;gap:6px 14px}
.sk-title .subtitle{font-size:14px;color:var(--text-2);margin-top:6px;max-width:70ch}
/* The version picker is a field, so it cannot be mistaken for the status or the bucket tag next to it.
   Own caret instead of the native one, which sits flush against the border. */
.sk-version-field{display:inline-flex;align-items:center;gap:8px;margin-left:8px;font-size:13px;color:var(--muted)}
.sk-version{height:32px;min-height:32px;padding:0 30px 0 10px;font-size:13px;font-weight:500;border-radius:var(--r-control);background-color:var(--field);border:1px solid var(--field-line);color:var(--text)}

.sk-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,340px);gap:16px;align-items:start}
.sk-main,.sk-side{display:grid;gap:16px;min-width:0}
.sk-narrow{max-width:720px}
.sk-prose{font-size:14px;line-height:1.75;color:var(--prose);overflow-wrap:anywhere}
.sk-prose>*{margin:0}
.sk-prose>*+*{margin-top:11px}
.sk-prose p,.sk-prose li,.sk-prose blockquote{white-space:pre-line}
.sk-prose h3,.sk-prose h4,.sk-prose h5{color:var(--text);line-height:1.4}
.sk-prose h3{font-size:15px}
.sk-prose h4{font-size:14px}
.sk-prose h5{font-size:14px}
.sk-prose>*+h3,.sk-prose>*+h4,.sk-prose>*+h5{margin-top:22px}
.sk-prose ul,.sk-prose ol{padding-left:21px}
.sk-prose li+li{margin-top:5px}
.sk-prose li::marker{color:var(--dim)}
.sk-prose strong{color:var(--text)}
.sk-prose code{font:12.5px var(--mono);background:var(--code-bg);border:1px solid var(--border);border-radius:4px;padding:1px 4px}
.sk-prose pre.code{font-size:13px}
.sk-prose blockquote{border-left:3px solid var(--accent-line);padding:2px 0 2px 14px;color:var(--muted)}
.sk-prose hr{border:0;border-top:1px solid var(--border)}
.sk-prose+.fact-list{margin-top:18px}
.sk-checks{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.sk-checks li{display:flex;gap:9px;font-size:14px;line-height:1.6;color:var(--prose)}
.sk-checks .icon{width:15px;height:15px;margin-top:3px;color:var(--accent)}
.sk-rows{list-style:none;margin:0;padding:0}
.sk-row{display:grid;gap:4px;padding:12px 0;border-top:1px solid var(--subtle)}
.sk-row:first-child{border-top:0;padding-top:0}
.sk-row.current{background:var(--raised);border-radius:0;padding:10px var(--pad);margin:0 calc(-1 * var(--pad));border-top-color:transparent}
.sk-row.current+.sk-row{border-top-color:transparent}
.sk-row-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;min-width:0}
.sk-row small{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.sk-row-actions{display:flex;gap:16px;flex-wrap:wrap}
.sk-row-actions .text-button{padding:2px 0}
.sk-row>.sk-pre{margin-top:3px}
/* A file row: the name opens the preview, download is the quieter icon next to it. */
.sk-file{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}
.sk-file-open{display:grid;gap:4px;justify-items:start;text-align:left;border:0;background:transparent;padding:6px 10px;margin:-6px -10px;border-radius:8px;color:inherit;min-width:0;transition:background .15s var(--ease-out)}
.sk-file-open:hover{background:var(--hover)}
.sk-file-open strong{text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.sk-file-open:hover strong{text-decoration-color:currentColor}
/* Bucket and version read as label plus value, apart from the status. */
.sk-meta{font-size:13px;color:var(--muted)}
.sk-meta strong{color:var(--text);font-weight:500;margin-left:6px}
/* A version row: the body opens the version, the side holds at most one button and the edit link. */
.sk-version-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}
.sk-row-link{display:grid;gap:4px;min-width:0;color:inherit;border-radius:8px;margin:-8px -12px;padding:8px 12px;transition:background .15s var(--ease-out)}
.sk-row-link:hover{background:var(--hover)}
.sk-row-link .sk-row-main strong{display:inline-flex;align-items:center;gap:4px}
.sk-row-link .sk-go{width:13px;height:13px;color:var(--dim);transition:transform .15s var(--ease-out)}
.sk-row-link:hover .sk-go{transform:translateX(2px);color:var(--text)}
.sk-row-body{display:grid;gap:4px;min-width:0}
.sk-version-row .sk-row-actions{gap:8px;align-items:center;flex-wrap:nowrap}
.sk-version-row .icon-button,.sk-file .icon-button{width:28px;height:28px;color:var(--text-2)}
.sk-row-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.sk-row-meta .label{font-size:12.5px}
.sk-file .sk-row-main>.icon{width:15px;height:15px;color:var(--dim)}
.sk-file code{font:12.5px var(--mono);overflow-wrap:anywhere;color:var(--text)}
.sk-ident{margin-top:18px}
.sk-ident small{display:block;font-size:12px;color:var(--dim);margin-bottom:5px}
.sk-ident>div{display:flex;align-items:center;gap:6px}
.sk-ident code{flex:1;min-width:0;font:12px/1.6 var(--mono);color:var(--fact-dd);overflow-wrap:anywhere}
.sk-ident .icon-button{flex:none;width:28px;height:28px}
/* Editor */
.form.sk-editor{max-width:760px;gap:16px}
.form-field textarea.sk-mono{font:12.5px/1.65 var(--mono)}
.form-field textarea.sk-tall{min-height:380px}
.sk-resources{display:grid;gap:14px}
.sk-resources:not(:empty){margin-top:2px}
.sk-resource{display:grid;gap:12px;margin:0;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0}
.sk-resource-head{display:grid;grid-template-columns:minmax(0,1fr) 190px auto;gap:12px;align-items:end}
.sk-resource-head .icon-button{margin-bottom:2px}
.sk-resource textarea{min-height:140px}
.sk-editor>.notice{margin:0}
/* The bar lies over the form: a firm edge, and the form fades into the sheet tone just above it */
.sk-editor>.form-actions{position:sticky;bottom:0;z-index:2;padding:12px 0;background:var(--sheet);border-top:1px solid var(--line-strong);box-shadow:0 -18px 20px -14px var(--sheet)}
/* Challenges */
.sk-today-wrap{margin-bottom:8px}
.sk-today{display:flex;align-items:center;gap:14px;padding:var(--pad) 20px;background:var(--banner-bg);border-color:var(--banner-line)}
.sk-today.sk-quiet{background:var(--surface);border-color:var(--border)}
.sk-today>.color-icon{width:36px;height:36px;border-radius:9px}
.sk-today h2{font-size:16px}
.sk-today p{font-size:13px;color:var(--muted);margin-top:2px}
.sk-today>.actions{margin-left:auto}
.sk-work{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;align-items:start}
.sk-challenge{padding:var(--pad)}
.sk-challenge .card-top{margin-bottom:16px}
.sk-challenge .color-icon{width:32px;height:32px;border-radius:8px}
.sk-challenge h2{font-size:17px;margin-bottom:10px}
.sk-prompt .sk-prose{font-size:14px;color:var(--text)}
.sk-challenge>.pill-row{margin-top:18px}
.sk-evidence{margin-top:24px}
.sk-work .form-field input[type=number]{max-width:140px}
.sk-work .form-field[hidden]{display:none}
.sk-picker{display:grid;gap:10px}
.sk-picker .table-search{min-width:0;background:var(--field)}
.sk-chosen{display:flex;flex-wrap:wrap;gap:6px}
.sk-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 3px 3px 9px;border:1px solid var(--line-strong);background:var(--raised);border-radius:7px;font-size:13px}
.sk-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sk-chip>.icon{width:13px;height:13px;color:var(--accent)}
.sk-chip .icon-button{width:24px;height:24px;padding:5px}
.sk-options{display:grid;gap:5px;max-height:224px;overflow-y:auto}
.sk-option{display:flex;align-items:center;gap:9px;width:100%;padding:0 10px;min-height:34px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);font-size:13px;text-align:left;transition:border-color .12s var(--ease-out),background .12s var(--ease-out)}
.sk-option:hover:not(:disabled){border-color:var(--card-hover-line)}
.sk-option>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sk-option>.icon{width:14px;height:14px;color:var(--dim)}
.sk-option>.icon:last-child{color:var(--accent)}
@media(max-width:1020px){
  .sk-layout,.sk-work{grid-template-columns:1fr}
}
@media(max-width:760px){
  .sk-title{gap:12px}
  .sk-title>.color-icon{width:40px;height:40px}
  .sk-resource-head{grid-template-columns:minmax(0,1fr) auto}
  .sk-resource-head>.form-field:first-child{grid-column:1/-1}
  .sk-today{flex-wrap:wrap;padding:20px}
  .sk-today>.actions{margin-left:0;width:100%}
  .sk-today>.actions .button{flex:1}
  .sk-challenge{padding:20px}
  .sk-box-head,.sk-side .sk-box-head{padding:var(--pad) var(--pad) 0}
  .sk-box-body,.sk-side .sk-box-body{padding:12px var(--pad) var(--pad)}
}
/* Skill list */
td.sk-ver,td.sk-state,td.sk-bucket{white-space:nowrap}
td.sk-name .table-title small{max-width:70ch}
.sk-filename{font-weight:500;color:var(--text);overflow-wrap:anywhere}
/* Skill page: the instructions lead; the side column is one surface with plain sections */
.sk-context{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px 32px;padding:4px 0 2px}
.sk-context .sk-label{margin:0 0 6px}
.sk-context .sk-prose{font-size:14px}
.sk-instructions .sk-box-body{padding:8px var(--pad) 24px}
.sk-instructions .sk-prose{font-size:14.5px;line-height:1.7;max-width:70ch;color:var(--text-2)}
/* Headings inside a skill are content, one step below the section title. */
.sk-instructions .sk-prose h3,.sk-instructions .sk-prose h4{font:600 14.5px/1.4 var(--font);color:var(--text)}
.sk-instructions .sk-prose h5{font:600 14.5px/1.4 var(--font);color:var(--text)}
.sk-instructions .sk-prose>h3:first-child,.sk-instructions .sk-prose>h4:first-child{margin-top:4px}
.sk-instructions .sk-prose>*+*{margin-top:14px}
.sk-side{gap:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;box-shadow:var(--lift)}
.sk-side>.sk-box{border:0;border-radius:0;background:transparent;box-shadow:none}
.sk-side>.sk-box+.sk-box{border-top:1px solid var(--line)}
.sk-side .sk-box-head{padding:var(--pad) var(--pad) 0}
.sk-side .sk-box-body{padding:12px var(--pad) var(--pad)}
.sk-side .fact-list{gap:14px 18px}
.sk-side .fact-list dd{font-size:13px}
.sk-ids{margin-top:16px}
/* Disclosure rows read as actions: own caret that turns, no native marker, ring only for keyboard focus. */
.sk-ids summary,.sk-older summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:8px 0;font-size:13px;font-weight:500;color:var(--text-2);border-radius:6px}
.sk-ids summary::-webkit-details-marker,.sk-older summary::-webkit-details-marker{display:none}
.sk-ids summary:hover,.sk-older summary:hover{color:var(--text)}
.sk-ids summary:focus:not(:focus-visible),.sk-older summary:focus:not(:focus-visible){outline:none}
.sk-ids summary:focus-visible,.sk-older summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sk-caret{width:12px;height:12px;color:var(--muted);transition:transform .15s var(--ease-out)}
.sk-ids[open]>summary .sk-caret,.sk-older[open]>summary .sk-caret{transform:rotate(90deg)}
.sk-rows+.sk-older{margin-top:8px}
.sk-older[open]>summary{margin-bottom:4px}
.sk-ids .sk-ident{margin-top:12px}
.sk-side .sk-row-actions{gap:14px}
@media(max-width:760px){
  .sk-instructions .sk-box-body{padding:6px 18px 22px}
}
/* --- end skills --- */
/* --- access, people and groups, activity --- */
/* Access: areas joined by right-angled paths. A filled diamond on an --ok area is a bucket the subject can use,
   an open diamond with coral text one it cannot. Paths are neutral; the selected bucket's paths turn --ok. */
.access-main{overflow:hidden}
.person-selector{flex-wrap:wrap;padding:12px var(--pad);border-bottom:1px solid var(--line)}
.person-selector strong{font-size:14px;font-weight:600}
.ac-subject p{font-size:13px;color:var(--muted);margin-top:2px}
.ac-controls{display:flex;gap:10px;align-items:center;margin-left:auto;flex-wrap:wrap}
.person-selector .subject-select{max-width:240px;margin:0;font-size:13px;font-weight:500;background-color:var(--field);border:1px solid var(--field-line);border-radius:var(--r-control);padding:0 30px 0 10px;height:32px;min-height:32px;color:var(--text)}
.access-graph{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr);gap:clamp(28px,5vw,72px);padding:20px var(--pad) 24px;border-bottom:1px solid var(--line)}
.access-graph .graph-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.graph-col{display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0;position:relative;z-index:1}
.graph-col h4{font-size:12px;color:var(--muted);font-weight:500;margin-bottom:2px}
.graph-node{display:flex;align-items:center;gap:9px;min-width:0;border:0;background:var(--raised);border-radius:8px;padding:0 10px;min-height:36px;font-size:13px;font-weight:500;box-shadow:inset 0 0 0 1px var(--line),var(--edge);color:var(--text);text-align:left;transition:background .15s var(--ease-out),opacity .15s var(--ease-out)}
.graph-node>span:not(.avatar):not(.color-icon):not(.ac-diamond){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.graph-node .avatar,.graph-node .color-icon{width:20px;height:20px;font-size:9.5px;border-radius:6px}
.graph-node .color-icon{background:var(--surface)}
.graph-node .avatar{border-radius:50%}
.graph-node .color-icon .icon{width:14px;height:14px}
.graph-node small{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
.graph-node.bucket.in{background:var(--ok-fill);box-shadow:inset 0 0 0 1px var(--ok-bg)}
.graph-node.bucket.in small{color:var(--text-2)}
.graph-node.bucket.out{background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
.graph-node.bucket.out .ac-name{color:var(--muted)}
.graph-node.bucket.out small{color:var(--no)}
.graph-node.muted,.graph-node.more{color:var(--muted);justify-content:center;background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
button.graph-node:hover,a.graph-node:hover{background:var(--hover)}
button.graph-node.bucket.in:hover,.graph-node.bucket.in.lit{background:color-mix(in srgb,var(--ok) 24%,transparent)}
.graph-node.lit{box-shadow:inset 0 0 0 1.5px var(--text-2)}
/* Focus on one bucket: the others step back through tone, text keeps AA contrast */
.access-graph.focused .graph-node:not(.lit){background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}
.access-graph.focused .graph-node:not(.lit) small,.access-graph.focused .graph-node:not(.lit) .ac-name{color:var(--muted)}
.access-graph.focused .graph-node:not(.lit) .ac-diamond{opacity:.5}
.graph-edge{fill:none;stroke:var(--line-strong);stroke-width:1.5;transition:stroke .15s var(--ease-out),opacity .15s var(--ease-out)}
.access-graph.focused .graph-edge{opacity:.35}
.access-graph.focused .graph-edge.lit{opacity:1;stroke:var(--ok);stroke-width:2}
.ac-diamond{width:9px;height:9px;transform:rotate(45deg);border-radius:2px;flex:0 0 auto;border:1.5px solid var(--dim)}
.in>.ac-diamond,.in .table-title .ac-diamond,.ac-why-head.in .ac-diamond{background:var(--ok);border-color:var(--ok)}
.out>.ac-diamond,.out .table-title .ac-diamond,.ac-why-head.out .ac-diamond{border-color:var(--no)}
.access-matrix .matrix-cell{text-align:center;width:1%;white-space:nowrap;padding-inline:14px}
.access-matrix .via-cell{width:30%}
.access-matrix .ac-role-cell{display:none}
.access-matrix tr.selected td{background:var(--raised)}
.access-matrix tr.out .row-button{color:var(--muted)}
.access-yes{display:inline-grid;place-items:center;color:var(--ok)}
.access-yes .icon{width:16px;height:16px}
.access-no{color:var(--dim)}
/* The matrix follows the diagram directly: one rule between them, not two */
.matrix-wrap,.panel>.table-wrap.matrix-wrap{border:0;border-radius:0;margin-top:0;box-shadow:none}
.matrix-wrap th{border-bottom:1px solid var(--line)}
.ac-roles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px;margin:0;padding:14px var(--pad) 16px;border-top:1px solid var(--line)}
.ac-roles dt{font-size:13px;font-weight:600;color:var(--text-2)}
.ac-roles dd{margin:2px 0 0;font-size:13px;color:var(--muted);line-height:1.45}
.rule-panel{align-self:start;position:sticky;top:20px}
.rule-panel h2{margin-bottom:6px}
.ac-sum{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;color:var(--muted);font-size:13px;margin:6px 0 14px}
.ac-sum strong{font:600 22px/1 var(--head);color:var(--text);letter-spacing:-.01em;margin-right:-2px}
.rule-hint{font-size:13px;color:var(--muted);margin-top:14px}
.ac-why-head{display:flex;align-items:center;gap:12px}
.ac-why-head .ac-diamond{width:11px;height:11px}
.ac-why-head h2{margin:0}
.ac-verdict{font-size:13px;color:var(--text-2);margin:6px 0 14px}
.ac-verdict.out{color:var(--no)}
.path-list{display:grid;gap:0;list-style:none;margin:0;padding:0}
.path-item{display:flex;align-items:center;gap:10px;min-height:32px;font-size:13px}
.path-item+.path-item{border-top:1px solid var(--line)}
.path-item>span:not(.avatar):not(.color-icon){flex:1}
.path-item strong{font-weight:500;color:var(--text-2)}
.path-item .avatar,.path-item .color-icon{width:20px;height:20px;font-size:9.5px}
.path-item .color-icon{background:var(--surface)}
.path-item a{color:var(--text);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.role-editor{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.role-editor h3{font-size:12px;font-weight:500;color:var(--dim);margin-bottom:8px}
.role-editor-row{display:flex;gap:8px}
.role-editor-row select{flex:1;color:var(--text)}
.modal .member-checks{max-height:280px;overflow-y:auto;padding-inline:8px;margin-inline:-8px}
.drawer-footer .button[type=submit]{margin-left:auto}
.role-rows{display:grid;gap:8px}
.role-row{display:grid;grid-template-columns:1fr minmax(120px,auto);align-items:center;gap:10px;font-size:13px;font-weight:500}
.role-row .color-icon{width:26px;height:26px}
.role-row select{color:var(--text)}
.diff-list{display:grid}
.diff.gain strong{color:var(--green)}
.diff.loss strong{color:var(--red)}
.diff.change strong{color:var(--accent)}
.preview-facts{display:flex;gap:16px;font-size:13px;color:var(--muted);margin-bottom:8px}
.preview-facts span{display:inline-flex;gap:6px;align-items:center}
.preview-facts .icon{width:14px;height:14px}
.chevron-cell{width:1%;color:var(--dim)}
.group-members{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.group-members .avatar{width:22px;height:22px;font-size:9.5px;box-shadow:0 0 0 2px var(--surface),inset 0 0 0 1px var(--line)}
.load-more{display:flex;justify-content:center}
.load-more>*{margin:8px 0 12px}
.form-hint .icon{width:12px;height:12px;vertical-align:-2px}
@media(max-width:1100px){
  .ac-roles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  /* Narrow: the diagram gives way to the list; the matrix shows the highest role instead of four columns */
  .access-graph{display:none}
  .access-matrix .ac-role-cell{display:table-cell;text-align:right;white-space:nowrap}
  .access-matrix tr.out .ac-role-cell{color:var(--no)}
  .access-matrix .matrix-cell,.access-matrix .via-cell{display:none}
  .hide-narrow{display:none}
  .rule-panel{position:static}
  .ac-roles{display:none}
  .ac-controls{margin-left:0;width:100%}
  .person-selector .subject-select{flex:1;max-width:none}
  .ac-controls .select-wrap{flex:1}
}
@media(max-width:480px){
  .ac-roles{grid-template-columns:1fr}
}
/* --- end access --- */
/* --- settings and account --- */
.settings{display:grid;grid-template-columns:188px minmax(0,1fr);gap:32px;align-items:start}
.settings-nav{position:sticky;top:24px;display:grid;gap:2px}
.settings-nav .nav-label{margin:4px 0 8px}
.settings-link{display:flex;gap:9px;align-items:center;padding:0 10px;height:30px;border-radius:var(--r-control);color:var(--nav-text);font-size:13px;font-weight:500;transition:background .12s var(--ease-out),color .12s var(--ease-out)}
.settings-link:hover{background:var(--nav-hover);color:var(--text)}
.settings-link[aria-current=page]{background:var(--nav-on);color:var(--nav-on-text);box-shadow:none}
.settings-link .icon{width:16px;height:16px;color:var(--dim)}
.settings-link:hover .icon{color:var(--text)}
.settings-link[aria-current=page] .icon{color:var(--nav-on-text)}
.settings-picker{display:none}
.settings-main,.settings-content{display:grid;gap:16px;min-width:0}
.settings-main>.page-head{margin-bottom:4px}
.settings-content>.form,.account-grid .form{gap:16px}
.panel-body{padding:12px var(--pad) var(--pad)}
.panel-body>.check-row:last-child,.panel-body>.form>.check-row:last-of-type{border-bottom:0}
.panel-body>.fact-list{margin-top:4px}
.panel>.table-wrap{border:0;border-radius:0;box-shadow:none;margin-top:12px;border-top:1px solid var(--subtle)}
.panel>.table-wrap th{background:transparent}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;align-items:start}
.settings-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.settings-grid>.span-all{grid-column:1/-1}
.form-field>label .label{margin-left:8px;vertical-align:1px}
.form-field>span{font-size:13px;color:var(--muted)}
.form-field input[readonly]{color:var(--muted);background:var(--well)}
.form-field textarea.mono{font:12.5px/1.6 var(--mono)}
.duration{display:flex;gap:8px}
.duration input{flex:1;min-width:0}
.duration select{flex:0 0 96px}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
td.end,th.end{text-align:right;width:1%;white-space:nowrap}
td code,.hash{font:12px var(--mono);overflow-wrap:anywhere}
.panel-empty{padding:8px var(--pad) var(--pad);font-size:13px;color:var(--dim)}
.panel-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.panel-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:16px}
.panel-head .actions .button{min-height:28px;padding:0 10px;font-size:12.5px}
/* A key in a row is 28 px, next to a field as high as the field */
td .button,.client-row .button,.member-row .button{min-height:28px;padding:0 10px;font-size:12.5px;border-radius:6px}
.secret-row .button{min-height:32px}
.secret-row code{min-height:32px;display:flex;align-items:center}
.member-list{display:grid}
.member-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--subtle);font-size:13px}
.member-row:last-child{border-bottom:0}
.member-row>div{flex:1;min-width:0}
.member-row strong,.member-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member-row small{font-size:12px;color:var(--dim);margin-top:2px}
.member-row .label{margin-top:5px}
.member-row select{flex:0 0 auto;font-size:13px}
.drawer .settings-grid{grid-template-columns:1fr 1fr;margin:0}
.drawer .settings-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.drawer .settings-grid.member-add{grid-template-columns:minmax(0,1fr) 128px}
.settings input[type=radio]{accent-color:var(--accent);width:16px;height:16px;flex:0 0 auto;margin:0}
.settings-content[aria-busy=true]{opacity:.7;transition:opacity .2s}
.header-rows{display:grid;gap:10px}
.header-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:end}
.header-row .icon-button{margin-bottom:2px}
.form-field>.text-button{justify-self:start}
.drawer-body>.pill-row:first-child{margin-bottom:20px}
.drawer-body>.notice{margin:0 0 24px}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.account-grid>.span-all{grid-column:1/-1}
.codes-actions{margin-top:16px}
.settings-main .form-error,.account-grid .form-error{white-space:pre-line}
.account-col{display:grid;gap:16px;align-content:start;min-width:0}
.table-title strong>.label,.table-title .row-button>.label{margin-left:8px;vertical-align:1px}
.profile{display:flex;gap:14px;align-items:center;margin-bottom:22px}
.profile .avatar{width:40px;height:40px;font-size:13px}
.profile strong,.profile small{display:block}
.profile small{color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.id-row{display:inline-flex;align-items:center;gap:4px;max-width:100%}
.id-row code{font:12px var(--mono);overflow-wrap:anywhere;min-width:0}
.id-row .icon-button{width:26px;height:26px;padding:5px;flex:0 0 auto}
@media(max-width:1020px){
  .settings{grid-template-columns:172px minmax(0,1fr);gap:24px}
  .account-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .settings{grid-template-columns:1fr;gap:16px}
  .settings-nav{display:none}
  .settings-picker{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--field-line);border-radius:10px;padding:0 12px;color:var(--accent)}
  .settings-picker select{flex:1;border:0;background-color:transparent;box-shadow:none;padding:0 28px 0 0;font-size:16px;color:var(--text)}
  .settings-main>.page-head>div:first-child{display:none}
  .settings-main>.page-head:has(.actions:empty){display:none}
  .settings-grid,.settings-grid.three,.drawer .settings-grid,.drawer .settings-grid.three,.drawer .settings-grid.member-add{grid-template-columns:1fr}
  .panel-body{padding:16px 19px 19px}
  .header-row{grid-template-columns:1fr 1fr;padding-bottom:10px;border-bottom:1px solid var(--subtle)}
  .header-row .form-field:first-child{grid-column:1/-1}
  .panel-head{flex-wrap:wrap}
  .narrow-hide{display:none}
}
.client-list{display:grid;margin-top:10px}
.client-row{display:flex;gap:10px;align-items:center;padding:8px 0}
.client-row+.client-row{border-top:1px solid var(--line)}
.client-row>svg.icon{display:none}
.client-row>div{flex:1;min-width:0}
.client-row strong{display:block;font-size:13px}
.client-row small{font-size:12px;color:var(--dim)}
.break{overflow-wrap:anywhere}
/* --- end settings --- */
/* ===== One pattern for empty, failed and refused =====
   Symbol on the diamond, title, one sentence, at most one key, a second way as a text link. It always sits in a group:
   where the page puts it straight on the sheet, the state brings the group's surface itself. */
#main .empty{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--lift)}
#main .panel .empty,#main .table-wrap .empty,#main .sk-box .empty,#main .sk-side .empty{border:0;border-radius:0;background:none;box-shadow:none}
/* The page head already carries the main action: in the empty state below it the same action is a plain key, so one page has one main button. */
#main:has(.page-head .button.primary) .empty .button.primary{background:var(--button-bg);border-color:var(--border);color:var(--button-text);box-shadow:var(--control-shadow)}
#main:has(.page-head .button.primary) .empty .button.primary:hover{background:var(--button-hover);border-color:var(--button-hover-line)}
.empty .actions{align-items:center;gap:14px}
/* ===== Keys carry a word, not a word and a symbol =====
   A symbol alone is a key (.icon-button); the sidebar's sign-out row is a navigation row and keeps its symbol. */
.button>.icon{display:none}
.sidebar .sign-out>.icon{display:block}
/* A group's first sentence follows its title at one distance, whether it sits in the head or in the body */
.panel-head+.panel-body>p:first-child,.panel-head+.sk-box-body>p:first-child{margin-top:-10px}
.preview-facts .icon{display:none}
/* Share of buckets next to its mark, in lists and facts */
.group-share{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;vertical-align:middle}
.group-share .pill-row{margin-left:4px}
.fact-list .group-share .share-mark{height:12px}
/* ===== Narrow: one size for everything the thumb touches (40 px), one text size inside a row =====
   These rules stand last so they also reach the fields that set their own height further up. */
@media(max-width:760px){
  :root{--control:40px}
  .tab{height:36px}
  .person-selector .subject-select,.sk-version,.ov-person,.role-row select,.member-row select,.role-editor-row select{height:40px;min-height:40px}
  .button.small,td .button,.client-row .button,.member-row .button,.panel-head .actions .button,.source-actions>.text-button:not([target=_blank]),.table-tail button.text-button,.doc-more .text-button,.form-field>button.text-button{min-height:40px;font-size:14px}
  .secret-row .button,.secret-row code{min-height:40px}
  .role-row,.member-row,.check-row,.check-row small{font-size:16px}
  .check-row small{font-size:14px}
  .form-field>label,.form-fieldset legend{font-size:14px}
  /* Every segment filter wraps; none runs out of the window */
  .source-tab .toolbar .tab-bar{flex-wrap:wrap;overflow:visible}
  /* A message sits in the free middle of the top bar here too, clear of every key */
  .toast[popover]{inset:9px 60px auto 60px;margin:0 auto;width:fit-content;max-width:calc(100vw - 120px)}
  .toast{transform:translateY(-6px)}
  .drawer[open]~.toast[popover]{inset:12px 60px auto 60px}
}


/* ===== Words without symbols, also for text actions =====
   A text action is a word. The arrow stays where a link leaves the page, and on the way back. */
.text-button:not(.sk-back):not([target=_blank])>.icon,.related-link>span>.icon,.related-link>span>.color-icon,.source-kind>svg.icon,.form-hint>.icon,.path-item>.color-icon,.sk-row-link .sk-go{display:none}
/* Text actions that trigger something (download, open a dialog, remove, load more, add a row) are small keys. A word stays what leads elsewhere. */
.source-actions>.text-button:not([target=_blank]),.table-tail button.text-button,.doc-more .text-button,.form-field>button.text-button{min-height:28px;padding:0 10px;border:1px solid var(--border);border-radius:6px;background:var(--button-bg);box-shadow:var(--control-shadow);color:var(--button-text);font-size:12.5px;text-decoration:none}
.source-actions>.text-button:not([target=_blank]):hover,.table-tail button.text-button:hover,.doc-more .text-button:hover,.form-field>button.text-button:hover{background:var(--button-hover);border-color:var(--button-hover-line);text-decoration:none}
.source-actions>.text-button.danger{color:var(--red);background:var(--danger-bg);border-color:var(--red-line);box-shadow:none}
.source-actions{gap:8px;align-items:center}
.table-tail button.text-button>.icon,.doc-more .text-button>.icon{display:none}
/* A group's label in its head needs no room of its own, so title and first sentence keep one distance */
.panel-head>.label{margin-top:0;min-height:0}
/* ===== Narrow: every table is a list of blocks (table() in dom.js) =====
   First the row's name. Then one line per column: its name in a fixed column, the value behind it, so the same
   fact stands at the same place in every block. The row's action is the last line, a full key. Nothing is left out. */
@media(max-width:760px){
  .table-wrap.stack{overflow:visible}
  .table-wrap.stack table,.table-wrap.stack tbody{display:block}
  .table-wrap.stack thead{display:none}
  .table-wrap.stack tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr);row-gap:6px;padding:14px var(--pad)}
  .table-wrap.stack tr+tr{border-top:1px solid var(--line)}
  .table-wrap.stack td,.table-wrap.stack td.hide-narrow,.table-wrap.stack td.narrow-hide{display:block;position:relative;width:auto;min-width:0;height:auto;min-height:20px;padding:0 0 0 100px;border:0;font-size:14px;line-height:20px;text-align:left;white-space:normal;overflow-wrap:anywhere}
  .table-wrap.stack td[data-label]::before{content:attr(data-label);position:absolute;left:0;top:0;width:88px;font-size:12px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .table-wrap.stack td:first-child{padding-left:0;margin-bottom:2px}
  .table-wrap.stack td:first-child::before{content:none}
  /* A cell without a column name holds the row's action: last line, flush with the name */
  .table-wrap.stack td:not([data-label]):not(:first-child){padding-left:0;margin-top:4px}
  .table-wrap.stack td:not([data-label]) .button,.table-wrap.stack td:not([data-label]) .text-button{min-height:40px}
  .table-wrap.stack td:empty{display:none}
  .table-wrap.stack tr:has(>.chevron-cell),.table-wrap.stack tr:has(>.kb-go){padding-right:44px}
  .table-wrap.stack td.chevron-cell,.table-wrap.stack td.kb-go{position:absolute;right:var(--pad);top:50%;margin:-8px 0 0;padding:0;min-height:0;width:16px}
  .table-wrap.stack .table-title{min-width:0}
  .table-wrap.stack .table-title small{max-width:none;white-space:normal}
  .table-wrap.stack .pill-row{max-width:none}
  .table-wrap.stack .source-reason{max-width:none;min-width:0}
  .drawer-head h2{font-size:20px}
}
/* ===== Keys without exception =====
   What ends or leaves a form (Cancel, Back) is a key like every other action of that row, also where it is a link. */
.form-actions a.button.subtle{background:var(--button-bg);border-color:var(--border);box-shadow:var(--control-shadow);color:var(--button-text)}
.form-actions a.button.subtle:hover{background:var(--button-hover);border-color:var(--button-hover-line)}
/* A resource of a skill is a section of its group, set off by a rule, not a card inside it */
.sk-resource{padding:14px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}
.sk-resource:first-child{padding-top:0;border-top:0}
/* The copy key of an identifier always stands at the group's edge, whether the value is short or wraps */
.doc-copy code{flex:1}
/* ===== Narrow: the same type ladder as on wide screens =====
   Page title 22, dialog and drawer title 18, group title 16, a block's name 15 in 550, values and choices 14,
   names of fields and columns 13. Only the text typed into a field stays 16 (smaller makes iOS zoom in).
   One indent (--pad) for everything inside a group, one height (40 px) for everything that triggers something. */
@media(max-width:760px){
  h1{font-size:22px}
  .modal-head h2,.drawer-head h2{font-size:18px}
  .panel-head h2,.sk-box-head h2,.section-header h2,.rule-panel h2,.sk-today h2,.group-card h2{font-size:16px}
  .table-wrap.stack td{font-size:14px}
  .table-wrap.stack td:first-child,.table-wrap.stack td:first-child .row-button,.table-wrap.stack td:first-child strong{font-size:15px;font-weight:550}
  .table-wrap.stack td .label,.table-wrap.stack td .num,.table-wrap.stack td .group-share{font-size:14px}
  .table-wrap.stack .table-title small{font-size:13px;font-weight:400}
  .role-row,.member-row,.check-row,.check-row strong,.path-item{font-size:14px}
  .check-row small,.member-row small{font-size:13px}
  .form-field>label,.form-fieldset legend,.form-field>span,.fact-list dt,.drawer-section>h3,.small-heading,.sk-label{font-size:13px}
  .fact-list dd{font-size:14px}
  /* One indent inside every group */
  .panel-body{padding:12px var(--pad) var(--pad)}
  .sk-today,.sk-challenge{padding:var(--pad)}
  .source-body,.doc-facts{padding-inline:var(--pad)}
  /* A group's title stands on the middle of the key next to it */
  .panel-head:has(>.actions),.panel-head:has(>.button){align-items:center}
  .panel-head>.actions,.panel-head>.icon-button,.panel-head>.button{margin-top:0}
  /* Everything that triggers something is 40 px high */
  .source-actions>.text-button:not([target=_blank]),.table-tail button.text-button,.doc-more .text-button,.form-field>button.text-button,.form-actions .button,.page-head .button,.drawer-footer .button,.empty .button{min-height:40px;font-size:14px}
  .source-actions>.text-button:not([target=_blank]),.table-tail button.text-button,.doc-more .text-button,.form-field>button.text-button{padding:0 14px;border-radius:var(--r-control)}
  /* No hover tone that stays behind after a tap */
  .check-row:hover{background:transparent}
  .table-tail{flex-wrap:wrap;gap:4px 12px;padding-block:10px}
  /* A column's name may take two lines in its 88 px instead of being cut; the row grows with it */
  .table-wrap.stack td[data-label]:not(:first-child){display:flow-root;padding-left:100px}
  .table-wrap.stack td[data-label]:not(:first-child)::before{position:static;float:left;width:88px;margin-left:-100px;font-size:13px;line-height:20px;white-space:normal;overflow:visible;overflow-wrap:break-word;text-overflow:clip}
  /* Access: each bucket is a block with its highest role and the way it comes; the four marks are the wide view's */
  .table-wrap.stack td.matrix-cell{display:none}
  .table-wrap.stack tr.selected{background:var(--raised)}
  .table-wrap.stack tr.selected td,.table-wrap.stack tr.click-row:hover td{background:none}
  .access-matrix .via-cell{width:auto}
}
/* ===== Last details =====
   Forms in the settings keep the form width of every other form; tables may use the page. */
.settings-content>.panel:not(:has(table)),.settings-content>.form{max-width:760px}
/* The version in view is a marked row inside the group's padding: it does not run to the group's edge and brings no frame */
.sk-row.current{margin:0;padding:10px 12px;border-radius:8px}
@media(max-width:760px){
  /* A block's value wraps inside the block, also a status; its mark stays on the first line */
  .table-wrap.stack td .label{white-space:normal;align-items:flex-start;text-align:left}
  .table-wrap.stack td .label .dot{margin-top:7px}
  /* The arrow of a block stands on the middle of the whole block */
  .table-wrap.stack tr>td.chevron-cell:not([data-label]):not(:first-child),.table-wrap.stack tr>td.kb-go:not([data-label]):not(:first-child){position:absolute;right:var(--pad);top:50%;margin:-8px 0 0;padding:0;min-height:0;width:16px;line-height:0}
  /* One size for every select: 16 px like typed text, so no browser zooms in when it opens */
  :root select,.person-selector .subject-select,.person-selector select,.sk-version,.ov-person select,.member-row select,.role-row select,.role-editor-row select,.settings-picker select,.form-field select{font-size:16px}
  /* Details of a skill take the value step of every other group */
  .sk-side .fact-list dd{font-size:14px}
  /* Access: what the four roles mean, in the block grid under the buckets */
  .ac-roles{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:14px var(--pad) 16px}
  .ac-roles>div{display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:12px;align-items:baseline}
  .ac-roles dt{font-size:13px;font-weight:500;color:var(--dim)}
  .ac-roles dd{margin:0;font-size:14px;line-height:20px;color:var(--text-2)}
}


/* ===== Body and anchors (Fabian 13.11.2026: "noch ein bisschen flach, spartanisch") =====
   The frame stood; what read as flat were the rows and the controls. Keys and fields get a body, a status is a mark with a
   form instead of colored text, rows get an anchor on the left, groups a foot zone, people a stronger tone. No ramp of color, no
   halo, and --ok (cobalt since 15.11.2026, mint before) and coral keep their one meaning each. */
:root{--control-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 1px 2px rgba(0,0,0,.5);--primary-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 -1px 0 rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.5);
  --field-shadow:inset 0 1px 2px rgba(0,0,0,.4);--key-edge:inset 0 -2px 0 rgba(0,0,0,.4);--foot:rgba(0,0,0,.2);--chip:rgba(255,255,255,.06)}
:root[data-theme="light"]{--control-shadow:inset 0 -1px 0 rgba(17,24,39,.07),0 1px 2px rgba(17,24,39,.1);--primary-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 1px 2px rgba(17,24,39,.3);
  --field-shadow:inset 0 1px 2px rgba(17,24,39,.07);--key-edge:inset 0 -2px 0 rgba(17,24,39,.1);--foot:rgba(17,24,39,.028);--chip:rgba(17,24,39,.06)}
/* Fields are let into the plane */
/* :where keeps the weight at zero, so a field inside a drawn box (search, person, palette) can still switch it off */
:where(input:not([type=checkbox]):not([type=radio]),select,textarea){box-shadow:var(--field-shadow)}
.table-search{box-shadow:var(--field-shadow)}
.table-search input,.command-top input,.ov-person select,.settings-picker select{box-shadow:none}
.table-search:focus-within{box-shadow:var(--field-shadow),0 0 0 3px var(--focus-ring)}
.table-search input:focus-visible,.command-top input:focus-visible{box-shadow:none}
/* A key hint is a key: it stands on a darker lower edge */
kbd{box-shadow:inset 0 0 0 1px var(--line),var(--key-edge);height:21px;padding-bottom:2px}
/* The action of a row shows its whole body when the row or the key is touched; at rest it is an outline, so six in a column stay quiet */
td .button.small:not(.primary):not(.danger){background:transparent;box-shadow:none;border-color:var(--line)}
tr:hover td .button.small:not(.primary):not(.danger),td .button.small:not(.primary):not(.danger):focus-visible{background:var(--button-bg);box-shadow:var(--control-shadow);border-color:var(--border)}
/* Status: a diamond with a form. Filled --ok (cobalt) is current or allowed, filled coral failed, half filled is under way, an outline is not yet or no longer.
   The word beside it is neutral; only a failure keeps its coral word. */
.label{gap:8px;color:var(--text-2)}
.label.green{color:var(--text-2)}
.label .dot{width:9px;height:9px;border-radius:2px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--dim)}
.label.green .dot{background:var(--ok);box-shadow:none}
.label.red .dot{background:var(--no);box-shadow:none}
.label.syncing .dot{background:transparent;box-shadow:inset 0 0 0 1.5px var(--muted),inset 4.5px 0 0 var(--muted)}
/* Rows have an anchor on the left: the source's logo, a person, or the sign of the thing, on a small neutral tile */
.table-title>svg.icon{display:block;width:24px;height:24px;padding:5px;border-radius:6px;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line),var(--edge);color:var(--muted)}
.table-title>.color-icon{display:inline-grid;width:24px;height:24px;border-radius:6px}
.table-title>.color-icon .icon{width:14px;height:14px;color:var(--muted)}
.table-title>.app-icon{width:24px;height:24px;border-radius:6px}
.source-kind>.app-icon{width:20px;height:20px;border-radius:5px}
/* Groups end in a foot zone one tone down */
.table-tail{background:var(--foot)}
.ov-foot{margin-top:10px;padding:0 var(--pad);min-height:38px;display:flex;align-items:center;background:var(--foot);border-top:1px solid var(--line)}
.ov-list{padding-bottom:8px}
/* Counts are chips */
.section-header .count,.sk-box-head .count,.doc-count{display:inline-grid;place-items:center;min-width:20px;height:19px;padding:0 6px;border-radius:5px;background:var(--chip);color:var(--muted);font:500 11.5px/1 var(--font);font-variant-numeric:tabular-nums;letter-spacing:0}
.nav-badge{display:inline-grid;place-items:center;min-width:20px;height:18px;padding:0 5px;border-radius:5px;background:var(--chip);color:var(--muted);font-size:11.5px;font-weight:500}
.nav-item.active .nav-badge{color:var(--text-2)}
/* The current page is a cobalt tint on the frame, no outline (rehale.ai, Lucas 14.11.2026) */
.nav-item.active{box-shadow:none}
/* People: a size up and a stronger tone; in a stack they overlap and keep a ring of their ground */
.avatar{width:28px;height:28px;font-size:11px;background:color-mix(in srgb,var(--c,#888) 28%,var(--raised));color:color-mix(in srgb,var(--c,#888) 60%,#fff)}
:root[data-theme="light"] .avatar{background:color-mix(in srgb,var(--c,#888) 42%,#fff);color:color-mix(in srgb,var(--c,#888) 28%,#111827)}
.avatar-stack .avatar+.avatar{margin-left:-7px}
.avatar-stack .avatar{box-shadow:0 0 0 2px var(--surface)}
.activity-item .avatar,.ov-person .avatar,.group-members .avatar{width:22px;height:22px;font-size:9.5px}
.graph-node .avatar,.path-item .avatar{width:20px;height:20px;font-size:9.5px}
.account .avatar{width:26px;height:26px;font-size:10.5px}
/* Empty, failed, denied: the sign sits on one key tile (since 15.11.2026; before, the BrainPlane logo's two planes) */
.empty{padding-top:124px}
.empty::before{top:38px;width:44px;height:44px;margin-left:-22px;border-radius:12px;transform:none;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line-strong),var(--edge)}
.empty>.icon{top:52px;margin-left:-8px;width:16px;height:16px;z-index:1;color:var(--text)}
.empty.denied::before{background:var(--no-bg);box-shadow:inset 0 0 0 1px var(--no-line)}
.command-dialog .empty{padding-top:116px}
/* Search: the row Enter opens carries the key */
.command-result:focus-visible::after,.command-dialog:has(.command-top input:focus) .command-result:first-child::after{content:'↵';display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:8px;border-radius:5px;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line),var(--key-edge);color:var(--muted);font:500 11px/1 var(--font)}

/* An upload has no logo: it gets the neutral tile, so the column keeps one left edge */
.source-kind>svg.icon{display:block;width:20px;height:20px;padding:4px;border-radius:5px;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line),var(--edge);color:var(--muted)}
.source-kind .muted{font-variant-numeric:tabular-nums}
/* Overview: a group has a head zone like a table has its head, and every row starts with a sign */
.panel-head h2 .count{display:inline-grid;place-items:center;min-width:20px;height:19px;margin-left:8px;padding:0 6px;border-radius:5px;background:var(--chip);color:var(--muted);font:500 11.5px/1 var(--font);font-variant-numeric:tabular-nums;letter-spacing:0;vertical-align:2px}
@media(min-width:761px){
  .ov-grid .panel-head{min-height:44px;padding:0 var(--pad);align-items:center;background:var(--th-bg);border-bottom:1px solid var(--line)}
  .ov-grid .panel-head>.text-button,.ov-grid .panel-head>.label{margin-top:0}
  .ov-who .panel-head{padding-bottom:0}
  .ov-person{margin-top:14px}
}
.ov-row>.color-icon{width:28px;height:28px}
.ov-row>.color-icon .icon{width:15px;height:15px;color:var(--muted)}
/* Activity: one anchor per row. The person, and on the avatar a small plate with the sign of the change. The sentence wraps, it is never cut. */
.activity-who{position:relative;flex:0 0 auto;display:inline-grid;margin-right:4px}
.activity-item .activity-who .avatar{width:26px;height:26px;font-size:10.5px}
.activity-sign{position:absolute;right:-6px;bottom:-4px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:var(--surface);box-shadow:0 0 0 1px var(--line-strong);color:var(--text-2)}
.activity-sign .icon{width:10px;height:10px;stroke-width:2.2}
.activity-item{padding:7px 0;gap:12px}
.activity-item p{white-space:normal;overflow:visible;text-overflow:clip}
.timeline .activity-item{padding:7px 0}
.activity-target .chip{margin-left:2px;padding:1px 6px;border-radius:5px;background:var(--chip);color:var(--text-2);font-size:12px;font-weight:500}
/* Search: rows start on a tile, the kind of the hit is a chip */
.command-result .icon{width:22px;height:22px;padding:4px;border-radius:6px;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line),var(--edge);color:var(--muted)}
.command-result small{height:19px;padding:0 6px;border-radius:5px;background:var(--chip);font-size:11.5px;font-weight:500}
/* The one main action of a page carries its sign; every other key stays a word */
.page-head .actions .button.primary>.icon{display:block;width:14px;height:14px;margin-left:-2px}
@media(max-width:760px){
  /* Narrow: the groups of the overview dissolve into sections, so there is no foot zone and no tile above a bucket's name */
  .ov-foot{background:transparent;border-top:0;min-height:0;padding:10px 0 0}
  .ov-knowledge .ov-row>.color-icon{display:none}
}
/* Drawers: a bucket row starts on its sign like the bucket rows of the pages; a chosen member stands on a surface */
.role-row>.color-icon{display:inline-grid;width:24px;height:24px;border-radius:6px}
.role-row>.color-icon .icon{width:14px;height:14px;color:var(--muted)}
.role-row:has(>.color-icon){grid-template-columns:24px 1fr minmax(120px,auto)}
/* 22 px avatars overlap less, so the first initials stay readable */
.group-members .avatar+.avatar{margin-left:-5px}

/* ===== One build for every group (review of 13.11.2026: the new parts were only half carried through) =====
   Every group with a title has the head zone of a table: one tone up, a line below, the count as a chip at the title. */
.panel>.panel-head,.sk-box>.sk-box-head{min-height:44px;padding:9px var(--pad);align-items:center;background:var(--th-bg);border-bottom:1px solid var(--line)}
.panel>.panel-head>.text-button,.panel>.panel-head>.label,.panel>.panel-head>.icon-button,.panel>.panel-head>.actions,.panel>.panel-head>.button{margin-top:0}
.panel>.panel-head p{margin-top:1px}
.panel-head h2{display:flex;align-items:center}
.panel-head h2 .count{vertical-align:0}
.panel-head+.panel-body>p:first-child,.panel-head+.sk-box-body>p:first-child{margin-top:0}
.panel>.panel-head+.table-wrap{margin-top:0;border-top:0}
.ov-who .panel-head{padding-bottom:9px}
.timeline{padding:0}
.timeline .panel-head{padding:9px var(--pad)}
.timeline .activity-list{padding:6px var(--pad) 8px}
.source-danger .panel-head+.source-danger-row{margin-top:0}
.sk-box>.sk-box-head{justify-content:flex-start;gap:8px}
.sk-box>.sk-box-head>:not(h2):not(.count){margin-left:auto}
.sk-box-head .count{margin:0}
@media(max-width:760px){
  /* Narrow: the groups of the overview are sections without a frame, so their heads carry no zone */
  #main .ov-grid .panel-head{min-height:0;background:none;border:0}
}
/* Status marks are for states only. In progress is half filled, wherever it stands; a plain label is a word without a mark. */
.label.blue .dot{background:transparent;box-shadow:inset 0 0 0 1.5px var(--muted),inset 4.5px 0 0 var(--muted)}
.label.plain{gap:0}
.label.plain .dot{display:none}
/* The head of a source: the state has its mark, the sentence beside it is neutral. A failure keeps its word in coral. */
.source-meta .source-tone-good{color:var(--text-2)}
.source-stat.source-tone-bad .stat-top{color:var(--no)}
/* Tabs count in chips, on every page */
.tab .chip-count{margin-left:6px}
/* A skill row starts on the skill sign like every other list */
.sk-name .table-title>svg.icon{flex:0 0 auto}
/* Search: sections with a head; the row Enter opens is the first result, not the first child */
.command-head{margin:0;padding:10px 10px 4px;font-size:12px;font-weight:500;color:var(--dim)}
.command-head:first-child{padding-top:4px}
.command-result mark{background:transparent;color:var(--text);font-weight:600;box-shadow:inset 0 -1px 0 var(--muted)}
.command-result>.app-icon{width:22px;height:22px;border-radius:6px;flex:0 0 auto}
.command-result>.app-icon>img{width:64%;height:64%}
.command-dialog:has(.command-top input:focus) .command-result:first-child{background:transparent;color:var(--text-2)}
.command-dialog:has(.command-top input:focus) .command-result:first-child::after{content:none}
.command-dialog:has(.command-top input:focus) .command-result:nth-child(1 of .command-result){background:var(--hover);color:var(--text)}
.command-dialog:has(.command-top input:focus) .command-result:nth-child(1 of .command-result)::after{content:'↵';display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:8px;border-radius:5px;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line),var(--key-edge);color:var(--muted);font:500 11px/1 var(--font)}
.command-dialog:has(.command-top input:focus) .command-result:nth-child(1 of .command-result):not(:has(small))::after,.command-result:focus-visible:not(:has(small))::after{margin-left:auto}
/* File field: a drawn key and a sentence instead of the browser's own control */
.file-pick{position:relative;display:flex;align-items:center;gap:12px;min-height:var(--control)}
.file-pick .file-native{position:absolute;left:0;top:0;width:1px;height:1px;min-height:0;padding:0;border:0;opacity:0;box-shadow:none}
.file-pick .button{cursor:pointer}
.file-pick .file-native:focus-visible+.button{outline:2px solid var(--focus);outline-offset:2px}
.file-pick .file-names{font-size:13px;color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){
  /* Narrow: the bucket filter stays one line and scrolls sideways; a segmented control that wraps is no longer one */
  .space-grid.knowledge-cards{display:flex;flex-wrap:nowrap;width:auto;max-width:100%;overflow-x:auto;scrollbar-width:none}
  .space-grid.knowledge-cards::-webkit-scrollbar{display:none}
  .knowledge-cards .space-card{flex:0 0 auto}
  /* Narrow overview: buckets are rows with their sign, like the sources above them */
  .ov-knowledge .ov-list{display:block}
  .ov-knowledge .ov-row{flex-direction:row;align-items:center;gap:12px;min-height:48px;padding:9px 0}
  .ov-knowledge .ov-row>.color-icon{display:inline-grid}
  .ov-knowledge .ov-name small{display:none}
}
@media(max-width:760px){
  /* Narrow: the time stands under the sentence on the sentence's left edge (avatar 26 + 4 + gap 12) */
  .timeline .activity-item .time,.ov-activity .activity-item .time{margin-left:42px}
}
/* A linked entry (evidence, related) starts on its sign like a row of a list */
.related-link>span{display:flex;align-items:center;gap:10px;min-width:0}
.related-link>span>svg.icon{display:block;flex:0 0 auto;width:22px;height:22px;padding:4px;border-radius:6px;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line),var(--edge);color:var(--muted)}
.related-link>span>.color-icon{display:inline-grid}

/* ===== Last gaps (third review, 13.11.2026) ===== */
/* Narrow overview: the same group surfaces and head zones as on a wide screen, and as on every other narrow page */
@media(max-width:760px){
  .ov-grid,.ov-grid+.ov-grid{gap:16px;margin-bottom:16px}
  #main .ov-grid .panel{border:1px solid var(--line);background:var(--surface);box-shadow:var(--lift);border-radius:var(--radius);overflow:hidden}
  #main .ov-grid .panel-head{min-height:44px;padding:9px var(--pad);background:var(--th-bg);border-bottom:1px solid var(--line)}
  #main .ov-grid .loading.rows{padding-inline:var(--pad)}
  .ov-list{margin:4px 0 0;padding:0 var(--pad) 6px}
  .ov-row,.ov-knowledge .ov-row{padding:0;min-height:48px}
  #main .ov-grid .ov-list>li:last-child>.ov-row,#main .ov-sources .ov-list>li:nth-child(4)>.ov-row{padding-bottom:0;min-height:48px}
  .ov-person{margin:14px var(--pad) 0}
  .ov-access-body{padding-inline:var(--pad)}
  /* Who sees what: rows as on a wide screen, the role stays readable */
  .ov-access{display:grid;gap:1px;border-radius:8px;overflow:hidden}
  .ov-access li{padding:0 12px;min-height:40px;border-radius:0;background:transparent;font-size:14px}
  .ov-access li.in{background:var(--ok-bg)}
  .ov-access .ov-role{display:inline}
  .ov-bucket{flex:1}
  .ov-foot{margin-top:12px;min-height:44px;padding:0 var(--pad);background:var(--foot);border-top:1px solid var(--line)}
  .ov-activity .activity-list{padding:4px var(--pad) 8px}
}
/* The explanation beside the access map is a group like the others: its title stands in the head zone */
.ac-why>h2:first-child,.ac-why>.ac-why-head:first-child{display:flex;align-items:center;gap:10px;min-height:44px;margin:calc(-1*var(--pad)) calc(-1*var(--pad)) 14px;padding:9px var(--pad);background:var(--th-bg);border-bottom:1px solid var(--line)}
.ac-why>h2:first-child,.ac-why>.ac-why-head:first-child h2{margin-bottom:0}
/* A failed count: the coral mark and the coral word, the number stays a number */
.source-stat.source-tone-bad .stat-value{color:inherit}
.source-stat .stat-name{display:inline-flex;align-items:center;gap:8px}
.source-stat.source-tone-bad .stat-name::before{content:'';flex:0 0 auto;width:9px;height:9px;border-radius:2px;transform:rotate(45deg);background:var(--no)}
/* A resource of a skill starts on a file tile */
.sk-file .sk-row-main>.icon{width:24px;height:24px;padding:5px;border-radius:6px;background:var(--raised);box-shadow:inset 0 0 0 1px var(--line),var(--edge);color:var(--muted)}
/* One of several: the chosen option of a radio group stands on its own surface */
.check-row:has(>input[type=radio]){padding:10px 12px;margin:0;border-radius:8px;box-shadow:inset 0 0 0 1px transparent}
.check-row:has(>input[type=radio]:checked){background:var(--raised);box-shadow:inset 0 0 0 1px var(--line-strong),var(--edge)}
.check-row:has(>input[type=radio])+.check-row:has(>input[type=radio]){margin-top:4px}
/* Rows that choose a person or a group carry the avatars */
.member-checks .check-row{align-items:center}
.member-checks .check-row>.avatar{width:26px;height:26px;font-size:10.5px;flex:0 0 auto}
.member-checks .check-row>.avatar-stack{margin-left:auto;flex:0 0 auto}
.member-checks .check-row>.avatar-stack .avatar{width:22px;height:22px;font-size:9.5px;box-shadow:0 0 0 2px var(--float)}
.member-checks .check-row>.avatar-stack .avatar+.avatar{margin-left:-5px}
.drawer-section h3 .chip-count{margin-left:6px;vertical-align:1px}
/* A state that fills a page has room: the mark does not sit under the edge of a short box */
#main>.empty,#main>.panel>.empty:only-child,.settings-content>.panel>.empty:only-child{--es:44px;min-height:320px;padding-top:calc(124px + var(--es));padding-bottom:56px}
.empty::before{top:calc(38px + var(--es,0px))}
.empty>.icon{top:calc(52px + var(--es,0px))}
/* A section's state stands on the middle line of its title */
.settings-main>.page-head{align-items:center}
/* Sign-in: a card of its own on the sheet tone, the other ways in stand in its foot zone */
.auth-shell,#main.auth-shell{background:var(--bg)}
.auth-card{background:var(--float);box-shadow:var(--float-shadow);overflow:hidden}
.auth-zone{display:grid;gap:12px;justify-items:center;margin:24px -28px -26px;padding:18px 28px 20px;background:var(--foot);border-top:1px solid var(--line)}
.auth-zone .button{width:100%;margin:0}
.auth-zone .text-button{min-height:24px}

/* ===== Fabian 13.11.2026: hovering on Access felt buggy ===== */
/* Nodes and paths change tone in one movement; a stepped-back node still answers the pointer */
.graph-node{transition:background .14s var(--ease-out),box-shadow .14s var(--ease-out),color .14s var(--ease-out)}
.access-graph.focused button.graph-node:not(.lit):hover,.access-graph.focused a.graph-node:not(.lit):hover{background:var(--hover);color:var(--text)}
.graph-node.group.direct{cursor:default}
.graph-node.group.lit,.graph-node.person.lit{background:var(--hover)}

/* The knowledge entry between its two planes (13.11.2026). Under the title one line: where it comes from, its bucket, who reaches
   it, with the overlap mark. The page is one column of groups, no side column. */
.ov-x table{table-layout:fixed}
.ov-x th:nth-child(1){width:34%}
.ov-x th.ov-x-mid{width:19%}
.ov-x th.ov-x-mid,.ov-x td.ov-x-bucket{background:var(--raised)}
.ov-x td.ov-x-bucket>span{display:inline-flex;align-items:center;gap:10px;min-width:0}
.ov-x-none,.ov-x-people{color:var(--muted)}
.ov-x .ov-x-who .pill-row{align-items:center;max-width:none;gap:6px 8px}
.ov-x a.pill:hover{background:var(--hover);color:var(--text)}
.ov-x-people{font-size:13px;white-space:nowrap}
@media(max-width:760px){
  .table-wrap.stack.ov-x td.ov-x-bucket{order:-1;padding-left:0;margin-bottom:2px;background:none;font-size:15px;font-weight:550}
  .table-wrap.stack.ov-x td.ov-x-bucket .row-button{font-size:15px;font-weight:550}
  .table-wrap.stack.ov-x td.ov-x-src{display:flow-root;padding-left:100px;margin-bottom:0;font-size:14px;font-weight:400}
  .table-wrap.stack.ov-x td.ov-x-src::before{content:attr(data-label);position:static;float:left;width:88px;margin-left:-100px;font-size:13px;line-height:20px;color:var(--dim)}
}
.ov-xc th:nth-child(1){width:46%}
.ov-xc th.ov-x-mid{width:15%}
.ov-xc td{padding-block:0;height:var(--row)}
.ov-xc th.ov-x-mid,.ov-xc td.ov-x-bucket{background:var(--plane)}
.ov-xc td.ov-x-bucket .row-button{font-weight:550}
.ov-c-sources{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;min-width:0;padding-block:8px}
.ov-c-source{display:inline-flex;align-items:center;gap:7px;min-width:0;color:inherit;border-radius:6px;white-space:nowrap}
.ov-c-source .app-icon{width:22px;height:22px;border-radius:6px}
.ov-c-source .app-icon .icon{width:13px;height:13px}
.ov-c-name{font-weight:500;color:var(--text)}
.ov-c-source:hover .ov-c-name{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.ov-c-source .label{gap:6px;margin-left:1px}
.ov-c-reach{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0;padding-block:8px}
.ov-c-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:16px}
.ov-c-mark .share-mark{height:12px}
.ov-c-share{color:var(--text);font-weight:500;margin-right:4px;white-space:nowrap}
.ov-xc a.pill:hover{background:var(--hover);color:var(--text)}
@media(max-width:760px){
  .table-wrap.stack.ov-xc td{height:auto;padding-block:0}
  .table-wrap.stack.ov-xc td.ov-x-bucket{background:var(--plane);margin:-14px calc(-1 * var(--pad)) 6px;padding:10px var(--pad)}
  .table-wrap.stack.ov-xc tr:first-child td.ov-x-bucket{border-radius:calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0}
  .ov-c-sources,.ov-c-reach{padding-block:0}
  .ov-c-sources{flex-direction:column;align-items:flex-start;gap:6px}
  .ov-c-source{white-space:normal}
  .ov-c-source{flex-wrap:wrap}
}
.plane-strip{margin-bottom:0}
.plane-strip th:nth-child(1){width:46%}
.plane-strip th.ov-x-mid{width:22%}
.plane-strip .loading{padding:0;width:120px}
.plane-strip .ov-c-source .label{margin-left:4px}
.doc-c{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;max-width:760px}
.doc-c>.page-head{margin-bottom:0}
.doc-c>.notice{margin:0}
.doc-c .doc-facts{padding:8px 0 0}
.doc-c .doc-c-ids{margin-top:-4px}
@media(max-width:760px){
  .doc-c .source-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .doc-c .source-actions>*{justify-content:center}
  .plane-strip.table-wrap.stack td.ov-x-src{padding-left:100px}
  .plane-strip .ov-c-source{display:flex;flex-wrap:wrap;gap:2px 8px}
  .plane-strip .ov-c-source .app-icon{display:none}
  .plane-strip .ov-c-source .label{margin-left:0}
}
/* The entry's text as a record. One group: the document's own title and opening lines lead, then one row per section, its heading
   in a fixed label column. Sections are clusters of the text, not fields: a hairline, inset like the one between two files, parts
   them. The name stays in sight while a long section scrolls. List marks hang in the gap before the content column. */
.doc-record{overflow:clip}
.doc-reading{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 14px}
.doc-type{color:var(--text);font-weight:500}
.doc-lead{padding:16px var(--pad)}
.doc-lead>h3{font-size:16px;font-weight:600;letter-spacing:-.15px;line-height:1.35;color:var(--text)}
.doc-lead>h3+.doc-body{margin-top:4px}
.doc-lead>.doc-body{max-width:72ch}
.doc-lead>.doc-figure:last-child{margin-bottom:0}
.doc-part{display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:24px;margin:0 var(--pad);padding:14px 0}
.doc-lead+.doc-part,.doc-part+.doc-part{border-top:1px solid var(--line)}
.doc-part-name{position:sticky;top:60px;align-self:start;padding-top:1px;font-size:13px;font-weight:600;line-height:1.6;color:var(--text);overflow-wrap:anywhere}
.doc-record .doc-body{max-width:none;font-size:14px;line-height:1.65}
.doc-record .doc-body>*+*{margin-top:10px}
.doc-record .doc-body h4{font-size:13.5px;margin-top:18px}
.doc-record .doc-body>:first-child{margin-top:0}
.doc-record .doc-body :is(ul,ol){padding-left:17px}
@media (min-width:761px){
  .doc-part .doc-body>:is(ul,ol){padding-left:0}
}
@media (max-width:760px){
  .doc-part{grid-template-columns:minmax(0,1fr);row-gap:6px;padding:14px 0}
  .doc-part-name{position:static;font-size:14px}
  .doc-reading{justify-content:flex-start}
}

/* Skill and source in the build of a knowledge entry (13.11.2026): one column of groups under the line "from, bucket, reached by".
   Skill: the instructions are a record like an entry's text; the versions are rows, each with the results reported for it. */
.sk-c{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;max-width:760px}
.sk-c>.sk-back{margin-bottom:-8px;justify-self:start}
.sk-c>.page-head{margin-bottom:0}
.sk-c>.notice{margin:0}
.sk-c-panel .panel-head{align-items:baseline}
.sk-c-body{padding:8px var(--pad) var(--pad)}
.sk-c-body:has(>div>.sk-vrows){padding:8px 0}
.sk-c-body .form-hint{padding:6px var(--pad) 4px}
.sk-c .sk-row{border-top:0;padding:8px 0}
.sk-c .sk-row:first-child{padding-top:0}
.sk-c .sk-row:last-child{padding-bottom:0}
.sk-c>.sk-ids{margin-top:-4px}
.sk-c-more{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:8px;padding-inline:var(--pad)}
.sk-c-more .form-hint{padding:0}
.sk-c-body>div>.sk-c-more{padding-inline:0}
.sk-c-body:has(>div>.sk-vrows) .sk-c-more{padding-inline:var(--pad)}
.sk-vrows{list-style:none;margin:0;padding:0;display:grid}
.sk-vrow{display:grid;grid-template-columns:148px minmax(0,1fr) auto;align-items:center;column-gap:8px;min-height:var(--row);padding:0 var(--pad)}
.sk-vrow.current{background:var(--raised)}
.sk-vrow-main{display:grid;grid-template-columns:84px 56px;align-items:center;column-gap:8px;min-width:0;min-height:var(--row);color:inherit;white-space:nowrap}
.sk-vstate{display:inline-flex;align-items:center;min-height:28px;font-size:13px;font-weight:550;color:var(--text);white-space:nowrap}
.sk-vrow .sk-row-actions:empty{display:none}
.sk-vnotes{grid-column:1/-1;display:grid;gap:4px;padding:0 0 9px;margin-top:-3px}
.sk-vnote{display:flex;align-items:baseline;gap:10px;margin:0;font-size:13px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.sk-vnote .sk-res{align-self:center}
.sk-vnote.solo{padding-left:18px}
.sk-vnotes{padding-left:156px}
.sk-vnote-what{color:var(--text-2);font-weight:500}
.sk-vnote small{margin-left:2px;color:var(--dim);white-space:nowrap}
.sk-vloose{display:grid;gap:4px;padding:10px var(--pad) 2px}
.sk-vloose .sk-label{margin:0 0 2px}
.sk-vrow-main strong{font-weight:550;color:var(--text)}
.sk-vrow-main small{color:var(--muted)}
a.sk-vrow-main:hover strong{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.sk-vrow-results{display:inline-flex;align-items:center;gap:10px;min-width:0}
.sk-vrow-results .sk-band-results{margin-top:0}
.sk-vrow-results small{color:var(--muted);white-space:nowrap}
.sk-vrow .sk-row-actions{gap:8px;align-items:center;flex-wrap:nowrap;justify-content:flex-end}
@media(max-width:760px){
  .sk-vrow{grid-template-columns:minmax(0,1fr) auto;row-gap:2px;padding:10px var(--pad)}
  .sk-vrow-results{grid-column:1;grid-row:2}
  .sk-vrow .sk-row-actions{grid-column:2;grid-row:1/span 2}
  .sk-vrow-main strong{font-size:15px}
  .sk-vstate{min-height:40px;font-size:14px}
  .sk-vnotes{padding-left:0}
}
.sk-band-results{display:flex;align-items:center;gap:5px;min-height:14px;margin-top:5px}
.sk-res{width:8px;height:8px;transform:rotate(45deg);border-radius:1.5px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--dim);flex:0 0 auto}
.sk-res.good{background:var(--ok);box-shadow:none}
.sk-res.info{box-shadow:inset 0 0 0 1.5px var(--muted),inset 4px 0 0 var(--muted)}
.sk-res.bad{background:var(--no);box-shadow:none}
.sk-res-none{font-size:12px;color:var(--dim)}
@media(max-width:760px){
  .sk-c .sk-c-word{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
.doc-record .sk-prose{font-size:14px;line-height:1.65}
.doc-record .sk-prose>*+*{margin-top:10px}
.doc-record .sk-prose :is(ul,ol){padding-left:17px}
.doc-record .sk-prose h4{font-size:13.5px}
.doc-record .sk-prose>*+h4{margin-top:18px}
.doc-record .sk-checks li{font-size:14px;line-height:1.65}
.doc-part+.doc-lead{margin:0 var(--pad);padding:14px 0;border-top:1px solid var(--line)}
@media (min-width:761px){
  .doc-part .sk-prose>:is(ul,ol){padding-left:0}
}
/* Source: the counts keep one name column, so what each count means starts on one edge. */
.source-c{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;max-width:760px}
.source-c .stat-grid{margin-bottom:0}
.source-c .fact-list{grid-template-columns:calc((100% + 34px) * .46 - 1px) calc((100% + 34px) * .22) minmax(0,1fr);gap:14px 0}
.source-c .fact-list>div{padding-right:16px;min-width:0}
#main.source-page>*{max-width:760px}
#main.source-page>.plane-strip{margin:-4px 0 20px}
#main.source-page .source-settings{max-width:none}
#main.source-page .source-stats .stat{display:grid;grid-template-columns:28px 176px minmax(0,1fr) auto;column-gap:10px}
#main.source-page .source-stats .stat-line{min-width:0}
#main.source-page:has(.source-settings) .source-head .button.primary{background:var(--button-bg);border-color:var(--border);color:var(--button-text);box-shadow:var(--control-shadow)}
#main.source-page:has(.source-settings) .source-head .button.primary:hover{background:var(--button-hover);border-color:var(--button-hover-line)}
@media(max-width:760px){
  .source-c .fact-list>div{padding-right:0}
  .source-c .fact-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
  .source-c .source-scopes .source-ext{display:inline}
  .source-c .source-scopes .source-ext .icon{display:inline-block;vertical-align:-1px;margin-left:6px}
}

/* Setting up a connector type (13.11.2026): three steps in the order they are done, each headed by the step mark of the source setup. */
.setup-step>h3{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:550;color:var(--text);margin-bottom:10px}
.setup-step.done .source-step-mark{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.setup-step>:not(h3){margin-left:29px}
.setup-step>.form-hint{margin-top:8px}
@media(max-width:760px){
  .setup-step>:not(h3){margin-left:0}
}
/* After the review of the three detail pages: what a count means starts on the content edge of a record (241 px from the group's edge);
   the counts are a group with a head like every other; a hint about a whole group is its foot; the check of a prerequisite hangs
   before the content edge like a list mark. */
.panel>.stat-grid.source-stats{border:0;border-radius:0;box-shadow:none;background:none;margin:0;padding:4px 0}
.panel-foot{margin:0;padding:10px var(--pad);background:var(--foot);border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}
.source-scopes .color-icon{flex:0 0 auto}
#main.source-page .source-settings{gap:20px}
@media (min-width:761px){
  .doc-part .sk-checks li{margin-left:-24px}
}
@media(max-width:760px){
  #main.source-page .source-stats .stat{grid-template-columns:28px 88px minmax(0,1fr) auto}
}

/* Analytics (13.11.2026): who contributed where. The whole width of the sheet: the numbers and the buckets across, the map and the board side by side. Numbers are a list on the edges
   of a source's item counts (count, name, meaning, change), never tiles. The graph borrows the nodes of the access map; its
   lines carry a weight, not a permission, so they stay neutral. Tables keep fixed columns: switching the period or the tab
   moves nothing. */
.dash{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.dash-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:20px;align-items:stretch}
.dash-pair[hidden]{display:none}
.dash-pair>.panel{display:flex;flex-direction:column}
.dash-pair>.panel>.panel-foot{margin-top:auto}
.dash>.page-head{margin-bottom:0}
.dash>.notice{margin:0}
.dash>div:empty{display:none}
.dash .panel-head .tab-bar{margin:0}
.dash-lead{display:grid;grid-template-columns:minmax(370px,1fr) minmax(0,2.4fr);gap:40px;align-items:stretch;padding:22px var(--pad) 20px;border-bottom:1px solid var(--line)}
.dash-big{display:block;font:700 46px/1 var(--head);letter-spacing:-.03em;color:var(--text)}
.dash-figure-name{margin-top:10px;font-size:13.5px;font-weight:550;color:var(--text)}
.dash-figure-change{margin-top:2px;font-size:13px;color:var(--muted)}
.dash-figure-change strong{font-weight:600;color:var(--text)}
.dash-took-part{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:13px;color:var(--muted)}
.dash-took-part .avatar-stack{align-items:center;flex:0 0 auto}
.dash-chart{display:flex;flex-direction:column}
/* The course of the period: one bar per cut, on a base line that starts where the count starts. The period before stands behind as a shadow. */
.dash-chart-bars{position:relative;flex:1 1 auto;display:flex;align-items:flex-end;gap:5px;min-height:128px;padding-bottom:1px;border-top:1px solid var(--line)}
.dash-chart-peak{position:absolute;left:0;top:4px;font-size:11.5px;line-height:1;color:var(--muted)}
.dash-chart-gap{position:absolute;left:0;bottom:10px;width:var(--w);font-size:12px;color:var(--muted);text-align:center}
.dash-lead.alone{grid-template-columns:minmax(0,1fr)}
.dash-chart-bars::after{content:'';position:absolute;left:var(--from,0%);right:0;bottom:0;height:1px;background:var(--line-strong)}
.dash-chart-slot{position:relative;flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center}
.dash-chart-slot .was{position:absolute;left:50%;bottom:0;width:100%;max-width:56px;transform:translateX(-50%);height:var(--h);border-radius:3px 3px 0 0;background:color-mix(in srgb,var(--text-2) 20%,transparent)}
.dash-chart-slot .now{position:relative;width:54%;max-width:30px;height:var(--h);border-radius:2px 2px 0 0;background:var(--text-2)}
.dash-chart-axis{display:flex;justify-content:space-between;margin-top:7px;font-size:12px;color:var(--muted)}
.dash-chart-key{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin-top:8px;font-size:12px;color:var(--muted);white-space:nowrap}
.dash-chart-key .key{width:9px;height:9px;border-radius:2px;background:var(--text-2)}
.dash-chart-cut{margin-left:auto}
.dash-chart-key .key.was{margin-left:10px;background:color-mix(in srgb,var(--text-2) 20%,transparent)}
.dash-kinds td strong{font-weight:600;color:var(--text)}
.contrib-graph{position:relative;flex:1 1 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:center;gap:92px;padding:18px var(--pad) 22px}
.contrib-graph .graph-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.contrib-graph .graph-node small{margin-left:auto;color:var(--text-2)}
.contrib-graph .graph-node.place{text-decoration:none}
.contrib-graph .graph-edge{stroke:var(--dim);stroke-linecap:round}
.contrib-graph .graph-casing{fill:none;stroke:var(--surface);stroke-width:9;stroke-linecap:butt}
.contrib-graph .graph-edge.w1{stroke-width:1}
.contrib-graph .graph-edge.w2{stroke-width:2}
.contrib-graph .graph-edge.w3{stroke-width:3}
.contrib-graph.focused .graph-node:not(.lit){background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}
.contrib-graph.focused .graph-node:not(.lit) small{color:var(--muted)}
.contrib-graph.focused .graph-edge{opacity:.3}
.contrib-graph.focused .graph-edge.lit{opacity:1;stroke:var(--text)}
.contrib-graph .graph-node.lit{background:var(--hover)}
.dash-who-list{display:none}
.dash-board>.table-wrap{border:0;border-radius:0;box-shadow:none;background:none;margin:0}
.dash-board table{table-layout:fixed;width:100%}
.dash-board td small,.dash-people .table-title .row-button,.dash-people .table-title strong{white-space:nowrap}
.dash-board tr.selected td{background:var(--raised)}
.dash-board .chevron-cell{width:40px}
.dash-rank{flex:0 0 auto;width:16px;text-align:right;font-size:13px;color:var(--muted)}
.dash-zero{color:var(--dim)}
.dash-total-cell{width:150px}
.dash-total{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;column-gap:10px}
.dash-total strong{font-weight:600;color:var(--text)}
.dash-bar{display:block;height:6px;border-radius:3px;background:var(--chip);overflow:hidden}
.dash-bar>span{display:block;height:100%;width:var(--w);border-radius:3px;background:var(--text-2)}
/* One scale for every bucket of the table, on a base line; a stretch without contributions is a gap, not a mark. */
.dash-spark{position:relative;display:inline-flex;align-items:flex-end;gap:3px;height:25px;padding-bottom:1px;vertical-align:middle}
.dash-spark::after{content:'';position:absolute;left:var(--from,0%);right:0;bottom:0;height:1px;background:var(--line-strong)}
.dash-spark>span{display:block;width:8px;height:var(--h);border-radius:1.5px 1.5px 0 0}
.dash-spark>span.on{background:var(--text-2)}
.dash-note{margin:-4px 0 0;font-size:12.5px;line-height:1.6;color:var(--muted);max-width:72ch}
.dash-places,.dash-latest{list-style:none;margin:0;padding:0;display:grid}
.dash-places li{display:flex;align-items:center;gap:10px;min-height:36px;font-size:13px}
.dash-places li span:not(.color-icon){flex:1;min-width:0}
.dash-latest li{display:flex;align-items:center;gap:10px;min-height:38px;font-size:13px;border-top:1px solid var(--subtle)}
.dash-latest li:first-child{border-top:0}
.dash-latest li>span:not(.color-icon):not(.dash-in){flex:1;min-width:0}
.dash-latest .dash-in{flex:0 0 96px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-latest small{flex:0 0 92px;text-align:right;color:var(--dim);white-space:nowrap}
.dash-limit{color:var(--text-2)}
.dash-drawer .drawer-footer{justify-content:flex-start}
.dash-board .table-title .color-icon{width:28px;height:28px}
@media(min-width:761px){
  .dash-board th.num,.dash-board td.num{text-align:right;white-space:nowrap}
  .dash-people .dash-kind{width:78px;padding-inline:6px}
  .dash-people .dash-total-cell{width:132px}
  .dash-people .chevron-cell{width:34px}
  .dash-kinds .dash-share{width:200px}
  .dash-kinds .num{width:76px}
  .dash-kinds .dash-vs{width:108px}
  .dash-buckets .dash-spark-cell{width:176px}
  .dash-buckets .dash-when{width:132px}
  .dash-buckets .dash-who-cell{width:120px}
  .dash-buckets .num{width:72px}
}
@media(max-width:1180px){
  .dash-pair{grid-template-columns:minmax(0,1fr)}
  .contrib-graph{gap:clamp(96px,22vw,200px)}
}
@media(max-width:760px){
  .contrib-graph{display:none}
  .dash-who-list{display:block;padding:6px var(--pad) 12px}
  .dash-who-list ul{list-style:none;margin:0;padding:0;display:grid}
  .dash-who-list li{display:grid;gap:8px;padding:10px 0;border-top:1px solid var(--subtle)}
  .dash-who-list li:first-child{border-top:0}
  .dash-who{display:flex;align-items:center;gap:9px;border:0;background:none;padding:0;color:var(--text);font:inherit;font-size:15px;text-align:left}
  .dash-lead{grid-template-columns:minmax(0,1fr);gap:20px;padding:18px var(--pad)}
  .dash-big{font-size:40px}
  .dash-chart-cut{flex-basis:100%;margin-left:0}
  .dash-board table{table-layout:auto}
  .dash-total-cell{width:auto}
  .dash-wide-only,.dash-latest .dash-in{display:none}
  .dash-latest li{min-height:44px}
  .dash-latest small{flex-basis:auto}
  /* The breakdown by kind stands in the person's drawer; the list keeps rank, name and total. */
  .dash-board .table-wrap.stack td.dash-kind,.dash-board .table-wrap.stack td.dash-share{display:none}
}
