@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Outfit:wght@300;400;500;600;700;800&display=swap");

:root {
    color-scheme: light;
    --auth-bg: #edf5fc;
    --auth-bg-soft: #f8fbff;
    --auth-surface: rgba(255, 255, 255, 0.88);
    --auth-surface-strong: rgba(248, 251, 255, 0.96);
    --auth-border: rgba(32, 84, 138, 0.14);
    --auth-border-strong: rgba(32, 84, 138, 0.22);
    --auth-text: #112740;
    --auth-muted: #5f7490;
    --auth-faint: rgba(95, 116, 144, 0.82);
    --auth-accent: #3b9eff;
    --auth-accent-strong: #1f73d8;
    --auth-success: #2f7d57;
    --auth-danger: #c75454;
    --auth-shadow: 0 30px 80px rgba(23, 58, 96, 0.14);
    --auth-shadow-soft: 0 18px 44px rgba(23, 58, 96, 0.1);
    --auth-radius: 30px;
    --auth-sans: "Outfit", "Segoe UI", sans-serif;
    --auth-mono: "JetBrains Mono", "Fira Code", monospace;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    min-height: 100vh;
    font-family: var(--auth-sans);
    color: var(--auth-text);
    background:
        radial-gradient(circle at 14% 10%, rgba(59, 158, 255, 0.09), transparent 30%),
        radial-gradient(circle at 84% 8%, rgba(23, 58, 96, 0.045), transparent 26%),
        linear-gradient(180deg, #f9fbff 0%, #eef5fb 52%, #e9f0f7 100%);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(to right, rgba(59, 158, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(39, 88, 134, 0.018) 1px, transparent 1px);
    background-size: 96px 96px;
    opacity: 1;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    top: -20vh;
    left: 50%;
    width: 104vw;
    height: 46vh;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(59, 158, 255, 0.065), transparent 68%);
    pointer-events: none;
}

.auth-page {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

body[data-auth-page="login"] .auth-page {
    width: min(1120px, calc(100% - 32px));
    max-width: none;
    margin: 0 auto;
    padding: 32px 0 56px;
    min-height: 0;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

body[data-auth-page="login"] .auth-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    min-height: 0;
}

.auth-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 158, 255, 0.07), transparent 48%, rgba(23, 58, 96, 0.05));
    pointer-events: none;
}

.auth-main,
.auth-side {
    z-index: 1;
    padding: 32px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--auth-faint);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--auth-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-back:hover,
.auth-back:focus-visible {
    color: var(--auth-text);
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--auth-text);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--auth-accent);
    box-shadow: 0 0 18px rgba(59, 158, 255, 0.32);
}

.auth-title {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.auth-lead {
    max-width: 58ch;
    margin: 0 0 24px;
    color: var(--auth-muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
}

.auth-caption {
    margin: 0 0 18px;
    color: var(--auth-faint);
    font-size: 14px;
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-faint);
}

.auth-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(32, 84, 138, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--auth-text);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(32, 84, 138, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--auth-text);
    font: inherit;
    appearance: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-field input::placeholder,
.auth-field select::placeholder {
    color: rgba(95, 116, 144, 0.76);
}

.auth-field input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.14);
}

.auth-field select:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.14);
}

.auth-field input[readonly] {
    color: var(--auth-muted);
    cursor: default;
}

.auth-field-hint {
    margin: 0;
    color: var(--auth-faint);
    font-size: 13px;
    line-height: 1.6;
}

.auth-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.6;
}

.auth-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--auth-accent-strong);
}

.auth-consent__copy {
    display: block;
}

.auth-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-strong));
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 16px 28px rgba(59, 158, 255, 0.22);
}

.auth-button:hover,
.auth-button:focus-visible {
    transform: translateY(-1px);
}

.auth-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.auth-button.is-disabled {
    pointer-events: none;
    opacity: 0.68;
    transform: none;
}

.auth-link,
.auth-legal a,
.auth-list a,
.auth-inline a {
    color: var(--auth-accent-strong);
}

.auth-link:hover,
.auth-link:focus-visible,
.auth-legal a:hover,
.auth-inline a:hover {
    color: var(--auth-accent);
}

.auth-status {
    min-height: 24px;
    margin: 2px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-status.is-error {
    color: var(--auth-danger);
}

.auth-status.is-success {
    color: var(--auth-success);
}

.auth-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-list li {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(32, 84, 138, 0.1);
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.65;
}

.auth-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.auth-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--auth-text);
}

.auth-card {
    padding: 18px;
    border: 1px solid var(--auth-border-strong);
    border-radius: 18px;
    background: var(--auth-surface-strong);
    box-shadow: var(--auth-shadow-soft);
}

.auth-card h2,
.auth-side h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.2;
}

.auth-card p,
.auth-side p {
    color: var(--auth-muted);
    line-height: 1.65;
}

.auth-card h3 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.2;
}

.auth-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
    color: var(--auth-faint);
    font-size: 14px;
}

.auth-shell-note {
    margin-top: 18px;
    color: var(--auth-faint);
    font-size: 13px;
    line-height: 1.6;
}

.dashboard-grid {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.dashboard-page .auth-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body.dashboard-page {
    background:
        radial-gradient(circle at 14% 10%, rgba(59, 158, 255, 0.09), transparent 30%),
        radial-gradient(circle at 84% 8%, rgba(23, 58, 96, 0.045), transparent 26%),
        linear-gradient(180deg, #f9fbff 0%, #eef5fb 52%, #e9f0f7 100%);
}

body.dashboard-page::before {
    opacity: 1;
}

.dashboard-layout {
    grid-template-columns: 1fr;
    min-height: 100vh;
}

.dashboard-main {
    min-height: 100vh;
    padding: 40px 32px 56px;
    border-color: var(--auth-border);
    background: var(--auth-surface);
    overflow: visible;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

body[data-auth-page="login"] .auth-panel {
    min-height: 0;
    border-radius: var(--auth-radius);
}

body[data-auth-page="login"] .auth-main,
body[data-auth-page="login"] .auth-side {
    padding-top: 32px;
    padding-bottom: 32px;
}

@media (min-width: 901px) {
    body[data-auth-page="login"] .auth-page {
        width: 100%;
        margin: 0;
        padding: 0;
        min-height: 100vh;
    }

    body[data-auth-page="login"] .auth-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
        gap: 0;
        min-height: 100vh;
    }

    body[data-auth-page="login"] .auth-panel {
        min-height: 100vh;
        border-radius: 0;
    }

    body[data-auth-page="login"] .auth-main,
    body[data-auth-page="login"] .auth-side {
        padding-top: 40px;
        padding-bottom: 56px;
    }
}

.dashboard-hero {
    display: grid;
    gap: 28px;
}

.dashboard-title {
    font-size: clamp(34px, 4.4vw, 56px);
    margin-bottom: 10px;
}

.dashboard-lead {
    max-width: 40ch;
    margin-bottom: 0;
    font-size: clamp(16px, 1.7vw, 19px);
}

.dashboard-hero__meta {
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) minmax(240px, 0.95fr) auto;
    gap: 18px;
    align-items: stretch;
}

.dashboard-page .auth-card {
    background: var(--auth-surface-strong);
    border-color: var(--auth-border-strong);
}

.dashboard-grid--summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-account-card {
    display: grid;
    gap: 10px;
}

.dashboard-account-card h2,
.dashboard-overview-card h2 {
    margin: 0;
}

.dashboard-overview-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.dashboard-label {
    margin: 0;
    color: var(--auth-faint);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    margin: 4px 0 0;
    padding: 0 14px;
    border: 1px solid rgba(59, 158, 255, 0.22);
    border-radius: 999px;
    background: rgba(59, 158, 255, 0.08);
    color: var(--auth-text);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-stat {
    margin: 0;
    color: var(--auth-text);
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dashboard-summary {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-section {
    margin-top: 36px;
}

.dashboard-section__header {
    margin-bottom: 18px;
}

.dashboard-section__header--compact {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-section__header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.1;
}

.dashboard-section__header p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.5;
    font-size: 14px;
}

.dashboard-section-note {
    margin: 0 0 18px;
    color: var(--auth-faint);
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dashboard-tool-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) auto;
    grid-template-areas:
        "top links"
        "title links"
        "copy links"
        "state links";
    column-gap: 24px;
    row-gap: 12px;
    align-items: center;
    padding: 24px;
}

.dashboard-tool-card h3 {
    margin: 0;
    font-size: 24px;
    grid-area: title;
}

.dashboard-tool-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    grid-area: top;
}

.dashboard-tool-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    margin: 0;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(59, 158, 255, 0.1);
    color: var(--auth-accent-strong);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-tool-card p,
.dashboard-account-card p,
.dashboard-overview-card p {
    margin: 0;
}

.dashboard-tool-copy {
    grid-area: copy;
    color: var(--auth-muted);
    line-height: 1.55;
    min-height: 0;
}

.dashboard-tool-access {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(32, 84, 138, 0.14);
    background: rgba(248, 251, 255, 0.92);
    color: var(--auth-text);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-tool-state {
    grid-area: state;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.55;
}

.dashboard-tool-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 220px;
    grid-area: links;
}

.dashboard-admin-card {
    padding: 24px;
    overflow: visible;
}

.dashboard-admin-count {
    margin: 0;
    color: var(--auth-faint);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-admin-toolbar {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-admin-search-field input {
    min-height: 50px;
}

.dashboard-admin-table-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(32, 84, 138, 0.14);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.92);
}

.dashboard-admin-table {
    font-family: var(--auth-mono);
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
    table-layout: fixed;
}

.dashboard-admin-table th,
.dashboard-admin-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(126, 176, 237, 0.12);
    text-align: left;
    vertical-align: top;
}

.dashboard-admin-table th {
    background: rgba(248, 251, 255, 0.96);
    padding-top: 12px;
    padding-bottom: 12px;
}

.dashboard-admin-filter-row th {
    padding-top: 10px;
    padding-bottom: 12px;
    background: rgba(241, 246, 253, 0.96);
}

.dashboard-admin-column-filter {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(32, 84, 138, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--auth-text);
    font: inherit;
    font-size: 12px;
    font-family: var(--auth-mono);
}

.dashboard-admin-column-filter:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.14);
    outline: none;
}

.dashboard-admin-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--auth-faint);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.dashboard-admin-sort::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(219, 231, 248, 0.35);
    opacity: 0.7;
    transform: translateY(1px);
}

.dashboard-admin-sort:hover,
.dashboard-admin-sort:focus-visible,
.dashboard-admin-sort.is-active {
    color: var(--auth-text);
}

.dashboard-admin-sort.is-active::after {
    border-top-color: var(--auth-accent);
    opacity: 1;
}

.dashboard-admin-sort.is-desc::after {
    transform: rotate(180deg) translateY(1px);
}

.dashboard-admin-table tbody tr:hover {
    background: rgba(86, 187, 255, 0.05);
}

.dashboard-admin-table tbody tr {
    position: relative;
}

.dashboard-admin-table tbody tr.is-menu-open {
    z-index: 30;
}

.dashboard-admin-table tbody tr.is-menu-open td {
    position: relative;
    z-index: 30;
}

.dashboard-admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-admin-user-stack,
.dashboard-admin-cell-stack {
    display: grid;
    gap: 6px;
}

.dashboard-admin-user-cell {
    position: relative;
    overflow: visible;
}

.dashboard-admin-user-cell.is-menu-open {
    z-index: 40;
}

.dashboard-admin-user-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-admin-user-stack strong,
.dashboard-admin-cell-text {
    display: block;
    color: var(--auth-text);
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.dashboard-admin-cell-subtle {
    display: block;
    color: var(--auth-faint);
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.dashboard-admin-action {
    min-width: 108px;
    padding: 10px 14px;
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-admin-empty {
    color: var(--auth-faint);
    text-align: center;
    font-size: 14px;
}

.dashboard-admin-menu {
    position: relative;
    flex: 0 0 auto;
    overflow: visible;
    z-index: 2;
}

.dashboard-admin-menu.is-open {
    z-index: 50;
}

.dashboard-admin-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(32, 84, 138, 0.18);
    border-radius: 999px;
    background: rgba(248, 251, 255, 0.92);
    color: var(--auth-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.dashboard-admin-menu-button:hover,
.dashboard-admin-menu-button:focus-visible {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.14);
    outline: none;
}

.dashboard-admin-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    display: grid;
    gap: 6px;
    min-width: 188px;
    padding: 10px;
    border: 1px solid rgba(32, 84, 138, 0.16);
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.98);
    box-shadow: 0 24px 48px rgba(23, 58, 96, 0.16);
}

.dashboard-admin-menu-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--auth-text);
    font: inherit;
    cursor: pointer;
}

.dashboard-admin-menu-item:hover,
.dashboard-admin-menu-item:focus-visible {
    background: rgba(59, 158, 255, 0.08);
    border-color: rgba(59, 158, 255, 0.18);
    outline: none;
}

.dashboard-admin-menu-item.is-danger {
    color: #ffd1d1;
}

.dashboard-admin-flag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(32, 84, 138, 0.14);
    border-radius: 999px;
    background: rgba(248, 251, 255, 0.92);
    color: var(--auth-text);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-admin-flag.is-active {
    border-color: rgba(74, 199, 136, 0.3);
    color: var(--auth-success);
}

.dashboard-admin-flag.is-muted {
    color: var(--auth-faint);
}

.dashboard-admin-form {
    margin-top: 0;
}

.dashboard-admin-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.85fr) auto;
    gap: 16px;
    align-items: end;
}

.dashboard-admin-form-action {
    display: flex;
    align-items: end;
}

.dashboard-admin-form-action .auth-button {
    min-width: 190px;
}

.dashboard-team-trial-form {
    gap: 18px;
}

.dashboard-team-trial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-team-trial-grid textarea,
.dashboard-team-trial-form textarea {
    min-height: 120px;
    resize: vertical;
}

.dashboard-team-trial-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
}

.dashboard-team-trial-actions--inline {
    padding: 0 16px 16px;
}

.dashboard-team-trial-actions .auth-button {
    min-width: 220px;
}

.dashboard-team-trial-cancel-button {
    background: linear-gradient(135deg, #fdf2f2, #f8dada);
    color: #8d1f1f;
    border-color: rgba(141, 31, 31, 0.18);
}

.dashboard-team-trial-cancel-button:hover,
.dashboard-team-trial-cancel-button:focus-visible {
    border-color: rgba(141, 31, 31, 0.32);
    box-shadow: 0 10px 24px rgba(141, 31, 31, 0.14);
}

.dashboard-team-trial-result {
    display: none;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(32, 84, 138, 0.14);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.92);
}

.dashboard-team-trial-result.is-visible {
    display: grid;
    gap: 18px;
}

.dashboard-team-trial-result-header,
.dashboard-team-trial-list-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
}

.dashboard-team-trial-result h4,
.dashboard-team-trial-list-card h4 {
    margin: 0 0 6px;
    color: var(--auth-text);
    font-size: 20px;
    line-height: 1.1;
}

.dashboard-team-trial-result p,
.dashboard-team-trial-list-card p {
    margin: 0;
}

.dashboard-team-trial-meta,
.dashboard-team-trial-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--auth-faint);
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-team-trial-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(32, 84, 138, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--auth-text);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-team-trial-pill.is-expired,
.dashboard-team-seat-status.is-expired {
    border-color: rgba(255, 132, 132, 0.28);
    color: #ffd1d1;
}

.dashboard-team-seat-list,
.dashboard-team-trials-list,
.dashboard-team-trial-seat-summary {
    display: grid;
    gap: 14px;
}

.dashboard-section-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(32, 84, 138, 0.16);
    border-radius: 999px;
    background: rgba(248, 251, 255, 0.96);
    color: var(--auth-text);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.dashboard-section-toggle:hover,
.dashboard-section-toggle:focus-visible {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.14);
    outline: none;
}

.dashboard-collapsible-panel[hidden] {
    display: none;
}

.dashboard-team-trial-disclosure {
    border: 1px solid rgba(32, 84, 138, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
}

.dashboard-team-trial-disclosure-summary {
    list-style: none;
    cursor: pointer;
    padding: 16px;
}

.dashboard-team-trial-disclosure-summary::-webkit-details-marker {
    display: none;
}

.dashboard-team-trial-disclosure[open] .dashboard-team-trial-disclosure-summary {
    border-bottom: 1px solid rgba(32, 84, 138, 0.12);
}

.dashboard-team-trial-disclosure .dashboard-team-trial-seat-summary {
    padding: 16px;
}

.dashboard-team-seat-card,
.dashboard-team-trial-list-card,
.dashboard-team-trial-seat-summary-item {
    padding: 16px;
    border: 1px solid rgba(32, 84, 138, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
}

.dashboard-team-seat-top,
.dashboard-team-trial-seat-summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.dashboard-team-seat-main,
.dashboard-team-trial-seat-summary-main {
    display: grid;
    gap: 6px;
}

.dashboard-team-seat-title {
    display: block;
    color: var(--auth-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.dashboard-team-seat-email,
.dashboard-team-seat-note {
    color: var(--auth-faint);
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-team-seat-link-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.dashboard-team-seat-link-input {
    flex: 1 1 280px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(32, 84, 138, 0.14);
    border-radius: 12px;
    background: rgba(248, 251, 255, 0.92);
    color: var(--auth-text);
    font: inherit;
    font-size: 13px;
    font-family: var(--auth-mono);
}

.dashboard-team-seat-link-row .auth-button {
    min-width: 100px;
    padding: 10px 14px;
}

.dashboard-team-seat-status {
    align-self: start;
}

.dashboard-team-trial-seat-summary-main strong {
    color: var(--auth-text);
    font-size: 14px;
    line-height: 1.4;
}

.dashboard-side-card {
    margin-top: 28px;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
}

.dashboard-actions--hero .auth-button {
    width: 100%;
}

.dashboard-button--secondary {
    border-color: rgba(59, 158, 255, 0.22);
    background: rgba(255, 255, 255, 0.82);
    color: #173a60;
    box-shadow: 0 10px 22px rgba(23, 58, 96, 0.06);
}

.dashboard-inline-link {
    display: inline-flex;
    align-items: center;
    color: var(--auth-accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-inline-link:hover,
.dashboard-inline-link:focus-visible {
    color: var(--auth-accent);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.settings-card {
    display: grid;
    gap: 16px;
}

.settings-card h2 {
    margin: 0;
}

.settings-meta {
    display: grid;
    gap: 14px;
}

.settings-meta-item {
    display: grid;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(32, 84, 138, 0.1);
}

.settings-meta-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-actions .auth-caption {
    margin: 0;
    align-self: center;
}

.settings-tool-list {
    display: grid;
    gap: 12px;
}

.settings-tool-item {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(32, 84, 138, 0.14);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.92);
}

.settings-tool-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-tool-item-header h3 {
    margin: 0;
}

@media (max-width: 900px) {
    .auth-page {
        width: min(100%, calc(100% - 24px));
        padding-top: 20px;
        padding-bottom: 36px;
    }

    body[data-auth-page="login"] .auth-page {
        width: min(100%, calc(100% - 24px));
        max-width: 640px;
        margin: 0 auto;
        padding-top: 20px;
        padding-bottom: 36px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    body[data-auth-page="login"] .auth-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-main,
    .auth-side {
        padding: 24px;
    }

    .dashboard-main {
        padding: 24px;
    }

    body[data-auth-page="login"] .auth-layout {
        gap: 0;
        min-height: 0;
    }

    body[data-auth-page="login"] .auth-panel,
    .dashboard-main {
        min-height: 0;
        border-radius: 24px;
        border-left: 1px solid var(--auth-border);
        border-right: 1px solid var(--auth-border);
    }

    body[data-auth-page="login"] .auth-side {
        display: none;
    }

    body[data-auth-page="login"] .auth-main {
        min-height: 0;
    }

    .dashboard-hero__meta,
    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-section__header--compact {
        align-items: start;
        flex-direction: column;
    }

    .dashboard-grid--summary,
    .dashboard-tool-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-team-trial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-team-trial-result-header,
    .dashboard-team-trial-list-header,
    .dashboard-team-seat-top,
    .dashboard-team-trial-seat-summary-item {
        grid-template-columns: 1fr;
    }

    .dashboard-team-trial-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-team-trial-actions .auth-button {
        width: 100%;
    }

    .dashboard-team-seat-link-row {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-team-seat-link-row .auth-button,
    .dashboard-team-seat-link-input {
        width: 100%;
    }

    .dashboard-tool-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "top"
            "title"
            "copy"
            "state"
            "links";
        align-items: start;
    }

    .dashboard-tool-links {
        min-width: 0;
        width: 100%;
    }

    .dashboard-admin-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-admin-form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-admin-form-action {
        width: 100%;
    }

    .dashboard-admin-form-action .auth-button,
    .dashboard-actions .auth-button,
    .dashboard-tool-links .auth-button,
    .settings-actions .auth-button {
        width: 100%;
    }

    .dashboard-admin-table {
        min-width: 920px;
    }
}

@media (max-width: 680px) {
    .dashboard-page .auth-page {
        width: 100%;
    }

    body[data-auth-page="login"] .auth-page {
        width: min(100%, calc(100% - 20px));
        padding-top: 12px;
        padding-bottom: 24px;
    }

    .dashboard-main {
        padding: 24px 18px;
    }

    .auth-main,
    .auth-side,
    body[data-auth-page="login"] .auth-main,
    body[data-auth-page="login"] .auth-side {
        padding: 22px 18px;
    }

    body[data-auth-page="login"] .auth-main {
        min-height: 0;
    }

    .auth-title {
        font-size: clamp(32px, 11vw, 44px);
    }

    .auth-lead {
        font-size: 16px;
        line-height: 1.55;
    }

    .auth-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-inline a,
    .settings-actions .auth-link,
    .dashboard-inline-link {
        width: 100%;
    }

    .dashboard-tool-card,
    .auth-card {
        padding: 20px;
    }

    .dashboard-hero__meta {
        gap: 14px;
    }

    .settings-actions,
    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-admin-filter-grid {
        grid-template-columns: 1fr;
    }
}

body.dashboard-page {
    background:
        radial-gradient(circle at top left, rgba(59, 158, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #f7f9fc 0%, #f1f4f8 100%);
}

body.dashboard-page::before {
    background:
        linear-gradient(to right, rgba(17, 39, 64, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(17, 39, 64, 0.025) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.35;
}

body.dashboard-page::after {
    top: -16vh;
    height: 36vh;
    background: radial-gradient(ellipse at center, rgba(59, 158, 255, 0.08), transparent 70%);
}

.dashboard-page .auth-page {
    width: calc(100% - 24px);
    max-width: none;
    margin: 0 auto;
    padding: 12px 0 24px;
}

.dashboard-page .dashboard-layout {
    grid-template-columns: 1fr;
    min-height: 0;
}

.dashboard-page .dashboard-main {
    min-height: calc(100vh - 64px);
    padding: 24px clamp(20px, 2.2vw, 36px) 40px;
    border-radius: 28px;
    border-color: rgba(17, 39, 64, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 80px rgba(15, 30, 52, 0.08);
    overflow: visible;
}

.dashboard-page .auth-panel::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.08));
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(17, 39, 64, 0.08);
}

.dashboard-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--auth-text);
    text-decoration: none;
}

.dashboard-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #173a60;
    color: #ffffff;
    font-family: var(--auth-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(23, 58, 96, 0.18);
}

.dashboard-brand__copy {
    display: grid;
    gap: 2px;
}

.dashboard-brand__copy strong {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.dashboard-brand__copy span {
    color: #66768b;
    font-size: 13px;
}

.dashboard-topbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.dashboard-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(17, 39, 64, 0.1);
    background: linear-gradient(180deg, #ffffff, #f1f4f8);
    color: #173a60;
    font-family: var(--auth-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 22px rgba(17, 39, 64, 0.08);
}

.dashboard-icon-button,
.dashboard-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(17, 39, 64, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #173a60;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(17, 39, 64, 0.05);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.dashboard-icon-button:hover,
.dashboard-icon-button:focus-visible,
.dashboard-logout-button:hover,
.dashboard-logout-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(31, 115, 216, 0.24);
    background: #ffffff;
}

.dashboard-icon-button {
    width: 42px;
    padding: 0;
}

.dashboard-icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-page-header {
    display: grid;
    gap: 12px;
    padding: 28px 0 24px;
}

.dashboard-title {
    margin: 0;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.dashboard-lead {
    max-width: 62ch;
    margin: 0;
    color: #607286;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.7;
}

.dashboard-account-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(220px, 0.8fr));
    gap: 20px;
    align-items: center;
    padding: 22px 24px;
    border: 1px solid rgba(17, 39, 64, 0.08);
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-account-strip__identity,
.dashboard-account-strip__item {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.dashboard-account-strip__item--wide {
    justify-items: start;
}

.dashboard-account-strip__name {
    margin: 0;
    color: #101d2e;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.dashboard-account-strip__email {
    margin: 0;
    color: #607286;
    font-size: 15px;
    line-height: 1.5;
}

.dashboard-label {
    margin: 0;
    color: #6a7b8f;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(17, 39, 64, 0.1);
    border-radius: 999px;
    background: #eef2f6;
    color: #24384f;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-pill.is-unsubscribed,
.dashboard-pill.is-starter {
    background: #edf1f5;
    border-color: rgba(77, 92, 112, 0.14);
    color: #42556c;
}

.dashboard-pill.is-pro,
.dashboard-pill.is-team {
    background: rgba(31, 115, 216, 0.1);
    border-color: rgba(31, 115, 216, 0.18);
    color: #0f4b91;
}

.dashboard-pill.is-trial {
    background: rgba(222, 163, 53, 0.16);
    border-color: rgba(222, 163, 53, 0.24);
    color: #7f5600;
}

.dashboard-pill.is-trial-expired {
    background: rgba(198, 84, 84, 0.12);
    border-color: rgba(198, 84, 84, 0.22);
    color: #9a2f2f;
}

.dashboard-pill__icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.dashboard-pill__icon--neutral,
.dashboard-pill__icon--accent,
.dashboard-pill__icon--team,
.dashboard-pill__icon--alert {
    border-radius: 999px;
}

.dashboard-pill__icon--neutral {
    background: currentColor;
    opacity: 0.45;
}

.dashboard-pill__icon--accent {
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(31, 115, 216, 0.12);
}

.dashboard-pill__icon--team {
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(31, 115, 216, 0.1);
}

.dashboard-pill__icon--clock {
    border: 2px solid currentColor;
    border-radius: 999px;
}

.dashboard-pill__icon--clock::before,
.dashboard-pill__icon--clock::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    border-radius: 999px;
    transform-origin: center bottom;
}

.dashboard-pill__icon--clock::before {
    width: 2px;
    height: 4px;
    transform: translate(-50%, -100%);
}

.dashboard-pill__icon--clock::after {
    width: 4px;
    height: 2px;
    transform: translate(0, -50%);
}

.dashboard-pill__icon--alert {
    background: currentColor;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.dashboard-stat {
    margin: 0;
    color: #101d2e;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.dashboard-summary {
    margin: 0;
    color: #607286;
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-section {
    margin-top: 34px;
}

.dashboard-section--tools {
    padding-top: 8px;
    border-top: 1px solid rgba(17, 39, 64, 0.08);
}

.dashboard-section__header--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-section__eyebrow {
    margin: 0 0 10px;
    color: #6a7b8f;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboard-section__header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dashboard-section__header p,
.dashboard-section-note {
    margin: 0;
    color: #607286;
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-inline-link {
    display: inline-flex;
    align-items: center;
    color: #173a60;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-inline-link:hover,
.dashboard-inline-link:focus-visible {
    color: #1f73d8;
}

.dashboard-workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-workspace-card {
    position: relative;
    display: grid;
    gap: 20px;
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(17, 39, 64, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 44px rgba(17, 39, 64, 0.07);
}

.dashboard-workspace-card__stripe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    border-radius: 24px 0 0 24px;
    background: #1f73d8;
}

.dashboard-workspace-card--cause-effect .dashboard-workspace-card__stripe {
    background: #0f7a6c;
}

.dashboard-workspace-card__top,
.dashboard-workspace-card__body,
.dashboard-workspace-card__actions,
.dashboard-workspace-card__secondary-actions,
.dashboard-workspace-card__meta {
    display: grid;
    gap: 12px;
}

.dashboard-workspace-card__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.dashboard-workspace-card__category {
    margin: 0;
    color: #6a7b8f;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dashboard-tool-access {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(17, 39, 64, 0.08);
    border-radius: 999px;
    background: #f7f9fc;
    color: #42556c;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--auth-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-workspace-card h3 {
    margin: 0;
    color: #101d2e;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dashboard-workspace-card__copy,
.dashboard-workspace-card__meta-line,
.dashboard-tool-state {
    margin: 0;
    color: #607286;
    line-height: 1.65;
}

.dashboard-workspace-card__copy {
    font-size: 15px;
}

.dashboard-workspace-card__meta {
    padding: 14px 16px;
    border: 1px solid rgba(17, 39, 64, 0.07);
    border-radius: 18px;
    background: #f8fafc;
}

.dashboard-workspace-card__meta-line {
    font-size: 13px;
    font-weight: 600;
}

.dashboard-tool-state {
    font-size: 13px;
}

.dashboard-workspace-card__actions {
    margin-top: auto;
}

.dashboard-workspace-card__secondary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-workspace-card__secondary-actions .auth-button,
.dashboard-workspace-card__launch,
.dashboard-workspace-card__plan {
    width: 100%;
}

.dashboard-workspace-card__plan {
    grid-column: 1 / -1;
}

.plans-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
}

.plans-main {
    display: grid;
    gap: 22px;
    width: 100%;
}

.plans-back {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(17, 39, 64, 0.1);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    justify-content: center;
}

.plans-summary-card {
    display: grid;
    gap: 8px;
}

.plans-summary-card h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.plans-summary-card p:last-child {
    margin: 0;
    color: var(--auth-muted);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.plans-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 22px;
    min-height: 100%;
}

.plans-card--featured {
    border-color: rgba(59, 158, 255, 0.24);
    box-shadow: 0 18px 42px rgba(59, 158, 255, 0.12);
}

.plans-card__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.plans-card__badge,
.plans-card__recommended {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--auth-mono);
}

.plans-card__badge {
    background: rgba(17, 39, 64, 0.08);
    color: var(--auth-text);
}

.plans-card__recommended {
    background: rgba(59, 158, 255, 0.14);
    color: var(--auth-accent-strong);
}

.plans-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.plans-price strong {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.plans-price span {
    color: var(--auth-muted);
}

.plans-price__old {
    text-decoration: line-through;
    opacity: 0.65;
}

.plans-card__note {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.65;
}

.plans-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--auth-text);
    flex: 1 1 auto;
    align-content: start;
}

.plans-list li {
    position: relative;
    min-height: 56px;
    padding: 14px 16px 14px 48px;
    border: 1px solid rgba(32, 84, 138, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
    color: var(--auth-text);
    line-height: 1.55;
}

.plans-list li::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 16px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 42%), linear-gradient(180deg, rgba(59, 158, 255, 0.95), rgba(31, 115, 216, 0.95));
    box-shadow: 0 8px 18px rgba(59, 158, 255, 0.2);
}

.plans-list li::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 22px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

.plans-card__actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
    grid-template-rows: minmax(52px, auto) minmax(3.4em, auto);
    align-content: end;
}

.plans-card__button {
    width: 100%;
}

.plans-card__actions .auth-field-hint {
    min-height: 3.4em;
    margin: 0;
}

.dashboard-button--secondary {
    border-color: rgba(17, 39, 64, 0.12);
    background: #ffffff;
    color: #173a60;
    box-shadow: 0 10px 24px rgba(17, 39, 64, 0.04);
}

.dashboard-workspace-card__launch--locked,
.dashboard-workspace-card__launch--locked:hover,
.dashboard-workspace-card__launch--locked:focus-visible,
.dashboard-workspace-card__launch.is-disabled,
.dashboard-workspace-card__launch.is-disabled:hover,
.dashboard-workspace-card__launch.is-disabled:focus-visible {
    border-color: rgba(77, 92, 112, 0.14);
    background: #e8edf3;
    color: #6d7c8f;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
    transform: none;
}

.dashboard-button__lock {
    position: relative;
    display: inline-block;
    width: 13px;
    height: 11px;
    margin-right: 10px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.dashboard-button__lock::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% - 1px);
    width: 8px;
    height: 7px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    transform: translateX(-50%);
}

.dashboard-guidance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(31, 115, 216, 0.12);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.96));
    box-shadow: 0 16px 44px rgba(17, 39, 64, 0.06);
}

.dashboard-guidance-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dashboard-guidance-card p {
    margin: 0;
    color: #607286;
    line-height: 1.65;
}

.dashboard-guidance-card__actions {
    flex: 0 0 auto;
    min-width: 220px;
}

.dashboard-guidance-card__actions .auth-button {
    width: 100%;
}

.dashboard-activation-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dashboard-activation-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 39, 64, 0.46);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.dashboard-activation-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: 28px;
    border: 1px solid rgba(31, 115, 216, 0.12);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.98));
    box-shadow: 0 28px 70px rgba(17, 39, 64, 0.2);
}

.dashboard-activation-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 0;
    background: transparent;
    color: var(--auth-faint);
    font: inherit;
    font-family: var(--auth-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.dashboard-activation-modal__close:hover,
.dashboard-activation-modal__close:focus-visible {
    color: var(--auth-text);
}

.dashboard-activation-modal__dialog h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.dashboard-activation-modal__dialog p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.7;
}

.dashboard-activation-modal__primary,
.dashboard-activation-modal__secondary {
    margin-top: 18px;
}

.dashboard-activation-modal__primary .auth-button,
.dashboard-activation-modal__secondary .auth-button {
    width: 100%;
}

.dashboard-activation-modal__plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.dashboard-activation-modal__plan-button {
    width: 100%;
}


@media (max-width: 1180px) {
    .dashboard-workspace-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-account-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-account-strip__identity,
    .dashboard-account-strip__item--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .dashboard-page .auth-page {
        width: min(100%, calc(100% - 20px));
        padding: 12px 0 28px;
    }

    .dashboard-page .dashboard-main {
        padding: 20px 18px 28px;
        border-radius: 22px;
    }

    .dashboard-topbar,
    .dashboard-guidance-card,
    .dashboard-section__header--split {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-topbar__actions {
        justify-content: space-between;
    }

    .dashboard-account-strip,
    .dashboard-workspace-card__secondary-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-workspace-card,
    .dashboard-guidance-card {
        padding: 20px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plans-back {
        justify-content: flex-start;
    }

    .dashboard-guidance-card__actions {
        width: 100%;
        min-width: 0;
    }

    .dashboard-activation-modal {
        padding: 14px;
    }

    .dashboard-activation-modal__dialog {
        padding: 22px;
    }

    .dashboard-activation-modal__plan-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 560px) {
    .dashboard-brand__copy span {
        display: none;
    }

    .dashboard-topbar__actions {
        gap: 8px;
    }

    .dashboard-icon-button,
    .dashboard-logout-button,
    .dashboard-avatar {
        min-height: 40px;
        height: 40px;
    }

    .dashboard-logout-button {
        padding: 0 14px;
    }

    .dashboard-title,
    .dashboard-workspace-card h3,
    .dashboard-guidance-card h2 {
        font-size: clamp(28px, 8vw, 34px);
    }

    .dashboard-team-trial-grid {
        grid-template-columns: 1fr;
    }
}