:root {
    --nmu-green: #00533f;
    --nmu-green-dark: #063f2f;
    --nmu-green-light: #e8f4ef;
    --nmu-teal: #0b7d61;
    --nmu-gold: #e7a51d;
    --nmu-blue: #2f6fed;
    --nmu-purple: #7357c8;
    --nmu-red: #d9374e;
    --nmu-text: #17202a;
    --nmu-muted: #6f7b8b;
    --nmu-line: #e3e8ed;
    --nmu-bg: #f4f7f6;
    --nmu-white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(25, 48, 42, .06);
    --shadow-md: 0 18px 50px rgba(25, 48, 42, .12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--nmu-bg);
    color: var(--nmu-text);
    font-family: inherit;
    line-height: 1.5;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
a,
input,
select,
textarea {
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(47, 111, 237, .28);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--nmu-green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 83, 63, .16);
}

.btn-primary:hover {
    background: var(--nmu-green-dark);
}

.btn-secondary {
    border-color: #cfd8d5;
    background: #fff;
    color: var(--nmu-green);
}

.btn-soft {
    background: var(--nmu-green-light);
    color: var(--nmu-green);
}

.btn-danger {
    background: #fff0f2;
    color: var(--nmu-red);
}

.btn-block {
    width: 100%;
}

.muted {
    color: var(--nmu-muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--nmu-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nmu-gold);
    content: "";
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-green { background: #e6f7ef; color: #08764d; }
.status-yellow { background: #fff6d8; color: #a56c00; }
.status-blue { background: #eaf0ff; color: #2f63cf; }
.status-red { background: #ffedf0; color: #c62d44; }
.status-gray { background: #eef1f3; color: #697582; }

/* Mockup index */
.catalog-body {
    background:
        radial-gradient(circle at 0 0, rgba(14, 125, 96, .12), transparent 32%),
        radial-gradient(circle at 100% 10%, rgba(231, 165, 29, .12), transparent 25%),
        #f6f8f7;
}

.catalog {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 70px;
}

.catalog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.catalog-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.catalog-brand img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.catalog h1 {
    margin: 5px 0 6px;
    color: var(--nmu-green-dark);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
}

.catalog-note {
    max-width: 360px;
    border: 1px solid #dce7e2;
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    padding: 15px 18px;
    color: #53635e;
    font-size: 13px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid #e0e8e5;
    border-radius: 20px;
    background: #fff;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    border-color: #a8c6bc;
    box-shadow: var(--shadow-md);
}

.catalog-number {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: var(--nmu-green-light);
    color: var(--nmu-green);
    font-size: 17px;
    font-weight: 900;
}

.catalog-card h2 {
    margin: 28px 0 7px;
    color: #1b2d27;
    font-size: 20px;
}

.catalog-card p {
    margin: 0;
    color: var(--nmu-muted);
    font-size: 14px;
}

.catalog-link {
    position: absolute;
    right: 22px;
    bottom: 20px;
    color: var(--nmu-green);
    font-size: 14px;
    font-weight: 800;
}

/* Authentication */
.auth-page {
    min-height: 100vh;
    background: #fff;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.55fr) minmax(430px, .75fr);
}

.auth-art {
    position: relative;
    overflow: hidden;
    background: #dff5f7;
}

.auth-art > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-art::after {
    position: absolute;
    inset: auto 0 0;
    height: 26%;
    background: linear-gradient(0deg, rgba(0, 61, 83, .38), transparent);
    content: "";
}

.auth-art-copy {
    position: absolute;
    z-index: 1;
    right: 42px;
    bottom: 38px;
    left: 42px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .2);
}

.auth-art-copy strong {
    display: block;
    font-size: 24px;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 54px;
}

.auth-card {
    width: min(100%, 520px);
}

.auth-logo {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.auth-card h1 {
    margin: 0 0 6px;
    color: var(--nmu-green-dark);
    font-size: clamp(30px, 4vw, 44px);
    text-align: center;
}

.auth-card > p {
    margin: 0 0 30px;
    color: var(--nmu-muted);
    text-align: center;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: #313b45;
    font-size: 14px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #dfe4e7;
    border-radius: 12px;
    background: #f5f6f6;
    padding: 12px 14px;
    color: var(--nmu-text);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.field input,
.field select {
    min-height: 48px;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--nmu-teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 125, 97, .09);
    outline: none;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64707a;
    transform: translateY(-50%);
    cursor: pointer;
}

.form-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #55616b;
}

.checkbox input {
    width: 17px;
    height: 17px;
    accent-color: var(--nmu-green);
}

.text-link {
    color: var(--nmu-green);
    font-weight: 800;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #9ba4aa;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: #e4e8ea;
    content: "";
}

.auth-help {
    margin-top: 22px;
    color: #6d7780;
    font-size: 12px;
    text-align: center;
}

/* Keep authentication forms inside the viewport on shorter screens. */
.auth-fit-page {
    overflow: hidden;
}

.auth-fit-page .auth-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}

.auth-fit-page .auth-panel {
    min-height: 0;
    overflow-y: auto;
    padding: clamp(20px, 5vh, 44px) clamp(30px, 4vw, 54px);
}

.auth-fit-page .auth-logo {
    width: clamp(72px, 12vh, 104px);
    height: clamp(72px, 12vh, 104px);
    margin-bottom: clamp(10px, 2vh, 18px);
}

.auth-fit-page .auth-card h1 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
}

.auth-fit-page .auth-card > p {
    margin-bottom: clamp(14px, 3vh, 26px);
}

.auth-fit-page .form-stack {
    gap: clamp(10px, 1.8vh, 16px);
}

.auth-fit-page .field {
    gap: 5px;
}

.auth-fit-page .field input {
    min-height: clamp(42px, 6vh, 48px);
}

.auth-fit-page .auth-divider {
    margin: clamp(10px, 2vh, 18px) 0;
}

.auth-fit-page .auth-help {
    margin-top: clamp(10px, 2vh, 18px);
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .auth-fit-page {
        overflow: auto;
    }

    .auth-fit-page .auth-shell {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .auth-fit-page .auth-art {
        min-height: clamp(180px, 30dvh, 280px);
        max-height: 30dvh;
    }

    .auth-fit-page .auth-panel {
        overflow: visible;
        padding: 28px 24px 36px;
    }
}

@media (max-width: 720px) {
    .auth-fit-page .auth-art {
        min-height: clamp(160px, 24dvh, 220px);
        max-height: 24dvh;
    }

    .auth-fit-page .auth-panel {
        padding: 28px 20px 34px;
    }

    .auth-fit-page .auth-logo {
        width: 68px;
        height: 68px;
        margin-bottom: 10px;
    }

    .auth-fit-page .auth-card h1 {
        font-size: 28px;
    }
}

.back-catalog {
    position: fixed;
    z-index: 10;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(0, 83, 63, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    padding: 8px 12px;
    color: var(--nmu-green);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

/* Application shell */
.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 278px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    border-right: 1px solid var(--nmu-line);
    background: #fff;
    padding: 22px 16px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 22px;
}

.sidebar-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.sidebar-brand strong {
    display: block;
    color: var(--nmu-green-dark);
    font-size: 16px;
    line-height: 1.15;
}

.sidebar-brand span {
    display: block;
    margin-top: 3px;
    color: var(--nmu-muted);
    font-size: 10px;
}

.side-nav {
    display: grid;
    gap: 5px;
    padding-top: 4px;
}

.side-label {
    padding: 14px 13px 6px;
    color: #9ba5aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.side-link {
    display: grid;
    width: 100%;
    min-height: 46px;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 10px 15px;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.side-link:hover {
    background: rgba(0, 83, 63, .08);
    color: var(--nmu-green);
}

.side-link.active {
    border-left: 4px solid var(--nmu-teal);
    background: linear-gradient(90deg, rgba(0, 83, 63, .12), rgba(0, 83, 63, .04));
    padding-left: 11px;
    color: var(--nmu-green);
}

.side-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.side-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.side-chevron {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid var(--nmu-line);
    padding: 18px 8px 0;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--nmu-green-light);
}

.sidebar-user strong,
.profile-copy strong {
    display: block;
    color: #28332f;
    font-size: 12px;
}

.sidebar-user span,
.profile-copy span {
    display: block;
    margin-top: 2px;
    color: var(--nmu-muted);
    font-size: 10px;
}

.sidebar-university {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    border: 1px solid #edf1f4;
    border-radius: 12px;
    padding: 14px 12px;
    color: #153e29;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .04);
}

.sidebar-university img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: contain;
}

.sidebar-university strong {
    display: block;
    font-size: 15px;
    line-height: 1.4;
}

.sidebar-university span {
    display: block;
    margin-top: 4px;
    color: #606b76;
    font-size: 11px;
    line-height: 1.45;
}

.main-panel {
    min-width: 0;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    min-height: 76px;
    grid-template-columns: minmax(180px, 520px) auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--nmu-line);
    background: rgba(255, 255, 255, .92);
    padding: 12px 28px;
    backdrop-filter: blur(12px);
}

.search {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e7e8;
    border-radius: 12px;
    background: #f6f8f8;
    padding: 0 14px;
    color: #889399;
    font-size: 13px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-button,
.mobile-menu {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #e1e7e5;
    border-radius: 11px;
    background: #fff;
    color: #50605a;
    cursor: pointer;
}

.notification-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--nmu-red);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}

.profile {
    display: flex;
    align-items: center;
    gap: 9px;
    border-left: 1px solid var(--nmu-line);
    padding-left: 14px;
}

.profile-menu { position: relative; }
.profile-trigger { cursor: pointer; list-style: none; }
.profile-trigger::-webkit-details-marker { display: none; }
.profile-chevron { margin-left: 2px; color: var(--nmu-muted); font-size: 18px; transition: transform .2s ease; }
.profile-menu[open] .profile-chevron { transform: rotate(180deg); }

.profile-dropdown {
    position: absolute;
    z-index: 30;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    overflow: hidden;
    border: 1px solid #e1e7e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.profile-dropdown a,
.profile-dropdown button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 11px 14px;
    color: #28332f;
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover { background: #f3f7f5; }
.profile-dropdown form { margin: 0; border-top: 1px solid #edf1f4; }
.profile-dropdown form button { color: #c53d3d; }

.profile .avatar {
    width: 38px;
    height: 38px;
}

.mobile-menu {
    display: none;
}

.sidebar-overlay {
    display: none;
}

.page-content {
    width: min(1380px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.dashboard-page .page-content {
    width: 100%;
    max-width: none;
    margin: 0;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.page-head h1 {
    margin: 4px 0 5px;
    color: #173129;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
}

.page-head p {
    margin: 0;
    color: var(--nmu-muted);
    font-size: 14px;
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #82908b;
    font-size: 12px;
}

.breadcrumb a {
    color: var(--nmu-green);
    font-weight: 800;
}

.panel {
    border: 1px solid var(--nmu-line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--nmu-line);
    padding: 18px 20px;
}

.panel-head h2 {
    margin: 0;
    color: #21352e;
    font-size: 17px;
}

.panel-body {
    padding: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.summary-card {
    display: flex;
    min-width: 0;
    min-height: 116px;
    align-items: center;
    gap: 22px;
    border: 1px solid #edf1f4;
    border-radius: 14px;
    background: #fff;
    padding: 20px 22px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.summary-icon {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, .12);
}

.summary-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.tone-green { background: #e7f6ef; color: #08764d; }
.tone-yellow { background: #fff5d5; color: #bd7a00; }
.tone-blue { background: #e9f0ff; color: #2f6fed; }
.tone-purple { background: #f0ebff; color: #7357c8; }

.summary-icon.tone-green { background: linear-gradient(145deg, #1b8a53, #00533f); color: #fff; }
.summary-icon.tone-yellow { background: linear-gradient(145deg, #ffd86b, #f6ab21); color: #fff; }
.summary-icon.tone-blue { background: linear-gradient(145deg, #61a4ff, #286be7); color: #fff; }

.summary-card h3 {
    margin: 0;
    color: #17202a;
    font-size: 15px;
    font-weight: 800;
}

.summary-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}

.summary-value strong {
    color: #17202a;
    font-size: 30px;
    line-height: 1;
}

.summary-value span,
.summary-card p {
    color: #758092;
    font-size: 13px;
}

.summary-card p {
    margin: 8px 0 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
    gap: 20px;
    margin-bottom: 18px;
}

.congrats-card {
    position: relative;
    min-height: 262px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, .08);
}

.congrats-card.dark {
    background: radial-gradient(circle at 78% 50%, rgba(255, 255, 255, .16), transparent 24%), linear-gradient(135deg, #00402b 0%, #006d3b 62%, #003a24 100%);
    color: #fff;
}

.congrats-card.light {
    background: radial-gradient(circle at 72% 46%, rgba(0, 83, 63, .16), transparent 25%), linear-gradient(135deg, #f8fbfa 0%, #edf6f1 100%);
    color: var(--nmu-green-dark);
}

.congrats-content {
    position: relative;
    z-index: 2;
    max-width: 58%;
    padding: 30px 34px;
}

.congrats-content img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    object-fit: contain;
}

.congrats-card h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.45;
}

.congrats-card h2 span {
    display: block;
    margin-top: 10px;
    color: #ffe16a;
    font-size: 18px;
}

.congrats-card.light h2 span {
    color: var(--nmu-green-dark);
}

.congrats-card p {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.65;
}

.congrats-carousel {
    touch-action: pan-y;
}

.congrats-carousel:focus-visible {
    outline: 3px solid rgba(47, 111, 237, .35);
}

.congrats-carousel .congrats-content {
    padding-left: 42px;
}

.congrats-slides,
.congrats-slide {
    position: absolute;
    inset: 0;
}

.congrats-slide {
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity .42s ease, transform .42s ease, visibility .42s;
}

.congrats-slide.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.congrats-portrait {
    position: absolute;
    right: 24px;
    bottom: 0;
    width: 34%;
    min-width: 155px;
    height: 86%;
    border-radius: 110px 110px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(210, 223, 216, .28));
}

.congrats-portrait::before {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(145deg, #f0c4ac, #6b4a3f);
    content: "";
    transform: translateX(-50%);
}

.congrats-portrait::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 138px;
    height: 158px;
    border-radius: 42px 42px 0 0;
    background: linear-gradient(145deg, #202b3a, #111827);
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .08);
    content: "";
    transform: translateX(-50%);
}

.congrats-dots {
    position: absolute;
    z-index: 4;
    bottom: 16px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.congrats-dots button {
    width: 10px;
    height: 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

.congrats-dots button.active {
    background: currentColor;
}

.congrats-dots button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.congrats-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(0, 40, 28, .2);
    padding: 0;
    color: #fff;
    cursor: pointer;
    opacity: .72;
    transform: translateY(-50%);
    transition: background .24s ease, border-color .24s ease, opacity .24s ease, transform .24s cubic-bezier(.2, .8, .2, 1);
    backdrop-filter: blur(4px);
}

.congrats-arrow.prev {
    left: 7px;
}

.congrats-arrow.next {
    right: 7px;
}

.congrats-arrow span {
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.congrats-arrow.prev span {
    transform: translateX(1px) rotate(-135deg);
}

.congrats-arrow.next span {
    transform: translateX(-1px) rotate(45deg);
}

.congrats-arrow:hover {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(0, 40, 28, .42);
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
}

.congrats-arrow:focus-visible {
    outline: 3px solid #ffe16a;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .congrats-slide {
        transition: none;
    }

    .congrats-arrow {
        transition: none;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 28px;
}

.dashboard-panel {
    border-radius: 12px;
    padding: 22px 26px 18px;
}

.dashboard-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dfe6ea;
    padding-bottom: 12px;
}

.dashboard-section-head h2 {
    margin: 0;
    color: #063f1c;
    font-size: 22px;
    line-height: 1.2;
}

.dashboard-section-head a,
.dashboard-section-head button {
    border: 0;
    background: transparent;
    padding: 0;
    color: #0b6f45;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-news-list {
    display: grid;
}

.dashboard-news-row {
    display: grid;
    min-width: 0;
    grid-template-columns: 52px minmax(0, 1fr) 120px 124px;
    align-items: center;
    gap: 18px;
    border-bottom: 1px dashed #dce4eb;
    padding: 14px 0;
}

.dashboard-news-row:last-child {
    border-bottom: 0;
}

.dashboard-news-icon,
.dashboard-track-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
}

.dashboard-news-icon svg,
.dashboard-track-icon svg,
.dashboard-chevron {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.soft-green { background: #d8f8eb; color: #079862; }
.soft-yellow { background: #fff1c9; color: #f0a208; }
.soft-blue { background: #dcebff; color: #3478f6; }
.soft-purple { background: #eee2ff; color: #8f56f0; }

.dashboard-news-title {
    display: block;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-news-row p {
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--nmu-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-news-date {
    color: #1f2937;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.dashboard-news-date span {
    display: block;
    margin-bottom: 4px;
    color: var(--nmu-muted);
    font-weight: 600;
}

.dashboard-news-date strong {
    color: #111827;
}

.dashboard-detail-button {
    display: inline-flex;
    min-width: 116px;
    justify-content: center;
    border: 1px solid #0f6b47;
    border-radius: 999px;
    background: #fff;
    padding: 8px 14px;
    color: #0f5d3f;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.dashboard-detail-button:hover {
    background: #f1faf6;
}

.dashboard-tracking-list {
    display: grid;
    gap: 10px;
    padding-top: 8px;
}

.dashboard-tracking-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
    border: 1px solid #edf1f4;
    border-radius: 12px;
    background: #fff;
    padding: 11px 14px 11px 10px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.dashboard-tracking-card:hover {
    border-color: #aac8bd;
    background: #f8fbfa;
}

.dashboard-track-icon svg {
    width: 28px;
    height: 28px;
}

.dashboard-tracking-card strong {
    display: block;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-tracking-card small {
    display: block;
    color: #1f2937;
    font-size: 13px;
}

.dashboard-chevron {
    width: 18px;
    height: 18px;
    color: #1f2937;
}

/* Request preparation */
.stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 18px 0 24px;
}

.step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #89928f;
    font-size: 11px;
    font-weight: 800;
}

.step:not(:last-child)::after {
    position: absolute;
    z-index: -1;
    top: 17px;
    right: 10px;
    left: 45px;
    height: 2px;
    background: #dce4e1;
    content: "";
}

.step-number {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid #d8e1de;
    border-radius: 50%;
    background: #fff;
    color: #8a9692;
}

.step.active,
.step.done {
    color: var(--nmu-green);
}

.step.active .step-number {
    border-color: var(--nmu-green);
    box-shadow: 0 0 0 5px rgba(0, 83, 63, .08);
}

.step.done .step-number {
    border-color: var(--nmu-green);
    background: var(--nmu-green);
    color: #fff;
}

.step.done::after {
    background: var(--nmu-green);
}

.request-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
    border: 1px solid #cfe2da;
    border-radius: 18px;
    background: linear-gradient(120deg, #f1faf6, #fffaf0);
    padding: 24px;
}

.request-hero h2 {
    margin: 6px 0 7px;
    color: var(--nmu-green-dark);
    font-size: 23px;
}

.request-hero p {
    max-width: 720px;
    margin: 0;
    color: #65736d;
    font-size: 13px;
}

.request-layout,
.document-layout,
.review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 18px;
}

.checklist {
    display: grid;
    gap: 10px;
}

.check-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #e3e9e7;
    border-radius: 13px;
    padding: 13px 14px;
}

.check-number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: #f0f5f3;
    color: var(--nmu-green);
    font-size: 12px;
    font-weight: 900;
}

.check-row strong {
    display: block;
    color: #2b3a35;
    font-size: 13px;
}

.check-row p {
    margin: 3px 0 0;
    color: var(--nmu-muted);
    font-size: 11px;
}

.aside-stack {
    display: grid;
    gap: 14px;
}

.progress-ring {
    position: relative;
    display: grid;
    width: 124px;
    height: 124px;
    margin: 6px auto 16px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--nmu-green) 0 72%, #e8eeec 72% 100%);
}

.progress-ring::before {
    position: absolute;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.progress-ring strong {
    position: relative;
    z-index: 1;
    color: var(--nmu-green);
    font-size: 22px;
}

.tip-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tip-list li {
    position: relative;
    padding-left: 19px;
    color: #64716c;
    font-size: 12px;
}

.tip-list li::before {
    position: absolute;
    top: 7px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nmu-gold);
    content: "";
}

/* Document form */
.document-tabs {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.doc-tab {
    min-width: 72px;
    border: 1px solid #dce4e1;
    border-radius: 11px;
    background: #fff;
    padding: 9px 12px;
    color: #6c7774;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.doc-tab.active {
    border-color: var(--nmu-green);
    background: var(--nmu-green);
    color: #fff;
}

.form-section {
    margin-bottom: 16px;
    border: 1px solid var(--nmu-line);
    border-radius: 15px;
    background: #fff;
    padding: 20px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #21372f;
    font-size: 16px;
}

.section-letter {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: var(--nmu-green-light);
    color: var(--nmu-green);
    font-size: 12px;
    font-weight: 900;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid .span-2 {
    grid-column: span 2;
}

.upload-list {
    display: grid;
    gap: 10px;
}

.upload-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px dashed #bdcec8;
    border-radius: 13px;
    background: #fbfdfc;
    padding: 12px;
}

.upload-row input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.upload-row strong {
    display: block;
    font-size: 12px;
}

.upload-row span {
    color: var(--nmu-muted);
    font-size: 10px;
}

.upload-trigger {
    border: 1px solid #c8d5d1;
    border-radius: 9px;
    background: #fff;
    padding: 7px 10px;
    color: var(--nmu-green);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.sticky-actions {
    position: sticky;
    z-index: 10;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    border: 1px solid #dfe7e4;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    padding: 12px 14px;
    box-shadow: 0 12px 35px rgba(27, 51, 43, .14);
    backdrop-filter: blur(12px);
}

.sticky-actions > div {
    display: flex;
    gap: 9px;
}

/* Review */
.review-group {
    display: grid;
    gap: 10px;
}

.review-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #e4e9e7;
    border-radius: 13px;
    padding: 13px;
}

.review-check {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #e7f6ef;
    color: #08764d;
    font-weight: 900;
}

.review-check.warning {
    background: #fff4d5;
    color: #b47600;
}

.review-row strong {
    display: block;
    font-size: 12px;
}

.review-row p {
    margin: 3px 0 0;
    color: var(--nmu-muted);
    font-size: 10px;
}

.consent-box {
    border: 1px solid #dce7e3;
    border-radius: 13px;
    background: #f7fbf9;
    padding: 14px;
}

/* Tracking and history */
.tracking-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(120deg, var(--nmu-green-dark), var(--nmu-teal));
    padding: 24px;
    color: #fff;
}

.tracking-hero h2 {
    margin: 5px 0;
    font-size: 23px;
}

.tracking-hero p {
    margin: 0;
    opacity: .75;
    font-size: 12px;
}

.tracking-code {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 13px;
    background: rgba(255, 255, 255, .1);
    padding: 12px 16px;
    text-align: right;
}

.tracking-code span {
    display: block;
    opacity: .7;
    font-size: 10px;
}

.tracking-code strong {
    display: block;
    margin-top: 3px;
    font-size: 18px;
}

.timeline {
    display: grid;
    gap: 0;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 8px 0 26px;
}

.timeline-item:not(:last-child)::before {
    position: absolute;
    top: 46px;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: #dce5e2;
    content: "";
}

.timeline-dot {
    z-index: 1;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid #dce5e2;
    border-radius: 50%;
    background: #fff;
    color: #8c9894;
    font-weight: 900;
}

.timeline-item.done .timeline-dot {
    border-color: var(--nmu-green);
    background: var(--nmu-green);
    color: #fff;
}

.timeline-item.current .timeline-dot {
    border-color: var(--nmu-gold);
    color: #a86e00;
    box-shadow: 0 0 0 6px rgba(231, 165, 29, .12);
}

.timeline-item h3 {
    margin: 2px 0 4px;
    color: #263a33;
    font-size: 14px;
}

.timeline-item p {
    margin: 0;
    color: var(--nmu-muted);
    font-size: 11px;
}

.timeline-date {
    color: #899590;
    font-size: 10px;
    text-align: right;
}

/* News */
.news-page .page-content {
    max-width: 1440px;
}

.news-page-head {
    align-items: center;
}

.news-update-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dceae5;
    border-radius: 999px;
    background: #fff;
    padding: 8px 13px;
    color: #5f6d68;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.news-update-pill > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #18a873;
    box-shadow: 0 0 0 4px rgba(24, 168, 115, .12);
}

.news-featured {
    position: relative;
    display: grid;
    min-height: 300px;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(120deg, #063f2f 0%, #075b45 54%, #0a7659 100%);
    color: #fff;
    box-shadow: 0 22px 45px rgba(0, 83, 63, .18);
}

.news-featured::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent, #000);
    content: "";
}

.news-featured-content {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 40px 48px;
}

.news-featured-meta,
.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.news-featured-meta time {
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
}

.news-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    background: #e4f5ee;
    padding: 5px 10px;
    color: #087251;
    font-size: 11px;
    font-weight: 800;
}

.news-badge-important {
    background: #f2bf42;
    color: #3c2a00;
}

.badge-gold { background: #fff1c9; color: #9b6800; }
.badge-blue { background: #e2edff; color: #2865c7; }
.badge-purple { background: #eee6ff; color: #7040bd; }
.badge-teal { background: #dff8f5; color: #08796f; }
.badge-coral { background: #ffebe4; color: #b94f2d; }

.news-featured h2 {
    max-width: 800px;
    margin: 14px 0 12px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.3;
}

.news-featured-content > p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.7;
}

.news-featured-button {
    border-color: #fff;
    background: #fff;
    color: var(--nmu-green-dark);
    font-weight: 800;
}

.news-featured-button:hover {
    background: #effaf6;
}

.news-featured-visual {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 300px;
    place-items: center;
}

.news-featured-ring {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 38px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.news-featured-document {
    display: grid;
    width: 126px;
    height: 150px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .54);
    border-radius: 20px;
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .15);
    transform: rotate(5deg);
    backdrop-filter: blur(8px);
}

.news-featured-document svg {
    width: 70px;
    height: 70px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.news-featured-label {
    position: absolute;
    right: 34px;
    bottom: 28px;
    color: rgba(255, 255, 255, .74);
    font-size: 13px;
    letter-spacing: .08em;
    line-height: 1.1;
    text-align: right;
}

.news-featured-label strong {
    color: #fff;
    font-size: 28px;
}

.news-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 200px 170px;
    gap: 12px;
    margin: 22px 0 26px;
    border: 1px solid var(--nmu-line);
    border-radius: 16px;
    background: #fff;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.news-search {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    border: 1px solid #dfe6e3;
    border-radius: 11px;
    background: #f7f9f8;
    padding: 0 14px;
    color: #76837e;
}

.news-search:focus-within {
    border-color: var(--nmu-teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 125, 97, .08);
}

.news-search input,
.news-filter-label select {
    width: 100%;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #3f4c47;
    font-size: 13px;
    outline: none;
}

.news-filter-label {
    display: flex;
    align-items: center;
    border: 1px solid #dfe6e3;
    border-radius: 11px;
    background: #fff;
    padding: 0 10px;
}

.news-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.news-section-head h2 {
    margin: 0;
    color: #173129;
    font-size: 22px;
}

.news-section-head p {
    margin: 3px 0 0;
    color: var(--nmu-muted);
    font-size: 12px;
}

.news-section-head > span {
    color: var(--nmu-muted);
    font-size: 12px;
    font-weight: 700;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3eae7;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(25, 48, 42, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.news-card:hover {
    border-color: #b8d2c8;
    box-shadow: 0 18px 36px rgba(25, 48, 42, .1);
    transform: translateY(-3px);
}

.news-card[hidden] {
    display: none;
}

.news-card-cover {
    position: relative;
    display: flex;
    min-height: 128px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 24px;
}

.news-card-cover::after {
    position: absolute;
    right: -30px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border: 26px solid rgba(255, 255, 255, .23);
    border-radius: 50%;
    content: "";
}

.cover-green { background: linear-gradient(135deg, #dff5ec, #bce7d6); color: #087151; }
.cover-gold { background: linear-gradient(135deg, #fff3ce, #f6d77f); color: #916000; }
.cover-blue { background: linear-gradient(135deg, #e4efff, #bcd5fb); color: #2d65be; }
.cover-purple { background: linear-gradient(135deg, #f0e8ff, #d9c4fa); color: #7040bd; }
.cover-teal { background: linear-gradient(135deg, #dff7f4, #ace1da); color: #08796f; }
.cover-coral { background: linear-gradient(135deg, #ffede6, #f7c8b8); color: #ae4e30; }

.news-card-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 25px rgba(25, 48, 42, .09);
}

.news-card-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.news-card-mark {
    z-index: 1;
    align-self: flex-start;
    color: currentColor;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
}

.news-card-body {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.news-card-meta time {
    color: #85908c;
    font-size: 11px;
}

.news-card h3 {
    margin: 13px 0 8px;
    color: #1f322b;
    font-size: 16px;
    line-height: 1.55;
}

.news-card p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--nmu-muted);
    font-size: 12px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card-body > button,
.news-card-body > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--nmu-green);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

/* News detail */
.news-detail-page .page-content {
    max-width: 1320px;
}

.news-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 18px;
    color: #53655f;
    font-size: 12px;
    font-weight: 800;
}

.news-detail-back:hover {
    color: var(--nmu-green);
}

.news-article {
    overflow: hidden;
    border: 1px solid #dfe8e4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(25, 48, 42, .08);
}

.news-article-hero {
    position: relative;
    display: grid;
    min-height: 390px;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr);
    overflow: hidden;
    background: linear-gradient(125deg, #053e2f 0%, #075c46 58%, #0a7659 100%);
    color: #fff;
}

.news-article-hero::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent 15%, #000);
    content: "";
}

.news-article-heading {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 50px 58px;
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.news-article-heading h1 {
    max-width: 900px;
    margin: 17px 0 14px;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.32;
}

.news-article-heading > p {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.8;
}

.news-article-owner {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 24px;
}

.news-owner-logo {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
}

.news-owner-logo img {
    width: 31px;
    height: 31px;
}

.news-article-owner > span:last-child {
    display: grid;
    gap: 2px;
}

.news-article-owner strong { font-size: 11px; }
.news-article-owner small { color: rgba(255, 255, 255, .62); font-size: 10px; }

.news-article-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.news-article-visual-ring {
    position: absolute;
    width: 290px;
    height: 290px;
    border: 42px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.news-article-visual svg {
    position: relative;
    width: 98px;
    height: 98px;
    margin-bottom: 10px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.1;
}

.news-article-visual strong {
    position: relative;
    font-size: 24px;
    letter-spacing: .12em;
}

.news-article-visual small {
    position: relative;
    color: rgba(255, 255, 255, .65);
    font-size: 9px;
    letter-spacing: .18em;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 48px;
    padding: 48px 58px 58px;
}

.news-article-body {
    min-width: 0;
    color: #475650;
    font-size: 14px;
    line-height: 1.9;
}

.news-article-body > p {
    margin: 0 0 24px;
}

.news-article-body h2 {
    margin: 34px 0 12px;
    color: #18352b;
    font-size: 21px;
}

.news-highlight-box {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    border: 1px solid #bee2d3;
    border-radius: 14px;
    background: #f0faf6;
    padding: 18px 20px;
    color: #174c3b;
}

.news-highlight-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #0b805f;
    color: #fff;
    font-weight: 900;
}

.news-highlight-box strong { color: #075b43; }
.news-highlight-box p { margin: 3px 0 0; color: #557168; font-size: 12px; line-height: 1.65; }

.news-check-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 30px;
    padding: 0;
    list-style: none;
}

.news-check-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.news-check-list li span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #e4f6ef;
    color: #087251;
    font-size: 11px;
    font-weight: 900;
}

.news-step-list {
    display: grid;
    gap: 0;
    margin: 16px 0 34px;
    padding: 0;
    list-style: none;
}

.news-step-list li {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 20px;
}

.news-step-list li:not(:last-child)::before {
    position: absolute;
    top: 34px;
    bottom: 0;
    left: 18px;
    width: 2px;
    background: #d8e8e2;
    content: "";
}

.news-step-list li > span {
    z-index: 1;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--nmu-green);
    color: #fff;
    font-weight: 900;
}

.news-step-list strong { color: #253c34; }
.news-step-list p { margin: 2px 0 0; color: #6c7974; font-size: 12px; line-height: 1.65; }

.news-attachment {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin-top: 10px;
    border: 1px solid #e0e8e5;
    border-radius: 13px;
    padding: 13px 15px;
}

.news-file-icon {
    display: grid;
    width: 45px;
    height: 48px;
    place-items: center;
    border-radius: 9px;
    background: #ffebe6;
    color: #bc4c32;
    font-size: 10px;
    font-weight: 900;
}

.news-file-icon-doc { background: #e7efff; color: #3469bf; }
.news-attachment > div { display: grid; gap: 2px; min-width: 0; }
.news-attachment strong { overflow: hidden; color: #31473f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.news-attachment div span { color: #8a9692; font-size: 10px; }
.news-attachment button {
    border: 1px solid #cbdcd5;
    border-radius: 9px;
    background: #fff;
    padding: 9px 12px;
    color: #087251;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.news-contact-box {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    margin-top: 34px;
    border-radius: 14px;
    background: #f5f7f6;
    padding: 18px;
}

.news-contact-box > div:first-child span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: #087251;
    font-size: 18px;
    font-weight: 900;
}

.news-contact-box strong { color: #29433a; }
.news-contact-box p { margin: 3px 0 0; color: #6c7974; font-size: 11px; line-height: 1.65; }

.news-detail-aside {
    display: grid;
    align-content: start;
    gap: 14px;
}

.news-aside-card {
    border: 1px solid #e0e8e5;
    border-radius: 14px;
    padding: 18px;
}

.news-aside-card h2 {
    margin: 0 0 13px;
    color: #1e382f;
    font-size: 14px;
}

.news-aside-card dl { margin: 0; }
.news-aside-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf1ef;
    padding: 10px 0;
    font-size: 10px;
}
.news-aside-card dt { color: #84908c; }
.news-aside-card dd { margin: 0; color: #3c5049; font-weight: 700; text-align: right; }

.news-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.news-share-actions button {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #dce5e1;
    border-radius: 9px;
    background: #fff;
    color: #4d5e58;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.news-apply-card {
    display: grid;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #07533f, #0b8060);
    padding: 20px;
    color: #fff;
}
.news-apply-card span { color: rgba(255, 255, 255, .65); font-size: 10px; }
.news-apply-card strong { margin: 3px 0 12px; font-size: 16px; }
.news-apply-card small { font-size: 10px; font-weight: 800; }

.related-news { margin-top: 34px; }
.related-news .news-section-head > a { color: var(--nmu-green); font-size: 11px; font-weight: 800; }
.related-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-news-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e1e9e6;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.related-news-cover { display: grid; min-height: 150px; place-items: center; }
.related-news-cover svg { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.related-news-card > span:last-child { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 16px; }
.related-news-card small { color: #87938f; font-size: 9px; }
.related-news-card strong { margin: 7px 0 12px; color: #243a32; font-size: 12px; line-height: 1.55; }
.related-news-card em { color: var(--nmu-green); font-size: 10px; font-style: normal; font-weight: 800; }

.news-empty {
    border: 1px dashed #cfdad6;
    border-radius: 16px;
    background: #fff;
    padding: 54px 20px;
    color: var(--nmu-muted);
    text-align: center;
}

.news-empty > span { font-size: 38px; }
.news-empty h3 { margin: 8px 0 4px; color: #29423a; }
.news-empty p { margin: 0; font-size: 12px; }

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 26px;
}

.news-pagination button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #dfe6e3;
    border-radius: 10px;
    background: #fff;
    color: #56635e;
    font-weight: 800;
    cursor: pointer;
}

.news-pagination button.active {
    border-color: var(--nmu-green);
    background: var(--nmu-green);
    color: #fff;
}

.news-pagination button:disabled {
    opacity: .45;
    cursor: default;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-bar input,
.filter-bar select {
    min-height: 42px;
    border: 1px solid #dfe6e3;
    border-radius: 11px;
    background: #fff;
    padding: 0 12px;
    color: #50605a;
    font-size: 12px;
}

.filter-bar input {
    min-width: 260px;
    flex: 1;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid #e9edec;
    padding: 14px 12px;
    font-size: 11px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f6f8f7;
    color: #66726e;
    font-weight: 800;
}

.data-table td {
    color: #36443f;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.mobile-bottom-nav {
    display: none;
}

.toast {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    max-width: min(360px, calc(100% - 40px));
    border-radius: 13px;
    background: #173c30;
    padding: 13px 16px;
    color: #fff;
    font-size: 12px;
    box-shadow: var(--shadow-md);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 1180px) {
    .news-detail-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 30px;
        padding-right: 38px;
        padding-left: 38px;
    }

    .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-layout,
    .document-layout,
    .review-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 960px) {
    .news-article-hero {
        grid-template-columns: minmax(0, 1fr) 240px;
    }

    .news-article-heading {
        padding: 40px;
    }

    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-detail-aside {
        grid-template-columns: 1fr 1fr;
    }

    .news-apply-card {
        grid-column: 1 / -1;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-art {
        min-height: 340px;
        max-height: 42vh;
    }

    .auth-art > img {
        object-position: center 30%;
    }

    .auth-panel {
        padding: 36px 24px 50px;
    }

    .auth-logo {
        width: 96px;
        height: 96px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-102%);
        width: 278px;
        box-shadow: var(--shadow-md);
        transition: transform .2s ease;
    }

    .menu-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 25;
        inset: 0;
        display: block;
        background: rgba(15, 29, 24, .42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .menu-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 11px 18px;
    }

    .mobile-menu {
        display: grid;
    }

    .search {
        max-width: 460px;
    }

    .profile-copy {
        display: none;
    }

    .dashboard-grid,
    .request-layout,
    .document-layout,
    .review-layout {
        grid-template-columns: 1fr;
    }

    .aside-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .news-detail-back {
        margin-bottom: 14px;
    }

    .news-article {
        border-radius: 16px;
    }

    .news-article-hero {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .news-article-heading {
        padding: 30px 24px 34px;
    }

    .news-article-heading h1 {
        font-size: 26px;
    }

    .news-article-heading > p {
        font-size: 12px;
    }

    .news-article-visual {
        display: none;
    }

    .news-detail-layout {
        gap: 28px;
        padding: 26px 20px 32px;
    }

    .news-highlight-box {
        grid-template-columns: 32px minmax(0, 1fr);
        padding: 15px;
    }

    .news-highlight-icon {
        width: 30px;
        height: 30px;
    }

    .news-attachment {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .news-attachment button {
        grid-column: 2;
        justify-self: start;
    }

    .news-detail-aside,
    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .news-apply-card {
        grid-column: auto;
    }

    .related-news-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .related-news-cover {
        min-height: 140px;
    }

    body:not(.auth-page):not(.catalog-body) {
        padding-bottom: 76px;
    }

    .catalog {
        width: min(100% - 28px, 560px);
        padding: 30px 0 50px;
    }

    .catalog-header {
        display: grid;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-card {
        min-height: 190px;
    }

    .auth-art {
        min-height: 310px;
        background: url("../images/auth-mobile.png") center top / cover;
    }

    .auth-art > img {
        display: none;
    }

    .auth-art-copy {
        display: none;
    }

    .auth-panel {
        margin-top: -34px;
        border-radius: 28px 28px 0 0;
        background: #fff;
        padding: 34px 20px 44px;
    }

    .auth-logo {
        width: 82px;
        height: 82px;
    }

    .field-row,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .span-2 {
        grid-column: auto;
    }

    .topbar {
        min-height: 66px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 9px;
        padding: 9px 14px;
    }

    .search {
        min-height: 40px;
        padding: 0 10px;
    }

    .search span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .top-actions {
        gap: 7px;
    }

    .profile {
        display: none;
    }

    .icon-button,
    .mobile-menu {
        width: 40px;
        height: 40px;
    }

    .page-content {
        padding: 18px 14px;
    }

    .page-head {
        display: grid;
        gap: 13px;
    }

    .news-update-pill {
        justify-self: start;
    }

    .news-featured {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .news-featured-content {
        padding: 28px 24px;
    }

    .news-featured h2 {
        font-size: 25px;
    }

    .news-featured-visual {
        display: none;
    }

    .news-toolbar {
        grid-template-columns: 1fr;
        margin: 16px 0 22px;
    }

    .news-section-head {
        align-items: flex-start;
    }

    .news-card-grid {
        grid-template-columns: 1fr;
    }

    .news-card-cover {
        min-height: 112px;
    }

    .news-card-body {
        min-height: 0;
    }

    .head-actions {
        width: 100%;
    }

    .head-actions .btn {
        flex: 1;
    }

    .summary-grid,
    .banner-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 112px;
    }

    .congrats-card {
        min-height: 230px;
    }

    .congrats-content {
        max-width: 66%;
        padding: 24px;
    }

    .congrats-card h2 {
        font-size: 20px;
    }

    .congrats-portrait {
        right: 16px;
        min-width: 138px;
    }

    .panel-head,
    .panel-body {
        padding: 15px;
    }

    .dashboard-panel {
        padding: 18px;
    }

    .dashboard-section-head h2 {
        font-size: 18px;
    }

    .dashboard-news-row {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
    }

    .dashboard-news-date,
    .dashboard-detail-button {
        grid-column: 2;
        justify-self: start;
    }

    .dashboard-news-date span {
        display: inline;
        margin-right: 6px;
    }

    .dashboard-detail-button {
        min-width: 110px;
    }

    .stepper {
        overflow-x: auto;
        grid-template-columns: repeat(4, 150px);
        padding: 7px 4px 10px;
    }

    .request-hero,
    .tracking-hero {
        grid-template-columns: 1fr;
    }

    .request-hero .btn {
        width: 100%;
    }

    .aside-stack {
        grid-template-columns: 1fr;
    }

    .check-row {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .check-row .status {
        grid-column: 2;
        justify-self: start;
    }

    .form-section {
        padding: 15px;
    }

    .upload-row {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .upload-trigger {
        grid-column: 2;
        justify-self: start;
    }

    .sticky-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sticky-actions > div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .review-row .status,
    .review-row .btn {
        grid-column: 2;
        justify-self: start;
    }

    .tracking-code {
        text-align: left;
    }

    .timeline-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .timeline-date {
        grid-column: 2;
        text-align: left;
    }

    .timeline-item:not(:last-child)::before {
        top: 42px;
        left: 18px;
    }

    .timeline-dot {
        width: 38px;
        height: 38px;
    }

    .filter-bar input {
        min-width: 100%;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 40;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        border-top: 1px solid #dfe5e3;
        background: rgba(255, 255, 255, .96);
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 24px rgba(25, 48, 42, .06);
        backdrop-filter: blur(12px);
    }

    .mobile-bottom-nav a {
        display: grid;
        place-items: center;
        gap: 2px;
        color: #86918e;
        font-size: 9px;
        font-weight: 700;
    }

    .mobile-bottom-nav a.active {
        color: var(--nmu-green);
    }

    .mobile-nav-icon {
        font-size: 19px;
        font-weight: 900;
    }
}

@media print {
    .sidebar,
    .topbar,
    .mobile-bottom-nav,
    .sticky-actions,
    .back-catalog,
    .head-actions {
        display: none !important;
    }

    .app-shell {
        display: block;
    }

    .page-content {
        width: 100%;
        padding: 0;
    }

    .panel,
    .form-section {
        break-inside: avoid;
        box-shadow: none;
    }
}
