/* ============================================================
   Panel design tokens (HQU-1593)
   --------------------------------------------------------------
   Ported from the :root block of the AuditTrace records PWA's
   records.css (Hque.Aspire.Records.UI) — the phone-first staff
   app this member app now looks like. Same values, renamed
   --rec-* → --panel-* so they read as this app's own.

   ONE light palette, no dark counterpart. Mirrored in C# at
   Components/Layout/PanelTheme.cs for MudBlazor, which parses
   palette strings as MudColor and will not accept var(--…) — so
   if a value moves here, move it there too.

   COLOUR RULE (from records.css): every colour in app.css
   resolves through a property declared here. A literal in a rule
   is a value that can never be re-pointed — don't add one.
   ============================================================ */

:root {
    /* Surfaces. Warm paper ground, white cards — Records' ground, not the portal's greener
       #F1F4F1, because this is the same kind of surface: a phone app used out in the world. */
    --panel-bg: #f5f3ee;
    --panel-surface: #fff;
    --panel-raised: #f7f9f7;        /* tiles, the image well behind a product */
    --panel-sunken: #e9edea;        /* notes, asides */
    --panel-hover: #e9edea;
    --panel-shadow: rgba(22, 33, 29, 0.10);
    --panel-scrim: rgba(22, 33, 29, 0.32);

    /* Ink */
    --panel-text: #16211d;
    --panel-body: #33443c;
    --panel-muted: #47574f;
    --panel-faint: #5b6b61;         /* still 4.5:1 on the sunken grey, which #627268 is not */

    /* Lines */
    --panel-border: #d3dad5;
    --panel-border-soft: #e4e9e5;
    --panel-edge: #bcc7c0;          /* an input's resting border */

    /* Accents. The primary action is INK — the records surface has no brand accent, and
       colour is kept for what a thing IS (the tones below), not for chrome. */
    --panel-accent: #16211d;
    --panel-accent-hover: #0b120f;
    --panel-on-accent: #fff;
    --panel-link: #2563eb;
    --panel-focus: rgba(22, 33, 29, 0.28);

    /* Status pills — Records' lifecycle tags. Earth-and-safety, deliberately not blue. */
    --panel-tone-neutral-bg: #e5eae7;  --panel-tone-neutral-fg: #55665f;
    --panel-tone-active-bg: #fce9dd;   --panel-tone-active-fg: #a93b08;
    --panel-tone-positive-bg: #dcebe1; --panel-tone-positive-fg: #12603b;
    --panel-tone-warning-bg: #fbe4e2;  --panel-tone-warning-fg: #a31212;
    --panel-tone-muted-bg: #e9edea;    --panel-tone-muted-fg: #5b6b61;

    /* Verdict banners — an inline error or success message on a card. */
    --panel-v-danger-bg: #fbe4e2;  --panel-v-danger-bd: #eec3bf;  --panel-v-danger-fg: #a31212;
    --panel-v-success-fg: #12603b;

    /* Black behind the camera feed, before the stream arrives. */
    --panel-video-bg: #000;

    /* Type. Public Sans for running text, Archivo for the few pieces of display type. The
       fallbacks matter on a phone on poor signal, where the webfont may not have arrived. */
    --panel-font-body: 'Public Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --panel-font-display: 'Archivo', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Radii, as Records draws them: controls 6px, list cards 10px, the sign-in tile 16px. */
    --panel-radius-control: 6px;
    --panel-radius-card: 10px;
    --panel-radius-tile: 16px;

    /* Minimum tap target — Records' --rec-tap, the portal's --tap-min. */
    --panel-tap: 46px;

    /* The reading column. Narrower than Records' 940px: every screen here is a phone list. */
    --panel-page-max: 600px;

    /* The bottom bar's height, so the page can keep its last card clear of it. */
    --panel-nav-height: 64px;
}
