/* devanagari */
@font-face {
  font-family: '__Poppins_c51512';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/db911767852bc875-s.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
/* latin-ext */
@font-face {
  font-family: '__Poppins_c51512';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/f10b8e9d91f3edcb-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Poppins_c51512';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/8888a3826f4a3af4-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: '__Poppins_c51512';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/29e7bbdce9332268-s.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
/* latin-ext */
@font-face {
  font-family: '__Poppins_c51512';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/c3bc380753a8436c-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Poppins_c51512';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/0484562807a97172-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: '__Poppins_c51512';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/29a4aea02fdee119-s.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
/* latin-ext */
@font-face {
  font-family: '__Poppins_c51512';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/a1386beebedccca4-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Poppins_c51512';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/b957ea75a84b6ea7-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Poppins_Fallback_c51512';src: local("Arial");ascent-override: 93.62%;descent-override: 31.21%;line-gap-override: 8.92%;size-adjust: 112.16%
}.__className_c51512 {font-family: '__Poppins_c51512', '__Poppins_Fallback_c51512';font-style: normal
}.__variable_c51512 {--font-poppins: '__Poppins_c51512', '__Poppins_Fallback_c51512'
}

/* cyrillic-ext */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/7b19b489dc6743ba-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/28793f5c5e3d822d-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/c9c3823090ec8b55-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/b3bf17a9041d9433-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/2801417b65625cf5-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/26d4368bf94c0ec4-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/7b19b489dc6743ba-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/28793f5c5e3d822d-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/c9c3823090ec8b55-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/b3bf17a9041d9433-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/2801417b65625cf5-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/26d4368bf94c0ec4-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/7b19b489dc6743ba-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/28793f5c5e3d822d-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/c9c3823090ec8b55-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/b3bf17a9041d9433-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/2801417b65625cf5-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__IBM_Plex_Sans_987bfa';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/26d4368bf94c0ec4-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__IBM_Plex_Sans_Fallback_987bfa';src: local("Arial");ascent-override: 101.32%;descent-override: 27.18%;line-gap-override: 0.00%;size-adjust: 101.17%
}.__className_987bfa {font-family: '__IBM_Plex_Sans_987bfa', '__IBM_Plex_Sans_Fallback_987bfa';font-style: normal
}.__variable_987bfa {--font-plex-sans: '__IBM_Plex_Sans_987bfa', '__IBM_Plex_Sans_Fallback_987bfa'
}

/*
 * Ported from DataCaptive_Portal_MVP_Demo.html's own <style> blocks
 * (tokens + base type: lines ~1-30; component classes .page-h/.btn/.panel/
 * .tbl/.chip/.modal etc: lines ~83-230; Admin Portal specifics .ap-bar/
 * .ap-tbl/.ap-ed-row/.ap-acc: lines ~7301-7377).
 *
 * NOT ported yet: the demo's inline SVG icon() helper -- icons below are
 * left as plain text/omitted rather than invented, flagged inline.
 * NOT ported: the client/team account "kind" distinction (demo's apStatus/
 * F filter chips assume client accounts exist) -- every account here is
 * effectively an internal account across the six platforms, so those
 * filters are reduced to All + per-platform + search. Revisit if client
 * accounts are ever added to this gateway.
 */

:root {
  color-scheme: light;
  --navy: #0d2f6f;
  --ink: #17213b;
  --ink-2: #4b5672;
  --ink-3: #737d93;
  --paper: #f2f5f9;
  --line: #dde3ec;
  --line-2: #edf1f6;
  --good: #0ca30c;
  --warn: #fab219;
  --crit: #d03b3b;
  --good-ink: #11703a;
  --good-bg: #e6f4ea;
  --warn-ink: #865300;
  --warn-bg: #fdf1d3;
  --crit-ink: #a92a2a;
  --crit-bg: #fbe9e9;
  --r: 16px;
  /* next/font/google (see layout.tsx) injects these as CSS variables on
     <html> -- falls back to the literal family names if that's ever
     bypassed (e.g. a page rendered outside the root layout). */
  --display: var(--font-poppins), "Poppins", ui-sans-serif, system-ui,
    sans-serif;
  --text: var(--font-plex-sans), "IBM Plex Sans", ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  --accent: #115ea3;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 30%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent) 80%, #000);
  font-family: var(--text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 {
  font-size: 24px;
  line-height: 1.25;
}
h2 {
  font-size: 16px;
  line-height: 1.35;
}
h3 {
  font-size: 14px;
  line-height: 1.35;
}
p {
  margin: 0;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.muted {
  color: var(--ink-3);
}

/* Page header */
.page-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-h p {
  margin-top: 5px;
  color: var(--ink-2);
  max-width: 64ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover {
  border-color: #c2ccda;
  background: #fafbfd;
}
.btn-p {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-p:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}
.btn-sm {
  height: 32px;
  padding: 0 11px;
  font-size: 13px;
  gap: 6px;
}
.btn-q {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}
.btn-q:hover {
  background: var(--accent-soft);
  border-color: transparent;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Panels */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.panel-b {
  padding: 18px 20px;
}
.panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-2);
}
.sec-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 12px;
}

/* Table */
.cell-t {
  font-weight: 500;
  color: var(--ink);
}
.cell-s {
  font-size: 12.5px;
  color: var(--ink-3);
}
.tbl-wrap {
  overflow-x: auto;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 12.5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: #fbfcfe;
}
.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.tbl tbody tr:last-child td {
  border-bottom: 0;
}
.tbl .r {
  text-align: right;
}

/* Badges (role chips on the People table) */
.bdg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  padding: 2px 9px 2px 7px;
  white-space: nowrap;
  line-height: 1.5;
}
.bdg.fresh {
  background: var(--good-bg);
  color: var(--good-ink);
}
.bdg.neutral {
  background: var(--line-2);
  color: var(--ink-2);
}
.bdg.due {
  background: var(--crit-bg);
  color: var(--crit-ink);
}
.bdg.acc {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* Filter chips + search */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 13px;
  color: var(--ink-2);
}
.chip.on {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-ink);
  font-weight: 500;
}
.searchbox {
  position: relative;
  width: 280px;
  max-width: 100%;
}
.searchbox .inp {
  padding-left: 14px; /* demo adds 36px for a search icon we haven't ported */
}

/* Inputs + checkboxes */
.inp {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.inp:focus {
  outline: 2px solid var(--accent-line);
  outline-offset: 0;
  border-color: var(--accent);
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  padding: 3px 0;
}
.check input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* Modal, matching the demo's Edit-access pattern exactly */
.mback {
  position: fixed;
  inset: 0;
  background: rgba(13, 30, 60, 0.34);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 16px;
}
.modal {
  background: #fff;
  border-radius: 18px;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: 0 24px 60px rgba(13, 30, 60, 0.28);
}
.modal-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px 4px;
}
.modal-h h2 {
  font-size: 17px;
}
.modal-h p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 4px;
}
.modal-b {
  padding: 12px 22px 4px;
}
.modal-f {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 16px 22px 20px;
}
.modal-f .muted {
  margin-right: auto;
  font-size: 12.5px;
}

/* Admin Portal: People and access specifics */
.ap-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ap-tbl td {
  vertical-align: top;
}
.ap-tbl td:first-child {
  min-width: 200px;
}
.ap-acc {
  display: inline-block;
  font-size: 12.5px;
  line-height: 1.35;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink-2);
}
/* One tint per platform, extending the demo's app-dc/app-ep/app-cc/app-ap
   palette to all six platforms this app actually has. */
.ap-acc.app-BI_DATA {
  background: #e3f0ef;
  color: #173b3f;
}
.ap-acc.app-DCCP {
  background: #ece8f3;
  color: #33294a;
}
.ap-acc.app-EN_DC {
  background: #e8f0fb;
  color: #0d2f6f;
}
.ap-acc.app-EN_EC {
  background: #e6e9f2;
  color: #26314d;
}
.ap-acc.app-EN_VL {
  background: #fdf1d3;
  color: #865300;
}
.ap-acc.app-EN_RS {
  background: #fbe9e9;
  color: #a92a2a;
}

.ap-ed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
}
.ap-ed-row:first-of-type {
  border-top: 0;
}
.ap-ed-row.dis {
  opacity: 0.55;
}
.ap-ed-row .check {
  align-items: center;
  gap: 10px;
  flex: 1;
}
.ap-ed-row .check > span:last-child {
  display: flex;
  flex-direction: column;
}
.ap-role {
  width: 270px;
  flex: none;
  height: 36px;
}
.ap-ed-foot {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}

@media (max-width: 620px) {
  .ap-role,
  .ap-search {
    width: 100%;
  }
  .ap-ed-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/*
 * Form primitives used by the sign-in/sign-up page below (and not yet
 * needed by anything ported before it) -- from the demo's own base
 * <style> block, lines ~41-224 of DataCaptive_Portal_MVP_Demo.html.
 */
.small {
  font-size: 12.5px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.hint {
  font-size: 12.5px;
  color: var(--ink-3);
}
.radio-list {
  display: grid;
  gap: 8px;
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
}
.radio input {
  accent-color: var(--accent);
  margin-top: 3px;
}
.radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.radio .r-main {
  flex: 1;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.wordmark .d {
  color: #3a4563;
}
.wordmark .c {
  color: #32aaef;
}

/*
 * Sign-in/sign-up (src/app/login/page.tsx) -- ported verbatim from the
 * demo's own .ob-wrap/.ob-card (onboarding-card shell, shared with other
 * wizard-style pages) and .au-* (auth-specific) rules, lines ~367-392
 * and ~7301-7340 of DataCaptive_Portal_MVP_Demo.html. app-dc/app-ep/
 * app-cc/app-ap icon color classes are kept for the demo's four
 * conceptual apps; app-dccp/app-admin are new, since this repo's own
 * AppKey has more entries than the demo's simplified four-app scheme
 * (BI_DATA/DCCP/EN_DC/EN_EC/EN_VL/EN_RS/ADMIN vs. the demo's dc/ep/cc/ap).
 */
.ob-wrap {
  min-height: calc(100vh - 52px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 44px 16px 80px;
  background: var(--paper);
}
.ob-card {
  width: min(680px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 34px;
}
.ob-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.ob-card h1 {
  font-size: 26px;
}
.ob-card .lede {
  color: var(--ink-2);
  margin-top: 6px;
}
.ob-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 18px;
}
.ob-note .ic {
  margin-top: 2px;
}

.au-wrap {
  min-height: calc(100vh - 52px);
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
}
.au-card {
  width: min(460px, 100%);
  padding: 32px 34px 30px;
}
.au-card.wide {
  width: min(560px, 100%);
}
.au-card h1 {
  font-size: 26px;
  margin: 0 0 6px;
}
.au-card .lede {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.au-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.au-full {
  width: 100%;
  justify-content: center;
  height: 44px;
  margin-top: 4px;
}
.au-alt {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: center;
}
.au-err {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: -6px 0 14px;
  font-size: 13.5px;
  color: var(--crit-ink);
}
.au-err .ic {
  flex: none;
  margin-top: 2px;
}
.au-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.au-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.au-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 10px;
}
.au-card .r-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.au-legal {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  gap: 8px;
}
.au-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.au-who > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.au-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  flex: none;
}
.au-code {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 22px 0 18px;
}
.au-code .inp {
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  padding: 0;
}
.au-choose {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.au-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.au-opt:hover {
  border-color: var(--accent-line);
  background: #fbfdff;
}
.au-opt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.au-opt-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.au-opt-b b {
  font-size: 15px;
  font-weight: 600;
}
.au-role {
  font-size: 12.5px;
  color: var(--accent-ink);
  font-weight: 500;
  margin-top: 2px;
}
.au-opt > .ic:last-child {
  color: var(--ink-3);
  flex: none;
}
.au-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--paper);
  color: var(--ink-2);
}
.au-ic.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.au-ic.app-dc {
  background: #e8f0fb;
  color: #0d2f6f;
}
.au-ic.app-ep {
  background: #e6e9f2;
  color: #26314d;
}
.au-ic.app-cc {
  background: #e3f0ef;
  color: #173b3f;
}
.au-ic.app-ap {
  background: #ece8f3;
  color: #33294a;
}
/* Not in the demo (it has no separate DCCP app) -- a distinct tone kept
   consistent with the family of muted, paper-toned icon backgrounds
   above. */
.au-ic.app-dccp {
  background: #f3e9e3;
  color: #4a2f1f;
}
.au-invite {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line-2);
}
.au-inv-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.au-inv-row > span:last-child {
  display: flex;
  flex-direction: column;
}
.au-done {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--good-bg);
  color: var(--good-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/*
 * Admin Portal Overview (src/app/admin/page.tsx) -- stats row, "Needs
 * you" todo list, per-app cards. Ported from the demo's own base
 * stylesheet (.stats/.todo* lines ~135-140, ~291-292, ~469, ~726-727)
 * and its Admin Portal-specific block (.ap-app*/.ap-apps/.ap-roles,
 * lines ~7341-7349).
 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.stats > div + div {
  border-left: 1px solid var(--line-2);
}
.stat {
  padding: 18px 22px;
}
.stat dt {
  font-size: 12.5px;
  color: var(--ink-3);
}
.stat dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
}
.todo {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid var(--line-2);
}
.todo:first-child {
  border-top: 0;
}
.todo-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--line-2);
  color: var(--ink-2);
}
.todo-ic.due {
  background: var(--crit-bg);
  color: var(--crit-ink);
}
.todo-ic.acc {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.todo-ic.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.todo-ic.ok {
  background: var(--good-bg);
  color: var(--good-ink);
}
.ap-apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ap-app .panel-b {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.ap-app-h {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ap-app-h h3 {
  margin: 0;
  font-size: 15px;
}
.ap-app-n {
  margin: 14px 0 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.ap-app-n b {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  margin-right: 4px;
}
.ap-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  flex: 1;
  align-content: flex-start;
}
.ap-roles .chip {
  font-size: 12px;
  padding: 3px 9px;
}
.ap-app .btn {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .stats,
  .ap-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * Sign-in and security (src/app/admin/security/page.tsx) -- ported from
 * the demo's base stylesheet (.tgl, lines ~342-345) and its Admin
 * Portal-specific block (.ap-set-row/.ap-set/.ap-dom, lines ~7372-7375).
 */
.tgl {
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: #cbd3df;
  border: 0;
  position: relative;
  flex: none;
  transition: background 0.15s;
  cursor: pointer;
}
.tgl::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.tgl[aria-checked="true"] {
  background: var(--accent);
}
.tgl[aria-checked="true"]::after {
  left: 20px;
}
.ap-set-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
}
.ap-set-row:first-child {
  border-top: 0;
}
.ap-set {
  width: 260px;
  height: 36px;
}
.ap-dom {
  font-weight: 600;
  font-size: 13.5px;
}

/* Small inline input variant (src/app/admin/teams/AwayControl.tsx), from the demo's own base stylesheet, line ~818. */
.inp-sm {
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
  border-radius: 8px;
}

