:root {
    --bg: #101513;
    --surface: #18201d;
    --surface-raised: #1d2723;
    --surface-soft: #141b18;
    --surface-alpha: rgba(24, 32, 29, 0.88);
    --surface-subtle: rgba(242, 246, 244, 0.035);
    --surface-hover: rgba(120, 231, 184, 0.07);
    --field-bg: #121916;
    --sidebar-bg: #121916;
    --header-bg: rgba(16, 21, 19, 0.9);
    --auth-panel-bg: rgba(20, 27, 24, 0.72);
    --admin-surface: #151d29;
    --admin-sidebar: #111822;
    --admin-header: rgba(15, 21, 30, 0.92);
    --text: #f2f6f4;
    --muted: #aeb9b4;
    --subtle: #7f8c86;
    --line: rgba(191, 211, 202, 0.16);
    --line-strong: rgba(205, 224, 215, 0.25);
    --accent: #78e7b8;
    --accent-strong: #94efc9;
    --accent-ink: #092219;
    --danger-soft: #f4b7b7;
    --shadow: 0 28px 80px rgba(4, 10, 7, 0.28);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 13px;
    --content: 1240px;
}

[data-theme="light"] {
    --bg: #f3f6f4;
    --surface: #ffffff;
    --surface-raised: #f8faf9;
    --surface-soft: #eaf0ed;
    --surface-alpha: rgba(255, 255, 255, 0.94);
    --surface-subtle: rgba(18, 25, 22, 0.035);
    --surface-hover: rgba(19, 155, 105, 0.075);
    --field-bg: #f8faf9;
    --sidebar-bg: #ffffff;
    --header-bg: rgba(243, 246, 244, 0.92);
    --auth-panel-bg: rgba(234, 240, 237, 0.74);
    --admin-surface: #ffffff;
    --admin-sidebar: #eef3f6;
    --admin-header: rgba(243, 246, 248, 0.94);
    --text: #121916;
    --muted: #53615a;
    --subtle: #738078;
    --line: rgba(27, 55, 43, 0.14);
    --line-strong: rgba(27, 55, 43, 0.24);
    --accent: #139b69;
    --accent-strong: #087d53;
    --accent-ink: #ffffff;
    --danger-soft: #a33838;
    --shadow: 0 22px 62px rgba(30, 58, 45, 0.12);
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color 220ms ease, color 220ms ease;
}

body.has-open-menu {
    overflow: hidden;
}

.auth-story,
.auth-panel,
.auth-mode,
.field-input,
.role-option,
.language-switcher__menu,
.sidebar,
.topbar,
.welcome-panel,
.product-mode,
.empty-card,
.product-sidebar,
.product-topbar,
.surface-card,
.page-hero {
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a,
label {
    -webkit-tap-highlight-color: transparent;
}

svg {
    display: block;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    line-height: 1;
}

.brand__mark {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

.status-badge,
.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 11px;
    border: 1px solid rgba(137, 240, 195, 0.24);
    border-radius: 999px;
    background: rgba(137, 240, 195, 0.06);
    color: #cafbe5;
    font-size: 0.7rem;
    font-weight: 730;
    letter-spacing: 0.045em;
    line-height: 1.25;
}

.status-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(137, 240, 195, 0.1);
    content: "";
}

.theme-switcher {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface-subtle);
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 720;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.theme-switcher:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.theme-switcher__icon {
    color: var(--accent);
    font-size: 0.9rem;
}

.theme-switcher__label {
    white-space: nowrap;
}

[data-theme="light"] .status-badge,
[data-theme="light"] .demo-badge {
    border-color: rgba(19, 155, 105, 0.26);
    background: rgba(19, 155, 105, 0.07);
    color: #087d53;
}

[data-theme="light"] .field-group label,
[data-theme="light"] .field-legend,
[data-theme="light"] .auth-card__links a,
[data-theme="light"] .text-link,
[data-theme="light"] .topbar__title,
[data-theme="light"] .welcome-panel__aside strong {
    color: var(--text);
}

.language-switcher {
    position: relative;
    flex: 0 0 auto;
}

.language-switcher__trigger {
    display: inline-flex;
    min-width: 58px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface-subtle);
    color: var(--text);
    cursor: pointer;
}

.language-switcher__code {
    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0.07em;
}

.language-switcher__chevron {
    color: var(--subtle);
    font-size: 0.78rem;
    transition: transform 180ms ease;
}

.language-switcher__trigger[aria-expanded="true"] .language-switcher__chevron {
    transform: rotate(180deg);
}

.language-switcher__menu {
    position: absolute;
    z-index: 160;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: 172px;
    gap: 3px;
    padding: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: var(--surface-raised);
    box-shadow: var(--shadow);
}

.language-switcher__menu[hidden] {
    display: none;
}

.language-switcher__menu button {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.language-switcher__menu button span {
    color: var(--accent);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.language-switcher__menu button:hover,
.language-switcher__menu button[aria-current="true"] {
    border-color: var(--line);
    background: var(--surface-subtle);
    color: var(--text);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d8dedb;
    font-size: 0.85rem;
    font-weight: 690;
    transition: color 180ms ease;
}

.text-link:hover {
    color: var(--accent);
}

.text-link__arrow {
    color: var(--accent);
}

/* Authentication screens */
.auth-page {
    background:
        radial-gradient(circle at 14% 16%, rgba(137, 240, 195, 0.07), transparent 30rem),
        var(--bg);
}

.auth-shell {
    display: grid;
    min-height: 100svh;
    grid-template-columns: minmax(380px, 0.9fr) minmax(480px, 1.1fr);
}

.auth-story {
    position: relative;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 5vw, 72px);
    overflow: hidden;
    border-right: 1px solid var(--line);
    isolation: isolate;
}

.auth-story::before {
    position: absolute;
    z-index: -2;
    top: 12%;
    left: 12%;
    width: 76%;
    aspect-ratio: 1;
    border: 1px solid rgba(244, 246, 245, 0.06);
    border-radius: 50%;
    content: "";
}

.auth-story::after {
    position: absolute;
    z-index: -2;
    top: 34%;
    left: 46%;
    width: 46%;
    aspect-ratio: 1;
    border: 1px dashed rgba(137, 240, 195, 0.18);
    border-radius: 50%;
    content: "";
}

.auth-story__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auth-story__content {
    position: relative;
    max-width: 630px;
    padding-block: clamp(80px, 12vh, 150px);
}

.auth-story__eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-story h1 {
    margin: 0;
    font-size: clamp(2.65rem, 5.6vw, 5.8rem);
    font-weight: 610;
    letter-spacing: -0.062em;
    line-height: 0.97;
    text-wrap: balance;
}

.auth-story h1 span {
    color: var(--accent);
}

.auth-story__copy {
    max-width: 590px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.55vw, 1.18rem);
    text-wrap: pretty;
}

.auth-modes {
    display: grid;
    gap: 1px;
    max-width: 580px;
    margin-top: 42px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-mode {
    padding: 18px;
    background: var(--surface-alpha);
}

.auth-mode span {
    display: block;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-mode small {
    display: block;
    margin-top: 4px;
    color: var(--subtle);
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.auth-story__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--subtle);
    font-size: 0.76rem;
}

.auth-panel {
    display: flex;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 6vw, 88px);
    background: var(--auth-panel-bg);
}

.auth-card {
    width: min(100%, 520px);
}

.auth-card__header {
    margin-bottom: 36px;
}

.auth-card__kicker {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.71rem;
    font-weight: 760;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 3.45rem);
    font-weight: 620;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.auth-card__intro {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.demo-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 28px;
    padding: 13px 15px;
    border: 1px solid rgba(137, 240, 195, 0.18);
    border-radius: 12px;
    background: rgba(137, 240, 195, 0.045);
    color: var(--muted);
    font-size: 0.78rem;
}

.demo-notice__icon {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(137, 240, 195, 0.42);
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group label,
.field-legend {
    color: #d8ddda;
    font-size: 0.79rem;
    font-weight: 690;
}

.field-input {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--field-bg);
    color: var(--text);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field-input::placeholder {
    color: #626b67;
}

.field-input:hover {
    border-color: rgba(244, 246, 245, 0.3);
}

.field-input:focus {
    border-color: var(--accent);
    background: var(--surface-raised);
    box-shadow: 0 0 0 4px rgba(137, 240, 195, 0.08);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
}

.checkbox-label input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.role-selector {
    display: grid;
    gap: 9px;
    border: 0;
    margin: 0;
    padding: 0;
}

.role-options {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-option {
    min-height: 72px;
    padding: 11px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--field-bg);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 670;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.role-option:hover,
.role-option[aria-pressed="true"] {
    border-color: rgba(137, 240, 195, 0.55);
    background: rgba(137, 240, 195, 0.07);
    color: var(--text);
}

.primary-button {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 18px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.9rem;
    font-weight: 770;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.primary-button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.primary-button__meta {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    opacity: 0.67;
    text-transform: uppercase;
}

.auth-card__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 27px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.auth-card__links a {
    color: #d6ddda;
    font-size: 0.82rem;
    font-weight: 680;
    transition: color 180ms ease;
}

.auth-card__links a:hover {
    color: var(--accent);
}

/* Dashboard */
.dashboard-page {
    background:
        radial-gradient(circle at 88% 4%, rgba(137, 240, 195, 0.05), transparent 25rem),
        var(--bg);
}

.app-shell {
    display: grid;
    min-height: 100svh;
    grid-template-columns: 268px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100svh;
    flex-direction: column;
    padding: 26px 20px;
    border-right: 1px solid var(--line);
    background: var(--sidebar-bg);
}

.sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px 28px;
}

.sidebar__close {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.sidebar__label {
    margin: 0 10px 10px;
    color: var(--subtle);
    font-size: 0.64rem;
    font-weight: 780;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: grid;
    gap: 5px;
}

.sidebar-nav a {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 660;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a[aria-current="page"] {
    border-color: var(--line);
    background: var(--surface-subtle);
    color: var(--text);
}

.sidebar-nav a[aria-current="page"] .nav-icon {
    color: var(--accent);
}

.nav-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: var(--subtle);
}

.nav-icon svg {
    width: 19px;
    height: 19px;
}

.sidebar__divider {
    height: 1px;
    margin: 22px 10px;
    background: var(--line);
}

.sidebar__bottom {
    display: grid;
    gap: 16px;
    margin-top: auto;
    padding: 20px 8px 0;
    border-top: 1px solid var(--line);
}

.sidebar__bottom .status-badge {
    font-size: 0.63rem;
}

.sidebar__exit {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 680;
}

.sidebar__exit:hover {
    color: var(--text);
}

.sidebar-backdrop {
    display: none;
}

.workspace {
    min-width: 0;
}

.topbar {
    position: sticky;
    z-index: 40;
    top: 0;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-inline: clamp(24px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar__start,
.topbar__end {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar__menu {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.topbar__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 720;
}

.topbar__context {
    color: var(--subtle);
    font-size: 0.73rem;
}

.topbar__home {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 670;
    transition: color 180ms ease;
}

.topbar__home:hover {
    color: var(--accent);
}

.workspace__content {
    width: min(100%, var(--content));
    margin-inline: auto;
    padding: clamp(30px, 5vw, 64px);
}

.welcome-panel {
    position: relative;
    display: grid;
    align-items: end;
    gap: 52px;
    padding: clamp(30px, 5vw, 60px);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr);
    box-shadow: var(--shadow);
}

.welcome-panel::before,
.welcome-panel::after {
    position: absolute;
    right: -110px;
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(137, 240, 195, 0.5), transparent);
    content: "";
}

.welcome-panel::before {
    top: 48%;
}

.welcome-panel::after {
    top: 48%;
    transform: rotate(90deg);
}

.welcome-panel__content,
.welcome-panel__aside {
    position: relative;
    z-index: 1;
}

.section-kicker {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 770;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.welcome-panel h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 5.1rem);
    font-weight: 610;
    letter-spacing: -0.06em;
    line-height: 0.98;
    text-wrap: balance;
}

.welcome-panel__copy {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(0.98rem, 1.5vw, 1.12rem);
}

.welcome-panel__aside {
    padding: 18px 0 0 22px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.welcome-panel__aside strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 0.9rem;
}

.dashboard-section {
    padding-top: clamp(54px, 7vw, 86px);
    scroll-margin-top: 92px;
}

.dashboard-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.dashboard-section h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 620;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.dashboard-section__intro {
    max-width: 550px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.mode-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-mode {
    position: relative;
    min-height: 250px;
    padding: clamp(24px, 3.5vw, 40px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.product-mode::after {
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(137, 240, 195, 0.1);
    border-radius: 50%;
    content: "";
}

.product-mode__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.product-mode__index {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 780;
    letter-spacing: 0.12em;
}

.product-mode__status {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--subtle);
    font-size: 0.63rem;
    font-weight: 700;
}

.product-mode h3 {
    margin: 48px 0 0;
    font-size: clamp(1.6rem, 3vw, 2.55rem);
    font-weight: 620;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.product-mode p {
    max-width: 500px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.workspace-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.empty-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-alpha);
    scroll-margin-top: 98px;
}

.empty-card__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--accent);
}

.empty-card__icon svg {
    width: 21px;
    height: 21px;
}

.empty-card h3 {
    margin: 36px 0 0;
    font-size: 1.05rem;
    font-weight: 690;
}

.empty-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.empty-card__label {
    margin-top: auto;
    padding-top: 28px;
    color: var(--subtle);
    font-size: 0.64rem;
    font-weight: 730;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-action {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    color: #dbe0de;
    font-size: 0.82rem;
    font-weight: 680;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.quick-action:hover {
    border-color: rgba(137, 240, 195, 0.38);
    background: rgba(137, 240, 195, 0.05);
    transform: translateY(-2px);
}

.quick-action__arrow {
    color: var(--accent);
    font-size: 1rem;
}

.workspace-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: clamp(64px, 9vw, 110px);
    padding-top: 28px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 0.72rem;
}

@media (max-width: 1100px) {
    .workspace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .auth-story__top .status-badge {
        display: none;
    }

    .auth-story__top .theme-switcher__label {
        display: none;
    }

    .auth-story__top .theme-switcher {
        width: 40px;
        padding-inline: 7px;
    }
}

@media (max-width: 1024px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-story {
        min-height: auto;
        padding: 28px clamp(24px, 6vw, 56px) 46px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .auth-story__content {
        padding-block: 72px 38px;
    }

    .auth-story h1 {
        max-width: 720px;
        font-size: clamp(2.7rem, 9vw, 5.2rem);
    }

    .auth-story__footer {
        display: none;
    }

    .auth-panel {
        min-height: auto;
        padding-block: 64px 80px;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        z-index: 100;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(86vw, 300px);
        height: 100svh;
        box-shadow: var(--shadow);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 200ms ease, visibility 200ms ease;
    }

    .sidebar[data-open="true"] {
        transform: translateX(0);
        visibility: visible;
    }

    .sidebar__close {
        display: grid;
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 90;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(0, 0, 0, 0.58);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 200ms ease, visibility 200ms ease;
    }

    .sidebar-backdrop[data-open="true"] {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .topbar__menu {
        display: grid;
    }

    .welcome-panel {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .welcome-panel__aside {
        max-width: 520px;
        padding: 0;
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .auth-story,
    .auth-panel {
        padding-inline: 20px;
    }

    .auth-story__top .status-badge {
        display: none;
    }

    .theme-switcher__label {
        display: none;
    }

    .theme-switcher {
        width: 40px;
        padding-inline: 7px;
    }

    .auth-story__content {
        padding-block: 62px 26px;
    }

    .auth-story h1 {
        font-size: clamp(2.55rem, 13.5vw, 4.2rem);
    }

    .auth-modes {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding-block: 52px 70px;
    }

    .role-options {
        grid-template-columns: 1fr;
    }

    .role-option {
        min-height: 52px;
    }

    .auth-card__links {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        min-height: 68px;
        padding-inline: 16px;
    }

    .topbar__context,
    .topbar__home {
        display: none;
    }

    .workspace__content {
        padding: 24px 14px 44px;
    }

    .welcome-panel {
        gap: 34px;
        padding: 28px 24px;
        border-radius: 20px;
    }

    .welcome-panel h1 {
        font-size: clamp(2.3rem, 12vw, 3.7rem);
    }

    .dashboard-section__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mode-grid,
    .workspace-grid,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .product-mode {
        min-height: 230px;
    }

    .empty-card {
        min-height: 220px;
    }

    .quick-action {
        min-height: 84px;
    }

    .workspace-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .auth-story__top .brand span {
        display: none;
    }

    .auth-story__top {
        gap: 10px;
    }

    .topbar__title {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}