:root {
    --background: 0 0% 100%;
    --foreground: 222 23% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 23% 11%;
    --popover: 0 0% 100%;
    --popover-foreground: 222 23% 11%;
    --primary: 174 43% 26%;
    --primary-foreground: 0 0% 100%;
    --secondary: 214 30% 94%;
    --secondary-foreground: 222 23% 11%;
    --muted: 220 17% 96%;
    --muted-foreground: 220 9% 39%;
    --accent: 204 54% 95%;
    --accent-foreground: 209 48% 20%;
    --destructive: 0 74% 52%;
    --destructive-foreground: 0 0% 98%;
    --border: 220 13% 89%;
    --input: 220 13% 89%;
    --ring: 174 43% 26%;
    --radius: 0.45rem;
    --chart-1: 174 43% 32%;
    --chart-2: 209 48% 40%;
    --chart-3: 38 74% 52%;
    --chart-4: 262 35% 54%;
    --chart-5: 15 70% 54%;

    --ease-app-bg: 218 26% 97%;
    --ease-surface: 0 0% 100%;
    --ease-surface-muted: 220 20% 98%;
    --ease-border: 220 13% 88%;
    --ease-text: 222 23% 11%;
    --ease-text-muted: 220 9% 39%;
    --ease-text-soft: 220 10% 55%;
    --ease-primary: 174 43% 26%;
    --ease-primary-soft: 174 44% 94%;
    --ease-accent: 209 48% 40%;
    --ease-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 1px rgb(15 23 42 / 0.04);
    --ease-shadow-md: 0 14px 32px rgb(15 23 42 / 0.08);
    --ease-radius: 8px;
    --ease-radius-sm: 6px;
}

* {
    box-sizing: border-box;
}

html {
    background: hsl(var(--ease-app-bg));
    color: hsl(var(--ease-text));
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    text-rendering: optimizeLegibility;
}

body {
    min-width: 320px;
    background: hsl(var(--ease-app-bg));
    color: hsl(var(--ease-text));
}

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

:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
    color: hsl(var(--ease-text));
    letter-spacing: 0;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.25rem);
    line-height: 1.02;
    font-weight: 760;
}

h2 {
    font-weight: 720;
    line-height: 1.12;
}

p {
    color: inherit;
}

.app-title {
    color: var(--brand-color, hsl(var(--ease-primary)));
    display: inline-flex;
    align-items: center;
    font-size: 1.08rem;
    font-weight: 760;
    letter-spacing: 0.01em;
}

.ease-page {
    background:
        linear-gradient(180deg, hsl(var(--ease-surface)) 0, hsl(var(--ease-app-bg)) 22rem),
        hsl(var(--ease-app-bg));
    color: hsl(var(--ease-text));
}

.ease-shell {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ease-content {
    min-height: 100vh;
    width: 100%;
}

.ease-main-panel {
    width: 100%;
    min-width: 0;
    border: 1px solid hsl(var(--ease-border));
    border-radius: var(--ease-radius);
    background: hsl(var(--ease-surface) / 0.92);
    box-shadow: var(--ease-shadow-sm);
}

.ease-top-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid hsl(var(--ease-border));
    background: hsl(var(--ease-surface) / 0.86);
    backdrop-filter: blur(14px);
}

.ease-nav-link {
    color: hsl(var(--ease-text-muted));
    font-size: 0.88rem;
    font-weight: 640;
}

.ease-nav-link:hover {
    color: hsl(var(--ease-primary));
}

.ease-sidebar {
    border-right: 1px solid hsl(var(--ease-border));
    background: hsl(var(--ease-surface) / 0.76);
}

.ease-sidebar-link {
    border-radius: var(--ease-radius-sm);
    color: hsl(var(--ease-text-muted));
    font-size: 0.94rem;
    font-weight: 590;
    transition: background-color 140ms ease, color 140ms ease;
}

.ease-sidebar-link:hover {
    background: hsl(var(--ease-primary-soft));
    color: hsl(var(--ease-primary));
}

.ease-footer {
    border-top: 1px solid hsl(var(--ease-border));
    background: hsl(var(--ease-surface) / 0.8);
    color: hsl(var(--ease-text-soft));
}

.ease-section {
    padding: clamp(4rem, 8vw, 7.5rem) 1rem;
}

.ease-section-compact {
    padding: clamp(3rem, 6vw, 5rem) 1rem;
}

.ease-container {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
}

.ease-container-wide {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
}

.ease-eyebrow {
    color: hsl(var(--ease-primary));
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ease-heading {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    font-weight: 760;
}

.ease-subheading {
    color: hsl(var(--ease-text-muted));
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.ease-muted {
    color: hsl(var(--ease-text-muted));
}

.ease-card {
    border: 1px solid hsl(var(--ease-border));
    border-radius: var(--ease-radius);
    background: hsl(var(--ease-surface));
    box-shadow: var(--ease-shadow-sm);
}

.ease-card-hover {
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ease-card-hover:hover {
    border-color: hsl(var(--ease-primary) / 0.28);
    box-shadow: var(--ease-shadow-md);
    transform: translateY(-1px);
}

.ease-media {
    border: 1px solid hsl(var(--ease-border));
    border-radius: var(--ease-radius);
    background: hsl(var(--ease-surface-muted));
    box-shadow: var(--ease-shadow-sm);
}

.ease-icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--ease-radius-sm);
    background: hsl(var(--ease-primary-soft));
    color: hsl(var(--ease-primary));
}

.ease-stat {
    border: 1px solid hsl(var(--ease-border));
    border-radius: var(--ease-radius);
    background: hsl(var(--ease-surface) / 0.82);
    box-shadow: var(--ease-shadow-sm);
}

.ease-form-panel {
    border: 1px solid hsl(var(--ease-border));
    border-radius: var(--ease-radius);
    background: hsl(var(--ease-surface));
    box-shadow: var(--ease-shadow-md);
}

.commercial-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, hsl(var(--ease-surface)) 0, hsl(var(--ease-app-bg)) 22rem),
        hsl(var(--ease-app-bg));
    color: hsl(var(--ease-text));
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.commercial-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
}

.commercial-brand {
    text-decoration: none;
}

.commercial-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.commercial-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--ease-radius-sm);
    text-decoration: none;
}

.commercial-page .wrap {
    width: 100%;
    max-width: 68rem;
    margin-inline: auto;
    padding: 2.5rem 1.25rem;
}

.commercial-page .narrow {
    max-width: 30rem;
}

.commercial-page .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.commercial-page .card {
    border: 1px solid hsl(var(--ease-border));
    border-radius: var(--ease-radius);
    background: hsl(var(--ease-surface));
    box-shadow: var(--ease-shadow-sm);
    padding: 1.25rem;
}

.commercial-page .row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.commercial-page .muted {
    color: hsl(var(--ease-text-muted));
}

.commercial-page label {
    display: block;
    margin-bottom: 0.9rem;
    color: hsl(var(--ease-text));
    font-size: 0.88rem;
    font-weight: 640;
}

.commercial-page input,
.commercial-page select {
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.4rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid hsl(var(--ease-border));
    border-radius: var(--ease-radius-sm);
    background: hsl(var(--ease-surface));
    color: hsl(var(--ease-text));
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
}

.commercial-page input:focus,
.commercial-page select:focus {
    border-color: hsl(var(--ease-primary));
    outline: 2px solid hsl(var(--ring) / 0.22);
    outline-offset: 1px;
}

.commercial-page button,
.commercial-page .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border: 0;
    border-radius: var(--ease-radius-sm);
    background: hsl(var(--ease-primary));
    color: hsl(var(--primary-foreground));
    padding: 0.625rem 1rem;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--ease-shadow-sm);
}

.commercial-page button:hover,
.commercial-page .button:hover {
    background: hsl(var(--ease-primary) / 0.92);
}

.commercial-page button.secondary,
.commercial-page .button.secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.commercial-page a {
    color: hsl(var(--ease-primary));
}

.commercial-page .error,
.commercial-page .success {
    border-radius: var(--ease-radius-sm);
    padding: 0.75rem 0.85rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.commercial-page .error {
    border: 1px solid hsl(var(--destructive) / 0.26);
    background: hsl(var(--destructive) / 0.09);
    color: hsl(var(--destructive));
}

.commercial-page .success {
    border: 1px solid hsl(var(--ease-primary) / 0.22);
    background: hsl(var(--ease-primary-soft));
    color: hsl(var(--ease-primary));
}

.commercial-page pre,
.commercial-page code {
    border-radius: var(--ease-radius-sm);
    background: hsl(var(--ease-surface-muted));
}

.commercial-page pre {
    overflow: auto;
    padding: 0.8rem;
}

.commercial-page table {
    width: 100%;
    border-collapse: collapse;
}

.commercial-page th,
.commercial-page td {
    border-bottom: 1px solid hsl(var(--ease-border));
    padding: 0.65rem 0.5rem;
    text-align: left;
    vertical-align: top;
}

.commercial-page .commercial-auth-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 13rem);
    padding-top: clamp(2.5rem, 8vw, 5rem);
}

.commercial-page .commercial-auth-card {
    width: 100%;
    padding: 1.75rem;
    box-shadow: var(--ease-shadow-md);
}

.commercial-auth-eyebrow {
    margin: 0 0 0.65rem;
    color: hsl(var(--ease-primary));
    font-size: 0.76rem;
    font-weight: 720;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.commercial-auth-title {
    margin: 0;
    font-size: clamp(2rem, 7vw, 2.35rem);
    font-weight: 760;
    line-height: 1.08;
}

.commercial-auth-subtitle {
    margin: 0.85rem 0 1.45rem;
    font-size: 1rem;
    line-height: 1.55;
}

.commercial-auth-form {
    margin-top: 1.25rem;
}

.commercial-auth-form button {
    width: 100%;
    margin-top: 0.2rem;
}

.commercial-auth-switch {
    margin: 1.25rem 0 0;
    color: hsl(var(--ease-text-muted));
    font-size: 0.94rem;
    line-height: 1.5;
}

.commercial-footer {
    padding: 1.5rem 1rem;
    text-align: center;
}

.commercial-footer p {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
}

.commercial-footer nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.commercial-footer a {
    color: hsl(var(--ease-text-muted));
    font-size: 0.88rem;
    text-decoration: none;
}

.commercial-footer a:hover {
    color: hsl(var(--ease-primary));
}

.uk-card {
    border-radius: var(--ease-radius);
}

.uk-input,
.uk-select,
.uk-textarea,
input,
select,
textarea {
    border-radius: var(--ease-radius-sm);
}

.uk-button,
.uk-btn,
button {
    border-radius: var(--ease-radius-sm);
    letter-spacing: 0;
}

/* Toast movement stays directional without shifting the rest of the page. */
@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .toast {
        animation-name: slideInFromTop;
    }

    .ease-main-panel {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .commercial-top-nav {
        align-items: flex-start;
        padding: 0.75rem 1rem;
    }

    .commercial-nav {
        gap: 0;
    }

    .commercial-nav-link {
        min-height: 2rem;
        padding: 0.35rem 0.5rem;
        font-size: 0.84rem;
    }

    .commercial-page .wrap {
        padding: 2rem 1.25rem;
    }

    .commercial-page .commercial-auth-main {
        min-height: calc(100vh - 12rem);
        padding-top: 2rem;
    }

    .commercial-page .commercial-auth-card {
        padding: 1.5rem;
    }
}

@media (min-width: 641px) {
    .toast {
        animation-name: slideInFromBottom;
    }
}
