/* A finishing layer for every screen (the dashboard and the Blade screens), loaded last. Nothing here changes what a screen does or where things sit:
   it is how things feel. Number alignment, type rhythm, a clear keyboard focus, hover and press feedback, soft tinted depth, composed empty and loading
   states. Written against the review in .claude/skills/redesign-existing-projects: work with the stack that is there, no new libraries, small and reversible. */

:root{
  --ease:cubic-bezier(.2,.7,.2,1);
  --t:160ms;
  --focus:#14a898;
  --shadow-soft:0 1px 2px rgba(7,23,45,.05),0 8px 22px -6px rgba(7,23,45,.09);
  --shadow-lift:0 2px 4px rgba(7,23,45,.06),0 14px 30px -8px rgba(7,23,45,.16);
  --radius:14px;               /* containers are softer than the controls inside them */
  --radius-control:10px;
}
html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* ---- type: tighter display sizes, no stranded last words, figures that line up in columns ---- */
h1,h2,h3{text-wrap:balance}
h1{letter-spacing:-.02em}
h2{letter-spacing:-.012em}
p,li,.sub,.hint{text-wrap:pretty}
.sub{max-width:68ch}
/* DM Sans and Manrope have no tabular figures (a 1 is narrower than a 0, so amounts never line up in a column). Number cells use Geist, which does. */
:root{--font-figures:'Geist','DM Sans',system-ui,sans-serif}
td.num,th.num,.tbl .num,input[type=number],output{font-family:var(--font-figures);font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
td.num,.tbl td.num{letter-spacing:-.005em;white-space:nowrap}

/* ---- a clear, consistent keyboard focus (it was missing on most Blade screens) ---- */
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:0;border-color:var(--focus)!important;box-shadow:0 0 0 3px rgba(20,168,152,.22)}
a:focus-visible,button:focus-visible,summary:focus-visible,.btn:focus-visible{border-radius:var(--radius-control)}
.sidebar :focus-visible{outline-color:#4ce0d2}

/* ---- hover, press and a short transition on everything you can click ---- */
a,button,.btn,input,select,textarea,summary,tbody tr,.card{transition:background-color var(--t) var(--ease),border-color var(--t) var(--ease),color var(--t) var(--ease),box-shadow var(--t) var(--ease),transform var(--t) var(--ease)}
.btn,.primary,button.solid{border-radius:var(--radius-control)}
.btn:hover{background:#f4f8fa;border-color:#aebccb}
.btn.primary:hover{background:var(--brand-ink);box-shadow:0 6px 16px -6px rgba(14,145,131,.55)}
.btn:active,.primary:active,button.solid:active,.fs-go:active{transform:translateY(1px) scale(.985)}
.btn:disabled,button:disabled{opacity:.55;cursor:not-allowed}
input[type=text],input[type=email],input[type=tel],input[type=search],input[type=password],input[type=number],input[type=date],select,textarea{border-radius:var(--radius-control)}

/* ---- depth: soft shadows tinted with the navy of the sidebar, not grey ---- */
.card,main.page .card{box-shadow:var(--shadow-soft)}
details.item{box-shadow:var(--shadow-soft)}
.card:hover{box-shadow:var(--shadow-soft)}
.panel,.metrics article,.activity{box-shadow:var(--shadow-soft)}

/* ---- tables: the row you are on is easy to see; empty rows are composed, not a stray grey word ---- */
.card table tbody tr:hover td{background:#f6fafb}
td.muted[colspan]{text-align:center;padding:1.8rem .6rem;color:#7a8696;font-size:.92rem}
.tbl tbody tr:hover{background:#f6fafb}

/* ---- loading: the shape of what is coming, not a bare word ---- */
.skeleton-card{height:86px;border-radius:12px;margin:0 10px 8px;background:linear-gradient(100deg,#eef2f5 30%,#f8fafb 50%,#eef2f5 70%);background-size:220% 100%;animation:shimmer 1.2s linear infinite}
@keyframes shimmer{from{background-position:120% 0}to{background-position:-120% 0}}

/* ---- skip to the content (keyboard and screen reader users) ---- */
.skip{position:absolute;left:12px;top:-60px;z-index:100;background:#fff;color:#07172d;padding:.55rem .9rem;border-radius:var(--radius-control);box-shadow:var(--shadow-lift);font-weight:700;text-decoration:none}
.skip:focus{top:10px}

/* ---- inline notices (instead of a pop-up alert) ---- */
.pf-msg{display:inline-block;margin-left:.6rem;color:var(--bad,#b42318);font-size:.85rem;font-weight:600}
.pf-msg[hidden]{display:none}
.um-photo .pf-msg{display:block;margin:.1rem .5rem .4rem}

/* ---- branded error pages ---- */
.err{min-height:100dvh;display:grid;place-items:center;padding:2rem 1rem;background:var(--bg,#f3f6f8)}
.err-card{max-width:30rem;text-align:center}
.err-code{font:800 5.5rem/1 Manrope,sans-serif;letter-spacing:-.05em;color:#cfe9e5;margin:0}
.err-card h1{margin:.2rem 0 .5rem;font-size:1.6rem}
.err-card p{color:var(--muted,#5d6b7f);margin:0 auto 1.4rem}
.err-card .actions{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
