/* Resqon theme: Light (the default).
   Every colour value of the web lives in a theme file; resqon.css and the views only use the tokens.
   Night (night.css) has the same token names, scoped to [data-theme="night"] and loaded after this
   one; a token added here is added there too. The values follow the
   design system's tokens.json (light column); the phone mirrors them in app_colors.dart. */
:root,
[data-theme="light"] {
    color-scheme: light;

    /* Ground and surfaces */
    --rq-bg: #f4f7fa;                 /* page */
    --rq-surface: #ffffff;
    --rq-surface-alt: #f8fafc;
    --rq-surface-sunk: #e8edf2;       /* segmented tracks, avatar fill */
    --rq-border: #dce4ec;
    --rq-border-soft: #e9eef3;
    --rq-border-strong: #c5d1dd;      /* hover outline of cards and secondary buttons */

    /* Text */
    --rq-text: #172433;               /* ink */
    --rq-text-rgb: 23, 36, 51;
    --rq-text-muted: #5a6a7b;
    --rq-text-muted-rgb: 90, 106, 123;
    --rq-placeholder: #8796a5;
    --rq-on-strong: #ffffff;          /* text on a filled colour (navy, red, status fills) */
    --rq-on-status: #ffffff;          /* text on a filled status colour (badges; dark at night) */

    /* Navy: the rail, mission headers, primary buttons */
    --rq-navy: #142333;
    --rq-navy-rgb: 20, 35, 51;
    --rq-navy-deep: #0b1722;
    --rq-primary: #142333;
    --rq-primary-rgb: 20, 35, 51;
    --rq-primary-hover: #0b1722;
    --rq-on-primary: #ffffff;
    --rq-hero: #142333;               /* navy surfaces with white text (mission card, band, bars) */
    --rq-hero-deep: #0b1722;
    --rq-alert: #b9142a;              /* a running mission's surface with white text (the dashboard card), as the app's alert */
    --rq-check: #142333;              /* ticked checkboxes and radios */

    /* Brand red: one thing at a time */
    --rq-brand: #ef233c;              /* logo, active tab line, live dots */
    --rq-brand-rgb: 239, 35, 60;
    --rq-brand-strong: #d91e35;       /* filled red with white text: the one urgent action */
    --rq-brand-strong-rgb: 217, 30, 53;
    --rq-brand-pressed: #b9142a;      /* urgent bars, pressed red */
    --rq-brand-text: #b9142a;         /* red text on a surface */
    --rq-brand-tint: #fdecee;
    --rq-brand-tint-rgb: 253, 236, 238;
    --rq-brand-border: #f5b5be;

    /* Links and focus */
    --rq-link: #1d4ed8;
    --rq-link-rgb: 29, 78, 216;
    --rq-link-hover: #1e40af;
    --rq-link-hover-rgb: 30, 64, 175;
    --rq-focus: #2563eb;
    --rq-focus-ring: 0 0 0 3px rgba(37, 99, 235, .35);
    --rq-focus-ring-color: rgba(37, 99, 235, .35);

    /* States: text / tint (+ rgb for Tabler) */
    --rq-success: #15803d;  --rq-success-rgb: 21, 128, 61;   --rq-success-bg: #dcfce7; --rq-success-bg-rgb: 220, 252, 231;
    --rq-success-strong: #14532d;  --rq-success-border: #bbf7d0;  --rq-success-line: #86efac;
    --rq-success-fill: #15803d;       /* the *-fill tokens carry white text in every theme */
    --rq-info: #1d4ed8;     --rq-info-rgb: 29, 78, 216;      --rq-info-bg: #dbeafe;    --rq-info-bg-rgb: 219, 234, 254;
    --rq-info-strong: #1e3a8a;     --rq-info-border: #bfdbfe;     --rq-info-line: #93c5fd;
    --rq-pending: #b45309;  --rq-pending-rgb: 180, 83, 9;    --rq-pending-bg: #fef3c7; --rq-pending-bg-rgb: 254, 243, 199;
    --rq-pending-soft: #fffbeb;  --rq-pending-line: #fcd34d;  --rq-pending-strong: #92400e;
    --rq-info-soft: #eff6ff;
    --rq-warning: #c2410c;--rq-warning-rgb: 194, 65, 12;   --rq-warning-bg: #ffedd5; --rq-warning-bg-rgb: 255, 237, 213;
    --rq-warning-pressed: #9a3412; --rq-warning-strong: #7c2d12;  --rq-warning-border: #fed7aa;
    --rq-warning-fill: #c2410c;
    --rq-danger: #b91c1c;   --rq-danger-rgb: 185, 28, 28;    --rq-danger-bg: #fee2e2;  --rq-danger-bg-rgb: 254, 226, 226;
    --rq-danger-pressed: #991b1b;  --rq-danger-strong: #7f1d1d;   --rq-danger-border: #fecaca;
    --rq-danger-fill: #b91c1c;  --rq-danger-fill-pressed: #991b1b;  --rq-danger-deep: #7f1d1d;
    --rq-neutral: #475569;  --rq-neutral-bg: #f1f5f9;        --rq-neutral-bg-rgb: 241, 245, 249;
    --rq-special: #6d28d9;  --rq-special-rgb: 109, 40, 217;  --rq-special-bg: #f3e8ff; --rq-special-bg-rgb: 243, 232, 255;
    --rq-hosted-tint: #ccfbf1; --rq-hosted-ink: #0f766e;  /* a joint activity another station hosts */

    /* Tabler's other named colours (groups, kinds), darkened to AA on their tints */
    --rq-azure: #0369a1;  --rq-azure-rgb: 3, 105, 161;   --rq-azure-bg: #e0f2fe;  --rq-azure-bg-rgb: 224, 242, 254;
    --rq-lime: #4d7c0f;   --rq-lime-rgb: 77, 124, 15;    --rq-lime-bg: #ecfccb;   --rq-lime-bg-rgb: 236, 252, 203;
    --rq-teal: #0f766e;   --rq-teal-rgb: 15, 118, 110;   --rq-teal-bg: #ccfbf1;   --rq-teal-bg-rgb: 204, 251, 241;
    --rq-cyan: #0e7490;   --rq-cyan-rgb: 14, 116, 144;   --rq-cyan-bg: #cffafe;   --rq-cyan-bg-rgb: 207, 250, 254;
    --rq-indigo: #4338ca; --rq-indigo-rgb: 67, 56, 202;  --rq-indigo-bg: #e0e7ff; --rq-indigo-bg-rgb: 224, 231, 255;
    --rq-pink: #be185d;   --rq-pink-rgb: 190, 24, 93;    --rq-pink-bg: #fce7f3;   --rq-pink-bg-rgb: 252, 231, 243;
    --rq-event: #ea580c;  /* station events in the calendar */

    /* Ranks and mission roles: the same in every theme (people learn them by heart) */
    --rq-rank-beginner: #94a3b8;
    --rq-rank-searcher: #16a34a;
    --rq-rank-intern: #2563eb;
    --rq-rank-rescuer: #dc2626;
    --rq-rank-instructorcandidate: #7c3aed;
    --rq-rank-instructor: #ca8a04;
    --rq-role-leader: #142333;
    --rq-role-coordinator: #0e7490;
    --rq-role-recorder: #475569;

    /* Shadows */
    --rq-shadow-float: 0 16px 36px -16px rgba(11, 23, 34, .45);
    --rq-shadow-control: 0 1px 3px rgba(11, 23, 34, .14);
    --rq-shadow-map: 0 1px 4px rgba(20, 35, 51, .14);
    --rq-backdrop: #0b1722;

    /* The navy rail (sidebar) */
    --rq-sidebar-bg: #142333;
    --rq-sidebar-ink: #ffffff;
    --rq-sidebar-text: rgba(255, 255, 255, .72);
    --rq-sidebar-label: rgba(255, 255, 255, .45);
    --rq-sidebar-line: rgba(255, 255, 255, .08);
    --rq-sidebar-hover: rgba(255, 255, 255, .06);
    --rq-sidebar-field: rgba(255, 255, 255, .06);
    --rq-sidebar-field-border: rgba(255, 255, 255, .12);
    --rq-sidebar-active: rgba(239, 35, 60, .16);
    --rq-sidebar-badge-bg: rgba(239, 35, 60, .18);
    --rq-sidebar-badge-text: #ffb3bd;
    --rq-sidebar-contour: rgba(255, 255, 255, .07);
    --rq-sidebar-scroll: rgba(255, 255, 255, .18);

    /* On the navy mission card (the dashboard's running mission, the call-out header) */
    --rq-on-navy-muted: rgba(255, 255, 255, .78);
    --rq-on-navy-line: rgba(255, 255, 255, .1);
    --rq-on-navy-border: rgba(255, 255, 255, .35);
    --rq-on-navy-fill: rgba(255, 255, 255, .16);
    --rq-running-row: #fff5f6;        /* a running mission's row in the list */
}
