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

:root {
    --bg: #f4efe7;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-border: rgba(36, 40, 46, 0.1);
    --text: #182028;
    --muted: #66727f;
    --accent: #005f73;
    --accent-dark: #0a2c39;
    --accent-soft: #e6f4f6;
    --success: #1f7a45;
    --success-soft: #eaf8ef;
    --danger: #a33a2f;
    --danger-soft: #fdecea;
    --warning: #a35d00;
    --warning-soft: #fff2e1;
    --shadow: 0 18px 40px rgba(17, 30, 44, 0.12);
    --radius: 18px;
    --auth-green-deep: #0b4f3d;
    --auth-green: #1f7a57;
    --auth-green-soft: rgba(126, 211, 171, 0.22);
    --auth-mint: #dff8ea;
    --auth-lime: #c1f073;
    --auth-gold: #ffd36d;
    --auth-glass: rgba(255, 255, 255, 0.14);
    --auth-glass-strong: rgba(255, 255, 255, 0.22);
    --auth-border: rgba(255, 255, 255, 0.28);
    --auth-shadow: 0 28px 70px rgba(7, 43, 31, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(0, 95, 115, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(202, 103, 2, 0.18), transparent 24%),
        linear-gradient(180deg, #f7f2ea 0%, #f0e7da 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    letter-spacing: -0.04em;
}

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

.page-shell {
    min-height: 100vh;
}

.page-content {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.topbar {
    width: min(1240px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.topbar__brand a {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.topbar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topbar__nav a {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
}

.topbar__nav a.active,
.topbar__nav a:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.topbar__account {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.topbar__user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.topbar__user span {
    font-weight: 700;
}

.topbar__user small {
    color: var(--muted);
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 1.5rem;
    align-items: stretch;
}

.hero__content,
.hero__panel,
.auth-card,
.empty-state,
.card,
.table-card,
.panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero__content {
    padding: 3rem;
}

.hero__content h1 {
    margin: 0.2rem 0 1rem;
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    line-height: 0.95;
}

.hero__content p,
.hero__panel li,
.auth-card p,
.empty-state p {
    color: var(--muted);
    line-height: 1.6;
}

.hero__actions {
    margin-top: 1.5rem;
}

.hero__panel {
    padding: 2rem;
}

.hero__panel h2 {
    margin-top: 0;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent-dark);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.button--ghost {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid rgba(10, 44, 57, 0.15);
}

.button--soft {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.auth-card {
    width: min(540px, 100%);
    margin: 2rem auto 0;
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

.auth-shell {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.88fr);
    gap: 1.1rem;
    min-height: calc(100vh - 8rem);
    padding: 0.5rem 0 1rem;
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
}

.auth-shell::before {
    width: 380px;
    height: 380px;
    top: -6%;
    left: -4%;
    background: radial-gradient(circle, rgba(60, 179, 113, 0.26), transparent 70%);
}

.auth-shell::after {
    width: 360px;
    height: 360px;
    right: -2%;
    bottom: -6%;
    background: radial-gradient(circle, rgba(255, 211, 109, 0.18), transparent 72%);
}

.auth-showcase,
.auth-panel {
    position: relative;
    z-index: 1;
    border: 1px solid var(--auth-border);
    border-radius: 30px;
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    box-shadow: var(--auth-shadow);
}

.auth-showcase {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.15rem;
    padding: 2rem 2rem 1.9rem;
    color: #f6fff9;
    background:
        linear-gradient(160deg, rgba(8, 57, 44, 0.88), rgba(18, 98, 74, 0.74)),
        radial-gradient(circle at top right, rgba(193, 240, 115, 0.14), transparent 34%);
}

.auth-showcase .eyebrow {
    color: var(--auth-lime);
}

.auth-showcase__top {
    display: grid;
    gap: 0.9rem;
}

.auth-showcase h1 {
    margin: 0;
    font-size: clamp(2.2rem, 3vw, 3.8rem);
    line-height: 0.96;
    max-width: 11ch;
}

.auth-showcase p {
    margin: 0;
    max-width: 50ch;
    color: rgba(246, 255, 249, 0.84);
    font-size: 1rem;
    line-height: 1.65;
}

.auth-showcase__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.48rem 0.84rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f7fffb;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.auth-chip-row span {
    padding: 0.55rem 0.82rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(246, 255, 249, 0.84);
    font-size: 0.85rem;
}

.auth-feature-list {
    display: grid;
    gap: 0.9rem;
}

.auth-feature-list--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.auth-feature-list article,
.auth-pulse-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
}

.auth-feature-list article {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
}

.auth-feature-list strong,
.auth-pulse-card__label {
    color: #ffffff;
    font-size: 0.92rem;
}

.auth-feature-list span,
.auth-pulse-card__steps span {
    color: rgba(246, 255, 249, 0.78);
}

.auth-pulse-card {
    padding: 1rem;
}

.auth-pulse-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-pulse-card__head small {
    color: rgba(246, 255, 249, 0.6);
    font-size: 0.8rem;
}

.auth-pulse-card__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.auth-pulse-card__steps span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.88rem;
}

.auth-pulse-card__steps .is-active {
    background: rgba(193, 240, 115, 0.18);
    border-color: rgba(193, 240, 115, 0.32);
    color: #fbffe8;
}

.auth-panel {
    display: grid;
    align-content: center;
    gap: 1.15rem;
    padding: 2rem 1.9rem 1.8rem;
    background:
        linear-gradient(180deg, rgba(248, 255, 251, 0.86), rgba(235, 250, 241, 0.62)),
        radial-gradient(circle at top left, rgba(193, 240, 115, 0.08), transparent 28%);
}

.auth-panel__header h2 {
    margin: 0.32rem 0 0.45rem;
    font-size: 2rem;
    color: var(--auth-green-deep);
}

.auth-panel__header p,
.auth-panel__footer span {
    color: rgba(12, 50, 36, 0.72);
}

.auth-role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.auth-role-pills span {
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    background: rgba(31, 122, 87, 0.08);
    border: 1px solid rgba(31, 122, 87, 0.11);
    color: var(--auth-green-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.field--glass input {
    background: rgba(245, 255, 248, 0.88);
    border: 1px solid rgba(20, 89, 60, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    height: 58px;
    font-size: 0.98rem;
}

.field--glass input:focus {
    outline: none;
    border-color: rgba(31, 122, 87, 0.42);
    box-shadow:
        0 0 0 4px rgba(126, 211, 171, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.button--auth {
    background: linear-gradient(135deg, var(--auth-green-deep), var(--auth-green));
    box-shadow: 0 16px 28px rgba(11, 79, 61, 0.24);
    width: 100%;
    height: 58px;
    font-size: 1rem;
}

.button--auth:hover {
    filter: brightness(1.04);
}

.form-error--glass {
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 236, 231, 0.7);
    border: 1px solid rgba(163, 58, 47, 0.12);
}

.auth-panel__footer {
    display: grid;
    gap: 0.7rem;
    padding-top: 0.4rem;
}

.auth-panel__footer div {
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid rgba(20, 89, 60, 0.1);
}

.auth-panel__footer strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--auth-green-deep);
}

.auth-shell--compact {
    min-height: auto;
    align-items: center;
}

.auth-shell--compact .auth-showcase h1 {
    max-width: 12ch;
}

body:has(.auth-portal) {
    background:
        linear-gradient(180deg, #f7fbf7 0%, #eef5ef 100%);
}

body:has(.landing-portal) {
    background:
        linear-gradient(180deg, #f7fbf7 0%, #eef5ef 100%);
}

body:has(.auth-portal) .page-content {
    width: min(100%, 100%);
    padding: 0 0 3rem;
}

body:has(.landing-portal) .page-content {
    width: min(100%, 100%);
    padding: 0 0 3rem;
}

body:has(.auth-portal) .topbar {
    width: 100%;
    margin: 0;
    padding: 0.95rem 3.2rem;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    border-radius: 0;
    background: #006400;
    border: 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 30;
}

body:has(.landing-portal) .topbar {
    width: 100%;
    margin: 0;
    padding: 0.95rem 3.2rem;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    border-radius: 0;
    background: #006400;
    border: 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 30;
}

body:has(.auth-portal) .topbar__nav {
    justify-content: flex-end;
    align-items: center;
    gap: 0.8rem;
}

body:has(.landing-portal) .topbar__nav {
    justify-content: flex-end;
    align-items: center;
    gap: 0.8rem;
}

body:has(.auth-portal) .topbar__nav a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.55rem 0.7rem;
}

body:has(.landing-portal) .topbar__nav a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.55rem 0.7rem;
}

body:has(.auth-portal) .topbar__nav a:hover,
body:has(.auth-portal) .topbar__nav a.active {
    background: transparent;
    color: #ffffff;
}

body:has(.landing-portal) .topbar__nav a:hover,
body:has(.landing-portal) .topbar__nav a.active {
    background: transparent;
    color: #ffffff;
}

body:has(.auth-portal) .topbar__account {
    justify-content: flex-end;
}

body:has(.landing-portal) .topbar__account {
    justify-content: flex-end;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #ffffff;
}

.portal-brand__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.portal-brand__text {
    display: grid;
    gap: 0.2rem;
}

.portal-brand__text strong {
    font-size: 1rem;
    line-height: 1.05;
}

.portal-brand__text small {
    color: #f4d953;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
}

.button--portal-cta {
    background: #ffd400;
    color: #0b4d21;
    padding-inline: 1.4rem;
    box-shadow: none;
}

.button--portal-cta:hover {
    filter: brightness(0.98);
}

.landing-portal {
    display: grid;
    gap: 0;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
    gap: 2rem;
    align-items: center;
    padding: 5rem 3.2rem 4.2rem;
    min-height: 78vh;
    background:
        linear-gradient(135deg, rgba(0, 100, 0, 0.92) 0%, rgba(26, 130, 55, 0.82) 56%, rgba(0, 72, 18, 0.95) 100%),
        radial-gradient(circle at top right, rgba(255, 212, 0, 0.15), transparent 24%);
    color: #ffffff;
}

.landing-hero__copy h1 {
    margin: 0.9rem 0 1rem;
    font-size: clamp(3.5rem, 7vw, 6.4rem);
    line-height: 0.92;
    color: #ffffff;
}

.landing-hero__copy p {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.9);
}

.landing-hero__panel {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    border-radius: 30px;
    padding: 1.7rem;
    border: 1px solid rgba(18, 53, 36, 0.08);
    box-shadow: 0 28px 64px rgba(4, 34, 16, 0.22);
}

.landing-hero__panel h2 {
    margin: 0.45rem 0 0.7rem;
    font-size: 1.95rem;
    color: #0b4d21;
}

.landing-hero__panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.landing-hero__panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.3rem;
}

.landing-about {
    padding: 4rem 3.2rem 0;
}

.auth-portal {
    display: grid;
    gap: 0;
}

.portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 420px);
    gap: 2rem;
    align-items: center;
    padding: 4rem 3.2rem 3.6rem;
    min-height: 78vh;
    background:
        linear-gradient(135deg, rgba(0, 100, 0, 0.94) 0%, rgba(19, 130, 52, 0.84) 54%, rgba(3, 70, 22, 0.94) 100%),
        radial-gradient(circle at top right, rgba(255, 212, 0, 0.18), transparent 26%);
    color: #fff;
}

.portal-eyebrow {
    display: inline-block;
    color: #ffd400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.84rem;
    font-weight: 800;
}

.portal-hero__copy h1 {
    margin: 0.9rem 0 1rem;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.94;
    color: #ffffff;
}

.portal-hero__copy p {
    margin: 0;
    max-width: 720px;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button--portal-primary {
    background: #ffd400;
    color: #0b4d21;
    min-width: 220px;
    min-height: 64px;
    font-size: 1.05rem;
}

.button--portal-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.82);
    min-width: 210px;
    min-height: 64px;
    font-size: 1.05rem;
}

.portal-highlight-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.4rem;
}

.portal-highlight-row article {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-highlight-row strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.portal-highlight-row span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    font-size: 0.94rem;
}

.portal-login-card {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border-radius: 30px;
    padding: 1.6rem;
    box-shadow: 0 30px 70px rgba(4, 34, 16, 0.22);
    border: 1px solid rgba(18, 53, 36, 0.08);
}

.portal-login-card__head h2 {
    margin: 0.45rem 0 0.55rem;
    font-size: 2rem;
    color: #0b4d21;
}

.portal-login-card__head p,
.portal-login-notes span {
    color: var(--muted);
    line-height: 1.6;
}

.portal-role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.15rem 0;
}

.portal-role-pills span {
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    background: #eef8ee;
    border: 1px solid rgba(0, 100, 0, 0.09);
    color: #0b5c25;
    font-size: 0.82rem;
    font-weight: 700;
}

.portal-field input {
    border-radius: 16px;
    border: 1px solid rgba(0, 100, 0, 0.14);
    min-height: 58px;
    background: #fbfefb;
}

.portal-field input:focus {
    outline: none;
    border-color: rgba(0, 100, 0, 0.38);
    box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.1);
}

.button--portal-submit {
    width: 100%;
    min-height: 58px;
    background: linear-gradient(135deg, #006400, #11813d);
    box-shadow: 0 16px 28px rgba(0, 100, 0, 0.18);
}

.portal-form-error {
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    background: rgba(253, 236, 234, 0.88);
    border: 1px solid rgba(163, 58, 47, 0.12);
}

.portal-login-notes {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.portal-login-notes div {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #f7fbf7;
    border: 1px solid rgba(0, 100, 0, 0.08);
}

.portal-login-notes strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #0b4d21;
}

.portal-about,
.portal-systems {
    padding: 4rem 3.2rem 0;
}

.portal-section-heading {
    max-width: 940px;
}

.portal-section-heading--center {
    text-align: center;
    margin: 0 auto 2rem;
}

.portal-section-heading h2 {
    margin: 0.8rem 0 0.95rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #006400;
}

.portal-section-heading p {
    margin: 0;
    color: #4f6470;
    line-height: 1.7;
    font-size: 1.02rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.portal-system-card {
    background: #ffffff;
    border: 1px solid rgba(18, 53, 36, 0.1);
    border-radius: 28px;
    padding: 2rem 1.5rem 1.7rem;
    box-shadow: 0 16px 36px rgba(18, 53, 36, 0.06);
    text-align: center;
}

.portal-system-card--featured {
    border-color: rgba(255, 212, 0, 0.55);
    box-shadow: 0 20px 42px rgba(18, 53, 36, 0.08);
}

.portal-system-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.2rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef8ee;
    color: #006400;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.portal-system-card h3 {
    margin: 0 0 0.8rem;
    font-size: 1.15rem;
    line-height: 1.35;
    color: #006400;
}

.portal-system-card p {
    margin: 0;
    color: #5e6f79;
    line-height: 1.6;
}

.portal-footer {
    margin-top: 4rem;
    padding: 3.2rem 3.2rem 2.6rem;
    background: #006400;
    color: #f4fff6;
    display: grid;
    gap: 2rem;
}

.portal-footer__brand {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.portal-footer__brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.portal-footer__brand strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.portal-footer__brand span {
    display: block;
    color: #f4d953;
    margin-bottom: 0.8rem;
}

.portal-footer__brand p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

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

.portal-footer__links div {
    display: grid;
    gap: 0.7rem;
}

.portal-footer__links a {
    color: rgba(255, 255, 255, 0.9);
}

.portal-footer__links a:hover {
    color: #ffffff;
}

.portal-footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.4rem;
    color: rgba(255, 255, 255, 0.76);
}

body:has(.auth-shell) {
    background:
        radial-gradient(circle at top left, rgba(46, 143, 103, 0.18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(255, 211, 109, 0.12), transparent 18%),
        linear-gradient(145deg, #061610 0%, #0b241c 32%, #0e3327 68%, #11362d 100%);
}

body:has(.auth-shell) .page-content {
    width: min(1240px, calc(100% - 2rem));
    padding-top: 1rem;
}

body:has(.auth-shell) .topbar {
    width: min(1240px, calc(100% - 2rem));
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 44px rgba(3, 15, 11, 0.22);
}

body:has(.auth-shell) .topbar__brand a,
body:has(.auth-shell) .topbar__nav a,
body:has(.auth-shell) .topbar__user span,
body:has(.auth-shell) .topbar__user small {
    color: #eefcf3;
}

body:has(.auth-shell) .topbar__nav a.active,
body:has(.auth-shell) .topbar__nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body:has(.auth-shell) .button--ghost {
    color: #eefcf3;
    border-color: rgba(255, 255, 255, 0.16);
}

.stack {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field span {
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(24, 32, 40, 0.14);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font: inherit;
}

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

.form-error {
    margin: 0;
    color: var(--danger);
}

.alert {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid transparent;
}

.alert-success {
    color: var(--success);
    background: var(--success-soft);
    border-color: rgba(31, 122, 69, 0.16);
}

.alert-error {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: rgba(163, 58, 47, 0.16);
}

.empty-state {
    width: min(680px, 100%);
    margin: 2rem auto 0;
    padding: 2rem;
    text-align: center;
}

.grid {
    display: grid;
    gap: 1rem;
}

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

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

.card,
.table-card,
.panel {
    padding: 1.5rem;
}

.stat span {
    color: var(--muted);
}

.stat strong {
    font-size: 2rem;
    line-height: 1;
}

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

.section-header h1,
.section-header h2,
.panel h2,
.table-card h2 {
    margin: 0.2rem 0 0.3rem;
}

.section-header p,
.panel p,
.table-card p {
    margin: 0;
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

code {
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    background: rgba(0, 95, 115, 0.08);
    color: var(--accent-dark);
    font-family: Consolas, "SFMono-Regular", Monaco, monospace;
    font-size: 0.9em;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.95rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(24, 32, 40, 0.08);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.9rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(24, 32, 40, 0.08);
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-paid {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.badge-processing {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-released {
    background: var(--success-soft);
    color: var(--success);
}

.badge-pending {
    color: var(--muted);
}

.badge-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge-muted {
    background: rgba(102, 114, 127, 0.14);
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.inline-actions,
.filter-row,
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.inline-form input,
.inline-form select {
    flex: 1 1 180px;
}

.inline-form--wide input:first-child {
    flex-basis: 300px;
}

.quantity-input {
    width: 88px;
}

.muted {
    color: var(--muted);
}

.key-value {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.key-value div {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 14px;
}

.key-value strong {
    display: block;
    margin-bottom: 0.35rem;
}

.note-block {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
}

.note-block strong {
    display: block;
    margin-bottom: 0.35rem;
}

.top-gap {
    margin-top: 1rem;
}

.receipt {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

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

.checkbox-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-field input {
    width: auto;
}

@media (max-width: 980px) {
    .topbar {
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .topbar__account,
    .topbar__user {
        align-items: flex-start;
    }

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

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-feature-list--dense {
        grid-template-columns: 1fr;
    }

    .split,
    .grid--two {
        grid-template-columns: 1fr;
    }

    body:has(.auth-portal) .topbar {
        padding: 1rem 1.2rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body:has(.auth-portal) .topbar__nav,
    body:has(.auth-portal) .topbar__account {
        justify-content: flex-start;
    }

    .portal-hero {
        grid-template-columns: 1fr;
        padding: 2.2rem 1.2rem 2.6rem;
        min-height: auto;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        padding: 2.8rem 1.2rem 3rem;
        min-height: auto;
    }

    .portal-highlight-row,
    .portal-footer__links {
        grid-template-columns: 1fr;
    }

    .portal-about,
    .portal-systems,
    .portal-footer,
    .landing-about {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

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

    body:has(.landing-portal) .topbar {
        padding: 1rem 1.2rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body:has(.landing-portal) .topbar__nav,
    body:has(.landing-portal) .topbar__account {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .portal-brand__logo {
        width: 44px;
        height: 44px;
    }

    .portal-brand__text strong {
        font-size: 0.92rem;
    }

    .portal-brand__text small {
        font-size: 0.66rem;
    }

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

    .portal-actions .button {
        width: 100%;
    }

    .landing-hero__panel-actions .button {
        width: 100%;
    }
}

body:has(.landing-clean),
body:has(.auth-clean) {
    background:
        radial-gradient(circle at top left, rgba(255, 212, 0, 0.18), transparent 16%),
        radial-gradient(circle at top right, rgba(15, 114, 54, 0.16), transparent 24%),
        linear-gradient(180deg, #e4eee3 0%, #dce8dd 100%);
}

body:has(.landing-clean) .page-content,
body:has(.auth-clean) .page-content {
    width: 100%;
    padding: 0 0 2.5rem;
}

body:has(.landing-clean) .topbar,
body:has(.auth-clean) .topbar {
    width: min(1240px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 0.85rem 1.2rem;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(7, 92, 34, 0.84), rgba(21, 118, 56, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 44px rgba(8, 38, 18, 0.22);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 1rem;
    z-index: 30;
}

body:has(.landing-clean) .topbar__nav,
body:has(.auth-clean) .topbar__nav {
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

body:has(.landing-clean) .topbar__account,
body:has(.auth-clean) .topbar__account {
    justify-content: flex-end;
}

body:has(.landing-clean) .topbar__nav a,
body:has(.auth-clean) .topbar__nav a,
body:has(.landing-clean) .portal-brand,
body:has(.auth-clean) .portal-brand {
    color: #ffffff;
}

body:has(.landing-clean) .topbar__nav a,
body:has(.auth-clean) .topbar__nav a {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 700;
}

body:has(.landing-clean) .topbar__nav a:hover,
body:has(.auth-clean) .topbar__nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

body:has(.landing-clean) .button--portal-cta,
body:has(.auth-clean) .button--portal-cta {
    background: rgba(255, 212, 0, 0.96);
    color: #0a4e21;
    box-shadow: none;
}

.landing-clean,
.auth-clean {
    display: grid;
    gap: 1.25rem;
    padding-top: 1.2rem;
}

.clean-hero,
.clean-section,
.clean-footer,
.clean-login-card,
.clean-hero__content,
.clean-hero__panel,
.clean-feature-card {
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 20px 50px rgba(17, 30, 44, 0.1);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.clean-hero {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    gap: 1.1rem;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.clean-hero::before,
.clean-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(6px);
}

.clean-hero::before {
    width: 280px;
    height: 280px;
    top: -120px;
    right: -40px;
    background: radial-gradient(circle, rgba(255, 221, 87, 0.28), transparent 68%);
}

.clean-hero::after {
    width: 260px;
    height: 260px;
    bottom: -120px;
    left: -60px;
    background: radial-gradient(circle, rgba(78, 179, 103, 0.22), transparent 70%);
}

.clean-hero__content,
.clean-hero__panel,
.clean-login-card,
.clean-section,
.clean-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(234, 244, 235, 0.74));
    border-radius: 28px;
}

.clean-hero__content,
.clean-hero__panel,
.clean-login-card {
    padding: 1.6rem;
    position: relative;
    z-index: 1;
}

.clean-hero__content {
    background:
        radial-gradient(circle at top right, rgba(255, 212, 0, 0.2), transparent 24%),
        linear-gradient(145deg, rgba(6, 84, 31, 0.94), rgba(31, 128, 65, 0.86));
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 22px 54px rgba(8, 54, 21, 0.18);
}

.landing-clean .clean-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.clean-hero--auth .clean-hero__content {
    background:
        radial-gradient(circle at top right, rgba(255, 212, 0, 0.16), transparent 22%),
        linear-gradient(145deg, rgba(6, 76, 29, 0.92), rgba(24, 117, 53, 0.82));
}

.clean-eyebrow {
    display: inline-block;
    color: #ffe16a;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 800;
}

.clean-hero__content h1 {
    margin: 0.75rem 0 0.85rem;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 0.96;
    color: #ffffff;
    max-width: 10ch;
    text-wrap: balance;
}

.landing-clean .clean-hero__content h1 {
    max-width: 12ch;
}

.clean-hero__content p {
    margin: 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    font-size: 1rem;
}

.landing-clean .clean-hero__content p {
    margin-inline: auto;
}

.clean-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.35rem;
}

.landing-clean .clean-actions,
.landing-clean .clean-pill-row {
    justify-content: center;
}

.clean-button {
    min-height: 52px;
    padding-inline: 1.2rem;
    box-shadow: none;
}

.clean-button--primary,
.clean-button--submit {
    background: rgba(255, 212, 0, 0.96);
    color: #0b4d21;
    box-shadow: 0 12px 26px rgba(141, 118, 7, 0.18);
}

.clean-button--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.62);
}

.clean-button--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.clean-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.clean-pill-row span {
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f7fff8;
    font-size: 0.82rem;
    font-weight: 700;
}

.clean-hero__panel {
    display: grid;
    gap: 0.9rem;
    color: var(--text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(233, 243, 235, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 18px 44px rgba(17, 30, 44, 0.08);
}

.clean-mini-card {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(247, 252, 247, 0.96), rgba(234, 245, 235, 0.96));
    border: 1px solid rgba(18, 53, 36, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.clean-mini-label {
    display: block;
    margin-bottom: 0.7rem;
    color: #0a5825;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.clean-step-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.clean-step-list span {
    padding: 0.46rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 100, 0, 0.11);
    border: 1px solid rgba(0, 100, 0, 0.12);
    color: #0a5825;
    font-size: 0.84rem;
    font-weight: 700;
}

.clean-mini-grid,
.clean-support-grid {
    display: grid;
    gap: 0.8rem;
}

.clean-mini-grid article,
.clean-support-grid article,
.clean-login-card__head,
.clean-feature-card {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(236, 246, 237, 0.86));
    border: 1px solid rgba(18, 53, 36, 0.1);
}

.clean-mini-grid article {
    border-left: 4px solid rgba(16, 111, 49, 0.55);
}

.clean-mini-grid strong,
.clean-support-grid strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #0b4d21;
}

.clean-mini-grid span,
.clean-support-grid span {
    color: var(--muted);
    line-height: 1.55;
}

.clean-login-card {
    display: grid;
    gap: 1rem;
    align-content: start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(236, 245, 237, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 24px 52px rgba(17, 30, 44, 0.12);
}

.clean-login-card__head {
    padding: 0;
    background: transparent;
    border: 0;
}

.clean-login-card__head h2 {
    margin: 0.45rem 0 0.45rem;
    font-size: 1.8rem;
    color: #0b4d21;
}

.clean-login-card__head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.clean-field input {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(0, 100, 0, 0.12);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.clean-field input:focus {
    outline: none;
    border-color: rgba(0, 100, 0, 0.36);
    box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.08);
}

.clean-form-error {
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(253, 236, 234, 0.88);
    border: 1px solid rgba(163, 58, 47, 0.12);
}

.clean-hero__panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.2rem;
}

.clean-section {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(235, 245, 236, 0.82));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 18px 46px rgba(17, 30, 44, 0.08);
}

.clean-section__intro {
    max-width: 760px;
}

.clean-section__intro--center {
    text-align: center;
    margin: 0 auto;
}

.clean-section__intro h2 {
    margin: 0.65rem 0 0.7rem;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: #0b4d21;
}

.clean-section__intro p {
    margin: 0;
    color: #587164;
    line-height: 1.65;
}

.clean-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.clean-feature-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clean-feature-card {
    padding: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 243, 233, 0.88));
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.clean-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 111, 49, 0.18);
    box-shadow: 0 24px 48px rgba(14, 43, 24, 0.12);
}

.clean-feature-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0.9rem;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0, 100, 0, 0.12), rgba(0, 100, 0, 0.08));
    color: #0b5826;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.clean-feature-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
    color: #0b4d21;
}

.clean-feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
    font-size: 0.95rem;
}

.clean-footer {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 1.3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(9, 89, 35, 0.88), rgba(23, 116, 54, 0.84));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 40px rgba(8, 38, 18, 0.16);
}

.clean-footer--compact {
    margin-top: 0;
}

.clean-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.clean-footer__brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.clean-footer__brand strong {
    display: block;
    color: #ffffff;
}

.clean-footer__brand span {
    display: block;
    color: #f4d953;
    font-size: 0.92rem;
}

.clean-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: flex-end;
}

.clean-footer__links a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.clean-footer__links a:hover {
    color: #ffffff;
}

.clean-footer__note {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    padding-top: 0.2rem;
}

.auth-clean .clean-hero {
    width: min(760px, calc(100% - 2rem));
    grid-template-columns: 1fr;
    align-items: stretch;
}

.auth-clean .clean-footer {
    width: min(760px, calc(100% - 2rem));
}

.auth-clean .clean-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.35rem 1.8rem 1.75rem;
}

.auth-clean .clean-hero__content h1,
.auth-clean .clean-hero__content p {
    margin-inline: auto;
}

.auth-clean .clean-hero__content h1 {
    max-width: 10ch;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    margin-bottom: 0.8rem;
}

.auth-clean .clean-hero__content p {
    max-width: 34ch;
    font-size: 1.02rem;
    line-height: 1.6;
}

.clean-auth-form {
    width: min(100%, 500px);
    margin-top: 1.4rem;
    padding: 1.2rem;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(13, 76, 34, 0.12);
    box-shadow: 0 18px 36px rgba(10, 39, 17, 0.16);
    text-align: left;
}

.clean-auth-form .field span {
    color: #163d23;
    font-size: 0.95rem;
}

.clean-auth-form .clean-field input {
    min-height: 56px;
    background: #f8fbf8;
    border-color: rgba(13, 76, 34, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.clean-auth-form .clean-field input::placeholder {
    color: #72857a;
}

.clean-auth-form .clean-field input:focus {
    border-color: rgba(13, 109, 49, 0.34);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 109, 49, 0.08);
}

.clean-auth-form .clean-form-error {
    background: #fff1ef;
    border: 1px solid rgba(163, 58, 47, 0.14);
    color: #a33a2f;
}

.clean-auth-form .clean-button--submit {
    width: 100%;
    min-height: 56px;
    margin-top: 0.2rem;
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(141, 118, 7, 0.16);
}

body.is-modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 16%, rgba(255, 210, 77, 0.1), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(5, 21, 11, 0.5), rgba(6, 22, 11, 0.62));
    backdrop-filter: blur(14px) saturate(118%);
    -webkit-backdrop-filter: blur(14px) saturate(118%);
}

.auth-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.4rem 1.35rem 1.3rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 249, 0.74)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(240, 246, 242, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        0 28px 64px rgba(6, 27, 14, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(20px) saturate(128%);
    -webkit-backdrop-filter: blur(20px) saturate(128%);
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 76, 34, 0.22) transparent;
}

.auth-modal__dialog::before,
.auth-modal__dialog::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.auth-modal__dialog::before {
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 210, 77, 0.08), transparent 24%);
    opacity: 0.7;
}

.auth-modal__dialog::after {
    top: -30px;
    right: -18px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 77, 0.1), transparent 72%);
}

.auth-modal.is-open .auth-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.auth-modal__close {
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #114022;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(8, 36, 15, 0.1);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.auth-modal__close:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 22px rgba(8, 36, 15, 0.14);
}

.auth-modal__close:focus-visible {
    outline: 2px solid rgba(18, 66, 33, 0.4);
    outline-offset: 2px;
}

.auth-modal__header {
    position: relative;
    z-index: 1;
    padding: 0.15rem 2.7rem 0.85rem 0.15rem;
    text-align: center;
}

.auth-modal__logo-shell {
    width: 88px;
    height: 88px;
    margin: 0 auto 0.95rem;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(239, 245, 241, 0.56));
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 14px 26px rgba(8, 36, 15, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-modal__logo {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(9, 47, 18, 0.14));
}

.auth-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 225, 128, 0.34), rgba(255, 214, 77, 0.22));
    border: 1px solid rgba(190, 139, 8, 0.28);
    color: #8b6500;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 8px 18px rgba(143, 112, 7, 0.08);
}

.auth-modal__header h2 {
    margin: 0.72rem 0 0.42rem;
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #10381f;
}

.auth-modal__header p {
    margin: 0;
    color: #4f6559;
    font-size: 1rem;
    line-height: 1.55;
}

.auth-modal__guide-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.auth-modal__guide {
    display: grid;
    gap: 0.22rem;
    padding: 0.8rem 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.auth-modal__guide strong {
    color: #124221;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-modal__guide span {
    color: #486154;
    font-size: 0.95rem;
    line-height: 1.45;
}

.auth-modal__form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.auth-modal__form .field span {
    color: #163d23;
    font-size: 1rem;
    font-weight: 800;
}

.auth-modal__field-note {
    display: block;
    margin: 0.15rem 0 0.5rem;
    color: #52695d;
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-modal__form .clean-field input {
    min-height: 60px;
    padding: 0.95rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    color: #173d24;
    font-size: 1rem;
    border: 1px solid rgba(20, 86, 42, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 4px 14px rgba(8, 36, 15, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-modal__form .clean-field input::placeholder {
    color: #72877a;
}

.auth-modal__form .clean-field input:focus {
    border-color: rgba(13, 109, 49, 0.32);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(13, 109, 49, 0.08),
        0 10px 18px rgba(13, 109, 49, 0.06);
}

.auth-modal__form .clean-button--submit {
    width: 100%;
    min-height: 58px;
    margin-top: 0.25rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffd24d, #ffde73);
    color: #114022;
    box-shadow: 0 16px 30px rgba(141, 118, 7, 0.2);
}

.auth-modal__form .clean-button--submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(141, 118, 7, 0.24);
}

.auth-modal__form .clean-form-error {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 244, 242, 0.92);
    border: 1px solid rgba(163, 58, 47, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    color: #923329;
}

#portal-login-form {
    scroll-margin-top: 6.2rem;
}

#portal-home,
#portal-about,
#portal-features,
#portal-login-form {
    scroll-margin-top: 6.2rem;
}

@media (max-width: 1080px) {
    .clean-hero {
        grid-template-columns: 1fr;
    }

    .clean-feature-grid,
    .clean-feature-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {
    body:has(.landing-clean) .topbar,
    body:has(.auth-clean) .topbar {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    body:has(.landing-clean) .topbar__nav,
    body:has(.landing-clean) .topbar__account,
    body:has(.auth-clean) .topbar__nav,
    body:has(.auth-clean) .topbar__account {
        justify-content: flex-start;
    }

    .clean-footer {
        grid-template-columns: 1fr;
    }

    .clean-footer__links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    body:has(.landing-clean) .topbar,
    body:has(.auth-clean) .topbar {
        width: calc(100% - 1rem);
        margin-top: 0.5rem;
        padding: 0.9rem 1rem;
        top: 0.5rem;
    }

    .clean-hero,
    .clean-section,
    .clean-footer {
        width: calc(100% - 1rem);
    }

    .clean-hero__content,
    .clean-hero__panel,
    .clean-login-card,
    .clean-section,
    .clean-footer {
        padding: 1.15rem;
        border-radius: 22px;
    }

    .clean-actions .button,
    .clean-hero__panel-actions .button,
    .clean-footer__links {
        width: 100%;
    }

    .clean-actions,
    .clean-hero__panel-actions {
        flex-direction: column;
    }

    .clean-feature-grid,
    .clean-feature-grid--compact {
        grid-template-columns: 1fr;
    }

    .auth-clean .clean-hero {
        width: calc(100% - 1rem);
    }

    .clean-auth-form {
        width: 100%;
        padding: 1rem;
        border-radius: 20px;
    }

    .auth-modal {
        padding: 0.75rem;
    }

    .auth-modal__dialog {
        width: 100%;
        padding: 1.1rem;
        border-radius: 22px;
    }
}

body.app-authenticated {
    background:
        radial-gradient(circle at top left, rgba(255, 212, 0, 0.18), transparent 20%),
        radial-gradient(circle at top right, rgba(24, 117, 53, 0.18), transparent 28%),
        linear-gradient(180deg, #edf5ee 0%, #dbeadf 52%, #d3e2d6 100%);
}

body.app-authenticated .page-content {
    width: min(1240px, calc(100% - 2rem));
    padding: 1.25rem 0 3rem;
}

body.app-authenticated .page-content > * + * {
    margin-top: 1.15rem;
}

body.app-authenticated .topbar {
    position: sticky;
    top: 0.85rem;
    z-index: 30;
    width: min(1280px, calc(100% - 2rem));
    margin-top: 0.8rem;
    padding: 0.95rem 1.15rem;
    grid-template-columns: minmax(280px, auto) 1fr auto;
    background:
        linear-gradient(135deg, rgba(7, 84, 37, 0.9), rgba(37, 127, 69, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 22px 48px rgba(9, 47, 18, 0.18);
}

body.app-authenticated .portal-brand--app {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

body.app-authenticated .portal-brand--app .portal-brand__text strong {
    color: #ffffff;
}

body.app-authenticated .portal-brand--app .portal-brand__text small {
    color: rgba(255, 225, 106, 0.9);
}

body.app-authenticated .topbar__nav {
    justify-content: center;
    gap: 0.45rem;
}

body.app-authenticated .topbar__nav a {
    color: rgba(255, 255, 255, 0.84);
    font-weight: 700;
}

body.app-authenticated .topbar__nav a.active,
body.app-authenticated .topbar__nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

body.app-authenticated .topbar__account {
    gap: 0.75rem;
}

body.app-authenticated .topbar__user {
    padding: 0.55rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

body.app-authenticated .topbar__user span,
body.app-authenticated .topbar__user small {
    color: #ffffff;
}

body.app-authenticated .topbar__user small {
    opacity: 0.8;
}

body.app-authenticated .button {
    background: linear-gradient(135deg, #0f6d31, #178946);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(14, 88, 37, 0.16);
}

body.app-authenticated .button:hover {
    filter: brightness(1.03);
}

body.app-authenticated .button--soft {
    background: linear-gradient(135deg, rgba(240, 250, 243, 0.94), rgba(220, 242, 226, 0.92));
    color: #0e5a2c;
    border: 1px solid rgba(18, 111, 49, 0.12);
}

body.app-authenticated .button--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #124221;
    border: 1px solid rgba(18, 66, 33, 0.14);
    box-shadow: none;
}

body.app-authenticated .topbar .button--ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

body.app-authenticated .page-content > .section-header {
    padding: 1.35rem 1.45rem;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(7, 84, 37, 0.88), rgba(37, 127, 69, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 42px rgba(12, 62, 28, 0.14);
}

body.app-authenticated .page-content > .section-header .eyebrow {
    color: #ffe16a;
}

body.app-authenticated .page-content > .section-header h1 {
    color: #ffffff;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

body.app-authenticated .page-content > .section-header p {
    color: rgba(255, 255, 255, 0.86);
    max-width: 60ch;
}

body.app-authenticated .card,
body.app-authenticated .table-card,
body.app-authenticated .panel,
body.app-authenticated .receipt {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(242, 249, 243, 0.76));
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 26px;
    box-shadow:
        0 20px 48px rgba(17, 30, 44, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.app-authenticated .card,
body.app-authenticated .table-card,
body.app-authenticated .panel {
    padding: 1.4rem;
}

body.app-authenticated .grid {
    gap: 1.15rem;
}

body.app-authenticated .grid--cards {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

body.app-authenticated .stat {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.4rem;
}

body.app-authenticated .stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #0d6b37, #ffd400);
}

body.app-authenticated .stat span {
    display: block;
    margin-bottom: 0.5rem;
    color: #557363;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
}

body.app-authenticated .stat strong {
    font-size: clamp(1.8rem, 2.8vw, 2.35rem);
    color: #0f5b2d;
}

body.app-authenticated .section-header {
    margin-bottom: 1rem;
}

body.app-authenticated .section-header h1,
body.app-authenticated .section-header h2,
body.app-authenticated .panel h2,
body.app-authenticated .table-card h2 {
    color: #123a22;
}

body.app-authenticated .section-header p,
body.app-authenticated .panel p,
body.app-authenticated .table-card p,
body.app-authenticated .muted {
    color: #62786a;
}

body.app-authenticated .field span {
    color: #174526;
    font-size: 0.92rem;
}

body.app-authenticated .field input,
body.app-authenticated .field select,
body.app-authenticated .field textarea,
body.app-authenticated .inline-form input,
body.app-authenticated .inline-form select {
    border: 1px solid rgba(16, 90, 41, 0.14);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

body.app-authenticated .field input:focus,
body.app-authenticated .field select:focus,
body.app-authenticated .field textarea:focus,
body.app-authenticated .inline-form input:focus,
body.app-authenticated .inline-form select:focus {
    outline: 0;
    border-color: rgba(15, 109, 49, 0.42);
    box-shadow:
        0 0 0 4px rgba(15, 109, 49, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.app-authenticated .filter-row {
    align-items: end;
    gap: 1rem;
}

body.app-authenticated .filter-row .field {
    flex: 1 1 170px;
}

body.app-authenticated .inline-form {
    gap: 0.85rem;
}

body.app-authenticated .table-wrap {
    overflow: auto;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(18, 66, 33, 0.08);
}

body.app-authenticated table {
    min-width: 720px;
}

body.app-authenticated th {
    position: sticky;
    top: 0;
    background: rgba(231, 243, 234, 0.96);
    color: #51705f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    z-index: 1;
}

body.app-authenticated td,
body.app-authenticated th {
    border-bottom: 1px solid rgba(18, 66, 33, 0.08);
}

body.app-authenticated tbody tr:hover {
    background: rgba(255, 255, 255, 0.4);
}

body.app-authenticated .badge {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

body.app-authenticated .badge-paid {
    background: rgba(15, 109, 49, 0.12);
    color: #0f6d31;
}

body.app-authenticated .badge-processing {
    background: rgba(255, 212, 0, 0.14);
    color: #8f6200;
}

body.app-authenticated .badge-released {
    background: rgba(32, 157, 86, 0.14);
    color: #167145;
}

body.app-authenticated .badge-pending {
    background: rgba(93, 115, 104, 0.12);
    color: #586d60;
}

body.app-authenticated .badge-danger {
    background: rgba(179, 35, 24, 0.12);
    color: #9f2519;
}

body.app-authenticated .key-value {
    gap: 0.9rem;
}

body.app-authenticated .key-value div,
body.app-authenticated .note-block {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(18, 66, 33, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.app-authenticated .key-value strong,
body.app-authenticated .note-block strong {
    color: #144222;
}

body.app-authenticated .quantity-input {
    width: 96px;
}

@media (max-width: 1100px) {
    body.app-authenticated .topbar {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    body.app-authenticated .topbar__nav,
    body.app-authenticated .topbar__account {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    body.app-authenticated .topbar,
    body.app-authenticated .page-content {
        width: calc(100% - 1rem);
    }

    body.app-authenticated .topbar {
        top: 0.5rem;
        margin-top: 0.5rem;
        padding: 0.95rem 1rem;
        border-radius: 26px;
    }

    body.app-authenticated .page-content {
        padding: 1rem 0 2rem;
    }

    body.app-authenticated .page-content > .section-header,
    body.app-authenticated .card,
    body.app-authenticated .table-card,
    body.app-authenticated .panel,
    body.app-authenticated .receipt {
        padding: 1.1rem;
        border-radius: 22px;
    }

    body.app-authenticated .page-content > .section-header .inline-actions,
    body.app-authenticated .inline-actions,
    body.app-authenticated .filter-row {
        width: 100%;
    }

    body.app-authenticated .inline-actions .button,
    body.app-authenticated .filter-row .button {
        width: 100%;
    }
}

body:has(.landing-clean),
body:has(.auth-clean) {
    background:
        radial-gradient(circle at top left, rgba(255, 212, 0, 0.14), transparent 18%),
        linear-gradient(180deg, #edf4ed 0%, #dfe9e1 100%);
}

body:has(.landing-clean) .topbar,
body:has(.auth-clean) .topbar {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 225, 106, 0.16), transparent 18%),
        linear-gradient(135deg, rgba(9, 92, 39, 0.76), rgba(24, 126, 64, 0.66) 56%, rgba(89, 168, 122, 0.62));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 16px 34px rgba(9, 47, 18, 0.16);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

body:has(.landing-clean) .portal-brand__text strong,
body:has(.auth-clean) .portal-brand__text strong,
body:has(.landing-clean) .topbar__nav a,
body:has(.auth-clean) .topbar__nav a {
    text-shadow: 0 1px 1px rgba(6, 30, 12, 0.25);
}

body:has(.landing-clean) .portal-brand__text small,
body:has(.auth-clean) .portal-brand__text small {
    color: #ffe16a;
    text-shadow: 0 1px 1px rgba(6, 30, 12, 0.25);
}

body:has(.landing-clean) .topbar__nav a:hover,
body:has(.auth-clean) .topbar__nav a:hover {
    background: rgba(255, 255, 255, 0.16);
}

body:has(.landing-clean) .button--portal-cta,
body:has(.auth-clean) .button--portal-cta {
    box-shadow: 0 10px 20px rgba(94, 79, 0, 0.16);
}

.clean-hero,
.clean-section,
.clean-footer,
.clean-login-card,
.clean-hero__content,
.clean-hero__panel,
.clean-feature-card {
    border-color: rgba(15, 59, 26, 0.1);
    box-shadow: 0 18px 36px rgba(17, 30, 44, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.clean-hero__content {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 225, 106, 0.18), transparent 16%),
        radial-gradient(circle at 84% 22%, rgba(120, 199, 145, 0.18), transparent 22%),
        linear-gradient(145deg, #0b652d 0%, #17763a 48%, #28904c 100%);
    box-shadow: 0 20px 40px rgba(8, 54, 21, 0.16);
}

.clean-hero--auth .clean-hero__content {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 225, 106, 0.16), transparent 16%),
        radial-gradient(circle at 84% 22%, rgba(120, 199, 145, 0.16), transparent 22%),
        linear-gradient(145deg, #0a5e2a 0%, #166f37 48%, #238746 100%);
}

.clean-hero__panel,
.clean-login-card,
.clean-section,
.clean-feature-card {
    background: #ffffff;
}

.clean-button--ghost {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.86);
}

.clean-button--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.clean-pill-row span {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.clean-mini-card,
.clean-mini-grid article,
.clean-login-card__head,
.clean-feature-card,
.auth-clean .clean-support-grid article {
    background: #f8fbf8;
    border: 1px solid rgba(15, 59, 26, 0.1);
}

.clean-mini-grid article,
.auth-clean .clean-support-grid article {
    border-left: 4px solid #1b7b3f;
}

.auth-clean .clean-support-grid strong,
.auth-clean .clean-support-grid span,
.clean-mini-grid strong,
.clean-mini-grid span,
.clean-support-grid strong,
.clean-support-grid span,
.clean-login-card__head p,
.clean-feature-card p,
.clean-section__intro p {
    color: #3b5442;
}

.clean-login-card__head h2,
.clean-feature-card h3,
.clean-section__intro h2,
.clean-mini-label,
.clean-mini-grid strong,
.clean-support-grid strong {
    color: #0d4c22;
}

.clean-field input {
    background: #ffffff;
    border: 1px solid rgba(13, 76, 34, 0.16);
    box-shadow: none;
}

.clean-field input:focus {
    box-shadow: 0 0 0 4px rgba(13, 109, 49, 0.08);
}

.clean-feature-card__icon {
    background: #e8f4ea;
    color: #0d5a28;
}

.clean-footer {
    background: linear-gradient(135deg, #0a5c28, #116d34);
    box-shadow: 0 18px 36px rgba(8, 38, 18, 0.16);
}

.auth-shell .auth-showcase,
.auth-shell .auth-panel {
    border: 1px solid rgba(14, 63, 30, 0.12);
    box-shadow: 0 18px 36px rgba(17, 30, 44, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-shell .auth-showcase {
    background:
        radial-gradient(circle at top right, rgba(255, 212, 0, 0.12), transparent 24%),
        linear-gradient(160deg, #0c612e, #197a41);
}

.auth-shell .auth-panel {
    background: #ffffff;
}

.auth-shell .auth-showcase__badge,
.auth-shell .auth-chip-row span,
.auth-shell .auth-feature-list article,
.auth-shell .auth-pulse-card,
.auth-shell .auth-pulse-card__steps span {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

.auth-shell .auth-panel__header h2,
.auth-shell .auth-panel__header p,
.auth-shell .auth-panel__footer strong,
.auth-shell .auth-panel__footer span {
    color: #1c3f28;
}

body.app-authenticated {
    background:
        radial-gradient(circle at top left, rgba(255, 212, 0, 0.12), transparent 18%),
        linear-gradient(180deg, #edf4ed 0%, #dfe9e1 100%);
}

body.app-authenticated .topbar {
    background: linear-gradient(135deg, rgba(11, 104, 45, 0.72), rgba(18, 116, 56, 0.64));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 36px rgba(9, 47, 18, 0.16);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

body.app-authenticated .topbar__nav a {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 1px rgba(6, 30, 12, 0.25);
}

body.app-authenticated .topbar__nav a.active,
body.app-authenticated .topbar__nav a:hover {
    background: rgba(255, 255, 255, 0.14);
}

body.app-authenticated .topbar__user {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

body.app-authenticated .portal-brand__text strong,
body.app-authenticated .portal-brand__text small {
    text-shadow: 0 1px 1px rgba(6, 30, 12, 0.25);
}

body.app-authenticated .page-content > .section-header {
    background: linear-gradient(135deg, #0d6a30, #228646);
    border: 1px solid rgba(9, 71, 29, 0.14);
    box-shadow: 0 18px 34px rgba(12, 62, 28, 0.12);
}

body.app-authenticated .card,
body.app-authenticated .table-card,
body.app-authenticated .panel,
body.app-authenticated .receipt {
    background: #ffffff;
    border: 1px solid rgba(14, 63, 30, 0.1);
    box-shadow: 0 16px 30px rgba(17, 30, 44, 0.07);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.app-authenticated .button {
    background: linear-gradient(135deg, #0f6d31, #178946);
    box-shadow: 0 10px 20px rgba(14, 88, 37, 0.14);
}

body.app-authenticated .button--soft {
    background: #e8f4ea;
    color: #0d5a28;
    border: 1px solid rgba(13, 90, 40, 0.1);
}

body.app-authenticated .button--ghost {
    background: #ffffff;
    color: #134222;
    border: 1px solid rgba(14, 63, 30, 0.14);
}

body.app-authenticated .topbar .button--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}

body.app-authenticated .section-header h1,
body.app-authenticated .section-header h2,
body.app-authenticated .panel h2,
body.app-authenticated .table-card h2,
body.app-authenticated .key-value strong,
body.app-authenticated .note-block strong {
    color: #133c21;
}

body.app-authenticated .section-header p,
body.app-authenticated .panel p,
body.app-authenticated .table-card p,
body.app-authenticated .muted,
body.app-authenticated .stat span {
    color: #496154;
}

body.app-authenticated .field span {
    color: #174526;
}

body.app-authenticated .field input,
body.app-authenticated .field select,
body.app-authenticated .field textarea,
body.app-authenticated .inline-form input,
body.app-authenticated .inline-form select {
    background: #ffffff;
    border: 1px solid rgba(13, 90, 40, 0.14);
    box-shadow: none;
}

body.app-authenticated .field input:focus,
body.app-authenticated .field select:focus,
body.app-authenticated .field textarea:focus,
body.app-authenticated .inline-form input:focus,
body.app-authenticated .inline-form select:focus {
    box-shadow: 0 0 0 4px rgba(13, 109, 49, 0.08);
}

body.app-authenticated .table-wrap {
    background: #f6faf7;
    border: 1px solid rgba(14, 63, 30, 0.08);
}

body.app-authenticated th {
    background: #edf6ef;
    color: #416050;
}

body.app-authenticated tbody tr:hover {
    background: #f7fbf8;
}

body.app-authenticated .key-value div,
body.app-authenticated .note-block {
    background: #f6faf7;
    border: 1px solid rgba(14, 63, 30, 0.08);
    box-shadow: none;
}

@media print {
    .topbar,
    .alert,
    .button {
        display: none !important;
    }

    .page-content {
        width: 100%;
        padding: 0;
    }

    body {
        background: #fff;
    }
}
