/* v133 — design tokens + control-size normalisation. Loaded LAST so it only fixes the off-scale leftovers of the older layers.
   Scale:  controls 40 (sm 32; touch 44)  ·  compact inline fields 34  ·  radius ctl 14 / compact 10 / card 18 / pill 99.  */
:root{--ctl-h:40px;--ctl-h-sm:32px;--ctl-h-touch:44px;--ctl-h-compact:34px;--r-ctl:14px;--r-ctl-sm:10px;--r-card:18px;--r-pill:99px}
/* inline fields in tables/toolbars were 28–33px tall: raise to the compact step (zero-specificity: any existing larger min-height keeps winning) */
:where(#view) :where(input,select):not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=hidden],[type=button],[type=submit]){min-height:var(--ctl-h-compact)}
/* hero-header buttons were 36px: same height as every other button */
.vhead.hero .btn{height:var(--ctl-h)}
@media (max-width:700px){
  /* small buttons were a mix of 34px and 44px on phones: one touch-friendly step */
  .btn.sm,#view .tw.cards td.c-act .btn{min-height:40px}
}
/* v145 — keyboard focus on controls built from div/span/tr (role=button, tabindex=0 added by js/ui.js): always a visible ring, inset so a clipping card does not hide it.
   Native buttons/links/fields keep their own ring (styles.css, ui3.css, glass.css). The dialog itself is only a focus container: no ring on it. */
:where([role=button],[tabindex="0"]):focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
#modalRoot .modal:focus,.sheet:focus{outline:none}
/* "new version available" toast (js/boot.js): sits above the ordinary toast row, never replaced by it */
#toastSticky .toast{display:flex;align-items:center;gap:10px;border-radius:12px;padding:10px 14px;font-size:13.5px;bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
#toastSticky .toast i{font-style:normal;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none;background:rgba(127,127,127,.22)}
#toastSticky .toast>button:not(.btn){background:none;border:0;color:inherit;opacity:.8;cursor:pointer;padding:4px 6px;font-size:14px}
@media (max-width:900px){#toastSticky .toast{bottom:calc(150px + env(safe-area-inset-bottom,0px))!important;left:12px!important;right:12px!important;transform:none!important;max-width:none!important}}
