:root {
    --bsa-blue: #005482;
    --bsa-navy: #113654;
    --bsa-bright: #0345bf;
    --bsa-ink: #173148;
    --bsa-muted: #60778b;
    --bsa-border: #dce7ee;
}
* { box-sizing: border-box; }
body.bsa-portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #f3f7fa;
    color: var(--bsa-ink);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.bsa-container { width: min(1320px, 100% - 64px); margin-inline: auto; }
.bsa-header { background: #fff; border-top: 4px solid var(--bsa-blue); }
.bsa-header-inner { min-height: 112px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.bsa-brand { display: flex; align-items: center; gap: 24px; text-decoration: none; color: var(--bsa-blue); }
.bsa-brand img { display: block; width: 72px; height: 64px; object-fit: contain; margin: 0; }
.bsa-brand span { padding-left: 24px; border-left: 1px solid var(--bsa-border); font-size: 18px; letter-spacing: -.02em; }
.bsa-header-actions { display: flex; align-items: center; gap: 18px; }
.bsa-languages { display: flex; align-items: center; gap: 4px; }
.bsa-languages a { display: block; padding: 7px 9px; border-radius: 7px; color: var(--bsa-muted); font-size: 12px; text-decoration: none; }
.bsa-languages a[aria-current] { background: #eaf3f9; color: var(--bsa-blue); }
.bsa-languages .bsa-logout { margin-left: 12px; border-left: 1px solid var(--bsa-border); border-radius: 0; }
.bsa-account { font-size: 12px; background: #f3f7fa; padding: 7px 12px; border-radius: 8px; color: var(--bsa-muted); }
.bsa-button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 11px 22px; border: 1px solid transparent;
    border-radius: 9px; background: var(--bsa-blue); color: #fff;
    font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.bsa-button:hover { background: #0345a8; color: #fff; text-decoration: none; }
.bsa-button.is-secondary { background: #f0f5f9; border-color: #ccdce8; color: var(--bsa-blue); }
.bsa-navigation { background: var(--bsa-navy); }
.bsa-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 9px 0; }
.bsa-nav-links a { display: block; padding: 10px 13px; border-radius: 7px; color: #d4e4f1; font-size: 12px; text-decoration: none; }
.bsa-nav-links a:hover, .bsa-nav-links a[aria-current] { color: #fff; background: #275877; }
.bsa-mobile-menu { display: none; }
.bsa-main { flex: 1; padding-block: 32px 56px; min-width: 0; }
.bsa-content { padding: 28px; background: #fff; border: 1px solid var(--bsa-border); border-radius: 16px; box-shadow: 0 8px 30px #123b5610; }
.bsa-content:has(.eka-teacher-schedule), .bsa-content:has(.bsa-checkin) { padding: 0; background: transparent; border: 0; box-shadow: none; }
.bsa-portal #contentCentr { float: none; min-width: 0; }
.bsa-portal h2 { color: var(--bsa-blue); font-size: 26px; letter-spacing: -.03em; line-height: 1.25; }
.bsa-portal h4::before { display: none; }
.bsa-portal a { color: var(--bsa-blue); }
.bsa-portal .bsa-button { color: #fff; }
.bsa-portal .bsa-nav-links a { color: #d4e4f1; }
.bsa-portal .bsa-nav-links a[aria-current] { color: #fff; }
.bsa-portal input, .bsa-portal select, .bsa-portal textarea { max-width: 100%; font: inherit; }
.bsa-portal input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .bsa-portal select {
    min-height: 42px; border: 1px solid #cedde7; border-radius: 8px; padding: 9px 12px; background: #fff; color: var(--bsa-ink);
}
.bsa-portal input:focus, .bsa-portal select:focus, .bsa-portal button:focus-visible, .bsa-portal a:focus-visible { outline: 3px solid #8bb9d8; outline-offset: 3px; }
.bsa-portal .popUpWindows { border-radius: 16px; padding: 28px; box-shadow: 0 16px 80px #102c4c40; }
.bsa-portal .loginSubmit2 { color: var(--bsa-blue); border: 0; background: transparent; cursor: pointer; }
.bsa-portal .login_error { color: #9b2735; }
.bsa-portal #dialog.bsa-login-dialog {
    position: relative;
    top: auto;
    left: auto;
    width: 500px;
    min-width: 0;
    max-width: calc(100vw - 48px);
    height: auto;
    margin: 0;
    padding: 36px;
    border: 1px solid #dce7ee;
    border-top: 4px solid var(--bsa-blue);
    border-radius: 20px;
    background: #fff;
    color: var(--bsa-ink);
    box-shadow: 0 24px 80px #092d4d40;
    text-align: left;
}
.bsa-portal #dialog.bsa-login-dialog #loginContent { margin: 0; padding: 0; }
.bsa-portal #dialog .bsa-login-heading { margin-bottom: 28px; padding-right: 32px; }
.bsa-portal #dialog .bsa-login-heading p { margin: 0 0 8px; color: var(--bsa-muted); font-size: 13px; }
.bsa-portal #dialog .bsa-login-heading h2 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; }
.bsa-portal #dialog .bsa-login-close {
    position: absolute; top: 22px; right: 22px;
    display: grid; place-items: center; width: 34px; height: 34px;
    border: 0; border-radius: 9px; background: #f0f5f9; color: #60778b; cursor: pointer;
}
.bsa-portal #dialog .bsa-login-close:hover { background: #e4eef5; color: var(--bsa-blue); }
.bsa-portal #dialog .bsa-login-fields { display: grid; gap: 20px; }
.bsa-portal #dialog .bsa-login-fields label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.bsa-portal #dialog .bsa-login-fields input {
    display: block; width: 100%; min-height: 48px; padding: 11px 14px;
    border: 1px solid #cadbe7; border-radius: 9px; background: #fbfdff; color: var(--bsa-ink); font-size: 16px;
}
.bsa-portal #dialog .bsa-login-fields input:focus { border-color: var(--bsa-blue); outline: 3px solid #00548215; outline-offset: 1px; background: #fff; }
.bsa-portal #dialog .bsa-login-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.bsa-portal #dialog .bsa-login-actions button { min-height: 46px; padding: 11px 22px; border-radius: 9px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.bsa-portal #dialog .bsa-login-cancel { border: 1px solid #d5e1ea; background: #fff; color: var(--bsa-muted); }
.bsa-portal #dialog .bsa-login-cancel:hover { background: #f3f7fa; color: var(--bsa-ink); }
.bsa-portal #dialog .bsa-login-submit { min-width: 146px; }
.bsa-portal #dialog .bsa-login-error { margin-top: 20px; padding: 12px 14px; border: 1px solid #efd6d8; border-radius: 9px; background: #fff5f5; color: #9b2735; font-size: 14px; }
.bsa-portal #dialog .bsa-login-error p { margin: 0; }
.bsa-portal #dialog .bsa-login-error .login_error { color: inherit; text-align: left; }
.bsa-portal #contentCentr .shedu_wrap { width: 100%; border-collapse: collapse; table-layout: fixed; overflow-wrap: anywhere; }
.bsa-portal #contentCentr .shedu_wrap td { padding: 12px 10px; border-bottom: 1px solid var(--bsa-border); font-size: 14px; }
.bsa-portal #contentCentr .topic_row { background: #edf4f9; color: var(--bsa-blue); }
.bsa-portal .selgroup { width: 100%; }
.bsa-welcome { position: relative; overflow: hidden; padding: clamp(30px, 6vw, 76px); border-radius: 20px; background: linear-gradient(115deg, #093251, #005482); color: #fff; }
.bsa-welcome::after { content: ""; position: absolute; right: -150px; top: -160px; width: 550px; height: 550px; border: 75px solid #ffffff07; border-radius: 50%; pointer-events: none; }
.bsa-welcome h1 { max-width: 820px; margin: 10px 0 22px; font-size: clamp(30px, 4vw, 56px); line-height: 1.1; letter-spacing: -.05em; color: #fff; }
.bsa-welcome p { max-width: 650px; color: #d7eaf7; font-size: 19px; }
.bsa-welcome .bsa-button { margin-block: 20px 12px; background: #fff; color: var(--bsa-blue); }
.bsa-welcome .bsa-welcome-note { font-size: 13px; }
.bsa-eyebrow { font-size: 12px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.bsa-notice { background: #edf5fb; padding: 24px; border-radius: 12px; color: var(--bsa-blue); }
.bsa-footer { padding: 24px 0; border-top: 1px solid var(--bsa-border); background: #fff; color: var(--bsa-muted); font-size: 12px; }
.bsa-footer > div { display: flex; justify-content: space-between; gap: 20px; }
.bsa-checkin { max-width: 720px; margin: 28px auto; padding: clamp(24px, 5vw, 56px); border: 1px solid var(--bsa-border); border-radius: 18px; background: #fff; text-align: center; }
.bsa-checkin h1 { font-size: clamp(28px, 5vw, 42px); letter-spacing: -.04em; line-height: 1.15; }
.bsa-checkin p { color: var(--bsa-muted); margin-block: 20px; }
.bsa-status-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; color: var(--bsa-blue); background: #eaf4fb; font-size: 40px; }
.bsa-checkin.is-success .bsa-status-icon { color: #14654b; background: #e8f5ef; }
@media(max-width: 900px) {
    .bsa-container { width: calc(100% - 32px); }
    .bsa-brand span, .bsa-account { display: none; }
    .bsa-brand img { width: 64px; }
    .bsa-header-inner { min-height: 92px; gap: 10px; }
    .bsa-header-actions { gap: 6px; }
    .bsa-desktop-menu { display: none; }
    .bsa-mobile-menu { display: block; padding: 12px 0; color: #fff; }
    .bsa-mobile-menu summary { cursor: pointer; font-size: 15px; }
    .bsa-nav-links { align-items: stretch; }
    .bsa-nav-links a { flex: 1 1 160px; }
    .bsa-content { padding: 18px; }
}
@media(max-width: 480px) {
    .bsa-portal #dialog.bsa-login-dialog { padding: 26px 22px; }
    .bsa-portal #dialog .bsa-login-heading { margin-bottom: 24px; }
    .bsa-portal #dialog .bsa-login-actions { gap: 10px; }
    .bsa-portal #dialog .bsa-login-actions button { flex: 1; min-width: 0; padding-inline: 12px; }
    .bsa-brand img { width: 56px; height: 48px; }
    .bsa-header-inner { flex-wrap: wrap; padding-block: 12px; }
    .bsa-header-actions { flex: 1; justify-content: flex-end; }
    .bsa-languages a { padding: 6px; font-size: 11px; }
    .bsa-languages .bsa-logout { margin-left: 0; }
    .bsa-header-actions .bsa-button { min-height: 36px; padding: 8px 12px; font-size: 12px; }
    .bsa-main { padding-top: 20px; }
    .bsa-footer > div { flex-direction: column; gap: 8px; }
}
