/*
 * [tawala CP-W01 2026-11-07] cp-portal.css - the ONE stylesheet of the customer portal (shell + every screen family).
 * Source: Claude Design hand-off claude-design-20261107 (S01 shell/sign-in, S02 home; tokens = CP-S00 Look A, verbatim).
 * Organised by component. Later waves (CP-W02..W06, W08) ADD a section at the end ("== <family> (CP-Wnn)") and reuse the
 * components below; never restyle a shared component inside a family section. Class prefix cp-. No external fonts/CSS.
 * Theme: data-theme="light|dark" on <html> (set by cp-shell.js before paint). Phone layout = max-width 860px.
 */

/* ============================================================== tokens (CP-S00 Look A, verbatim) */
:root {
  --a2-font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --a2-navy: #1B3A6B; --a2-navy-h: #152F57; --a2-navy-a: #10264A; --a2-soft: #E3EAF5;
  --a2-amber: #E89B1C; --a2-amber-ink: #8A5600; --a2-amber-soft: #FCF1DD;
  --a2-ink: #14213D; --a2-muted: #5B6475; --a2-line: #E2E6ED; --a2-field: #C9D0DB; --a2-sub: #F1F4F8; --a2-bg: #F5F7FA;
  --a2-ok: #1E7A46; --a2-ok-bg: #E5F4EA; --a2-bad: #B42318; --a2-bad-bg: #FDECEA;
  --a2-ring: 0 0 0 3px rgba(27, 58, 107, .22);
  --a2-rail: #14213D; --a2-rail-ink: #E6ECF5; --a2-rail-muted: #8E9BB3; --a2-rail-line: #2A3A5C; --a2-rail-hover: #1E2F52;
  --twu-primary: #1B3A6B; --twu-primary-hover: #152F57; --twu-primary-active: #10264A; --twu-primary-soft: #E3EAF5;
  --twu-ink: #14213D; --twu-text: #1F2A44; --twu-muted: #5B6475; --twu-subtle: #8A93A3;
  --twu-bg: #F5F7FA; --twu-surface: #FFFFFF; --twu-surface-2: #F1F4F8; --twu-border: #E2E6ED; --twu-border-strong: #C9D0DB;
  --twu-good: #1E7A46; --twu-good-bg: #E5F4EA; --twu-bad: #B42318; --twu-bad-bg: #FDECEA;
  --twu-warn: #8A5600; --twu-warn-bg: #FCF1DD; --twu-info: #1B3A6B; --twu-info-bg: #E3EAF5;
  --twu-neutral: #5B6475; --twu-neutral-bg: #EEF1F5;
  --twu-chart-1: #1B3A6B; --twu-chart-2: #E89B1C; --twu-chart-3: #2F8F83; --twu-chart-4: #6F8FC2; --twu-chart-5: #B4531A; --twu-chart-6: #8E9BB3;
  --twu-radius: 10px; --twu-radius-sm: 6px; --twu-pill: 6px; --twu-ring: 0 0 0 3px rgba(27, 58, 107, .22);
  --twu-sb-bg: #FFFFFF; --twu-hover: #EEF1F6;
  color-scheme: light;
}
[data-theme="dark"] {
  --a2-navy: #4A74B8; --a2-navy-h: #5B86C9; --a2-navy-a: #3B62A0; --a2-soft: rgba(74, 116, 184, .2);
  --a2-amber: #F0A93B; --a2-amber-ink: #F0A93B; --a2-amber-soft: rgba(240, 169, 59, .16);
  --a2-ink: #EEF2F8; --a2-muted: #9AA6BA; --a2-line: #23324C; --a2-field: #34476A; --a2-sub: #16233A; --a2-bg: #0B1322;
  --a2-ok: #5CC68A; --a2-ok-bg: rgba(92, 198, 138, .14); --a2-bad: #F08A80; --a2-bad-bg: rgba(240, 138, 128, .14);
  --a2-ring: 0 0 0 3px rgba(91, 134, 201, .35);
  --a2-rail: #08101E; --a2-rail-ink: #DCE3EE; --a2-rail-muted: #7F8BA3; --a2-rail-line: #1C2A44; --a2-rail-hover: #14223A;
  --twu-primary: #4A74B8; --twu-primary-hover: #5B86C9; --twu-primary-active: #3B62A0; --twu-primary-soft: rgba(74, 116, 184, .2);
  --twu-ink: #EEF2F8; --twu-text: #DCE3EE; --twu-muted: #9AA6BA; --twu-subtle: #6F7D94;
  --twu-bg: #0B1322; --twu-surface: #111C2E; --twu-surface-2: #16233A; --twu-border: #23324C; --twu-border-strong: #34476A;
  --twu-good: #5CC68A; --twu-good-bg: rgba(92, 198, 138, .14); --twu-bad: #F08A80; --twu-bad-bg: rgba(240, 138, 128, .14);
  --twu-warn: #F0A93B; --twu-warn-bg: rgba(240, 169, 59, .15); --twu-info: #9DB8E3; --twu-info-bg: rgba(74, 116, 184, .2);
  --twu-neutral: #C3CCDA; --twu-neutral-bg: rgba(154, 166, 186, .14);
  --twu-chart-1: #6F8FC2; --twu-chart-2: #F0A93B; --twu-chart-3: #4DB6A8; --twu-chart-4: #9DB8E3; --twu-chart-5: #E07A4A; --twu-chart-6: #7F8BA3;
  --twu-ring: 0 0 0 3px rgba(91, 134, 201, .35); --twu-sb-bg: #111C2E; --twu-hover: #18263F;
  color-scheme: dark;
}

/* ============================================================== base */
html, body { margin: 0; background: var(--twu-bg); }
.cp-root { font-family: var(--a2-font); font-size: 14px; line-height: 1.45; color: var(--twu-text); background: var(--twu-bg); min-height: 100vh;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
.cp-root *, .cp-root *::before, .cp-root *::after { box-sizing: border-box; }
.cp-root h1, .cp-root h2, .cp-root h3, .cp-root p, .cp-root dl, .cp-root dd { margin: 0; }
.cp-root [hidden] { display: none !important; }
.cp-root a:focus-visible, .cp-root button:focus-visible, .cp-root input:focus-visible, .cp-root textarea:focus-visible, .cp-root select:focus-visible { outline: none; box-shadow: var(--a2-ring); }
.cp-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cp-i--16 { width: 16px; height: 16px; stroke-width: 2; }
.cp-i--24 { width: 24px; height: 24px; stroke-width: 1.6; }
.cp-m-only { display: none !important; }
.cp-sp { flex: 1; }
.cp-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cp-skip { position: absolute; left: -10000px; top: 8px; z-index: 100; background: var(--twu-surface); color: var(--twu-primary); padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.cp-skip:focus { left: 8px; }
.cp-noscript { padding: 16px; text-align: center; color: var(--twu-bad); }

/* ============================================================== layout frame */
.cp-frame { position: relative; width: 100%; min-height: 100vh; display: flex; flex-direction: column; background: var(--twu-bg); }
.cp-body { display: flex; flex: 1; min-height: 0; }
.cp-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.cp-page { padding: 24px 28px 32px; max-width: 1240px; width: 100%; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.cp-ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cp-ph-t { display: flex; flex-direction: column; gap: 2px; }
.cp-stack { display: flex; flex-direction: column; gap: 12px; }
.cp-row2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; grid-auto-flow: row dense; }
.cp-span2 { grid-column: span 2; }
.cp-span3 { grid-column: 1 / -1; }

/* ============================================================== type */
.cp-h1 { font-size: 22px; font-weight: 600; color: var(--twu-ink); display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.cp-h2 { font-size: 16px; font-weight: 600; color: var(--twu-ink); display: flex; align-items: center; gap: 6px; }
.cp-h3 { font-size: 14px; font-weight: 600; color: var(--twu-ink); display: flex; align-items: center; gap: 6px; }
.cp-sub { font-size: 13px; color: var(--twu-muted); }
.cp-p { color: var(--twu-muted); font-size: 14px; }
.cp-big { font-size: 28px; font-weight: 600; color: var(--twu-ink); line-height: 1.15; letter-spacing: -.01em; }
.cp-big--xl { font-size: 36px; }
.cp-bad { color: var(--twu-bad) !important; }
.cp-ok-t { color: var(--twu-good); }

/* ============================================================== cp-top (top bar) */
.cp-top { height: 64px; flex: none; background: var(--twu-surface); border-bottom: 1px solid var(--twu-border); display: flex; align-items: center; gap: 8px; padding: 0 20px; position: sticky; top: 0; z-index: 25; }
.cp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; margin-right: 8px; }
.cp-logo { width: 36px; height: 36px; border-radius: 6px; background: var(--a2-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; letter-spacing: .02em; overflow: hidden; }
.cp-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cp-logo--lg { width: 48px; height: 48px; font-size: 16px; border-radius: 10px; }
.cp-brand-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cp-brand-n { font-weight: 600; color: var(--twu-ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-brand-s { font-size: 12px; color: var(--twu-muted); }
.cp-anc { position: relative; display: inline-flex; }
.cp-sw { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--twu-border); border-radius: 6px; background: var(--twu-surface); color: var(--twu-text); font: inherit; font-size: 13px; cursor: pointer; max-width: 340px; }
.cp-sw:hover { background: var(--twu-hover); }
.cp-sw[disabled] { cursor: default; }
.cp-sw-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--twu-ink); }
.cp-ib { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 6px; color: var(--twu-muted); cursor: pointer; flex: none; text-decoration: none; }
.cp-ib:hover { background: var(--twu-hover); color: var(--twu-ink); }
.cp-av { width: 30px; height: 30px; border-radius: 50%; background: var(--twu-primary-soft); color: var(--twu-primary); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.cp-um { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 4px 0 3px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; color: var(--twu-muted); }
.cp-um:hover { background: var(--twu-hover); }
.cp-mchip { height: 36px; max-width: 230px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 10px; border: 1px solid var(--twu-border); border-radius: 6px; background: var(--twu-surface); color: var(--twu-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-width: 0; }
.cp-mchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* CP-G20 tutorial button (cp-ui.js mounts it into .twp-top before .twp-user) */
.cp-top .cp-ui-tbtn { margin: 0 2px; }

/* ============================================================== cp-pop (popovers / phone sheets) + cp-row + cp-noti */
.cp-pop { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; background: var(--twu-surface); border: 1px solid var(--twu-border); border-radius: 10px; box-shadow: 0 12px 32px rgba(20, 33, 61, .18); width: 360px; max-height: 70vh; overflow: auto; padding: 8px; color: var(--twu-text); text-align: left; }
.cp-pop--w { width: 400px; }
.cp-pop--s { width: 280px; }
.cp-pop-h { padding: 8px 10px 6px; font-size: 12px; font-weight: 600; color: var(--twu-muted); display: flex; gap: 6px; align-items: center; }
.cp-pop-sep { height: 1px; background: var(--twu-border); margin: 6px 0; }
.cp-pop-who { padding: 8px 10px 10px; }
.cp-scrim { position: fixed; inset: 0; z-index: 20; background: transparent; border: 0; padding: 0; cursor: default; }
.cp-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 6px; background: transparent; border: 0; font: inherit; font-size: 14px; color: var(--twu-text); text-align: left; cursor: pointer; text-decoration: none; }
.cp-row:hover { background: var(--twu-hover); }
.cp-row--static { cursor: default; }
.cp-row--static:hover { background: transparent; }
.cp-row .cp-i { color: var(--twu-muted); }
.cp-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cp-row-n { font-weight: 600; color: var(--twu-ink); }
.cp-row-m { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--twu-muted); }
.cp-row .cp-ok { color: var(--twu-primary); }
.cp-noti { padding: 10px; border-radius: 6px; display: flex; flex-direction: column; gap: 4px; }
.cp-noti + .cp-noti { border-top: 1px solid var(--twu-border); border-radius: 0; }
.cp-noti-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.cp-noti-h b { color: var(--twu-ink); font-weight: 600; }
.cp-noti p { font-size: 13px; color: var(--twu-text); }

/* ============================================================== cp-chip (badges) */
.cp-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.cp-chip--n { background: var(--twu-neutral-bg); color: var(--twu-neutral); }
.cp-chip--i { background: var(--twu-info-bg); color: var(--twu-info); }
.cp-chip--ok { background: var(--twu-good-bg); color: var(--twu-good); }
.cp-chip--w { background: var(--twu-warn-bg); color: var(--twu-warn); }
.cp-chip--bad { background: var(--twu-bad-bg); color: var(--twu-bad); }

/* ============================================================== cp-ban (banners under the top bar: recall, announcement, view-as) */
.cp-ban { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 13px; flex-wrap: wrap; flex: none; }
.cp-ban-t { flex: 1; min-width: 200px; }
.cp-ban-t b { font-weight: 600; }
.cp-ban--recall { background: var(--a2-bad); color: var(--twu-surface); }
.cp-ban--va { background: var(--a2-navy); color: #fff; }
[data-theme="dark"] .cp-ban--va { background: var(--a2-navy-a); }
.cp-ban--info { background: var(--twu-info-bg); color: var(--twu-ink); border-bottom: 1px solid var(--twu-border); }
.cp-ban--warn { background: var(--twu-warn-bg); color: var(--twu-ink); border-bottom: 1px solid var(--twu-border); }
.cp-ban-btn { height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.cp-ban--va .cp-help, .cp-ban--recall .cp-help { color: inherit; opacity: .85; }

/* ============================================================== cp-nav (left nav desktop) + cp-tabs (bottom tabs phone) */
.cp-nav { width: 232px; flex: none; background: var(--twu-sb-bg); border-right: 1px solid var(--twu-border); padding: 12px 10px 24px; }
.cp-nav-g { font-size: 12px; font-weight: 600; color: var(--twu-muted); padding: 16px 10px 6px; }
.cp-nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: var(--twu-text); text-decoration: none; font-size: 14px; position: relative; }
.cp-nav a .cp-i { color: var(--twu-muted); }
.cp-nav a:hover { background: var(--twu-hover); }
.cp-nav a[aria-current="page"] { background: var(--twu-primary-soft); color: var(--twu-primary); font-weight: 600; }
.cp-nav a[aria-current="page"] .cp-i { color: var(--twu-primary); }
.cp-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; background: var(--a2-amber); border-radius: 0 2px 2px 0; }
.cp-tabs { display: none; border-top: 1px solid var(--twu-border); background: var(--twu-surface); padding: 4px 4px calc(10px + env(safe-area-inset-bottom)); flex: none; position: sticky; bottom: 0; z-index: 24; }
.cp-tabs a, .cp-tabs button { flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: inherit; font-size: 12px; font-weight: 600; color: var(--twu-muted); text-decoration: none; border-radius: 6px; position: relative; background: transparent; border: 0; cursor: pointer; }
.cp-tabs [aria-current="page"] { color: var(--twu-primary); }
.cp-tabs [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 32%; right: 32%; height: 3px; border-radius: 0 0 2px 2px; background: var(--a2-amber); }
.cp-more { display: flex; flex-direction: column; }

/* ============================================================== cp-foot (footer) */
.cp-foot { border-top: 1px solid var(--twu-border); padding: 14px 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 12px; color: var(--twu-muted); background: var(--twu-surface); }
.cp-foot a { color: var(--twu-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }
.cp-foot a:hover { color: var(--twu-primary); text-decoration: underline; }
.cp-foot b { color: var(--twu-ink); font-weight: 600; }

/* ============================================================== cp-btn + cp-link */
.cp-btn { height: 36px; padding: 0 14px; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.cp-btn--p { background: var(--a2-navy); color: #fff; }
.cp-btn--p:hover { background: var(--a2-navy-h); }
.cp-btn--s { background: var(--twu-surface); border-color: var(--twu-border-strong); color: var(--twu-ink); }
.cp-btn--s:hover { background: var(--twu-hover); }
.cp-btn--g { background: transparent; color: var(--twu-primary); padding: 0 8px; }
.cp-btn--g:hover { background: var(--twu-hover); }
.cp-btn--sm { height: 30px; padding: 0 10px; font-size: 13px; }
.cp-btn--lg { height: 56px; font-size: 16px; padding: 0 20px; }
.cp-btn--block { width: 100%; }
.cp-btn:disabled, .cp-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.cp-link { color: var(--twu-primary); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-size: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cp-card-h .cp-link { font-size: 13px; }
.cp-link:hover { text-decoration: underline; }
.cp-seg { display: flex; gap: 4px; padding: 4px; background: var(--twu-surface-2); border-radius: 8px; }
.cp-seg button { flex: 1; min-height: 32px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--twu-muted); cursor: pointer; white-space: nowrap; padding: 0 8px; }
.cp-seg button[aria-selected="true"] { background: var(--twu-surface); color: var(--twu-ink); box-shadow: 0 1px 2px rgba(20, 33, 61, .14); }
.cp-lang { display: inline-flex; border: 1px solid var(--twu-border-strong); border-radius: 6px; overflow: hidden; flex: none; }
.cp-lang button { height: 28px; min-width: 38px; border: 0; background: var(--twu-surface); color: var(--twu-muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0 8px; }
.cp-lang button[aria-pressed="true"] { background: var(--twu-primary-soft); color: var(--twu-primary); }

/* ============================================================== cp-form (fields) */
.cp-form { display: flex; flex-direction: column; gap: 16px; }
.cp-f { display: flex; flex-direction: column; gap: 6px; }
.cp-lbl { font-size: 13px; font-weight: 600; color: var(--twu-ink); }
.cp-lbl i { font-style: normal; color: var(--twu-bad); }
.cp-in { height: 36px; border: 1px solid var(--a2-field); border-radius: 6px; padding: 0 10px; font: inherit; font-size: 14px; background: var(--twu-surface); color: var(--twu-ink); width: 100%; }
.cp-in::placeholder { color: var(--twu-subtle); }
textarea.cp-in { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; }
.cp-in[aria-invalid="true"] { border-color: var(--twu-bad); }
.cp-code { font-size: 22px; letter-spacing: .5em; text-align: center; height: 52px; font-weight: 600; }
.cp-hint { font-size: 12px; color: var(--twu-muted); }
.cp-ferr { font-size: 12px; color: var(--twu-bad); display: flex; gap: 6px; align-items: flex-start; }
.cp-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; min-height: 36px; }
.cp-check input { width: 16px; height: 16px; accent-color: var(--a2-navy); margin: 0; }

/* ============================================================== cp-al (inline alerts) */
.cp-al { display: flex; gap: 10px; padding: 10px 12px; border-radius: 6px; font-size: 13px; align-items: flex-start; color: var(--twu-ink); }
.cp-al-t { flex: 1; }
.cp-al-t b { display: block; font-weight: 600; }
.cp-al--bad { background: var(--twu-bad-bg); } .cp-al--bad > .cp-i { color: var(--twu-bad); }
.cp-al--ok { background: var(--twu-good-bg); } .cp-al--ok > .cp-i { color: var(--twu-good); }
.cp-al--w { background: var(--twu-warn-bg); } .cp-al--w > .cp-i { color: var(--twu-warn); }
.cp-al--i { background: var(--twu-info-bg); } .cp-al--i > .cp-i { color: var(--twu-info); }
.cp-al .cp-ib { width: 28px; height: 28px; min-height: 28px; }
.cp-toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 10030; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); font-family: var(--a2-font); }
.cp-toast { box-shadow: 0 8px 24px rgba(20, 33, 61, .18); border: 1px solid var(--twu-border); }
@media (max-width: 860px) { .cp-toasts { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ============================================================== cp-help (hover help icon; popover = CP-G20 cp-ui.js, fallback .cp-tip) */
.cp-root .cp-help { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0; color: var(--twu-subtle); cursor: help; border-radius: 50%; font-weight: 400; vertical-align: middle; flex: none; box-shadow: none; }
.cp-root .cp-help:hover { color: var(--twu-muted); }
.cp-root .cp-help:focus { outline: none; box-shadow: var(--a2-ring); }
.cp-tip { display: none; position: absolute; z-index: 60; top: calc(100% + 8px); left: -10px; width: max-content; max-width: 320px; background: var(--twu-surface); color: var(--twu-text); border: 1px solid var(--twu-border); border-radius: 6px; box-shadow: 0 8px 24px rgba(20, 33, 61, .16); padding: 10px 12px; font-size: 12px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; letter-spacing: 0; }
.cp-tip b { display: block; font-size: 13px; font-weight: 600; color: var(--twu-ink); margin-bottom: 2px; }
.cp-tip--r { left: auto; right: -10px; }
.cp-help:hover .cp-tip, .cp-help:focus .cp-tip { display: block; }
html.cp-ui-help .cp-help .cp-tip { display: none !important; } /* the CP-G20 store popover takes over */
html.cp-help-off .cp-root .cp-help { display: none; } /* user switched "Help icons" off (CP-G20 menu) */

/* ============================================================== cp-card + home blocks */
.cp-card { background: var(--twu-surface); border: 1px solid var(--twu-border); border-radius: 10px; padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cp-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cp-kvs { display: flex; flex-direction: column; }
.cp-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--twu-border); font-size: 13px; }
.cp-kv dt { color: var(--twu-muted); }
.cp-kv dd { font-weight: 600; color: var(--twu-ink); text-align: right; }
.cp-bar { height: 8px; border-radius: 4px; background: var(--twu-surface-2); overflow: hidden; display: flex; gap: 2px; }
.cp-bar span { display: block; height: 100%; }
.cp-legend { display: flex; flex-direction: column; }
.cp-legend a { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 6px; margin: 0 -6px; border-radius: 6px; color: var(--twu-text); text-decoration: none; font-size: 13px; }
.cp-legend a:hover { background: var(--twu-hover); }
.cp-legend b { margin-left: auto; font-weight: 600; color: var(--twu-ink); }
.cp-dot { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.cp-list { display: flex; flex-direction: column; }
.cp-li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--twu-border); font-size: 13px; min-height: 44px; text-decoration: none; color: inherit; }
.cp-li:first-child { border-top: 0; }
.cp-li-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cp-li-t b { font-weight: 600; color: var(--twu-ink); }
.cp-li--tall { min-height: 56px; }
.cp-qa { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-pay { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 6px; background: var(--twu-surface-2); font-size: 13px; }
.cp-pay b { color: var(--twu-ink); font-weight: 600; }
.cp-hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cp-sk { display: block; border-radius: 4px; background: var(--twu-surface-2); animation: cpsk 1.4s ease-in-out infinite; }
@keyframes cpsk { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .cp-sk { animation: none; } }
.cp-flash { animation: cpflash 1.2s ease-out 1; }
@keyframes cpflash { 0% { box-shadow: 0 0 0 3px var(--a2-amber); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ============================================================== cp-t (tables) */
.cp-tw { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.cp-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.cp-t th { font-size: 12px; font-weight: 600; color: var(--twu-muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--twu-border); white-space: nowrap; }
.cp-t td { padding: 10px; border-bottom: 1px solid var(--twu-border); white-space: nowrap; color: var(--twu-text); }
.cp-t tr:last-child td { border-bottom: 0; }
.cp-t .r { text-align: right; }
.cp-t a { color: var(--twu-primary); font-weight: 600; text-decoration: none; }

/* ============================================================== cp-empty (empty / error / not found / no permission) + big icons */
.cp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 56px 24px; max-width: 520px; margin: 0 auto; }
.cp-empty-s { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 0; color: var(--twu-muted); font-size: 13px; }
.cp-empty-s > b { color: var(--twu-ink); font-weight: 600; font-size: 14px; }
.cp-big-ic { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--twu-info-bg); color: var(--twu-info); flex: none; }
.cp-big-ic--ok { background: var(--twu-good-bg); color: var(--twu-good); }
.cp-big-ic--bad { background: var(--twu-bad-bg); color: var(--twu-bad); }
.cp-big-ic--w { background: var(--twu-warn-bg); color: var(--twu-warn); }

/* ============================================================== cp-auth (sign-in pages, no shell) */
.cp-auth { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 48px 16px 28px; gap: 24px; }
.cp-auth-brand { display: flex; align-items: center; gap: 12px; }
.cp-auth-brand .cp-brand-n { font-size: 16px; }
.cp-auth-card { width: 100%; max-width: 440px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.cp-auth-card--w { max-width: 560px; }
.cp-auth-card--msg { align-items: flex-start; }
.cp-auth-alt { text-align: center; font-size: 14px; color: var(--twu-muted); border-top: 1px solid var(--twu-border); padding-top: 16px; }
.cp-auth-foot { display: flex; gap: 16px; align-items: center; font-size: 12px; color: var(--twu-muted); flex-wrap: wrap; justify-content: center; margin-top: auto; }

/* ============================================================== responsive */
@media (max-width: 1180px) {
  .cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cp-d-only { display: none !important; }
  .cp-m-only { display: inline-flex !important; }
  .cp-nav { display: none; }
  .cp-tabs { display: flex; }
  .cp-top { height: 56px; padding: 0 10px 0 12px; gap: 6px; }
  .cp-brand { margin-right: 0; flex: none; }
  .cp-top .cp-sp { flex: 0 0 0; }
  #cp-acct { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .cp-mchip { max-width: 100%; }
  .cp-top .cp-ui-tbtn__l { display: none; }
  .cp-top .cp-ui-tbtn { flex: none; }
  .cp-brand-t { display: none; }
  .cp-anc { position: static; }
  .cp-pop, .cp-pop--w, .cp-pop--s { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 82vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); }
  .cp-scrim { background: rgba(11, 19, 34, .45); }
  .cp-page { padding: 16px; }
  .cp-foot { padding: 14px 16px 14px; }
  .cp-btn, .cp-in { min-height: 44px; }
  .cp-ib { width: 44px; height: 44px; }
  .cp-seg button { min-height: 40px; }
  .cp-ban { padding: 10px 16px; }
  .cp-auth { padding: 28px 16px 20px; }
  .cp-auth-card { padding: 20px; }
  .cp-grid2 { grid-template-columns: minmax(0, 1fr); }
  .cp-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cp-span2 { grid-column: auto; }
  .cp-qa .cp-btn { flex: 1 1 140px; }
  .cp-lang button { min-height: 36px; }
  .cp-receiver .cp-btn, .cp-receiver .cp-tabs a, .cp-receiver .cp-li { min-height: 56px; }
}

/* ============================================================== == families (CP-W02 ... W08 append below, one section each) */
