/* MyOSIS Premium Visual System v3
   Shared by the public portal and the dedicated MyOSIS login. */
:root {
    --osis-ink: #102f42;
    --osis-muted: #668090;
    --osis-navy: #062f3e;
    --osis-navy-deep: #031f2b;
    --osis-teal: #0f8f86;
    --osis-cyan: #22b8cf;
    --osis-blue: #3b82f6;
    --osis-violet: #8b5cf6;
    --osis-amber: #f59e0b;
    --osis-rose: #f43f5e;
    --osis-green: #22a66f;
    --osis-paper: #f4fafb;
    --osis-line: rgba(67, 126, 145, .16);
    --osis-card-shadow: 0 22px 55px rgba(15, 55, 70, .11);
    --osis-deep-shadow: 0 34px 85px rgba(2, 31, 43, .24);
    --osis-transition: 260ms cubic-bezier(.2, .8, .2, 1);
}

html {
    scroll-padding-top: 96px;
}

.osis-public-body,
.osis-auth-body {
    overflow-x: hidden;
    color: var(--osis-ink);
    background: var(--osis-paper);
    font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.osis-public-body a,
.osis-public-body button,
.osis-auth-body a,
.osis-auth-body button,
.osis-auth-body input {
    -webkit-tap-highlight-color: transparent;
}

/* Shared brand */
.osis-brand {
    gap: .8rem;
}

.osis-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.osis-brand .osis-brand-logo img {
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 8px 14px rgba(6, 47, 62, .14));
    object-fit: contain;
}

.osis-brand.light .osis-brand-logo img {
    filter: drop-shadow(0 9px 16px rgba(1, 18, 27, .28));
}

.osis-brand-copy {
    min-width: 0;
}

.osis-brand-copy strong {
    color: var(--osis-ink);
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: .035em;
}

.osis-brand-copy small {
    max-width: 230px;
    overflow: hidden;
    color: #6f8796;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .055em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.osis-brand.light .osis-brand-copy strong {
    color: #fff;
}

.osis-brand.light .osis-brand-copy small {
    color: rgba(255, 255, 255, .66);
}

/* Premium public header */
.osis-public-header {
    isolation: isolate;
    min-height: 84px;
    border-bottom: 1px solid rgba(137, 238, 227, .12);
    background:
        radial-gradient(circle at 82% 0, rgba(34, 184, 207, .16), transparent 30%),
        linear-gradient(112deg, rgba(3, 31, 43, .98), rgba(6, 65, 76, .97) 56%, rgba(8, 112, 105, .96));
    box-shadow: 0 10px 34px rgba(2, 31, 43, .16), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(22px) saturate(145%);
    transition: background var(--osis-transition), box-shadow var(--osis-transition);
}

.osis-public-header::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 231, 220, .58), rgba(96, 165, 250, .36), transparent);
}

.osis-public-header.is-scrolled {
    background:
        radial-gradient(circle at 82% 0, rgba(34, 184, 207, .14), transparent 30%),
        linear-gradient(112deg, rgba(3, 31, 43, .98), rgba(5, 57, 68, .98) 56%, rgba(7, 93, 90, .98));
    box-shadow: 0 18px 46px rgba(2, 31, 43, .24), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.header-inner {
    position: relative;
    min-height: 84px;
}

.public-nav {
    gap: .35rem;
}

.public-nav > a:not(.nav-login) {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    padding: .45rem .68rem;
    border: 1px solid transparent;
    border-radius: 13px;
    color: rgba(235, 248, 249, .72);
    font-size: .72rem;
    font-weight: 700;
    transition: color var(--osis-transition), background var(--osis-transition), border-color var(--osis-transition), transform var(--osis-transition);
}

.public-nav > a:not(.nav-login)::after {
    display: none;
}

.public-nav > a:not(.nav-login) > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: var(--nav-tone, var(--osis-teal));
    background: rgba(var(--nav-rgb, 15, 143, 134), .17);
    transition: transform var(--osis-transition), background var(--osis-transition);
}

.public-nav > a.tone-blue { --nav-tone: #60a5fa; --nav-rgb: 96, 165, 250; }
.public-nav > a.tone-violet { --nav-tone: #a78bfa; --nav-rgb: 167, 139, 250; }
.public-nav > a.tone-amber { --nav-tone: #f5b942; --nav-rgb: 245, 185, 66; }
.public-nav > a.tone-teal { --nav-tone: #45d5c8; --nav-rgb: 69, 213, 200; }

.public-nav > a:not(.nav-login):hover,
.public-nav > a:not(.nav-login).is-active {
    color: #fff;
    border-color: rgba(var(--nav-rgb, 15, 143, 134), .3);
    background: rgba(var(--nav-rgb, 15, 143, 134), .13);
    transform: translateY(-1px);
}

.public-nav > a:not(.nav-login):hover > i,
.public-nav > a:not(.nav-login).is-active > i {
    color: #fff;
    background: var(--nav-tone, var(--osis-teal));
    transform: rotate(-4deg) scale(1.04);
}

.public-nav .nav-login {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 46px;
    margin-left: .35rem;
    padding: .65rem .85rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0f8f86, #22b8cf);
    box-shadow: 0 13px 28px rgba(0, 24, 36, .26), 0 0 28px rgba(34, 184, 207, .12), inset 0 1px 0 rgba(255, 255, 255, .23);
    font-size: .72rem;
    font-weight: 750;
    transition: transform var(--osis-transition), box-shadow var(--osis-transition);
}

.public-nav .nav-login i:last-child {
    margin-left: .1rem;
    color: #8ce9df;
    font-size: .68rem;
}

.public-nav .nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(6, 47, 62, .25), 0 0 0 4px rgba(34, 184, 207, .08);
}

.public-menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(137, 238, 227, .2);
    color: #8dece1;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11);
}

.osis-public-header .osis-brand-copy strong {
    color: #fff;
}

.osis-public-header .osis-brand-copy small {
    color: rgba(220, 243, 245, .62);
}

/* School-photo hero */
.osis-public-hero {
    isolation: isolate;
    min-height: 690px;
    padding: clamp(1.9rem, 3.5vw, 3.25rem) 0 clamp(5.2rem, 8vw, 7rem);
    color: #fff;
    background:
        radial-gradient(circle at 4% 8%, rgba(34, 184, 207, .22), transparent 30%),
        radial-gradient(circle at 94% 72%, rgba(45, 212, 191, .21), transparent 30%),
        linear-gradient(137deg, #031f2b 0%, #063d4b 52%, #087a73 100%);
}

.osis-public-hero::before {
    z-index: -2;
    opacity: .42;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .13) 1px, transparent 0),
        linear-gradient(120deg, transparent 48%, rgba(255, 255, 255, .045) 50%, transparent 52%);
    background-size: 26px 26px, 180px 180px;
    mask-image: linear-gradient(90deg, #000, transparent 58%);
}

.osis-public-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -8%;
    bottom: -220px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(255, 255, 255, .018), 0 0 0 160px rgba(255, 255, 255, .014);
}

.hero-grid {
    grid-template-columns: minmax(0, .98fr) minmax(420px, 1.02fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 5rem);
}

.hero-copy {
    position: relative;
    z-index: 3;
    animation: osis-rise-in .72s both;
}

.hero-copy .osis-kicker,
.osis-auth-copy .osis-kicker {
    margin-bottom: 1.1rem;
    padding: .55rem .72rem;
    border: 1px solid rgba(137, 238, 227, .18);
    border-radius: 999px;
    color: #a8f4ed;
    background: rgba(255, 255, 255, .065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    font-size: .69rem;
    letter-spacing: .11em;
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    max-width: 680px;
    margin: .3rem 0 1.15rem;
    font-family: "Segoe UI Variable Display", "Segoe UI", Georgia, serif;
    font-size: clamp(3rem, 5.15vw, 5.15rem);
    font-weight: 650;
    line-height: .98;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.hero-copy > p {
    max-width: 610px;
    margin: 0;
    color: rgba(235, 248, 249, .75);
    font-size: clamp(.92rem, 1.2vw, 1.05rem);
    line-height: 1.75;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.05rem;
    color: rgba(255, 255, 255, .68);
    font-size: .72rem;
    font-weight: 650;
}

.hero-tagline > i {
    color: #77e7db;
}

.hero-actions {
    margin-top: 1.6rem;
}

.public-btn {
    min-height: 50px;
    padding: .83rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 15px;
    font-size: .74rem;
    font-weight: 750;
    transition: transform var(--osis-transition), box-shadow var(--osis-transition), background var(--osis-transition), border-color var(--osis-transition);
}

.public-btn.primary {
    color: #063a3f;
    background: linear-gradient(135deg, #9cf3ea, #64ddda);
    box-shadow: 0 16px 32px rgba(53, 216, 202, .2), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.public-btn.glass {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .085);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.public-btn:hover {
    transform: translateY(-3px);
}

.public-btn.primary:hover {
    box-shadow: 0 22px 42px rgba(53, 216, 202, .28), 0 0 0 5px rgba(156, 243, 234, .08);
}

.public-btn.glass:hover {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .13);
}

.hero-trust {
    gap: .75rem;
    margin-top: 1.65rem;
}

.hero-trust > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .35rem .58rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    color: rgba(255, 255, 255, .68);
    background: rgba(255, 255, 255, .045);
}

.hero-school-visual {
    position: relative;
    z-index: 2;
    min-height: 510px;
    animation: osis-rise-in .8s .08s both;
}

.hero-school-frame {
    position: absolute;
    inset: 20px 8px 20px 28px;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 38px 38px 110px 38px;
    background: #062f3e;
    box-shadow: var(--osis-deep-shadow), inset 0 1px 0 rgba(255, 255, 255, .2);
    transform: rotate(1.1deg);
    transition: transform .65s cubic-bezier(.2, .8, .2, 1), box-shadow .65s ease;
}

.hero-school-visual:hover .hero-school-frame {
    transform: rotate(0) translateY(-5px);
    box-shadow: 0 42px 95px rgba(2, 31, 43, .34), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.hero-school-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 31, 43, .04) 24%, rgba(3, 31, 43, .9) 100%), linear-gradient(120deg, rgba(8, 83, 91, .24), transparent 52%);
}

.hero-school-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
    filter: saturate(.93) contrast(1.03);
    transition: transform 1s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}

.hero-school-visual:hover img {
    transform: scale(1.035);
    filter: saturate(1.02) contrast(1.04);
}

.hero-school-frame figcaption {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 30px;
    left: 30px;
    display: grid;
    gap: .28rem;
    color: #fff;
}

.hero-school-frame figcaption > span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    width: max-content;
    padding: .4rem .58rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    color: #9af0e7;
    background: rgba(4, 38, 50, .5);
    font-size: .62rem;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.hero-school-frame figcaption strong {
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 750;
    letter-spacing: .025em;
}

.hero-school-frame figcaption small {
    color: rgba(255, 255, 255, .6);
    font-size: .65rem;
}

.hero-float-card,
.hero-photo-seal {
    position: absolute;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 18px 40px rgba(2, 31, 43, .28), inset 0 1px 0 rgba(255, 255, 255, .2);
    backdrop-filter: blur(15px);
}

.hero-float-card {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 136px;
    padding: .72rem .82rem;
    border-radius: 17px;
    color: #fff;
    background: rgba(5, 51, 64, .78);
    animation: osis-float 5.4s ease-in-out infinite;
}

.hero-float-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #063f48;
    background: #8cebe1;
}

.hero-float-card span {
    display: grid;
    font-size: .76rem;
    font-weight: 750;
}

.hero-float-card small {
    color: rgba(255, 255, 255, .58);
    font-size: .55rem;
    font-weight: 600;
}

.hero-float-card.is-idea {
    top: 4px;
    left: 0;
}

.hero-float-card.is-team {
    right: -16px;
    top: 34%;
    animation-delay: -2.3s;
}

.hero-float-card.is-team > i {
    color: #46308a;
    background: #ddd5ff;
}

.hero-photo-seal {
    right: 16px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 116px;
    height: 72px;
    padding: .7rem;
    border-radius: 22px;
    color: #fff;
    background: rgba(9, 133, 123, .82);
}

.hero-photo-seal > i {
    color: #9df2e9;
}

.hero-photo-seal span {
    display: grid;
    color: rgba(255, 255, 255, .6);
    font-size: .52rem;
    letter-spacing: .12em;
}

.hero-photo-seal strong {
    color: #fff;
    font-size: .85rem;
    letter-spacing: .04em;
}

/* Floating statistics */
.osis-public-stats {
    z-index: 6;
    margin-top: -52px;
    border: 0;
    background: transparent;
}

.stats-grid {
    gap: .85rem;
}

.stats-grid > div.stat-card {
    --stat-tone: #0f8f86;
    --stat-rgb: 20, 184, 166;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .85rem;
    min-height: 104px;
    padding: 1rem;
    border: 1px solid rgba(var(--stat-rgb), .18);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(var(--stat-rgb), .075));
    box-shadow: var(--osis-card-shadow), inset 0 1px 0 #fff;
    transition: transform var(--osis-transition), box-shadow var(--osis-transition), border-color var(--osis-transition);
}

.stats-grid > div.stat-card:last-child {
    border-right: 1px solid rgba(var(--stat-rgb), .18);
}

.stats-grid > div.stat-card.tone-blue { --stat-tone: #2563eb; --stat-rgb: 59, 130, 246; }
.stats-grid > div.stat-card.tone-amber { --stat-tone: #c05d09; --stat-rgb: 245, 158, 11; }
.stats-grid > div.stat-card.tone-violet { --stat-tone: #7c3aed; --stat-rgb: 139, 92, 246; }
.stats-grid > div.stat-card.tone-teal { --stat-tone: #0f766e; --stat-rgb: 20, 184, 166; }

.stats-grid > div.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--stat-rgb), .32);
    box-shadow: 0 28px 55px rgba(15, 55, 70, .15), 0 0 0 5px rgba(var(--stat-rgb), .055);
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    color: var(--stat-tone);
    background: rgba(var(--stat-rgb), .11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
    font-size: 1.15rem;
    transition: transform var(--osis-transition), color var(--osis-transition), background var(--osis-transition);
}

.stat-card:hover .stat-icon {
    color: #fff;
    background: var(--stat-tone);
    transform: rotate(-5deg) scale(1.04);
}

.stat-copy {
    display: grid;
    gap: .12rem;
    justify-items: start;
}

.stats-grid .stat-copy strong {
    color: var(--osis-ink);
    font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1;
}

.stats-grid .stat-copy small {
    color: var(--osis-muted);
    font-size: .68rem;
    font-weight: 650;
}

/* Public content system */
.public-section {
    position: relative;
    padding: clamp(4.5rem, 8vw, 7.2rem) 0;
}

.public-section:not(.tint):not(.dark) {
    background: linear-gradient(180deg, #f7fbfc, #fff);
}

.public-section.tint {
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(34, 184, 207, .1), transparent 25%),
        radial-gradient(circle at 92% 88%, rgba(139, 92, 246, .08), transparent 25%),
        #eef7f7;
}

.public-section.tint::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .4;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 118, 110, .12) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, #000, transparent 38%, transparent 62%, #000);
}

.public-section.dark {
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 14%, rgba(34, 184, 207, .19), transparent 28%),
        radial-gradient(circle at 10% 95%, rgba(139, 92, 246, .12), transparent 24%),
        linear-gradient(135deg, #031f2b, #063c4b 55%, #08736d);
}

.public-section.dark::after {
    content: "MYOSIS";
    position: absolute;
    z-index: -1;
    right: -1rem;
    bottom: -2.8rem;
    color: rgba(255, 255, 255, .028);
    font-size: clamp(7rem, 16vw, 16rem);
    font-weight: 800;
    letter-spacing: -.07em;
}

.public-section-head {
    margin-bottom: 2.4rem;
}

.public-section-head h2,
.approved-board h2,
.leadership h2 {
    color: var(--osis-ink);
    font-family: "Segoe UI Variable Display", "Segoe UI", Georgia, serif;
    font-size: clamp(2rem, 3.6vw, 3.35rem);
    font-weight: 630;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.public-section.dark .leadership h2 {
    color: #fff;
}

.public-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .62rem;
    border: 1px solid rgba(15, 143, 134, .16);
    border-radius: 999px;
    color: #0f766e;
    background: rgba(20, 184, 166, .075);
    font-size: .62rem;
    font-weight: 750;
    letter-spacing: .1em;
}

.dark .public-eyebrow,
.approved-board .public-eyebrow {
    border-color: rgba(142, 238, 227, .16);
    color: #91eee4;
    background: rgba(255, 255, 255, .07);
}

.public-section-head > a {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    min-height: 38px;
    padding: .5rem .7rem;
    border: 1px solid rgba(15, 143, 134, .16);
    border-radius: 11px;
    color: #0f766e;
    background: rgba(255, 255, 255, .74);
    font-size: .68rem;
    transition: transform var(--osis-transition), background var(--osis-transition), box-shadow var(--osis-transition);
}

.public-section-head > a:hover {
    transform: translateX(3px);
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 55, 70, .08);
}

.story-card {
    border-color: rgba(67, 126, 145, .14);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 55, 70, .075), inset 0 1px 0 #fff;
    transition: transform var(--osis-transition), box-shadow var(--osis-transition), border-color var(--osis-transition);
}

.story-card:hover {
    transform: translateY(-7px);
    border-color: rgba(34, 184, 207, .28);
    box-shadow: 0 28px 58px rgba(15, 55, 70, .14);
}

.story-cover {
    overflow: hidden;
}

.story-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(3, 31, 43, .42));
    transition: background var(--osis-transition);
}

.story-card:hover .story-cover::before {
    background: linear-gradient(180deg, transparent 35%, rgba(3, 31, 43, .55));
}

.story-body h3 {
    font-family: "Segoe UI Variable Display", "Segoe UI", Georgia, serif;
    font-weight: 650;
    letter-spacing: -.025em;
}

.public-empty {
    min-height: 250px;
    align-content: center;
    gap: .35rem;
    border: 1px solid rgba(34, 184, 207, .18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 20%, rgba(34, 184, 207, .1), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(239, 249, 250, .7));
    box-shadow: inset 0 1px 0 #fff;
}

.public-empty.wide {
    min-height: 315px;
}

.public-empty-mark {
    --empty-tone: #2563eb;
    --empty-rgb: 59, 130, 246;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: .35rem;
    border: 1px solid rgba(var(--empty-rgb), .2);
    border-radius: 20px;
    color: var(--empty-tone);
    background: rgba(var(--empty-rgb), .1);
    box-shadow: 0 14px 30px rgba(var(--empty-rgb), .1), inset 0 1px 0 #fff;
    font-size: 1.42rem;
}

.public-empty-mark.tone-amber { --empty-tone: #c05d09; --empty-rgb: 245, 158, 11; }
.public-empty-mark.tone-violet { --empty-tone: #7c3aed; --empty-rgb: 139, 92, 246; }
.public-empty-mark.tone-teal { --empty-tone: #0f766e; --empty-rgb: 20, 184, 166; }

.public-empty .public-empty-mark > i {
    color: inherit;
    font-size: inherit;
}

.public-empty-label {
    color: #0f766e;
    font-size: .6rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.public-empty h3 {
    color: var(--osis-ink);
    font-family: "Segoe UI Variable Display", "Segoe UI", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -.02em;
}

.public-empty p {
    color: var(--osis-muted);
    font-size: .72rem;
}

.public-empty-hints {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
    margin-top: .55rem;
}

.public-empty-hints > span {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    min-height: 30px;
    padding: .36rem .55rem;
    border: 1px solid rgba(67, 126, 145, .13);
    border-radius: 9px;
    color: #617c8b;
    background: rgba(255, 255, 255, .78);
    font-size: .6rem;
}

.section-cards {
    gap: 1rem;
}

.section-card {
    --section-tone: #2563eb;
    --section-rgb: 59, 130, 246;
    min-height: 255px;
    border-color: rgba(var(--section-rgb), .18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(var(--section-rgb), .12), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(var(--section-rgb), .045));
    box-shadow: 0 15px 36px rgba(15, 55, 70, .055), inset 0 1px 0 #fff;
    transition: transform var(--osis-transition), box-shadow var(--osis-transition), border-color var(--osis-transition), background var(--osis-transition);
}

.section-card.tone-1 { --section-tone: #2563eb; --section-rgb: 59, 130, 246; }
.section-card.tone-2 { --section-tone: #7c3aed; --section-rgb: 139, 92, 246; }
.section-card.tone-3 { --section-tone: #0f766e; --section-rgb: 20, 184, 166; }
.section-card.tone-4 { --section-tone: #c05d09; --section-rgb: 245, 158, 11; }
.section-card.tone-5 { --section-tone: #be123c; --section-rgb: 244, 63, 94; }
.section-card.tone-6 { --section-tone: #0e7490; --section-rgb: 34, 184, 207; }
.section-card.tone-7 { --section-tone: #15803d; --section-rgb: 34, 197, 94; }
.section-card.tone-8 { --section-tone: #b45309; --section-rgb: 251, 146, 60; }

.section-card:hover {
    transform: translateY(-8px) scale(1.008);
    border-color: rgba(var(--section-rgb), .34);
    box-shadow: 0 28px 55px rgba(15, 55, 70, .13), 0 0 0 5px rgba(var(--section-rgb), .045);
}

.section-card > span.section-number {
    color: rgba(var(--section-rgb), .68);
    font-family: "Segoe UI", sans-serif;
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .12em;
}

.section-card > i {
    color: var(--section-tone);
    background: rgba(var(--section-rgb), .11);
    box-shadow: 0 12px 26px rgba(var(--section-rgb), .1), inset 0 1px 0 #fff;
    transition: transform var(--osis-transition), color var(--osis-transition), background var(--osis-transition);
}

.section-card:hover > i {
    color: #fff;
    background: var(--section-tone);
    transform: rotate(-7deg) scale(1.05);
}

.section-card h3 {
    color: var(--osis-ink);
    font-family: "Segoe UI Variable Display", "Segoe UI", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -.02em;
}

.section-card small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.section-card small > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 9px;
    color: var(--section-tone);
    background: rgba(var(--section-rgb), .08);
    transition: transform var(--osis-transition);
}

.section-card:hover small > i {
    transform: translate(2px, -2px);
}

.agenda-list article {
    border-color: rgba(67, 126, 145, .15);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 55, 70, .055), inset 0 1px 0 #fff;
    transition: transform var(--osis-transition), box-shadow var(--osis-transition), border-color var(--osis-transition);
}

.agenda-list article:hover {
    transform: translateX(5px);
    border-color: rgba(34, 184, 207, .28);
    box-shadow: 0 20px 40px rgba(15, 55, 70, .1);
}

.agenda-list time {
    background: linear-gradient(145deg, #0f766e, #22b8cf);
    box-shadow: 0 12px 24px rgba(15, 118, 110, .18), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.agenda-list h3 {
    font-family: "Segoe UI Variable Display", "Segoe UI", Georgia, serif;
    font-weight: 650;
}

.compact-empty {
    min-height: 230px;
}

.approved-board {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 0, rgba(139, 92, 246, .24), transparent 32%),
        radial-gradient(circle at 0 100%, rgba(34, 184, 207, .2), transparent 30%),
        linear-gradient(145deg, #062f3e, #08736d);
    box-shadow: 0 30px 75px rgba(5, 52, 65, .2), inset 0 1px 0 rgba(255, 255, 255, .13);
}

.approved-board::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(255, 255, 255, .025);
}

.approved-board h2 {
    position: relative;
    z-index: 1;
    color: #fff;
}

.approved-list {
    position: relative;
    z-index: 1;
}

.approved-list > div {
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .075);
    transition: transform var(--osis-transition), background var(--osis-transition), border-color var(--osis-transition);
}

.approved-list > div:hover {
    transform: translateX(4px);
    border-color: rgba(137, 238, 227, .27);
    background: rgba(255, 255, 255, .11);
}

.leadership {
    gap: clamp(2rem, 6vw, 5rem);
}

.leader-grid {
    gap: .85rem;
}

.leader-grid article {
    --leader-rgb: 20, 184, 166;
    border-color: rgba(var(--leader-rgb), .21);
    background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(var(--leader-rgb), .08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform var(--osis-transition), border-color var(--osis-transition), background var(--osis-transition);
}

.leader-grid article:nth-child(2n) { --leader-rgb: 139, 92, 246; }
.leader-grid article:nth-child(3n) { --leader-rgb: 34, 184, 207; }
.leader-grid article:nth-child(4n) { --leader-rgb: 245, 158, 11; }

.leader-grid article:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--leader-rgb), .36);
    background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(var(--leader-rgb), .13));
}

.leader-grid article > span {
    color: #063d43;
    background: linear-gradient(145deg, #a2f3ea, #6ddbd9);
    box-shadow: 0 10px 20px rgba(3, 31, 43, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* Premium inner public pages */
.public-page-hero {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    background:
        linear-gradient(100deg, rgba(3, 31, 43, .96) 0%, rgba(5, 60, 72, .9) 52%, rgba(8, 117, 109, .72) 100%),
        url("../../images/112583.jpg") center 52% / cover no-repeat;
}

.public-page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .13) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.public-page-hero h1 {
    font-family: "Segoe UI Variable Display", "Segoe UI", Georgia, serif;
    font-weight: 650;
    letter-spacing: -.05em;
}

.filter-pills a,
.mini-stories > a,
.article-layout aside {
    box-shadow: 0 12px 30px rgba(15, 55, 70, .055), inset 0 1px 0 #fff;
    transition: transform var(--osis-transition), box-shadow var(--osis-transition), border-color var(--osis-transition);
}

.filter-pills a:hover,
.mini-stories > a:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 184, 207, .3);
    box-shadow: 0 20px 40px rgba(15, 55, 70, .1);
}

.article-head h1,
.mini-stories strong {
    font-family: "Segoe UI Variable Display", "Segoe UI", Georgia, serif;
    font-weight: 650;
}

/* Premium footer */
.osis-public-footer {
    position: relative;
    overflow: hidden;
    padding: 4.2rem 0 1.35rem;
    background:
        radial-gradient(circle at 85% 0, rgba(34, 184, 207, .15), transparent 26%),
        linear-gradient(145deg, #021a25, #052f3d 55%, #064c4e);
}

.osis-public-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(137, 238, 227, .55), transparent);
}

.footer-grid {
    grid-template-columns: 1.35fr .65fr .8fr;
    gap: clamp(2rem, 6vw, 5rem);
}

.footer-grid p {
    max-width: 430px;
}

.footer-grid a,
.footer-grid span,
.footer-grid p {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    transition: color var(--osis-transition), transform var(--osis-transition);
}

.footer-grid a:hover {
    color: #9cf1e8;
    transform: translateX(3px);
}

.footer-grid i {
    color: #7ce4dc;
}

.footer-trust {
    width: max-content;
    padding: .46rem .64rem;
    border: 1px solid rgba(137, 238, 227, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
}

.footer-bottom {
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.2rem;
}

/* Dedicated MyOSIS login */
.osis-auth-body {
    min-height: 100svh;
    background: #edf6f7;
}

.osis-auth-shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(460px, .92fr);
    min-height: 100svh;
}

.osis-auth-story {
    isolation: isolate;
    min-height: 100svh;
    padding: clamp(2rem, 4.5vw, 4.7rem);
    background-image:
        linear-gradient(105deg, rgba(2, 28, 40, .97) 0%, rgba(4, 52, 64, .9) 52%, rgba(8, 116, 108, .68) 100%),
        var(--osis-school-photo);
    background-position: center;
    background-size: cover;
}

.osis-auth-story::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .5;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .14) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.osis-auth-story::after {
    right: -210px;
    bottom: -250px;
    width: 580px;
    height: 580px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 80px rgba(255, 255, 255, .018), 0 0 0 160px rgba(255, 255, 255, .012);
}

.osis-auth-story-glow {
    position: absolute;
    z-index: -1;
    top: -160px;
    left: -130px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: rgba(34, 184, 207, .22);
    filter: blur(80px);
}

.osis-auth-story > .osis-brand {
    position: relative;
    z-index: 3;
    width: max-content;
    padding: .5rem .7rem .5rem .5rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 19px;
    background: rgba(3, 31, 43, .36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    backdrop-filter: blur(14px);
}

.osis-auth-copy {
    max-width: 760px;
    margin: auto 0;
    animation: osis-rise-in .72s both;
}

.osis-auth-copy h1 {
    max-width: 760px;
    font-family: "Segoe UI Variable Display", "Segoe UI", Georgia, serif;
    font-size: clamp(2.7rem, 5.3vw, 5.35rem);
    font-weight: 650;
    line-height: .99;
    letter-spacing: -.058em;
}

.osis-auth-copy h1 em {
    color: #9af0e7;
    font-style: normal;
    font-weight: inherit;
}

.osis-auth-copy > p {
    max-width: 650px;
    margin: 1.35rem 0 1.25rem;
    color: rgba(239, 249, 250, .73);
    font-size: .93rem;
    line-height: 1.72;
}

.osis-auth-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .62rem;
    margin: 1.15rem 0 1rem;
}

.osis-auth-highlights > div {
    --highlight-tone: #22b8cf;
    --highlight-rgb: 34, 184, 207;
    display: flex;
    align-items: center;
    gap: .62rem;
    min-height: 74px;
    padding: .7rem;
    border: 1px solid rgba(var(--highlight-rgb), .19);
    border-radius: 16px;
    background: rgba(3, 31, 43, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    transition: transform var(--osis-transition), background var(--osis-transition), border-color var(--osis-transition);
}

.osis-auth-highlights > div.tone-violet { --highlight-tone: #c4b5fd; --highlight-rgb: 139, 92, 246; }
.osis-auth-highlights > div.tone-amber { --highlight-tone: #fcd084; --highlight-rgb: 245, 158, 11; }

.osis-auth-highlights > div:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--highlight-rgb), .34);
    background: rgba(3, 31, 43, .55);
}

.osis-auth-highlights > div > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
    color: var(--highlight-tone);
    background: rgba(var(--highlight-rgb), .13);
}

.osis-auth-highlights span {
    display: grid;
    min-width: 0;
}

.osis-auth-highlights strong {
    color: #fff;
    font-size: .66rem;
    font-weight: 750;
}

.osis-auth-highlights small {
    margin-top: .12rem;
    color: rgba(255, 255, 255, .49);
    font-size: .53rem;
    line-height: 1.35;
}

.osis-auth-flow {
    gap: .42rem;
}

.osis-auth-flow span {
    padding: .48rem .65rem;
    border-color: rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .065);
    font-size: .58rem;
    font-weight: 650;
}

.osis-auth-flow i {
    color: #70ddd7;
    font-size: .6rem;
}

.osis-auth-trust {
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: .62rem .72rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(3, 31, 43, .4);
    backdrop-filter: blur(12px);
}

.osis-auth-trust > i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.osis-auth-trust span {
    display: grid;
}

.osis-auth-trust strong {
    color: rgba(255, 255, 255, .9);
    font-size: .67rem;
    font-weight: 750;
}

.osis-auth-trust small {
    max-width: 470px;
    margin-top: .13rem;
    line-height: 1.4;
}

.osis-auth-card-wrap {
    position: relative;
    isolation: isolate;
    padding: clamp(1.3rem, 4vw, 4rem);
    background:
        radial-gradient(circle at 88% 10%, rgba(59, 130, 246, .13), transparent 24%),
        radial-gradient(circle at 4% 88%, rgba(20, 184, 166, .15), transparent 27%),
        linear-gradient(145deg, #eef7f8, #f9fcfd 58%, #edf6f7);
}

.osis-auth-card-wrap::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .42;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 118, 110, .14) 1px, transparent 0);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at 90% 8%, #000, transparent 36%);
}

.osis-auth-card {
    width: min(100%, 560px);
    padding: clamp(1.4rem, 3vw, 2.45rem);
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 30px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 30px 80px rgba(15, 55, 70, .15), inset 0 1px 0 #fff;
    backdrop-filter: blur(20px);
    animation: osis-card-in .7s .08s both;
}

.osis-auth-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: 1.35rem;
}

.osis-back-link {
    margin: 0;
    min-height: 34px;
    padding: .4rem .55rem;
    border: 1px solid rgba(67, 126, 145, .14);
    border-radius: 10px;
    background: rgba(244, 250, 251, .85);
    transition: transform var(--osis-transition), color var(--osis-transition), background var(--osis-transition);
}

.osis-back-link:hover {
    color: #0f766e;
    background: #e9f8f6;
    transform: translateX(-3px);
}

.osis-auth-secure {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 32px;
    padding: .38rem .55rem;
    border: 1px solid rgba(20, 184, 166, .16);
    border-radius: 10px;
    color: #0f766e;
    background: rgba(20, 184, 166, .075);
    font-size: .6rem;
    font-weight: 700;
}

.osis-auth-overline {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    margin-bottom: .7rem;
    color: #0f766e;
    font-size: .62rem;
    font-weight: 750;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.osis-auth-heading {
    margin-bottom: 1.1rem;
}

.osis-auth-heading h2 {
    color: var(--osis-ink);
    font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.04em;
}

.osis-auth-heading p {
    color: var(--osis-muted);
    font-size: .74rem;
    line-height: 1.5;
}

.osis-auth-mark {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 18px;
    background: linear-gradient(135deg, #0f766e, #22b8cf);
    box-shadow: 0 15px 30px rgba(15, 118, 110, .21), inset 0 1px 0 rgba(255, 255, 255, .26);
    font-size: 1.15rem;
}

.osis-auth-alert {
    align-items: flex-start;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.osis-auth-alert > i {
    margin-top: .1rem;
}

.osis-login-tabs {
    gap: .55rem;
    margin: 1rem 0 1.2rem;
    padding: .4rem;
    border: 1px solid rgba(67, 126, 145, .09);
    border-radius: 18px;
    background: linear-gradient(145deg, #eef6f7, #f5f9fb);
}

.osis-login-tabs button {
    position: relative;
    min-height: 70px;
    padding: .7rem .72rem;
    border-radius: 14px;
    transition: color var(--osis-transition), background var(--osis-transition), border-color var(--osis-transition), transform var(--osis-transition), box-shadow var(--osis-transition);
}

.osis-login-tabs button:hover {
    transform: translateY(-2px);
    color: var(--osis-ink);
}

.osis-login-tabs button > i:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    color: #2563eb;
    background: rgba(59, 130, 246, .1);
}

.osis-login-tabs button[data-account="siswa"] > i:first-child {
    color: #7c3aed;
    background: rgba(139, 92, 246, .1);
}

.osis-login-tabs button.active {
    border-color: rgba(59, 130, 246, .18);
    color: #1d4ed8;
    background: linear-gradient(145deg, #fff, rgba(239, 246, 255, .92));
    box-shadow: 0 12px 26px rgba(37, 99, 235, .09), inset 0 1px 0 #fff;
}

.osis-login-tabs button[data-account="siswa"].active {
    border-color: rgba(139, 92, 246, .18);
    color: #6d28d9;
    background: linear-gradient(145deg, #fff, rgba(245, 243, 255, .92));
    box-shadow: 0 12px 26px rgba(124, 58, 237, .09), inset 0 1px 0 #fff;
}

.osis-login-tabs button.active > i:first-child {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 9px 20px rgba(37, 99, 235, .18);
}

.osis-login-tabs button[data-account="siswa"].active > i:first-child {
    background: #7c3aed;
    box-shadow: 0 9px 20px rgba(124, 58, 237, .18);
}

.osis-login-tabs .tab-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #22a66f;
    font-size: .72rem;
    opacity: 0;
    transform: scale(.7);
    transition: opacity var(--osis-transition), transform var(--osis-transition);
}

.osis-login-tabs button.active .tab-check {
    opacity: 1;
    transform: scale(1);
}

.osis-login-form {
    gap: .9rem;
}

.osis-login-form label > span {
    margin-bottom: .42rem;
    color: #294b5d;
    font-size: .68rem;
    font-weight: 700;
}

.osis-input-wrap {
    min-height: 52px;
    padding: 0 .85rem;
    border-color: rgba(67, 126, 145, .18);
    border-radius: 14px;
    background: rgba(248, 252, 253, .9);
    box-shadow: inset 0 1px 0 #fff;
    transition: border-color var(--osis-transition), box-shadow var(--osis-transition), background var(--osis-transition), transform var(--osis-transition);
}

.osis-input-wrap:focus-within {
    border-color: rgba(34, 184, 207, .5);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(34, 184, 207, .09), 0 12px 25px rgba(15, 55, 70, .06);
    transform: translateY(-1px);
}

.osis-input-wrap > i {
    color: #0f8f86;
}

.osis-input-wrap input {
    font-size: .78rem;
}

.osis-input-wrap button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    transition: color var(--osis-transition), background var(--osis-transition);
}

.osis-input-wrap button:hover {
    color: #0f766e;
    background: rgba(20, 184, 166, .08);
}

.input-state {
    display: inline-flex;
    color: #22a66f;
    font-size: .72rem;
    opacity: 0;
    transition: opacity var(--osis-transition);
}

.osis-input-wrap:has(input:valid:not(:placeholder-shown)) .input-state {
    opacity: 1;
}

.osis-login-submit {
    position: relative;
    overflow: hidden;
    min-height: 52px;
    margin-top: .2rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 15px;
    background: linear-gradient(120deg, #0f766e, #0f8f86 50%, #22b8cf);
    box-shadow: 0 16px 32px rgba(15, 118, 110, .22), inset 0 1px 0 rgba(255, 255, 255, .25);
    font-size: .76rem;
    font-weight: 750;
    transition: transform var(--osis-transition), box-shadow var(--osis-transition), filter var(--osis-transition);
}

.osis-login-submit::before {
    content: "";
    position: absolute;
    top: -80%;
    bottom: -80%;
    left: -35%;
    width: 26%;
    background: rgba(255, 255, 255, .2);
    transform: rotate(18deg) translateX(-240%);
    transition: transform .7s ease;
}

.osis-login-submit span,
.osis-login-submit > i {
    position: relative;
    z-index: 1;
}

.osis-login-submit:hover {
    transform: translateY(-3px);
    filter: saturate(1.08);
    box-shadow: 0 22px 42px rgba(15, 118, 110, .29), 0 0 0 5px rgba(34, 184, 207, .07);
}

.osis-login-submit:hover::before {
    transform: rotate(18deg) translateX(620%);
}

.osis-login-submit:disabled {
    cursor: wait;
    opacity: .76;
}

.osis-login-submit.is-loading .bi-arrow-repeat {
    display: inline-block;
    animation: osis-spin .8s linear infinite;
}

.osis-auth-security {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin-top: 1rem;
}

.osis-auth-security > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-height: 38px;
    padding: .4rem;
    border: 1px solid rgba(67, 126, 145, .11);
    border-radius: 11px;
    color: #668090;
    background: rgba(244, 250, 251, .8);
    font-size: .54rem;
    line-height: 1.3;
    text-align: center;
}

.osis-auth-security > span:nth-child(1) i { color: #2563eb; }
.osis-auth-security > span:nth-child(2) i { color: #7c3aed; }
.osis-auth-security > span:nth-child(3) i { color: #0f766e; }

.osis-login-help {
    display: flex;
    align-items: flex-start;
    gap: .52rem;
    margin-top: .9rem;
    padding: .8rem;
    border: 1px solid rgba(34, 184, 207, .12);
    border-radius: 13px;
    color: #668090;
    background: rgba(239, 249, 250, .72);
    line-height: 1.58;
}

.osis-login-help > i {
    margin: .1rem 0 0;
    color: #0f8f86;
}

.osis-auth-foot {
    display: inline-flex;
    align-items: center;
    gap: .36rem;
    color: #718996;
}

.osis-auth-foot > i {
    color: #0f8f86;
}

@keyframes osis-rise-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes osis-card-in {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes osis-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@keyframes osis-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1120px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
        gap: 2rem;
    }

    .hero-school-visual {
        min-height: 480px;
    }

    .public-nav > a:not(.nav-login) {
        padding-inline: .48rem;
    }
}

@media (max-width: 980px) {
    .osis-public-hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-school-visual {
        display: block;
        width: min(100%, 760px);
        min-height: 470px;
        margin-inline: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .osis-auth-shell {
        grid-template-columns: 1fr;
    }

    .osis-auth-story {
        min-height: 680px;
    }

    .osis-auth-card-wrap {
        min-height: 760px;
        padding: 3rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

/* MyOSIS dual authentication: Face pegawai + token/QR pengurus */
.osis-auth-card.is-dual-auth,
.osis-auth-card.is-admin-mode {
    width: min(100%, 560px);
}

.osis-access-lanes {
    align-items: stretch;
}

.osis-login-tabs .osis-access-lane {
    position: relative;
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    min-height: 84px;
    padding: .72rem;
    border: 1px solid transparent;
    border-radius: 15px;
    color: #587386;
    background: transparent;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.osis-login-tabs .osis-access-lane:hover {
    transform: translateY(-2px);
}

.osis-login-tabs .osis-access-lane > i:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    font-size: 1.02rem;
}

.osis-access-lane.employee > i:first-child {
    color: #2563eb;
    background: linear-gradient(145deg, #e6f0ff, #f0f7ff);
    box-shadow: inset 0 1px 0 #fff;
}

.osis-access-lane.student > i:first-child {
    color: #fff !important;
    background: linear-gradient(135deg, #6d28d9, #9461ed) !important;
    box-shadow: 0 10px 22px rgba(109, 40, 217, .2), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
}

.osis-login-tabs .osis-access-lane > span {
    display: grid;
    min-width: 0;
    font-size: .73rem;
    font-weight: 800;
}

.osis-access-lane > span strong {
    color: inherit;
}

.osis-access-lane > span small {
    overflow: hidden;
    margin-top: .12rem;
    color: #78909e;
    font-size: .53rem;
    font-weight: 560;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.osis-access-lane > span em {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    width: max-content;
    margin-top: .38rem;
    padding: .24rem .42rem;
    border-radius: 999px;
    font-size: .49rem;
    font-style: normal;
    font-weight: 800;
}

.osis-access-lane.employee > span em {
    color: #1d4ed8;
    background: #e7f0ff;
}

.osis-access-lane.student > span em {
    color: #6d28d9;
    background: #eee8ff;
}

.osis-access-lane.employee {
    border-color: rgba(37, 99, 235, .14);
    background: linear-gradient(145deg, #fff, rgba(239, 246, 255, .88));
    box-shadow: 0 10px 22px rgba(37, 99, 235, .06), inset 0 1px 0 #fff;
}

.osis-access-lane.employee:hover,
.osis-access-lane.employee.has-error-focus {
    border-color: rgba(37, 99, 235, .3);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .11), inset 0 1px 0 #fff;
}

.osis-access-lane.student.active {
    border-color: rgba(139, 92, 246, .22);
    color: #6d28d9;
    background: linear-gradient(145deg, #fff, rgba(245, 243, 255, .94));
    box-shadow: 0 14px 28px rgba(109, 40, 217, .1), inset 0 1px 0 #fff;
}

.osis-access-lane .lane-arrow {
    margin-left: auto;
    color: #2563eb;
    font-size: .8rem;
}

.osis-access-lane.is-loading .lane-arrow,
.osis-login-submit.is-loading i {
    animation: osisAuthSpin .75s linear infinite;
}

@keyframes osisAuthSpin {
    to { transform: rotate(360deg); }
}

.osis-token-login-form {
    padding: .82rem;
    border: 1px solid rgba(139, 92, 246, .13);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(248, 246, 255, .84));
    box-shadow: inset 0 1px 0 #fff, 0 14px 30px rgba(47, 72, 90, .05);
}

.osis-token-login-form[hidden] {
    display: none !important;
}

.osis-token-input-wrap > i {
    color: #6d28d9;
}

.osis-token-input-wrap input {
    color: #4c2f99;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.osis-token-actions {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: .58rem;
}

.osis-scan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 48px;
    padding: .7rem .75rem;
    border: 1px solid rgba(109, 40, 217, .18);
    border-radius: 14px;
    color: #6541c6;
    background: linear-gradient(145deg, #f1edff, #fbfaff);
    box-shadow: inset 0 1px 0 #fff;
    font-size: .63rem;
    font-weight: 820;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.osis-scan-button:hover {
    transform: translateY(-1px);
    border-color: rgba(109, 40, 217, .34);
    box-shadow: 0 11px 22px rgba(109, 40, 217, .1), inset 0 1px 0 #fff;
}

.osis-token-actions .osis-login-submit {
    margin: 0;
}

.osis-token-caption {
    display: flex;
    gap: .4rem;
    margin: 0;
    color: #718898;
    font-size: .56rem;
    line-height: 1.5;
}

.osis-token-caption i {
    color: #11a47f;
}

.osis-admin-mode-note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: .55rem 0 1rem;
    padding: .72rem .82rem;
    border: 1px solid rgba(37, 99, 235, .13);
    border-radius: 14px;
    color: #587386;
    background: linear-gradient(145deg, #f0f7ff, #f7fbff);
    font-size: .62rem;
    line-height: 1.55;
}

.osis-admin-mode-note i {
    color: #2563eb;
}

.osis-auth-switch {
    display: flex;
    justify-content: center;
    margin-top: .48rem;
}

.osis-auth-switch a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #78909e;
    font-size: .54rem;
    font-weight: 700;
    text-decoration: none;
}

.osis-auth-switch a:hover {
    color: #0f766e;
}

.osis-scanner-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgba(4, 25, 35, .76);
    backdrop-filter: blur(14px);
}

.osis-scanner-overlay.is-open {
    display: grid;
}

.osis-scanner-card {
    width: min(460px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 36px 90px rgba(0, 20, 30, .38);
}

.osis-scanner-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    padding: 1.15rem 1.15rem .85rem;
}

.osis-scanner-head h3 {
    margin: 0;
    color: #17384c;
    font-size: .92rem;
}

.osis-scanner-head h3 i {
    color: #6d28d9;
}

.osis-scanner-head p {
    margin: .3rem 0 0;
    color: #748b9b;
    font-size: .65rem;
    line-height: 1.45;
}

.osis-scanner-head button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 0;
    border-radius: 12px;
    color: #536e80;
    background: #eef4f6;
    cursor: pointer;
}

.osis-scanner-viewport {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin: 0 1.15rem;
    border-radius: 21px;
    background: #071c26;
}

.osis-scanner-viewport video,
.osis-scanner-viewport #osisTokenScannerFallback,
.osis-scanner-viewport #osisTokenScannerFallback video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.osis-scanner-viewport #osisTokenScannerFallback {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.osis-scanner-frame {
    position: absolute;
    inset: 17%;
    pointer-events: none;
    border: 3px solid #55e2d6;
    border-radius: 24px;
    box-shadow: 0 0 0 999px rgba(3, 20, 29, .38), 0 0 26px rgba(85, 226, 214, .48);
}

.osis-scanner-line {
    position: absolute;
    top: 23%;
    right: 20%;
    left: 20%;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #75fff4, transparent);
    box-shadow: 0 0 12px #75fff4;
    animation: osisScannerMove 2.2s ease-in-out infinite;
}

@keyframes osisScannerMove {
    0%, 100% { top: 23%; }
    50% { top: 75%; }
}

.osis-scanner-status {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: .8rem 1.15rem 1.15rem;
    padding: .7rem .8rem;
    border-radius: 14px;
    color: #537083;
    background: #edf7f7;
    font-size: .64rem;
    line-height: 1.45;
}

.osis-scanner-status.is-error {
    color: #b23d59;
    background: #fff0f4;
}

@media (max-width: 980px) {
    .osis-auth-body {
        height: auto;
        min-height: 100svh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .osis-auth-shell {
        grid-template-rows: auto auto;
        height: auto;
        min-height: 100svh;
    }

    .osis-auth-card-wrap {
        height: auto;
        min-height: 0;
        padding-bottom: 2.2rem;
        overflow: visible;
    }

    .osis-auth-card {
        max-height: none;
    }
}

/* Center the complete story composition with equal vertical breathing room. */
@media (min-width: 981px) {
    .osis-auth-story {
        display: grid;
        grid-template-rows: auto auto auto;
        align-content: center;
        row-gap: clamp(1.15rem, 2.5vh, 1.8rem);
        padding-block: clamp(2rem, 5vh, 4rem);
    }

    .osis-auth-copy,
    .osis-auth-trust {
        margin-block: 0;
    }
}

/* Embedded Face Login khusus MyOSIS. */
.osis-access-lane.employee.active {
    border-color: rgba(37, 99, 235, .28);
    color: #1d4ed8;
    background: linear-gradient(145deg, #fff, rgba(235, 244, 255, .96));
    box-shadow: 0 14px 30px rgba(37, 99, 235, .12), inset 0 1px 0 #fff;
}

.osis-access-lane.employee.active > i:first-child {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #38a4e8);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .2), inset 0 1px 0 rgba(255, 255, 255, .32);
}

.osis-face-login-panel {
    display: grid;
    grid-template-columns: minmax(190px, .92fr) minmax(0, 1.08fr);
    gap: .75rem;
    padding: .82rem;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 19px;
    background:
        radial-gradient(circle at 8% 12%, rgba(56, 164, 232, .12), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(239, 247, 255, .9));
    box-shadow: 0 16px 34px rgba(37, 99, 235, .07), inset 0 1px 0 #fff;
}

.osis-face-login-panel[hidden] {
    display: none !important;
}

.osis-face-camera {
    position: relative;
    overflow: hidden;
    min-height: 174px;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(92, 155, 187, .2);
    border-radius: 17px;
    background:
        radial-gradient(circle at center, rgba(47, 155, 190, .17), transparent 55%),
        linear-gradient(145deg, #0b2d3d, #071b29);
    box-shadow: inset 0 0 32px rgba(0, 0, 0, .2);
}

.osis-face-camera video,
.osis-face-camera canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.osis-face-camera canvas {
    z-index: 2;
}

.osis-face-guide {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.osis-face-guide span {
    width: 46%;
    height: 68%;
    border: 1.5px solid rgba(108, 229, 221, .78);
    border-radius: 48% 48% 42% 42%;
    box-shadow: 0 0 20px rgba(83, 225, 214, .23), inset 0 0 18px rgba(83, 225, 214, .06);
}

.osis-face-idle {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #eafcff;
    background: linear-gradient(145deg, rgba(5, 33, 47, .92), rgba(8, 55, 70, .84));
    text-align: center;
    transition: opacity .25s ease, visibility .25s ease;
}

.osis-face-idle.is-hidden {
    visibility: hidden;
    opacity: 0;
}

.osis-face-idle > i {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    margin-bottom: .55rem;
    border: 1px solid rgba(108, 229, 221, .38);
    border-radius: 15px;
    color: #75f1e7;
    background: rgba(104, 229, 221, .1);
    box-shadow: 0 0 26px rgba(104, 229, 221, .13);
    font-size: 1.05rem;
}

.osis-face-idle.is-loading > i {
    animation: osisFacePulse 1.25s ease-in-out infinite;
}

@keyframes osisFacePulse {
    50% { transform: scale(1.08); box-shadow: 0 0 35px rgba(104, 229, 221, .28); }
}

.osis-face-idle strong {
    font-size: .7rem;
}

.osis-face-idle small {
    max-width: 165px;
    margin-top: .3rem;
    color: rgba(218, 245, 250, .72);
    font-size: .52rem;
    line-height: 1.45;
}

.osis-face-console {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: .25rem .2rem;
}

.osis-face-status {
    display: flex;
    align-items: flex-start;
    gap: .58rem;
    min-height: 82px;
    padding: .72rem;
    border: 1px solid rgba(59, 130, 246, .13);
    border-radius: 15px;
    color: #42647a;
    background: rgba(247, 251, 255, .9);
    box-shadow: inset 0 1px 0 #fff;
}

.osis-face-status > i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    color: #2563eb;
    background: #e5efff;
}

.osis-face-status span {
    display: grid;
    min-width: 0;
}

.osis-face-status strong {
    color: #173c56;
    font-size: .65rem;
    line-height: 1.35;
}

.osis-face-status small {
    margin-top: .22rem;
    color: #748c9c;
    font-size: .53rem;
    line-height: 1.45;
}

.osis-face-status.is-success {
    border-color: rgba(16, 185, 129, .2);
    background: #effbf7;
}

.osis-face-status.is-success > i {
    color: #07866c;
    background: #d9f7ed;
}

.osis-face-status.is-error {
    border-color: rgba(239, 90, 121, .2);
    background: #fff3f6;
}

.osis-face-status.is-error > i {
    color: #d63f61;
    background: #ffe1e8;
}

.osis-face-progress {
    height: 8px;
    overflow: hidden;
    margin: .65rem .12rem;
    border: 1px solid rgba(78, 128, 153, .12);
    border-radius: 999px;
    background: #e5eff3;
    box-shadow: inset 0 1px 3px rgba(23, 60, 80, .08);
}

.osis-face-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: repeating-linear-gradient(120deg, #0d9488 0 11px, #31c7c0 11px 20px);
    box-shadow: 0 0 14px rgba(13, 148, 136, .32);
    transition: width .3s ease;
    animation: osisFaceProgress 1.1s linear infinite;
}

@keyframes osisFaceProgress {
    to { background-position: 31px 0; }
}

.osis-face-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #1768d4, #28a9c5);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
    font-size: .6rem;
    font-weight: 800;
    cursor: pointer;
}

.osis-face-retry[hidden] {
    display: none !important;
}

@media (max-width: 560px) {
    .osis-face-login-panel {
        grid-template-columns: 1fr;
    }

    .osis-face-camera {
        min-height: 190px;
    }

    .osis-face-status {
        min-height: 68px;
    }
}

@media (max-width: 560px) {
    .osis-auth-card.is-dual-auth,
    .osis-auth-card.is-admin-mode {
        padding: .9rem;
    }

    .osis-login-tabs .osis-access-lane {
        min-height: 72px;
        padding: .58rem;
    }

    .osis-access-lane > span small {
        display: none;
    }

    .osis-token-actions {
        grid-template-columns: 1fr;
    }

    .osis-token-login-form {
        padding: .7rem;
    }
}

@media (max-width: 900px) {
    .public-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .public-nav {
        position: absolute;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: .45rem;
        padding: .8rem;
        border: 1px solid rgba(137, 238, 227, .15);
        border-radius: 20px;
        background:
            radial-gradient(circle at 88% 0, rgba(34, 184, 207, .16), transparent 28%),
            linear-gradient(145deg, rgba(3, 31, 43, .98), rgba(6, 74, 80, .98));
        box-shadow: 0 24px 60px rgba(2, 31, 43, .34), inset 0 1px 0 rgba(255, 255, 255, .07);
        backdrop-filter: blur(20px);
    }

    .public-nav.open {
        display: flex;
    }

    .public-nav > a:not(.nav-login) {
        width: 100%;
        padding: .45rem;
    }

    .public-nav .nav-login {
        justify-content: center;
        width: 100%;
        margin: .2rem 0 0;
    }
}

@media (max-width: 720px) {
    .osis-public-container {
        width: min(100% - 1.25rem, 1180px);
    }

    .osis-public-header,
    .header-inner {
        min-height: 72px;
    }

    .osis-brand-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 15px;
    }

    .osis-brand-copy strong {
        font-size: .92rem;
    }

    .osis-brand-copy small {
        max-width: 180px;
        font-size: .55rem;
    }

    .public-nav {
        top: 78px;
        gap: .45rem;
        padding: .75rem;
        border-color: rgba(67, 126, 145, .16);
        border-radius: 20px;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 24px 60px rgba(15, 55, 70, .18);
        backdrop-filter: blur(20px);
    }

    .public-nav > a:not(.nav-login) {
        width: 100%;
        padding: .45rem;
    }

    .public-nav .nav-login {
        justify-content: center;
        width: 100%;
        margin: .2rem 0 0;
    }

    .osis-public-hero {
        padding: 1.75rem 0 4.6rem;
    }

    .hero-grid {
        gap: 2.2rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.55rem, 13vw, 3.65rem);
    }

    .hero-copy > p {
        font-size: .88rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .public-btn {
        width: 100%;
    }

    .hero-trust {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .35rem;
    }

    .hero-trust > span {
        justify-content: center;
        padding: .35rem .3rem;
        font-size: .54rem;
        text-align: center;
    }

    .hero-school-visual {
        min-height: 340px;
    }

    .hero-school-frame {
        inset: 14px 4px 12px 8px;
        border-radius: 26px 26px 74px 26px;
    }

    .hero-school-frame figcaption {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }

    .hero-school-frame figcaption > span {
        font-size: .55rem;
    }

    .hero-float-card {
        min-width: 115px;
        padding: .55rem;
    }

    .hero-float-card > i {
        width: 32px;
        height: 32px;
    }

    .hero-float-card.is-idea {
        left: -3px;
    }

    .hero-float-card.is-team {
        right: -3px;
    }

    .hero-photo-seal {
        right: 8px;
        width: 104px;
        height: 60px;
    }

    .osis-public-stats {
        margin-top: -34px;
    }

    .stats-grid {
        gap: .55rem;
    }

    .stats-grid > div.stat-card {
        min-height: 88px;
        padding: .72rem;
        border-radius: 18px;
    }

    .stats-grid > div.stat-card:nth-child(-n+2) {
        border-bottom: 1px solid rgba(var(--stat-rgb), .18);
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 13px;
        font-size: .95rem;
    }

    .stats-grid .stat-copy strong {
        font-size: 1.35rem;
    }

    .stats-grid .stat-copy small {
        font-size: .57rem;
    }

    .public-section {
        padding: 4rem 0;
    }

    .public-section-head h2,
    .approved-board h2,
    .leadership h2 {
        font-size: 2rem;
    }

    .public-empty.wide {
        min-height: 300px;
    }

    .section-card {
        min-height: 205px;
    }

    .approved-board {
        border-radius: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .osis-auth-story {
        min-height: auto;
        padding: 1.25rem 1.1rem 2.2rem;
        background-position: 57% center;
    }

    .osis-auth-copy {
        margin: 4rem 0 1rem;
    }

    .osis-auth-copy h1 {
        font-size: clamp(2.45rem, 12vw, 3.4rem);
    }

    .osis-auth-copy > p {
        font-size: .86rem;
    }

    .osis-auth-highlights {
        grid-template-columns: 1fr;
    }

    .osis-auth-highlights > div {
        min-height: 62px;
    }

    .osis-auth-flow {
        gap: .35rem;
    }

    .osis-auth-flow i {
        display: none;
    }

    .osis-auth-trust {
        width: 100%;
        margin-top: 1rem;
    }

    .osis-auth-card-wrap {
        min-height: auto;
        padding: 1rem .7rem 1.4rem;
    }

    .osis-auth-card {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .osis-auth-card-top {
        margin-bottom: 1.1rem;
    }

    .osis-auth-secure {
        font-size: .54rem;
    }

    .osis-auth-heading h2 {
        font-size: 1.5rem;
    }

    .osis-login-tabs {
        grid-template-columns: 1fr;
    }

    .osis-login-tabs button {
        min-height: 64px;
    }

    .osis-auth-security {
        grid-template-columns: 1fr;
    }

    .osis-auth-security > span {
        justify-content: flex-start;
        padding-inline: .7rem;
    }

    .osis-auth-foot {
        max-width: 92%;
        line-height: 1.4;
    }
}

@media (max-width: 420px) {
    .osis-brand-copy small {
        max-width: 150px;
    }

    .hero-trust {
        grid-template-columns: 1fr;
    }

    .stats-grid > div.stat-card {
        gap: .55rem;
        padding: .58rem;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .hero-float-card.is-team {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* One-screen login fit: all primary controls stay inside the viewport. */
.osis-auth-card-wrap {
    padding: clamp(.85rem, 2.2vh, 1.35rem) clamp(1rem, 3.2vw, 3rem) 2rem;
}

.osis-auth-card {
    padding: clamp(1.15rem, 2.2vh, 1.45rem) clamp(1.2rem, 2.4vw, 1.6rem);
}

.osis-auth-card-top {
    margin-bottom: .75rem;
}

.osis-auth-overline {
    margin-bottom: .42rem;
}

.osis-auth-heading {
    margin-bottom: .7rem;
}

.osis-auth-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 16px;
}

.osis-auth-heading h2 {
    font-size: 1.58rem;
}

.osis-login-tabs {
    margin: .65rem 0 .75rem;
}

.osis-login-tabs button {
    min-height: 62px;
    padding: .58rem .65rem;
}

.osis-login-tabs button > i:first-child {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.osis-login-form {
    gap: .68rem;
}

.osis-login-form label > span {
    margin-bottom: .3rem;
}

.osis-input-wrap,
.osis-login-submit {
    min-height: 48px;
}

.osis-auth-security {
    margin-top: .65rem;
}

.osis-auth-security > span {
    min-height: 34px;
}

.osis-login-help {
    margin-top: .58rem;
    padding: .6rem .68rem;
}

.osis-auth-foot {
    position: absolute;
    right: 1rem;
    bottom: .45rem;
    left: 1rem;
    justify-content: center;
    margin: 0;
}

@media (min-width: 981px) {
    .osis-auth-body {
        height: 100svh;
        overflow: hidden;
    }

    .osis-auth-shell,
    .osis-auth-story,
    .osis-auth-card-wrap {
        min-height: 0;
        height: 100svh;
    }

    .osis-auth-card-wrap {
        overflow: hidden;
    }

    .osis-auth-card {
        max-height: calc(100svh - 3rem);
    }
}

@media (max-width: 980px) {
    .osis-auth-body {
        min-height: 100svh;
        overflow: hidden;
    }

    .osis-auth-shell {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        min-height: 100svh;
        height: 100svh;
    }

    .osis-auth-story {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 1rem;
        min-height: 0;
        height: auto;
        padding: .75rem 1rem;
        background-position: center 45%;
    }

    .osis-auth-story > .osis-brand {
        padding: .35rem .55rem .35rem .35rem;
    }

    .osis-auth-copy {
        min-width: 0;
        margin: 0;
    }

    .osis-auth-copy .osis-kicker,
    .osis-auth-copy > p,
    .osis-auth-highlights,
    .osis-auth-flow,
    .osis-auth-trust {
        display: none;
    }

    .osis-auth-copy h1 {
        max-width: none;
        margin: 0;
        font-size: clamp(1.18rem, 3.8vw, 1.8rem);
        line-height: 1.08;
        letter-spacing: -.035em;
    }

    .osis-auth-copy h1 br {
        display: none;
    }

    .osis-auth-card-wrap {
        align-items: center;
        justify-content: center;
        min-height: 0;
        height: auto;
        padding: .55rem .7rem 1.5rem;
        overflow: hidden;
    }

    .osis-auth-card {
        width: min(100%, 560px);
        max-height: 100%;
        padding: .95rem 1.05rem;
        border-radius: 22px;
    }

    .osis-auth-card-top {
        margin-bottom: .55rem;
    }

    .osis-auth-overline {
        margin-bottom: .28rem;
        font-size: .56rem;
    }

    .osis-auth-heading {
        gap: .7rem;
        margin-bottom: .5rem;
    }

    .osis-auth-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 14px;
    }

    .osis-auth-heading h2 {
        font-size: 1.3rem;
    }

    .osis-auth-heading p {
        font-size: .64rem;
    }

    .osis-login-tabs {
        grid-template-columns: 1fr 1fr;
        gap: .4rem;
        margin: .45rem 0 .55rem;
        padding: .3rem;
    }

    .osis-login-tabs button {
        min-height: 52px;
        padding: .45rem .5rem;
    }

    .osis-login-tabs button > i:first-child {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .osis-login-tabs button small {
        display: none;
    }

    .osis-login-form {
        gap: .52rem;
    }

    .osis-input-wrap,
    .osis-login-submit {
        min-height: 44px;
    }

    .osis-auth-security {
        margin-top: .48rem;
    }

    .osis-auth-security > span {
        min-height: 30px;
        font-size: .5rem;
    }

    .osis-login-help {
        margin-top: .45rem;
        padding: .5rem .58rem;
        font-size: .56rem;
        line-height: 1.42;
    }

    .osis-auth-foot {
        bottom: .25rem;
        font-size: .52rem;
    }
}

@media (max-width: 600px) {
    .osis-auth-story {
        gap: .65rem;
        padding: .55rem .7rem;
    }

    .osis-auth-story .osis-brand-copy small {
        display: none;
    }

    .osis-auth-story .osis-brand-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .osis-auth-copy h1 {
        font-size: clamp(1rem, 4.8vw, 1.35rem);
    }

    .osis-auth-card-wrap {
        justify-content: start;
        padding: .42rem .5rem 1.2rem;
    }

    .osis-auth-card {
        padding: .78rem .82rem;
        border-radius: 19px;
    }

    .osis-auth-secure,
    .osis-auth-overline {
        display: none;
    }

    .osis-back-link {
        min-height: 30px;
        font-size: .62rem;
    }

    .osis-auth-heading p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .osis-login-tabs button span {
        font-size: .65rem;
    }

    .osis-auth-security {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .3rem;
    }

    .osis-auth-security > span {
        justify-content: center;
        padding: .25rem;
        font-size: 0;
    }

    .osis-auth-security > span i {
        font-size: .72rem;
    }

    .osis-login-help {
        max-height: 46px;
        overflow: hidden;
    }

    .osis-auth-foot {
        display: none;
    }
}

@media (max-height: 660px) {
    .osis-auth-security,
    .osis-login-help,
    .osis-auth-foot {
        display: none;
    }

    .osis-auth-card {
        padding-block: .7rem;
    }
}

/* Keep the dual-login card reachable on short phones. */
@media (max-width: 980px) {
    .osis-auth-body {
        height: auto;
        min-height: 100svh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .osis-auth-shell {
        grid-template-rows: auto auto;
        height: auto;
        min-height: 100svh;
    }

    .osis-auth-card-wrap {
        height: auto;
        min-height: 0;
        padding-bottom: 2.2rem;
        overflow: visible;
    }

    .osis-auth-card {
        max-height: none;
    }
}

/* Stable, aligned Face panel in every camera state. */
.osis-face-login-panel {
    align-items: stretch;
    column-gap: 1.5rem;
}

.osis-face-camera {
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.osis-face-console {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-content: stretch;
    gap: .62rem;
    height: 100%;
    min-width: 0;
    padding: 0;
}

.osis-face-status {
    min-height: 0;
    height: 100%;
}

.osis-face-progress {
    width: min(86%, 225px);
    justify-self: center;
    margin: 0;
}

.osis-face-retry {
    width: min(78%, 210px);
    justify-self: center;
    min-height: 40px;
    padding: .52rem .72rem;
    border-radius: 12px;
    font-size: .56rem;
}

.osis-face-retry:disabled {
    cursor: default;
    opacity: .92;
}

.osis-face-retry.is-loading i {
    animation: osisAuthSpin .75s linear infinite;
}

@media (min-width: 981px) {
    .osis-auth-story {
        display: grid;
        grid-template-rows: auto auto auto;
        align-content: center;
        row-gap: clamp(1.15rem, 2.5vh, 1.8rem);
        padding-block: clamp(2rem, 5vh, 4rem);
    }

    .osis-auth-copy,
    .osis-auth-trust {
        margin-block: 0;
    }
}
