@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --ink: #17221d;
    --muted: #68736d;
    --paper: #f6f8f5;
    --surface: #ffffff;
    --line: #e4e9e5;
    --forest: #173f34;
    --forest-light: #245849;
    --lime: #c8f26b;
    --violet: #7559e8;
    --blue: #3f7de8;
    --emerald: #28a879;
    --amber: #e8a33f;
    --danger: #c34b57;
    --shadow: 0 24px 60px rgba(23, 34, 29, .10);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input {
    font: inherit;
}

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

button,
input {
    border: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark,
.mobile-brand-mark {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 13px;
    color: var(--forest);
    background: var(--lime);
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(23, 63, 52, .08);
}

.brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand strong {
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-light {
    color: #fff;
}

.brand-light small {
    color: rgba(255, 255, 255, .62);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--forest);
    box-shadow: 0 10px 22px rgba(23, 63, 52, .2);
}

.button-full {
    width: 100%;
    justify-content: space-between;
    min-height: 54px;
    padding-inline: 22px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid #f1cdd1;
    border-radius: 12px;
    color: #8f2e39;
    background: #fff1f3;
    font-size: 14px;
    line-height: 1.5;
}

.alert-icon {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--danger);
    font-size: 12px;
    font-weight: 800;
}

/* Portal */
.portal-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background:
        radial-gradient(circle at 10% 15%, rgba(200, 242, 107, .22), transparent 22rem),
        radial-gradient(circle at 90% 0%, rgba(71, 121, 100, .10), transparent 26rem),
        var(--paper);
}

.portal-header,
.portal-footer {
    display: flex;
    width: min(1180px, calc(100% - 48px));
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.portal-header {
    padding: 28px 0;
}

.secure-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.secure-label span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 4px rgba(40, 168, 121, .12);
}

.portal-main {
    width: min(1180px, calc(100% - 48px));
    margin: auto;
    padding: 60px 0 80px;
}

.portal-hero {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--forest-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 25px;
    height: 2px;
    content: "";
    background: var(--forest-light);
}

.portal-hero h1 {
    margin: 20px 0 18px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.portal-hero h1 em {
    color: var(--forest-light);
    font-family: Georgia, serif;
    font-weight: 400;
}

.portal-hero p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.portal-alert {
    max-width: 600px;
    margin-top: 24px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 52px;
}

.portal-card {
    position: relative;
    min-height: 290px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 10px 35px rgba(23, 34, 29, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.portal-card:hover {
    transform: translateY(-7px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.portal-card::after {
    position: absolute;
    top: -70px;
    right: -70px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    content: "";
    opacity: .12;
    transition: transform .35s ease;
}

.portal-card:hover::after {
    transform: scale(1.25);
}

.portal-card-violet::after,
.portal-card-violet .portal-card-icon {
    background: var(--violet);
}

.portal-card-blue::after,
.portal-card-blue .portal-card-icon {
    background: var(--blue);
}

.portal-card-emerald::after,
.portal-card-emerald .portal-card-icon {
    background: var(--emerald);
}

.portal-card-amber::after,
.portal-card-amber .portal-card-icon {
    background: var(--amber);
}

.portal-number {
    position: absolute;
    top: 22px;
    right: 23px;
    color: #aab2ad;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.portal-card-icon {
    display: flex;
    width: 49px;
    height: 49px;
    align-items: flex-end;
    gap: 4px;
    padding: 13px;
    border-radius: 14px;
}

.portal-card-icon span {
    width: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .9);
}

.portal-card-icon span:nth-child(1) {
    height: 10px;
}

.portal-card-icon span:nth-child(2) {
    height: 20px;
}

.portal-card-icon span:nth-child(3) {
    height: 15px;
}

.portal-card h2 {
    margin: 32px 0 12px;
    font-family: "Manrope", sans-serif;
    font-size: 21px;
    letter-spacing: -.02em;
}

.portal-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.portal-link {
    position: absolute;
    bottom: 24px;
    left: 26px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
}

.portal-link span {
    transition: transform .2s ease;
}

.portal-card:hover .portal-link span {
    transform: translateX(4px);
}

.portal-footer {
    padding: 24px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.portal-footer a {
    color: var(--forest);
    font-weight: 700;
}

/* Login */
.login-page {
    --role-accent: var(--violet);
    background: var(--surface);
}

.role-blue {
    --role-accent: var(--blue);
}

.role-emerald {
    --role-accent: var(--emerald);
}

.role-amber {
    --role-accent: var(--amber);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, .92fr) minmax(540px, 1.08fr);
}

.login-intro {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px clamp(42px, 6vw, 90px);
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255,255,255,.04), transparent 40%),
        var(--forest);
}

.login-intro::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 48%, color-mix(in srgb, var(--role-accent) 42%, transparent), transparent 24rem);
    content: "";
    opacity: .7;
}

.login-intro > * {
    position: relative;
    z-index: 2;
}

.intro-copy {
    max-width: 500px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 80px 0;
}

.role-pill {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: var(--lime);
    background: rgba(255,255,255,.07);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.intro-copy h1 {
    max-width: 530px;
    margin: 22px 0 18px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1.05;
}

.intro-copy p {
    max-width: 450px;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 16px;
    line-height: 1.75;
}

.intro-footnote {
    margin: 0;
    color: rgba(255,255,255,.45);
    font-size: 11px;
    letter-spacing: .04em;
}

.login-decoration {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.decor-ring {
    position: absolute;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
}

.decor-ring-one {
    right: -170px;
    bottom: -120px;
    width: 430px;
    height: 430px;
}

.decor-ring-two {
    right: -100px;
    bottom: -50px;
    width: 290px;
    height: 290px;
}

.decor-card {
    position: absolute;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(4px);
    transform: rotate(-10deg);
}

.decor-card-one {
    right: 18%;
    bottom: 12%;
    width: 115px;
    height: 150px;
}

.decor-card-two {
    right: 4%;
    bottom: 26%;
    width: 88px;
    height: 115px;
    transform: rotate(12deg);
}

.login-form-area {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 48px;
    background:
        radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--role-accent) 7%, transparent), transparent 22rem),
        #fff;
}

.login-form-wrap {
    width: min(100%, 440px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 70px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.back-link:hover {
    color: var(--ink);
}

.form-heading .mobile-brand-mark {
    display: none;
}

.form-heading p {
    margin: 0 0 7px;
    color: var(--role-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.form-heading h2 {
    margin: 0 0 10px;
    font-family: "Manrope", sans-serif;
    font-size: 34px;
    letter-spacing: -.035em;
}

.form-heading > span:last-child {
    color: var(--muted);
    font-size: 14px;
}

.login-form-wrap .alert {
    margin-top: 24px;
}

.login-form {
    display: grid;
    gap: 22px;
    margin-top: 32px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.muted-link {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.muted-link:hover {
    color: var(--role-accent);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 54px 0 46px;
    outline: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fbfcfb;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-wrap input:focus {
    border-color: var(--role-accent);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--role-accent) 11%, transparent);
}

.input-icon {
    position: absolute;
    left: 17px;
    z-index: 1;
    color: #98a29d;
    font-size: 15px;
    font-weight: 700;
}

.input-icon-lock {
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    border: 1.5px solid #98a29d;
    border-radius: 4px;
    font-size: 0;
}

.input-icon-lock::before {
    position: absolute;
    top: -7px;
    width: 8px;
    height: 8px;
    border: 1.5px solid #98a29d;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    content: "";
}

.password-toggle {
    position: absolute;
    right: 14px;
    padding: 5px;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
}

.login-form .button-primary {
    margin-top: 2px;
    background: var(--forest);
}

.support-note {
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.support-note a {
    color: var(--forest);
    font-weight: 700;
}

/* Dashboard */
.dashboard-page {
    background: #f3f6f3;
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: 264px;
    flex-direction: column;
    border-right: 1px solid #e6ebe7;
    background: #fff;
}

.sidebar-head {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.sidebar-close {
    display: none;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    font-size: 26px;
}

.workspace-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 5px 16px 18px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--forest);
    background: #f2f7f3;
    font-size: 12px;
    font-weight: 700;
}

.workspace-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 4px rgba(40,168,121,.1);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 14px;
}

.nav-item {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border-radius: 10px;
    color: #5f6a64;
    font-size: 13px;
    font-weight: 600;
    transition: color .18s ease, background .18s ease;
}

.nav-item:hover {
    color: var(--ink);
    background: #f5f7f5;
}

.nav-item.active {
    color: var(--forest);
    background: #eaf5ee;
}

.nav-icon {
    display: grid;
    width: 24px;
    place-items: center;
    color: #829088;
    font-size: 16px;
}

.nav-item.active .nav-icon {
    color: var(--forest);
}

.nav-badge {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 99px;
    color: var(--forest);
    background: var(--lime);
    font-size: 9px;
    font-weight: 800;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 19px 18px;
    border-top: 1px solid var(--line);
}

.mini-profile,
.topbar-profile {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.mini-profile > span:last-child,
.topbar-profile > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mini-profile strong,
.topbar-profile strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-profile small,
.topbar-profile small {
    max-width: 135px;
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    color: var(--forest);
    background: var(--lime);
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.avatar-small {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
}

.logout-link {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    color: var(--muted);
    font-size: 16px;
}

.logout-link:hover {
    color: var(--danger);
    background: #fff0f1;
}

.dashboard-main {
    width: calc(100% - 264px);
    min-height: 100vh;
    margin-left: 264px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    height: 82px;
    align-items: center;
    gap: 18px;
    padding: 0 clamp(22px, 4vw, 48px);
    border-bottom: 1px solid #e5ebe7;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(14px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
    font-size: 21px;
}

.topbar-title p {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.topbar-title h1 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    letter-spacing: -.02em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.icon-button {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
    color: var(--ink);
    background: #fff;
    font-size: 19px;
}

.dashboard-content {
    width: min(1360px, 100%);
    margin: 0 auto;
    padding: 32px clamp(22px, 4vw, 48px) 60px;
}

.welcome-banner {
    position: relative;
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    padding: 38px 42px;
    overflow: hidden;
    border-radius: 23px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(200,242,107,.22), transparent 18rem),
        var(--forest);
    box-shadow: 0 18px 40px rgba(23,63,52,.13);
}

.welcome-banner::after {
    position: absolute;
    right: 100px;
    bottom: -90px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    content: "";
}

.banner-kicker {
    color: var(--lime);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.welcome-banner h2 {
    margin: 12px 0 8px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -.04em;
}

.welcome-banner p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.65);
    font-size: 14px;
    line-height: 1.6;
}

.banner-date {
    position: relative;
    z-index: 2;
    display: grid;
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    place-items: center;
    align-content: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 23px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(5px);
}

.banner-date span {
    font-family: "Manrope", sans-serif;
    font-size: 31px;
    font-weight: 800;
    line-height: 1;
}

.banner-date small {
    margin-top: 6px;
    color: var(--lime);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.metric-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.metric-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: var(--forest);
    background: #eef6f0;
    font-size: 13px;
    font-weight: 800;
}

.metric-trend {
    color: #88928d;
    font-size: 9px;
    font-weight: 700;
}

.metric-card > strong {
    display: block;
    margin-top: 24px;
    font-family: "Manrope", sans-serif;
    font-size: 29px;
    letter-spacing: -.04em;
}

.metric-card p {
    margin: 4px 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.metric-card > small {
    color: var(--muted);
    font-size: 10px;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, .7fr);
    gap: 20px;
    margin-top: 20px;
}

.content-card {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-heading p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    letter-spacing: -.025em;
}

.status-chip {
    padding: 6px 9px;
    border-radius: 99px;
    color: var(--forest);
    background: #eaf5ee;
    font-size: 9px;
    font-weight: 800;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.quick-action {
    display: grid;
    grid-template-columns: 40px 1fr;
    min-height: 86px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    border-color: #c9d8ce;
    background: #fbfdfb;
}

.quick-action > span {
    display: grid;
    width: 36px;
    height: 36px;
    grid-row: span 2;
    place-items: center;
    border-radius: 10px;
    color: var(--forest);
    background: #eef6f0;
    font-size: 14px;
    font-weight: 800;
}

.quick-action strong {
    align-self: end;
    font-size: 12px;
}

.quick-action small {
    align-self: start;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.setup-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.setup-list li {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 0 0 20px;
}

.setup-list li:not(:last-child)::after {
    position: absolute;
    top: 26px;
    bottom: 3px;
    left: 12px;
    width: 1px;
    content: "";
    background: var(--line);
}

.setup-list li > span {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
    font-size: 9px;
    font-weight: 800;
}

.setup-list li.done > span {
    color: var(--forest);
    border-color: #c9e6d3;
    background: #eaf5ee;
}

.setup-list li div {
    display: flex;
    flex-direction: column;
}

.setup-list strong {
    font-size: 11px;
}

.setup-list small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.sidebar-overlay {
    display: none;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    padding: 13px 17px;
    border-radius: 11px;
    color: #fff;
    background: var(--ink);
    box-shadow: 0 15px 35px rgba(23,34,29,.2);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Error */
.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.error-card {
    width: min(100%, 520px);
    padding: 55px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.error-code {
    color: var(--emerald);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .2em;
}

.error-card h1 {
    margin: 16px 0 12px;
    font-family: "Manrope", sans-serif;
    font-size: 30px;
}

.error-card p {
    margin: 0 0 25px;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 1040px) {
    .portal-grid,
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-shell {
        grid-template-columns: minmax(360px, .8fr) minmax(480px, 1.2fr);
    }

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

    .activity-card {
        display: none;
    }
}

@media (max-width: 820px) {
    .login-shell {
        display: block;
    }

    .login-intro {
        display: none;
    }

    .login-form-area {
        min-height: 100vh;
        padding: 38px 24px;
    }

    .back-link {
        margin-bottom: 45px;
    }

    .form-heading .mobile-brand-mark {
        display: grid;
        margin-bottom: 35px;
    }

    .sidebar {
        width: 280px;
        transform: translateX(-102%);
        transition: transform .25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 15px 0 45px rgba(23,34,29,.15);
    }

    .sidebar-close,
    .menu-toggle {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 29;
        display: block;
        visibility: hidden;
        background: rgba(15,25,20,.42);
        opacity: 0;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .sidebar-overlay.visible {
        visibility: visible;
        opacity: 1;
    }

    .sidebar-is-open {
        overflow: hidden;
    }

    .dashboard-main {
        width: 100%;
        margin-left: 0;
    }

    .topbar-profile > span:last-child {
        display: none;
    }
}

@media (max-width: 640px) {
    .portal-header,
    .portal-main,
    .portal-footer {
        width: min(100% - 30px, 1180px);
    }

    .portal-header {
        padding-top: 20px;
    }

    .secure-label {
        display: none;
    }

    .portal-main {
        padding: 45px 0 60px;
    }

    .portal-hero h1 {
        font-size: 43px;
    }

    .portal-hero p {
        font-size: 15px;
    }

    .portal-grid,
    .metric-grid,
    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .portal-card {
        min-height: 245px;
    }

    .portal-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .topbar {
        height: 72px;
        padding-inline: 17px;
    }

    .topbar-title p {
        display: none;
    }

    .topbar-title h1 {
        font-size: 16px;
    }

    .icon-button {
        display: none;
    }

    .dashboard-content {
        padding: 20px 15px 45px;
    }

    .welcome-banner {
        min-height: 220px;
        align-items: flex-start;
        padding: 28px;
    }

    .welcome-banner p {
        padding-right: 30px;
    }

    .banner-date {
        position: absolute;
        right: 22px;
        bottom: 20px;
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 18px;
    }

    .banner-date span {
        font-size: 24px;
    }

    .metric-grid {
        gap: 10px;
    }

    .metric-card {
        display: grid;
        grid-template-columns: 45px 1fr;
        padding: 17px;
    }

    .metric-card-top {
        grid-row: span 3;
        align-items: flex-start;
    }

    .metric-trend {
        display: none;
    }

    .metric-card > strong {
        margin-top: 0;
        font-size: 23px;
    }

    .metric-card p {
        margin: 1px 0 4px;
    }

    .content-card {
        padding: 19px;
    }

    .status-chip {
        display: none;
    }
}

