/* ==========================================================
   Umut Akademi – parent panel, dashboard and account forms
   Scopes:  .ua-pp    parent panel shell (layouts/parent.php)
            .ua-dash  dashboard component (parent + admin read-only view)
            .ua-authx sign-in / sign-up / setup pages (layouts/plain.php)
   ========================================================== */
:root {
    --ua-pp-bg: #f5f6fa;
    --ua-pp-card: #ffffff;
    --ua-pp-line: #e6e8ef;
    --ua-pp-line-2: #eff1f5;
    --ua-pp-ink: #1d2639;
    --ua-pp-ink-2: #46526b;
    --ua-pp-muted: #667085;
    --ua-pp-accent: #c4531a;      /* warm orange, AA on white for text/buttons */
    --ua-pp-accent-h: #a94512;
    --ua-pp-accent-soft: #fff1e7;
    --ua-pp-good: #18794e;
    --ua-pp-good-soft: #e7f6ee;
    --ua-pp-warn: #a35a00;
    --ua-pp-warn-soft: #fff4dc;
    --ua-pp-bad: #c0352b;
    --ua-pp-bad-soft: #fdecea;
    --ua-pp-info: #2557a7;
    --ua-pp-info-soft: #eaf1fd;
    --ua-pp-radius: 14px;
    --ua-pp-radius-sm: 10px;
    --ua-pp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --ua-pp-shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
    --ua-pp-focus: 0 0 0 3px rgba(196, 83, 26, .28);
    --ua-pp-side: 256px;
    --ua-pp-font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------------------------------------------------------------- shared controls */
.ua-pp, .ua-authx, .ua-dash { font-family: var(--ua-pp-font); color: var(--ua-pp-ink); }
.ua-pp h1, .ua-pp h2, .ua-pp h3, .ua-pp h4, .ua-pp h5,
.ua-authx h1, .ua-authx h2, .ua-authx h3, .ua-dash h2, .ua-dash h3 { font-family: var(--ua-pp-font); letter-spacing: -.015em; }
.ua-pp a, .ua-authx a { color: var(--ua-pp-accent); }
.ua-pp a:hover, .ua-authx a:hover { color: var(--ua-pp-accent-h); }
.ua-pp .btn, .ua-authx .btn, .ua-dash .btn { border-radius: var(--ua-pp-radius-sm); font-weight: 700; }
.ua-pp .btn-ua-primary, .ua-authx .btn-ua-primary, .ua-dash .btn-ua-primary,
.ua-pp .modal .btn-ua-primary { background: var(--ua-pp-accent); color: #fff; border: 1px solid var(--ua-pp-accent); box-shadow: none; }
.ua-pp .btn-ua-primary:hover, .ua-authx .btn-ua-primary:hover, .ua-dash .btn-ua-primary:hover,
.ua-pp .btn-ua-primary:focus-visible, .ua-authx .btn-ua-primary:focus-visible { background: var(--ua-pp-accent-h); border-color: var(--ua-pp-accent-h); color: #fff; }
.ua-pp .btn-ua-primary:active, .ua-authx .btn-ua-primary:active { transform: none; box-shadow: none; }
.ua-pp .btn-ua-primary:disabled, .ua-authx .btn-ua-primary:disabled { background: #e2b39a; border-color: #e2b39a; color: #fff; opacity: 1; }
.ua-pp .btn-ua-ghost, .ua-authx .btn-ua-ghost, .ua-dash .btn-ua-ghost { background: #fff; color: var(--ua-pp-ink); border: 1px solid var(--ua-pp-line); }
.ua-pp .btn-ua-ghost:hover, .ua-authx .btn-ua-ghost:hover, .ua-dash .btn-ua-ghost:hover { background: #f8f9fb; border-color: #cfd4de; color: var(--ua-pp-ink); }
.ua-btn-icon { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; }
.ua-pp .btn:focus-visible, .ua-authx .btn:focus-visible, .ua-dash .btn:focus-visible,
.ua-pp a:focus-visible, .ua-authx a:focus-visible, .ua-dash [tabindex]:focus-visible,
.ua-pp .form-control:focus, .ua-pp .form-select:focus, .ua-authx .form-control:focus, .ua-authx .form-select:focus,
.ua-pp .form-check-input:focus, .ua-authx .form-check-input:focus { outline: none; box-shadow: var(--ua-pp-focus); border-color: var(--ua-pp-accent); }
.ua-pp .form-control, .ua-pp .form-select, .ua-authx .form-control, .ua-authx .form-select { border-radius: var(--ua-pp-radius-sm); border-color: #d5dae3; min-height: 44px; }
.ua-pp .form-control-sm, .ua-pp .form-select-sm { min-height: 34px; }
.ua-pp .form-label, .ua-authx .form-label { font-weight: 700; font-size: .9rem; color: var(--ua-pp-ink); margin-bottom: .3rem; }
.ua-pp .form-text, .ua-authx .form-text { color: var(--ua-pp-muted); font-size: .8rem; }
.ua-pp .form-check-input:checked, .ua-authx .form-check-input:checked { background-color: var(--ua-pp-accent); border-color: var(--ua-pp-accent); }
.ua-pp .invalid-feedback, .ua-authx .invalid-feedback { font-weight: 600; font-size: .8rem; color: var(--ua-pp-bad); }
.ua-req::after { content: ' *'; color: var(--ua-pp-bad); }
.ua-opt { color: var(--ua-pp-muted); font-weight: 500; font-size: .8rem; }
.ua-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* password field: show/hide toggle + strength meter + caps-lock note */
.ua-pw { position: relative; }
.ua-pw .form-control { padding-right: 2.9rem; }
.ua-pw-toggle { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ua-pp-muted); display: grid; place-items: center; }
.ua-pw-toggle:hover { color: var(--ua-pp-ink); background: #f2f4f7; }
.ua-pw-toggle:focus-visible { outline: none; box-shadow: var(--ua-pp-focus); }
.ua-pw .form-control.is-invalid { background-image: none; }
.ua-strength { margin-top: .45rem; }
.ua-strength-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ua-strength-bar i { height: 5px; border-radius: 9px; background: #e6e8ef; transition: background .2s; }
.ua-strength[data-score="1"] .ua-strength-bar i:nth-child(-n+1) { background: #d94b3d; }
.ua-strength[data-score="2"] .ua-strength-bar i:nth-child(-n+2) { background: #e08a1e; }
.ua-strength[data-score="3"] .ua-strength-bar i:nth-child(-n+3) { background: #9bbf2f; }
.ua-strength[data-score="4"] .ua-strength-bar i:nth-child(-n+4) { background: #1e9e5e; }
.ua-strength-label { font-size: .78rem; font-weight: 700; color: var(--ua-pp-muted); margin-top: .25rem; display: flex; justify-content: space-between; }
.ua-checks { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .78rem; color: var(--ua-pp-muted); font-weight: 600; }
.ua-checks li::before { content: '\F28A'; font-family: 'bootstrap-icons'; margin-right: .25rem; color: #b8bfcc; }
.ua-checks li.ok { color: var(--ua-pp-good); }
.ua-checks li.ok::before { content: '\F26A'; color: var(--ua-pp-good); }
.ua-caps { display: none; font-size: .78rem; font-weight: 700; color: var(--ua-pp-warn); margin-top: .3rem; }
.ua-caps.on { display: block; }

/* stepper (number of children) */
.ua-stepper { display: inline-flex; align-items: center; border: 1px solid #d5dae3; border-radius: var(--ua-pp-radius-sm); overflow: hidden; background: #fff; }
.ua-stepper button { width: 44px; height: 44px; border: 0; background: #f7f8fa; color: var(--ua-pp-ink); font-size: 1.1rem; }
.ua-stepper button:hover:not(:disabled) { background: #eef0f4; }
.ua-stepper button:disabled { color: #c3c8d2; }
.ua-stepper input { width: 56px; height: 44px; border: 0; text-align: center; font-weight: 800; font-size: 1.05rem; -moz-appearance: textfield; appearance: textfield; }
.ua-stepper input::-webkit-outer-spin-button, .ua-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ua-stepper:focus-within { box-shadow: var(--ua-pp-focus); border-color: var(--ua-pp-accent); }

/* toggle chips (grades) */
.ua-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ua-chipcheck input { position: absolute; opacity: 0; pointer-events: none; }
.ua-chipcheck span { display: inline-flex; align-items: center; gap: .35rem; min-width: 82px; justify-content: center; padding: .55rem .9rem; border: 1px solid #d5dae3; border-radius: 999px; font-weight: 700; cursor: pointer; background: #fff; user-select: none; }
.ua-chipcheck input:checked + span { background: var(--ua-pp-accent-soft); border-color: var(--ua-pp-accent); color: var(--ua-pp-accent-h); }
.ua-chipcheck input:checked + span::before { content: '\F26E'; font-family: 'bootstrap-icons'; }
.ua-chipcheck input:focus-visible + span { box-shadow: var(--ua-pp-focus); }
.ua-chips.is-invalid .ua-chipcheck span { border-color: var(--ua-pp-bad); }

/* segmented control (radio buttons) */
.ua-seg { display: inline-flex; background: #eef0f4; border-radius: 10px; padding: 3px; gap: 2px; }
.ua-seg button, .ua-seg label { border: 0; background: transparent; padding: .35rem .75rem; border-radius: 8px; font-weight: 700; font-size: .85rem; color: var(--ua-pp-ink-2); white-space: nowrap; cursor: pointer; margin: 0; }
.ua-seg button[aria-pressed="true"], .ua-seg input:checked + label { background: #fff; color: var(--ua-pp-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.ua-seg button:focus-visible, .ua-seg input:focus-visible + label { outline: none; box-shadow: var(--ua-pp-focus); }
.ua-seg input { position: absolute; opacity: 0; pointer-events: none; }

/* toasts (shared container, restyled) */
.ua-toast-wrap { bottom: 24px; }
.ua-toast { border-radius: 12px; font-weight: 600; font-size: .95rem; }

/* ---------------------------------------------------------------- parent shell */
.ua-pp { background: var(--ua-pp-bg); min-height: 100vh; }
.ua-pp-shell { display: flex; min-height: 100vh; }
.ua-side { width: var(--ua-pp-side); flex-shrink: 0; background: #fff; border-right: 1px solid var(--ua-pp-line); }
@media (min-width: 992px) {
    .ua-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
    .ua-side .offcanvas-header { display: none; }
}
.ua-side .offcanvas-body { display: flex; flex-direction: column; padding: 1.1rem .9rem; height: 100%; }
.ua-side-brand { display: flex; align-items: center; gap: .6rem; padding: .2rem .5rem 1.2rem; text-decoration: none; color: var(--ua-pp-ink); font-weight: 800; font-size: 1.08rem; }
.ua-side-brand:hover { color: var(--ua-pp-ink); }
.ua-side-brand .ua-brand-mark { width: 34px; height: 34px; border-radius: 10px; transform: none; box-shadow: none; background: var(--ua-pp-accent); font-size: 1.05rem; }
.ua-side-brand small { display: block; font-size: .72rem; font-weight: 700; color: var(--ua-pp-muted); letter-spacing: .02em; }
.ua-side-label { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a93a6; padding: .9rem .7rem .35rem; }
.ua-side-nav { display: flex; flex-direction: column; gap: 2px; }
.ua-side-link { position: relative; display: flex; align-items: center; gap: .7rem; padding: .58rem .75rem; border-radius: 9px; color: var(--ua-pp-ink-2) !important; font-weight: 700; font-size: .93rem; text-decoration: none; }
.ua-side-link i { font-size: 1.08rem; width: 1.2rem; text-align: center; color: #7b8499; }
.ua-side-link:hover { background: #f4f5f8; color: var(--ua-pp-ink) !important; }
.ua-side-link.active { background: var(--ua-pp-accent-soft); color: var(--ua-pp-accent-h) !important; }
.ua-side-link.active i { color: var(--ua-pp-accent); }
.ua-side-link.active::before { content: ''; position: absolute; left: -.9rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ua-pp-accent); }
.ua-side-foot { margin-top: auto; padding-top: 1rem; }
.ua-side-child { display: flex; align-items: center; gap: .6rem; padding: .7rem; border: 1px solid var(--ua-pp-line); border-radius: 12px; margin-bottom: .6rem; background: #fafbfc; }
.ua-side-child b { display: block; font-size: .9rem; line-height: 1.2; }
.ua-side-child small { color: var(--ua-pp-muted); font-weight: 600; font-size: .78rem; }
.ua-side-help { font-size: .76rem; color: var(--ua-pp-muted); padding: .4rem .3rem 0; }

.ua-pp-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.ua-topbar2 { position: sticky; top: 0; z-index: 1020; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ua-pp-line); }
.ua-topbar2-in { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding: .7rem 16px; }
@media (min-width: 992px) { .ua-topbar2-in { padding: .8rem 2rem; } }
.ua-pp-title { min-width: 0; flex: 1 1 auto; }
.ua-pp-title h1 { font-size: 1.25rem; font-weight: 800; margin: 0; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ua-pp-title p { margin: 0; color: var(--ua-pp-muted); font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ua-topbar2-tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ua-switch-btn { display: flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid var(--ua-pp-line); border-radius: 12px; padding: .3rem .7rem .3rem .35rem; text-align: left; max-width: 240px; }
.ua-switch-btn:hover { border-color: #cfd4de; }
.ua-switch-btn .ua-avatar { width: 34px; height: 34px; font-size: 1.1rem; border-width: 1px; flex-shrink: 0; }
.ua-switch-btn b { display: block; font-size: .9rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ua-switch-btn small { display: block; color: var(--ua-pp-muted); font-weight: 600; font-size: .75rem; line-height: 1.1; }
.ua-switch-btn .bi-chevron-expand { color: var(--ua-pp-muted); margin-left: auto; }
.ua-switch-menu { min-width: 260px; border-radius: 12px; border-color: var(--ua-pp-line); box-shadow: var(--ua-pp-shadow-lg); padding: .4rem; }
.ua-switch-menu .dropdown-item { border-radius: 8px; padding: .5rem .6rem; display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.ua-switch-menu .dropdown-item small { color: var(--ua-pp-muted); font-weight: 600; }
.ua-switch-menu .dropdown-item.active, .ua-switch-menu .dropdown-item:active { background: var(--ua-pp-accent-soft); color: var(--ua-pp-accent-h); }
.ua-me-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ua-pp-line); background: #fff; font-weight: 800; color: var(--ua-pp-ink); display: grid; place-items: center; font-size: .9rem; }
.ua-me-btn:hover { border-color: #cfd4de; }
.ua-me-menu { min-width: 240px; border-radius: 12px; border-color: var(--ua-pp-line); box-shadow: var(--ua-pp-shadow-lg); padding: .4rem; }
.ua-me-menu .dropdown-item { border-radius: 8px; font-weight: 600; padding: .45rem .6rem; }
.ua-me-head { padding: .5rem .6rem .6rem; border-bottom: 1px solid var(--ua-pp-line-2); margin-bottom: .3rem; }
.ua-me-head b { display: block; }
.ua-me-head small { color: var(--ua-pp-muted); word-break: break-all; }
@media (max-width: 767.98px) {
    .ua-topbar2-tools.ua-tools-wide { order: 5; flex: 1 1 100%; justify-content: space-between; }
    .ua-switch-btn { max-width: 190px; }
}
.ua-pp-page { padding: 1.25rem 16px 3rem; flex-grow: 1; }
@media (min-width: 992px) { .ua-pp-page { padding: 1.6rem 2rem 3rem; } }
.ua-pp-page-in { max-width: 1440px; margin: 0 auto; }

/* generic card */
.ua-card2 { background: var(--ua-pp-card); border: 1px solid var(--ua-pp-line); border-radius: var(--ua-pp-radius); box-shadow: var(--ua-pp-shadow); padding: 1.15rem 1.25rem; }
.ua-card2-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .9rem; flex-wrap: wrap; }
.ua-card2-title { font-size: 1rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .5rem; }
.ua-card2-title i { color: var(--ua-pp-accent); }
.ua-card2-sub { color: var(--ua-pp-muted); font-size: .82rem; margin: .15rem 0 0; font-weight: 600; }
.ua-card2-actions { margin-left: auto; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.ua-section-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; }
.ua-sk { border-radius: 10px; background: linear-gradient(90deg, #eef0f4 25%, #f6f7f9 50%, #eef0f4 75%); background-size: 200% 100%; animation: ua-sk 1.2s infinite; }
.ua-badge2 { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 800; background: #eef0f4; color: var(--ua-pp-ink-2); white-space: nowrap; }
.ua-badge2.good { background: var(--ua-pp-good-soft); color: var(--ua-pp-good); }
.ua-badge2.warn { background: var(--ua-pp-warn-soft); color: var(--ua-pp-warn); }
.ua-badge2.bad { background: var(--ua-pp-bad-soft); color: var(--ua-pp-bad); }
.ua-badge2.info { background: var(--ua-pp-info-soft); color: var(--ua-pp-info); }
.ua-badge2.accent { background: var(--ua-pp-accent-soft); color: var(--ua-pp-accent-h); }
.ua-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .35rem; color: var(--ua-pp-muted); padding: 1.6rem 1rem; min-height: 160px; border: 1px dashed #dde1e8; border-radius: 12px; background: #fbfbfd; font-weight: 600; font-size: .88rem; }
.ua-empty i { font-size: 1.6rem; color: #b3bac7; }
.ua-empty b { color: var(--ua-pp-ink-2); }

/* ---------------------------------------------------------------- dashboard */
.ua-dash { --ua-gap: 1rem; }
.ua-dash .row { --bs-gutter-x: var(--ua-gap); --bs-gutter-y: var(--ua-gap); }
.ua-dash-hero { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ua-dash-hero .ua-avatar { width: 52px; height: 52px; font-size: 1.7rem; border-width: 1px; }
.ua-dash-hero h2 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.ua-dash-hero p { margin: 0; color: var(--ua-pp-muted); font-weight: 600; font-size: .86rem; }
.ua-dash-hero-tools { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ua-kpi2 { position: relative; height: 100%; display: flex; flex-direction: column; padding: 1rem 1.1rem .8rem; overflow: hidden; }
.ua-kpi2-label { font-size: .8rem; font-weight: 700; color: var(--ua-pp-muted); display: flex; align-items: center; gap: .4rem; }
.ua-kpi2-label i { font-size: .95rem; color: var(--ua-pp-ink-2); }
.ua-kpi2-value { font-size: 1.65rem; font-weight: 800; line-height: 1.15; margin-top: .3rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ua-kpi2-value small { font-size: .9rem; font-weight: 700; color: var(--ua-pp-muted); margin-left: .15rem; }
.ua-kpi2-foot { display: flex; align-items: center; gap: .4rem; margin-top: .2rem; font-size: .75rem; color: var(--ua-pp-muted); font-weight: 600; min-height: 1.4rem; flex-wrap: wrap; }
.ua-trend { display: inline-flex; align-items: center; gap: .15rem; padding: .05rem .4rem; border-radius: 6px; font-weight: 800; font-size: .74rem; }
.ua-trend.up { background: var(--ua-pp-good-soft); color: var(--ua-pp-good); }
.ua-trend.down { background: var(--ua-pp-bad-soft); color: var(--ua-pp-bad); }
.ua-trend.flat { background: #eef0f4; color: var(--ua-pp-ink-2); }
.ua-spark { display: block; width: 100%; height: 34px; margin-top: auto; padding-top: .45rem; }
.ua-spark path.l { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ua-spark path.a { stroke: none; opacity: .12; }

.ua-summary { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ua-summary li { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .8rem; border-radius: 10px; background: #f8f9fb; font-weight: 500; font-size: .92rem; line-height: 1.45; }
.ua-summary li i { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: .95rem; background: #eef0f4; color: var(--ua-pp-ink-2); margin-top: 1px; }
.ua-summary li.good i { background: var(--ua-pp-good-soft); color: var(--ua-pp-good); }
.ua-summary li.warn i { background: var(--ua-pp-warn-soft); color: var(--ua-pp-warn); }
.ua-summary li.info i { background: var(--ua-pp-info-soft); color: var(--ua-pp-info); }
.ua-insight2 { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--ua-pp-line-2); }
.ua-insight2-text { white-space: pre-line; line-height: 1.6; font-size: .9rem; color: var(--ua-pp-ink-2); }

.ua-subj { display: grid; grid-template-columns: 1fr; gap: .35rem; }
.ua-subj-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; align-items: center; padding: .55rem .6rem; border-radius: 10px; border: 1px solid transparent; background: none; width: 100%; text-align: left; color: inherit; }
.ua-subj-row:hover { background: #f8f9fb; border-color: var(--ua-pp-line-2); }
.ua-subj-row:focus-visible { outline: none; box-shadow: var(--ua-pp-focus); }
.ua-subj-name { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; min-width: 0; }
.ua-subj-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ua-subj-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.ua-subj-meta { font-size: .78rem; font-weight: 700; color: var(--ua-pp-muted); white-space: nowrap; }
.ua-subj-bar { grid-column: 1 / -1; display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #eef0f4; }
.ua-subj-bar span { display: block; height: 100%; }
.ua-subj-bar .m { background: #1e9e5e; }
.ua-subj-bar .d { background: #8fd1ad; }
.ua-subj-bar .s { background: #f0a35e; }
.ua-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .75rem; font-weight: 700; color: var(--ua-pp-muted); }
.ua-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; background: var(--c); }

.ua-chart2 { position: relative; height: 260px; }
.ua-chart2.sm { height: 220px; }
.ua-chart2 canvas { max-width: 100%; }

.ua-metrics { display: grid; grid-template-columns: 1fr; }
.ua-metric2 { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--ua-pp-line-2); font-size: .88rem; font-weight: 600; color: var(--ua-pp-ink-2); }
.ua-metric2:last-child { border-bottom: 0; }
.ua-metric2 b { color: var(--ua-pp-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.ua-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }
.ua-rec2 { border: 1px solid var(--ua-pp-line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .45rem; background: #fff; border-top: 3px solid var(--rc, var(--ua-pp-accent)); }
.ua-rec2 h4 { font-size: .95rem; font-weight: 800; margin: 0; }
.ua-rec2 p { margin: 0; font-size: .87rem; color: var(--ua-pp-ink-2); line-height: 1.5; }
.ua-rec2-sci { font-size: .78rem; color: var(--ua-pp-muted); background: #f8f9fb; border-radius: 8px; padding: .45rem .6rem; display: flex; gap: .4rem; }
.ua-rec2-actions { display: flex; gap: .4rem; margin-top: auto; padding-top: .2rem; }
.ua-rec2-actions .btn { font-size: .8rem; padding: .3rem .7rem; }

.ua-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.ua-filters .form-select, .ua-filters .form-control { width: auto; min-width: 150px; font-size: .86rem; min-height: 36px; padding-top: .3rem; padding-bottom: .3rem; }
.ua-filters .ua-search { position: relative; }
.ua-filters .ua-search i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--ua-pp-muted); }
.ua-filters .ua-search input { padding-left: 2rem; min-width: 200px; }
@media (max-width: 575.98px) {
    .ua-filters .form-select, .ua-filters .form-control, .ua-filters .ua-search, .ua-filters .ua-search input { width: 100%; min-width: 0; }
    .ua-filters .ua-seg { width: 100%; overflow-x: auto; }
}
.ua-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .87rem; }
.ua-tbl th { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ua-pp-muted); padding: .55rem .6rem; border-bottom: 1px solid var(--ua-pp-line); white-space: nowrap; background: #fafbfc; }
.ua-tbl th:first-child { border-top-left-radius: 10px; }
.ua-tbl th:last-child { border-top-right-radius: 10px; }
.ua-tbl td { padding: .6rem .6rem; border-bottom: 1px solid var(--ua-pp-line-2); vertical-align: middle; }
.ua-tbl tbody tr.ua-row { cursor: pointer; }
.ua-tbl tbody tr.ua-row:hover td { background: #fafbfd; }
.ua-tbl tbody tr.ua-row:focus-visible { outline: none; }
.ua-tbl tbody tr.ua-row:focus-visible td { background: var(--ua-pp-accent-soft); }
.ua-tbl tr.open td { background: #fafbfd; border-bottom-color: transparent; }
.ua-tbl .ua-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ua-tbl th.ua-sort { cursor: pointer; user-select: none; }
.ua-tbl th.ua-sort:hover { color: var(--ua-pp-ink); }
.ua-tbl th.ua-sort::after { content: '\F127'; font-family: 'bootstrap-icons'; margin-left: .3rem; opacity: .35; font-size: .7rem; }
.ua-tbl th[aria-sort="ascending"]::after { content: '\F148'; opacity: 1; }
.ua-tbl th[aria-sort="descending"]::after { content: '\F128'; opacity: 1; }
.ua-tbl .ua-caret { color: var(--ua-pp-muted); transition: transform .15s; display: inline-block; }
.ua-tbl tr.open .ua-caret { transform: rotate(90deg); }
.ua-tbl .ua-detail td { background: #fafbfd; padding: 0 .6rem .9rem; }
.ua-out-title { font-weight: 700; line-height: 1.25; }
.ua-out-code { font-size: .74rem; color: var(--ua-pp-muted); font-weight: 600; }
.ua-pbar2 { display: flex; align-items: center; gap: .5rem; min-width: 120px; }
.ua-pbar2 > span { flex-grow: 1; height: 6px; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.ua-pbar2 > span > i { display: block; height: 100%; border-radius: 99px; background: #1e9e5e; }
.ua-pbar2 b { font-size: .8rem; width: 2.6rem; text-align: right; font-variant-numeric: tabular-nums; }
.ua-status { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 800; padding: .16rem .55rem; border-radius: 999px; white-space: nowrap; }
.ua-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ua-status.mastered { background: var(--ua-pp-good-soft); color: var(--ua-pp-good); }
.ua-status.developing { background: var(--ua-pp-info-soft); color: var(--ua-pp-info); }
.ua-status.support { background: var(--ua-pp-warn-soft); color: var(--ua-pp-warn); }
.ua-status.new { background: #eef0f4; color: var(--ua-pp-muted); }
.ua-mistakes { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding-top: .2rem; }
.ua-mistake { background: #fff; border: 1px solid var(--ua-pp-line); border-radius: 10px; padding: .6rem .75rem; font-size: .84rem; }
.ua-mistake q { display: block; color: var(--ua-pp-ink-2); font-style: italic; margin: .2rem 0 .35rem; quotes: '“' '”'; }
.ua-mistake-meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; color: var(--ua-pp-muted); font-size: .76rem; font-weight: 700; }
.ua-tbl-foot { display: flex; align-items: center; gap: .75rem; padding-top: .8rem; flex-wrap: wrap; font-size: .82rem; color: var(--ua-pp-muted); font-weight: 600; }
.ua-score { display: inline-flex; align-items: center; gap: .45rem; }
.ua-score > span { width: 46px; height: 6px; border-radius: 99px; background: #eef0f4; overflow: hidden; display: inline-block; }
.ua-score > span > i { display: block; height: 100%; background: var(--ua-pp-good); }
.ua-focus { font-weight: 800; font-variant-numeric: tabular-nums; }
.ua-focus.hi { color: var(--ua-pp-good); }
.ua-focus.mid { color: var(--ua-pp-warn); }
.ua-focus.lo { color: var(--ua-pp-bad); }
.ua-sess-detail { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: .84rem; padding-top: .3rem; }
.ua-sess-detail h5 { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ua-pp-muted); font-weight: 800; margin: 0 0 .35rem; }
.ua-sess-detail ul { list-style: none; padding: 0; margin: 0; }
.ua-sess-detail li { display: flex; justify-content: space-between; gap: .5rem; padding: .2rem 0; }
.ua-mis-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--ua-pp-line-2); font-size: .87rem; font-weight: 600; }
.ua-mis-row:last-child { border-bottom: 0; }
.ua-mis-row b { font-variant-numeric: tabular-nums; }
.ua-journal { display: flex; flex-direction: column; gap: .6rem; }
.ua-journal-item { font-size: .84rem; border-left: 3px solid var(--ua-pp-line); padding-left: .7rem; }
.ua-journal-item b { font-size: .78rem; color: var(--ua-pp-muted); }
.ua-print-head { display: none; }

/* children page */
.ua-quota2 { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.ua-quota2-item { min-width: 160px; }
.ua-quota2-item small { display: block; color: var(--ua-pp-muted); font-weight: 700; font-size: .78rem; }
.ua-quota2-item b { font-size: 1.15rem; }
.ua-quota2-bar { height: 6px; border-radius: 99px; background: #eef0f4; overflow: hidden; margin-top: .3rem; }
.ua-quota2-bar i { display: block; height: 100%; background: var(--ua-pp-accent); }
.ua-kid { height: 100%; display: flex; flex-direction: column; gap: .9rem; }
.ua-kid.archived { background: #fafbfc; border-style: dashed; box-shadow: none; }
.ua-kid-head { display: flex; align-items: center; gap: .8rem; }
.ua-kid-head .ua-avatar { width: 54px; height: 54px; font-size: 1.8rem; border-width: 1px; }
.ua-kid-head h3 { font-size: 1.08rem; font-weight: 800; margin: 0; }
.ua-kid-head p { margin: 0; color: var(--ua-pp-muted); font-size: .82rem; font-weight: 600; }
.ua-kid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.ua-kid-stats div { background: #f8f9fb; border-radius: 10px; padding: .5rem .6rem; }
.ua-kid-stats small { display: block; font-size: .72rem; color: var(--ua-pp-muted); font-weight: 700; }
.ua-kid-stats b { font-size: .95rem; }
.ua-kid-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }
.ua-kid-actions .btn { font-size: .85rem; }
.ua-add-card { border: 1px dashed #cdd2dc; border-radius: var(--ua-pp-radius); min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--ua-pp-muted); background: transparent; width: 100%; font-weight: 700; }
.ua-add-card:hover:not(:disabled) { border-color: var(--ua-pp-accent); color: var(--ua-pp-accent-h); background: #fff; }
.ua-add-card i { font-size: 1.8rem; }
.ua-add-card:disabled { opacity: .55; }
.ua-pp .modal-content { border-radius: 16px; border: 0; box-shadow: var(--ua-pp-shadow-lg); }
.ua-pp .modal-header { border-bottom-color: var(--ua-pp-line-2); }
.ua-pp .modal-footer { border-top-color: var(--ua-pp-line-2); }
.ua-pp .modal-title { font-weight: 800; font-size: 1.08rem; }
.ua-cred2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ua-cred2 div { border: 1px dashed #e4c5b0; background: var(--ua-pp-accent-soft); border-radius: 12px; padding: .7rem; text-align: center; }
.ua-cred2 small { display: block; color: var(--ua-pp-muted); font-weight: 700; font-size: .78rem; }
.ua-cred2 b { font-size: 1.35rem; letter-spacing: .05em; word-break: break-all; }
.ua-pp .ua-avatar-pick span { width: 46px; height: 46px; border-radius: 12px; border-width: 2px; font-size: 1.5rem; }
.ua-pp .ua-avatar-pick input:focus-visible + span { box-shadow: var(--ua-pp-focus); }

/* settings */
.ua-tabs2 { border-bottom: 1px solid var(--ua-pp-line); gap: .25rem; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 1.2rem; scrollbar-width: none; }
.ua-tabs2 .nav-link { border: 0; flex-shrink: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--ua-pp-ink-2); font-weight: 700; padding: .65rem .9rem; white-space: nowrap; background: none; }
.ua-print-img { display: none; }
@media (max-width: 575.98px) { .ua-tabs2 .nav-link { padding: .6rem .55rem; font-size: .92rem; } }
.ua-tabs2 .nav-link:hover { color: var(--ua-pp-ink); }
.ua-tabs2 .nav-link.active { color: var(--ua-pp-accent-h); border-bottom-color: var(--ua-pp-accent); background: none; }
.ua-tabs2 .nav-link:focus-visible { outline: none; box-shadow: inset var(--ua-pp-focus); }
.ua-form-foot { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--ua-pp-line-2); flex-wrap: wrap; }
.ua-form-foot .ua-saved { color: var(--ua-pp-good); font-weight: 700; font-size: .85rem; display: none; }
.ua-form-foot .ua-saved.on { display: inline; }
.ua-switchrow { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--ua-pp-line-2); }
.ua-switchrow:last-child { border-bottom: 0; }
.ua-switchrow .form-check-input { margin-top: .2rem; flex-shrink: 0; }
.ua-switchrow label { font-weight: 700; }
.ua-switchrow small { display: block; color: var(--ua-pp-muted); font-weight: 600; }
.ua-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.ua-kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .88rem; }
.ua-kv dt { color: var(--ua-pp-muted); font-weight: 700; }
.ua-kv dd { margin: 0; font-weight: 700; }

.ua-science2 { max-width: 920px; }
.ua-science2 h3 { font-size: 1.05rem; font-weight: 800; margin-top: 1.5rem; display: flex; gap: .5rem; align-items: center; }
.ua-science2 p, .ua-science2 li { color: var(--ua-pp-ink-2); line-height: 1.65; }

/* ---------------------------------------------------------------- auth pages */
.ua-authx { background: #f5f6fa; min-height: 100vh; }
.ua-authx-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .ua-authx-wrap { grid-template-columns: minmax(380px, 5fr) 7fr; } }
.ua-authx-brand { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 15% 0%, #f39a52 0, transparent 55%), radial-gradient(circle at 100% 100%, #7a3b8f 0, transparent 55%), linear-gradient(160deg, #c4531a, #8c3a1d 70%); padding: 2.4rem 2.6rem; display: none; flex-direction: column; }
@media (min-width: 992px) { .ua-authx-brand { display: flex; position: sticky; top: 0; height: 100vh; } }
.ua-authx-brand .ua-side-brand { color: #fff; padding: 0; }
.ua-authx-brand .ua-side-brand .ua-brand-mark { background: #fff; color: var(--ua-pp-accent); }
.ua-authx-brand .ua-side-brand small { color: rgba(255, 255, 255, .78); }
.ua-authx-brand h2 { font-size: 1.85rem; font-weight: 800; line-height: 1.2; margin: 2.6rem 0 .8rem; max-width: 26ch; }
.ua-authx-brand p { color: rgba(255, 255, 255, .86); font-weight: 600; max-width: 44ch; }
.ua-authx-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-direction: column; gap: 1rem; max-width: 46ch; }
.ua-authx-points li { display: flex; gap: .8rem; align-items: flex-start; font-weight: 600; line-height: 1.45; }
.ua-authx-points li i { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 1.05rem; }
.ua-authx-points b { display: block; color: #fff; }
.ua-authx-points span { color: rgba(255, 255, 255, .82); font-size: .9rem; }
.ua-authx-note { margin-top: auto; padding: 1rem 1.1rem; border-radius: 12px; background: rgba(0, 0, 0, .18); font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .92); display: flex; gap: .7rem; }
.ua-authx-note i { font-size: 1.2rem; }
.ua-authx-main { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 16px 3rem; }
@media (min-width: 992px) { .ua-authx-main { padding: 3rem 2rem; justify-content: center; } }
.ua-authx-mobilebrand { display: flex; width: 100%; max-width: 560px; margin-bottom: 1.1rem; }
@media (min-width: 992px) { .ua-authx-mobilebrand { display: none; } }
.ua-authx-card { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--ua-pp-line); border-radius: 18px; box-shadow: var(--ua-pp-shadow); padding: 1.6rem 1.3rem; }
@media (min-width: 576px) { .ua-authx-card { padding: 2rem 2.2rem; } }
.ua-authx-card.narrow { max-width: 460px; }
.ua-authx-card h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .3rem; }
.ua-authx-lead { color: var(--ua-pp-muted); font-weight: 600; font-size: .92rem; margin-bottom: 1.4rem; }
.ua-authx-foot { margin-top: 1.4rem; text-align: center; font-size: .9rem; color: var(--ua-pp-muted); font-weight: 600; }
.ua-authx-pitch { display: block; }
@media (min-width: 992px) { .ua-authx-pitch { display: none; } }
.ua-authx-pitch ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .4rem; font-size: .86rem; font-weight: 600; color: var(--ua-pp-ink-2); }
.ua-authx-pitch li i { color: var(--ua-pp-accent); margin-right: .35rem; }

.ua-wiz-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; counter-reset: s; }
.ua-wiz-steps li { counter-increment: s; display: flex; flex-direction: column; gap: .4rem; font-size: .78rem; font-weight: 700; color: var(--ua-pp-muted); }
.ua-wiz-steps li::before { content: ''; height: 4px; border-radius: 9px; background: #e6e8ef; }
.ua-wiz-steps li span::before { content: counter(s) '. '; }
.ua-wiz-steps li.done::before, .ua-wiz-steps li.now::before { background: var(--ua-pp-accent); }
.ua-wiz-steps li.now { color: var(--ua-pp-ink); }
.ua-wiz-steps li.done { color: var(--ua-pp-ink-2); }
.ua-wiz-pane { display: none; }
.ua-wiz-pane.now { display: block; animation: ua-fade .2s ease-out; }
@keyframes ua-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ua-wiz-pane h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .2rem; }
.ua-wiz-pane .ua-pane-sub { color: var(--ua-pp-muted); font-size: .85rem; font-weight: 600; margin-bottom: 1.1rem; }
.ua-wiz-nav { display: flex; gap: .6rem; margin-top: 1.5rem; }
.ua-wiz-nav .btn { min-height: 46px; }
.ua-consent { border: 1px solid var(--ua-pp-line); border-radius: 12px; padding: .2rem .9rem; }
.ua-consent .form-check { padding: .7rem 0 .7rem 2rem; border-bottom: 1px solid var(--ua-pp-line-2); margin: 0; }
.ua-consent .form-check:last-child { border-bottom: 0; }
.ua-consent .form-check-input { margin-left: -2rem; width: 1.2em; height: 1.2em; margin-top: .15em; }
.ua-consent .form-check-label { font-size: .88rem; font-weight: 600; }
.ua-consent .invalid-feedback { margin-top: .2rem; }
.ua-review { background: #f8f9fb; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.ua-done { text-align: center; padding: 1rem 0 .5rem; }
.ua-done-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--ua-pp-good-soft); color: var(--ua-pp-good); font-size: 2.2rem; }
.ua-done ol { text-align: left; max-width: 380px; margin: 1.2rem auto; padding-left: 1.2rem; color: var(--ua-pp-ink-2); font-weight: 600; font-size: .9rem; }
.ua-done ol li { padding: .25rem 0; }
.ua-kvkk-text h6 { font-weight: 800; margin-top: 1rem; font-size: .92rem; }
.ua-kvkk-text p, .ua-kvkk-text li { font-size: .88rem; color: var(--ua-pp-ink-2); line-height: 1.6; }
.ua-authx .ua-tabs3 { display: grid; grid-template-columns: 1fr 1fr; background: #eef0f4; padding: 4px; border-radius: 12px; gap: 4px; margin-bottom: 1.4rem; }
.ua-authx .ua-tabs3 .nav-link { border-radius: 9px; font-weight: 800; color: var(--ua-pp-ink-2); padding: .55rem .5rem; font-size: .92rem; }
.ua-authx .ua-tabs3 .nav-link.active { background: #fff; color: var(--ua-pp-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .14); }
.ua-authx .ua-tabs3 .nav-link:focus-visible { outline: none; box-shadow: var(--ua-pp-focus); }
.ua-authx .ua-pinpad button { border-width: 1px; box-shadow: 0 2px 0 var(--ua-pp-line); border-radius: 14px; height: 58px; }
.ua-authx .ua-pinpad button.ok { background: var(--ua-pp-good); border-color: var(--ua-pp-good); box-shadow: none; }
.ua-authx .ua-pin-dots i { border-width: 2px; }
.ua-authx .ua-pin-dots i.on { background: var(--ua-pp-accent); border-color: var(--ua-pp-accent); }
.ua-status-card { text-align: center; }
.ua-status-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2rem; background: var(--ua-pp-warn-soft); color: var(--ua-pp-warn); }
.ua-status-icon.bad { background: var(--ua-pp-bad-soft); color: var(--ua-pp-bad); }
.ua-timeline { list-style: none; padding: 0; margin: 1.4rem auto; max-width: 360px; text-align: left; }
.ua-timeline li { position: relative; padding: 0 0 1rem 2rem; font-weight: 600; font-size: .9rem; color: var(--ua-pp-muted); }
.ua-timeline li::before { content: ''; position: absolute; left: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cfd4de; background: #fff; }
.ua-timeline li::after { content: ''; position: absolute; left: 12px; top: 20px; bottom: 0; width: 2px; background: #e6e8ef; }
.ua-timeline li:last-child::after { display: none; }
.ua-timeline li.done { color: var(--ua-pp-ink); }
.ua-timeline li.done::before { background: var(--ua-pp-good); border-color: var(--ua-pp-good); }
.ua-timeline li.now { color: var(--ua-pp-ink); }
.ua-timeline li.now::before { border-color: var(--ua-pp-accent); box-shadow: 0 0 0 3px var(--ua-pp-accent-soft); }

/* ---------------------------------------------------------------- print (weekly report) */
@media print {
    @page { size: A4; margin: 12mm; }
    body, .ua-pp { background: #fff !important; }
    .ua-side, .ua-topbar2, .ua-no-print, .ua-toast-wrap, .ua-rec2-actions, .ua-tbl-foot, .ua-filters, .ua-dash-hero-tools, .ua-card2-actions, .modal { display: none !important; }
    .ua-pp-page { padding: 0 !important; }
    .ua-print-head { display: flex !important; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #1d2639; padding-bottom: 6px; margin-bottom: 12px; }
    .ua-print-head h1 { font-size: 18pt; margin: 0; }
    .ua-card2 { box-shadow: none !important; border-color: #d8dbe2 !important; break-inside: avoid; page-break-inside: avoid; }
    .ua-dash .row > * { break-inside: avoid; }
    .ua-dash .row { margin-left: 0; margin-right: 0; }
    .ua-dash .row > * { padding-left: .35rem; padding-right: .35rem; }
    .ua-dash .col-print-6 { width: 50% !important; flex: 0 0 auto; }
    .ua-dash .col-print-12 { width: 100% !important; flex: 0 0 auto; }
    .ua-print-hide { display: none !important; }
    .ua-chart2 { height: auto !important; min-height: 0 !important; }
    .ua-chart2 canvas { display: none !important; }
    .ua-print-img { display: block !important; width: auto; max-width: 100%; height: auto; max-height: 240px; margin: 0 auto; }
    a { color: inherit !important; text-decoration: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .ua-wiz-pane.now, .ua-sk { animation: none; }
}

/* ---------------------------------------------------------------- small screens: tables become stacked cards */
@media (max-width: 767.98px) {
    .ua-tbl.ua-stack thead { display: none; }
    .ua-tbl.ua-stack, .ua-tbl.ua-stack tbody { display: block; }
    .ua-tbl.ua-stack tr.ua-row { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .75rem; padding: .75rem .25rem; border-bottom: 1px solid var(--ua-pp-line-2); }
    .ua-tbl.ua-stack tr.ua-row td { display: block; padding: 0; border: 0; background: none !important; text-align: left; }
    .ua-tbl.ua-stack tr.ua-row td.ua-full { grid-column: 1 / -1; }
    .ua-tbl.ua-stack tr.ua-row td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ua-pp-muted); margin-bottom: .1rem; }
    .ua-tbl.ua-stack tr.ua-row.open { background: #fafbfd; }
    .ua-tbl.ua-stack tr.ua-detail { display: block; }
    .ua-tbl.ua-stack tr.ua-detail[hidden] { display: none; }
    .ua-tbl.ua-stack tr.ua-detail td { display: block; padding: .2rem .25rem .9rem; }
    .ua-tbl.ua-stack tr > td[colspan] { display: block; }
    .ua-filters .ua-seg { flex-wrap: wrap; }
    .ua-subj-row { grid-template-columns: 1fr; }
    .ua-kpi2-value { font-size: 1.45rem; }
}
.ua-tbl td.ua-nowrap { white-space: nowrap; }
.ua-pp .ua-side-brand, .ua-pp .ua-side-brand:hover { color: var(--ua-pp-ink); }
.ua-authx .ua-side-brand { color: var(--ua-pp-ink); }
.ua-authx .ua-authx-brand .ua-side-brand { color: #fff; }
.ua-tbl td.ua-mob { display: none; }
@media (max-width: 767.98px) {
    .ua-tbl.ua-stack tr.ua-row td.ua-desk { display: none; }
    .ua-tbl.ua-stack tr.ua-row td.ua-mob { display: block; font-size: .8rem; color: var(--ua-pp-muted); font-weight: 600; }
    .ua-tbl.ua-stack tr.ua-row { align-items: center; }
}
.ua-switchrow.form-switch { padding-left: 0; }
.ua-switchrow.form-switch .form-check-input { margin-left: 0; float: none; width: 2.4em; height: 1.3em; cursor: pointer; }
.ua-switchrow .form-check-input:disabled + label { opacity: .7; }
.ua-att { border: 1px solid var(--ua-pp-line, #e5e7eb); border-left: 4px solid #9ca3af; border-radius: 12px; padding: .8rem 1rem; margin-bottom: .8rem; background: #fff; }
.ua-att.good { border-left-color: #1e9e5e; }
.ua-att.bad { border-left-color: #d9480f; }
.ua-att header { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .45rem; }
.ua-att-stem { margin: 0 0 .4rem; white-space: pre-line; }
.ua-att-q { font-weight: 700; margin: .3rem 0 .5rem; }
.ua-att-opts { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .3rem; }
.ua-att-opt { display: flex; gap: .55rem; align-items: flex-start; padding: .35rem .55rem; border-radius: 8px; border: 1px solid transparent; font-size: .92rem; }
.ua-att-opt.ok { background: #e9f7ef; border-color: #b7e3c8; }
.ua-att-opt.no { background: #fdecea; border-color: #f5c2bb; }
.ua-att-opt em { font-style: normal; font-size: .74rem; font-weight: 800; color: var(--ua-pp-muted, #6b7280); white-space: nowrap; }
.ua-att-letter { width: 1.5rem; height: 1.5rem; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%; background: #f1f2f6; font-weight: 800; font-size: .78rem; }
.ua-att-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.ua-att-err { margin-top: .45rem; font-size: .86rem; background: #fff8e6; border-radius: 8px; padding: .35rem .6rem; }
