:root {
    /* 60 / 30 / 10 palette: ice white / logo blue / sky blue */
    --main: #F3F7FC;
    --secondary: #0E5CAD;
    --accent: #57B3DA;
    --radius: 18px;
    --line: rgba(14, 92, 173, .16);
    --soft-shadow: 0 14px 36px rgba(14, 92, 173, .08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--main);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--main);
    color: var(--secondary);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.brand-logo {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 13px;
    object-fit: contain;
}

/* Sign in */
.login-page {
    display: flex;
    min-height: 100svh;
}

.login-page .container {
    display: flex;
    min-height: 100svh;
}

.login-wrapper {
    display: grid;
    width: 100%;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--main);
}

.login-section {
    display: flex;
    min-width: 0;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 6vw, 88px);
    overflow: auto;
    background: var(--main);
}

.login-content {
    width: 100%;
    max-width: 440px;
}

.login-logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(34px, 5vh, 56px);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.logo-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 15px;
    background: var(--secondary);
    color: var(--main);
    font-size: 0;
    font-weight: 800;
}

.logo-icon::before {
    content: "F";
    font-size: 22px;
}

.logo-text h1 {
    margin: 0;
    color: var(--secondary);
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.2;
}

.logo-text p {
    margin: 4px 0 0;
    color: var(--secondary);
    font-size: 12px;
    opacity: .68;
}

.login-header-title {
    margin: 0 0 10px;
    color: var(--secondary);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.login-header-text {
    max-width: 38ch;
    margin: 0 0 32px;
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.7;
    opacity: .72;
}

.login-page .form-group {
    margin-bottom: 20px;
}

.login-page .form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 650;
}

.form-input-login,
.form-input,
select.form-input,
select,
textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--main);
    color: var(--secondary);
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.form-input-login::placeholder,
.form-input::placeholder,
textarea::placeholder {
    color: var(--secondary);
    opacity: .48;
}

.form-input-login:focus,
.form-input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(87, 179, 218, .18);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 24px;
    color: var(--secondary);
    font-size: 13px;
}

.checkbox-group input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--accent);
}

.checkbox-group label {
    cursor: pointer;
}

.error-message-login {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid var(--accent);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    background: var(--main);
    color: var(--secondary);
    font-size: 13px;
}

.btn-login,
.btn,
.meeting-link-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    border-color: var(--accent);
    background: var(--secondary);
    color: var(--main);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease;
}

.btn-login {
    width: 100%;
    min-height: 50px;
}

@media (max-width: 768px) {
    .btn-login-in {
        margin-top: 20px; 
        gap: 8px;
    }
}

.btn-login:hover,
.btn:hover,
.meeting-link-btn:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.login-app-install {
    margin-top: 14px;
    text-align: center;
}

.login-app-install .btn {
    width: 100%;
    border-color: var(--secondary);
    background: transparent;
    color: var(--secondary);
}

.install-app-help {
    margin: 10px 0 0;
    color: var(--secondary);
    font-size: 12px;
    line-height: 1.45;
}

.login-footer {
    margin-top: 28px;
    color: var(--secondary);
    font-size: 11px;
    text-align: center;
    opacity: .58;
}

/* Login transition only */
.portal-loader {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px;
    background: radial-gradient(circle at 50% 42%, rgba(87, 179, 218, .2), transparent 36%), var(--secondary);
    color: var(--main);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
}

.portal-loader.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.portal-loader-particles {
    position: absolute;
    inset: -20%;
    background-image:
        radial-gradient(circle, rgba(87, 179, 218, .9) 1px, transparent 1.7px),
        radial-gradient(circle, rgba(243, 247, 252, .56) 1px, transparent 1.8px);
    background-size: 76px 76px, 119px 119px;
    background-position: 0 0, 37px 43px;
    opacity: .38;
    animation: portal-particle-drift 18s linear infinite;
}

.portal-loader-content {
    position: relative;
    display: flex;
    width: min(100%, 360px);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portal-loader-logo-wrap {
    position: relative;
    display: grid;
    width: clamp(112px, 24vw, 154px);
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(87, 179, 218, .72);
    border-radius: 34px;
    background: rgba(243, 247, 252, .1);
    box-shadow: 0 0 64px rgba(87, 179, 218, .24), inset 0 0 34px rgba(243, 247, 252, .1);
    animation: portal-logo-breathe 3.2s ease-in-out infinite;
}

.portal-loader-logo {
    display: block;
    width: 76%;
    height: 76%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(14, 92, 173, .38));
}

.portal-loader-sweep {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.portal-loader-sweep::after {
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -70%;
    width: 42%;
    background: linear-gradient(105deg, transparent, rgba(243, 247, 252, .06) 34%, rgba(243, 247, 252, .8) 50%, rgba(87, 179, 218, .5) 59%, transparent 78%);
    content: "";
    transform: skewX(-18deg);
    animation: portal-logo-sweep 2.5s ease-in-out infinite;
}

.portal-loader-brand {
    margin: 24px 0 0;
    color: var(--main);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.portal-loader-caption {
    margin: 6px 0 20px;
    color: var(--main);
    font-size: 13px;
    opacity: .72;
}

.portal-loader-progress {
    position: relative;
    width: min(100%, 184px);
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(243, 247, 252, .18);
}

.portal-loader-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    border-radius: inherit;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(87, 179, 218, .7);
    animation: portal-progress 1.1s ease-in-out infinite alternate;
}

@keyframes portal-logo-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.025); }
}

@keyframes portal-logo-sweep {
    0%, 14% { transform: translateX(0) skewX(-18deg); }
    78%, 100% { transform: translateX(390%) skewX(-18deg); }
}

@keyframes portal-progress {
    from { transform: translateX(-15%); }
    to { transform: translateX(185%); }
}

@keyframes portal-particle-drift {
    to { transform: translate3d(38px, -30px, 0); }
}

.hero-section {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100svh;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    background: var(--secondary);
}

.carousel-container {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
}

.carousel-slide,
.carousel-slide:nth-child(n) {
    position: absolute;
    inset: 0;
    display: none;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: clamp(34px, 5vw, 76px);
    background: var(--secondary);
    color: var(--main);
    opacity: 0;
    transition: opacity .35s ease;
}

.carousel-slide.active {
    display: flex;
    opacity: 1;
}

.hero-content {
    z-index: 1;
    width: 100%;
    max-width: 520px;
    color: var(--main);
    text-align: left;
}

.hero-icon {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0;
    line-height: 1;
    filter: none;
    animation: none;
}

.hero-artwork {
    display: block;
    width: min(100%, 300px);
    max-height: 205px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.hero-icon::before {
    content: "FSP PARTNER PORTAL";
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .14em;
}

.hero-title {
    margin: 0 0 14px;
    color: var(--main);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.1;
    text-shadow: none;
}

.hero-text {
    max-width: 48ch;
    margin: 0 0 28px;
    color: var(--main);
    font-size: 15px;
    line-height: 1.75;
    opacity: .78;
    text-shadow: none;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    text-align: left;
}

.feature {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid rgba(243, 247, 252, .2);
    border-radius: 12px;
    background: rgba(243, 247, 252, .06);
    color: var(--main);
    backdrop-filter: none;
    transition: border-color .18s ease, background .18s ease;
}

.feature:hover {
    border-color: var(--accent);
    background: rgba(243, 247, 252, .1);
    transform: none;
}

.feature-icon {
    display: none;
}

.feature-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.carousel-dots {
    position: absolute;
    z-index: 3;
    bottom: 25px;
    left: 50%;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.carousel-dot {
    display: block;
    width: 9px;
    height: 9px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--main);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    opacity: .7;
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--main);
    outline-offset: 4px;
}

.carousel-dot.active {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: none;
    transform: scale(1.12);
    opacity: 1;
}

/* Partner dashboard */
.dashboard-page {
    background: var(--main);
    color: var(--secondary);
}

.dashboard-container {
    display: grid;
    width: 100%;
    max-width: 1680px;
    min-height: 100svh;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    margin: 0 auto;
    background: var(--main);
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    width: auto;
    height: 100svh;
    padding: 26px 16px;
    overflow-y: auto;
    background: var(--secondary);
    color: var(--main);
    box-shadow: none;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 34px;
    padding: 0 6px 22px;
    border-bottom: 1px solid rgba(243, 247, 252, .22);
}

.sidebar-logo {
    border-bottom: 0;
    color: var(--main);
    text-decoration: none;
}

.sidebar-brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    padding: 3px;
    background: var(--main);
}

.sidebar-logo-text strong,
.sidebar-logo-text small {
    display: block;
}

.sidebar-logo-text strong {
    color: var(--main);
    font-size: 16px;
    font-weight: 750;
}

.sidebar-logo-text small {
    margin-top: 2px;
    color: var(--main);
    font-size: 11px;
    opacity: .72;
}

.sidebar-logo-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 13px;
    color: var(--accent);
    font-size: 0;
    font-weight: 800;
}

.sidebar-logo-icon::before {
    content: "F";
    font-size: 19px;
}

.sidebar-logo-text {
    min-width: 0;
}

.sidebar-logo-text h2 {
    margin: 0;
    color: var(--main);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.025em;
}

.sidebar-logo-text p {
    margin: 3px 0 0;
    color: var(--main);
    font-size: 11px;
    opacity: .66;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-item {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.sidebar-item:hover,
.sidebar-item.active {
    border-color: rgba(87, 179, 218, .72);
    background: rgba(87, 179, 218, .16);
    color: var(--main);
    transform: none;
}

.sidebar-item-icon {
    width: 20px;
    flex: 0 0 20px;
    color: var(--accent);
    font-size: 0;
}

.sidebar-item-icon::before {
    content: "•";
    font-size: 18px;
    line-height: 1;
}

.sidebar-item.active .sidebar-item-icon,
.sidebar-item:hover .sidebar-item-icon {
    color: var(--secondary);
}

.main-content {
    min-width: 0;
    margin: 0;
    padding: clamp(20px, 3vw, 42px);
    background: var(--main);
}

.portal-section {
    scroll-margin-top: 24px;
}

.top-bar {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--main);
    box-shadow: none;
}

.top-bar-title {
    min-width: 0;
}

.top-bar-title h1 {
    margin: 0;
    color: var(--secondary);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.15;
}

.top-bar-title p {
    margin: 7px 0 0;
    color: var(--secondary);
    font-size: 13px;
    opacity: .68;
}

.top-bar-actions,
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile {
    min-width: 0;
}

.user-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--secondary);
    color: var(--main);
    font-size: 16px;
    font-weight: 750;
}

.user-info {
    min-width: 0;
}

.user-info-name {
    overflow: hidden;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info-role {
    color: var(--secondary);
    font-size: 11px;
    opacity: .65;
}

.alert {
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid var(--accent);
    border-left: 4px solid var(--accent);
    border-radius: 11px;
    background: var(--main);
    color: var(--secondary);
    font-size: 13px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 20px;
}

.card {
    min-width: 0;
    margin: 0;
    padding: 21px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 15px;
    background: var(--main);
    box-shadow: none;
    transition: border-color .18s ease, transform .18s ease;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: none;
    transform: translateY(-2px);
}

.stat-label {
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 650;
    opacity: .72;
}

.stat-value {
    overflow-wrap: anywhere;
    color: var(--secondary);
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.2;
}

.stat-unit {
    margin-top: 6px;
    color: var(--secondary);
    font-size: 11px;
    opacity: .62;
}

.meetings-section,
.timetable-wrapper,
.form-section {
    min-width: 0;
    margin: 18px 0 0;
    padding: clamp(17px, 2vw, 25px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--main);
    box-shadow: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 17px;
    color: var(--secondary);
    font-size: clamp(17px, 1.7vw, 20px);
    font-weight: 720;
    letter-spacing: -.02em;
}

.section-title-icon {
    display: none;
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.section-heading-row .section-title {
    margin-bottom: 17px;
}

.text-link {
    flex: 0 0 auto;
    margin-bottom: 17px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

.text-link:hover {
    color: var(--accent);
}

.bonus-note {
    margin-bottom: 17px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 650;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.portal-form {
    max-width: 900px;
}

.status-badge {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid rgba(87, 179, 218, .55);
    border-radius: 999px;
    background: rgba(87, 179, 218, .14);
    color: var(--secondary);
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.payout-status {
    border-color: var(--line);
    background: var(--main);
}

.meeting-list {
    display: grid;
    gap: 11px;
}

.meeting-detail-item {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: start;
}

.meeting-detail-item .meeting-date-box {
    position: sticky;
    top: 10px;
}

.meeting-description,
.meeting-meta {
    margin: 10px 0 0;
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.65;
    opacity: .82;
}

.meeting-meta strong {
    margin-right: 6px;
    opacity: 1;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--line);
}

.profile-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
}

.profile-summary h2 {
    margin: 0;
    color: var(--secondary);
    font-size: 18px;
}

.profile-summary p {
    margin: 3px 0 0;
    color: var(--secondary);
    font-size: 12px;
    overflow-wrap: anywhere;
    opacity: .68;
}

.resource-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
    gap: 16px;
}

.payout-area {
    margin-bottom: 18px;
}

.download-heading {
    margin-bottom: 14px;
}

.download-heading .section-title {
    margin-bottom: 4px;
}

.download-heading p {
    margin: 0;
    color: var(--secondary);
    font-size: 13px;
    opacity: .68;
}

.notification-center {
    display: grid;
    gap: 22px;
}

.notification-preferences {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px;
}

.notification-preferences > div {
    min-width: 0;
}

.notification-preferences .section-title {
    margin-bottom: 6px;
}

.notification-preferences p {
    max-width: 70ch;
    margin: 0;
    color: var(--secondary);
    font-size: 13px;
    opacity: .72;
}

.notification-preferences .push-status {
    margin-top: 9px;
    color: var(--secondary);
    font-weight: 650;
    opacity: 1;
}

.notification-preferences .btn {
    flex: 0 0 auto;
}

.notification-list-heading {
    margin-bottom: -8px;
}

.notification-list-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-card {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--main);
}

.notification-card.unread {
    border-left: 4px solid var(--accent);
}

.notification-card-copy {
    min-width: 0;
}

.notification-kind {
    display: inline-flex;
    margin-bottom: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(87, 179, 218, .16);
    color: var(--secondary);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.notification-card h3 {
    margin: 0;
    color: var(--secondary);
    font-size: 15px;
}

.notification-card p {
    margin: 4px 0;
    color: var(--secondary);
    font-size: 13px;
    overflow-wrap: anywhere;
    opacity: .78;
}

.notification-card time {
    color: var(--secondary);
    font-size: 11px;
    opacity: .58;
}

.notification-open {
    flex: 0 0 auto;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

.notification-badge {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    margin-left: auto;
    padding-inline: 5px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--secondary);
    font-size: 10px;
    font-weight: 800;
}

.notification-list-heading button.text-link {
    margin-bottom: 17px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.resource-card {
    display: flex;
    min-width: 0;
    min-height: 210px;
    flex-direction: column;
    align-items: flex-start;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--main);
}

.resource-type {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 11px;
    background: var(--secondary);
    color: var(--main);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}

.resource-copy {
    flex: 1;
    margin: 16px 0;
}

.resource-copy h2 {
    margin: 0;
    color: var(--secondary);
    font-size: 17px;
    letter-spacing: -.02em;
}

.resource-copy p {
    margin: 6px 0 0;
    color: var(--secondary);
    font-size: 12px;
    line-height: 1.5;
    opacity: .68;
}

.resource-card .btn {
    width: 100%;
}

.meeting-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0 0 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--main);
}

.meeting-item:last-child {
    margin-bottom: 0;
}

.meeting-date-box {
    padding: 9px 8px;
    border-radius: 10px;
    background: var(--secondary);
    color: var(--main);
    text-align: center;
}

.meeting-date-day {
    color: var(--accent);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.1;
}

.meeting-date-month {
    margin-top: 3px;
    color: var(--main);
    font-size: 10px;
    font-weight: 650;
    opacity: .8;
}

.meeting-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.meeting-title {
    overflow-wrap: anywhere;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
}

.meeting-time {
    color: var(--secondary);
    font-size: 12px;
    opacity: .67;
}

.meeting-link-btn {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 12px;
}

.no-meetings {
    padding: 26px 12px;
    border: 1px dashed var(--line);
    border-radius: 11px;
    color: var(--secondary);
    text-align: center;
    opacity: .7;
}

.no-meetings p {
    margin: 0;
}

.timetable-wrapper {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--accent) var(--main);
}

.timetable {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.timetable th,
.timetable td {
    text-align: left;
}

.timetable th {
    padding: 12px 13px;
    border-bottom: 1px solid var(--line);
    background: var(--secondary);
    color: var(--main);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.timetable td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
    color: var(--secondary);
    vertical-align: top;
}

.timetable tr:last-child td {
    border-bottom: 0;
}

.timetable tr:hover td {
    background: rgba(87, 179, 218, .08);
}

.timetable td [style*="color"] {
    color: var(--accent) !important;
}

.form-section form > div[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.dashboard-page .form-group {
    min-width: 0;
    margin-bottom: 15px;
}

.dashboard-page .form-label {
    display: block;
    margin-bottom: 7px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 650;
}

.dashboard-page .btn {
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--secondary);
    color: var(--main);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .dashboard-container {
        grid-template-columns: 218px minmax(0, 1fr);
    }

    .sidebar {
        padding-inline: 12px;
    }

    .main-content {
        padding: 24px 20px;
    }

    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .login-wrapper {
        min-height: 100svh;
        grid-template-columns: minmax(0, 1fr);
    }

    .login-section {
        min-height: auto;
        padding: 34px 22px 38px;
    }

    .login-logo-area {
        margin-bottom: 34px;
    }

    .login-page .login-section > .login-content > div[style*="margin-bottom"] {
        margin-bottom: 25px !important;
    }

    .login-header-text {
        margin-bottom: 25px;
    }

    .hero-section {
        min-height: 570px;
    }

    .carousel-container {
        min-height: 570px;
    }

    .carousel-slide,
    .carousel-slide:nth-child(n) {
        min-height: 570px;
        padding: 35px 24px 54px;
    }

    .hero-content {
        max-width: 540px;
    }

    .hero-icon {
        margin-bottom: 8px;
    }

    .hero-artwork {
        width: min(100%, 245px);
        max-height: 170px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: clamp(29px, 8vw, 38px);
    }

    .hero-text {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .carousel-dots {
        bottom: 19px;
    }

    .dashboard-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 2;
        width: 100%;
        height: auto;
        padding: 13px 15px 10px;
        overflow: hidden;
    }

    .sidebar-logo {
        margin: 0 0 10px;
        padding: 0 2px 11px;
    }

    .sidebar-logo-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .sidebar-menu {
        flex-direction: row;
        gap: 6px;
        padding: 1px 1px 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-color: var(--accent) var(--secondary);
    }

    .sidebar-item {
        min-height: 40px;
        flex: 0 0 auto;
        gap: 7px;
        padding: 8px 10px;
        border-radius: 9px;
        font-size: 12px;
    }

    .sidebar-item-icon {
        width: 12px;
        flex-basis: 12px;
        text-align: center;
    }

    .sidebar-item-icon::before {
        font-size: 15px;
    }

    .sidebar-menu .sidebar-item[style*="margin-top"] {
        margin-top: 0 !important;
    }

    .main-content {
        padding: 17px 14px 26px;
    }

    .portal-section {
        scroll-margin-top: 136px;
    }

    .top-bar {
        align-items: flex-start;
        margin-bottom: 15px;
        padding: 17px;
    }

    .top-bar-title p {
        max-width: 34ch;
    }

    .user-info {
        display: none;
    }

    .content-grid {
        gap: 10px;
        margin-bottom: 14px;
    }

    .stat-card:last-child {
        grid-column: auto;
    }

    .card {
        padding: 16px;
    }

    .stat-label {
        min-height: 34px;
        font-size: 11px;
    }

    .stat-value {
        font-size: clamp(20px, 6vw, 27px);
    }

    .meetings-section,
    .timetable-wrapper,
    .form-section {
        margin-top: 13px;
        padding: 16px;
        border-radius: 14px;
    }

    .section-title {
        margin-bottom: 13px;
        font-size: 17px;
    }

    .meeting-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .meeting-date-box {
        grid-row: span 2;
        padding: 8px 5px;
    }

    .meeting-date-day {
        font-size: 17px;
    }

    .meeting-link-btn {
        grid-column: 2;
        justify-self: start;
        min-height: 36px;
        padding: 8px 11px;
    }

    .form-section form > div[style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    .dashboard-page .btn {
        width: 100%;
    }

    .notification-preferences {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 17px;
    }

    .notification-card {
        align-items: flex-start;
        padding: 15px;
    }

    .notification-open {
        padding-top: 8px;
    }
}

@media (max-width: 420px) {
    .login-section {
        padding-inline: 18px;
    }

    .hero-section,
    .carousel-container,
    .carousel-slide,
    .carousel-slide:nth-child(n) {
        min-height: 610px;
    }

    .hero-artwork {
        width: min(100%, 220px);
        max-height: 150px;
    }

    .hero-features {
        gap: 8px;
    }

    .feature {
        padding: 11px;
    }

    .feature-text {
        font-size: 12px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-label {
        min-height: 0;
    }

    .top-bar {
        gap: 12px;
        padding: 15px;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.timetable td.empty-state {
    padding: 34px 16px;
    color: var(--secondary);
    opacity: .68;
    text-align: center;
}
