/* components.css: the design language's cpd-* component classes, ported from
   vendor/cpd-design-language/project/components/bundle.css (2026-09-25) with the class names kept.
   Changes from the bundle, and only these:
   - no body rule (base.css), no .cpd-demo* (demo scaffolding), no .cpd-logo* (no CPD logo anywhere);
   - fixed rem font sizes point at the kit's own type tokens (--type-<style>-size), which base.css
     lifts to the site scale (17px body, 15px floor; SPEC §6.2). Every other value is the bundle's.
   Site-level additions (dialog hosts, skeletons, states, tables) live in base.css as ts-* classes. */
/* CPD Employee App — component styles. Every value comes from tokens.css or the prototype's CSS (developer-handoff/source). */

/* Icons: 24 × 24, 1.65 stroke, 13% tint; semantic tokens resolve per theme. */
.cpd-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; overflow: visible; }
[dir="ltr"] .cpd-icon--dir { transform: scaleX(-1); }
.cpd-icon--dir:dir(ltr) { transform: scaleX(-1); }

/* Buttons */
.cpd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--target-min); padding: 8px 18px; border-radius: var(--radius-button); border: 1px solid transparent; font: inherit; font-size: var(--type-button-size); font-weight: 700; line-height: 1.4; cursor: pointer; text-decoration: none; background: none; color: inherit; }
.cpd-btn:focus-visible, .cpd-iconbtn:focus-visible, .cpd-chip:focus-visible, .cpd-tile:focus-visible, .cpd-tab:focus-visible, .cpd-day:focus-visible, .cpd-row:focus-visible, .cpd-seg button:focus-visible,
.cpd-request__open:focus-visible, .cpd-approval__open:focus-visible, .cpd-field :is(input, select, textarea):focus-visible, .cpd-switch:focus-visible, .cpd-sheet__close:focus-visible, .cpd-alert button:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.cpd-btn:disabled { opacity: var(--disabled); cursor: not-allowed; }
.cpd-btn--block { display: flex; width: 100%; min-height: var(--button-min); }
.cpd-btn--icon-only { padding: 8px; min-width: var(--target-min); }
.cpd-btn--ios { border-radius: var(--radius-action-ios); min-height: 48px; }
.cpd-btn--primary { background: var(--primary); color: var(--on-primary); }
.cpd-btn--secondary { background: var(--gold-tint); color: var(--gold-deep); }
.cpd-btn--confirm { background: var(--green); color: var(--on-green); }
.cpd-btn--decline { border-color: var(--red); color: var(--red); background: transparent; }
.cpd-btn--edit { background: var(--surface); border: 1.5px solid var(--gold-deep); color: var(--gold-deep); }
.cpd-btn--edit:hover { background: var(--gold-tint); }
.cpd-btn--withdraw { background: var(--withdraw); border-color: var(--withdraw); color: var(--on-danger); }
.cpd-btn--withdraw:hover { background: var(--withdraw-hover); border-color: var(--withdraw-hover); }
.cpd-btn--contact { background: var(--surface); border-color: var(--cpd-teal); color: var(--cpd-teal); }
.cpd-btn--contact:hover { background: color-mix(in srgb, var(--cpd-teal) 8%, var(--surface)); }
.cpd-btn--text { background: transparent; color: var(--gold-deep); padding: 5px 0; font-size: var(--type-button-size); min-height: 32px; }

.cpd-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--target-min); height: var(--target-min); border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.cpd-iconbtn:hover { background: var(--gold-tint); }
.cpd-iconbtn--bordered { border: 1px solid var(--line); background: var(--surface); }
.cpd-iconbtn__dot { position: absolute; top: 6px; right: 8px; width: var(--unread-dot-size); height: var(--unread-dot-size); border-radius: var(--radius-full); background: var(--unread-dot); }

/* Badges and chips */
.cpd-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--radius-badge); font-size: var(--type-badge-size); font-weight: 700; line-height: 1.6; white-space: nowrap; background: var(--gold-tint); color: var(--gold-deep); }
.cpd-badge--green { background: color-mix(in srgb, var(--green) 12%, var(--surface)); color: var(--green); }
.cpd-badge--blue { background: color-mix(in srgb, var(--cpd-blue) 12%, var(--surface)); color: var(--cpd-blue); }
.cpd-badge--red { background: color-mix(in srgb, var(--red) 10%, var(--surface)); color: var(--red); }
.cpd-badge--neutral { background: color-mix(in srgb, var(--cpd-slate) 12%, var(--surface)); color: var(--cpd-slate); }
.cpd-badge--danger { background: var(--unread-badge); color: var(--on-danger); }
.cpd-badge--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.cpd-badge--count { min-width: 24px; justify-content: center; font-variant-numeric: tabular-nums; }
.cpd-badge--queue { min-width: 42px; min-height: 42px; justify-content: center; padding: 3px 10px; font-size: 1.25rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.cpd-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-chip); background: var(--surface); color: var(--muted); font: inherit; font-size: var(--type-chip-size); cursor: pointer; }
.cpd-chip.is-selected { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 700; }
.cpd-chip__count { font-variant-numeric: tabular-nums; opacity: .85; }

/* Progress steps: row (notifications) and list (request detail) */
.cpd-steps { list-style: none; margin: 0; padding: 0; }
.cpd-steps--row { display: grid; grid-template-columns: repeat(var(--cpd-step-count, 3), minmax(0, 1fr)); gap: 6px; border-block: 1px solid var(--line); padding: 12px 0; }
.cpd-steps--row li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: var(--type-caption-size); line-height: 1.6; color: var(--muted); }
.cpd-steps--row strong { font-weight: 400; }
.cpd-steps--list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; color: var(--muted); }
.cpd-steps--list li + li { border-top: 1px solid var(--line); }
.cpd-steps--list strong { display: block; font-size: var(--type-row-label-size); }
.cpd-steps small { display: block; font-size: var(--type-caption-size); color: var(--muted); margin-top: 3px; font-weight: 400; }
.cpd-steps li.is-complete { color: var(--cpd-green); }
.cpd-steps li.is-current { color: var(--progress-current); font-weight: 700; }
.cpd-steps li.is-current strong { font-weight: 700; }
.cpd-steps--list li.is-complete { color: var(--green); }
.cpd-steps--list li.is-current { color: var(--gold-deep); }
.cpd-steps li.is-upcoming .cpd-icon { opacity: .5; }

/* Success check: outline .3s, tick .4s after .2s; static under reduced motion. */
.cpd-success { color: var(--green); display: block; }
.cpd-success__box { fill: currentColor; fill-opacity: .1; stroke: currentColor; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cpd-draw .3s ease-out forwards; }
.cpd-success__tick { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cpd-draw .4s ease-out .2s forwards; }
.cpd-success.is-static .cpd-success__box, .cpd-success.is-static .cpd-success__tick { animation: none; stroke-dashoffset: 0; }
@keyframes cpd-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .cpd-success__box, .cpd-success__tick { animation: none; stroke-dashoffset: 0; } }

/* Surfaces */
.cpd-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-surface); padding: 16px; color: var(--ink); box-sizing: border-box; }
.cpd-card--compact { padding: 12px; }
.cpd-card--interactive { cursor: pointer; text-align: start; font: inherit; width: 100%; }
.cpd-card--interactive:hover { border-color: var(--gold); }
.cpd-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--target-min); padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: start; text-decoration: none; box-sizing: border-box; }
.cpd-row:last-child { border-bottom: 0; }
button.cpd-row, a.cpd-row { cursor: pointer; }
button.cpd-row:hover, a.cpd-row:hover { background: var(--gold-tint); }
.cpd-row__copy { flex: 1; min-width: 0; }
.cpd-row__copy strong { display: block; font-size: var(--type-row-label-size); line-height: 1.6; }
.cpd-row__copy small { display: block; margin-top: 2px; font-size: var(--type-caption-size); line-height: 1.5; color: var(--muted); }
.cpd-row__end { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; }
.cpd-row__arrow { color: var(--muted); --cpd-slate: var(--muted); }
.cpd-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 8px; }
.cpd-section-head > :first-child { margin: 0; font-size: var(--type-section-title-size); line-height: 1.6; font-weight: 700; }
.cpd-notice { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-tint); color: var(--ink); padding: 12px; border-radius: var(--radius-field); font-size: var(--type-body-size); line-height: 1.8; }
.cpd-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 35px 18px; color: var(--muted); }
.cpd-empty .cpd-icon { margin-bottom: 12px; }
.cpd-empty strong { color: var(--ink); font-size: var(--type-row-label-size); }
.cpd-empty p { font-size: var(--type-body-size); margin: 8px 0 18px; }
.cpd-toast { background: var(--ink); color: var(--surface); padding: 14px; border-radius: var(--radius-notice); font-size: var(--type-body-size); line-height: 1.6; box-shadow: var(--shadow-float); max-width: 508px; }

/* Fields */
.cpd-field { display: grid; gap: 6px; margin: 12px 0; font-size: var(--type-field-label-size); font-weight: 700; color: var(--ink); }
.cpd-field__optional { font-weight: 400; color: var(--muted); }
.cpd-field :is(input:not([type=file]), select, textarea) { width: 100%; min-width: 0; box-sizing: border-box; background: var(--surface); border: 1px solid var(--control-line); border-radius: var(--radius-field); min-height: var(--field-min); padding: 10px 12px; color: var(--ink); font: inherit; font-weight: 400; font-size: var(--type-body-size); }
.cpd-field textarea { min-height: 84px; resize: vertical; }
.cpd-field [aria-invalid="true"] { border-color: var(--red); }
.cpd-field small { font-weight: 400; font-size: var(--type-caption-size); color: var(--muted); }
.cpd-field__error { font-weight: 400; font-size: var(--type-caption-size); color: var(--red); }
.cpd-upload { display: flex; gap: 10px; align-items: flex-start; padding: 16px; border: 1px dashed var(--gold); border-radius: var(--radius-notice); font-size: var(--type-body-size); font-weight: 400; }
.cpd-upload input { width: 100%; margin-top: 10px; font-size: var(--type-caption-size); }
.cpd-upload:focus-within { outline: 3px solid var(--gold-deep); outline-offset: 3px; }

/* Segmented control: permission timing */
.cpd-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-notice); }
.cpd-seg button { min-height: var(--target-min); padding: 8px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: var(--type-chip-size); cursor: pointer; }
.cpd-seg button.is-selected { background: var(--surface); color: var(--gold-deep); font-weight: 700; }
.cpd-seg--ios { background: var(--control-fill); border: 0; border-radius: 15px; padding: 3px; gap: 2px; }
.cpd-seg--ios button { border-radius: 12px; transition: background .18s ease, box-shadow .18s ease; }
.cpd-seg--ios button.is-selected { color: var(--ink); box-shadow: var(--shadow-segment); }

/* Form type picker */
.cpd-kinds { border: 0; margin: 8px 0 12px; padding: 0; min-width: 0; }
.cpd-kinds legend { padding: 0; margin-bottom: 7px; font-size: var(--type-field-label-size); font-weight: 700; }
.cpd-kinds__grid { display: grid; grid-template-columns: repeat(var(--cpd-kind-columns, 3), minmax(0, 1fr)); gap: 6px; }
.cpd-kind { position: relative; min-width: 0; cursor: pointer; }
.cpd-kind > input { position: absolute; opacity: 0; width: 1px; height: 1px; inset-inline-start: 50%; top: 50%; margin: 0; }
.cpd-kind > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; height: 100%; box-sizing: border-box; padding: 6px 3px; border: 1px solid var(--control-line); border-radius: var(--radius-field); background: var(--surface); font-size: var(--type-caption-size); line-height: 1.4; text-align: center; }
.cpd-kind:hover > span { border-color: var(--gold-deep); }
.cpd-kind input:checked + span { background: var(--gold-tint); border-color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold-deep); font-weight: 700; }
.cpd-kind input:focus-visible + span { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

/* Switch (native-style, iOS presentation) */
.cpd-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; min-height: var(--target-min); }
.cpd-switch-row label { font-size: var(--type-row-label-size); }
.cpd-switch-row small { display: block; font-size: var(--type-caption-size); color: var(--muted); }
.cpd-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 51px; height: 31px; margin: 0; border: 0; border-radius: 20px; background: var(--control-fill); cursor: pointer; transition: background .18s ease; direction: ltr; }
.cpd-switch::before { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px #0003; transition: transform .18s ease; }
.cpd-switch:checked { background: var(--green); }
.cpd-switch:checked::before { transform: translateX(20px); }
[data-theme^="high-contrast"] .cpd-switch { box-shadow: inset 0 0 0 1px var(--control-line); }

/* Header: logo at the physical top right (Home only); utilities at the physical top left in both languages. */
.cpd-header { direction: rtl; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-height); padding: 6px 16px; box-sizing: border-box; background: var(--surface); border-bottom: 1px solid var(--line); }
.cpd-header__logo { width: var(--logo-home); max-width: 50%; }
.cpd-header__tools { display: flex; align-items: center; gap: 4px; }
[dir="ltr"] .cpd-header__back .cpd-icon { transform: scaleX(-1); }

/* Tab bar: each destination keeps its semantic colour; the active label and marker match it. */
.cpd-tabbar { display: grid; grid-template-columns: repeat(var(--cpd-tabs, 4), minmax(0, 1fr)); align-items: center; height: var(--tabbar-height); padding: 6px 10px 16px; box-sizing: border-box; background: var(--surface); border-top: 1px solid var(--line); }
.cpd-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--target-min); border: 0; background: transparent; color: var(--muted); font: inherit; font-size: var(--type-nav-label-size); cursor: pointer; }
.cpd-tab .cpd-icon { color: var(--nav-color); }
.cpd-tab.is-active { color: var(--nav-color); font-weight: 700; }
.cpd-tab.is-active::before { content: ''; position: absolute; top: -6px; width: 22px; height: 3px; border-radius: 3px; background: var(--nav-color); }

/* Attendance card */
.cpd-attendance__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cpd-attendance__top h2 { margin: 0; font-size: var(--type-card-title-size); font-weight: 700; }
.cpd-attendance__top small { font-size: var(--type-caption-size); color: var(--muted); }
.cpd-attendance__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 0 12px; }
.cpd-attendance__cell { display: grid; gap: 1px; align-content: start; text-align: center; border-inline-start: 1px solid var(--line); }
.cpd-attendance__cell:first-child { border: 0; }
.cpd-attendance__cell dt { font-size: var(--type-caption-size); color: var(--muted); }
.cpd-attendance__cell dd { margin: 0; font-size: 1.22rem; line-height: 1.45; font-weight: 700; font-variant-numeric: tabular-nums; }
.cpd-attendance__cell.is-recorded dd { color: var(--green); }
.cpd-attendance__cell.is-late :is(dt, dd, small) { color: var(--attendance-amber); }
.cpd-attendance__cell.is-missing dd { color: var(--muted); }
.cpd-attendance__cell small { font-size: var(--type-caption-size); }

/* Home shortcuts and service tiles */
.cpd-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 78px; padding: 9px 7px; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--radius-surface); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--type-card-title-size); font-weight: 700; line-height: 1.4; text-align: center; cursor: pointer; position: relative; }
.cpd-tile:hover { border-color: var(--gold); }
.cpd-tile--service { min-height: 94px; padding: 12px 6px; font-size: var(--type-row-label-size); }
.cpd-tile__badge { position: absolute; top: 8px; inset-inline-end: 8px; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--unread-badge); color: var(--on-danger); font-size: var(--type-badge-size); line-height: 20px; }

/* Balance card and the permission ledger */
.cpd-balance { padding: 10px 12px; }
.cpd-balance__label { display: flex; align-items: center; gap: 6px; font-size: var(--type-chip-size); color: var(--ink); }
.cpd-balance__fraction { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 2px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cpd-balance__value { font-size: 2.2rem; line-height: 1.15; }
.cpd-balance__total { font-size: 1.35rem; }
.cpd-balance__fraction small { font-size: var(--type-caption-size); font-weight: 400; color: var(--muted); }
.cpd-balance__caption { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: var(--type-caption-size); color: var(--muted); }
.cpd-ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; height: 9px; margin-top: 10px; }
.cpd-ledger i { border-radius: var(--radius-segment); min-width: 0; background: var(--ledger-available); }
.cpd-ledger i.is-pending { background: var(--ledger-pending); }
.cpd-ledger i.is-deducted { background: var(--ledger-deducted); }
.cpd-track { height: 6px; margin-top: 8px; border-radius: 5px; background: var(--line); overflow: hidden; }
.cpd-track i { display: block; height: 100%; border-radius: 5px; background: var(--green); }
.cpd-dot { display: inline-flex; align-items: center; gap: 5px; }
.cpd-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ledger-pending); }
.cpd-dot.is-deducted::before { background: var(--ledger-deducted); }
.cpd-dot.is-available::before { background: var(--ledger-available); }

/* Calendar */
.cpd-calendar__month { display: flex; justify-content: center; margin-bottom: 8px; font-size: var(--type-section-title-size); }
.cpd-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cpd-calendar__weekday { text-align: center; font-size: var(--type-caption-size); color: var(--muted); padding-bottom: 2px; }
.cpd-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.1; cursor: pointer; font-variant-numeric: tabular-nums; }
.cpd-day:not(.is-selected):hover { box-shadow: inset 0 0 0 1px currentColor; }
.cpd-day.is-selected { box-shadow: inset 0 0 0 2px currentColor; font-weight: 700; }
.cpd-day[aria-current="date"]:not(.is-selected) { box-shadow: inset 0 0 0 1px var(--gold); }
.cpd-day__mark { display: block; width: 6px; height: 6px; }
.cpd-day.is-present, .cpd-day.is-today { background: color-mix(in srgb, var(--green) 10%, var(--surface)); color: var(--green); }
.cpd-day.is-present .cpd-day__mark { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cpd-day.is-late { background: color-mix(in srgb, var(--attendance-amber) 10%, var(--surface)); color: var(--attendance-amber); }
.cpd-day.is-late .cpd-day__mark { width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.cpd-day.is-missing { background: color-mix(in srgb, var(--attendance-missing) 12%, var(--surface)); color: var(--attendance-missing); }
.cpd-day.is-missing .cpd-day__mark { width: 2px; height: 8px; background: linear-gradient(currentColor 0 60%, transparent 60% 78%, currentColor 78%); }
.cpd-day.is-absent { background: color-mix(in srgb, var(--red) 10%, var(--surface)); color: var(--red); }
.cpd-day.is-absent .cpd-day__mark { width: 8px; height: 8px; background: linear-gradient(45deg, transparent 43%, currentColor 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, currentColor 43% 57%, transparent 57%); }
.cpd-day.is-permission { background: color-mix(in srgb, var(--cpd-blue) 10%, var(--surface)); color: var(--cpd-blue); }
.cpd-day.is-permission .cpd-day__mark { width: 9px; height: 2px; border-radius: 1px; background: currentColor; }
.cpd-day.is-leave { background: color-mix(in srgb, var(--green) 8%, var(--surface)); color: var(--green); }
.cpd-day.is-leave .cpd-day__mark { width: 6px; height: 6px; border: 1.5px solid currentColor; transform: rotate(45deg); box-sizing: border-box; }
.cpd-day:is(.is-assignment, .is-training) { background: color-mix(in srgb, var(--cpd-purple) 11%, var(--surface)); color: var(--cpd-purple); }
.cpd-day:is(.is-assignment, .is-training) .cpd-day__mark { width: 6px; height: 6px; background: currentColor; border-radius: 1px; }
.cpd-day.is-holiday { background: var(--holiday-surface); color: var(--holiday-ink); }
.cpd-day.is-holiday .cpd-day__mark { width: 8px; height: 7px; border: 1.5px solid currentColor; border-top-width: 3px; border-radius: 1px; box-sizing: border-box; }
.cpd-day.is-weekend { background: var(--weekend-surface); color: var(--holiday-ink); }
.cpd-day.is-future { color: var(--muted); }

/* Request, notification and approval cards */
.cpd-request { padding: 12px; }
.cpd-request__open, .cpd-approval__open { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.cpd-request__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cpd-request h3 { margin: 8px 0 0; font-size: var(--type-card-title-size); line-height: 1.6; }
.cpd-request p { margin: 4px 0 0; font-size: var(--type-caption-size); color: var(--muted); }
.cpd-request footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; font-size: var(--type-caption-size); color: var(--muted); }
.cpd-notification { padding: 14px; border-inline-start: 3px solid var(--notification-accent, var(--cpd-slate)); }
.cpd-notification.is-pending { --notification-accent: var(--ledger-pending); }
.cpd-notification.is-deducted { --notification-accent: var(--ledger-deducted); }
.cpd-notification.is-approved { --notification-accent: var(--cpd-green); }
.cpd-notification.is-document { --notification-accent: var(--cpd-blue); }
.cpd-notification.is-neutral { --notification-accent: var(--cpd-slate); }
.cpd-notification__head { display: flex; gap: 10px; align-items: flex-start; }
.cpd-notification__symbol { color: var(--notification-accent); flex-shrink: 0; }
.cpd-notification__copy { flex: 1; min-width: 0; }
.cpd-notification__copy strong { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: var(--type-card-title-size); line-height: 1.6; }
.cpd-notification__copy small, .cpd-notification__text { display: block; margin-top: 5px; font-size: var(--type-caption-size); line-height: 1.6; color: var(--muted); }
.cpd-notification__copy small { font-size: var(--type-caption-size); }
.cpd-notification__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--unread-dot); }
.cpd-notification .cpd-steps--row { margin-top: 13px; }
.cpd-notification__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.cpd-notification__footer small { font-size: var(--type-caption-size); color: var(--muted); }
.cpd-notification__footer .cpd-btn--withdraw { border-radius: var(--radius-notice); padding: 8px 16px; font-size: var(--type-button-size); }
.cpd-approval h3 { margin: 0; font-size: var(--type-card-title-size); line-height: 1.6; }
.cpd-approval p { margin: 5px 0 0; font-size: var(--type-caption-size); }
.cpd-approval small { display: block; margin-top: 3px; font-size: var(--type-caption-size); color: var(--muted); }
.cpd-approval__open:hover h3 { color: var(--gold-deep); }
.cpd-approval__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }

/* Sheets and alerts (the dialog panel; host it in a native <dialog> with the scrim token) */
.cpd-sheet { display: flex; flex-direction: column; width: min(520px, 100%); max-height: calc(100dvh - 48px); overflow: hidden; border-radius: var(--radius-sheet); background: var(--surface); color: var(--ink); box-shadow: 0 12px 36px #00000033; box-sizing: border-box; }
.cpd-sheet--ios { background: var(--sheet-fill); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); box-shadow: var(--shadow-sheet); border-radius: 30px 30px 0 0; }
.cpd-sheet__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px 10px; }
.cpd-sheet__header h2 { margin: 0; font-size: var(--type-sheet-title-size); line-height: 1.5; }
.cpd-sheet__close { display: grid; place-items: center; flex: none; width: var(--target-min); height: var(--target-min); border: 0; border-radius: 50%; background: var(--control-fill); color: var(--ink); cursor: pointer; }
.cpd-sheet__content { padding: 0 18px 20px; overflow: auto; }
.cpd-sheet__intro { margin: 0 0 14px; font-size: var(--type-body-size); color: var(--muted); }
.cpd-sheet__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.cpd-sheet__actions > * { min-height: 48px; }
.cpd-alert { width: 320px; max-width: 100%; box-sizing: border-box; padding: 22px 20px 0; text-align: center; border-radius: var(--radius-sheet); background: var(--sheet-fill); color: var(--ink); box-shadow: var(--shadow-alert); }
.cpd-alert h2 { margin: 0; font-size: var(--type-sheet-title-size); line-height: 1.5; }
.cpd-alert p { margin: 8px 0 0; font-size: var(--type-body-size); line-height: 1.65; color: var(--muted); }
.cpd-alert__actions { display: flex; flex-direction: column; margin: 20px -20px 0; padding-bottom: 8px; }
.cpd-alert__actions button { min-height: 50px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--green); font: inherit; font-size: var(--type-button-size); cursor: pointer; }
.cpd-alert__cancel { font-weight: 700; }
.cpd-alert__confirm.is-destructive { margin: 8px 12px 0; border: 1px solid var(--withdraw); border-radius: var(--radius-notice); background: var(--withdraw); color: var(--on-danger); font-weight: 700; }
.cpd-alert__confirm.is-destructive:hover { background: var(--withdraw-hover); }
