/*
  "One motif" layer for app screens (client portal, vendor portal, admin), 2026-10-29.
  Same tokens and motif as public-web (the D of the IORDesk mark, --radius-d), applied
  quietly: people work in these screens all day, so the content area sits on the light
  reading ground and the sage ground stays in the sidebar and the sign-in pages.
  Remove this file's <link> in the layouts to revert to the token-only look.
*/
body { font-family: var(--font-body); color: var(--color-text); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; color: var(--color-heading); }
p { color: var(--color-text); }
.muted, p.muted { color: var(--color-text-muted); }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

.eyebrow { font-family: var(--font-body); font-size: .85rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--color-text-muted); }
.eyebrow::before { display: none; }

/* the motif on controls */
.btn { border-radius: var(--radius-d); padding-right: 1.4rem; font-weight: 500; box-shadow: none; }
.btn--primary { background: var(--color-primary); color: var(--color-primary-ink); border-color: transparent; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--secondary { background: transparent; border-color: transparent; box-shadow: inset 0 0 0 1.5px var(--color-heading); color: var(--color-heading); }
.btn--secondary:hover { background: var(--color-surface-muted); color: var(--color-heading); border-color: transparent; }
.btn--ghost, .btn--danger { border-radius: var(--radius-d); }
.badge { border-radius: var(--radius-d); padding-right: .8rem; }

/* surfaces: quiet, one tone step, no shadow at rest */
.card, .surface { box-shadow: none; border-color: var(--color-border); border-radius: var(--radius-lg); }
.input, .select, .textarea { background: var(--color-read); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--color-primary); }
.progress > span { background: var(--color-primary); }

/* app shell */
.app-main { background: var(--color-read); }
.app-topbar { background: var(--color-read); box-shadow: none; }
.sidebar { background: var(--color-sidebar-bg); border-right-color: color-mix(in srgb, var(--color-heading) 10%, transparent); }
.sidebar-nav a { border-radius: var(--radius-d); padding-right: 1rem; }
.sidebar-nav a[aria-current="page"] { background: var(--color-surface); color: var(--color-heading); font-weight: 600; box-shadow: inset 4px 0 0 var(--color-primary); }
.table th { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--color-text-muted); }
.kpi-card__value { font-variant-numeric: tabular-nums; }

/* sign-in pages: sage ground, the panel takes the motif */
.auth-shell { background: var(--color-bg); }
.auth-shell__panel { background: var(--color-surface); border: 0; box-shadow: none; border-radius: var(--radius-d-card); }
