/* Knewmer0 "Future" look (owner 11/08/2026), loaded after style.css and overriding it:
   18px rounded corners on cards, inputs and buttons; soft wide shadows; frosted-glass panels (85%, light blur); main
   buttons with a diagonal gradient from the primary blue into a touch of green; system sans-serif with monospace numbers;
   light and dark from the site palette with WCAG AA text; 44px targets on touch screens; a visible focus ring; no
   motion when reduced motion is on. Printing keeps the plain light look (see @media print at the end). */
:root{
  --bg:#e9f0f8; --card:#fff; --glass:rgba(255,255,255,.85); --surface2:#f3f7fb; --hover:#eef4fb;
  --ink:#0d2340; --ink2:#34506f; --ink3:#4f6683; --line:rgba(18,48,90,.13); --line2:rgba(18,48,90,.07);
  --field:#fff; --field-line:rgba(18,48,90,.22);
  --accent:#1f5f99; --accent-hover:#174d7f; --accent-bg:#e3eef9;
  --grad:linear-gradient(135deg,#1f5f99 0%,#1f5f99 55%,color-mix(in srgb,#1f5f99 72%,#08b653) 100%);
  --r:18px; --r-sm:12px;
  --shadow:0 18px 48px -14px rgba(13,35,64,.20),0 2px 8px rgba(13,35,64,.06);
  --shadow-pop:0 24px 60px -12px rgba(13,35,64,.32),0 4px 14px rgba(13,35,64,.10);
  --ring:#ffbe25; --ring-in:#0d2340;
  --tagc:#8a5a00; --side-active:rgba(255,190,37,.20); --side-active-ink:#8a5a00;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"Cascadia Mono","SF Mono",Menlo,Consolas,monospace;
}
html[data-theme="dark"]{
  --bg:#071224; --card:#10223c; --glass:rgba(16,34,60,.85); --surface2:#132944; --hover:#16304f;
  --ink:#eaf2fc; --ink2:#b6c7dc; --ink3:#93a8c3; --line:rgba(160,190,230,.16); --line2:rgba(160,190,230,.08);
  --field:#0c1b31; --field-line:rgba(160,190,230,.24);
  --accent:#6fa9e6; --accent-hover:#8bbcec; --accent-bg:#17314d;
  --grad:linear-gradient(135deg,#2a75b6 0%,#2a75b6 55%,color-mix(in srgb,#2a75b6 70%,#08b653) 100%);
  --shadow:0 22px 56px -14px rgba(0,0,0,.6),0 2px 8px rgba(0,0,0,.3);
  --shadow-pop:0 28px 64px -12px rgba(0,0,0,.7),0 4px 14px rgba(0,0,0,.35);
  --ring-in:#071224; --tagc:#ffbe25; --side-active:rgba(255,190,37,.14); --side-active-ink:#ffbe25;
}
body{font-family:var(--font);background:var(--bg);color:var(--ink);
  background-image:radial-gradient(900px 480px at 88% -12%,rgba(8,182,83,.12),transparent 65%),radial-gradient(800px 560px at -12% 108%,rgba(31,95,153,.16),transparent 65%);background-attachment:fixed}
a{color:var(--accent)}

/* ---- focus: one visible ring everywhere */
:focus-visible{outline:3px solid var(--ring)!important;outline-offset:2px!important}
/* the button Ctrl+S moved to: ring + one short pulse, also where the browser draws no focus ring */
.ks-on{outline:3px solid var(--ring)!important;outline-offset:2px!important;animation:ks-pulse .9s ease-out 2}
@keyframes ks-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--ring) 70%,transparent)}100%{box-shadow:0 0 0 12px transparent}}
@media (prefers-reduced-motion:reduce){.ks-on{animation:none}}
input:focus,select:focus,textarea:focus{outline:2px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:1px}

/* ---- numbers line up */
table.t td.n,table.t th.n,.dz-v,.dz-big,.dz-cost .n,.dz-who .n,.dz-keys .n,.dz-flow b,.foottot b,.big,td.d{font-family:var(--mono);font-variant-numeric:tabular-nums}
.lines td.amt input,input[data-money],input[inputmode="decimal"]{font-family:var(--mono)}

/* ---- surfaces: frosted glass, rounded, soft wide shadow */
.card,.cmpbar,.apbox{background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.card.pad{padding:18px 20px}
.tablewrap{border-radius:var(--r);border:1px solid var(--line);box-shadow:var(--shadow);background:var(--card)}
html[data-theme="dark"] .tablewrap{background:var(--card)}
table.t th{background:var(--surface2);color:var(--ink2);border-bottom:1px solid var(--line)}
html[data-theme="dark"] table.t th{border-bottom:1px solid var(--line)}
table.t td{border-bottom:1px solid var(--line2)}
table.t tr:hover td{background:var(--hover)}
table.t tfoot td{background:var(--surface2)}
table.t .sticky1{background:var(--card)}
table.t th.sticky1{background:var(--surface2)}
table.t tr.grp td{background:var(--surface2)}
table.t tr.beg td{background:color-mix(in srgb,var(--surface2) 60%,var(--card))}
.stickyfoot{background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:0 0 var(--r) var(--r)}
.modal{background:rgba(7,18,36,.45);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.modal-card{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow-pop);border:1px solid var(--line)}
.gs-list,.co-menu,.colpop,.exppop,.savepop,.fpop,.ta-list{border-radius:var(--r-sm)!important;box-shadow:var(--shadow-pop)!important}
.banner{border-radius:var(--r-sm)}
.toast{border-radius:var(--r-sm);box-shadow:var(--shadow-pop)}

/* ---- buttons: rounded; the main ones in the brand gradient */
.btn{border-radius:var(--r);border:1px solid var(--line);background:var(--card);height:36px;padding:0 16px;font-weight:600}
.btn:hover{background:var(--hover);border-color:var(--field-line)}
.btn.sm{height:30px;padding:0 12px}
.btn.primary,html[data-theme="dark"] .btn.primary{background:var(--grad);border:0;color:#fff;box-shadow:0 10px 24px -10px rgba(31,95,153,.7)}
.btn.primary:hover,html[data-theme="dark"] .btn.primary:hover{background:var(--grad);filter:brightness(1.08)}
.btn.ghost{background:none;border-color:transparent;box-shadow:none}
.btn.ghost:hover{background:var(--hover)}
.btn.danger{background:var(--card)}
.split-caret{border-radius:0 var(--r) var(--r) 0!important}
.splitbtn #save{border-radius:var(--r) 0 0 var(--r)!important}

/* ---- inputs */
.field input,.field select,.toolbar input[type=search],.toolbar select,.toolbar .tawrap>input,.cmpbar input[type=date],.cmpbar select,.period input,.period select{
  height:38px;border-radius:var(--r-sm);border:1px solid var(--field-line);background:var(--field);color:var(--ink)}
.field textarea{border-radius:var(--r-sm);border:1px solid var(--field-line);background:var(--field);color:var(--ink)}
.lines td input,.lines td select{border-radius:10px;border:1px solid var(--field-line);background:var(--field);color:var(--ink)}
.fin{border-radius:8px;border-color:var(--field-line);background:var(--field)}
.seg{border-radius:var(--r);border-color:var(--field-line);height:38px}
.seg button,.seg a{background:var(--field);color:var(--ink2);border-right-color:var(--field-line)}
.seg button.on,.seg a.on,html[data-theme="dark"] .seg button.on{background:var(--grad);color:#fff}
.chip{border-radius:999px;padding:2px 8px}
.tabs{border-bottom-color:var(--line)}
.tabs a,.tabs button{border-radius:var(--r-sm) var(--r-sm) 0 0}
.tabs .on{color:var(--accent);border-bottom-color:var(--accent)}

/* ---- sidebar: glass that follows the theme; logo lockup on top; show / hide labels */
.side{background:var(--side-bg);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--ink);border-right:1px solid var(--line);z-index:30;transition:width .2s ease}
/* light: a soft navy-tinted glass, not plain white (owner 11/08/2026); dark: the dark glass */
:root{--side-bg:linear-gradient(180deg,rgba(214,228,245,.92) 0%,rgba(200,218,240,.92) 100%)}
html[data-theme="dark"]{--side-bg:linear-gradient(180deg,rgba(13,30,54,.92) 0%,rgba(9,22,41,.92) 100%)}
.side #nav a:hover,.side .navgh:hover{background:rgba(255,255,255,.55)}
html[data-theme="dark"] .side #nav a:hover,html[data-theme="dark"] .side .navgh:hover{background:var(--hover)}
.brand{border-bottom:1px solid var(--line);padding:18px 18px 14px;position:relative}
.brand b,.brand b.brandname{color:var(--ink);font-size:21px}
.brand .brandmark{color:#1E3A5F;width:42px;height:42px;flex:none}
html[data-theme="dark"] .brand .brandmark{color:#fff}
/* the Knewmer0 kit's logo (owner 11/21/2026): the mark draws itself in once (ring, then the line, then the dot) */
.brandmark .km-ring{stroke-dasharray:76;stroke-dashoffset:76;animation:km-draw .7s ease-out forwards}
.brandmark .km-line{stroke-dasharray:34;stroke-dashoffset:34;animation:km-draw .6s ease-out .55s forwards}
.brandmark .km-dot{transform-box:fill-box;transform-origin:center;transform:scale(0);animation:km-pop .35s cubic-bezier(.34,1.56,.64,1) 1.05s forwards}
@keyframes km-draw{to{stroke-dashoffset:0}}
@keyframes km-pop{to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.brandmark .km-ring,.brandmark .km-line,.brandmark .km-dot{animation:none;stroke-dashoffset:0;transform:none}}
@media print{.brandmark .km-ring,.brandmark .km-line,.brandmark .km-dot{animation:none;stroke-dashoffset:0;transform:none}}
.brand .tagline{color:var(--tagc)}
.brand .slash0{color:#08b653}
html[data-theme="dark"] .brand .slash0{color:#3ddc84}
.co-btn{background:var(--line2);border:1px solid var(--line);color:var(--ink);border-radius:var(--r-sm)}
.co-btn:hover{background:var(--hover)}
#nav a,.navgh{color:var(--ink2);border-radius:var(--r-sm)}
#nav a:hover,.navgh:hover{background:var(--hover);color:var(--ink)}
#nav a.active,.navgrp.closed.has-active .navgh{background:var(--side-active);color:var(--ink);box-shadow:inset 3px 0 0 #ffbe25}  /* brand yellow, owner 11/10/2026 */
#nav a.active .ni,#nav a.active .nabbr{color:var(--side-active-ink);border-color:var(--side-active-ink)}
.navh{color:var(--ink3)}
.navgh .chev{color:var(--ink3)}
.navsub{border-left-color:var(--line)}
#nav .nabbr{border-color:var(--field-line);color:var(--ink2)}
#nav .navsub a small{color:var(--ink3)}
/* New entry: green with white text (owner 11/08/2026): a deeper shade of the logo's green, so white passes AA,
   into a touch of blue */
#nav a.cta,#nav a.cta:hover,#nav a.cta.active{background:linear-gradient(135deg,#067a38 0%,#067a38 55%,color-mix(in srgb,#067a38 75%,#1f5f99) 100%);
  color:#fff;border:0;border-radius:var(--r);height:40px;margin:6px 8px 12px;box-shadow:0 10px 24px -10px rgba(8,182,83,.75)}
#nav a.cta:hover{filter:brightness(1.1)}
#nav a.cta .ni{color:#fff}
/* the Journal entries page's + New entry matches the sidebar's (owner 11/09/2026) */
.btn.primary.newent,.btn.primary.newent:hover,html[data-theme="dark"] .btn.primary.newent,html[data-theme="dark"] .btn.primary.newent:hover{background:linear-gradient(135deg,#067a38 0%,#067a38 55%,color-mix(in srgb,#067a38 75%,#1f5f99) 100%);color:#fff;border-color:transparent;box-shadow:0 10px 24px -10px rgba(8,182,83,.75)}
.btn.primary.newent:hover{filter:brightness(1.1)}
.side-foot{border-top:1px solid var(--line);background:transparent}
.side-foot .themesw{border-color:var(--line);background:var(--line2);border-radius:var(--r-sm)}
.side-foot .themesw button{color:var(--ink3)}
.side-foot .themesw button+button{border-left-color:var(--line)}
.side-foot .themesw button.on{background:var(--card);color:var(--ink)}
.side-foot .themesw button:hover:not(.on){color:var(--ink)}
.side-foot .who b{color:var(--ink)}
.side-foot .who .role{background:var(--line2);color:var(--ink2)}
.side-foot .me-link:hover,.side-foot .me-link:focus-visible{background:var(--hover)}
.side-foot #logout{color:var(--ink2)}
.side-foot #logout:hover{background:var(--hover);color:var(--ink)}
.side-foot #whatsnew{color:var(--tagc)}
/* the round show / hide labels button, on the line between the sidebar and the page, at the top */
.side-tog{position:absolute;top:26px;right:-16px;width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--ink2);
  display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow);z-index:31;padding:0}
.side-tog::before{content:"";position:absolute;inset:-6px;border-radius:50%}
.side-tog:hover{color:var(--ink)}
.side-tog svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
#shell.side-auto .side-tog svg{transform:rotate(180deg)}
/* auto-minimize (owner 11/17/2026): the menu rests as icons; opened by the pointer it lies over the page, which never moves */
@media (min-width:901px) and (hover:hover){
  #shell.side-auto .side{position:fixed;left:0;top:0;height:100vh;z-index:45;transition:width .28s cubic-bezier(.22,.8,.24,1),box-shadow .28s ease}
  #shell.side-auto:not(.side-mini):not(.side-rail) .side{box-shadow:0 0 44px rgba(0,0,0,.28)}
  #shell.side-auto .main{padding-left:64px}
  /* the rail: the full menu's own layout, 64px wide, every icon on the rail's centre line (x 32) in both states, so opening
     only widens it; labels fade, headings and sub-pages fold up, the company shows as its initials (owner 11/17/2026) */
  #shell.side-rail .side{width:64px}
  #shell.side-auto #nav{overflow-x:hidden}
  #shell.side-auto #nav a,#shell.side-auto .navgh,#shell.side-auto .navh,#shell.side-auto .brand>div,#shell.side-auto .side-foot{white-space:nowrap}
  #shell.side-auto #nav a,#shell.side-auto .navgh{padding-left:15px;position:relative}
  #shell.side-auto .brand{padding-left:11px}
  #shell.side-auto .side-foot{padding-left:16px}
  /* fade */
  #shell.side-auto #nav .nl,#shell.side-auto .navgh .chev,#shell.side-auto .brand>div,#shell.side-auto #nav a.cta span,
  #shell.side-auto .side-foot .who,#shell.side-auto .side-foot #logout{transition:opacity .16s ease .12s}
  #shell.side-rail #nav .nl,#shell.side-rail .navgh .chev,#shell.side-rail .brand>div,#shell.side-rail #nav a.cta span,
  #shell.side-rail .side-foot .who,#shell.side-rail .side-foot #logout{opacity:0;transition-delay:0s;pointer-events:none}
  /* fold up: headings, sub-pages, theme buttons, What's new */
  #shell.side-auto .navh,#shell.side-auto .navsub,#shell.side-auto .side-foot .themesw,#shell.side-auto .side-foot #whatsnew{overflow:hidden;
    transition:max-height .28s cubic-bezier(.22,.8,.24,1),opacity .16s ease .12s,padding .28s cubic-bezier(.22,.8,.24,1),margin .28s cubic-bezier(.22,.8,.24,1)}
  #shell.side-auto .navh{max-height:44px}
  #shell.side-auto .navsub{max-height:640px}
  #shell.side-auto .side-foot .themesw,#shell.side-auto .side-foot #whatsnew{max-height:40px}
  #shell.side-rail .navh,#shell.side-rail .navsub,#shell.side-rail .side-foot .themesw,#shell.side-rail .side-foot #whatsnew{max-height:0;
    opacity:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-width:0;transition-delay:0s;pointer-events:none}
  #shell.side-rail .side-foot{gap:0}
  /* a count (Checks) sits on its icon */
  #shell.side-rail #nav a .badge{position:absolute;left:30px;top:1px;font-size:10px;padding:0 5px;opacity:1}
  /* New entry: the + stays on the centre line and the button narrows to a round 40px one */
  #shell.side-auto #nav a.cta{justify-content:flex-start;margin-left:4px;padding:0 0 0 12px;width:calc(100% - 12px);overflow:hidden;
    transition:width .28s cubic-bezier(.22,.8,.24,1),border-radius .28s cubic-bezier(.22,.8,.24,1)}
  #shell.side-rail #nav a.cta{width:40px;border-radius:20px}
  /* the company: its initials under the logo, in the space the name leaves; a click opens the company list */
  #shell.side-auto .co-mini{display:grid;position:absolute;left:14px;top:72px;opacity:0;pointer-events:none;transition:opacity .16s ease}
  #shell.side-rail .co-mini{opacity:1;pointer-events:auto;transition-delay:.1s}
}
.co-mini{display:none;width:36px;height:36px;border-radius:10px;place-items:center;border:1px solid var(--line);background:var(--line2);
  color:var(--ink);font:700 12px/1 var(--font, inherit);letter-spacing:.02em;cursor:pointer;padding:0}
.co-mini:hover{background:var(--hover)}
@media (min-width:901px) and (hover:hover) and (prefers-reduced-motion:reduce){
  #shell.side-auto .side,#shell.side-auto #nav a.cta,#shell.side-auto .navh,#shell.side-auto .navsub{transition:none}
}
/* labels hidden: icons only (sub-pages keep their short codes) */
@media (min-width:901px){
  #shell.side-mini .side{width:84px}
  #shell.side-mini .brand{justify-content:center;padding:18px 8px 14px}
  #shell.side-mini .brand>div{display:none}
  #shell.side-mini .brand .brandmark{width:40px;height:40px}
  #shell.side-mini #nav{padding:8px 10px}
  #shell.side-mini #nav .nl,#shell.side-mini .navh,#shell.side-mini .navgh .chev{display:none}
  #shell.side-mini #nav a .badge{position:absolute;top:1px;right:6px;font-size:10px;padding:0 5px}
  #shell.side-mini #nav a,#shell.side-mini .navgh{justify-content:center;padding:9px 0;position:relative}
  #shell.side-mini #nav a.cta{margin:6px auto 12px;padding:0;width:48px;height:48px}
  #shell.side-mini #nav a.cta span{display:none}
  #shell.side-mini #nav a.cta .ni{width:22px;height:22px}
  #shell.side-mini .navsub{margin:2px 0 4px;padding:0;border-left:0}
  #shell.side-mini #nav .navsub a{padding:5px 0}
  #shell.side-mini #nav .ni{width:20px;height:20px}
  #shell.side-mini .navh+*{margin-top:10px}
  #shell.side-mini .side-foot{padding:12px 8px 14px;align-items:center}
  #shell.side-mini .side-foot .themesw{flex-direction:column;height:auto;width:44px}
  #shell.side-mini .side-foot .themesw button{height:32px}
  #shell.side-mini .side-foot .themesw button+button{border-left:0;border-top:1px solid var(--line)}
  #shell.side-mini .side-foot .who,#shell.side-mini .side-foot #logout,#shell.side-mini .side-foot #whatsnew{display:none}
  #shell.side-mini .side-foot .me-link{flex:none;margin:0}
}
@media (max-width:900px){.side-tog{display:none}}

/* ---- top bar: glass, the search first and large, then the period */
.top,html[data-theme="dark"] .top{background:var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);min-height:68px;padding:10px 24px;gap:10px 14px}
.top .gs{order:1;flex:1 1 300px;max-width:680px}
.top .period{order:2}
.top .menu{order:0}
.top .spacer{order:3}
.gs input,html[data-theme="dark"] .gs input{height:46px;border-radius:var(--r);border:1px solid var(--line);padding:0 16px 0 42px;font-size:15px;
  background:var(--glass) var(--gs-ico) no-repeat 15px 50%/17px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:var(--shadow);color:var(--ink)}
.gs input::placeholder{color:var(--ink3)}
.period input,.period select{height:40px;border-radius:var(--r)}
.period input{font-family:var(--mono);font-size:13px}
.iconbtn{color:var(--ink)}
@media (max-width:700px){.top .gs{flex:1 1 100%}}

/* ---- dashboard: the new cards, numbers in monospace, rows end level */
.dz-tile{border-radius:var(--r)}
.dz-v{font-weight:600}
.dz-op{width:20px;height:20px;left:-16px;border-radius:50%;background:var(--card);border:1px solid var(--line);font:600 12px/18px var(--mono);color:var(--ink3)}
.dz-task{border-radius:999px;background:var(--glass);min-height:40px}
.dz-grid{gap:20px}
.dz-tiles{gap:14px;margin-bottom:20px}
.dz-low{margin-top:20px}
.dz-ring-v{font-family:var(--mono)}
.dz-row,.dz-cost,.dz-who{border-radius:10px}

/* ---- Knewit: the new colours only */
.kw-panel{border-radius:var(--r);box-shadow:var(--shadow-pop)}

/* ---- touch screens and phones: 44px targets */
@media (pointer:coarse),(max-width:700px){
  .btn,.btn.sm,.field input,.field select,.toolbar input[type=search],.toolbar select,.toolbar .tawrap>input,.seg,.period input,.period select,.lines td input,.lines td select{min-height:44px}
  #nav a,.navgh,.tabs a,.tabs button,.dz-row,.dz-cost,.dz-who,.dz-task,.gs-item{min-height:44px}
  .gs input{height:48px}
  table.t td{padding-top:12px;padding-bottom:12px}
}

/* ---- no motion when reduced motion is on */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* ---- paper stays plain */
/* Scrollbars everywhere (owner 11/09/2026): a thin faint line while the cursor is elsewhere, full width only on the scrolling
   box nearest the cursor (.sb-on, set by app.js), no arrow buttons. Chrome/Edge draw the thumb inside a transparent border, so only its look changes, never the layout. */
::-webkit-scrollbar{width:10px;height:10px;background:transparent}
::-webkit-scrollbar-button{display:none;width:0;height:0}
::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--ink3) 35%,transparent);background-clip:padding-box;border:4px solid transparent;border-radius:10px;min-height:28px}
.sb-on::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--ink3) 60%,transparent);border-width:2px}
::-webkit-scrollbar-thumb:hover,::-webkit-scrollbar-thumb:active{background-color:var(--ink3);border-width:1px}
@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--ink3) 50%,transparent) transparent}}
@media print{
  :root,html[data-theme="dark"]{--bg:#fff;--card:#fff;--glass:#fff;--ink:#16202c;--ink2:#4a5868;--ink3:#7b8796;--line:#dfe4ea;--line2:#eef1f4;--surface2:#f7f8fa}
  body{background:#fff!important;background-image:none!important}
  .card,.tablewrap,.cmpbar{box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-radius:0!important}
  .side-tog{display:none!important}
}
/* Support "+ New chat": the green of New entry (`.newent`) with its + icon (owner 11/10/2026) */
.btn.sup-cta{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.btn.sup-cta svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round}
/* Support in the top bar, right (owner 11/10/2026) */
.top .top-sup{order:4;margin-left:auto;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 14px;border-radius:999px;
  border:1px solid var(--field-line);background:var(--field);color:var(--ink);font-weight:600;font-size:14px;text-decoration:none}
.top .top-sup:hover{background:var(--hover);text-decoration:none;border-color:#ffbe25;box-shadow:inset 0 0 0 1px #ffbe25}
.top .top-sup.on{border-color:#ffbe25;box-shadow:inset 0 0 0 1px #ffbe25}
.top .top-sup svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.top .top-sup .badge{margin-left:2px}
@media (max-width:700px){.top .top-sup span:first-of-type{display:none}.top .top-sup{padding:0 11px}}
@media print{.top .top-sup{display:none}}
/* Server storage beside Support, Super Admins on the Dashboard (owner 11/14/2026) */
.top .top-disk{order:4;margin-left:auto;display:inline-flex;flex-direction:column;justify-content:center;gap:4px;height:40px;padding:0 12px;
  border-radius:999px;border:1px solid var(--field-line);background:var(--field);color:var(--ink2);font-size:11px;text-decoration:none;min-width:120px;flex:none}
.top:has(.top-disk:not(.hidden)) .gs{flex-basis:180px}   /* room for it, so the bar stays one line */
@media (max-width:1440px){.top .top-disk{min-width:70px}.top .top-disk .td-free{display:none}}
.top .top-disk.hidden{display:none}
.top .top-disk:hover{background:var(--hover);text-decoration:none;border-color:#ffbe25}
.top .top-disk:not(.hidden) + .top-sup{margin-left:8px}
.top .top-disk .stor-bar{height:6px}
.top .top-disk .td-t{display:flex;justify-content:space-between;gap:10px;line-height:1}
.top .top-disk b{color:var(--ink)}
@media print{.top .top-disk{display:none}}
/* segmented buttons clip their edges (overflow:hidden): draw the focus ring inside the button (owner 11/10/2026) */
.seg button:focus-visible{outline-offset:-3px!important}
/* the end buttons take the group's round corners, so the ring follows the curve instead of poking out */
.seg>button:first-child,.seg>a:first-child{border-top-left-radius:calc(var(--r) - 1px);border-bottom-left-radius:calc(var(--r) - 1px)}
.seg>button:last-child,.seg>a:last-child{border-top-right-radius:calc(var(--r) - 1px);border-bottom-right-radius:calc(var(--r) - 1px)}
/* typed list boxes in a toolbar (Subsidiary ledger): room for the ▾ */
.toolbar .tawrap>input{padding-right:26px!important}
/* Insights (owner 11/14/2026): findings as cards with a coloured edge (act red, watch amber, going well green) */
.ins-sum{display:flex;gap:10px;flex-wrap:wrap;margin:4px 0 6px}
.ins-sum span{padding:6px 14px;border-radius:999px;font-weight:650;font-size:13px;background:var(--card);border:1px solid var(--line)}
.ins-sum .ins-act{color:#c0392b}.ins-sum .ins-watch{color:#a86400}.ins-sum .ins-good{color:#0a7a3a}
.ins-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.ins-f{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border-radius:14px;background:var(--card);border:1px solid var(--line);
  border-left:5px solid var(--line);color:var(--ink);text-decoration:none}
.ins-f:hover{text-decoration:none;background:var(--hover)}
.ins-f b{font-size:15px;line-height:1.3}.ins-t{color:var(--ink2);font-size:13px;line-height:1.45}
.ins-tag{font-size:11.5px;font-weight:650;color:var(--ink3)}
.ins-f.ins-act{border-left-color:#e05a47}.ins-f.ins-watch{border-left-color:#ffbe25}.ins-f.ins-good{border-left-color:#08b653}
.ins-rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.ins-r{padding:14px 16px;border-radius:14px;background:var(--card);border:1px solid var(--line);border-top:4px solid var(--line)}
.ins-r.ins-act{border-top-color:#e05a47}.ins-r.ins-watch{border-top-color:#ffbe25}.ins-r.ins-good{border-top-color:#08b653}
.ins-rv{font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;font-size:24px;font-weight:700}.ins-rv small{font-size:13px;color:var(--ink3)}
.ins-rl{font-weight:650;margin-top:2px}.ins-rm{color:var(--ink2);font-size:12.5px;line-height:1.4;margin-top:4px}
@media print{.ins-f,.ins-r{break-inside:avoid}}
button.ins-f{font:inherit;text-align:left;cursor:pointer;width:100%}
/* Insights card = the three counts as buttons (owner 11/15/2026) */
.ins-sum .ins-c{font:inherit;font-weight:650;font-size:14px;padding:8px 18px;border-radius:999px;background:var(--card);border:1px solid var(--line);cursor:pointer}
.ins-sum .ins-c:hover:not(:disabled){background:var(--hover);border-color:#ffbe25}
.ins-sum .ins-c:disabled{opacity:.55;cursor:default}
.ins-c.ins-act{color:#e05a47}.ins-c.ins-watch{color:#c98200}.ins-c.ins-good{color:#0a8a40}
:root[data-theme="dark"] .ins-c.ins-good{color:#3ddc84}

/* Inventory (owner 11/16/2026): the item boxes under a purchase line on a stock account */
.stockbox{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:2px 0 6px}
.stockbox .stk-lbl{font-size:12.5px}
.stockbox select{max-width:340px}
.stockbox input[data-f=stk_qty]{width:110px;text-align:right}

/* Tax returns (owner 11/17/2026): the form at a readable width, centred, so each amount sits near its description;
   descriptions wrap (never cut) */
.retwrap{max-width:1120px;margin:0 auto}
.retwrap table.t td.wrap{white-space:normal;overflow:visible;text-overflow:clip;min-width:260px}
.retwrap table.t td.n,.retwrap table.t th.n{width:1%;white-space:nowrap}

/* Settings tabs (owner 11/20/2026): one group at a time, not stretched across a wide screen */
.setpanel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 14px; align-items: start; }
.setpanel > .card { margin: 0; }
/* each form fills the width: its groups side by side (owner 11/20/2026: "extend to the right") */
.setpanel > #sbf, .setpanel > #sf { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  column-gap: 36px; row-gap: 8px; align-items: start; }
#sbf > :not(.stcol), #sf > :not(.stcol) { grid-column: 1 / -1; }
#sbf > .stcol, #sf > .stcol { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.stph { margin: 2px 0 10px; font-size: 15px; }
.side .brandmark, .side .brandname, .side .tagline { cursor: pointer; }
/* entry page ‹ › (owner 11/20/2026) */
.entnav { display: inline-flex; gap: 4px; }
.entnav .btn { min-width: 40px; font-size: 18px; line-height: 1; padding-left: 10px; padding-right: 10px; }
/* Chart of accounts beginning balance: an amount that edits in place (owner 11/20/2026) */
.oblink { background: none; border: 0; padding: 2px 4px; margin: -2px -4px; font: inherit; color: var(--link, #1f6aa8); cursor: text;
  border-radius: 6px; font-variant-numeric: tabular-nums; }
.oblink:hover { background: var(--surface2, rgba(31,106,168,.08)); text-decoration: underline dotted; }
.obin { width: 100%; min-width: 120px; text-align: right; font: inherit; font-variant-numeric: tabular-nums; padding: 3px 6px; }
/* ‹ › sit in the entry card's top right corner (owner 11/20/2026) */
#ef { position: relative; }
.entnav.incard { position: absolute; top: 16px; right: 16px; z-index: 2; }
#ef:has(.entnav.incard) .htop { padding-right: 96px; }
/* Chart of accounts total (owner 11/20/2026): zero = balanced */
.coa-tot td { border-top: 2px solid var(--line, #8894a3); font-weight: 700; }
.coa-tot.off td.n { color: var(--bad, #d64545); }
.coa-off { color: var(--bad, #d64545); }
/* Import & backup tab: the (tall) import on the left, Download all reports, Backup & export and Server storage stacked on the right */
/* branches (owner 11/21/2026): the top bar's Branch choice, the Branch column and each branch's balance under the lines */
#p-branch { max-width: 170px; }
.t tr.pjh td { background: transparent; font-size: 13.5px; padding-top: 14px; }
.t tr.pjh td:not(:first-child) { visibility: hidden; }   /* a section heading carries no amounts */
#p-branch.on { box-shadow: inset 0 0 0 2px #ffbe25; font-weight: 600; }
#ln-table th.c-br { width: 130px; }
#ln-table td.c-br select { width: 100%; min-width: 0; }
.brbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: var(--warn-bg, rgba(255,190,37,.12)); }
.brbar.fine { background: transparent; }
.brchip { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line, #d0d7e2); font-size: 13px; white-space: nowrap; }
.brchip.ok { color: var(--ok, #08824a); }
.brchip.bad span { color: var(--bad, #c62828); font-weight: 600; }
/* two columns of their own that end level: the last card of the shorter one stretches (owner 11/20/2026: no empty space) */
.setpanel.cols { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }
.setpanel.cols > #storage { flex: 1 1 100%; margin: 0; }   /* Server storage: the full width, below both columns */
.setpanel.cols > .dcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.setpanel.cols > .dcol > .card { margin: 0; }
.setpanel.cols > .dcol > .card:last-child { flex: 1 1 auto; }
@media (max-width: 900px) { .setpanel.cols { flex-direction: column; } }
