/* Kloer's shell: labelled sidebar, the page, Figtree for text and Plus Jakarta Sans for headings. Light palette G4
   "sand and sage" (D260, after Heelt Pro's shape): warm white ground, flat white cards with thin lines, bronze actions
   and mark (D261), a sand to sage glow rising from the bottom of the screen. The dark variant keeps the Cognifinity dark
   set with a light bronze accent and the same glow, quieter, behind the page only (D265).
   Laptop widths may show the menu as a rail of icons; phones get a top bar with the menu behind a button. Pages scroll
   inside the content area. */

@font-face{font-family:"Figtree";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/Figtree-Regular.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/Figtree-Medium.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/Figtree-SemiBold.woff2) format("woff2")}
/* Plus Jakarta Sans (SIL OFL 1.1, fonts/PlusJakartaSans-OFL.txt), variable weight, Latin and Latin Extended. */
@font-face{font-family:"Roboto Mono";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/RobotoMono-Regular.woff2) format("woff2")}
@font-face{font-family:"Roboto Mono";font-style:normal;font-weight:500 600;font-display:swap;src:url(fonts/RobotoMono-Medium.woff2) format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/PlusJakartaSans-latin-ext-wght.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/PlusJakartaSans-latin-wght.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Tokens: light (default) and dark (body.theme-dark). The accent keeps Kolleeg's name --amber. */
body.shell{--bg:#FAF8F4;--card:#FFFFFF;--band:#F1F2F4;--border:#E7E8EC;--text:#1C1B22;--muted:#57525E;
  --amber:#6E4A28;--sand:#8A3B12;--green:#1E6B3C;--red:#9B1F4A;--on-accent:#FFFFFF;
  --amber-t:#F0EDEA;--green-t:#E2F3E8;--red-t:#FFE2EC;--sand-t:#FFE7D9;
  --hover:rgba(28,27,34,.04);--avatar:#F3EADF;--shadow:0 1px 2px rgba(34,32,29,.04),0 10px 28px rgba(34,32,29,.06);
  --soft:#E8E2DD;--soft-ink:#6E4A28;--side:#FFFFFF;--side-line:var(--border);
  --glow:radial-gradient(90% 42% at 0% 100%,rgba(234,197,150,.55),transparent 72%),
    radial-gradient(90% 42% at 50% 100%,rgba(190,210,170,.48),transparent 72%),
    radial-gradient(90% 42% at 100% 100%,rgba(148,180,159,.42),transparent 72%);
  --edge:linear-gradient(90deg,#EAC596,#BED2AA,#94B49F);
  --card-gap:10px;--card-inset:12px;--row-inset:8px;
  --line-strong:#8E8590;--r:10px;color-scheme:light;
  --icon-chev-right:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1b22' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");--icon-calendar:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1b22' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E");--icon-clear:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1b22' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
  --select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5 8 14 8' fill='none' stroke='%231c1b22' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
body.shell.theme-dark{--bg:#1A1714;--card:#26221E;--band:#2C2824;--border:#38302A;--text:#F2EFEA;--muted:#A09890;
  --amber:#D9A877;--sand:#EAC596;--green:#4ADE80;--red:#F87171;--on-accent:#1A1714;
  --amber-t:rgba(217,168,119,.14);--green-t:rgba(74,222,128,.12);--red-t:rgba(248,113,113,.12);--sand-t:rgba(234,197,150,.12);
  --hover:rgba(255,255,255,.06);--avatar:#38302A;--shadow:0 0 0 1px #38302A;
  --soft:var(--card);--soft-ink:var(--text);--line-strong:#7A7066;--side:var(--bg);--side-line:var(--border);
  /* The dark glow at 0.6 of its strength, as Kolleeg D202 (D289). */
  --glow:radial-gradient(90% 42% at 0% 100%,rgba(234,197,150,.23),transparent 72%),
    radial-gradient(90% 42% at 50% 100%,rgba(190,210,170,.19),transparent 72%),
    radial-gradient(90% 42% at 100% 100%,rgba(148,180,159,.17),transparent 72%);
  --edge:linear-gradient(90deg,#C4A27A,#9DB08B,#7A9785);
  --icon-chev-right:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2efea' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");--icon-calendar:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2efea' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E");--icon-clear:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2efea' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
  --select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5 8 14 8' fill='none' stroke='%23f2efea' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color-scheme:dark}
/* The glow: a fixed layer behind the sidebar and the page (not background-attachment, which iOS ignores). */
body.shell::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:var(--glow)}
@media (forced-colors:active){body.shell::before{display:none}}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body.shell{font-family:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);
  font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased;
  display:grid;grid-template-columns:240px minmax(0,1fr);height:100vh;height:100dvh;overflow:hidden}
a{color:var(--amber)}
.i{width:16px;height:16px;flex:none}
h1,h2,.wm{font-family:"Plus Jakarta Sans","Figtree",system-ui,sans-serif}
h1{font-size:22px;font-weight:600;letter-spacing:-.01em;line-height:1.2}
h2{font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-.01em}
h3{font-size:15px;font-weight:600}
code,kbd{font-family:var(--mono,"Roboto Mono"),ui-monospace,Menlo,Consolas,monospace;font-size:.95em}
.skip{position:absolute;left:-9999px;top:8px;z-index:50;background:var(--card);padding:8px 12px;border-radius:8px}
.skip:focus{left:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:focus-visible{outline:2px solid var(--amber);outline-offset:2px}

/* Sidebar */
.sidebar{display:flex;flex-direction:column;padding:16px 12px 12px;min-height:0;height:100vh;height:100dvh;
  position:relative;z-index:2;background:var(--side);border-right:1px solid var(--side-line)}
.sidebar-head{display:flex;align-items:center;gap:8px}
.brand{display:flex;align-items:center;gap:10px;padding:2px 8px 12px;color:inherit;text-decoration:none;min-width:0}
.brand .mark{width:28px;height:28px;flex:none;display:block;color:var(--amber)}
.brand-text{display:flex;flex-direction:column;min-width:0}
.wm{font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1.2}
.brand .office{font-size:13px;line-height:15px;color:var(--muted);overflow-wrap:anywhere}
.navbtn{display:none;margin-left:auto;width:44px;height:44px;border:0;border-radius:10px;background:none;color:var(--text);cursor:pointer;place-items:center}
.navbtn .i{width:22px;height:22px}
.snav{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-height:0;overflow:auto;margin-top:4px}
.sgroup{display:flex;flex:0 0 auto;flex-direction:column;gap:2px}
.sgroup:first-child{padding-top:6px}
.sgrp{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:16px 12px 4px}
.sn{display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border-radius:7px;font-size:15px;font-weight:500;color:var(--text);text-decoration:none}
.sn .i{width:20px;height:20px;color:var(--muted)}
.sn span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sn:hover{background:var(--hover)}
.sn.on{background:var(--soft);color:var(--soft-ink);font-weight:600}
.sn.on .i{color:var(--soft-ink)}
body.shell.theme-dark .sn.on .i{color:var(--amber)}
/* Connections and settings are one "Settings" entry (D259, D283); their pages show them as tabs (.stabs). */
.sfold{margin-top:10px}
/* The column's foot as in Heelt Pro (D264): 36px rows of 14px muted text under a line, the language with a globe and
   its code (the list opens over it), the menu's width and light or dark as small icons on the same row. */
.sfoot{flex-shrink:0;margin-top:auto;padding-top:8px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:2px}
.sfoot form{display:flex}
.sfl{display:flex;align-items:center;gap:12px;min-height:36px;min-width:0;padding:0 12px;border:0;border-radius:7px;background:none;
  font:inherit;font-size:14px;color:var(--muted);text-decoration:none;text-align:left;cursor:pointer;width:100%}
.sfl .i{width:20px;height:20px}
a.sfl:hover,button.sfl:hover,summary.sfl:hover,.slang[open]>summary{background:var(--hover);color:var(--text)}
.sprefs{display:flex;align-items:center;gap:2px}
.slang{position:relative;flex:1 1 auto;min-width:0}
.slang>summary{list-style:none}
.slang>summary::-webkit-details-marker{display:none}
.slang-pop{position:absolute;left:0;bottom:calc(100% + 4px);z-index:30;min-width:200px;padding:4px;display:flex;flex-direction:column;gap:2px;
  background:var(--card);border-radius:12px;box-shadow:0 10px 30px rgba(34,32,29,.16)}
.theme-dark .slang-pop{box-shadow:0 0 0 1px var(--border),0 10px 30px rgba(0,0,0,.4)}
.slang-pop a{display:flex;align-items:center;min-height:40px;padding:0 12px;border-radius:7px;font-size:15px;color:var(--text);text-decoration:none}
.slang-pop a:hover{background:var(--band)}
.slang-pop a[aria-current]{color:var(--amber);font-weight:600}
.sicon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:7px;color:var(--muted)}
.sicon:hover{background:var(--hover);color:var(--text)}
.sicon .i{width:20px;height:20px}
.navpin{display:none}
.suser{min-height:44px;color:var(--text)}
.suser[aria-current]{background:var(--soft)}
.av{width:28px;height:28px;border-radius:7px;background:var(--avatar);display:grid;place-items:center;font-size:12px;font-weight:600;color:var(--sand);flex:none}
.who{min-width:0}
.who .n{display:block;font-size:14px;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who .r{display:block;font-size:13px;color:var(--muted);line-height:1.3}

/* Theme and language */
.preferences{display:grid;gap:12px;margin:6px 4px;padding:12px 6px;border-block:1px solid var(--border)}
.preference-group{display:grid;gap:6px;min-width:0}
.preference-label{font-size:13px;font-weight:500;color:var(--muted)}
.preference-options{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;padding:3px;border-radius:12px;background:var(--band)}
.preference-options a{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:36px;padding:0 4px;border:1px solid transparent;border-radius:7px;font-size:14px;font-weight:500;color:var(--muted);text-decoration:none;white-space:nowrap}
.preference-options a .i{width:15px;height:15px}
.preference-options a:hover{background:var(--hover);color:var(--text)}
.preference-options a[aria-current]{background:var(--card);color:var(--amber);border-color:var(--border);box-shadow:0 1px 3px rgba(34,32,29,.08)}
.preferences-header{border:0;margin:0;padding:0;grid-auto-flow:column;align-items:center}
.preferences-header .preference-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* Main */
.main{display:flex;flex-direction:column;min-width:0;min-height:0;height:100vh;height:100dvh;position:relative;z-index:1}
/* The foot is 12px, as the menu's own foot: a page that fills the window ends 12px above its edge, a page that scrolls
   keeps 12px after its last card (D279; it was 48px). --content-y is the room above the column (the "Ask Kloer" row on
   wide screens), so a panel that sticks inside the column can end at the same 12px. --ask-y is where the floating
   "Ask Kloer" button ends (761-1679px), so a stuck panel stays under it, not behind it (D280). The column is the
   box for absolutely placed parts inside it (screen-reader labels), so they scroll with it and never make the page
   itself taller than the window behind its overflow:hidden (D281). */
.main{--content-y:0px;--ask-y:0px}
.content{--pad-top:20px;--pad-foot:12px;position:relative;flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:var(--pad-top) 24px var(--pad-foot);display:flex;flex-direction:column;gap:var(--card-gap)}
.assistant-entry{display:flex;justify-content:flex-end;padding:12px 24px 0}
.ask{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border:1px solid var(--border);border-radius:999px;background:var(--card);box-shadow:var(--shadow);font-size:15px;font-weight:600;color:var(--text);text-decoration:none}
.ask .i{color:var(--amber);width:18px;height:18px}
.ask:hover{background:var(--band)}
.pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hsub{margin-top:4px;font-size:15px;color:var(--muted)}
.kicker{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.muted,.hint{color:var(--muted)}
.hint{font-size:13px;line-height:1.5}
.card{background:var(--card);border:1px solid var(--border);border-radius:14px}
/* Flat cards with a thin line (D260); the dark set keeps its line too. */
.cardpad{padding:var(--card-inset);display:flex;flex-direction:column;gap:var(--row-inset)}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--card-gap);align-items:start}
.grid2 .span2{grid-column:1/-1}
.flash{display:flex;gap:8px;align-items:center;padding:12px 16px;border-radius:12px;background:var(--green-t);color:var(--green);font-size:14px}
.flash.err{background:var(--red-t);color:var(--red)}
.flash span{min-width:0;overflow-wrap:anywhere}

/* Controls */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--border);background:var(--card);font:inherit;font-size:15px;font-weight:600;color:var(--text);white-space:nowrap;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--band)}
.btn.pri{min-height:48px;padding:0 20px;font-size:17px;background:var(--amber);border-color:var(--amber);color:var(--on-accent)}
/* Row actions: the same 44px pill (Heelt's queue rows: Approve, Attended); only the filter bar uses 36px. */
.btn.sm{min-height:44px;padding:0 16px;font-size:15px}
.btn.pri:hover{filter:brightness(.95)}
.btn.ghost{background:transparent;border-color:transparent}
/* Light: outlined ink pills beside the filled blue main action (D260). */
body.shell:not(.theme-dark) .btn{border:1.5px solid var(--text);background:transparent}
body.shell:not(.theme-dark) .btn:hover{background:var(--band)}
body.shell:not(.theme-dark) .btn.pri{background:var(--amber);border-color:var(--amber)}
body.shell:not(.theme-dark) .btn.pri:hover{background:var(--amber)}
body.shell:not(.theme-dark) .btn.ghost{background:transparent;border-color:transparent}
body.shell:not(.theme-dark) .btn.ghost:hover{background:var(--band)}
.btn.wide{width:100%}
.btn .i{width:18px;height:18px}
.btn[aria-disabled="true"],button:disabled{opacity:.45;cursor:default}
.chip{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;padding:1px 8px;border-radius:999px;border:1px solid var(--border);color:var(--muted);white-space:nowrap;line-height:18px}
.chip.red{background:var(--red-t);color:var(--red);border-color:transparent}
.chip.amber{background:var(--amber-t);color:var(--amber);border-color:transparent}
.chip.green{background:var(--green-t);color:var(--green);border-color:transparent}
.chip.sand{background:var(--sand-t);color:var(--sand);border-color:transparent}
input,select,textarea{font:inherit;font-size:17px;color:var(--text);background:var(--card);border:1.5px solid var(--line-strong);border-radius:12px;padding:0 10px;min-height:44px;width:100%;min-width:0}
textarea{padding:10px;line-height:1.45;min-height:88px;resize:vertical}
.theme-dark input,.theme-dark select,.theme-dark textarea{background:var(--card)}
input[type=checkbox],input[type=radio]{flex:none;width:20px;height:20px;min-height:0;margin:0;accent-color:var(--amber);cursor:pointer}
.field{display:flex;flex-direction:column;gap:4px;font-size:14px;color:var(--muted)}
/* A box beside its label sits on the label's first line, also when the label wraps (D288; it sat between the lines). */
.check{display:inline-flex;align-items:flex-start;gap:8px;font-size:14px;line-height:20px}
.stack{display:flex;flex-direction:column;gap:var(--card-gap)}
/* A choice among many (D287): the boxes in equal columns, each label beside its box and wrapping under itself, instead
   of a running line where every box started somewhere else. */
.checkset{border:0;margin:0;padding:0;min-width:0}
.checkset>legend{padding:0;margin-bottom:6px}
.checkgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:8px 18px}
.checkgrid .check{display:flex;min-width:0}
.checkgrid .check>span{min-width:0;overflow-wrap:anywhere}
.stack .btn{align-self:flex-start}
.inline-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.inline-form select{width:auto;min-height:36px;padding:0 8px;font-size:14px;border-radius:7px}
form.inline{display:inline}

/* Tables and lists */
.table-scroll{overflow-x:auto}
/* The settings pages' tabs (D283), as Documents' and Watchers' tabs; from 761 to 1679px they keep clear of the floating
   "Ask Kloer" button. */
.stabs{display:flex;gap:4px;flex-wrap:wrap;padding:3px;border-radius:12px;background:var(--band);align-self:flex-start;max-width:100%}
.stabs a{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:7px;color:var(--muted);text-decoration:none;font-weight:500;font-size:14px}
.stabs a:hover{color:var(--text)}
.stabs a[aria-current]{background:var(--card);color:var(--text);box-shadow:0 1px 3px rgba(34,32,29,.08)}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{font-weight:600;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);text-align:left;padding:8px 12px;border-bottom:1px solid var(--border)}
.tbl td{padding:8px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl .r{text-align:right}
.tbl .n{font-weight:600}
.plain{list-style:none;display:flex;flex-direction:column;gap:8px}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.row>span:first-child{flex:1;min-width:0;display:inline-flex;align-items:center;gap:6px}
.listbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.listbar .search{flex:1 1 260px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1.5px solid var(--line-strong);border-radius:7px;background:var(--card);color:var(--muted)}
.listbar .search input{border:0;background:transparent;padding:0;min-height:33px;font-size:14px;border-radius:0}
.listbar .search input:focus{outline:none}
.listbar .search:focus-within{box-shadow:0 0 0 2px var(--amber)}
.listbar .filter select{width:auto;border-radius:7px;min-height:36px;padding:0 8px;font-size:14px}
.listbar .btn{min-height:36px;padding:0 12px;border-radius:7px;font-size:14px}
.pager{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px 12px;font-size:14px;border-top:1px solid var(--border)}
.pager .pages{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.pager .page{display:inline-grid;place-items:center;min-width:36px;height:36px;border-radius:7px;text-decoration:none;color:var(--text)}
.pager .page:hover{background:var(--band)}
.pager .page.on{background:var(--amber);color:var(--on-accent);font-weight:600}
.pager .gap{color:var(--muted)}
.pager .sub{flex:1 1 auto;text-align:center;font-size:13px;color:var(--muted)}
.row-actions{position:relative;display:inline-block;text-align:left}
.row-actions>summary{list-style:none}
.row-actions>summary::-webkit-details-marker{display:none}
.row-actions-pop{position:absolute;right:0;top:calc(100% + 4px);z-index:20;min-width:230px;background:var(--card);border-radius:12px;box-shadow:0 10px 30px rgba(34,32,29,.16);padding:4px;display:flex;flex-direction:column}
.theme-dark .row-actions-pop{box-shadow:0 0 0 1px var(--border),0 10px 30px rgba(0,0,0,.4)}
.row-actions-pop button{width:100%;text-align:left;min-height:40px;padding:0 12px;border:0;border-radius:7px;background:none;font:inherit;font-size:15px;color:var(--text);cursor:pointer}
.row-actions-pop button:hover{background:var(--band)}

/* Start page and errors */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.tile{display:flex;align-items:center;gap:10px;padding:var(--card-inset);text-decoration:none;color:var(--text);font-size:15px;font-weight:600}
.tile .i{width:20px;height:20px;color:var(--amber)}
.tile:hover{background:var(--band)}
.facts{display:grid;grid-template-columns:minmax(120px,200px) 1fr;gap:8px 16px;font-size:14px}
.facts dt{color:var(--muted)}
.error-card{max-width:560px;margin:40px auto;align-items:flex-start}

/* Sign-in pages */
body.shell.bare{display:block;overflow:auto;height:auto;min-height:100vh}
.bare .main{height:auto;min-height:calc(100vh - 72px)}
.bare .content{overflow:visible;padding:8px 16px 40px}
.bare-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;flex-wrap:wrap}
.bare-top .brand{padding:0}
.auth{max-width:480px;width:100%;margin:24px auto;padding:24px;border-radius:22px}
.auth.wide-card{max-width:560px}
.auth-head{margin-bottom:22px}
.auth-head h1{font-size:26px;margin-bottom:8px}
.auth-head p{color:var(--muted)}
.auth-form{display:flex;flex-direction:column;gap:var(--card-gap)}
.auth-form input{min-height:46px;font-size:17px}
.auth-form .btn{min-height:56px;border-radius:999px}
.divider{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:13px}
.divider::before,.divider::after{content:"";height:1px;background:var(--border);flex:1}
.alternative>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:0 16px;border:1px solid var(--border);border-radius:999px;cursor:pointer;list-style:none;font-weight:500}
.alternative>summary::-webkit-details-marker{display:none}
.alternative[open]>summary .i{transform:rotate(90deg)}
.password-fields{border:0;display:flex;flex-direction:column;gap:14px;margin-top:16px;min-width:0}
.status:empty{display:none}
.auth-foot{border-top:1px solid var(--border);padding-top:16px;margin-top:6px;font-size:14px;color:var(--muted)}
.enroll{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:6px 0 16px}
.qr svg{display:block;width:180px;height:180px;border-radius:12px}
.secret code{display:inline-block;font-size:17px;letter-spacing:.06em;padding:8px 12px;border-radius:10px;background:var(--band);overflow-wrap:anywhere}
.codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;padding-left:22px;margin:10px 0}
.issued{border:1px solid var(--amber)!important}
.issued-link{display:flex;gap:8px;align-items:center;margin:12px 0 4px}
.issued-link input{flex:1;min-width:0;font-family:var(--mono,inherit);font-size:13px}
.issued-code{margin-top:8px}
.issued-code>summary{cursor:pointer;color:var(--muted);font-size:13px}
.entry-who{display:none;margin:0;color:var(--muted)}
.entry-who span{color:var(--text);font-weight:500;overflow-wrap:anywhere}
.from-link .entry-who{display:block}
.from-link .entry-fields{display:none}
.entry-fields{display:grid;gap:14px}

/* Laptop: the menu as a rail of icons unless pinned open (Kolleeg's frame, 12 November) */
@media (min-width:761px) and (max-width:1679px){
  body.shell:not(.bare):not(.nav-wide){grid-template-columns:64px minmax(0,1fr)}
  body.shell:not(.nav-wide) .sidebar{padding:14px 8px 12px;align-items:center}
  body.shell:not(.nav-wide) .brand{padding:0 0 12px}
  body.shell:not(.nav-wide) .brand-text,body.shell:not(.nav-wide) .sgrp,body.shell:not(.nav-wide) .sfl-text{display:none}
  body.shell:not(.nav-wide) .snav{align-items:center;width:100%}
  body.shell:not(.nav-wide) .sgroup{align-items:center;padding-top:8px;border-top:1px solid var(--border);margin-top:4px}
  body.shell:not(.nav-wide) .sgroup:first-child{border-top:0;margin-top:0}
  body.shell:not(.nav-wide) .sn{position:relative;justify-content:center;width:44px;height:40px;padding:0}
  body.shell:not(.nav-wide) .sn span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}
  body.shell:not(.nav-wide) .sn:is(:hover,:focus-visible) span{left:52px;top:50%;transform:translateY(-50%);z-index:40;width:auto;height:auto;overflow:visible;clip-path:none;padding:5px 9px;border-radius:8px;background:var(--text);color:var(--card);font-size:13px}
  /* A rail row's name lies in the window beside the rail (kloer.js gives the row's middle and the rail's edge): beside
     the icon inside the menu's scroll box it was cut off and never showed (D289, as Kolleeg D205). */
  body.shell:not(.nav-wide) .sidebar .sn[style*="--tip-y"]:is(:hover,:focus-visible) span{position:fixed;top:var(--tip-y);left:var(--tip-x)}
  body.shell:not(.nav-wide) .sfoot{align-items:center;width:100%}
  body.shell:not(.nav-wide) .sprefs{flex-direction:column}
  body.shell:not(.nav-wide) .sfl{justify-content:center;width:44px;padding:0}
  body.shell:not(.nav-wide) .sicon{width:44px}
  .navpin{display:grid}
  .assistant-entry{position:absolute;top:0;right:0;z-index:6;padding:12px 24px 0 0}
  .main:has(>.assistant-entry){--ask-y:56px}
  .main:has(.assistant-entry) .content>.pagehead:first-child{padding-right:180px}
  .main:has(.assistant-entry) .content>.stabs:first-child{max-width:calc(100% - 200px)}
}
/* From 1680px the "Ask Kloer" row sits above the column: 12px over a 44px button. */
@media (min-width:1680px){.main:has(>.assistant-entry){--content-y:56px}}
@media (max-height:820px) and (min-width:761px){
  .sidebar{padding-top:12px}
  .brand{padding-bottom:8px}
  .sn{height:32px}
  body.shell:not(.nav-wide) .sn{height:32px}
  .sgrp{padding-top:10px;padding-bottom:2px}
  .sfoot{padding-top:6px}
  .sfl{min-height:32px}
  .sicon{height:32px}
  .suser{min-height:40px}
}
/* Short windows (D286): a step tighter, so the whole menu, the foot with "Sign out" included, fits down to about
   690px (it scrolled 34px at 748px in a signed-in office, the rail 60px). The labelled menu needs it up to 790px, the
   rail, with its foot in a column, up to 820px. */
@media (max-height:790px) and (min-width:761px){
  .sidebar{padding-top:8px}
  .brand{padding-bottom:4px}
  .snav{margin-top:2px}
  .sgroup:first-child{padding-top:2px}
  .sgrp{padding-top:6px;padding-bottom:0}
  .sn{height:28px}
  .sfold{margin-top:6px}
  .sfoot{padding-top:4px}
  .sfl{min-height:28px}
  .sicon{height:28px}
  .suser{min-height:36px}
}
@media (max-height:820px) and (min-width:761px) and (max-width:1679px){
  body.shell:not(.nav-wide) .sidebar{padding-top:8px}
  body.shell:not(.nav-wide) .brand{padding-bottom:6px}
  body.shell:not(.nav-wide) .snav{margin-top:2px}
  body.shell:not(.nav-wide) .sgroup{padding-top:4px;margin-top:2px}
  body.shell:not(.nav-wide) .sn{height:28px}
  body.shell:not(.nav-wide) .sfoot{padding-top:4px}
  body.shell:not(.nav-wide) .sfl{min-height:28px}
  body.shell:not(.nav-wide) .sicon{height:28px}
  body.shell:not(.nav-wide) .suser{min-height:36px}
}

/* Phone: a top bar, the menu behind a button (without scripts it stays open) */
@media (max-width:760px){
  body.shell:not(.bare){display:block;height:auto;min-height:100vh;overflow:auto}
  .sidebar{height:auto;padding:8px 12px;position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--border)}
  .brand{padding:4px 0}
  .navbtn{display:grid}
  .js .sidebar:not(.open) .snav,.js .sidebar:not(.open) .sfoot{display:none}
  .sidebar.open{max-height:100vh;max-height:100dvh;overflow:auto}
  .sn{height:44px}
  .main{height:auto}
  .content{overflow:visible;padding:14px 16px 32px}
  .assistant-entry{padding:10px 16px 0}
  .assistant-entry .ask{width:100%;justify-content:center}
  .grid2{grid-template-columns:minmax(0,1fr)}
  h1{font-size:21px}
  .auth{padding:18px 16px;margin:12px auto;border-radius:20px}
  .codes{grid-template-columns:minmax(0,1fr)}
  .facts{grid-template-columns:minmax(0,1fr)}
  .slang-pop{position:static;box-shadow:none;margin-top:4px}
  .preference-options a{min-height:40px}
  .tbl{font-size:14px}
  /* A table marked .stack becomes a list on a phone (D282): one block per row, each value with its column's name. */
  .tbl.stack thead{display:none}
  .tbl.stack,.tbl.stack tbody,.tbl.stack tr,.tbl.stack td{display:block;width:100%}
  .tbl.stack tr{padding:8px 0;border-bottom:1px solid var(--border)}
  .tbl.stack tr:last-child{border-bottom:0}
  .tbl.stack td{border:0;padding:3px 0;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;text-align:right}
  .tbl.stack td::before{content:attr(data-label);color:var(--muted);font-size:13px;text-align:left}
  .tbl.stack td:is([data-label=""],:not([data-label]))::before{content:none}
  .tbl.stack td:first-child{justify-content:flex-start;font-weight:600;text-align:left}
  .tbl.stack td:empty{display:none}
  .tbl.stack td.r{justify-content:flex-start;padding-top:6px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Every list field draws the same chevron a little in from its right edge, as in Heelt Pro (D266): the browser's own
   sat against the border and no padding moves it. Last in the file and with two attribute tests, so it outlasts each
   field's own padding. With forced colours the browser's own comes back. */
select:not([multiple]):not([size]){padding-right:36px;background-image:var(--select-chevron);background-repeat:no-repeat;
  background-position:right 12px center;background-size:12px auto;appearance:none}
@media (forced-colors:active){select:not([multiple]):not([size]){background-image:none;appearance:auto}}

/* The other parts browsers draw themselves, drawn the Kloer way (D267, after D266's chevron): readable placeholders,
   Kloer's own calendar and clear icons a little in from the edge, a muted empty date (kloer.js marks it), no number
   spinners, a file button like Kloer's buttons, plain details with a turning chevron instead of the triangle, and
   autofilled fields that keep the field's colours. */
::placeholder{color:var(--muted);opacity:1}
input[type=date]::-webkit-calendar-picker-indicator{width:18px;height:18px;margin-left:8px;padding:0;cursor:pointer;opacity:.75;
  background:var(--icon-calendar) center/18px no-repeat}
input[type=date]::-webkit-calendar-picker-indicator:hover{opacity:1}
input[type=date][data-empty]::-webkit-datetime-edit{color:var(--muted)}
input[type=search]::-webkit-search-decoration{appearance:none}
input[type=search]::-webkit-search-cancel-button{appearance:none;width:18px;height:18px;margin-left:8px;cursor:pointer;opacity:.7;
  background:var(--icon-clear) center/16px no-repeat}
input[type=number]{appearance:textfield;-moz-appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}
input[type=file]{min-height:52px;padding:6px 8px;border-style:dashed;font-size:14px;color:var(--muted);cursor:pointer}
input[type=file]::file-selector-button{min-height:38px;margin-right:12px;padding:0 16px;border:1.5px solid var(--text);border-radius:999px;
  background:transparent;font:inherit;font-size:15px;font-weight:600;color:var(--text);cursor:pointer}
input[type=file]::file-selector-button:hover{background:var(--band)}
body.shell.theme-dark input[type=file]::file-selector-button{border-color:var(--border);background:var(--card)}
.filepick{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:52px;padding:6px 8px;
  border:1.5px dashed var(--line-strong);border-radius:12px;background:var(--card);font-size:14px;color:var(--muted)}
.filepick input[type=file]{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;border:0;opacity:0;cursor:pointer}
.filepick-btn{display:inline-flex;align-items:center;flex:none;min-height:38px;padding:0 16px;border:1.5px solid var(--text);
  border-radius:999px;font-size:15px;font-weight:600;color:var(--text)}
body.shell.theme-dark .filepick-btn{border-color:var(--border);background:var(--card)}
.filepick:hover .filepick-btn{background:var(--band)}
.filepick-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filepick.chosen .filepick-name{color:var(--text)}
.filepick:focus-within{outline:2px solid var(--amber);outline-offset:2px}
details>summary:not([class]){display:flex;align-items:center;gap:8px;width:fit-content;min-height:36px;list-style:none;cursor:pointer}
details>summary:not([class])::-webkit-details-marker{display:none}
details>summary:not([class])::before{content:"";flex:none;width:14px;height:14px;opacity:.7;transition:transform .15s;
  background:var(--icon-chev-right) center/12px no-repeat}
details[open]>summary:not([class])::before{transform:rotate(90deg)}
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-text-fill-color:var(--text);
  -webkit-box-shadow:0 0 0 1000px var(--card) inset;caret-color:var(--text)}
@media (forced-colors:active){
  input[type=date]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button{background:none;appearance:auto}
  details>summary:not([class])::before{background:none;content:"›"}
}

/* Keep area-specific layouts on the shell's spacing scale, including the Ops console.
   The area styles load after this sheet and still own columns, breakpoints and interactions. */
.shell :is(.tb-grid,.tb-col,.kl-areas,.rec-split,.ib-grid,.as-wrap,.as-main,.ml-grid,.ml-main,.ml-side,.ml-cards,
           .pf-caps,.cn-grid,.pst-grid,.fc-top,.fc-grid,.wr-grid,.ops-wrap,.ops-blocks){gap:var(--card-gap)}
.shell .cn-body{padding:var(--card-inset);gap:var(--row-inset)}
.shell :is(.cn-head,.as-phead),.shell .kl-sec>.kl-head,.shell .kl-sec .kl-item{padding:var(--row-inset) var(--card-inset)}
.shell .tb-hero{gap:var(--card-gap);margin:4px 0 2px}
.shell .tb-hero.tb-calm{margin-block:auto}
.shell :is(.tb-ask,.tb-sugg){gap:6px}
.shell .kl-sec>.tb-next-body{padding:9px var(--card-inset) 11px}
.shell .tb-next-acts{margin-top:5px}
.shell .tb-big{font-size:18px}
.shell .tb-time{font-size:15px}

/* Labels, figures and amounts in Roboto Mono, as Kolleeg (D289, after Kolleeg D208; owner 27 Nov: "Kolleeg'in arayüzü
   güncellendi; onları Kloer'e uygula"). Labels: every small uppercase, letter-spaced label (menu groups, table heads,
   the day's groups, kickers, a phone row's field names), a little less spaced as mono letters are wider. Figures:
   counts, times and numbers that stand alone, with even digits. Text, names, headings, buttons, dates and record
   numbers stay in Figtree. Roboto Mono is Apache 2.0 (fonts/RobotoMono-LICENSE.txt). */
body.shell{--mono:"Roboto Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
body.shell :is(.sgrp,.kicker,thead th,.kl-sec .kl-group>h3,.w-block h3){font-family:var(--mono);letter-spacing:.06em}
body.shell td[data-label]::before{font-family:var(--mono);letter-spacing:.06em}
body.shell :is(.tb-time,td.r.num,.pages .page,h2>.chip,h3>.chip,h2>.rec-count.fig,summary>.chip,.kl-tabs a>.chip,
  .ib-tabs .n,.wr-tabs .n,.kl-measure b,.fig){font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:0}
/* A record opening in place beside its list (split.js, D290): it fades a little while it loads; its heading, focused
   by the script as a new page's would be, draws no ring (it is no control). */
.rec-split>[aria-busy="true"]{opacity:.55;transition:opacity .15s .2s}
.rec-split :is(h1,h2)[tabindex="-1"]:focus{outline:0}


/* Several rows at once (D292, static/pick.js): a box before each row that can take part, one bar over the list that
   stays in view while the list scrolls (under the floating "Ask Kloer" button where it floats). */
.pickbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 12px;border-bottom:1px solid var(--border);
  background:var(--card);position:sticky;top:max(0px,calc(var(--ask-y,0px) + var(--card-gap,10px) - var(--pad-top,20px)));z-index:3}
.pickbar .pick-all{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);cursor:pointer}
.pickbar .pick-all input,.pk input{margin:0}
.pickbar [data-picked]{font-size:13px;color:var(--text)}
.pickbar .pick-acts{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.pickbar .btn[disabled]{opacity:.45;cursor:default}
:is(th,td).pk{width:1%;padding-right:0}
td.pk input{display:block}
tr.picked{background:var(--hover)}
@media (max-width:760px){
  .pickbar{top:var(--shell-top,0px)}
  .pickbar .pick-acts{margin-left:0;width:100%}
  table.picking tr{position:relative;padding-left:44px}
  table.picking td.pk{position:absolute;left:12px;top:12px;width:auto}
}
