/* =====================================================================
   Oasis Parent Portal - "Smart" theme
   Shared by: login, shell (default_parent_*), frtop, frleft, frmain
   New file - does not replace any existing stylesheet.
   ===================================================================== */

:root {
    --ps-brand: #10528F;
    --ps-brand-600: #0C4476;
    --ps-brand-700: #09355D;
    --ps-brand-50: #EEF4FB;
    --ps-brand-100: #DCE8F6;
    --ps-accent: #E0A526;
    --ps-accent-50: #FDF6E4;
    --ps-teal: #0E8F83;
    --ps-danger: #C2410C;
    --ps-danger-50: #FFF1EA;
    --ps-success: #15803D;
    --ps-success-50: #ECFDF3;

    --ps-bg: #F4F7FB;
    --ps-surface: #FFFFFF;
    --ps-surface-2: #F8FAFD;
    --ps-ink: #0F1B2D;
    --ps-ink-2: #334155;
    --ps-muted: #64748B;
    --ps-line: #E2E8F0;
    --ps-line-2: #EDF2F7;
    --ps-focus: rgba(16, 82, 143, .28);

    --ps-radius: 14px;
    --ps-radius-sm: 10px;
    --ps-shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
    --ps-shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);
    --ps-shadow-lg: 0 24px 60px rgba(9, 53, 93, .22);

    --ps-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

:root[data-theme="dark"] {
    --ps-brand: #5B9BE0;
    --ps-brand-600: #7AB0EA;
    --ps-brand-700: #A9CBF2;
    --ps-brand-50: #13243A;
    --ps-brand-100: #1A3150;
    --ps-accent: #F0B93E;
    --ps-accent-50: #2B2413;
    --ps-danger: #FB8A5B;
    --ps-danger-50: #3A1E14;
    --ps-success: #4ADE80;
    --ps-success-50: #10291B;

    --ps-bg: #0B1320;
    --ps-surface: #111C2E;
    --ps-surface-2: #0F1828;
    --ps-ink: #E7EEF8;
    --ps-ink-2: #C3CFDF;
    --ps-muted: #8A9BB3;
    --ps-line: #22324A;
    --ps-line-2: #1A2940;
    --ps-focus: rgba(91, 155, 224, .35);
    --ps-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --ps-shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

/* ---------- base ---------- */
.ps, .ps * { box-sizing: border-box; }
html.ps, .ps body { margin: 0; padding: 0; }
.ps body {
    font-family: var(--ps-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ps-ink);
    background: var(--ps-bg);
    -webkit-font-smoothing: antialiased;
}
.ps a { color: var(--ps-brand); text-decoration: none; }
.ps a:hover { text-decoration: underline; }
.ps :focus-visible { outline: 3px solid var(--ps-focus); outline-offset: 2px; }
.ps .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ps .ico svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ps-hidden { display: none !important; }

/* ---------- buttons & inputs ---------- */
.ps .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 20px; border-radius: var(--ps-radius-sm);
    font: 600 15px/1 var(--ps-font); cursor: pointer; border: 1px solid transparent;
    transition: background .15s, box-shadow .15s, transform .05s;
}
.ps .btn:active { transform: translateY(1px); }
.ps .btn-primary { background: var(--ps-brand); color: #fff; box-shadow: 0 6px 16px rgba(16, 82, 143, .25); }
.ps .btn-primary:hover { background: var(--ps-brand-600); }
:root[data-theme="dark"] .ps .btn-primary, :root[data-theme="dark"].ps .btn-primary { color: #06101D; }
.ps .btn-ghost { background: transparent; color: var(--ps-ink-2); border-color: var(--ps-line); }
.ps .btn-ghost:hover { background: var(--ps-surface-2); }
.ps .btn-block { width: 100%; }
.ps .btn.is-loading { pointer-events: none; opacity: .85; }
.ps .btn.is-loading::after {
    content: ""; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
    animation: ps-spin .7s linear infinite;
}
@keyframes ps-spin { to { transform: rotate(360deg); } }

.ps .field { position: relative; margin-bottom: 16px; }
.ps .field label { display: block; font-size: 13px; font-weight: 600; color: var(--ps-ink-2); margin-bottom: 6px; }
.ps .field .ico { position: absolute; left: 14px; bottom: 13px; color: var(--ps-muted); pointer-events: none; }
.ps .input {
    width: 100%; height: 46px; padding: 0 14px 0 44px;
    border: 1px solid var(--ps-line); border-radius: var(--ps-radius-sm);
    background: var(--ps-surface); color: var(--ps-ink);
    font: 500 15px var(--ps-font); transition: border-color .15s, box-shadow .15s;
}
.ps .input::placeholder { color: var(--ps-muted); opacity: .8; }
.ps .input:focus { outline: none; border-color: var(--ps-brand); box-shadow: 0 0 0 4px var(--ps-focus); }
.ps .input.no-icon { padding-left: 14px; }
.ps .field .toggle-pw {
    position: absolute; right: 6px; bottom: 5px; width: 36px; height: 36px;
    display: grid; place-items: center; border: 0; background: transparent;
    color: var(--ps-muted); border-radius: 8px; cursor: pointer;
}
.ps .field .toggle-pw svg { width: 18px; height: 18px; }
.ps .field .toggle-pw:hover { background: var(--ps-surface-2); color: var(--ps-ink); }
.ps .hint { font-size: 12.5px; color: var(--ps-muted); margin-top: 6px; }
.ps .hint-warn { color: var(--ps-danger); font-weight: 600; }

.ps .alert {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: var(--ps-radius-sm); font-size: 14px; margin: 0 0 14px;
}
.ps .alert-error { background: var(--ps-danger-50); color: var(--ps-danger); border: 1px solid rgba(194, 65, 12, .18); }
.ps .alert-info { background: var(--ps-brand-50); color: var(--ps-brand-700); border: 1px solid var(--ps-brand-100); }
.ps .alert:empty { display: none; }
.ps .alert-inline { display: block; }

.ps .check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ps-ink-2); cursor: pointer; user-select: none; }
.ps .check input { width: 16px; height: 16px; accent-color: var(--ps-brand); }

.ps .kbd {
    display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px;
    border: 1px solid var(--ps-line); border-bottom-width: 2px; background: var(--ps-surface);
    font: 600 11px/18px var(--ps-font); color: var(--ps-muted); text-align: center;
}

/* =====================================================================
   LOGIN
   ===================================================================== */
.ps-login { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 46%) 1fr; }
.ps-login .brand-panel {
    position: relative; overflow: hidden; color: #fff; padding: 48px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(900px 500px at 110% -10%, rgba(224, 165, 38, .28), transparent 60%),
        radial-gradient(700px 500px at -20% 110%, rgba(14, 143, 131, .35), transparent 60%),
        linear-gradient(160deg, #0C4476 0%, #10528F 55%, #0A3A66 100%);
}
.ps-login .brand-panel::after {
    content: ""; position: absolute; right: -120px; bottom: -120px; width: 520px; height: 520px;
    background: url(../img/OasisLogo.png) no-repeat center / contain;
    filter: brightness(0) invert(1); opacity: .07; pointer-events: none;
}
.ps-login .brand-top { display: flex; align-items: center; gap: 14px; }
.ps-login .brand-top img { height: 56px; filter: brightness(0) invert(1); }
.ps-login .brand-top span { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; opacity: .8; }
.ps-login .brand-copy h1 { font-size: 40px; line-height: 1.15; margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; }
.ps-login .brand-copy p { font-size: 17px; opacity: .85; margin: 0 0 32px; max-width: 460px; }
.ps-login .features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ps-login .features li { display: flex; gap: 14px; align-items: center; font-size: 15px; }
.ps-login .features .ico {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
}
.ps-login .features b { display: block; font-weight: 700; }
.ps-login .features small { opacity: .75; font-size: 13px; }
.ps-login .brand-foot { font-size: 13px; opacity: .7; position: relative; z-index: 1; }

.ps-login .form-panel { display: flex; flex-direction: column; padding: 28px 40px; background: var(--ps-bg); }
.ps-login .form-top { display: flex; justify-content: space-between; align-items: center; }
.ps-login .form-top .mini-logo { height: 30px; display: none; }
.ps-login .form-top .spacer { flex: 1; }
.ps-login .top-actions { display: flex; gap: 8px; align-items: center; }
.ps .pill {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--ps-line); background: var(--ps-surface);
    font: 600 13px var(--ps-font); color: var(--ps-ink-2); cursor: pointer;
}
.ps .pill:hover { text-decoration: none; background: var(--ps-surface-2); }
.ps .pill .ico svg { width: 16px; height: 16px; }
.ps .icon-btn {
    width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
    border: 1px solid var(--ps-line); background: var(--ps-surface); color: var(--ps-ink-2); cursor: pointer;
}
.ps .icon-btn:hover { background: var(--ps-surface-2); }

.ps-login .form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.ps-login .card {
    width: 100%; max-width: 440px; background: var(--ps-surface); border: 1px solid var(--ps-line);
    border-radius: 20px; box-shadow: var(--ps-shadow); padding: 36px 36px 28px;
}
.ps-login .greet { font-size: 13px; font-weight: 700; color: var(--ps-accent); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.ps-login .card h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.ps-login .card .sub { margin: 0 0 24px; color: var(--ps-muted); font-size: 14.5px; }
.ps-login .row-between { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 20px; gap: 12px; flex-wrap: wrap; }
.ps-login .link-btn { font-size: 14px; font-weight: 600; color: var(--ps-brand); }
.ps-login .lang-hint {
    display: none; margin: 0 0 16px; padding: 10px 12px; border-radius: 10px;
    background: var(--ps-accent-50); color: var(--ps-ink-2); font-size: 13.5px;
}
.ps-login .lang-hint.show { display: block; }
.ps-login .forgot { display: none; }
.ps-login .forgot.is-open {
    display: block; margin-top: 18px; padding: 18px; border-radius: var(--ps-radius-sm);
    background: var(--ps-surface-2); border: 1px dashed var(--ps-line);
}
.ps-login .forgot h3 { margin: 0 0 4px; font-size: 15px; }
.ps-login .forgot p { margin: 0 0 14px; color: var(--ps-muted); font-size: 13.5px; }
.ps-login .forgot .row { display: flex; gap: 8px; }
.ps-login .forgot .row .field { flex: 1; margin: 0; }
.ps-login .help { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ps-line-2); font-size: 13.5px; color: var(--ps-muted); text-align: center; }
.ps-login .last-seen { font-size: 12.5px; color: var(--ps-muted); text-align: center; margin-top: 10px; }
.ps-login .form-foot { text-align: center; font-size: 12.5px; color: var(--ps-muted); }

@media (max-width: 900px) {
    .ps-login { grid-template-columns: 1fr; }
    .ps-login .brand-panel { display: none; }
    .ps-login .form-top .mini-logo { display: block; }
    .ps-login .form-panel { padding: 16px; }
    .ps-login .card { padding: 26px 20px 22px; border-radius: 16px; }
}

/* =====================================================================
   SHELL (SmartHome.aspx) : top bar + sidebar + <iframe name="mainFrame">
   ===================================================================== */
html.ps-shell-html, .ps-shell-html body { height: 100%; overflow: hidden; }
.ps-shell { height: 100vh; display: grid; grid-template-rows: 64px minmax(0, 1fr); grid-template-columns: 284px minmax(0, 1fr); }
.ps-shell .shell-main { grid-column: 2; grid-row: 2; background: var(--ps-bg); min-width: 0; position: relative; }
.ps-shell .shell-main iframe { border: 0; display: block; width: 100%; height: 100%; background: #fff; }
.ps-shell .shell-main iframe.is-smart { background: var(--ps-bg); }
.ps-shell .legacy-frames { display: none; }
.ps-shell .shell-scrim { display: none; }
.ps-shell .shell-loader {
    position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 5;
    background: linear-gradient(90deg, var(--ps-brand), var(--ps-accent));
    transform-origin: left; transform: scaleX(0); opacity: 0; transition: transform .8s ease, opacity .3s;
}
.ps-shell .shell-loader.on { opacity: 1; transform: scaleX(.85); }

/* ---------- top bar ---------- */
.topbar {
    grid-column: 1 / -1; grid-row: 1; z-index: 7;
    height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 18px;
    background: linear-gradient(100deg, #0C4476, #10528F 60%, #135C9E); color: #fff;
}
:root[data-theme="dark"] .topbar { background: linear-gradient(100deg, #0A1628, #0F1F36); border-bottom: 1px solid var(--ps-line); }
.topbar .burger { display: none; }
.topbar .t-btn {
    width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px;
    color: rgba(255, 255, 255, .9); background: transparent; border: 0; cursor: pointer; position: relative;
}
.topbar .t-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.topbar .t-btn[data-tip]:hover::after {
    content: attr(data-tip); position: absolute; top: 44px; left: 50%; transform: translateX(-50%);
    white-space: nowrap; background: #0F1B2D; color: #fff; font-size: 12px; font-weight: 600;
    padding: 4px 8px; border-radius: 6px; pointer-events: none; z-index: 20;
}
.topbar .logo { display: flex; align-items: center; gap: 12px; min-width: 246px; color: #fff; }
.topbar .logo:hover { text-decoration: none; }
.topbar .logo img { height: 26px; }
.topbar .logo .tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.topbar .search {
    flex: 1; max-width: 460px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
    border-radius: 10px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .85); font: 500 14px var(--ps-font); cursor: pointer; text-align: left;
}
.topbar .search:hover { background: rgba(255, 255, 255, .18); }
.topbar .search .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .search .kbd { background: transparent; border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .8); }
.topbar .spacer { flex: 1; }
.topbar .nav { display: flex; gap: 2px; align-items: center; }
.topbar .user { display: flex; align-items: center; gap: 10px; padding-left: 12px; margin-left: 6px; border-left: 1px solid rgba(255, 255, 255, .18); }
.topbar .avatar {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ps-accent); color: #3B2A05; font-weight: 800; font-size: 14px; flex: 0 0 36px;
}
.topbar .welcome { font-size: 13.5px; font-weight: 600; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.topbar .welcome small { display: block; font-weight: 500; opacity: .75; font-size: 12px; }
.topbar .logout { color: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; }
.topbar .logout:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.topbar .logout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sidebar ---------- */
.side {
    grid-column: 1; grid-row: 2; z-index: 6; overflow-y: auto;
    background: var(--ps-surface); border-right: 1px solid var(--ps-line);
    display: flex; flex-direction: column; padding: 18px 14px;
}
.side .side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 12px; }
.side .side-head h2 { margin: 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--ps-muted); }
.side .date-chip { font-size: 12px; font-weight: 600; color: var(--ps-brand); background: var(--ps-brand-50); padding: 3px 9px; border-radius: 999px; }
.side .side-filter { position: relative; margin: 0 0 12px; }
.side .side-filter .ico { position: absolute; left: 12px; top: 11px; color: var(--ps-muted); }
.side .side-filter .ico svg { width: 16px; height: 16px; }
.side .side-filter input {
    width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--ps-line); background: var(--ps-surface-2);
    padding: 0 12px 0 36px; font: 500 13.5px var(--ps-font); color: var(--ps-ink);
}
.side .side-filter input:focus { outline: none; border-color: var(--ps-brand); box-shadow: 0 0 0 3px var(--ps-focus); background: var(--ps-surface); }
.side .tv-student {
    width: 100%; display: flex; align-items: center; gap: 10px; margin: 4px 0; padding: 10px;
    border-radius: 12px; color: var(--ps-ink); font: 700 14.5px var(--ps-font); text-align: left;
    border: 1px solid transparent; background: transparent; cursor: pointer;
}
.side .tv-student:hover { background: var(--ps-surface-2); border-color: var(--ps-line); }
.side .kid.is-open > .tv-student { background: var(--ps-brand-50); border-color: var(--ps-brand-100); color: var(--ps-brand-700); }
.side .tv-avatar {
    width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center;
    font-size: 13px; font-weight: 800; color: #fff; background: var(--ps-brand);
}
.side .tv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .tv-name small { display: block; font-weight: 600; font-size: 11.5px; color: var(--ps-success); }
.side .tv-chev { color: var(--ps-muted); transition: transform .2s; }
.side .tv-chev svg { width: 16px; height: 16px; }
.side .kid.is-open .tv-chev { transform: rotate(90deg); }
.side .tv-links { display: none; padding: 2px 0 8px; }
.side .kid.is-open .tv-links { display: block; }
.side .tv-group { margin: 10px 0 4px 18px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ps-muted); }
.side .tv-link {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; margin: 1px 0 1px 16px;
    border-left: 2px solid var(--ps-line); border-radius: 0 10px 10px 0;
    color: var(--ps-ink-2); font-size: 13.5px; font-weight: 500;
}
.side .tv-link .ico { color: var(--ps-muted); }
.side .tv-link .ico svg { width: 16px; height: 16px; }
.side .tv-link:hover { background: var(--ps-surface-2); color: var(--ps-brand); border-left-color: var(--ps-brand); text-decoration: none; }
.side .tv-link.is-current { background: var(--ps-brand-50); color: var(--ps-brand); border-left-color: var(--ps-brand); font-weight: 700; }
.side .tv-link.is-current .ico { color: var(--ps-brand); }
.side .tv-link.is-busy { opacity: .6; pointer-events: none; }
.side .side-empty { color: var(--ps-muted); font-size: 13px; padding: 10px; display: none; }
.side .no-kids { color: var(--ps-muted); font-size: 13.5px; padding: 12px 8px; }
.side .side-foot { margin-top: auto; padding: 14px 6px 0; border-top: 1px solid var(--ps-line-2); font-size: 12.5px; color: var(--ps-muted); }
.side .side-foot a { font-weight: 600; }
.side .side-foot .classic { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }

@media (max-width: 1100px) { .topbar .welcome { display: none; } }
@media (max-width: 900px) {
    .ps-shell { grid-template-columns: minmax(0, 1fr); }
    .ps-shell .shell-main { grid-column: 1; }
    .topbar { padding: 0 10px; gap: 6px; min-width: 0; overflow: hidden; }
    .topbar .spacer { display: none; }
    .topbar .search { margin-left: auto; }
    .topbar .user { padding-left: 4px; margin-left: 0; border-left: 0; }
    .topbar > * { flex-shrink: 0; }
    .topbar .burger { display: inline-grid; }
    .topbar .logo { min-width: 0; }
    .topbar .logo .tag { display: none; }
    .topbar .search .lbl, .topbar .search .kbd { display: none; }
    .topbar .search { flex: 0 0 40px; padding: 0; justify-content: center; }
    .topbar .nav .opt { display: none; }
    .topbar .logout span:not(.ico) { display: none; }
    .topbar .logout { padding: 8px; }
}
@media (max-width: 480px) {
    .topbar .avatar, .topbar #psTheme { display: none; }
    .topbar .logo img { height: 22px; }
    .side {
        position: fixed; top: 64px; bottom: 0; left: 0; width: 290px; max-width: 86vw;
        transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--ps-shadow-lg);
    }
    .ps-shell.side-open .side { transform: none; }
    .ps-shell.side-open .shell-scrim { display: block; position: fixed; inset: 64px 0 0 0; background: rgba(9, 20, 36, .45); z-index: 5; }
}

/* ---------- command palette ---------- */
.ps-palette { position: fixed; inset: 0; z-index: 50; display: none; }
.ps-palette.open { display: block; }
.ps-palette .pal-backdrop { position: absolute; inset: 0; background: rgba(9, 20, 36, .45); backdrop-filter: blur(3px); }
.ps-palette .pal-box {
    position: relative; margin: 10vh auto 0; width: min(640px, calc(100% - 32px));
    background: var(--ps-surface); border-radius: 18px; box-shadow: var(--ps-shadow-lg);
    border: 1px solid var(--ps-line); overflow: hidden; animation: ps-pop .16s ease-out;
}
@keyframes ps-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.ps-palette .pal-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ps-line); color: var(--ps-muted); }
.ps-palette .pal-head svg { width: 20px; height: 20px; flex: 0 0 20px; }
.ps-palette .pal-head input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 17px var(--ps-font); color: var(--ps-ink); height: 34px; }
.ps-palette .pal-list { max-height: 56vh; overflow: auto; padding: 8px; }
.ps-palette .pal-group { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ps-muted); padding: 10px 12px 6px; }
.ps-palette .pal-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    cursor: pointer; color: var(--ps-ink);
}
.ps-palette .pal-item .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ps-brand-50); color: var(--ps-brand); flex: 0 0 34px; }
.ps-palette .pal-item .ico svg { width: 18px; height: 18px; }
.ps-palette .pal-item .t { flex: 1; font-weight: 600; font-size: 14.5px; }
.ps-palette .pal-item .t small { display: block; font-weight: 500; color: var(--ps-muted); font-size: 12.5px; }
.ps-palette .pal-item mark { background: var(--ps-accent-50); color: inherit; border-radius: 3px; padding: 0 1px; }
.ps-palette .pal-item.active { background: var(--ps-brand-50); }
.ps-palette .pal-item.active::after { content: "\21B5"; color: var(--ps-muted); font-size: 14px; }
.ps-palette .pal-empty { padding: 28px; text-align: center; color: var(--ps-muted); }
.ps-palette .pal-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--ps-line); font-size: 12px; color: var(--ps-muted); background: var(--ps-surface-2); }

/* =====================================================================
   DASHBOARD (frmain_parent_*)
   ===================================================================== */
.ps-dash body { background: var(--ps-bg); }
.ps-dash .page { max-width: 1240px; margin: 0 auto; padding: 26px 28px 40px; }
.ps-dash .hero {
    position: relative; overflow: hidden; border-radius: 20px; padding: 28px 30px; color: #fff; margin-bottom: 22px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(224, 165, 38, .35), transparent 60%),
        linear-gradient(120deg, #0C4476, #10528F 55%, #1466AE);
    box-shadow: 0 14px 34px rgba(16, 82, 143, .22);
}
:root[data-theme="dark"] .ps-dash .hero { background: radial-gradient(600px 300px at 100% 0%, rgba(240, 185, 62, .18), transparent 60%), linear-gradient(120deg, #0F2340, #13325A); }
.ps-dash .hero::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px;
    background: url(../img/OasisLogo.png) no-repeat center / contain; filter: brightness(0) invert(1); opacity: .08;
}
.ps-dash .hero .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .8; margin: 0 0 6px; }
.ps-dash .hero h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.015em; }
.ps-dash .hero p { margin: 0; opacity: .85; font-size: 15px; }
.ps-dash .hero-search {
    position: relative; margin-top: 20px; max-width: 560px; z-index: 1;
}
.ps-dash .hero-search .ico { position: absolute; left: 14px; top: 13px; color: var(--ps-muted); }
.ps-dash .hero-search input {
    width: 100%; height: 48px; border-radius: 12px; border: 0; padding: 0 90px 0 44px;
    font: 500 15px var(--ps-font); color: #0F1B2D; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
}
:root[data-theme="dark"] .ps-dash .hero-search input { background: var(--ps-surface); color: var(--ps-ink); }
.ps-dash .hero-search input:focus { outline: 3px solid rgba(224, 165, 38, .6); }
.ps-dash .hero-search .kbd { position: absolute; right: 12px; top: 13px; }

.ps-dash .strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.ps-dash .strip .lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ps-muted); margin-right: 4px; display: inline-flex; gap: 6px; align-items: center; }
.ps-dash .strip .lbl svg { width: 15px; height: 15px; }
.ps-dash .chip {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
    background: var(--ps-surface); border: 1px solid var(--ps-line); color: var(--ps-ink-2);
    font: 600 13px var(--ps-font); cursor: pointer; white-space: nowrap;
}
.ps-dash .chip:hover { border-color: var(--ps-brand); color: var(--ps-brand); text-decoration: none; }
.ps-dash .chip .ico svg { width: 14px; height: 14px; }
.ps-dash .chip.active { background: var(--ps-brand); border-color: var(--ps-brand); color: #fff; }
:root[data-theme="dark"] .ps-dash .chip.active { color: #06101D; }

.ps-dash .layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
@media (max-width: 1180px) { .ps-dash .layout { grid-template-columns: 1fr; } }

.ps-dash .section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.ps-dash .section-title h2 { margin: 0; font-size: 17px; font-weight: 800; }
.ps-dash .section-title h2 span { font-size: 16px; }
.ps-dash .section-title .count { font-size: 12.5px; color: var(--ps-muted); font-weight: 600; }
.ps-dash .page-label { font-family: var(--ps-font) !important; color: var(--ps-ink) !important; }

.ps-dash .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ps-dash .tile {
    position: relative; background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: var(--ps-radius);
    padding: 18px 16px 16px; min-height: 138px; display: flex; flex-direction: column; gap: 10px;
    box-shadow: var(--ps-shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer;
}
.ps-dash .tile:hover { transform: translateY(-2px); box-shadow: var(--ps-shadow); border-color: var(--ps-brand-100); }
.ps-dash .tile:focus-within { border-color: var(--ps-brand); box-shadow: 0 0 0 4px var(--ps-focus); }
.ps-dash .tile .t-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.ps-dash .tile .t-ico svg { width: 23px; height: 23px; }
.ps-dash .tile .t-title { font: 700 15px/1.3 var(--ps-font); color: var(--ps-ink); }
.ps-dash a.tile, .ps-dash a.tile:hover { text-decoration: none; color: var(--ps-ink); }
.ps-dash a.tile:focus-visible { outline: none; border-color: var(--ps-brand); box-shadow: 0 0 0 4px var(--ps-focus); }
.ps-dash .tile .t-new { position: absolute; top: 14px; right: 40px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--ps-accent); padding: 2px 7px; border-radius: 999px; }
.ps-dash .tile .t-desc { font-size: 12.8px; color: var(--ps-muted); line-height: 1.4; }
.ps-dash .tile .t-go { position: absolute; right: 14px; top: 18px; color: var(--ps-muted); opacity: 0; transition: opacity .15s, transform .15s; }
.ps-dash .tile .t-go svg { width: 18px; height: 18px; }
.ps-dash .tile:hover .t-go { opacity: 1; transform: translateX(2px); }
.ps-dash .tile .pin {
    position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 8px;
    display: grid; place-items: center; border: 0; background: transparent; color: var(--ps-muted); cursor: pointer; opacity: 0;
}
.ps-dash .tile .pin svg { width: 16px; height: 16px; }
.ps-dash .tile:hover .pin, .ps-dash .tile .pin.on { opacity: 1; }
.ps-dash .tile .pin:hover { background: var(--ps-surface-2); color: var(--ps-accent); }
.ps-dash .tile .pin.on { color: var(--ps-accent); }
.ps-dash .tile .pin.on svg { fill: currentColor; }
.ps-dash .tiles-empty { display: none; padding: 30px; text-align: center; color: var(--ps-muted); background: var(--ps-surface); border: 1px dashed var(--ps-line); border-radius: var(--ps-radius); }

/* tile colour accents */
.ps-dash .c-blue .t-ico   { background: #E8F1FB; color: #10528F; }
.ps-dash .c-violet .t-ico { background: #F1ECFB; color: #6D3FC0; }
.ps-dash .c-green .t-ico  { background: #E7F6EE; color: #15803D; }
.ps-dash .c-red .t-ico    { background: #FDECEC; color: #C23434; }
.ps-dash .c-slate .t-ico  { background: #EEF2F6; color: #475569; }
.ps-dash .c-teal .t-ico   { background: #E3F5F3; color: #0E8F83; }
.ps-dash .c-amber .t-ico  { background: #FDF3DE; color: #B7791F; }
.ps-dash .c-rose .t-ico   { background: #FCEBF1; color: #BE3667; }
.ps-dash .c-sky .t-ico    { background: #E4F4FC; color: #0B7FB5; }
:root[data-theme="dark"] .ps-dash .tile .t-ico { background: rgba(255, 255, 255, .07); filter: saturate(1.3) brightness(1.5); }

.ps-dash .card { background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); box-shadow: var(--ps-shadow-sm); padding: 18px; margin-bottom: 18px; }
.ps-dash .card h3 { margin: 0 0 12px; font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ps-dash .card h3 .ico { color: var(--ps-brand); }
.ps-dash .links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600 !important; font-family: var(--ps-font) !important; color: var(--ps-ink) !important; font-size: 14px; border: 1px solid var(--ps-line-2); margin-bottom: 8px; background: var(--ps-surface-2); }
.ps-dash .links a:hover { border-color: var(--ps-brand); color: var(--ps-brand) !important; text-decoration: none; }
.ps-dash .links a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ps-accent); flex: 0 0 8px; }
.ps-dash .links br { display: none; }
.ps-dash .notice { font-size: 13.5px; color: var(--ps-ink-2); }
.ps-dash .notice span { font-family: var(--ps-font) !important; color: var(--ps-ink-2) !important; font-weight: 500 !important; display: block; margin-bottom: 8px; }

.ps-dash .activity { border: 1px solid var(--ps-line-2); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--ps-surface-2); }
.ps-dash .activity .a-title { font-weight: 800; color: var(--ps-ink); margin: 0 0 8px; font-size: 14.5px; }
.ps-dash .member-table { width: 100%; border-collapse: collapse; }
.ps-dash .member-table td { padding: 8px 4px; border-top: 1px solid var(--ps-line-2); font-size: 13.5px; color: var(--ps-ink-2); vertical-align: middle; }
.ps-dash .member-table tr:first-child td { border-top: 0; }
.ps-dash .member-table .m-role { font-weight: 700; color: var(--ps-brand); width: 34%; }
.ps-dash .member-table .m-act { text-align: right; white-space: nowrap; }
.ps-dash .member-table label { font-size: 13px; font-weight: 600; margin-left: 4px; }
.ps-dash .status-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.ps-dash .status-badge:empty { display: none; }
.ps-dash .status-reserved { background: var(--ps-success-50); color: var(--ps-success); }
.ps-dash .status-empty { background: var(--ps-accent-50); color: #92620A; }
.ps-dash .details-panel { background: var(--ps-surface); border-radius: 10px; padding: 10px; margin-top: 8px; }
.ps-dash .empty-state { text-align: center; padding: 18px 10px; color: var(--ps-muted); font-size: 13.5px; }
.ps-dash .empty-state .ico { margin: 0 auto 8px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ps-brand-50); color: var(--ps-brand); }

.ps-dash .tip { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ps-ink-2); }
.ps-dash .tip .ico { color: var(--ps-accent); flex: 0 0 auto; }

@media (max-width: 640px) {
    .ps-dash .page { padding: 16px; }
    .ps-dash .hero { padding: 22px 18px; border-radius: 16px; }
    .ps-dash .hero h1 { font-size: 22px; }
    .ps-dash .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ps-dash .tile { min-height: 124px; padding: 14px 12px; }
    .ps-dash .tile .t-desc { display: none; }
    .ps-dash .hero-search .kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ps * { transition: none !important; animation: none !important; }
}

/* delegate badge + misc */
.ps-dash .hero .badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12.5px; font-weight: 700; }
.ps-dash .hero .badge .ico svg { width: 14px; height: 14px; }
.ps-dash .card.tip-card { background: var(--ps-accent-50); border-color: transparent; }
.side .kid.is-selected .tv-name small { display: block; }


/* =====================================================================
   DASHBOARD v2 : hero stats, to-do notices, quick actions, children cards
   ===================================================================== */
.ps-dash .page { max-width: 1320px; }
.ps-dash .block { margin: 0 0 26px; }
.ps-dash .section-title h2 { display: flex; align-items: center; gap: 9px; }
.ps-dash .section-title h2 .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ps-brand-50); color: var(--ps-brand); }
.ps-dash .section-title h2 .ico svg { width: 17px; height: 17px; }

/* ---------- hero with stats ---------- */
.ps-dash .hero-v2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: end; padding: 30px 32px; }
.ps-dash .hero-v2 .hero-main { position: relative; z-index: 1; min-width: 0; }
.ps-dash .hero-v2 h1 { font-size: 30px; }
.ps-dash .hero .badge {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 5px 12px 5px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 700;
}
.ps-dash .hero .badge .ico svg { width: 16px; height: 16px; }
.ps-dash .hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 10px; }
.ps-dash .hero-stats .stat {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 14px; color: #fff;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(4px);
    transition: background .15s, transform .15s;
}
.ps-dash .hero-stats .stat:hover { background: rgba(255, 255, 255, .2); text-decoration: none; transform: translateY(-2px); }
.ps-dash .hero-stats .stat b { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.ps-dash .hero-stats .stat span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.ps-dash .hero-stats .stat.is-hot { background: rgba(224, 165, 38, .9); border-color: rgba(255, 255, 255, .35); color: #3B2A05; }
.ps-dash .hero-stats .stat.is-hot:hover { background: rgba(240, 185, 62, 1); }

/* ---------- to do / notices ---------- */
.ps-dash .notices { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ps-dash .notice-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: start; padding: 16px 16px 16px 18px;
    background: var(--ps-surface); border: 1px solid var(--ps-line); border-left: 4px solid var(--tone, var(--ps-brand));
    border-radius: var(--ps-radius); box-shadow: var(--ps-shadow-sm);
}
.ps-dash .notice-card.tone-info   { --tone: var(--ps-brand);  --tone-bg: var(--ps-brand-50); }
.ps-dash .notice-card.tone-warn   { --tone: #B7791F;          --tone-bg: #FDF3DE; }
.ps-dash .notice-card.tone-danger { --tone: var(--ps-danger); --tone-bg: var(--ps-danger-50); }
:root[data-theme="dark"] .ps-dash .notice-card.tone-warn { --tone: var(--ps-accent); --tone-bg: var(--ps-accent-50); }
.ps-dash .notice-card .n-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone); }
.ps-dash .notice-card .n-title { margin: 0 0 3px; font-weight: 800; font-size: 15px; color: var(--ps-ink); }
.ps-dash .notice-card .n-text { margin: 0; font-size: 13.5px; color: var(--ps-muted); line-height: 1.45; }
.ps-dash .notice-card .n-btn {
    grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px;
    background: var(--tone); color: #fff; font: 700 13.5px var(--ps-font);
}
:root[data-theme="dark"] .ps-dash .notice-card .n-btn { color: #06101D; }
.ps-dash .notice-card .n-btn:hover { text-decoration: none; filter: brightness(1.08); }
.ps-dash .notice-card .n-btn .ico svg { width: 16px; height: 16px; }
.ps-dash .allgood {
    display: flex; align-items: center; gap: 12px; margin: 0 0 26px; padding: 14px 18px; border-radius: var(--ps-radius);
    background: var(--ps-success-50); border: 1px solid rgba(21, 128, 61, .18); color: var(--ps-success); font-size: 14px;
}
.ps-dash .allgood b { font-weight: 800; }
.ps-dash .allgood span:last-child { color: var(--ps-ink-2); }
.ps-dash .allgood span:last-child b { color: var(--ps-success); }

/* ---------- quick actions ---------- */
.ps-dash .quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ps-dash .qa {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
    min-height: 112px; padding: 16px 10px; border-radius: var(--ps-radius); background: var(--ps-surface);
    border: 1px solid var(--ps-line); box-shadow: var(--ps-shadow-sm); color: var(--ps-ink);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ps-dash .qa:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--ps-shadow); border-color: var(--ps-brand-100); }
.ps-dash .qa .qa-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; }
.ps-dash .qa .qa-ico svg { width: 25px; height: 25px; }
.ps-dash .qa .qa-title { font: 700 14px/1.25 var(--ps-font); }
.ps-dash .c-blue .qa-ico   { background: #E8F1FB; color: #10528F; }
.ps-dash .c-violet .qa-ico { background: #F1ECFB; color: #6D3FC0; }
.ps-dash .c-green .qa-ico  { background: #E7F6EE; color: #15803D; }
.ps-dash .c-red .qa-ico    { background: #FDECEC; color: #C23434; }
.ps-dash .c-slate .qa-ico  { background: #EEF2F6; color: #475569; }
.ps-dash .c-teal .qa-ico   { background: #E3F5F3; color: #0E8F83; }
.ps-dash .c-amber .qa-ico  { background: #FDF3DE; color: #B7791F; }
.ps-dash .c-rose .qa-ico   { background: #FCEBF1; color: #BE3667; }
.ps-dash .c-sky .qa-ico    { background: #E4F4FC; color: #0B7FB5; }
:root[data-theme="dark"] .ps-dash .qa .qa-ico { background: rgba(255, 255, 255, .07); filter: saturate(1.3) brightness(1.5); }

/* ---------- children cards ---------- */
.ps-dash .kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ps-dash .kid-card {
    --kid: var(--ps-brand);
    position: relative; display: flex; flex-direction: column; background: var(--ps-surface); border: 1px solid var(--ps-line);
    border-radius: 18px; box-shadow: var(--ps-shadow-sm); overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.ps-dash .kid-card::before { content: ""; height: 6px; background: var(--kid); }
.ps-dash .kid-card:hover { box-shadow: var(--ps-shadow); }
.ps-dash .kid-card.is-current { border-color: var(--kid); }
.ps-dash .kid-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px 12px; }
.ps-dash .kid-avatar {
    width: 54px; height: 54px; flex: 0 0 54px; border-radius: 16px; display: grid; place-items: center;
    background: var(--kid); color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .02em;
    box-shadow: 0 8px 18px rgba(15, 27, 45, .14);
}
.ps-dash .kid-id { min-width: 0; flex: 1; }
.ps-dash .kid-id h3 { margin: 0 0 5px; font-size: 18px; font-weight: 800; color: var(--ps-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-dash .kid-id p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ps-dash .kid-grade, .ps-dash .kid-class {
    display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.ps-dash .kid-grade { background: var(--ps-brand-50); color: var(--ps-brand); }
.ps-dash .kid-class { background: var(--ps-surface-2); color: var(--ps-ink-2); border: 1px solid var(--ps-line); }
.ps-dash .kid-flag { position: absolute; top: 18px; right: 16px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--kid); }
.ps-dash .kid-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 18px 14px; }
.ps-dash .kid-link {
    display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 11px; border-radius: 11px;
    background: var(--ps-surface-2); border: 1px solid var(--ps-line-2); color: var(--ps-ink); font-size: 13.5px; font-weight: 600; line-height: 1.25;
    transition: border-color .15s, background .15s, color .15s;
}
.ps-dash .kid-link:hover { text-decoration: none; border-color: var(--kid); color: var(--kid); background: var(--ps-surface); }
.ps-dash .kid-link .ico { color: var(--kid); flex: 0 0 auto; }
.ps-dash .kid-link .ico svg { width: 18px; height: 18px; }
.ps-dash .kid-link.is-busy { opacity: .6; pointer-events: none; }
.ps-dash .kid-none { grid-column: 1 / -1; margin: 0; color: var(--ps-muted); font-size: 13px; }
.ps-dash .kid-foot { margin-top: auto; border-top: 1px solid var(--ps-line-2); }
.ps-dash .kid-menu {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border: 0; background: transparent;
    color: var(--ps-brand); font: 700 13.5px var(--ps-font); cursor: pointer;
}
.ps-dash .kid-menu:hover { background: var(--ps-surface-2); }
.ps-dash .kid-menu .ico svg { width: 16px; height: 16px; }
.ps-dash .kids-empty { padding: 26px; text-align: center; color: var(--ps-muted); background: var(--ps-surface); border: 1px dashed var(--ps-line); border-radius: var(--ps-radius); }

/* sidebar: flash the child opened from a dashboard card */
.side .kid.is-flash > .tv-student { box-shadow: 0 0 0 4px var(--ps-focus); }

@media (max-width: 1180px) {
    .ps-dash .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ps-dash .hero-v2 { grid-template-columns: 1fr; }
    .ps-dash .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ps-dash .hero-v2 { padding: 22px 18px; }
    .ps-dash .hero-v2 h1 { font-size: 22px; }
    .ps-dash .hero-stats .stat { padding: 10px 12px; }
    .ps-dash .hero-stats .stat b { font-size: 22px; }
    .ps-dash .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ps-dash .qa { min-height: 92px; padding: 12px 6px; }
    .ps-dash .qa .qa-ico { width: 42px; height: 42px; }
    .ps-dash .qa .qa-title { font-size: 12.5px; }
    .ps-dash .kids { grid-template-columns: 1fr; }
    .ps-dash .notices { grid-template-columns: 1fr; }
}


/* =====================================================================
   DASHBOARD v3 : colourful hero + "Ask Oasis" + photos + colour-coded icons
   ===================================================================== */
.ps-dash { --g-blue: linear-gradient(135deg, #1A73D9, #10528F); --g-violet: linear-gradient(135deg, #8B5CF6, #6D3FC0);
           --g-green: linear-gradient(135deg, #22C55E, #15803D); --g-teal: linear-gradient(135deg, #14B8A6, #0E8F83);
           --g-amber: linear-gradient(135deg, #F5B53F, #D48A0C); --g-rose: linear-gradient(135deg, #F472B6, #BE3667);
           --g-sky: linear-gradient(135deg, #38BDF8, #0B7FB5); --g-red: linear-gradient(135deg, #F87171, #C23434);
           --g-slate: linear-gradient(135deg, #94A3B8, #475569); }

/* ---------- hero ---------- */
.ps-dash .hero-v3 {
    position: relative; overflow: visible; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
    padding: 34px 34px 30px; border-radius: 24px; color: #fff; margin-bottom: 26px;
    background: linear-gradient(125deg, #0C3F73 0%, #10528F 32%, #5B3FC4 68%, #0E8F83 100%);
    box-shadow: 0 20px 44px rgba(16, 82, 143, .28);
}
.ps-dash .hero-v3::after { display: none; }
.ps-dash .hero-v3 .hero-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; pointer-events: none; }
.ps-dash .hero-v3 .blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; }
.ps-dash .hero-v3 .b1 { width: 280px; height: 280px; right: 8%; top: -60px; background: #F0B93E; opacity: .35; }
.ps-dash .hero-v3 .b2 { width: 240px; height: 240px; left: 30%; bottom: -80px; background: #22D3EE; opacity: .3; }
.ps-dash .hero-v3 .b3 { width: 200px; height: 200px; left: -40px; top: -40px; background: #A78BFA; opacity: .35; }
.ps-dash .hero-v3 .hero-main { position: relative; min-width: 0; }
.ps-dash .hero-v3 h1 { font-size: 32px; margin: 0 0 6px; }
.ps-dash .hero-v3 .hero-sub { margin: 0; font-size: 15.5px; opacity: .92; }
:root[data-theme="dark"] .ps-dash .hero-v3 { background: linear-gradient(125deg, #0B1E38 0%, #11305A 40%, #2E2266 75%, #0B4A45 100%); }

/* ---------- Ask Oasis ---------- */
.ps-dash .ask { position: relative; margin-top: 22px; max-width: 640px; z-index: 5; }
.ps-dash .ask input {
    width: 100%; height: 58px; border-radius: 18px; border: 2px solid transparent; padding: 0 56px 0 54px;
    font: 600 15.5px var(--ps-font); color: #0F1B2D;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #F0B93E, #A78BFA, #22D3EE) border-box;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22); outline: none;
}
.ps-dash .ask input::placeholder { color: #64748B; font-weight: 500; }
.ps-dash .ask input:focus { box-shadow: 0 0 0 5px rgba(255, 255, 255, .25), 0 14px 34px rgba(0, 0, 0, .22); }
:root[data-theme="dark"] .ps-dash .ask input { color: var(--ps-ink); background: linear-gradient(var(--ps-surface), var(--ps-surface)) padding-box, linear-gradient(120deg, #F0B93E, #A78BFA, #22D3EE) border-box; }
.ps-dash .ask .ask-spark {
    position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #F0B93E, #8B5CF6 55%, #14B8A6); box-shadow: 0 6px 14px rgba(109, 63, 192, .35);
}
.ps-dash .ask .ask-spark svg { width: 18px; height: 18px; }
.ps-dash .ask .kbd { position: absolute; right: 16px; top: 17px; }
.ps-dash .ask-results {
    display: none; position: absolute; left: 0; right: 0; top: 66px; padding: 8px; border-radius: 18px; background: var(--ps-surface);
    border: 1px solid var(--ps-line); box-shadow: var(--ps-shadow-lg); color: var(--ps-ink); max-height: 420px; overflow: auto;
}
.ps-dash .ask-results.open { display: block; animation: ps-pop .14s ease-out; }
@keyframes ps-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ps-dash .ask-row {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent;
    text-align: left; cursor: pointer; font-family: var(--ps-font); color: var(--ps-ink);
}
.ps-dash .ask-row.is-active, .ps-dash .ask-row:hover { background: var(--ps-brand-50); }
.ps-dash .ask-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--g-blue); }
.ps-dash .ask-ico svg { width: 19px; height: 19px; }
.ps-dash .ask-txt { flex: 1; min-width: 0; }
.ps-dash .ask-txt b { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-dash .ask-txt small { display: block; font-size: 12.5px; color: var(--ps-muted); }
.ps-dash .ask-go { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ps-brand); }
.ps-dash .ask-go svg { width: 15px; height: 15px; }
.ps-dash .ask-none { padding: 16px; color: var(--ps-muted); font-size: 14px; text-align: center; }

.ps-dash .ask-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; max-width: 760px; }
.ps-dash .ask-suggest .sg {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 6px; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font: 600 13px var(--ps-font);
    transition: background .15s, transform .15s;
}
.ps-dash .ask-suggest .sg:hover { background: rgba(255, 255, 255, .26); transform: translateY(-1px); }
.ps-dash .ask-suggest .sg b { font-weight: 800; }
.ps-dash .ask-suggest .sg .ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #10528F; }
.ps-dash .ask-suggest .sg .ico svg { width: 14px; height: 14px; }

/* ---------- hero stats (glass cards with icons) ---------- */
.ps-dash .hero-v3 .hero-stats { grid-template-columns: repeat(3, 118px); }
.ps-dash .hero-v3 .stat { padding: 14px; gap: 4px; border-radius: 18px; background: rgba(255, 255, 255, .14); }
.ps-dash .hero-v3 .stat .s-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .95); margin-bottom: 6px; }
.ps-dash .hero-v3 .stat .s-ico svg { width: 18px; height: 18px; }
.ps-dash .hero-v3 .s-kids .s-ico { color: #0E8F83; }
.ps-dash .hero-v3 .s-todo .s-ico { color: #D48A0C; }
.ps-dash .hero-v3 .s-serv .s-ico { color: #6D3FC0; }
.ps-dash .hero-v3 .stat b { font-size: 30px; }
.ps-dash .hero-v3 .stat.is-hot { background: linear-gradient(135deg, #F5B53F, #E08A0C); color: #fff; border-color: rgba(255, 255, 255, .4); animation: ps-glow 2.4s ease-in-out infinite; }
@keyframes ps-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 181, 63, .55); } 50% { box-shadow: 0 0 0 8px rgba(245, 181, 63, 0); } }

/* ---------- colour classes shared by icons (k-*) ---------- */
.ps-dash .k-blue   .ico, .ps-dash .ask-ico.k-blue   { --c: #10528F; --g: var(--g-blue); }
.ps-dash .k-violet .ico, .ps-dash .ask-ico.k-violet { --c: #6D3FC0; --g: var(--g-violet); }
.ps-dash .k-green  .ico, .ps-dash .ask-ico.k-green  { --c: #15803D; --g: var(--g-green); }
.ps-dash .k-teal   .ico, .ps-dash .ask-ico.k-teal   { --c: #0E8F83; --g: var(--g-teal); }
.ps-dash .k-amber  .ico, .ps-dash .ask-ico.k-amber  { --c: #B7791F; --g: var(--g-amber); }
.ps-dash .k-rose   .ico, .ps-dash .ask-ico.k-rose   { --c: #BE3667; --g: var(--g-rose); }
.ps-dash .k-sky    .ico, .ps-dash .ask-ico.k-sky    { --c: #0B7FB5; --g: var(--g-sky); }
.ps-dash .k-red    .ico, .ps-dash .ask-ico.k-red    { --c: #C23434; --g: var(--g-red); }
.ps-dash .k-slate  .ico, .ps-dash .ask-ico.k-slate  { --c: #475569; --g: var(--g-slate); }
.ps-dash .ask-ico[class*="k-"] { background: var(--g); }
.ps-dash .ask-suggest .sg[class*="k-"] .ico { color: var(--c); }

/* ---------- children cards: photo + coloured link icons ---------- */
.ps-dash .kid-card::before { height: 74px; position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(120deg, var(--kid), color-mix(in srgb, var(--kid) 55%, #ffffff)); opacity: .95; }
.ps-dash .kid-head { position: relative; padding-top: 24px; }
.ps-dash .kid-avatar {
    position: relative; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; overflow: hidden; font-size: 24px;
    border: 4px solid var(--ps-surface); box-shadow: 0 10px 22px rgba(15, 27, 45, .18);
}
.ps-dash .kid-avatar .kid-ini { position: absolute; inset: 0; display: grid; place-items: center; }
.ps-dash .kid-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ps-surface); }
.ps-dash .kid-id { padding-top: 34px; }
.ps-dash .kid-flag { top: 14px; right: 14px; color: #fff; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35); padding: 3px 9px; border-radius: 999px; }
.ps-dash .kid-link .ico { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--g, var(--g-blue)); }
.ps-dash .kid-link .ico svg { width: 16px; height: 16px; }
.ps-dash .kid-link:hover { border-color: var(--c, var(--kid)); color: var(--c, var(--kid)); }

/* ---------- quick actions + service tiles: full-colour icons ---------- */
.ps-dash .qa .qa-ico, .ps-dash .tile .t-ico { color: #fff !important; box-shadow: 0 8px 18px rgba(15, 27, 45, .14); }
.ps-dash .c-blue .qa-ico, .ps-dash .c-blue .t-ico { background: var(--g-blue); }
.ps-dash .c-violet .qa-ico, .ps-dash .c-violet .t-ico { background: var(--g-violet); }
.ps-dash .c-green .qa-ico, .ps-dash .c-green .t-ico { background: var(--g-green); }
.ps-dash .c-red .qa-ico, .ps-dash .c-red .t-ico { background: var(--g-red); }
.ps-dash .c-slate .qa-ico, .ps-dash .c-slate .t-ico { background: var(--g-slate); }
.ps-dash .c-teal .qa-ico, .ps-dash .c-teal .t-ico { background: var(--g-teal); }
.ps-dash .c-amber .qa-ico, .ps-dash .c-amber .t-ico { background: var(--g-amber); }
.ps-dash .c-rose .qa-ico, .ps-dash .c-rose .t-ico { background: var(--g-rose); }
.ps-dash .c-sky .qa-ico, .ps-dash .c-sky .t-ico { background: var(--g-sky); }
:root[data-theme="dark"] .ps-dash .qa .qa-ico, :root[data-theme="dark"] .ps-dash .tile .t-ico { filter: none; }
.ps-dash .qa { border-radius: 20px; min-height: 124px; }
.ps-dash .qa .qa-ico { width: 56px; height: 56px; border-radius: 18px; }
.ps-dash .tile { border-radius: 18px; }

/* section title icons in colour */
.ps-dash .section-title h2 .ico { color: #fff; background: var(--g-blue); }
.ps-dash #psTodo .section-title h2 .ico { background: var(--g-amber); }
.ps-dash #psKids .section-title h2 .ico { background: var(--g-teal); }
.ps-dash #psServices .section-title h2 .ico { background: var(--g-violet); }

/* sidebar: photo in the small avatar */
.side .tv-avatar { position: relative; overflow: hidden; }
.side .tv-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
    .ps-dash .hero-v3 { grid-template-columns: 1fr; padding: 26px 22px; }
    .ps-dash .hero-v3 .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ps-dash .hero-v3 h1 { font-size: 24px; }
    .ps-dash .ask input { height: 52px; font-size: 14.5px; padding-right: 16px; }
    .ps-dash .ask .kbd { display: none; }
    .ps-dash .ask .ask-spark { top: 9px; }
    .ps-dash .ask-results { top: 60px; }
    .ps-dash .kid-links { grid-template-columns: 1fr; }
}

/* v3 fixes */
.ps-dash .kid-card::before { height: 60px; }
.ps-dash .kid-id { padding-top: 44px; }
.ps-dash .kids { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ps-dash .notices { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ps-dash .ask input:not(:placeholder-shown) ~ .kbd { display: none; }
@media (max-width: 1180px) and (min-width: 981px) { .ps-dash .quick { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* =====================================================================
   Shell without the left menu (.no-side) + expandable children cards
   ===================================================================== */
.ps-shell.no-side { grid-template-columns: minmax(0, 1fr); }
.ps-shell.no-side .side, .ps-shell.no-side .shell-scrim, .ps-shell.no-side .topbar .burger { display: none !important; }
.ps-shell.no-side .shell-main { grid-column: 1; }
.ps-shell.no-side .topbar .logo { min-width: 0; margin-right: 8px; }

.ps-dash .kid-link.kid-more { display: none; }
.ps-dash .kid-card.is-expanded .kid-link.kid-more { display: flex; animation: ps-pop .15s ease-out; }
.ps-dash .kid-menu .ico { transition: transform .2s; transform: rotate(90deg); }
.ps-dash .kid-card.is-expanded .kid-menu .ico { transform: rotate(-90deg); }


/* =====================================================================
   v5 : same look as the parent mobile app
   (student cards, Discover more, student hub, menu drawer)
   ===================================================================== */
.ps-dash { --ring: conic-gradient(from 200deg, #22C55E, #EAB308, #F59E0B, #3B82F6, #1D4ED8, #22C55E); }

/* soft decorative shapes (like the app background) */
.ps-dash .bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ps-dash .bg-shapes i { position: absolute; display: block; background: var(--ps-brand-100); opacity: .5; border-radius: 12px; }
.ps-dash .bg-shapes i:nth-child(1) { width: 62px; height: 62px; top: 14%; right: 8%; transform: rotate(8deg); }
.ps-dash .bg-shapes i:nth-child(2) { width: 34px; height: 34px; top: 42%; left: 4%; transform: rotate(-14deg); }
.ps-dash .bg-shapes i:nth-child(3) { width: 58px; height: 58px; top: 70%; right: 12%; border-radius: 50%; }
.ps-dash .bg-shapes i:nth-child(4) { width: 44px; height: 44px; bottom: 6%; left: 18%; border-radius: 50%; background: transparent; border: 2px solid var(--ps-brand-100); }
.ps-dash .bg-shapes i:nth-child(5) { width: 50px; height: 50px; top: 58%; left: 46%; transform: rotate(18deg); }
.ps-dash .page { position: relative; z-index: 1; }

/* ---------- student cards ---------- */
.ps-dash .stu-row { display: flex; flex-wrap: wrap; gap: 22px; }
.ps-dash .stu-card {
    --kid: var(--ps-brand);
    position: relative; width: 210px; min-height: 290px; padding: 30px 18px 18px; border-radius: 28px;
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
    background: var(--ps-surface); border: 1.5px solid var(--ps-brand-100); color: var(--ps-ink);
    box-shadow: 0 10px 28px rgba(16, 82, 143, .10); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ps-dash .stu-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 18px 38px rgba(16, 82, 143, .18); border-color: var(--kid); }
.ps-dash .stu-card.is-current { border-color: var(--kid); }
.ps-dash .stu-ring { width: 138px; height: 138px; border-radius: 50%; padding: 5px; background: var(--ring); box-shadow: 0 10px 24px rgba(15, 27, 45, .14); }
.ps-dash .stu-photo { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 4px solid var(--ps-surface); background: var(--kid); }
.ps-dash .stu-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ps-surface); }
.ps-dash .stu-ini { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 40px; font-weight: 800; }
.ps-dash .stu-name { margin-top: 8px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.ps-dash .stu-line { width: 56px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, #22C55E, #EAB308); }
.ps-dash .stu-meta { font-size: 12.5px; font-weight: 600; color: var(--ps-muted); min-height: 18px; }
.ps-dash .stu-open { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--kid); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.ps-dash .stu-open .ico svg { width: 15px; height: 15px; }
.ps-dash .stu-card:hover .stu-open, .ps-dash .stu-card:focus-visible .stu-open { opacity: 1; transform: none; }
.ps-dash .stu-flag {
    position: absolute; top: -14px; right: -10px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, #FBBF24, #F97316); border: 3px solid var(--ps-surface); box-shadow: 0 8px 18px rgba(249, 115, 22, .35);
}
.ps-dash .stu-flag svg { width: 22px; height: 22px; }

/* ---------- discover more ---------- */
.ps-dash .discover { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ps-dash .disc-card {
    position: relative; overflow: hidden; min-height: 138px; padding: 22px 24px; border-radius: 26px; color: #fff;
    display: flex; flex-direction: column; justify-content: center; gap: 10px;
    background: linear-gradient(120deg, #7B8BEA, #6D4FC4 60%, #7B3FB0); box-shadow: 0 14px 30px rgba(109, 63, 192, .28);
    transition: transform .18s, box-shadow .18s;
}
.ps-dash .disc-card.d-1 { background: linear-gradient(120deg, #38BDF8, #1D6FD1 60%, #10528F); box-shadow: 0 14px 30px rgba(16, 82, 143, .28); }
.ps-dash .disc-card.d-2 { background: linear-gradient(120deg, #34D399, #0E8F83 60%, #0B6F66); box-shadow: 0 14px 30px rgba(14, 143, 131, .28); }
.ps-dash .disc-card:hover { text-decoration: none; transform: translateY(-3px); }
.ps-dash .disc-bg { position: absolute; right: 50px; bottom: -26px; opacity: .16; transform: rotate(-18deg); }
.ps-dash .disc-bg svg { width: 130px; height: 130px; stroke-width: 1.4; }
.ps-dash .disc-tag { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; padding: 5px 11px; border-radius: 9px; background: rgba(255, 255, 255, .22); }
.ps-dash .disc-title { font-size: 21px; font-weight: 800; line-height: 1.2; max-width: 75%; }
.ps-dash .disc-go {
    position: absolute; right: 20px; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; color: #6D4FC4; box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
.ps-dash .disc-card.d-1 .disc-go { color: #1D6FD1; }
.ps-dash .disc-card.d-2 .disc-go { color: #0E8F83; }

/* ---------- services grid: pastel icons + tinted borders (like the app menu) ---------- */
.ps-dash .tile { border-radius: 22px; border-width: 1.5px; }
.ps-dash .tile.c-blue { border-color: #D6E6FA; } .ps-dash .tile.c-green { border-color: #D3EFDD; } .ps-dash .tile.c-violet { border-color: #E4DAF8; }
.ps-dash .tile.c-teal { border-color: #CDEDEA; } .ps-dash .tile.c-amber { border-color: #F8E5C0; } .ps-dash .tile.c-rose { border-color: #F7D5E2; }
.ps-dash .tile.c-sky { border-color: #CFEAF8; } .ps-dash .tile.c-red { border-color: #F8D5D5; } .ps-dash .tile.c-slate { border-color: #DDE3EA; }
:root[data-theme="dark"] .ps-dash .tile[class*="c-"] { border-color: var(--ps-line); }
.ps-dash .tile .t-ico { border-radius: 50%; width: 52px; height: 52px; }

/* =====================================================================
   STUDENT HUB (SmartStudent.aspx)
   ===================================================================== */
.ps-hub .page.hub { max-width: 1100px; }
.ps-hub .hub-top { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.ps .round-btn {
    width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 48px;
    background: var(--ps-surface); color: var(--ps-ink); border: 1px solid var(--ps-line); box-shadow: 0 6px 16px rgba(15, 27, 45, .08);
    transition: transform .15s, background .15s;
}
.ps .round-btn:hover { text-decoration: none; transform: translateY(-2px); }
.ps .round-btn.tint { background: var(--ps-brand-50); color: var(--ps-brand); border-color: var(--ps-brand-100); width: 58px; height: 58px; flex-basis: 58px; }
.ps .round-btn.tint svg { width: 24px; height: 24px; }
.ps-hub .hub-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ps-muted); font-weight: 600; }
.ps-hub .hub-crumb .ico svg { width: 14px; height: 14px; }
.ps-hub .hub-crumb b { color: var(--ps-ink); }

.ps-hub .hub-card {
    --kid: var(--ps-brand);
    background: var(--ps-surface); border: 1.5px solid var(--ps-brand-100); border-radius: 30px; padding: 26px 28px;
    box-shadow: 0 14px 34px rgba(16, 82, 143, .10); margin-bottom: 26px;
}
.ps-hub .hub-head { display: flex; align-items: center; gap: 22px; }
.ps-hub .hub-photo { position: relative; flex: 0 0 auto; }
.ps-hub .hub-photo .ring {
    position: relative; display: block; width: 124px; height: 124px; border-radius: 50%; overflow: hidden;
    border: 4px solid var(--ps-surface); outline: 4px solid var(--kid); background: var(--kid); box-shadow: 0 10px 24px rgba(15, 27, 45, .16);
}
.ps-hub .hub-photo .ini { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 44px; font-weight: 800; }
.ps-hub .hub-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ps-surface); }
.ps-hub .hub-photo .dot { position: absolute; right: 6px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; background: #22C55E; border: 4px solid var(--ps-surface); }
.ps-hub .hub-id { flex: 1; min-width: 0; }
.ps-hub .hub-id h1 { margin: 0 0 10px; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--ps-ink); }
.ps-hub .hub-id p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-hub .pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 12px; background: var(--ps-brand-50); color: var(--ps-brand); font-size: 15px; font-weight: 700; }
.ps-hub .pill .ico svg { width: 18px; height: 18px; }
.ps-hub .pill.soft { background: var(--ps-surface-2); color: var(--ps-ink-2); border: 1px solid var(--ps-line); }
.ps-hub .hub-actions { display: flex; gap: 12px; }

.ps-hub .hub-barcode {
    margin-top: 22px; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px;
    background: var(--ps-surface-2); border: 1px solid var(--ps-line);
}
.ps-hub .hub-barcode .qr { color: var(--ps-brand); }
.ps-hub .hub-barcode .qr svg { width: 26px; height: 26px; }
.ps-hub .bc-text { flex: 1; min-width: 0; }
.ps-hub .bc-text small { display: block; font-size: 13px; font-weight: 600; color: var(--ps-muted); }
.ps-hub .bc-text b { display: block; font-size: 20px; font-weight: 800; letter-spacing: .08em; color: var(--ps-ink); }
.ps-hub .bc-img { padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--ps-line); line-height: 0; }
.ps-hub .bc-img svg { height: 46px; max-width: 220px; }

.ps-hub .hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ps-hub .hub-group { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ps-muted); }
.ps-hub .hub-tile {
    display: flex; flex-direction: column; gap: 8px; min-height: 176px; padding: 24px 22px; border-radius: 26px;
    background: var(--ps-surface); border: 1.5px solid var(--ps-line-2); color: var(--ps-ink);
    box-shadow: 0 8px 22px rgba(15, 27, 45, .06); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ps-hub .hub-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15, 27, 45, .12); }
.ps-hub .hub-tile .h-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; }
.ps-hub .hub-tile .h-ico svg { width: 26px; height: 26px; }
.ps-hub .hub-tile b { font-size: 19px; font-weight: 800; line-height: 1.25; }
.ps-hub .hub-tile small { font-size: 14px; color: var(--ps-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-hub .hub-tile.k-red    .h-ico { background: #FDE2E2; color: #D62C2C; }  .ps-hub .hub-tile.k-red:hover    { border-color: #F5B4B4; }
.ps-hub .hub-tile.k-green  .h-ico { background: #DDF3E4; color: #15803D; }  .ps-hub .hub-tile.k-green:hover  { border-color: #A8DEBB; }
.ps-hub .hub-tile.k-violet .h-ico { background: #E6E3F8; color: #3B3BA8; }  .ps-hub .hub-tile.k-violet:hover { border-color: #C3BCEE; }
.ps-hub .hub-tile.k-sky    .h-ico { background: #D8F3F8; color: #0B7F95; }  .ps-hub .hub-tile.k-sky:hover    { border-color: #A6E0EC; }
.ps-hub .hub-tile.k-amber  .h-ico { background: #FDF0D6; color: #B7791F; }  .ps-hub .hub-tile.k-amber:hover  { border-color: #F2D49A; }
.ps-hub .hub-tile.k-blue   .h-ico { background: #E3EEFB; color: #10528F; }  .ps-hub .hub-tile.k-blue:hover   { border-color: #B8D2F2; }
:root[data-theme="dark"] .ps-hub .hub-tile .h-ico { background: rgba(255, 255, 255, .08); filter: brightness(1.5); }
:root[data-theme="dark"] .ps-hub .bc-img { background: var(--ps-surface-2); }

@media (max-width: 640px) {
    .ps-dash .stu-row { gap: 14px; }
    .ps-dash .stu-card { width: calc(50% - 7px); min-height: 250px; padding: 22px 10px 14px; border-radius: 24px; }
    .ps-dash .stu-ring { width: 112px; height: 112px; }
    .ps-dash .stu-open { opacity: 1; transform: none; }
    .ps-hub .hub-card { padding: 20px 16px; border-radius: 24px; }
    .ps-hub .hub-head { gap: 14px; }
    .ps-hub .hub-photo .ring { width: 88px; height: 88px; }
    .ps-hub .hub-id h1 { font-size: 26px; }
    .ps-hub .hub-actions .round-btn.tint { width: 46px; height: 46px; flex-basis: 46px; }
    .ps-hub .hub-barcode { flex-wrap: wrap; }
    .ps-hub .bc-img { width: 100%; text-align: center; }
    .ps-hub .hub-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ps-hub .hub-tile { min-height: 150px; padding: 18px 14px; border-radius: 22px; }
    .ps-hub .hub-tile b { font-size: 16px; }
    .ps-hub .hub-tile small { font-size: 12.5px; }
}

/* =====================================================================
   MENU DRAWER (SmartHome.aspx) - like the app side menu
   ===================================================================== */
.ps-shell.has-drawer .topbar .burger { display: inline-grid !important; }
.ps-shell.no-side.has-drawer .topbar .burger { display: inline-grid !important; }
.dr-scrim { position: fixed; inset: 0; background: rgba(9, 20, 36, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
.dr-scrim.open { opacity: 1; pointer-events: auto; }
.ps-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 380px; max-width: 88vw; z-index: 31; overflow-y: auto;
    background: var(--ps-bg); border-radius: 0 26px 26px 0; box-shadow: var(--ps-shadow-lg);
    transform: translateX(-104%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; gap: 16px; padding-bottom: 18px;
}
.ps-drawer.open { transform: none; }
.ps-drawer .dr-head {
    display: flex; align-items: center; gap: 14px; padding: 30px 20px 26px; color: #fff; border-radius: 0 0 26px 26px;
    background: linear-gradient(120deg, #09355D, #10528F 60%, #135C9E); border-bottom: 3px solid #E0A526;
}
.ps-drawer .dr-head .dr-logo { border-color: #E0A526; color: #E0A526; }
:root[data-theme="dark"] .ps-drawer .dr-head { background: linear-gradient(120deg, #0A1628, #0F1F36); border-bottom-color: #22324A; }
.ps-drawer .dr-logo { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%; display: grid; place-items: center; border: 3px solid rgba(255, 255, 255, .9); }
.ps-drawer .dr-logo svg { width: 28px; height: 28px; }
.ps-drawer .dr-hello { flex: 1; min-width: 0; }
.ps-drawer .dr-hello b { display: block; font-size: 22px; font-weight: 800; }
.ps-drawer .dr-hello small { display: block; font-size: 13.5px; opacity: .9; }
.ps-drawer .dr-theme { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ps-drawer .dr-theme svg { width: 20px; height: 20px; }
.ps-drawer .dr-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.ps-drawer .dr-nav a {
    display: flex; align-items: center; justify-content: center; gap: 9px; height: 52px; border-radius: 16px;
    background: var(--ps-surface); border: 1px solid var(--ps-line); color: var(--ps-ink); font-weight: 800; font-size: 15px; box-shadow: var(--ps-shadow-sm);
}
.ps-drawer .dr-nav a .ico { color: #1553C7; }
.ps-drawer .dr-nav a:hover { text-decoration: none; border-color: #1553C7; }
.ps-drawer .dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.ps-drawer .dr-tile {
    display: flex; flex-direction: column; gap: 12px; min-height: 124px; padding: 18px 16px; border-radius: 22px;
    background: var(--ps-surface); border: 1.5px solid var(--ps-line); color: var(--ps-ink); font-weight: 800; font-size: 15px; line-height: 1.25;
    transition: transform .15s, box-shadow .15s;
}
.ps-drawer .dr-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--ps-shadow); }
.ps-drawer .dr-tile .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.ps-drawer .dr-tile .ico svg { width: 24px; height: 24px; }
.ps-drawer .dr-tile.k-blue   { border-color: #D6E6FA; } .ps-drawer .dr-tile.k-blue   .ico { background: #E3EEFB; color: #1553C7; }
.ps-drawer .dr-tile.k-green  { border-color: #D3EFDD; } .ps-drawer .dr-tile.k-green  .ico { background: #DDF3E4; color: #15803D; }
.ps-drawer .dr-tile.k-teal   { border-color: #CDEDEA; } .ps-drawer .dr-tile.k-teal   .ico { background: #D6F3F0; color: #0E8F83; }
.ps-drawer .dr-tile.k-violet { border-color: #E4DAF8; } .ps-drawer .dr-tile.k-violet .ico { background: #ECE5FA; color: #6D3FC0; }
.ps-drawer .dr-tile.k-amber  { border-color: #F8E5C0; } .ps-drawer .dr-tile.k-amber  .ico { background: #FDF0D6; color: #D97706; }
.ps-drawer .dr-tile.k-rose   { border-color: #F7D5E2; } .ps-drawer .dr-tile.k-rose   .ico { background: #FBE4ED; color: #BE3667; }
.ps-drawer .dr-tile.k-sky    { border-color: #CFEAF8; } .ps-drawer .dr-tile.k-sky    .ico { background: #DCF1FB; color: #0B7FB5; }
.ps-drawer .dr-tile.k-red    { border-color: #F8D5D5; } .ps-drawer .dr-tile.k-red    .ico { background: #FDE2E2; color: #C23434; }
.ps-drawer .dr-tile.k-slate  { border-color: #DDE3EA; } .ps-drawer .dr-tile.k-slate  .ico { background: #E9EDF2; color: #475569; }
:root[data-theme="dark"] .ps-drawer .dr-tile { border-color: var(--ps-line); }
:root[data-theme="dark"] .ps-drawer .dr-tile .ico { background: rgba(255, 255, 255, .08); }
.ps-drawer .dr-empty { grid-column: 1 / -1; color: var(--ps-muted); font-size: 14px; text-align: center; padding: 10px; }
.ps-drawer .dr-logout {
    margin: 4px 16px 0; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 20px; border-radius: 18px;
    background: linear-gradient(90deg, #FDEBEE, #F5E6F3); color: #DC2F3A; font-weight: 800; font-size: 17px;
}
:root[data-theme="dark"] .ps-drawer .dr-logout { background: rgba(220, 47, 58, .14); }
.ps-drawer .dr-logout:hover { text-decoration: none; filter: brightness(.98); }
.ps-drawer .dr-logout span:nth-child(2) { flex: 1; }
.ps-drawer .dr-logout .ico svg { width: 22px; height: 22px; }


/* =====================================================================
   v6 : smarter typography - smaller, lighter, tighter (dashboard, hub, drawer)
   ===================================================================== */
.ps body { font-size: 14px; letter-spacing: -.005em; }

/* dashboard */
.ps-dash .page { padding: 22px 26px 36px; }
.ps-dash .hero-v3 { padding: 26px 28px 24px; border-radius: 22px; }
.ps-dash .hero-v3 .kicker { font-size: 11px; letter-spacing: .12em; }
.ps-dash .hero-v3 h1 { font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.ps-dash .hero-v3 .hero-sub { font-size: 13.5px; }
.ps-dash .ask { margin-top: 18px; max-width: 580px; }
.ps-dash .ask input { height: 50px; font-size: 14px; font-weight: 500; border-radius: 15px; padding-left: 50px; }
.ps-dash .ask .ask-spark { width: 30px; height: 30px; left: 11px; top: 10px; border-radius: 9px; }
.ps-dash .ask .kbd { top: 14px; }
.ps-dash .ask-results { top: 58px; }
.ps-dash .ask-txt b { font-size: 13.5px; font-weight: 600; }
.ps-dash .ask-txt small { font-size: 12px; }
.ps-dash .ask-suggest .sg { height: 30px; font-size: 12px; font-weight: 500; }
.ps-dash .ask-suggest .sg b { font-weight: 700; }
.ps-dash .ask-suggest .sg .ico { width: 20px; height: 20px; }
.ps-dash .ask-suggest .sg .ico svg { width: 12px; height: 12px; }
.ps-dash .hero-v3 .hero-stats { grid-template-columns: repeat(3, 104px); gap: 8px; }
.ps-dash .hero-v3 .stat { padding: 12px; border-radius: 16px; }
.ps-dash .hero-v3 .stat .s-ico { width: 28px; height: 28px; border-radius: 9px; margin-bottom: 4px; }
.ps-dash .hero-v3 .stat .s-ico svg { width: 15px; height: 15px; }
.ps-dash .hero-v3 .stat b { font-size: 22px; font-weight: 700; }
.ps-dash .hero-v3 .stat span { font-size: 10.5px; letter-spacing: .08em; }

.ps-dash .block { margin-bottom: 22px; }
.ps-dash .section-title { margin-bottom: 10px; }
.ps-dash .section-title h2 { font-size: 15px; font-weight: 700; }
.ps-dash .section-title h2 .ico { width: 26px; height: 26px; border-radius: 8px; }
.ps-dash .section-title h2 .ico svg { width: 15px; height: 15px; }
.ps-dash .section-title .count { font-size: 12px; font-weight: 500; }

.ps-dash .notice-card .n-title { font-size: 14px; font-weight: 700; }
.ps-dash .notice-card .n-text { font-size: 12.5px; }
.ps-dash .notice-card .n-btn { height: 32px; font-size: 12.5px; font-weight: 600; }
.ps-dash .notice-card .n-ico { width: 36px; height: 36px; }
.ps-dash .allgood { font-size: 13px; padding: 11px 16px; }

.ps-dash .stu-row { gap: 16px; }
.ps-dash .stu-card { width: 176px; min-height: 236px; padding: 22px 14px 14px; border-radius: 24px; gap: 8px; }
.ps-dash .stu-ring { width: 108px; height: 108px; padding: 4px; }
.ps-dash .stu-ini { font-size: 32px; font-weight: 700; }
.ps-dash .stu-name { margin-top: 6px; font-size: 16px; font-weight: 700; }
.ps-dash .stu-line { width: 42px; height: 4px; }
.ps-dash .stu-meta { font-size: 11.5px; font-weight: 500; }
.ps-dash .stu-open { font-size: 12px; font-weight: 700; }
.ps-dash .stu-flag { width: 36px; height: 36px; top: -10px; right: -8px; }
.ps-dash .stu-flag svg { width: 18px; height: 18px; }

.ps-dash .disc-card { min-height: 108px; padding: 18px 20px; border-radius: 22px; gap: 8px; }
.ps-dash .disc-tag { font-size: 10px; padding: 4px 9px; border-radius: 7px; }
.ps-dash .disc-title { font-size: 16.5px; font-weight: 700; }
.ps-dash .disc-go { width: 42px; height: 42px; margin-top: -21px; }
.ps-dash .disc-bg svg { width: 104px; height: 104px; }

.ps-dash .chip { height: 30px; font-size: 12.5px; font-weight: 500; }
.ps-dash .tiles { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.ps-dash .tile { min-height: 120px; padding: 16px 14px 14px; gap: 8px; border-radius: 18px; }
.ps-dash .tile .t-ico { width: 42px; height: 42px; }
.ps-dash .tile .t-ico svg { width: 20px; height: 20px; }
.ps-dash .tile .t-title { font-size: 13.5px; font-weight: 700; }
.ps-dash .tile .t-desc { font-size: 12px; }
.ps-dash .card h3 { font-size: 14px; font-weight: 700; }
.ps-dash .activity .a-title { font-size: 13.5px; font-weight: 700; }
.ps-dash .member-table td { font-size: 12.5px; }
.ps-dash .empty-state { font-size: 12.5px; }
.ps-dash .strip .lbl { font-size: 11px; }

/* student hub */
.ps-hub .page.hub { max-width: 1040px; }
.ps-hub .hub-top { margin-bottom: 14px; }
.ps .round-btn { width: 40px; height: 40px; flex-basis: 40px; }
.ps .round-btn svg { width: 18px; height: 18px; }
.ps .round-btn.tint { width: 46px; height: 46px; flex-basis: 46px; }
.ps .round-btn.tint svg { width: 20px; height: 20px; }
.ps-hub .hub-crumb { font-size: 13px; font-weight: 500; }
.ps-hub .hub-card { padding: 20px 22px; border-radius: 24px; margin-bottom: 20px; }
.ps-hub .hub-head { gap: 18px; }
.ps-hub .hub-photo .ring { width: 96px; height: 96px; outline-width: 3px; border-width: 3px; }
.ps-hub .hub-photo .ini { font-size: 34px; font-weight: 700; }
.ps-hub .hub-photo .dot { width: 18px; height: 18px; right: 4px; bottom: 6px; border-width: 3px; }
.ps-hub .hub-id h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.ps-hub .pill { height: 30px; padding: 0 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.ps-hub .pill .ico svg { width: 15px; height: 15px; }
.ps-hub .hub-barcode { margin-top: 16px; padding: 10px 14px; border-radius: 16px; gap: 12px; }
.ps-hub .hub-barcode .qr svg { width: 22px; height: 22px; }
.ps-hub .bc-text small { font-size: 11.5px; font-weight: 500; }
.ps-hub .bc-text b { font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.ps-hub .bc-img { padding: 6px 10px; }
.ps-hub .bc-img svg { height: 38px; }
.ps-hub .hub-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ps-hub .hub-group { font-size: 11.5px; }
.ps-hub .hub-tile { min-height: 132px; padding: 16px; border-radius: 20px; gap: 5px; }
.ps-hub .hub-tile .h-ico { width: 44px; height: 44px; margin-bottom: 8px; }
.ps-hub .hub-tile .h-ico svg { width: 20px; height: 20px; }
.ps-hub .hub-tile b { font-size: 14.5px; font-weight: 700; }
.ps-hub .hub-tile small { font-size: 12px; }

/* drawer */
.ps-drawer { width: 340px; gap: 12px; }
.ps-drawer .dr-head { padding: 22px 18px 20px; gap: 12px; }
.ps-drawer .dr-logo { width: 48px; height: 48px; flex-basis: 48px; }
.ps-drawer .dr-logo svg { width: 22px; height: 22px; }
.ps-drawer .dr-hello b { font-size: 17px; font-weight: 700; }
.ps-drawer .dr-hello small { font-size: 12px; }
.ps-drawer .dr-theme { width: 38px; height: 38px; }
.ps-drawer .dr-nav a { height: 44px; font-size: 13.5px; font-weight: 700; border-radius: 14px; }
.ps-drawer .dr-grid { gap: 10px; }
.ps-drawer .dr-tile { min-height: 100px; padding: 14px; gap: 10px; border-radius: 18px; font-size: 13px; font-weight: 700; }
.ps-drawer .dr-tile .ico { width: 40px; height: 40px; }
.ps-drawer .dr-tile .ico svg { width: 19px; height: 19px; }
.ps-drawer .dr-logout { height: 50px; font-size: 14.5px; font-weight: 700; border-radius: 15px; }

@media (max-width: 640px) {
    .ps-dash .stu-card { width: calc(50% - 8px); }
    .ps-dash .stu-ring { width: 96px; height: 96px; }
    .ps-hub .hub-photo .ring { width: 76px; height: 76px; }
    .ps-hub .hub-id h1 { font-size: 21px; }
    .ps-hub .hub-grid { grid-template-columns: 1fr 1fr; }
    .ps-hub .hub-tile { min-height: 120px; padding: 14px 12px; }
    .ps-hub .hub-tile b { font-size: 13.5px; }
}

/* v8 : Newsletter (one button per level) + My profile on the main page */
.ps-dash .disc-news { background: linear-gradient(120deg, #F59E0B, #EA7A0C 55%, #D9480F); box-shadow: 0 14px 30px rgba(234, 122, 12, .28); justify-content: flex-start; }
.ps-dash .disc-profile { background: linear-gradient(120deg, #A78BFA, #7C3AED 60%, #6D28D9); box-shadow: 0 14px 30px rgba(124, 58, 237, .26); }
.ps-dash .disc-profile .disc-go { color: #7C3AED; }
.ps-dash .nl-kids { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ps-dash .nl-kid {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px 0 10px; border-radius: 999px;
    background: #fff; color: #C2410C; font: 700 12.5px var(--ps-font); box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}
.ps-dash .nl-kid:hover { text-decoration: none; transform: translateY(-1px); }
.ps-dash .nl-kid .ico svg { width: 15px; height: 15px; }
.ps-dash .nl-kid.is-busy { opacity: .6; pointer-events: none; }


/* =====================================================================
   FORM PAGES (parent_Profile_*.aspx redesigned)
   ===================================================================== */
.ps-form .f-page { max-width: 1120px; }
.ps-form .f-hero {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 22px 24px; margin-bottom: 18px; border-radius: 22px; color: #fff;
    background: linear-gradient(125deg, #0C3F73 0%, #10528F 40%, #5B3FC4 80%, #0E8F83 120%); box-shadow: 0 16px 36px rgba(16, 82, 143, .22);
}
.ps-form .f-hero-ico { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); }
.ps-form .f-hero-ico svg { width: 26px; height: 26px; }
.ps-form .f-hero h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ps-form .f-hero p { margin: 0; font-size: 13.5px; opacity: .9; }

.ps-form .f-alert { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 600; }
.ps-form .f-alert-ok { background: var(--ps-success-50); color: var(--ps-success); border: 1px solid rgba(21, 128, 61, .2); }
.ps-form .f-alert-warn { background: var(--ps-danger-50); color: var(--ps-danger); border: 1px solid rgba(194, 65, 12, .2); }

.ps-form .f-parents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.ps-form .f-card { background: var(--ps-surface); border: 1.5px solid var(--ps-line-2); border-radius: 22px; padding: 18px 20px 20px; box-shadow: 0 8px 22px rgba(15, 27, 45, .06); margin-bottom: 16px; }
.ps-form .f-parents .f-card { margin-bottom: 0; }
.ps-form .f-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--ps-line-2); }
.ps-form .f-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ps-ink); }
.ps-form .f-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ps-muted); }
.ps-form .f-av { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; background: #E3EEFB; color: #10528F; }
.ps-form .f-av svg { width: 20px; height: 20px; }
.ps-form .is-father { border-top: 4px solid #1D6FD1; }
.ps-form .is-mother { border-top: 4px solid #BE3667; }
.ps-form .is-mother .f-av { background: #FBE4ED; color: #BE3667; }
.ps-form .f-av.tint-amber { background: #FDF0D6; color: #B7791F; }
.ps-form .f-av.tint-teal { background: #D6F3F0; color: #0E8F83; }
.ps-form .f-av.tint-violet { background: #ECE5FA; color: #6D3FC0; }

.ps-form .f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ps-form .f-grid.one { grid-template-columns: 1fr; }
.ps-form .f-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ps-form .f-field.full { grid-column: 1 / -1; }
.ps-form .f-field > label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ps-ink-2); }
.ps-form .f-field > label .ico { color: var(--ps-muted); }
.ps-form .f-field > label .ico svg { width: 14px; height: 14px; }
.ps-form .f-input {
    width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid #D5DDE8; background: var(--ps-surface);
    font: 500 13.5px var(--ps-font); color: var(--ps-ink); outline: none; transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
.ps-form textarea.f-input { height: auto; min-height: 64px; padding: 9px 12px; resize: vertical; line-height: 1.45; }
.ps-form select.f-input {
    padding-right: 34px; -webkit-appearance: none; appearance: none; cursor: pointer;
    background: var(--ps-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
}
.ps-form .f-input:focus { border-color: var(--ps-brand); box-shadow: 0 0 0 4px var(--ps-focus); }
.ps-form .f-input[disabled] { background: var(--ps-surface-2); color: var(--ps-ink); font-weight: 700; border-style: dashed; cursor: default; }
:root[data-theme="dark"] .ps-form .f-input { border-color: var(--ps-line); }
.ps-form .f-err { font-size: 11.5px; font-weight: 600; color: var(--ps-danger); }
.ps-form .f-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ps-form .f-lang small { display: block; font-size: 11px; color: var(--ps-muted); margin-bottom: 3px; }
.ps-form .f-note { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ps-accent-50); color: #8A5A00; font-size: 12.5px; align-self: end; }
.ps-form .f-note .ico { flex: 0 0 auto; color: var(--ps-accent); }
.ps-form .f-note .ico svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .ps-form .f-note { color: var(--ps-accent); }
.ps-form .f-pwd { position: relative; }
.ps-form .f-pwd .f-input { padding-right: 44px; letter-spacing: .02em; }
.ps-form .f-pwd .f-input.is-masked { -webkit-text-security: disc; }
.ps-form .f-eye { position: absolute; right: 5px; top: 5px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ps-muted); cursor: pointer; display: grid; place-items: center; }
.ps-form .f-eye:hover { background: var(--ps-surface-2); color: var(--ps-ink); }
.ps-form .f-eye svg { width: 18px; height: 18px; }
.ps-form .f-hint { font-size: 12px; color: var(--ps-success); font-weight: 600; }

.ps-form .f-actions {
    position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 14px;
    border-radius: 18px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--ps-line); box-shadow: 0 12px 30px rgba(15, 27, 45, .12);
}
:root[data-theme="dark"] .ps-form .f-actions { background: rgba(17, 28, 46, .92); }
.ps-form .f-spacer { flex: 1; }
.ps-form .f-saved { font-size: 13px; font-weight: 700; color: var(--ps-success); }
.ps-form .f-cancel { height: 40px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; color: var(--ps-ink-2); font-weight: 600; font-size: 13.5px; border: 1px solid var(--ps-line); background: var(--ps-surface); }
.ps-form .f-cancel:hover { text-decoration: none; background: var(--ps-surface-2); }
.ps-form .f-save {
    height: 40px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: 700 13.5px var(--ps-font);
    background: linear-gradient(135deg, #1A6AC0, #10528F); box-shadow: 0 8px 18px rgba(16, 82, 143, .28);
}
.ps-form .f-save:hover { filter: brightness(1.06); }
.ps-form .f-hidden { display: none; }

@media (max-width: 900px) {
    .ps-form .f-parents { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ps-form .f-grid { grid-template-columns: 1fr; }
    .ps-form .f-langs { grid-template-columns: 1fr 1fr 1fr; }
    .ps-form .f-hero { padding: 18px; }
    .ps-form .f-hero h1 { font-size: 19px; }
}
.ps-form .hub-top { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.ps-form .hub-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ps-muted); font-weight: 500; }
.ps-form .hub-crumb .ico svg { width: 14px; height: 14px; }
.ps-form .hub-crumb b { color: var(--ps-ink); }


/* =====================================================================
   DOCUMENT PAGES (pli.aspx / pli_en.aspx : regulations & policies)
   ===================================================================== */
.ps-docs .d-hero { flex-wrap: wrap; }
.ps-docs .d-hero .f-hero-txt { flex: 1; min-width: 220px; }
.ps-docs .d-search { position: relative; flex: 0 1 320px; min-width: 220px; }
.ps-docs .d-search .ico { position: absolute; left: 13px; top: 11px; color: var(--ps-muted); }
.ps-docs .d-search .ico svg { width: 18px; height: 18px; }
.ps-docs .d-search input {
    width: 100%; height: 42px; border: 0; border-radius: 13px; padding: 0 14px 0 40px; box-sizing: border-box;
    font: 500 13.5px var(--ps-font); color: #0F1B2D; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); outline: none;
}
:root[data-theme="dark"] .ps-docs .d-search input { background: var(--ps-surface); color: var(--ps-ink); }

.ps-docs .d-feature {
    display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 22px; border-radius: 22px;
    background: var(--ps-surface); border: 1.5px solid var(--ps-brand-100); box-shadow: 0 12px 30px rgba(16, 82, 143, .10);
    position: relative; overflow: hidden;
}
.ps-docs .d-feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #F0B93E, #1D6FD1); }
.ps-docs .d-feature-ico { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #1A73D9, #10528F); box-shadow: 0 10px 22px rgba(16, 82, 143, .28); }
.ps-docs .d-feature-ico svg { width: 30px; height: 30px; }
.ps-docs .d-feature-txt { flex: 1; min-width: 0; }
.ps-docs .d-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #B7791F; background: #FDF3DE; padding: 3px 9px; border-radius: 7px; margin-bottom: 6px; }
.ps-docs .d-feature h2 { margin: 0 0 3px; font-size: 18px; font-weight: 700; color: var(--ps-ink); }
.ps-docs .d-feature p { margin: 0 0 6px; font-size: 13px; color: var(--ps-muted); }
.ps-docs .d-feature small, .ps-docs .d-card small { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ps-muted); }
.ps-docs .d-feature small .ico svg { width: 13px; height: 13px; }

.ps-docs .d-title { margin-top: 4px; }
.ps-docs .d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ps-docs .d-card {
    display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; background: var(--ps-surface);
    border: 1.5px solid var(--ps-line-2); box-shadow: 0 8px 22px rgba(15, 27, 45, .06); transition: transform .15s, box-shadow .15s;
}
.ps-docs .d-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15, 27, 45, .11); }
.ps-docs .d-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; background: #E3EEFB; color: #10528F; }
.ps-docs .d-ico svg { width: 21px; height: 21px; }
.ps-docs .k-green  .d-ico { background: #DDF3E4; color: #15803D; }
.ps-docs .k-violet .d-ico { background: #ECE5FA; color: #6D3FC0; }
.ps-docs .k-teal   .d-ico { background: #D6F3F0; color: #0E8F83; }
.ps-docs .k-amber  .d-ico { background: #FDF0D6; color: #B7791F; }
.ps-docs .k-rose   .d-ico { background: #FBE4ED; color: #BE3667; }
:root[data-theme="dark"] .ps-docs .d-ico { background: rgba(255, 255, 255, .08); filter: brightness(1.5); }
.ps-docs .d-card h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ps-ink); line-height: 1.3; }
.ps-docs .d-card p { margin: 0; font-size: 12.5px; color: var(--ps-muted); line-height: 1.45; flex: 1; }
.ps-docs .d-actions { display: flex; gap: 8px; margin-top: 8px; }
.ps-docs .d-feature .d-actions { margin-top: 0; flex-direction: column; }
.ps-docs .d-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 11px;
    font: 700 13px var(--ps-font); border: 1px solid transparent; transition: filter .15s, background .15s;
}
.ps-docs .d-btn:hover { text-decoration: none; }
.ps-docs .d-btn .ico svg { width: 16px; height: 16px; }
.ps-docs .d-read { flex: 1; color: #fff; background: linear-gradient(135deg, #1A6AC0, #10528F); box-shadow: 0 6px 14px rgba(16, 82, 143, .22); }
.ps-docs .d-read:hover { filter: brightness(1.07); color: #fff; }
.ps-docs .d-dl { color: var(--ps-brand); background: var(--ps-brand-50); border-color: var(--ps-brand-100); }
.ps-docs .d-dl:hover { background: var(--ps-brand-100); }
.ps-docs .d-card .d-dl { width: 40px; padding: 0; }
.ps-docs .d-empty { display: none; align-items: center; justify-content: center; gap: 8px; padding: 26px; margin-top: 10px; color: var(--ps-muted); font-size: 13.5px; background: var(--ps-surface); border: 1px dashed var(--ps-line); border-radius: 16px; }

@media (max-width: 640px) {
    .ps-docs .d-feature { flex-wrap: wrap; padding: 18px; }
    .ps-docs .d-feature .d-actions { flex-direction: row; width: 100%; }
    .ps-docs .d-feature .d-actions .d-btn { flex: 1; }
    .ps-docs .d-search { flex-basis: 100%; }
}
.ps-docs .d-feature .d-btn { flex: 0 0 auto; min-width: 150px; height: 38px; }
@media (max-width: 640px) { .ps-docs .d-feature .d-btn { flex: 1 1 0; min-width: 0; } }

/* ================================================================
   NOTIFICATION BAR  (Parent_dashboard.aspx)
   ================================================================ */
.ps-dash .notif-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--ps-brand-50, #EBF3FF); border: 1px solid var(--ps-brand-100, #C2D9F7);
    border-radius: var(--ps-radius); padding: 11px 16px;
    margin-bottom: 18px; font-size: 14px; color: var(--ps-brand, #10528F);
    animation: notifSlideIn .3s ease;
}
@keyframes notifSlideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ps-dash .notif-bar-ico { flex: 0 0 auto; }
.ps-dash .notif-bar-ico svg { width: 18px; height: 18px; }
.ps-dash .notif-bar-text { flex: 1 1 auto; font-weight: 600; }
.ps-dash .notif-bar-btn {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
    background: var(--ps-brand, #10528F); color: #fff !important; text-decoration: none;
    font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
    transition: background .15s, transform .15s;
}
.ps-dash .notif-bar-btn:hover { background: var(--ps-brand-dark, #0d4070); transform: translateY(-1px); }
.ps-dash .notif-bar-btn svg { width: 14px; height: 14px; }
@media (prefers-color-scheme: dark) {
    .ps-dash .notif-bar { background: rgba(16, 82, 143, .18); border-color: rgba(16, 82, 143, .4); color: #90B8E8; }
}

/* ================================================================
   TILE NOTIFICATION BADGE  (.t-badge)
   ================================================================ */
.ps-dash .tile { overflow: visible; }
.ps-dash .tile .t-badge {
    position: absolute; top: -8px; right: -8px;
    min-width: 22px; height: 22px; padding: 0 6px;
    background: #E53E3E; color: #fff;
    font: 800 11px/22px var(--ps-font); text-align: center;
    border-radius: 999px; border: 2.5px solid var(--ps-surface);
    box-shadow: 0 2px 6px rgba(229,62,62,.45);
    pointer-events: none; z-index: 2;
    animation: badgePop .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes badgePop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ps-dash .tile.tile-has-badge { border-color: rgba(229,62,62,.3); }
@media (prefers-color-scheme: dark) {
    .ps-dash .tile .t-badge { border-color: var(--ps-surface-2, #1e2531); }
}
