/* CARDAR shared component layer — Phase 3 Step 5 (M3, M7, M14, L4).
   Loaded by workspace + Chase only. SSP keeps its PR #908 dark scope and
   admin keeps its own sheet, so neither loads this file; their Step 5
   deltas (SSP radii, admin dialog radii) are edited in place instead.
   Primary button colours are NOT set here — the three jersey themes own
   them (cream deep blue / gradient gold + navy ink / charcoal deep red);
   this file converges shape + interaction state only.
   Grade-label colours are NOT duplicated here: cardar-tokens.css owns
   --grade-* and the .grade-* consumption classes (M8, Step 1 contract). */

/* ---- M3, flat-button ruling (Gestalt similarity, coordinator decision):
   the whole site is already flat — no offset solid (neo-brutalist) button
   shadow exists anywhere — so flat is pinned here as a guard, not a new
   look. The active-tab inset underline still wins: product_theme's
   `body .tab.active` outranks this selector, so it is preserved. ---- */
.btn,.mini,.tab,.btn-secondary{box-shadow:none}

/* ---- M3 focus: 3px solid outline, offset 3px, --info colour. Duplicates
   product_theme on workspace (same values); supplies it on Chase, which
   had no :focus-visible rule. The keyword-search input keeps its own
   more-specific focus rule (pre-existing exception). ---- */
:focus-visible{outline:3px solid var(--info,#2563eb);outline-offset:3px}

/* ---- M3 interaction states, consistent across buttons. Hover reuses the
   workspace brightness(1.1) mechanism; active darkens slightly. Disabled
   is deliberately NOT restated here: workspace + Chase keep their
   verified Step 4 disabled rules, SSP keeps its dark-scope disabled. ---- */
.btn:hover:not(:disabled),.mini:hover:not(:disabled),.tab:hover:not(:disabled){filter:brightness(1.1)}
.btn:active:not(:disabled),.mini:active:not(:disabled),.tab:active:not(:disabled){filter:brightness(.95)}

/* ---- M7 Toast as a CSS component (was JS inline style in workspace.html
   showToast / showToastWithBinderLink). Geometry, colours, weight and
   shadow are verbatim from the old inline style; only the toast's inner
   button radius moves 8px -> 12px (M3 button radius). Behaviour is
   unchanged: plain toast auto-hides after 3200ms, binder-link toast after
   5000ms, neither has a close button (the binder button dismisses its
   own toast). role="status" is still set by the JS that creates the
   element; the [hidden] attribute still hides it (no display rule here
   overrides the UA default). ---- */
#cardarToast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:9999;max-width:calc(100% - 32px);padding:12px 16px;border-radius:12px;background:#ffffff;color:#1a1a1a;font-weight:900;box-shadow:0 8px 30px #0008;text-align:center;opacity:0;transition:opacity .18s}
#cardarToast.cardar-toast-show{opacity:1}
.cardar-toast-btn{margin-left:12px;padding:8px 16px;border:0;border-radius:12px;background:#ffffff;color:#1a1a1a;font-weight:900;cursor:pointer;min-height:44px}

/* ---- L4 move + M3 dialog spec: .binder-version-dialog moves out of the
   workspace inline <style> block into this shared file. Values are
   verbatim except radius 14px -> 16px and padding 20px -> 24px (dialog
   spec). Background stays fixed #ffffff and border stays #e5e7eb on
   purpose: the dialog is a fixed-light surface in every theme, so no
   theme-variant token is substituted here. ---- */
.binder-version-dialog{max-width:min(480px,94vw);background:#ffffff;color:#111111;border:1px solid #e5e7eb;border-radius:16px;padding:24px}
.binder-version-dialog select{display:block;min-height:48px;width:100%;margin:12px 0}
.binder-version-dialog button{min-height:48px;margin-right:8px}
