@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Roboto, "Segoe UI", Arial, sans-serif;
    color: #12343f;
    background: #f5f7fa;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    border-bottom: 0;
    backdrop-filter: blur(14px);
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.36), transparent 28%),
        linear-gradient(110deg, #124e66 0%, #1b7891 42%, #7bc7ea 76%, #124e66 100%) !important;
    background-size: 220% 220% !important;
    box-shadow: 0 12px 28px rgba(18, 78, 102, 0.24), 0 2px 8px rgba(18, 78, 102, 0.18);
    overflow: visible;
    position: relative;
    animation: skyShift 13s ease-in-out infinite;
}

.topbar .mud-toolbar {
    min-width: 0;
    gap: 0.35rem;
}

.topbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -45%;
    width: 32%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-18deg);
    animation: navbarShine 5.5s ease-in-out infinite;
    pointer-events: none;
}

.topbar > * {
    position: relative;
    z-index: 1;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding-left: 84px;
    position: relative;
    color: #fff !important;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
}

.topbar .mud-button-root {
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 800;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.24);
}

.topbar .mud-button-root:hover {
    background: rgba(255, 255, 255, 0.16) !important;
}

.topbar .mud-icon-root,
.topbar .mud-button-label,
.topbar .mud-chip-content {
    color: #ffffff !important;
}

.topbar .mud-chip-root {
    border-color: rgba(255, 255, 255, 0.58) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.topbar-brand img {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 2;
    width: 72px;
    height: 72px;
    object-fit: contain;
    transform: translateY(-16%);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
    animation: logoPulse 3.8s ease-in-out infinite;
}

.admin-side-drawer {
    border-right: 1px solid rgba(18, 78, 102, 0.14);
    background:
        linear-gradient(180deg, rgba(18, 78, 102, 0.08), rgba(18, 78, 102, 0)),
        #ffffff;
    padding-top: 72px;
}

.admin-drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem 1.1rem;
    border-bottom: 1px solid rgba(18, 78, 102, 0.14);
}

.admin-drawer-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.admin-drawer-brand p {
    margin: 0;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-drawer-brand strong {
    display: block;
    color: #12343f;
    font-size: 1rem;
}

.admin-nav-menu {
    padding: 0.7rem;
}

.admin-nav-menu .mud-nav-link {
    border-radius: 8px;
    color: #60717a;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.admin-nav-menu .mud-nav-link.active,
.admin-nav-menu .mud-nav-link:hover {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
}

.admin-content-shell {
    min-height: calc(100vh - 64px);
}

@keyframes skyShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes navbarShine {
    0%, 55% {
        left: -45%;
        opacity: 0;
    }

    70% {
        opacity: 1;
    }

    100% {
        left: 115%;
        opacity: 0;
    }
}

@keyframes softPageIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(2rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(18, 78, 102, 0.12), rgba(123, 199, 234, 0.18) 45%, rgba(15, 118, 110, 0.08)),
        linear-gradient(135deg, #f5f7fa 0%, #e9f6fb 48%, #f7fbf9 100%);
    animation: softPageIn 420ms ease-out both;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(18, 78, 102, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 78, 102, 0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% 0 -10%;
    height: 34%;
    background:
        linear-gradient(130deg, rgba(18, 78, 102, 0.08), transparent 45%),
        repeating-linear-gradient(115deg, rgba(18, 78, 102, 0.10) 0 1px, transparent 1px 20px);
    transform: skewY(-3deg);
    transform-origin: 100% 100%;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    animation: rise-in 700ms ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 100%;
    margin-bottom: 1.2rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(18, 78, 102, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #124e66;
    font-size: clamp(0.78rem, 1.3vw, 0.95rem);
    font-weight: 700;
}

.hero-kicker img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 auto;
}

.hero h1 {
    max-width: 880px;
    margin: 0;
    color: #12343f;
    font-size: clamp(2.4rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero p {
    max-width: 680px;
    margin: 1.35rem 0 0;
    color: #60717a;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-actions .mud-button-root {
    min-height: 52px;
    padding-inline: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 16px 30px rgba(18, 78, 102, 0.20);
}

.hero-actions .mud-button-outlined {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(18, 78, 102, 0.28);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 660px;
    margin-top: 1.35rem;
}

.hero-metrics div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 54px;
    padding: 0.7rem;
    border: 1px solid rgba(18, 78, 102, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: #124e66;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(18, 78, 102, 0.08);
    animation: rise-in 650ms ease both;
}

.hero-metrics div:nth-child(2) {
    animation-delay: 90ms;
}

.hero-metrics div:nth-child(3) {
    animation-delay: 180ms;
}

.hero-metrics .mud-icon-root {
    color: #0f766e;
}

.hero-showcase {
    position: relative;
    z-index: 1;
    min-height: min(56vw, 560px);
    display: grid;
    place-items: center;
    animation: float-in 800ms ease both;
}

.portal-window {
    position: relative;
    width: min(100%, 470px);
    min-height: 430px;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(18, 78, 102, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
        linear-gradient(135deg, rgba(18, 78, 102, 0.10), rgba(123, 199, 234, 0.18));
    box-shadow: 0 28px 70px rgba(18, 78, 102, 0.20);
}

.portal-window::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 10%, rgba(255, 255, 255, 0.42) 48%, transparent 72%);
    transform: translateX(-100%);
    animation: panelSweep 5s ease-in-out infinite;
}

.portal-window-bar {
    display: flex;
    gap: 0.45rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(18, 78, 102, 0.12);
}

.portal-window-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #7bc7ea;
}

.portal-window-bar span:nth-child(2) {
    background: #f2c94c;
}

.portal-window-bar span:nth-child(3) {
    background: #0f766e;
}

.portal-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.3rem;
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(110deg, #124e66, #1b7891 56%, #0f766e);
    color: #fff;
    box-shadow: 0 18px 35px rgba(18, 78, 102, 0.22);
}

.portal-profile img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.portal-profile p {
    margin: 0 0 0.15rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-profile strong {
    display: block;
    color: #fff;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    line-height: 1.15;
}

.portal-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.portal-progress span {
    height: 82px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(18, 78, 102, 0.10), rgba(18, 78, 102, 0.04)),
        #fff;
    border: 1px solid rgba(18, 78, 102, 0.10);
    box-shadow: inset 0 -18px 0 rgba(123, 199, 234, 0.16);
    animation: tileLift 3.6s ease-in-out infinite;
}

.portal-progress span:nth-child(2) {
    animation-delay: 140ms;
}

.portal-progress span:nth-child(3) {
    animation-delay: 280ms;
}

.portal-progress span:nth-child(4) {
    animation-delay: 420ms;
}

.portal-lines {
    position: relative;
    display: grid;
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.portal-lines span {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(18, 78, 102, 0.16), rgba(123, 199, 234, 0.34));
}

.portal-lines span:nth-child(2) {
    width: 84%;
}

.portal-lines span:nth-child(3) {
    width: 62%;
}

.hero-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(18, 78, 102, 0.22);
    animation: badgeFloat 4s ease-in-out infinite;
}

.hero-badge-primary {
    top: 12%;
    right: 2%;
    background: linear-gradient(110deg, #0f766e, #1b7891);
}

.hero-badge-gold {
    left: 0;
    bottom: 14%;
    background: linear-gradient(110deg, #d6a629, #f2c94c);
    color: #12343f;
    animation-delay: 600ms;
}

.hero-badge-gold .mud-icon-root {
    color: #12343f;
}

.hero-card {
    position: relative;
    z-index: 1;
    min-height: min(55vw, 520px);
    display: grid;
    place-items: center;
    align-content: center;
    padding: 2rem;
    border: 1px solid rgba(18, 78, 102, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
        repeating-linear-gradient(45deg, rgba(18, 78, 102, 0.08) 0 1px, transparent 1px 12px);
    box-shadow: 0 30px 70px rgba(18, 78, 102, 0.16);
    animation: float-in 900ms ease both;
}

.hero-card img {
    width: min(56%, 260px);
    height: auto;
    filter: drop-shadow(0 20px 32px rgba(19, 54, 59, 0.2));
}

.hero-card p {
    margin: 1rem 0 0.15rem;
    color: #0f766e;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-card strong {
    color: #12343f;
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    text-align: center;
}

.orbital-ring {
    position: absolute;
    width: 76%;
    aspect-ratio: 1;
    border: 1px dashed rgba(11, 111, 104, 0.28);
    border-radius: 50%;
    animation: rotate-slow 22s linear infinite;
}

.login-page {
    position: relative;
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 2rem;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 16%, rgba(123, 199, 234, 0.38), transparent 28rem),
        radial-gradient(circle at 88% 82%, rgba(184, 135, 45, 0.15), transparent 24rem),
        linear-gradient(145deg, #edf8fb 0%, #f7fafb 48%, #e8f3f5 100%);
}

.login-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(18, 78, 102, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 78, 102, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

.login-aurora {
    position: absolute;
    z-index: -1;
    width: clamp(240px, 32vw, 470px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    animation: login-orbit 11s ease-in-out infinite alternate;
}

.login-aurora-one {
    top: -14%;
    left: -8%;
    background: radial-gradient(circle at 35% 35%, rgba(123, 199, 234, 0.62), rgba(18, 78, 102, 0.08) 58%, transparent 72%);
}

.login-aurora-two {
    right: -7%;
    bottom: -18%;
    background: radial-gradient(circle at 50% 50%, rgba(18, 120, 145, 0.24), rgba(184, 135, 45, 0.11) 55%, transparent 72%);
    animation-delay: -5s;
}

.login-panel {
    position: relative;
    width: min(100%, 440px);
    padding: clamp(1.5rem, 4vw, 2.35rem);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 70px rgba(18, 78, 102, 0.18), inset 0 1px 0 #fff;
    backdrop-filter: blur(18px);
    animation: login-card-in 700ms cubic-bezier(.2, .8, .2, 1) both;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 9%;
    width: 82%;
    height: 3px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, transparent, #7bc7ea, #b8872d, transparent);
}

.login-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 80px rgba(18, 78, 102, 0.23), inset 0 1px 0 #fff;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.brand-logo-wrap {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff, #eaf5f7);
    box-shadow: 0 10px 25px rgba(18, 78, 102, 0.15);
    animation: logo-float 4s ease-in-out infinite;
}

.brand-lockup img {
    width: 62px;
    height: 58px;
    object-fit: contain;
}

.brand-lockup p,
.apply-header p {
    margin: 0;
    color: #b8872d;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.brand-lockup h1,
.apply-header h1 {
    margin: 0.15rem 0 0;
    color: #12363b;
    font-size: 1.7rem;
    line-height: 1.15;
}

.login-welcome {
    margin: 0 0 1.5rem;
    color: #61767b;
    font-size: 0.92rem;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-form .form-field {
    animation: login-item-in 550ms ease both;
}

.login-form .form-field:nth-child(2) { animation-delay: 150ms; }
.login-form .form-field:nth-child(3) { animation-delay: 230ms; }

.form-field {
    display: grid;
    gap: 0.4rem;
}

.form-field span {
    color: #40565a;
    font-size: 0.86rem;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    height: 54px;
    padding: 0 0.9rem;
    border: 1px solid #c8d5d2;
    border-radius: 8px;
    background: #fff;
    color: #172b30;
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 54px;
    padding: 0.8rem 0.9rem;
    border: 1px solid #c8d5d2;
    border-radius: 8px;
    background: #fff;
    color: #172b30;
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #124e66;
    box-shadow: 0 0 0 3px rgba(18, 78, 102, 0.14);
}

.login-page .form-field input {
    border-color: rgba(18, 78, 102, 0.2);
    background: rgba(248, 252, 253, 0.9);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-page .form-field input:hover {
    border-color: rgba(18, 78, 102, 0.48);
    background: #fff;
}

.login-page .form-field input:focus {
    transform: translateY(-1px);
    border-color: #19778d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 119, 141, 0.13), 0 8px 20px rgba(18, 78, 102, 0.08);
}

.login-form .mud-button-root {
    min-height: 54px;
    margin-top: 0.25rem;
    border-radius: 10px;
    background: linear-gradient(110deg, #124e66, #19778d 55%, #124e66) !important;
    background-size: 200% 100% !important;
    box-shadow: 0 12px 24px rgba(18, 78, 102, 0.24);
    font-weight: 800;
    letter-spacing: 0.01em;
    animation: login-item-in 550ms 310ms ease both;
    transition: transform 180ms ease, box-shadow 180ms ease, background-position 350ms ease !important;
}

.login-form .mud-button-root:hover {
    transform: translateY(-2px);
    background-position: 100% 0 !important;
    box-shadow: 0 16px 30px rgba(18, 78, 102, 0.32);
}

.login-form .mud-button-root:active { transform: translateY(0) scale(0.99); }
.login-arrow { display: inline-block; margin-left: 0.65rem; transition: transform 180ms ease; }
.login-form .mud-button-root:hover .login-arrow { transform: translateX(5px); }

.login-hint {
    margin: 1rem 0 0;
    color: #6a7b80;
    font-size: 0.86rem;
    text-align: center;
}

@keyframes login-card-in {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes login-item-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes login-orbit {
    from { transform: translate3d(-12px, -8px, 0) scale(0.96); }
    to { transform: translate3d(20px, 18px, 0) scale(1.08); }
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(1deg); }
}

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

.apply-shell {
    min-height: calc(100vh - 64px);
    padding: clamp(1rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 10% 0%, rgba(123, 199, 234, 0.18), transparent 24rem),
        linear-gradient(180deg, rgba(18, 78, 102, 0.08) 0%, rgba(18, 78, 102, 0) 260px),
        #f5f7fa;
    animation: softPageIn 420ms ease-out both;
}

.apply-shell,
.login-page,
.print-page-shell,
.admin-content-shell {
    max-width: 100%;
    overflow-x: hidden;
}

.apply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1120px;
    margin: 0 auto 1.25rem;
}

.apply-board {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(18, 78, 102, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(18, 78, 102, 0.10);
    min-width: 0;
}

.animated-board {
    animation: rise-in 500ms ease both;
}

.smart-stepper .mud-stepper-content {
    min-height: 220px;
}

.wizard-rail {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.wizard-dot {
    min-height: 74px;
    display: grid;
    place-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.35rem;
    border: 1px solid rgba(18, 78, 102, 0.13);
    border-radius: 8px;
    background: #f8fbfc;
    color: #60717a;
    cursor: pointer;
    font: inherit;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
    min-width: 0;
}

.wizard-dot span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e4ece9;
    font-weight: 800;
}

.wizard-dot strong {
    font-size: 0.76rem;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

.wizard-dot.active {
    border-color: #0b6f68;
    background: #e8f5f2;
    color: #12363b;
    transform: translateY(-2px);
}

.wizard-dot.active span,
.wizard-dot.done span {
    background: #0b6f68;
    color: #fff;
}

.step-pane {
    min-height: 440px;
    animation: rise-in 360ms ease both;
}

.step-pane h2 {
    margin: 0 0 1.2rem;
    color: #12363b;
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
}

.eyebrow {
    margin: 0 0 0.3rem;
    color: #b8872d;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
}

.form-grid.one {
    grid-template-columns: minmax(0, 460px);
}

.form-field.wide {
    grid-column: 1 / -1;
}

.muted {
    margin: 1rem 0 0;
    color: #6b7d81;
}

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

.choice-card {
    min-height: 96px;
    display: grid;
    align-content: center;
    gap: 0.3rem;
    padding: 1rem;
    border: 1px solid #d7e1de;
    border-radius: 8px;
    background: #f9fbfa;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.choice-card:hover,
.choice-card.selected {
    border-color: #0b6f68;
    box-shadow: 0 12px 28px rgba(22, 55, 58, 0.1);
    transform: translateY(-2px);
}

.choice-card input {
    width: 18px;
    height: 18px;
}

.choice-card span {
    color: #163f45;
    font-weight: 800;
}

.choice-card small {
    color: #b8872d;
    font-weight: 700;
}

.subhead {
    margin: 1.4rem 0 0.7rem;
    color: #12363b;
}

.priority-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.priority-row {
    display: grid;
    grid-template-columns: 42px 1fr 42px 42px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d7e1de;
    border-radius: 8px;
    background: #fff;
    min-width: 0;
}

.priority-row b {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0b6f68;
    color: #fff;
}

.wizard-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e8e5;
}

.review-card,
.affidavit,
.success-panel {
    border: 1px solid #d7e1de;
    border-radius: 8px;
    background: #fff;
}

.review-card {
    padding: 1rem;
}

.review-card dl {
    display: grid;
    grid-template-columns: minmax(160px, 0.32fr) 1fr;
    gap: 0.45rem 1rem;
    margin: 0;
}

.review-card dt {
    color: #5d7074;
    font-weight: 800;
}

.review-card dd {
    margin: 0;
    color: #163f45;
    min-width: 0;
    overflow-wrap: anywhere;
}

.affidavit {
    margin-top: 1rem;
    padding: 1.1rem;
    background: #fbfaf6;
}

.affidavit h3 {
    margin: 0 0 0.6rem;
    color: #12363b;
}

.affidavit p {
    margin: 0;
    color: #40565a;
    line-height: 1.75;
}

.terms-check {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin-top: 1rem;
    color: #163f45;
    font-weight: 700;
}

.terms-check input {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
}

.success-panel {
    position: relative;
    overflow: hidden;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(1.6rem, 4vw, 2.6rem);
    text-align: center;
    animation: rise-in 500ms ease both;
}

.success-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 12%, rgba(242, 201, 76, 0.28), transparent 28%),
        radial-gradient(circle at 18% 82%, rgba(123, 199, 234, 0.18), transparent 22%),
        radial-gradient(circle at 82% 78%, rgba(239, 111, 108, 0.16), transparent 24%);
}

.success-panel > :not(.celebration-stage) {
    position: relative;
    z-index: 3;
}

.success-mark {
    position: relative;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #0b6f68;
    color: #fff;
    font-size: 2.6rem;
    font-weight: 800;
}

.success-mark-celebrate {
    animation: successPop 850ms cubic-bezier(.2, 1.25, .32, 1) both;
}

.celebration-stage {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.party-popper {
    position: absolute;
    bottom: 46px;
    width: 104px;
    height: 104px;
    border-radius: 8px 8px 24px 24px;
    background: linear-gradient(135deg, #124e66 0%, #1b7891 60%, #7bc7ea 100%);
    box-shadow: 0 22px 34px rgba(18, 78, 102, 0.24);
    animation: popperKick 1.35s cubic-bezier(.16, 1.2, .32, 1) both, popperIdle 1.8s ease-in-out 1.35s infinite;
}

.party-popper::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: -16px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2c94c, #ef6f6c 48%, #0f766e);
    box-shadow: 0 0 0 6px rgba(242, 201, 76, 0.18);
}

.party-popper::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -82px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.42), rgba(242, 201, 76, 0) 68%);
    opacity: 0;
    transform: translateX(-50%) scale(0.2);
    animation: popperFlash 1.65s ease-out 120ms infinite;
}

.party-popper span {
    position: absolute;
    width: 14px;
    height: 54px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    transform-origin: bottom center;
}

.party-popper span:nth-child(1) {
    left: 26px;
    top: 26px;
    transform: rotate(-18deg);
}

.party-popper span:nth-child(2) {
    left: 45px;
    top: 18px;
}

.party-popper span:nth-child(3) {
    right: 26px;
    top: 26px;
    transform: rotate(18deg);
}

.party-popper.left {
    left: 3.5%;
    --popper-start: translateY(38px) rotate(-44deg) scale(0.72);
    --popper-middle: translateY(-12px) rotate(-18deg) scale(1.08);
    --popper-rest: rotate(-24deg);
    transform: var(--popper-rest);
}

.party-popper.right {
    right: 3.5%;
    --popper-start: translateY(38px) scaleX(-1) rotate(-44deg) scale(0.72);
    --popper-middle: translateY(-12px) scaleX(-1) rotate(-18deg) scale(1.08);
    --popper-rest: scaleX(-1) rotate(-24deg);
    transform: var(--popper-rest);
}

.confetti-piece {
    position: absolute;
    top: auto;
    bottom: 92px;
    left: 50%;
    width: 12px;
    height: 22px;
    border-radius: 3px;
    background: #f2c94c;
    opacity: 0;
    animation: confettiBurst 2.65s cubic-bezier(.16, .82, .25, 1) infinite;
}

.confetti-piece:nth-child(4n) {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7bc7ea;
}

.confetti-piece:nth-child(4n + 1) {
    background: #0f766e;
}

.confetti-piece:nth-child(4n + 2) {
    background: #ef6f6c;
}

.confetti-piece:nth-child(4n + 3) {
    background: #f2c94c;
}

.c1 { --x: -330px; --r: 140deg; animation-delay: 0ms; }
.c2 { --x: -270px; --r: 260deg; animation-delay: 55ms; }
.c3 { --x: -220px; --r: 90deg; animation-delay: 110ms; }
.c4 { --x: -170px; --r: 320deg; animation-delay: 35ms; }
.c5 { --x: -120px; --r: 210deg; animation-delay: 165ms; }
.c6 { --x: -70px; --r: 440deg; animation-delay: 85ms; }
.c7 { --x: -25px; --r: 130deg; animation-delay: 210ms; }
.c8 { --x: 30px; --r: 300deg; animation-delay: 70ms; }
.c9 { --x: 82px; --r: 180deg; animation-delay: 140ms; }
.c10 { --x: 135px; --r: 390deg; animation-delay: 20ms; }
.c11 { --x: 190px; --r: 250deg; animation-delay: 120ms; }
.c12 { --x: 250px; --r: 500deg; animation-delay: 185ms; }
.c13 { --x: 315px; --r: 160deg; animation-delay: 95ms; }
.c14 { --x: 360px; --r: 340deg; animation-delay: 240ms; }
.c15 { --x: -350px; --r: 390deg; animation-delay: 260ms; }
.c16 { --x: -285px; --r: 170deg; animation-delay: 310ms; }
.c17 { --x: -230px; --r: 460deg; animation-delay: 350ms; }
.c18 { --x: -160px; --r: 220deg; animation-delay: 390ms; }
.c19 { --x: -95px; --r: 120deg; animation-delay: 430ms; }
.c20 { --x: -38px; --r: 330deg; animation-delay: 470ms; }
.c21 { --x: 45px; --r: 540deg; animation-delay: 280ms; }
.c22 { --x: 110px; --r: 200deg; animation-delay: 330ms; }
.c23 { --x: 168px; --r: 440deg; animation-delay: 380ms; }
.c24 { --x: 225px; --r: 280deg; animation-delay: 420ms; }
.c25 { --x: 275px; --r: 160deg; animation-delay: 460ms; }
.c26 { --x: 330px; --r: 380deg; animation-delay: 500ms; }
.c27 { --x: -15px; --r: 610deg; animation-delay: 540ms; }
.c28 { --x: 15px; --r: 260deg; animation-delay: 580ms; }
.c29 { --x: -390px; --r: 720deg; animation-delay: 80ms; }
.c30 { --x: 390px; --r: 540deg; animation-delay: 125ms; }
.c31 { --x: -310px; --r: 620deg; animation-delay: 175ms; }
.c32 { --x: 310px; --r: 680deg; animation-delay: 215ms; }
.c33 { --x: -245px; --r: 360deg; animation-delay: 255ms; }
.c34 { --x: 245px; --r: 760deg; animation-delay: 295ms; }
.c35 { --x: -185px; --r: 530deg; animation-delay: 335ms; }
.c36 { --x: 185px; --r: 470deg; animation-delay: 375ms; }
.c37 { --x: -125px; --r: 650deg; animation-delay: 415ms; }
.c38 { --x: 125px; --r: 590deg; animation-delay: 455ms; }
.c39 { --x: -65px; --r: 790deg; animation-delay: 495ms; }
.c40 { --x: 65px; --r: 700deg; animation-delay: 535ms; }
.c41 { --x: -415px; --r: 430deg; animation-delay: 260ms; }
.c42 { --x: 415px; --r: 820deg; animation-delay: 310ms; }
.c43 { --x: -25px; --r: 900deg; animation-delay: 625ms; }
.c44 { --x: 25px; --r: 840deg; animation-delay: 665ms; }

.success-panel h2 {
    margin: 0;
    color: #12363b;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.success-panel > p:not(.eyebrow) {
    max-width: 760px;
    margin: 1rem auto;
    color: #51686c;
    line-height: 1.7;
}

.report-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.2rem 0;
}

.print-lookup-panel {
    animation: rise-in 520ms ease both;
}

.lookup-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0.35rem;
    border: 1px solid rgba(18, 78, 102, 0.13);
    border-radius: 8px;
    background: #eef6f8;
}

.lookup-mode-switch button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #60717a;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.lookup-mode-switch button.active {
    background: linear-gradient(110deg, #124e66, #1b7891);
    color: #fff;
    box-shadow: 0 10px 22px rgba(18, 78, 102, 0.18);
}

.portal-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.portal-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 1px solid rgba(18, 78, 102, 0.14);
    border-radius: 8px;
    background: #f8fbfc;
    color: #12343f;
}

.portal-toggle input {
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
    accent-color: #0f766e;
}

.portal-toggle strong,
.portal-toggle small {
    display: block;
}

.portal-toggle strong {
    font-weight: 900;
}

.portal-toggle small {
    margin-top: 0.2rem;
    color: #60717a;
    line-height: 1.35;
}

.stats-summary-grid,
.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto 1rem;
}

.stat-tile {
    display: grid;
    gap: 0.25rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(123, 199, 234, 0.24), transparent 58%),
        #fff;
}

.stat-tile span {
    color: #60717a;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.stat-tile strong {
    color: #124e66;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stats-panel h2,
.filter-panel h3 {
    margin: 0 0 0.85rem;
    color: #12343f;
}

.stats-list,
.filter-options {
    display: grid;
    gap: 0.65rem;
}

.stats-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.stats-row span {
    min-width: 0;
    color: #334155;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.stats-row strong {
    color: #0f766e;
}

.stats-row i {
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eef2;
}

.stats-row i::before {
    content: "";
    display: block;
    width: var(--value);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #124e66, #7bc7ea);
}

.filter-panel {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(18, 78, 102, 0.14);
    border-radius: 8px;
    background: #f8fbfc;
}

.filter-options {
    max-height: 250px;
    overflow: auto;
    padding-right: 0.25rem;
    margin-top: 0.75rem;
}

.filter-options label,
.column-choice-grid label {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #334155;
    font-weight: 700;
    line-height: 1.35;
}

.filter-options input,
.column-choice-grid input {
    width: 17px;
    height: 17px;
    margin-top: 0.08rem;
    accent-color: #0f766e;
}

.export-columns {
    padding: 0.85rem;
    border: 1px solid rgba(18, 78, 102, 0.14);
    border-radius: 8px;
    background: #f8fbfc;
}

.export-columns summary {
    color: #124e66;
    cursor: pointer;
    font-weight: 900;
}

.column-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.65rem 1rem;
    margin-top: 1rem;
}

.report-table {
    min-width: 1120px;
}

.print-page-shell {
    min-height: calc(100vh - 64px);
    padding: clamp(1rem, 3vw, 2rem);
    background: #eef4f2;
}

.print-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.application-report.print-sheet {
    width: min(100%, 210mm);
    min-height: 297mm;
    margin: 1.5rem auto 0;
    padding: 9mm;
    border: 1px solid #d7e1de;
    border-radius: 8px;
    background: #fff;
    color: #163f45;
    text-align: left;
    box-shadow: 0 18px 50px rgba(22, 55, 58, 0.12);
}

.print-topline {
    height: 4px;
    margin: -9mm -9mm 6mm;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #0b6f68, #b8872d, #235789);
}

.print-report-head {
    display: grid;
    grid-template-columns: 86px 1fr 112px;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid #0b6f68;
}

.print-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.print-title p,
.print-title h2 {
    margin: 0;
}

.print-title p {
    color: #b8872d;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.print-title h2 {
    color: #12363b;
    font-size: 1.32rem;
    line-height: 1.15;
}

.print-title span {
    color: #607277;
    font-size: 0.82rem;
    font-weight: 700;
}

.print-photo {
    width: 96px;
    aspect-ratio: 0.78;
    display: grid;
    place-items: center;
    justify-self: end;
    overflow: hidden;
    border: 2px solid #d7e1de;
    border-radius: 8px;
    background: #f4f7f5;
    color: #7a8c90;
    font-weight: 800;
}

.print-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.print-identity {
    display: grid;
    grid-template-columns: 0.8fr 1.35fr 0.95fr;
    gap: 0.45rem;
    margin: 0.65rem 0;
}

.print-identity div,
.print-field {
    min-width: 0;
    padding: 0.42rem 0.5rem;
    border: 1px solid #dce6e3;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

.print-identity span,
.print-field span {
    display: block;
    color: #607277;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.print-identity strong {
    display: block;
    margin-top: 0.12rem;
    color: #0b6f68;
    font-size: 1.08rem;
    line-height: 1.15;
}

.print-section {
    margin-top: 0.52rem;
}

.print-section h3 {
    margin: 0 0 0.32rem;
    padding: 0.34rem 0.55rem;
    border: 1px solid rgba(11, 111, 104, 0.16);
    border-left: 5px solid #b8872d;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(11, 111, 104, 0.12), rgba(184, 135, 45, 0.08)),
        #f8fbfa;
    color: #12363b;
    font-size: 0.84rem;
    line-height: 1.1;
}

.print-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.32rem;
}

.print-field strong {
    display: block;
    margin-top: 0.15rem;
    color: #163f45;
    font-size: 0.78rem;
    line-height: 1.22;
}

.print-field.wide {
    grid-column: 1 / -1;
}

.print-affidavit {
    margin-top: 0.55rem;
    padding: 0.48rem 0.6rem;
    border: 1px solid rgba(11, 111, 104, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(11, 111, 104, 0.09), rgba(184, 135, 45, 0.07)),
        #f8fbfa;
    color: #40565a;
    font-size: 0.76rem;
    line-height: 1.32;
}

.admin-grid {
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 auto;
    width: 100%;
}

.admin-panel {
    padding: 2rem;
    border: 1px solid rgba(18, 78, 102, 0.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(18, 78, 102, 0.08);
    min-width: 0;
}

.admin-panel h2 {
    margin: 0 0 1rem;
    color: #12343f;
    font-weight: 900;
}

.account-panel {
    max-width: 560px;
    margin: 0 auto;
}

.inline-entry,
.lookup-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto auto;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.district-entry {
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr) auto;
}

.district-row {
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr) auto auto;
}

.inline-entry input,
.inline-entry select,
.lookup-row input,
.lookup-row select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 0.75rem;
    border: 1px solid #cdd9df;
    border-radius: 8px;
    font: inherit;
}

.inline-entry label,
.lookup-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #40565a;
    font-weight: 700;
    white-space: nowrap;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.15rem;
    max-width: 1120px;
    margin: 0 auto;
}

.admin-dashboard .admin-panel {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.admin-dashboard-card {
    min-height: 176px;
    overflow: hidden;
    position: relative;
    color: #fff;
    justify-content: space-between;
    transition: transform .18s ease, box-shadow .18s ease;
}

.admin-dashboard-card::after {
    content: "";
    position: absolute;
    top: -42px;
    right: -34px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.admin-dashboard-card:hover {
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
    transform: translateY(-3px);
}

.admin-dashboard-card.users {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    border-color: #0e7490;
}

.admin-dashboard-card.applications {
    background: linear-gradient(135deg, #0f766e, #2dd4bf);
    border-color: #0f766e;
}

.admin-dashboard-card.lookups {
    background: linear-gradient(135deg, #d97706, #fbbf24);
    border-color: #b45309;
}

.admin-dashboard-card.logs {
    background: linear-gradient(135deg, #475569, #94a3b8);
    border-color: #334155;
}

.admin-dashboard-card.stats {
    background: linear-gradient(135deg, #2563eb, #7bc7ea);
    border-color: #1d4ed8;
}

.admin-dashboard-card.reports {
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    border-color: #6d28d9;
}

.admin-dashboard-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.admin-dashboard-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
}

.admin-dashboard-card .mud-icon-root {
    color: #fff;
    font-size: 1.7rem;
}

.admin-dashboard-arrow {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: transform .18s ease;
}

.admin-dashboard-card:hover .admin-dashboard-arrow {
    transform: translateX(4px);
}

.admin-dashboard-card h2,
.admin-dashboard-card p {
    position: relative;
    z-index: 1;
    color: #fff;
}

.admin-dashboard p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
}

.admin-dashboard-card .mud-button-root {
    position: relative;
    z-index: 1;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #d7e1e6;
    color: #334155;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: #eef6f8;
    color: #12343f;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.table-input {
    width: 100%;
    min-height: 40px;
    padding: 0 0.65rem;
    border: 1px solid #cdd9df;
    border-radius: 8px;
    font: inherit;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.table-actions .mud-button-root,
.table-actions .mud-icon-button-root {
    flex: 0 0 auto;
}

.role-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.role-grid label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #40565a;
    font-weight: 700;
}

.role-grid.compact {
    min-width: 320px;
    gap: 0.45rem 0.7rem;
}

.logs-filter {
    grid-template-columns: minmax(240px, 1fr) auto auto;
}

.log-details {
    max-width: 420px;
    white-space: normal;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes panelSweep {
    0%, 45% {
        transform: translateX(-110%);
    }

    70%, 100% {
        transform: translateX(110%);
    }
}

@keyframes tileLift {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.55) rotate(-12deg);
    }

    70% {
        opacity: 1;
        transform: scale(1.12) rotate(4deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes popperKick {
    0% {
        opacity: 0;
        transform: var(--popper-start);
    }

    42% {
        opacity: 1;
        transform: var(--popper-middle);
    }

    100% {
        opacity: 1;
        transform: var(--popper-rest);
    }
}

@keyframes popperFlash {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.2);
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.45);
    }
}

@keyframes popperIdle {
    0%, 100% {
        transform: var(--popper-rest);
    }

    50% {
        transform: var(--popper-middle);
    }
}

@keyframes confettiBurst {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0) scale(0.65);
    }

    10% {
        opacity: 1;
    }

    28% {
        opacity: 1;
        transform: translate3d(calc(var(--x) * 0.36), -210px, 0) rotate(calc(var(--r) * 0.35)) scale(1);
    }

    72% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--x), 310px, 0) rotate(var(--r)) scale(0.8);
    }
}

@media (max-width: 900px) {
    .topbar .mud-toolbar {
        min-height: 56px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .hero-showcase {
        min-height: 430px;
    }

    .portal-window {
        min-height: 390px;
    }

    .hero-card {
        min-height: 340px;
    }

    .wizard-rail,
    .choice-grid,
    .form-grid,
    .form-grid.one,
    .review-card dl,
    .print-grid,
    .print-identity,
    .inline-entry,
    .lookup-row {
        grid-template-columns: 1fr;
    }

    .form-field.wide {
        grid-column: auto;
    }

    .wizard-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-content-shell {
        padding-inline: 0;
    }

    .admin-panel {
        padding: 1.25rem;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .logs-filter,
    .district-entry,
    .district-row {
        grid-template-columns: 1fr;
    }

    .role-grid.compact {
        min-width: 0;
    }

    .portal-toggle-grid {
        grid-template-columns: 1fr;
    }

    .application-report.print-sheet {
        min-height: auto;
        padding: 1rem;
    }

    .print-topline {
        margin: -1rem -1rem 1rem;
    }

    .party-popper {
        width: 74px;
        height: 74px;
        bottom: 34px;
    }
}

@media (max-width: 560px) {
    .topbar {
        overflow: visible;
    }

    .topbar .mud-toolbar {
        min-height: 58px;
        padding-inline: 0.55rem;
    }

    .topbar-brand {
        max-width: calc(100vw - 1.1rem);
        min-height: 42px;
        padding-left: 58px;
        font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-brand img {
        width: 54px;
        height: 54px;
        transform: translateY(-10%);
    }

    .topbar .mud-button-root {
        min-width: 40px;
        padding-inline: 0.45rem;
        font-size: 0.82rem;
    }

    .topbar .mud-button-root .mud-button-label {
        gap: 0.25rem;
    }

    .hero {
        min-height: auto;
        padding: 1.25rem;
    }

    .hero-kicker {
        align-items: flex-start;
        border-radius: 8px;
    }

    .hero-kicker span {
        overflow-wrap: anywhere;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 14vw, 3.45rem);
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-actions,
    .hero-actions .mud-button-root {
        width: 100%;
    }

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

    .hero-showcase {
        min-height: 390px;
    }

    .portal-window {
        min-height: 350px;
    }

    .portal-profile {
        align-items: flex-start;
    }

    .portal-profile img {
        width: 68px;
        height: 68px;
    }

    .portal-progress {
        gap: 0.45rem;
    }

    .portal-progress span {
        height: 62px;
    }

    .hero-badge {
        position: static;
        justify-self: stretch;
        justify-content: center;
        margin-top: 0.75rem;
    }

    .login-page {
        padding: 1rem;
        place-items: start center;
    }

    .login-panel {
        padding: 1.2rem;
        margin-top: 0.75rem;
    }

    .brand-lockup {
        align-items: flex-start;
    }

    .brand-lockup img {
        width: 54px;
        height: 54px;
    }

    .brand-lockup h1,
    .apply-header h1 {
        font-size: 1.25rem;
    }

    .apply-shell {
        padding: 0.75rem;
    }

    .apply-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .apply-header .mud-button-root,
    .report-actions .mud-button-root,
    .print-actions .mud-button-root,
    .wizard-actions .mud-button-root,
    .section-title-row .mud-button-root {
        width: 100%;
    }

    .apply-board {
        padding: 0.9rem;
    }

    .wizard-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .wizard-dot {
        min-height: 62px;
        padding: 0.5rem 0.3rem;
    }

    .wizard-dot span {
        width: 24px;
        height: 24px;
    }

    .step-pane {
        min-height: auto;
    }

    .choice-card {
        min-height: auto;
        padding: 0.85rem;
    }

    .priority-row {
        grid-template-columns: 34px 1fr 38px 38px;
        gap: 0.35rem;
        padding: 0.5rem;
    }

    .priority-row b {
        width: 28px;
        height: 28px;
    }

    .wizard-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
    }

    .review-card {
        padding: 0.85rem;
    }

    .review-card dl {
        gap: 0.25rem;
    }

    .review-card dt {
        margin-top: 0.45rem;
    }

    .success-panel {
        padding: 1rem;
    }

    .party-popper {
        width: 52px;
        height: 52px;
        bottom: 22px;
        border-radius: 6px 6px 16px 16px;
    }

    .party-popper::before {
        left: 8px;
        right: 8px;
        top: -10px;
        height: 20px;
    }

    .party-popper::after {
        top: -52px;
        width: 104px;
        height: 104px;
    }

    .party-popper span {
        width: 8px;
        height: 28px;
    }

    .party-popper span:nth-child(1) {
        left: 13px;
        top: 15px;
    }

    .party-popper span:nth-child(2) {
        left: 22px;
        top: 11px;
    }

    .party-popper span:nth-child(3) {
        right: 13px;
        top: 15px;
    }

    .confetti-piece {
        width: 8px;
        height: 12px;
        bottom: 54px;
        animation-duration: 2.35s;
    }

    .print-page-shell {
        padding: 0.75rem;
    }

    .print-report-head {
        grid-template-columns: 58px 1fr;
        align-items: start;
    }

    .print-logo {
        width: 54px;
        height: 54px;
    }

    .print-photo {
        grid-column: 1 / -1;
        justify-self: start;
        width: 86px;
    }

    .print-title h2 {
        font-size: 1rem;
    }

    .admin-grid {
        gap: 0.75rem;
    }

    .admin-panel {
        padding: 1rem;
    }

    .admin-panel h2 {
        font-size: 1.25rem;
    }

    .admin-dashboard {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .admin-dashboard-card {
        min-height: 150px;
    }

    .inline-entry,
    .lookup-row {
        gap: 0.5rem;
    }

    .inline-entry label,
    .lookup-row label {
        white-space: normal;
    }

    .table-scroll {
        margin-inline: -0.25rem;
        padding-bottom: 0.35rem;
    }

    .data-table {
        min-width: 640px;
    }

    .data-table th,
    .data-table td {
        padding: 0.6rem;
        font-size: 0.86rem;
    }

    .role-grid {
        gap: 0.5rem;
    }

    .log-details {
        max-width: 260px;
    }
}

@media print {
    @page {
        size: A4;
        margin: 6mm;
    }

    html,
    body {
        background: #fff;
    }

    .topbar,
    .admin-side-drawer,
    #smart-ohrp-celebration,
    .no-print,
    .apply-header {
        display: none !important;
    }

    .apply-shell,
    .success-panel,
    .print-page-shell,
    .admin-content-shell {
        min-height: auto;
        padding: 0;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    .success-panel {
        max-width: none;
        text-align: left;
    }

    .success-panel > .success-mark,
    .success-panel > .eyebrow,
    .success-panel > h2,
    .success-panel > p:not(.eyebrow) {
        display: none;
    }

    .application-report.print-sheet {
        width: 100%;
        min-height: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .print-topline {
        height: 3px;
        margin: 0 0 4mm;
    }

    .print-report-head {
        grid-template-columns: 58px 1fr 76px;
        gap: 0.55rem;
        padding-bottom: 0.35rem;
    }

    .print-logo {
        width: 54px;
        height: 54px;
    }

    .print-photo {
        width: 74px;
        border-radius: 6px;
    }

    .print-title p {
        font-size: 0.56rem;
    }

    .print-title h2 {
        font-size: 1.05rem;
    }

    .print-title span {
        font-size: 0.66rem;
    }

    .print-identity {
        gap: 0.28rem;
        margin: 0.38rem 0;
    }

    .print-identity strong {
        font-size: 0.92rem;
    }

    .print-section {
        margin-top: 0.35rem;
    }

    .print-section h3 {
        margin-bottom: 0.22rem;
        padding: 0.22rem 0.42rem;
        border-radius: 6px;
        font-size: 0.7rem;
    }

    .print-field,
    .print-identity div {
        padding: 0.26rem 0.36rem;
        border-radius: 6px;
    }

    .print-identity span,
    .print-field span {
        font-size: 0.5rem;
    }

    .print-grid {
        gap: 0.22rem;
    }

    .print-field strong {
        margin-top: 0.08rem;
        font-size: 0.66rem;
        line-height: 1.16;
    }

    .print-affidavit {
        margin-top: 0.35rem;
        padding: 0.32rem 0.45rem;
        border-radius: 6px;
        font-size: 0.64rem;
        line-height: 1.18;
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 3.5rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
