:root {
    --portal-navy: #0d2b45;
    --portal-navy-soft: #1a4667;
    --portal-saffron: #d88b1f;
    --portal-saffron-deep: #b97114;
    --portal-cream: #f7f1e5;
    --portal-sand: #efe3cc;
    --portal-ink: #18324a;
    --portal-muted: #62778b;
    --portal-border: #d7c7ad;
    --portal-surface: rgba(255, 252, 247, 0.96);
    --institution-board-top: #ff9933;
    --institution-board-top-deep: #db7f1f;
    --institution-board-top-soft: #ffb866;
    --institution-board-gold: #ff9933;
    --institution-board-gold-soft: #ffd08a;
    --institution-board-green: #1f8a3b;
    --institution-board-blue: #3e82b8;
    --institution-board-blue-deep: #2f699a;
    --institution-ink: #f7f3ea;
    --home-shell-offset: 0px;
    --home-footer-offset: 52px;
    --auth-banner-offset: 0px;
    --auth-header-offset: 0px;
    --auth-shell-offset: 0px;
    --auth-footer-offset: 52px;
}

body.portal-body {
    font-family: "Instrument Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(216, 139, 31, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(13, 43, 69, 0.12), transparent 28%),
        linear-gradient(180deg, #fcfaf6 0%, #f4ede2 100%);
    color: var(--portal-ink);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    text-underline-offset: 0.16em;
}

.portal-main {
    padding: clamp(0.7rem, 1.8vw, 1.35rem) 0 1.5rem;
}

.portal-container {
    position: relative;
}

.site-banner {
    background:
        radial-gradient(circle at 48% 3%, rgba(255, 208, 138, 0.26), transparent 16%),
        linear-gradient(180deg, rgba(255, 246, 222, 0.14), rgba(255, 246, 222, 0.03) 32%, transparent 56%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.05), transparent 44%),
        linear-gradient(135deg, var(--institution-board-top-deep) 0%, var(--institution-board-top) 58%, var(--institution-board-top-soft) 100%);
    color: #fff;
    border-bottom: 4px solid var(--institution-board-green);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.18),
        inset 0 -1px 0 rgba(92, 61, 42, 0.14);
}

.site-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(102deg, transparent 22%, rgba(255, 241, 214, 0.05) 36%, rgba(255, 247, 232, 0.18) 48%, rgba(255, 224, 170, 0.07) 60%, transparent 74%),
        linear-gradient(90deg, transparent 0%, rgba(255, 153, 51, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.site-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 249, 236, 0.14), transparent 24%),
        linear-gradient(180deg, transparent 72%, rgba(104, 72, 53, 0.08) 100%);
    pointer-events: none;
}

.site-banner-panel {
    position: relative;
    padding: 0.38rem 0 0.42rem;
}

.site-banner-panel::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.site-banner-inner {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    padding: 0.08rem 0 0.16rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
    color: inherit;
    text-decoration: none;
}

.brand-logo-wrap,
.footer-logo-wrap {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 18px rgba(5, 17, 28, 0.14);
}

.brand-logo-wrap {
    width: 58px;
    height: 58px;
    padding: 0.24rem;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.brand-kicker,
.brand-title {
    font-family: "Noto Sans Devanagari", "Instrument Sans", sans-serif;
}

.brand-kicker,
.brand-subtitle {
    font-size: 0.76rem;
    color: rgba(247, 243, 234, 0.82);
}

.brand-kicker {
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(92, 61, 42, 0.24);
}

.brand-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.22;
    text-wrap: balance;
    color: var(--institution-ink);
    text-shadow: 0 1px 0 rgba(92, 61, 42, 0.18);
}

.brand-subtitle {
    line-height: 1.35;
    max-width: 40rem;
    font-size: 0.72rem;
}

.header-menu-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: 0;
}

.header-menu-toggle {
    display: none;
    border-color: rgba(255, 248, 236, 0.28);
    box-shadow: none;
    padding: 0.3rem 0.48rem;
    border-radius: 0;
    background: rgba(255, 248, 236, 0.08);
}

.header-menu-toggle .navbar-toggler-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,248,236,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.header-menu-collapse {
    display: block;
}

.header-menu-collapse.collapse:not(.show) {
    display: block;
}

.header-menu-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.26rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.38rem 0.7rem;
    font-weight: 600;
    font-size: 0.86rem;
    color: #fffef8;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(78, 43, 10, 0.28);
    border: 1px solid rgba(255, 248, 236, 0.16);
    background: rgba(138, 76, 14, 0.12);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.header-menu-link:hover,
.header-menu-link:focus {
    color: #fff;
    background: rgba(255, 248, 236, 0.2);
    border-color: rgba(255, 248, 236, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.header-menu-link.active {
    color: #fff;
    background: rgba(255, 248, 236, 0.26);
    border-color: rgba(255, 248, 236, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.header-menu-admin {
    border-color: rgba(255, 248, 236, 0.58);
    background: rgba(33, 104, 45, 0.3);
    min-width: 92px;
}

.brand-dot {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--portal-saffron);
    box-shadow: 0 0 0 0.25rem rgba(216, 139, 31, 0.16);
}

.portal-card {
    border-radius: 1.4rem;
    border: 1px solid rgba(215, 199, 173, 0.6);
    background: var(--portal-surface);
    box-shadow: 0 18px 40px rgba(27, 46, 66, 0.08);
    backdrop-filter: blur(8px);
}

.portal-card .card-body {
    padding: clamp(1rem, 1.2vw + 0.8rem, 1.5rem) !important;
}

.alert {
    border-radius: 1rem;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--portal-saffron-deep);
}

.btn-portal-primary {
    background: linear-gradient(135deg, var(--portal-saffron) 0%, var(--portal-saffron-deep) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 10px 18px rgba(216, 139, 31, 0.2);
}

.btn-portal-primary:hover,
.btn-portal-primary:focus {
    background: linear-gradient(135deg, #c97d15 0%, #a96711 100%);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--portal-navy-soft);
    color: var(--portal-navy-soft);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--portal-navy-soft);
    border-color: var(--portal-navy-soft);
    color: #fff;
}

.hero-panel {
    border-radius: 1.6rem;
    padding: 1.45rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
        linear-gradient(135deg, var(--portal-navy) 0%, var(--portal-navy-soft) 74%, #2a648d 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(13, 43, 69, 0.18);
}

.hero-panel::before,
.hero-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.hero-panel::before {
    inset: -40px auto auto -25px;
    width: 170px;
    height: 170px;
}

.hero-panel::after {
    inset: auto -45px -80px auto;
    width: 230px;
    height: 230px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.58rem 0.85rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    min-width: 220px;
}

.hero-badge strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}

.hero-panel .display-6 {
    font-size: clamp(2rem, 2.4vw + 1.2rem, 3.1rem);
    line-height: 1.08;
}

.page-head {
    margin-bottom: 0.15rem;
}

.page-head-shell {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding-bottom: 0.82rem;
    border-bottom: 1px solid #e4d7c0;
}

.portal-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem;
    margin: 0 0 0.45rem;
    padding: 0;
    list-style: none;
    color: var(--portal-muted);
    font-size: 0.78rem;
}

.portal-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.portal-breadcrumb li + li::before {
    content: "/";
    color: #b9aa90;
}

.portal-breadcrumb a {
    color: var(--portal-muted);
    text-decoration: none;
}

.portal-breadcrumb a:hover,
.portal-breadcrumb a:focus {
    color: var(--portal-navy-soft);
}

.portal-breadcrumb .is-current {
    color: var(--portal-ink);
    font-weight: 600;
}

.page-head-title {
    margin: 0 0 0.15rem;
    color: var(--portal-navy);
    font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2.2rem);
    line-height: 1.08;
    font-weight: 700;
}

.page-head-text {
    margin: 0;
    color: var(--portal-muted);
    max-width: 54rem;
    line-height: 1.55;
}

.page-head-aside {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.page-head-badge {
    min-width: 172px;
    padding: 0.72rem 0.86rem;
    border: 1px solid #e4d7c0;
    background: #fbf8f2;
    color: var(--portal-ink);
}

.page-head-badge-label {
    display: block;
    margin-bottom: 0.14rem;
    color: var(--portal-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-head-badge strong {
    color: var(--portal-navy);
    font-size: 1.1rem;
}

.page-head-search {
    width: min(100%, 400px);
}

.page-head-search .input-group {
    flex-wrap: nowrap;
}

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

.stat-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 237, 0.96));
    border-radius: 1.3rem;
    padding: 1.1rem;
    height: 100%;
    border: 1px solid rgba(215, 199, 173, 0.52);
}

.stat-label {
    display: block;
    font-size: 0.83rem;
    color: var(--portal-muted);
    margin-bottom: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-number {
    font-size: 2.1rem;
    line-height: 1;
    font-weight: 700;
    color: var(--portal-navy);
    margin-bottom: 0.85rem;
}

.summary-tile,
.info-tile {
    border-radius: 1rem;
    background: #fbf8f2;
    padding: 0.8rem;
    border: 1px solid #eadfc8;
    height: 100%;
}

.summary-label {
    display: block;
    color: var(--portal-muted);
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-value {
    font-weight: 600;
    color: var(--portal-ink);
}

.profile-avatar {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 4px solid rgba(216, 139, 31, 0.16);
}

.profile-avatar-lg {
    width: 116px;
    height: 116px;
    object-fit: cover;
    border: 5px solid rgba(216, 139, 31, 0.16);
}

.directory-search {
    width: min(100%, 460px);
}

.letter-space {
    letter-spacing: 0.35em;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.85rem;
    vertical-align: middle;
}

.table thead th {
    background: #f7f1e5;
    color: var(--portal-navy);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #eadfc8;
}

.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
    border-radius: 0.95rem;
}

.form-control,
.form-select {
    border-color: #dac9ab;
    padding: 0.72rem 0.85rem;
    background: rgba(255, 255, 255, 0.95);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--portal-saffron);
    box-shadow: 0 0 0 0.22rem rgba(216, 139, 31, 0.16);
}

.btn,
.badge {
    border-radius: 999px;
}

.form-label {
    color: var(--portal-ink);
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.bot-challenge-wrap {
    width: 100%;
}

.bot-challenge {
    padding: 0.8rem 0.88rem;
    border-radius: 1rem;
    border: 1px solid #eadfc8;
    background: #fbf8f2;
}

.bot-challenge-title {
    margin-bottom: 0.35rem;
    color: var(--portal-saffron-deep);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bot-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.section-title {
    color: var(--portal-navy);
    font-weight: 700;
}

.auth-shell {
    position: relative;
    margin: 0 auto;
    padding: clamp(0.55rem, 0.55vw + 0.48rem, 0.8rem);
    border-radius: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 20%, rgba(120, 185, 255, 0.2), transparent 22%),
        radial-gradient(circle at 12% 92%, rgba(120, 185, 255, 0.22), transparent 18%),
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.08), transparent 16%),
        linear-gradient(135deg, #1c6fc5 0%, #1462b2 46%, #0c4f96 100%);
    box-shadow: 0 28px 54px rgba(13, 43, 69, 0.16);
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-shell::before {
    width: 18rem;
    height: 18rem;
    left: -6.5rem;
    bottom: -7rem;
    background: radial-gradient(circle, rgba(126, 185, 246, 0.32) 0%, rgba(126, 185, 246, 0.18) 44%, transparent 72%);
}

.auth-shell::after {
    width: 14rem;
    height: 14rem;
    top: -6.2rem;
    left: -3.2rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 62%, transparent 74%);
}

.auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 1.05fr) minmax(360px, 0.95fr);
    gap: 0.8rem;
    align-items: center;
    min-height: clamp(380px, 52vh, 500px);
}

.auth-info-card {
    height: 100%;
    color: #fff;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-info-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(0.65rem, 1vw, 1rem) clamp(0.55rem, 1vw, 1rem) !important;
}

.auth-info-title {
    margin: 0.12rem 0 0.35rem;
    color: #fff;
    font-size: clamp(1.65rem, 1.35vw + 1rem, 2.6rem);
    line-height: 0.96;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-info-text {
    margin: 0;
    max-width: 28rem;
    color: rgba(240, 246, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-info-stack {
    display: grid;
    gap: 0.45rem;
    max-width: 27rem;
}

.auth-info-item {
    padding: 0.55rem 0.65rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-info-item strong {
    display: block;
    margin-bottom: 0.16rem;
    color: #fff;
    font-size: 0.9rem;
}

.auth-info-item span {
    color: rgba(236, 244, 255, 0.78);
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-panel {
    width: min(100%, 28rem);
    margin-left: auto;
    overflow: hidden;
    border-radius: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 54px rgba(12, 41, 74, 0.3);
}

.auth-panel.auth-panel-wide {
    width: min(100%, 38rem);
}

.auth-panel .card-body {
    padding: clamp(0.68rem, 0.55vw + 0.6rem, 0.92rem) !important;
}

.auth-heading {
    max-width: 30rem;
    margin-bottom: 0.6rem !important;
}

.auth-heading .h3,
.auth-heading h1 {
    margin-bottom: 0.25rem !important;
}

.auth-heading p {
    font-size: 0.88rem;
    line-height: 1.38;
}

.auth-info-card .eyebrow {
    color: rgba(232, 242, 255, 0.76);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
}

.auth-panel .eyebrow {
    color: #1d6ebe;
    letter-spacing: 0.12em;
}

.auth-block-title,
.auth-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #1e5d95;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-block-title {
    margin-bottom: 0.55rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eadfc8;
}

.auth-block-title::before,
.auth-section-title::before {
    content: "";
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b83d9, #0e5aa4);
    box-shadow: 0 0 0 0.16rem rgba(30, 110, 190, 0.12);
}

.auth-section-title {
    margin-top: 0.12rem;
    padding-top: 0.35rem;
    border-top: 1px solid #eadfc8;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.auth-check {
    margin-top: 0.15rem;
}

.auth-check .form-check-input {
    margin-top: 0.28rem;
}

.auth-check .form-check-label {
    color: var(--portal-ink);
    font-weight: 500;
    line-height: 1.5;
}

.auth-check .form-check-label a {
    color: var(--portal-navy-soft);
    font-weight: 700;
}

.auth-check .form-check-label a:hover,
.auth-check .form-check-label a:focus {
    color: var(--portal-saffron-deep);
}

.auth-actions .btn-portal-primary {
    min-width: 220px;
}

.auth-link-row {
    margin-top: 0.3rem;
}

.otp-input {
    font-weight: 700;
}

.page-auth .auth-panel form.row,
.page-auth .auth-panel form.row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.48rem;
}

.page-auth .auth-panel form.mb-3 {
    margin-bottom: 0.55rem !important;
}

.page-auth .btn-portal-primary {
    background: linear-gradient(135deg, #1f73ca 0%, #0f5da9 100%);
    box-shadow: 0 12px 22px rgba(17, 95, 170, 0.22);
    padding: 0.54rem 0.9rem;
}

.page-auth .btn-portal-primary:hover,
.page-auth .btn-portal-primary:focus {
    background: linear-gradient(135deg, #165fa9 0%, #0a4b89 100%);
}

.page-auth .form-control {
    border-radius: 0;
    padding: 0.48rem 0.62rem;
    border-color: #d7e3ef;
    box-shadow: none;
}

.page-auth .form-label {
    margin-bottom: 0.22rem;
    font-size: 0.86rem;
}

.page-auth .form-text {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.page-auth .form-control:focus {
    border-color: #84b6ea;
    box-shadow: 0 0 0 0.2rem rgba(39, 119, 203, 0.12);
}

.page-auth .portal-main {
    padding: var(--auth-header-offset) 0 var(--auth-footer-offset);
    min-height: 100svh;
}

.page-auth .portal-container.container {
    max-width: 100%;
    padding: 0;
}

.page-auth .site-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 32;
}

.page-auth .portal-navbar {
    position: fixed;
    top: var(--auth-banner-offset);
    left: 0;
    right: 0;
    z-index: 31;
}

.page-auth .auth-shell {
    width: 100%;
    margin: 0;
    min-height: calc(100svh - var(--auth-header-offset) - var(--auth-footer-offset));
    padding-left: max(0.75rem, calc((100vw - 1320px) / 2 + 0.75rem));
    padding-right: max(0.75rem, calc((100vw - 1320px) / 2 + 0.75rem));
}

.page-auth .site-footer {
    margin-top: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    box-shadow: 0 -8px 22px rgba(13, 43, 69, 0.08);
}

.page-home .portal-main {
    padding: 0;
    overflow: visible;
    min-height: 0;
}

.page-home .portal-container.container {
    max-width: 100%;
    padding: 0;
}

.portal-body.page-home {
    overflow-x: hidden;
}

.page-home .site-footer {
    margin-top: 0;
    position: static;
    background:
        radial-gradient(circle at top left, rgba(216, 139, 31, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(245, 241, 232, 0.97), rgba(238, 232, 220, 0.99));
    border-top: 1px solid rgba(215, 199, 173, 0.65);
    backdrop-filter: none;
    box-shadow: none;
}

.page-home .site-footer-panel {
    padding: 0.55rem 0 0.6rem;
}

.page-home .site-footer-inner {
    gap: 0.55rem;
}

.page-home .footer-meta {
    color: var(--portal-muted);
    font-size: 0.74rem;
}

.page-home .footer-meta-link {
    color: var(--institution-board-blue-deep);
}

.page-home .footer-meta-separator {
    color: rgba(98, 119, 139, 0.7);
}

.home-hero {
    position: relative;
    min-height: clamp(560px, calc(100svh - var(--home-shell-offset)), 820px);
    width: 100%;
    background:
        linear-gradient(135deg, rgba(16, 27, 42, 0.8), rgba(10, 17, 28, 0.48)),
        linear-gradient(180deg, rgba(255, 153, 51, 0.14), rgba(255, 153, 51, 0)),
        url("../images/mainslide.webp") center center / cover no-repeat;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(6, 10, 18, 0.18), rgba(6, 10, 18, 0.6));
    pointer-events: none;
}

.home-hero-overlay {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.35rem 2rem 1.75rem;
}

.home-hero-content {
    width: min(100%, 760px);
    text-align: left;
    color: #fff;
    margin-left: clamp(0rem, 4vw, 3.5rem);
}

.home-hero-kicker {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.44rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 248, 236, 0.94);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-hero-title {
    max-width: 10ch;
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: clamp(2.5rem, 4.2vw, 4.7rem);
    line-height: 0.96;
    font-weight: 700;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.home-hero-subtitle {
    max-width: 34rem;
    margin: 0 0 0.55rem;
    color: rgba(255, 247, 236, 0.95);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.45;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.home-hero-text {
    max-width: 42rem;
    margin: 0;
    color: rgba(255, 247, 236, 0.92);
    font-size: 0.98rem;
    line-height: 1.62;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.home-hero-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.9rem;
}

.home-login-btn {
    min-width: 250px;
    padding: 0.95rem 1.55rem;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, #ff9933 0%, #ffb452 52%, #f17d18 100%);
    color: #fff;
    box-shadow:
        0 18px 34px rgba(241, 125, 24, 0.28),
        inset 0 1px 0 rgba(255, 240, 210, 0.42);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-login-btn:hover,
.home-login-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #f08b23 0%, #ffaf44 52%, #e96f10 100%);
    transform: translateY(-1px);
}

.home-section {
    padding: 2.3rem 0 0;
}

.home-section-inner {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.home-section-title {
    margin: 0;
    color: #22262d;
    font-size: clamp(2rem, 2vw + 1.2rem, 3rem);
    line-height: 1;
    font-weight: 600;
}

.home-section-subtitle {
    margin: 0.2rem 0 0;
    color: #8a8c90;
    font-size: clamp(0.95rem, 0.5vw + 0.88rem, 1.12rem);
}

.home-members-total {
    text-align: right;
    color: #2b2f36;
}

.home-members-total strong {
    display: block;
    font-size: clamp(2rem, 2vw + 1.25rem, 3.3rem);
    line-height: 0.95;
    font-weight: 600;
}

.home-members-total span {
    display: block;
    margin-top: 0.15rem;
    font-size: clamp(1rem, 0.8vw + 0.8rem, 1.25rem);
    font-weight: 600;
}

.home-section-lead {
    margin: 0 0 1.15rem;
    color: #2d3138;
    font-size: clamp(1rem, 0.55vw + 0.9rem, 1.2rem);
    line-height: 1.5;
}

.home-section-lead a {
    color: #1d232d;
    font-weight: 700;
}

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

.home-member-card {
    position: relative;
    text-align: center;
    padding: 1.35rem 1.05rem 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #ece5d8;
    border-radius: 1.15rem;
    box-shadow: 0 16px 30px rgba(27, 46, 66, 0.06);
}

.home-member-verified {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #77d57e;
    color: #59bf63;
    font-weight: 700;
    font-size: 1rem;
}

.home-member-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1rem;
}

.home-member-name {
    margin: 0 0 0.28rem;
    color: #11161d;
    font-size: 1.15rem;
    font-weight: 700;
}

.home-member-meta,
.home-member-detail {
    margin: 0;
    color: #666a72;
    line-height: 1.45;
}

.home-member-detail {
    margin-top: 0.22rem;
}

.home-latest-section {
    padding-bottom: 2.2rem;
}

.home-mini-head {
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e4d7c0;
}

.home-mini-title {
    margin: 0;
    color: #b36446;
    font-size: clamp(1.7rem, 1vw + 1.2rem, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-latest-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-latest-item {
    display: flex;
    justify-content: center;
}

.home-latest-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 170px;
    border-radius: 50%;
    object-fit: cover;
}

.dashboard-hero {
    box-shadow: 0 20px 40px rgba(13, 43, 69, 0.2);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.82fr);
    gap: 1rem;
    align-items: start;
}

.dashboard-side {
    position: sticky;
    top: 0.75rem;
}

.dashboard-main-header {
    margin-bottom: 0.75rem;
}

.dashboard-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-context-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.dashboard-context-item {
    border: 1px solid #eadfc8;
    background: rgba(255, 252, 247, 0.98);
    border-radius: 1rem;
    padding: 0.72rem 0.82rem;
}

.dashboard-context-item strong {
    display: block;
    color: var(--portal-navy);
    font-size: 1rem;
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--portal-saffron), var(--portal-navy-soft));
}

.dashboard-profile-progress {
    background: #fbf5eb;
    border: 1px solid #eadfc8;
    border-radius: 1rem;
    padding: 0.82rem;
}

.dashboard-progress-value {
    color: var(--portal-navy);
    font-weight: 700;
}

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

.dashboard-action-stack {
    display: grid;
    gap: 0.7rem;
}

.dashboard-action-card {
    display: block;
    padding: 0.82rem;
    border-radius: 1rem;
    border: 1px solid #eadfc8;
    background: #fbf8f2;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 139, 31, 0.45);
    box-shadow: 0 12px 20px rgba(27, 46, 66, 0.08);
}

.dashboard-action-card.is-disabled {
    opacity: 0.82;
}

.dashboard-action-title {
    color: var(--portal-navy);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.dashboard-action-text {
    color: var(--portal-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.dashboard-checklist {
    display: grid;
    gap: 0.65rem;
}

.dashboard-check-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.82rem;
    border-radius: 0.95rem;
    border: 1px solid #eadfc8;
    background: #fffdfa;
    color: var(--portal-ink);
}

.dashboard-check-item.is-done {
    background: #f2f9f3;
    border-color: rgba(40, 167, 69, 0.22);
}

.dashboard-check-mark {
    flex: 0 0 auto;
    min-width: 76px;
    text-align: center;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #8a5b15;
    background: #fbf0dc;
}

.dashboard-check-item.is-done .dashboard-check-mark {
    color: #1f6a31;
    background: #dff0e3;
}

.dashboard-post-card {
    display: flex;
    flex-direction: column;
}

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

.dashboard-mini-stat {
    color: var(--portal-navy);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.dashboard-connection-list {
    display: grid;
    gap: 0.72rem;
}

.dashboard-connection-item {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.7rem;
    border-radius: 1rem;
    background: #fbf8f2;
    border: 1px solid #eadfc8;
}

.dashboard-connection-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 3px solid rgba(216, 139, 31, 0.16);
}

.profile-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem;
}

.profile-side {
    position: sticky;
    top: 1rem;
    height: fit-content;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.profile-role {
    color: var(--portal-muted);
}

.profile-progress {
    height: 0.7rem;
    background: #e6d8bf;
    border-radius: 999px;
    overflow: hidden;
}

.profile-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--portal-saffron), var(--portal-saffron-deep));
}

.directory-card {
    position: relative;
    overflow: hidden;
}

.directory-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--portal-saffron), var(--portal-navy-soft));
}

.feed-card {
    overflow: hidden;
}

.feed-shell,
.discussion-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 340px;
    gap: 0.95rem;
    align-items: start;
}

.discussion-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.feed-side-column,
.feed-compose-column,
.discussion-side {
    position: sticky;
    top: 0.75rem;
}

.feed-main-column,
.discussion-main {
    min-width: 0;
}

.feed-side-card,
.timeline-composer,
.timeline-header,
.timeline-empty,
.reply-box {
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid rgba(215, 199, 173, 0.72);
    border-radius: 1.35rem;
    padding: 0.82rem 0.92rem;
    box-shadow: 0 12px 30px rgba(27, 46, 66, 0.06);
}

.feed-side-card + .feed-side-card {
    margin-top: 0.75rem;
}

.feed-side-title,
.timeline-title {
    color: var(--portal-navy);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.35rem 0;
}

.feed-side-text,
.timeline-subtitle {
    color: var(--portal-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.feed-side-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.68rem 0;
    border-bottom: 1px dashed #e4d7c0;
}

.feed-side-metric:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.feed-side-metric strong {
    color: var(--portal-navy);
    font-size: 1.25rem;
}

.feed-side-metric span {
    color: var(--portal-muted);
    text-align: right;
    font-size: 0.9rem;
}

.feed-tip-list {
    margin: 0.55rem 0 0;
    padding-left: 1.1rem;
    color: var(--portal-muted);
}

.feed-tip-list li + li {
    margin-top: 0.55rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.timeline-composer {
    margin-bottom: 0.75rem;
}

.timeline-composer-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.composer-textarea {
    min-height: 104px;
    resize: vertical;
}

.timeline-stream {
    border: 1px solid rgba(215, 199, 173, 0.72);
    border-radius: 1.35rem;
    overflow: hidden;
    background: rgba(255, 252, 247, 0.98);
    box-shadow: 0 12px 30px rgba(27, 46, 66, 0.06);
}

.timeline-post {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.82rem 0.85rem 0.92rem;
    border-bottom: 1px solid rgba(226, 214, 193, 0.85);
}

.timeline-post:last-child {
    border-bottom: 0;
}

.timeline-post:hover {
    background: rgba(247, 241, 229, 0.44);
}

.timeline-post-detail:hover,
.timeline-comment-post:hover {
    background: transparent;
}

.timeline-avatar-col {
    display: flex;
    justify-content: center;
}

.timeline-content-col {
    min-width: 0;
}

.timeline-post-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
}

.timeline-author-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.94rem;
}

.timeline-author {
    font-weight: 700;
    color: var(--portal-ink);
}

.timeline-handle,
.timeline-time,
.timeline-dot {
    color: var(--portal-muted);
}

.timeline-post-title {
    margin: 0.05rem 0 0.28rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--portal-navy);
}

.timeline-post-body {
    color: var(--portal-ink);
    line-height: 1.58;
    word-break: break-word;
}

.feed-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid #eadfc8;
    background: #f7f1e5;
}

.feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: var(--portal-muted);
    font-size: 0.92rem;
}

.feed-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.7rem;
}

.timeline-actions > * {
    min-width: 0;
}

.timeline-actions form {
    display: flex;
}

.timeline-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.55rem 0.8rem;
    min-width: 96px;
    border-radius: 999px;
    border: 1px solid #e3d7c2;
    background: #fff;
    color: var(--portal-muted);
    font-size: 0.88rem;
    text-decoration: none;
}

button.timeline-action {
    appearance: none;
    cursor: pointer;
}

.timeline-action strong {
    color: var(--portal-navy);
    font-size: 0.88rem;
}

.timeline-action:hover,
.timeline-action.is-active {
    border-color: rgba(216, 139, 31, 0.55);
    background: #fbf3e6;
    color: var(--portal-saffron-deep);
}

.timeline-delete {
    border: 0;
    background: transparent;
    color: #a55252;
    font-size: 0.84rem;
    padding: 0;
}

.timeline-delete:hover {
    color: #842d2d;
}

.static-action {
    cursor: default;
}

.mobile-composer {
    display: none;
}

.thread-stream {
    margin-top: 1rem;
}

.reply-box {
    margin-top: 0.75rem;
}

.timeline-comment-post {
    grid-template-columns: 52px minmax(0, 1fr);
}

.comment-card {
    background: #fcf8f1;
    border: 1px solid #eadfc8;
    border-radius: 1rem;
    padding: 1rem;
}

.comment-avatar {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 3px solid rgba(216, 139, 31, 0.16);
}

.directory-meta {
    color: var(--portal-muted);
    font-size: 0.92rem;
}

.site-footer {
    border-top: 1px solid rgba(215, 199, 173, 0.65);
    background:
        radial-gradient(circle at top left, rgba(216, 139, 31, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(245, 241, 232, 0.97), rgba(238, 232, 220, 0.99));
    margin-top: 1.15rem;
}

.site-footer-panel {
    padding: 0.55rem 0 0.6rem;
}

.site-footer-inner {
    display: flex;
    justify-content: center;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--portal-muted);
    font-size: 0.74rem;
    text-align: center;
}

.footer-meta-link {
    color: var(--institution-board-blue-deep);
    font-weight: 700;
    text-decoration: none;
}

.footer-meta-link:hover,
.footer-meta-link:focus {
    color: var(--portal-saffron-deep);
}

.footer-meta-separator {
    color: rgba(98, 119, 139, 0.7);
}

.meta-list {
    display: grid;
    gap: 0.6rem;
}

.legal-copy {
    display: grid;
    gap: 1.25rem;
}

.legal-section h2 {
    margin: 0 0 0.45rem;
    color: var(--portal-navy);
    font-size: 1.12rem;
}

.legal-section p,
.legal-section li {
    color: var(--portal-ink);
    line-height: 1.7;
}

.legal-section p:last-child,
.legal-section ul:last-child {
    margin-bottom: 0;
}

.legal-list {
    margin: 0;
    padding-left: 1.2rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #e4d7c0;
}

.meta-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.meta-item span:first-child {
    color: var(--portal-muted);
}

.meta-item span:last-child {
    color: var(--portal-ink);
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.form-section {
    padding-top: 0.25rem;
    margin-top: 0.72rem;
    border-top: 1px solid #eadfc8;
}

.responsive-table .table {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .hero-grid,
    .site-footer-inner,
    .profile-shell {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .auth-layout {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        min-height: 0;
    }

    .dashboard-side {
        position: static;
    }

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

    .auth-panel {
        order: 1;
        width: 100%;
        margin-left: 0;
    }

    .auth-info-card {
        order: 2;
    }

    .site-banner-inner {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .site-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-menu-wrap {
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-end;
        align-items: flex-start;
        position: relative;
    }

    .header-menu-toggle {
        display: none;
    }

    .header-menu-collapse,
    .header-menu-collapse.collapse:not(.show) {
        display: block;
        width: auto;
        margin-top: 0;
        background: none;
        border: 0;
        padding: 0;
    }

    .header-menu-list {
        width: auto;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 0.2rem;
    }

    .header-menu-link,
    .header-menu-admin {
        width: auto;
        justify-content: center;
        min-height: 1.8rem;
        padding: 0.24rem 0.45rem;
        font-size: 0.78rem;
    }

    .page-head-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .page-head-aside {
        justify-content: flex-start;
    }

    .page-head-search {
        width: 100%;
    }

    .home-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-members-total {
        text-align: left;
    }

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

    .home-latest-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .profile-side {
        position: static;
    }

    .feed-shell,
    .discussion-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-action-grid,
    .dashboard-engagement-grid {
        grid-template-columns: 1fr;
    }

    .feed-side-column,
    .feed-compose-column,
    .discussion-side {
        position: static;
    }

    .feed-compose-column {
        display: none;
    }

    .mobile-composer {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .site-banner {
        overflow: visible;
    }

    .portal-main {
        padding: 0.65rem 0 1.25rem;
    }

    .page-home .portal-main {
        padding: 0;
    }

    .hero-panel,
    .stat-card,
    .portal-card .card-body {
        padding: 0.95rem !important;
    }

    .page-head-shell {
        padding-bottom: 0.68rem;
    }

    .page-head-title {
        font-size: 1.28rem;
    }

    .page-head-text {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .page-head-badge {
        min-width: 0;
        width: 100%;
        padding: 0.62rem 0.72rem;
    }

    .site-banner-inner {
        padding: 0.55rem 0;
        gap: 0.4rem;
    }

    .site-brand,
    .footer-brand {
        align-items: flex-start;
    }

    .brand-logo-wrap {
        width: 50px;
        height: 50px;
    }

    .brand-title {
        font-size: 0.82rem;
        line-height: 1.16;
    }

    .brand-kicker,
    .footer-text {
        font-size: 0.72rem;
    }

    .brand-subtitle {
        display: none;
    }

    .header-menu-wrap {
        align-self: flex-start;
    }

    .header-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.22rem 0.34rem;
        min-width: 2rem;
        min-height: 2rem;
    }

    .header-menu-collapse {
        position: absolute;
        top: calc(100% + 0.3rem);
        right: 0;
        z-index: 40;
        width: min(220px, 72vw);
        margin-top: 0;
        padding: 0.38rem;
        background: rgba(177, 99, 18, 0.94);
        border: 1px solid rgba(255, 240, 216, 0.18);
        box-shadow: 0 12px 24px rgba(74, 38, 9, 0.22);
        backdrop-filter: blur(8px);
    }

    .header-menu-collapse.collapse:not(.show) {
        display: none;
    }

    .header-menu-list {
        width: 100%;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.16rem;
    }

    .header-menu-link,
    .header-menu-admin {
        width: 100%;
        justify-content: flex-start;
        padding: 0.34rem 0.46rem;
        min-height: 1.7rem;
        font-size: 0.76rem;
        line-height: 1.1;
    }

    .site-footer-inner {
        gap: 0.55rem;
    }

    .page-home .site-footer-panel {
        padding: 0.55rem 0 0.6rem;
    }

    .page-home .footer-meta {
        font-size: 0.74rem;
    }

    .auth-shell {
        padding: 0.55rem;
        border-radius: 0;
    }

    .auth-panel {
        border-radius: 0;
    }

    .auth-info-card .card-body {
        gap: 0.5rem;
        padding: 0.2rem 0 0 !important;
    }

    .auth-info-title {
        font-size: 1.45rem;
        line-height: 0.98;
    }

    .auth-info-text {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .auth-info-item {
        padding: 0.5rem 0.58rem;
    }

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

    .bot-challenge {
        padding: 0.56rem 0.62rem;
    }

    .page-auth .auth-shell {
        padding: 0;
        background: none;
        box-shadow: none;
        padding-left: 0;
        padding-right: 0;
    }

    .page-auth .auth-shell::before,
    .page-auth .auth-shell::after {
        display: none;
    }

    .page-auth .auth-info-card {
        display: none;
    }

    .page-auth .auth-panel,
    .page-auth .auth-panel.auth-panel-wide {
        width: 100%;
        margin-left: 0;
        box-shadow: 0 10px 24px rgba(12, 41, 74, 0.12);
    }

    .home-hero-title {
        max-width: none;
        font-size: 1.52rem;
        line-height: 1;
    }

    .home-hero-overlay {
        padding: 1rem 1rem 1.25rem;
    }

    .home-hero,
    .home-hero-overlay {
        min-height: clamp(460px, calc(100svh - var(--home-shell-offset)), 620px);
        height: auto;
    }

    .home-hero-overlay {
        justify-content: center;
    }

    .home-hero-content {
        margin-left: 0;
        text-align: center;
    }

    .home-hero-subtitle {
        max-width: none;
        margin: 0 auto 0.5rem;
        font-size: 0.84rem;
    }

    .home-hero-title,
    .home-hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-text {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .home-hero-actions .btn {
        width: 100%;
    }

    .home-section {
        padding-top: 1.55rem;
    }

    .home-section-inner {
        padding: 0 0.95rem;
    }

    .home-section-title {
        font-size: 1.75rem;
    }

    .home-section-subtitle,
    .home-section-lead {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .home-members-grid {
        grid-template-columns: 1fr;
        gap: 0.72rem;
    }

    .home-member-card {
        padding: 1rem 0.9rem 0.92rem;
    }

    .home-member-avatar {
        width: 122px;
        height: 122px;
        margin-bottom: 0.75rem;
    }

    .home-member-name {
        font-size: 1rem;
    }

    .home-latest-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .home-mini-head {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .home-mini-title {
        font-size: 1.3rem;
    }

    .auth-actions .btn,
    .auth-actions a {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
        text-align: center;
    }

    .hero-badge {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .directory-search .input-group {
        display: grid;
        gap: 0.75rem;
    }

    .directory-search .btn {
        width: 100%;
        border-radius: 999px !important;
    }

    .nav-shell {
        gap: 0.8rem;
        padding: 0.02rem 0;
    }

    .portal-nav-brand {
        font-size: 0.88rem;
    }

    .table-responsive {
        font-size: 0.95rem;
    }

    .dashboard-context-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-header-actions {
        width: 100%;
    }

    .dashboard-header-actions .btn {
        flex: 1 1 100%;
    }

    .timeline-header,
    .timeline-post-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-post {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 0.72rem 0.72rem 0.82rem;
    }

    .timeline-actions > * {
        flex: 1 1 calc(50% - 0.3rem);
    }

    .timeline-action {
        min-width: 84px;
        width: 100%;
        justify-content: center;
        font-size: 0.82rem;
    }

    .feed-side-card,
    .timeline-composer,
    .timeline-header,
    .timeline-empty,
    .reply-box {
        padding: 0.8rem;
        border-radius: 1.1rem;
    }

    .profile-avatar {
        width: 72px;
        height: 72px;
    }

    .profile-avatar-lg {
        width: 96px;
        height: 96px;
    }

    .meta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .meta-item span:last-child {
        text-align: left;
    }

    .responsive-table {
        padding: 0.85rem;
    }

    .responsive-table table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .responsive-table tr {
        border: 1px solid rgba(215, 199, 173, 0.72);
        border-radius: 1.05rem;
        overflow: hidden;
        background: rgba(255, 252, 247, 0.98);
        box-shadow: 0 10px 24px rgba(27, 46, 66, 0.05);
    }

    .responsive-table td {
        position: relative;
        padding: 0.95rem 1rem 0.95rem 8.5rem !important;
        min-height: 3.8rem;
        text-align: left !important;
        border-bottom: 1px dashed #e4d7c0;
    }

    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        top: 1rem;
        left: 1rem;
        width: 6.5rem;
        color: var(--portal-muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .responsive-table td:last-child {
        border-bottom: 0;
    }

    .responsive-table .table-actions-cell {
        padding-left: 1rem !important;
    }

    .responsive-table .table-actions-cell::before {
        position: static;
        display: block;
        width: auto;
        margin-bottom: 0.7rem;
    }

    .responsive-table .table-actions-cell .d-flex {
        justify-content: flex-start !important;
    }

    .responsive-table .table-actions-cell .btn,
    .responsive-table .table-actions-cell form {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .portal-nav-collapse {
        margin-top: 0;
    }
}
