@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/manrope-400.b14c3069e3f7.ttf") format('truetype');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/manrope-500.9efdb4161ece.ttf") format('truetype');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/manrope-700.ad56d0ba69e7.ttf") format('truetype');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/manrope-800.b7a637ee24e9.ttf") format('truetype');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/space-grotesk-400.1590f1cda578.ttf") format('truetype');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/space-grotesk-500.4fb435f07dde.ttf") format('truetype');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-700.f0dcfa079b81.ttf") format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/outfit-variable.e31a3aa5fce3.ttf") format('truetype');
}

:root {
    --bg: #081018;
    --bg-elevated: rgba(10, 20, 32, 0.78);
    --panel: rgba(15, 31, 49, 0.88);
    --panel-border: rgba(138, 255, 221, 0.18);
    --text: #f4f7fb;
    --muted: #a9bac8;
    --accent: #7cf7d4;
    --accent-strong: #32d4ff;
    --accent-soft: rgba(124, 247, 212, 0.14);
    --signal: #ffd86b;
    --danger: #ff8787;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(50, 212, 255, 0.16), transparent 24%),
        radial-gradient(circle at 84% 16%, rgba(124, 247, 212, 0.12), transparent 22%),
        radial-gradient(circle at 50% 110%, rgba(132, 88, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #081018 0%, #09131d 48%, #060b11 100%);
    font-family: 'Manrope', sans-serif;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 100%);
}

body.has-open-modal {
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

.app-modal[hidden] {
    display: none;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 11, 17, 0.48);
    backdrop-filter: blur(8px);
}

.app-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: 1.4rem;
    border: 1px solid #d9e2ec;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.app-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.app-modal-eyebrow {
    display: block;
    color: #8a5a00;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-modal-header h2 {
    margin: 0.35rem 0 0;
    color: #16324f;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
}

.app-modal-dialog p {
    margin: 1rem 0 0;
    color: #44576c;
    line-height: 1.6;
}

.app-modal-close {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    background: #ffffff;
    color: #44576c;
    font-size: 1.25rem;
    cursor: pointer;
}

.plan-workspace-print-button {
    min-width: 9.5rem;
}

.app-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.app-page {
    --accent: #2e7fc6;
    --accent-strong: #195f9d;
    --accent-soft: rgba(46, 127, 198, 0.14);
    --app-heading-font: 'Outfit', sans-serif;
    --app-heading-color: #0f6cbd;
    color: #213245;
    background:
        radial-gradient(ellipse at 6% 8%, rgba(25, 68, 208, 0.10) 0%, transparent 32%),
        radial-gradient(ellipse at 94% 6%, rgba(107, 147, 245, 0.12) 0%, transparent 28%),
        radial-gradient(ellipse at 50% 112%, rgba(25, 68, 208, 0.14) 0%, transparent 42%),
        linear-gradient(180deg, #eaf1ff 0%, #e4edff 45%, #eaf0ff 100%);
}

.auth-page {
    color: #eaf0f6;
    background:
        radial-gradient(circle at 14% 18%, rgba(75, 118, 176, 0.18), transparent 24%),
        radial-gradient(circle at 86% 14%, rgba(55, 104, 160, 0.12), transparent 22%),
        linear-gradient(180deg, #101923 0%, #131d28 52%, #101820 100%);
}

.auth-page::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

.app-page::before {
    background-image:
        linear-gradient(rgba(25, 68, 208, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 68, 208, 0.08) 1px, transparent 1px),
        radial-gradient(circle, rgba(25, 68, 208, 0.22) 1px, transparent 1px);
    background-size: 54px 54px, 54px 54px, 54px 54px;
    background-position: 0 0, 0 0, -1px -1px;
    -webkit-mask-image: none;
    mask-image: none;
}

.app-page::after {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    padding: 0 1.25rem 1.25rem;
}

.site-shell-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.18rem 1.25rem 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-brand-text {
    display: inline-block;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #1944D0;
}

.site-brand-mark {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    object-fit: contain;
    transform: scale(1.18);
    transform-origin: left center;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(7, 14, 24, 0.76);
    backdrop-filter: blur(14px);
}

.site-nav a {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.88rem;
}

.site-nav a:hover,
.site-nav-pill {
    color: var(--text);
}

.site-nav-pill {
    background: linear-gradient(135deg, rgba(124, 247, 212, 0.18), rgba(50, 212, 255, 0.2));
}

.flash-stack {
    padding: 1rem 1.5rem 0;
}

.flash-stack:empty {
    display: none;
    padding: 0;
}

.flash-message {
    max-width: 720px;
    margin: 0 auto 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #0c63ae 0%, #236fae 100%);
    color: #ffffff;
}

.hero-panel,
.platform-flow,
.dashboard-shell,
.auth-shell {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 0 3rem;
}

.eyebrow {
    display: inline-flex;
    padding: 0.32rem 0.62rem;
    border: 1px solid rgba(124, 247, 212, 0.24);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(124, 247, 212, 0.08);
}

.hero-copy h1,
.dashboard-heading h1,
.auth-intro h1 {
    margin: 1rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.75rem, 5.4vw, 5.1rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.hero-copy p,
.dashboard-heading p,
.dashboard-empty-copy p,
.auth-intro p,
.info-band p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.62;
}

.hero-actions,
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.plan-workspace-header-source-action {
    flex: 0 1 auto;
}

.button-primary,
.button-secondary,
.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 42px;
    padding: 0 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.button-primary,
.auth-submit {
    color: #041019;
    background: linear-gradient(135deg, var(--accent), #d9fff4);
    box-shadow: 0 18px 50px rgba(124, 247, 212, 0.18);
}

.button-secondary {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.auth-page .button-primary,
.auth-page .auth-submit {
    color: #ffffff;
    background: #0f6cbd;
    box-shadow: none;
}

.auth-page .button-primary:disabled,
.auth-page .auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    background: #365d84;
}

.button-primary.is-loading,
.button-secondary.is-loading,
.auth-submit.is-loading {
    padding-right: 2.35rem;
    justify-content: flex-start;
    cursor: progress;
}

.button-primary.is-loading::after,
.button-secondary.is-loading::after,
.auth-submit.is-loading::after {
    content: '';
    position: absolute;
    right: 0.95rem;
    top: 50%;
    width: 0.78rem;
    height: 0.78rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    transform: translateY(-50%);
    animation: button-spinner-rotate-centered 0.65s linear infinite;
}

@keyframes button-spinner-rotate-centered {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.auth-page .button-secondary {
    color: #eaf0f6;
    border-color: rgba(145, 164, 186, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.hero-metrics,
.dashboard-stats,
.info-band {
    display: grid;
    gap: 1rem;
}

.hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
}

.hero-metrics div,
.dashboard-stats article,
.info-band article,
.dashboard-empty-card,
.auth-card {
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.auth-page .auth-card {
    border-color: rgba(145, 164, 186, 0.18);
    border-radius: 20px;
    background: rgba(23, 35, 47, 0.92);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.app-page .site-shell-header {
    padding: 0.15rem 1.25rem;
    border-bottom: 1px solid #d9e2ec;
    background: rgba(244, 247, 251, 0.92);
    backdrop-filter: blur(10px);
}

.plan-workspace-page .site-shell-header {
    position: static;
}

.auth-page .site-shell-header {
    padding: 0.15rem 1.25rem;
    border-bottom: 1px solid rgba(145, 164, 186, 0.14);
    background: rgba(16, 25, 35, 0.86);
    backdrop-filter: blur(10px);
}

.auth-page .site-brand-mark {
    width: 48px;
    height: 48px;
}

.auth-page .site-nav {
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    gap: 0.5rem;
}

.auth-page .site-nav a {
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(38, 119, 230, 0.4);
    background: linear-gradient(180deg, #f7fbff, #e4f2ff);
    box-shadow: 0 10px 28px rgba(22, 125, 227, 0.2);
    color: #111111;
    font-size: 0.88rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.auth-page .site-nav a:hover,
.auth-page .site-nav-pill {
    border-color: rgba(38, 119, 230, 0.58);
    background: linear-gradient(180deg, #eef7ff, #d8ebff);
    box-shadow: 0 14px 34px rgba(22, 125, 227, 0.28);
    color: #111111;
    transform: translateY(-1px);
}

.auth-page .site-nav-pill {
    border-color: rgba(14, 92, 214, 0.42);
    background: linear-gradient(135deg, #5fb3ff 0%, #2f7df5 52%, #16a3d7 100%);
    box-shadow: 0 14px 36px rgba(22, 125, 227, 0.38);
}

.app-page .site-brand {
    color: #0b4f93;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1;
}

.app-page .site-brand .site-brand-text {
    text-transform: none;
}

.app-page .site-brand-mark {
    width: 48px;
    height: 48px;
}

.app-page .site-nav {
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    gap: 0.5rem;
}

.app-page .site-nav a {
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(38, 119, 230, 0.4);
    background: linear-gradient(180deg, #f7fbff, #e4f2ff);
    box-shadow: 0 10px 28px rgba(22, 125, 227, 0.2);
    color: #111111;
    font-size: 0.88rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.app-page .site-nav a:hover {
    border-color: rgba(38, 119, 230, 0.58);
    background: linear-gradient(180deg, #eef7ff, #d8ebff);
    box-shadow: 0 14px 34px rgba(22, 125, 227, 0.28);
    color: #111111;
    transform: translateY(-1px);
}

.app-page .site-nav a.site-nav-pill {
    border-color: rgba(14, 92, 214, 0.42);
    background: linear-gradient(135deg, #5fb3ff 0%, #2f7df5 52%, #16a3d7 100%);
    box-shadow: 0 14px 36px rgba(22, 125, 227, 0.38);
    color: #111111;
}

.app-page .site-nav a.site-nav-pill:hover {
    border-color: rgba(14, 92, 214, 0.5);
    background: linear-gradient(135deg, #72beff 0%, #3e8bf8 52%, #20addf 100%);
    box-shadow: 0 18px 44px rgba(22, 125, 227, 0.5);
    color: #111111;
}

.app-page .flash-message {
    max-width: min(1240px, 100%);
    border-color: #d9e2ec;
    background: #ffffff;
    color: #213245;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.hero-metrics div,
.dashboard-stats article {
    padding: 1rem;
}

.hero-metrics span,
.dashboard-stats span,
.dashboard-empty-card span,
.info-band span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-metrics strong,
.dashboard-stats strong,
.info-band h2,
.dashboard-empty-copy h2 {
    display: block;
    margin-top: 0.45rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-metrics strong,
.dashboard-stats strong {
    font-size: 1.05rem;
}

.hero-visual {
    position: relative;
}

.visual-frame {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 38px;
    background:
        radial-gradient(circle at 54% 48%, rgba(50, 212, 255, 0.18), transparent 18%),
        radial-gradient(circle at 38% 82%, rgba(124, 247, 212, 0.22), transparent 18%),
        linear-gradient(180deg, rgba(10, 21, 31, 0.94), rgba(8, 16, 24, 0.98));
    box-shadow: var(--shadow);
}

.scan-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.36;
}

.scan-orbit,
.scan-node {
    position: absolute;
    border-radius: 999px;
}

.scan-orbit {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.orbit-a {
    inset: 17% 18% auto auto;
    width: 280px;
    height: 280px;
}

.orbit-b {
    inset: auto auto 10% 12%;
    width: 360px;
    height: 360px;
}

.scan-node {
    box-shadow: 0 0 28px currentColor;
}

.node-a {
    top: 23%;
    left: 56%;
    width: 14px;
    height: 14px;
    color: var(--accent);
    background: currentColor;
}

.node-b {
    right: 20%;
    top: 36%;
    width: 10px;
    height: 10px;
    color: var(--signal);
    background: currentColor;
}

.node-c {
    left: 28%;
    bottom: 24%;
    width: 12px;
    height: 12px;
    color: var(--accent-strong);
    background: currentColor;
}

.info-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-flow {
    margin-top: 1.5rem;
}

.info-band article,
.dashboard-empty-card {
    padding: 1.5rem;
}

.info-band article {
    position: relative;
}

.info-band article:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    top: 50%;
    right: -0.5rem;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(124, 247, 212, 0.24);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(8, 16, 24, 0.96);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    transform: translate(50%, -50%);
}

.info-band h2 {
    font-size: 1.5rem;
    line-height: 1.1;
}

.app-page .site-shell-header,
.auth-page .site-shell-header,
.legal-page .site-shell-header,
.landing-page .site-shell-header {
    padding-top: 0.56rem;
    padding-bottom: 0.56rem;
}

.app-page .dashboard-shell {
    width: 100%;
    max-width: 1320px;
}

.app-page .dashboard-layout-detail {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
}

.dashboard-shell {
    padding: 0.75rem 0 2.4rem;
}

.dashboard-heading-full {
    margin-bottom: 1.25rem;
}

.dashboard-heading-card {
    width: 100%;
    max-width: 300px;
    justify-self: end;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.dashboard-project-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.dashboard-project-header-copy {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
}

.dashboard-project-header-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.dashboard-sidebar,
.dashboard-main,
.dashboard-account-list,
.dashboard-side-nav,
.project-grid {
    display: grid;
    gap: 1rem;
}

.dashboard-sidebar,
.dashboard-main,
.dashboard-sidebar-card,
.dashboard-panel {
    min-width: 0;
}

.dashboard-sidebar-card,
.dashboard-panel,
.project-card {
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.dashboard-sidebar-card,
.dashboard-panel,
.project-card {
    padding: 1.15rem;
}

.dashboard-sidebar-card h2,
.dashboard-panel-header h2,
.project-card h3 {
    margin: 0.45rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
}

.dashboard-panel-header {
    margin-bottom: 0.9rem;
}

.dashboard-sidebar-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.dashboard-sidebar-meta strong {
    display: block;
    margin-top: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
}

.dashboard-project-header h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.95rem, 4vw, 3.1rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.dashboard-sidebar-card p,
.dashboard-panel p,
.project-card p,
.project-card small,
.dashboard-note {
    color: var(--muted);
}

.dashboard-project-header p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.62;
}

.plan-workspace-summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
}

.plan-workspace-summary-list li {
    color: #44576c;
    font-size: 0.9rem;
    line-height: 1.45;
}

.plan-workspace-summary-list li::before {
    content: '\2022';
    margin-right: 0.55rem;
    color: #8fb6d9;
}

.plan-workspace-summary-list span {
    color: #6d7d8f;
}

.plan-workspace-summary-list strong {
    color: #16324f;
    font-weight: 700;
}

.dashboard-summary-status {
    margin-top: 0.4rem;
}

.dashboard-sidebar-card span,
.dashboard-panel-header span,
.project-card span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-side-nav a,
.dashboard-side-nav span {
    display: block;
    padding: 0.78rem 0.9rem;
    border-radius: 16px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-side-nav .is-active {
    color: var(--text);
    border: 1px solid rgba(124, 247, 212, 0.22);
    background: rgba(124, 247, 212, 0.08);
}

.dashboard-account-item {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-account-item strong,
.dashboard-account-item small,
.project-card small {
    display: block;
}

.dashboard-account-item small {
    margin-top: 0.35rem;
    color: var(--muted);
}

.dashboard-account-item.is-active {
    border-color: rgba(124, 247, 212, 0.22);
    background: rgba(124, 247, 212, 0.08);
}

.dashboard-main {
    gap: 1.25rem;
}

.app-page main {
    padding-top: 1.4rem;
}

.app-page .eyebrow {
    border-color: #d7e3f4;
    color: #0f5ea8;
    background: #eef5ff;
}

.app-page .dashboard-heading h1,
.app-page .dashboard-project-header h1,
.app-page .dashboard-sidebar-card h2,
.app-page .dashboard-panel-header h2 {
    font-family: var(--app-heading-font);
}

.app-page .dashboard-heading h1,
.app-page .dashboard-project-header h1,
.app-page .dashboard-sidebar-card h2 {
    color: var(--app-heading-color);
}

.app-page .dashboard-panel-header h2 {
    color: #16324f;
}

.app-page .dashboard-sidebar-card-form .dashboard-panel-header h2,
.app-page .dashboard-panel-list .dashboard-panel-header h2 {
    color: var(--app-heading-color);
}

.app-page .dashboard-heading h1,
.app-page .dashboard-project-header h1 {
    font-size: clamp(1.8rem, 3.7vw, 2.85rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.app-page .dashboard-heading p,
.app-page .dashboard-project-header p {
    max-width: 52rem;
    color: #3f5368;
}

.app-page .dashboard-heading-card {
    align-self: end;
}

.app-page .settings-heading-card {
    display: grid;
    gap: 0.42rem;
}

.app-page .settings-heading-card h2,
.app-page .dashboard-account-item strong,
.app-page .dashboard-account-item small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.app-page .settings-heading-card h2 {
    margin: 0.12rem 0 0;
}

.app-page .dashboard-sidebar {
    position: sticky;
    top: 74px;
}

.app-page .dashboard-sidebar-card,
.app-page .dashboard-panel,
.app-page .dashboard-stats article,
.app-page .dashboard-empty-card,
.app-page .project-card {
    border-color: #d9e2ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.app-page .dashboard-sidebar-card,
.app-page .dashboard-panel,
.app-page .project-card {
    padding: 1.05rem;
}

.plan-workspace-page .dashboard-actions {
    align-content: flex-start;
    justify-content: flex-end;
    row-gap: 0.55rem;
}

.plan-workspace-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0;
}

.plan-workspace-actions-menu {
    position: relative;
}

.plan-workspace-actions-menu > summary {
    list-style: none;
    cursor: pointer;
}

.plan-workspace-actions-menu > summary::-webkit-details-marker {
    display: none;
}

.plan-workspace-actions-menu > summary::after {
    content: ' \25be';
    margin-left: 0.45rem;
    font-size: 0.78em;
}

.plan-workspace-actions-menu[open] > summary::after {
    content: ' \25b4';
}

.plan-workspace-actions-menu-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 30;
    display: grid;
    gap: 0.45rem;
    width: max-content;
    min-width: 245px;
    padding: 0.55rem;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.plan-workspace-actions-menu-form {
    display: block;
}

.plan-workspace-actions-menu-item {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.plan-rename-modal-dialog {
    width: min(100%, 560px);
}

.plan-rename-modal-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.plan-rename-modal-form .form-field {
    gap: 0.32rem;
    font-size: 0.9rem;
}

.plan-rename-modal-form .form-field input:not([type='checkbox']):not([type='file']) {
    min-height: 52px;
}

.app-page .dashboard-sidebar-card p,
.app-page .dashboard-panel p,
.app-page .project-card p,
.app-page .project-card small,
.app-page .dashboard-note,
.app-page .dashboard-project-header p,
.app-page .record-secondary {
    color: #44576c;
}

.app-page .dashboard-sidebar-card span,
.app-page .dashboard-panel-header span,
.app-page .project-card span,
.app-page .dashboard-stats span,
.app-page .dashboard-empty-card span {
    color: #56697d;
}

.app-page .dashboard-side-nav a,
.app-page .dashboard-side-nav span,
.app-page .dashboard-account-item {
    color: #5b6b7c;
    border: 1px solid #e1e8f0;
    background: #ffffff;
    font-weight: 600;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.app-page .dashboard-side-nav a:hover {
    color: #0f6cbd;
    border-color: rgba(15, 108, 189, 0.2);
    background: rgba(15, 108, 189, 0.04);
}

.app-page .dashboard-side-nav .is-active,
.app-page .dashboard-account-item.is-active {
    color: #ffffff;
    border-color: #0f6cbd;
    background: linear-gradient(135deg, #0f6cbd 0%, #2e7fc6 100%);
    box-shadow: 0 4px 12px rgba(15, 108, 189, 0.22);
}

.settings-section {
    scroll-margin-top: 6rem;
}

.app-page .button-primary,
.app-page .auth-submit {
    color: #ffffff;
    background: #0f6cbd;
    box-shadow: none;
}

.app-page .button-secondary {
    color: #16324f;
    border-color: #d1dbe7;
    background: #ffffff;
}

.app-page .dashboard-filter-submit {
    color: #ffffff;
    border-color: #0f6cbd;
    background: linear-gradient(135deg, #0f6cbd 0%, #2e7fc6 100%);
    box-shadow: 0 4px 12px rgba(15, 108, 189, 0.22);
}

.app-page .dashboard-filter-submit:hover,
.app-page .dashboard-filter-submit:focus-visible {
    border-color: #0a5a9e;
    background: linear-gradient(135deg, #0a5a9e 0%, #216fb2 100%);
}

.app-page .button-secondary-danger {
    color: #ffffff;
    border-color: #c0392b;
    background: #e74c3c;
}

.app-page .button-secondary-danger:hover {
    background: #c0392b;
}

.app-page .button-primary-success {
    color: #ffffff;
    background: #27ae60;
}

.app-page .button-primary-success:hover {
    background: #229954;
}

.dashboard-sidebar-card form,
.dashboard-panel form {
    display: grid;
    gap: 1rem;
}
    .dashboard-field-feedback,
    .dashboard-form-message {
        min-height: 1.2rem;
    }
    .dashboard-field-feedback.is-error,
    .dashboard-form-message.is-error {
        color: #b42318;
    }
    .app-page .dashboard-form-message.is-error {
        color: #b42318;
    }
    .dashboard-field-feedback.is-success,
    .dashboard-form-message.is-success {
        color: #0b6b4b;
    }
    .app-page .dashboard-form-message.is-success {
        color: #0b6b4b;
    }
    .dashboard-form-message {
        margin: -0.15rem 0 0;
        font-size: 0.92rem;
        line-height: 1.5;
    }
    .app-page .button-primary:disabled,
    .app-page .auth-submit:disabled {
        cursor: not-allowed;
        opacity: 0.65;
    }

.app-page .form-field {
    color: #46576a;
}

.app-page .form-field input:not([type='checkbox']):not([type='file']) {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}

.app-page .form-field select {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 3rem 0.9rem 1rem;
    border: 1px solid #cfd8e3;
    border-radius: 18px;
    background-color: #ffffff;
    background-image: linear-gradient(45deg, transparent 50%, #5e7893 50%), linear-gradient(135deg, #5e7893 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    color: #213245;
    font: inherit;
    appearance: none;
}

.app-page .form-field select:focus {
    outline: none;
    border-color: #7aa7d9;
    box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.12);
}

.app-page .form-field select:disabled {
    cursor: not-allowed;
    border-color: #d9e2ec;
    background-color: #f5f7fa;
    background-image: linear-gradient(45deg, transparent 50%, #b2bfcc 50%), linear-gradient(135deg, #b2bfcc 50%, transparent 50%);
    color: #8a9aae;
    box-shadow: none;
}

.app-page [data-profile-delete-transfer-field].is-disabled {
    opacity: 0.72;
}

.dashboard-sidebar-card textarea,
.dashboard-panel textarea {
    width: 100%;
    min-height: 110px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

.app-page .form-field input:not([type='checkbox']):not([type='file']),
.app-page .dashboard-sidebar-card textarea,
.app-page .dashboard-panel textarea {
    border-color: #cfd8e3;
    background: #ffffff;
    color: #213245;
}

.app-page input[type='file'] {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px dashed #cfd8e3;
    border-radius: 12px;
    background: #ffffff;
    color: #46576a;
    font: inherit;
}

.app-page input[type='file']::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d3dce7;
    border-radius: 10px;
    background: #f8fafc;
    color: #16324f;
    font: inherit;
    font-weight: 600;
}

.app-page .form-field input:not([type='checkbox']):not([type='file']):focus,
.dashboard-sidebar-card textarea:focus,
.dashboard-panel textarea:focus {
    outline: none;
    border-color: #7aa7d9;
    box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.12);
}

.dashboard-sidebar-card .auth-submit {
    width: 100%;
}

.app-page .dashboard-layout-compact .dashboard-sidebar > .dashboard-sidebar-card,
.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel {
    padding: 0.9rem;
}

.app-page .dashboard-layout-compact .dashboard-sidebar > .dashboard-sidebar-card > span,
.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-panel-header > div > span {
    font-size: 0.72rem;
    margin-bottom: 0.5rem;
}

.app-page .dashboard-layout-compact .dashboard-sidebar-card-form {
    padding: 0.9rem;
}

.app-page .dashboard-layout-compact .dashboard-side-nav,
.app-page .dashboard-layout-compact .dashboard-account-list {
    gap: 0.75rem;
}

.app-page .dashboard-layout-compact .dashboard-side-nav a,
.app-page .dashboard-layout-compact .dashboard-side-nav span {
    padding: 0.66rem 0.8rem;
    border-radius: 14px;
    font-size: 0.9rem;
}

.app-page .dashboard-layout-compact .dashboard-sidebar-card-form .dashboard-panel-header {
    margin-bottom: 0.65rem;
}

.app-page .dashboard-layout-compact .dashboard-sidebar-card-form .dashboard-panel-header h2,
.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-panel-header h2 {
    margin-top: 0.28rem;
    font-size: 1.45rem;
}

.app-page .dashboard-layout-compact .dashboard-sidebar-card-form form {
    gap: 0.72rem;
}

.app-page .dashboard-layout-compact .dashboard-sidebar-card-form .form-field {
    gap: 0.32rem;
    font-size: 0.9rem;
}

.app-page .dashboard-heading-full + .dashboard-layout .dashboard-sidebar-card-form .form-field input:not([type='checkbox']):not([type='file']) {
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
}

.app-page .dashboard-heading-full + .dashboard-layout .dashboard-sidebar-card-form textarea {
    min-height: 92px;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
}

.app-page .dashboard-layout-compact .dashboard-sidebar-card-form .auth-submit {
    min-height: 40px;
}

.app-page .dashboard-main > .dashboard-panel .button-primary,
.app-page .dashboard-main > .dashboard-panel .button-secondary,
.app-page .dashboard-main > .dashboard-panel .auth-submit {
    min-height: 38px;
    padding: 0 0.95rem;
    font-size: 0.9rem;
}

.app-page .dashboard-main > .dashboard-panel .form-field input:not([type='checkbox']):not([type='file']),
.app-page .dashboard-main > .dashboard-panel .form-field select,
.app-page .dashboard-main > .dashboard-panel textarea {
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
}

.app-page .dashboard-main .settings-panel-stack .dashboard-panel .form-field input:not([type='checkbox']):not([type='file']),
.app-page .dashboard-main .settings-panel-stack .dashboard-panel .form-field select,
.app-page .dashboard-main .settings-panel-stack .dashboard-panel textarea {
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
}

.app-page .dashboard-main > .dashboard-panel .form-field select {
    padding-right: 2.75rem;
    background-position: calc(100% - 19px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
}

.app-page .dashboard-main .settings-panel-stack .dashboard-panel .form-field select {
    padding-right: 2.75rem;
    background-position: calc(100% - 19px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
}

.app-page .dashboard-main > .dashboard-panel textarea {
    min-height: 96px;
}

.app-page .dashboard-main .settings-panel-stack .dashboard-panel textarea {
    min-height: 96px;
}

.app-page .dashboard-heading-full + .dashboard-layout .dashboard-sidebar-card-form .dashboard-field-feedback:empty,
.app-page .dashboard-heading-full + .dashboard-layout .dashboard-sidebar-card-form .dashboard-form-message:empty {
    display: none;
}

.app-page .dashboard-heading-full + .dashboard-layout .dashboard-sidebar-card-form .dashboard-form-message {
    margin-top: 0;
    font-size: 0.88rem;
    line-height: 1.4;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-panel-header {
    margin-bottom: 0.7rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-list-controls {
    gap: 0.72rem;
    margin-bottom: 0.8rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-search-form {
    gap: 0.55rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-search-field input[type='search'] {
    min-height: 38px;
    padding: 0.52rem 0.8rem;
    border-radius: 13px;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-filter-submit {
    min-width: 96px;
    min-height: 38px;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-filter-tabs {
    gap: 0.5rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-filter-tab {
    gap: 0.42rem;
    padding: 0.48rem 0.72rem;
    font-size: 0.85rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-list-meta {
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-list-message:empty {
    display: none;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-bulk-form {
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-bulk-actions {
    gap: 0.6rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-bulk-select-all {
    gap: 0.45rem;
    font-size: 0.85rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-bulk-buttons {
    gap: 0.5rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .dashboard-bulk-button {
    min-height: 38px;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .table-scroll {
    border-radius: 13px;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .app-record-table th,
.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .app-record-table td {
    padding: 0.62rem 0.68rem;
    font-size: 0.85rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .app-record-table thead th {
    font-size: 0.64rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .record-primary-link,
.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .record-primary-text {
    font-size: 0.89rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .record-secondary {
    margin-top: 0.18rem;
    font-size: 0.79rem;
    line-height: 1.42;
}

.app-page .dashboard-project-header {
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-page .dashboard-project-header-copy {
    gap: 0.5rem;
}

.app-page .dashboard-project-header-meta-row {
    gap: 0.45rem;
}

.app-page .dashboard-project-header h1 {
    font-size: clamp(1.72rem, 3.45vw, 2.65rem);
}

.app-page .dashboard-project-header .record-state-pill {
    min-height: 28px;
    padding: 0 0.62rem;
    font-size: 0.72rem;
}

.app-page .dashboard-sidebar-meta .record-state-pill {
    justify-self: start;
}

.app-page .dashboard-project-header p {
    max-width: 46rem;
    font-size: 0.94rem;
    line-height: 1.5;
}

.app-page .dashboard-layout-detail .dashboard-sidebar,
.app-page .dashboard-layout-detail .dashboard-main {
    gap: 0.9rem;
}

.app-page .dashboard-layout-detail .dashboard-sidebar > .dashboard-sidebar-card,
.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel {
    padding: 0.9rem;
}

.app-page .dashboard-layout-detail .dashboard-sidebar > .dashboard-sidebar-card > span,
.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-panel-header > div > span {
    font-size: 0.72rem;
}

.app-page .dashboard-layout-detail .dashboard-sidebar > .dashboard-sidebar-card h2,
.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-panel-header h2 {
    margin-top: 0.28rem;
    font-size: 1.45rem;
}

.app-page .dashboard-layout-detail .dashboard-sidebar > .dashboard-sidebar-card p,
.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-panel-header p {
    font-size: 0.92rem;
    line-height: 1.48;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-meta {
    gap: 0.65rem;
    margin-top: 0.7rem;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-card-summary .dashboard-sidebar-meta > div {
    display: grid;
    align-content: start;
    gap: 0.25rem;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-meta strong {
    margin-top: 0.25rem;
    font-size: 0.94rem;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-card-summary .dashboard-sidebar-meta strong,
.app-page .dashboard-layout-detail .dashboard-sidebar-card-summary .dashboard-sidebar-meta .record-state-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-top: 0;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-card-summary .dashboard-sidebar-meta .record-state-pill {
    justify-self: start;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-card-form .dashboard-panel-header {
    margin-bottom: 0.65rem;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-card-form form {
    gap: 0.72rem;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-card-form .form-field {
    gap: 0.32rem;
    font-size: 0.9rem;
}

.settings-summary-meta {
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.settings-summary-meta > div {
    min-width: 0;
}

.settings-summary-meta strong {
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.settings-summary-meta + .dashboard-note {
    margin-top: 0.9rem;
}

.settings-future-grid {
    display: grid;
    gap: 1rem;
}

.settings-panel-stack {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-role-note {
    margin-bottom: 0.6rem;
}

.settings-panel-form {
    gap: 0.85rem;
}

.dashboard-main > .settings-panel-stack .settings-panel-form > .button-primary,
.dashboard-main > .settings-panel-stack .settings-panel-form > .button-secondary,
.dashboard-main > .settings-panel-stack .settings-panel-form > .auth-submit {
    justify-self: start;
    width: auto;
}

.settings-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.settings-form-actions .button-secondary,
.settings-form-actions .auth-submit,
.settings-form-actions .button-primary {
    min-height: 38px;
    padding-inline: 0.95rem;
}

.settings-panel-form .dashboard-note {
    margin: 0;
}

.settings-team-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.settings-team-summary > div {
    display: grid;
    gap: 0.18rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #dbe3ec;
    border-radius: 16px;
    background: #f8fbfd;
}

.settings-team-summary strong {
    font-size: 1.05rem;
    color: #17324d;
}

.settings-team-summary span {
    color: #5e7893;
    font-size: 0.88rem;
}

.settings-team-summary-compact {
    margin-bottom: 1.25rem;
}

.settings-team-feedback {
    margin-bottom: 1rem;
}

.settings-team-layout {
    display: grid;
    gap: 1rem;
}

.settings-team-panel {
    display: grid;
    gap: 0.75rem;
}

.settings-team-invite-panel {
    padding: 1rem;
    border: 1px solid #dbe3ec;
    border-radius: 16px;
    background: #f8fbfd;
}

.settings-team-invite-panel .settings-panel-form {
    max-width: 440px;
}

.settings-team-invite-panel .auth-submit {
    width: auto;
    min-width: 180px;
    min-height: 38px;
    padding-inline: 0.95rem;
    justify-content: center;
}

.settings-team-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.settings-team-section-heading h3,
.settings-team-panel h3 {
    margin: 0;
}

.settings-team-section-heading .dashboard-note {
    margin: 0.2rem 0 0;
}

.settings-team-table-section {
    display: grid;
    gap: 0.75rem;
}

.settings-team-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe3ec;
    border-radius: 16px;
    background: #fbfdff;
}

.settings-team-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.settings-team-table thead th {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #dbe3ec;
    color: #5e7893;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: left;
    text-transform: uppercase;
    background: #f8fbfd;
}

.settings-team-table tbody th,
.settings-team-table tbody td {
    padding: 0.7rem 0.9rem;
    border-top: 1px solid #e7eef5;
    vertical-align: middle;
}

.settings-team-table tbody tr:first-child th,
.settings-team-table tbody tr:first-child td {
    border-top: 0;
}

.settings-team-table tbody th {
    color: #17324d;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
}

.settings-team-table tbody td {
    color: #5e7893;
    font-size: 0.92rem;
}

.settings-team-table tbody th,
.settings-team-table tbody td {
    overflow-wrap: anywhere;
}

.settings-team-role-form {
    margin: 0;
}

.settings-team-role-select {
    width: 100%;
    min-width: 110px;
    min-height: 34px;
    padding: 0.34rem 2rem 0.34rem 0.72rem;
    border: 1px solid #d4dfeb;
    border-radius: 999px;
    background-color: #f7fbff;
    background-image: linear-gradient(45deg, transparent 50%, #5e7893 50%), linear-gradient(135deg, #5e7893 50%, transparent 50%);
    background-position: calc(100% - 1rem) calc(50% - 0.12rem), calc(100% - 0.72rem) calc(50% - 0.12rem);
    background-repeat: no-repeat;
    background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
    color: #17324d;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    appearance: none;
}

.settings-team-table-actions .button-primary,
.settings-team-table-actions .button-secondary,
.settings-team-table-actions .auth-submit {
    min-height: 34px;
    padding-inline: 0.82rem;
    font-size: 0.86rem;
}

.settings-team-role-select:focus {
    outline: none;
    border-color: rgba(25, 68, 208, 0.45);
    box-shadow: 0 0 0 4px rgba(25, 68, 208, 0.1);
}

.settings-team-role-select:disabled {
    opacity: 0.7;
    cursor: wait;
}

.settings-team-email-cell {
    min-width: 220px;
}

.settings-team-table-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.settings-team-table-actions form {
    margin: 0;
}

.settings-team-action-note {
    color: #5e7893;
    font-size: 0.88rem;
    white-space: normal;
}

.settings-team-empty-state {
    margin: 0;
    padding: 0.95rem 1rem;
    border: 1px dashed #dbe3ec;
    border-radius: 16px;
    background: #fbfdff;
}

.settings-team-badge {
    display: grid;
    place-items: center;
}

.settings-team-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.14rem 0.52rem;
    border-radius: 999px;
    background: #e6f0f8;
    color: #1d4b73;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.settings-team-badge.is-muted {
    background: #eef2f6;
    color: #5e7893;
}

.settings-action-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.settings-action-label {
    display: block;
    color: #5e7893;
    font-size: 0.9rem;
    font-weight: 700;
}

.settings-action-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: stretch;
}

.settings-action-field {
    margin: 0;
}

.app-page .settings-action-field select {
    height: 38px;
    min-height: 38px;
    padding: 0.4rem 2.55rem 0.4rem 0.95rem;
    border-radius: 16px;
}

.app-page .settings-action-controls .button-primary {
    height: 38px;
    min-height: 38px;
    padding-inline: 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.1;
}

.subscription-usage-grid {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0 0.95rem;
}

.subscription-status-note {
    padding-bottom: 0.7rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #dbe3ec;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subscription-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.subscription-status-badge-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.subscription-status-badge-trialing {
    background-color: #e7f1ff;
    color: #1d4ed8;
    border: 1px solid #bfd6ff;
}

.subscription-status-badge-canceled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.subscription-status-period-info {
    font-size: 0.92rem;
    color: #44576c;
}

.subscription-usage-grid-separated {
    padding-bottom: 0.75rem;
    margin-bottom: 0.95rem;
    border-bottom: 1px solid #dbe3ec;
}

.subscription-usage-row {
    display: grid;
    grid-template-columns: 6.5rem 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.subscription-usage-label {
    font-size: 0.875rem;
    color: #5e7893;
    font-weight: 600;
    white-space: nowrap;
}

.subscription-usage-track {
    background: #e8edf2;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.subscription-usage-fill {
    background: #2a7ef5;
    height: 100%;
    border-radius: 4px;
    min-width: 0;
}

.subscription-usage-fill.is-near-limit {
    background: #e67d2f;
}

.subscription-usage-fill.is-at-limit {
    background: #c94040;
}

.subscription-usage-count {
    font-size: 0.825rem;
    color: #1d2e3f;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-width: 8rem;
    text-align: right;
}

.settings-danger-panel {
    border-color: #efdddd;
    background: linear-gradient(180deg, #fffafa 0%, #fff4f3 100%);
}

.settings-critical-callout {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid #edc7c2;
    border-left: 4px solid #c94040;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff3f0 0%, #ffeceb 100%);
    color: #4f1f1b;
}

.settings-critical-callout-title {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.settings-critical-callout p {
    margin: 0;
}

.settings-critical-callout p + p {
    margin-top: 0.6rem;
}

.settings-warning-callout {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid #f5d98a;
    border-left: 4px solid #d97706;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffcf0 0%, #fff8e1 100%);
    color: #4a3000;
}

.settings-warning-callout-title {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.settings-warning-callout p {
    margin: 0;
}

.settings-warning-callout p + p {
    margin-top: 0.6rem;
}

.settings-danger-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

@media (max-width: 720px) {
    .settings-form-actions {
        align-items: stretch;
    }

    .settings-form-actions .button-secondary,
    .settings-form-actions .auth-submit {
        width: 100%;
        justify-content: center;
    }

    .settings-team-section-heading {
        flex-direction: column;
    }

    .settings-team-invite-panel .settings-panel-form {
        max-width: none;
    }

    .settings-team-table {
        min-width: 0;
    }

    .settings-team-table thead {
        display: none;
    }

    .settings-team-table,
    .settings-team-table tbody,
    .settings-team-table tr,
    .settings-team-table th,
    .settings-team-table td {
        display: block;
        width: 100%;
    }

    .settings-team-table tbody tr {
        padding: 0.8rem 0.9rem;
        border-top: 1px solid #e7eef5;
    }

    .settings-team-table tbody tr:first-child {
        border-top: 0;
    }

    .settings-team-table tbody th,
    .settings-team-table tbody td {
        padding: 0;
        border: 0;
    }

    .settings-team-table tbody th + td,
    .settings-team-table tbody td + td {
        margin-top: 0.55rem;
    }

    .settings-team-table tbody th::before,
    .settings-team-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #7b92a7;
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .settings-team-table-actions {
        text-align: left;
        white-space: normal;
    }

    .settings-team-role-select {
        max-width: 12rem;
    }

    .settings-action-controls {
        grid-template-columns: 1fr;
    }
}

.settings-future-card {
    min-height: 0;
}

.settings-choice-grid {
    display: grid;
    gap: 0.75rem;
}

.settings-choice-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border: 1px solid #d7e3f4;
    border-radius: 18px;
    background: #f8fbff;
    cursor: pointer;
}

.settings-choice-card:hover {
    border-color: #a9c2df;
    background: #f3f8ff;
}

.settings-choice-card input[type='radio'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-choice-mark {
    width: 22px;
    height: 22px;
    margin-top: 0.12rem;
    border: 2px solid #86a5c7;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 5px #ffffff;
}

.settings-choice-copy {
    display: grid;
    gap: 0.22rem;
}

.settings-choice-title {
    color: #16324f;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.settings-choice-description {
    color: #5d7085;
    font-size: 0.92rem;
    line-height: 1.45;
}

.settings-choice-card:has(input:checked) {
    border-color: #7aa7d9;
    background: #edf5ff;
    box-shadow: 0 0 0 1px rgba(15, 108, 189, 0.08);
}

.settings-choice-card:has(input:checked) .settings-choice-mark {
    border-color: #0f6cbd;
    box-shadow: inset 0 0 0 5px #ffffff;
    background: #0f6cbd;
}

.settings-choice-card:has(input:focus-visible) {
    outline: 2px solid rgba(15, 108, 189, 0.22);
    outline-offset: 2px;
}

.settings-delete-grid {
    align-items: start;
}

@media (max-width: 900px) {
    .settings-delete-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.app-page .dashboard-layout-detail .dashboard-sidebar-card-form input[type='file'] {
    padding: 0.7rem 0.82rem;
    border-radius: 11px;
    font-size: 0.9rem;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-card-form input[type='file']::file-selector-button {
    margin-right: 0.6rem;
    padding: 0.48rem 0.75rem;
    border-radius: 9px;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-card-form .field-help {
    font-size: 0.82rem;
    line-height: 1.35;
}

.app-page .dashboard-layout-detail .dashboard-sidebar-card-form .auth-submit {
    min-height: 40px;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-panel-header {
    margin-bottom: 0.7rem;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-list-controls {
    gap: 0.72rem;
    margin-bottom: 0.8rem;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-search-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-search-field input[type='search'] {
    min-height: 40px;
    padding: 0.58rem 0.82rem;
    border-radius: 13px;
}

.project-plan-upload-inline {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.project-plan-upload-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: start;
}

.project-plan-upload-inline .project-plan-upload-field {
    gap: 0.35rem;
    margin: 0;
    min-width: 0;
    position: relative;
}

.project-plan-upload-inline .project-plan-upload-field > input[type='file'] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.project-plan-upload-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 40px;
    align-items: stretch;
}

.project-plan-upload-picker-button {
    min-height: 40px;
    padding: 0 0.95rem;
    border: 1px solid #d9e2ec;
    border-right: 0;
    border-radius: 13px 0 0 13px;
    background: #f8fafc;
    color: #16324f;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.project-plan-upload-picker-button:hover {
    background: #f2f6fb;
}

.project-plan-upload-picker-button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid rgba(15, 108, 189, 0.32);
    outline-offset: 0;
}

.project-plan-upload-picker-value {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.32rem 0.72rem;
    border: 1px solid #d9e2ec;
    border-radius: 0 13px 13px 0;
    background: #ffffff;
    color: #5f7082;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-plan-upload-inline .button-primary {
    width: fit-content;
    min-width: 130px;
    min-height: 40px;
    padding-inline: 1.1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.1;
}

.project-plan-upload-inline .button-primary.is-loading {
    padding-inline-end: 2.35rem;
}

.project-plan-upload-inline .project-plan-upload-field .field-help {
    font-size: 0.82rem;
    line-height: 1.35;
}

@media (max-width: 960px) {
    .project-plan-upload-controls {
        grid-template-columns: 1fr;
    }

    .project-plan-upload-inline .button-primary {
        width: 100%;
    }
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-filter-submit {
    justify-self: start;
    min-width: 130px;
    min-height: 40px;
    padding-inline: 1.1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.1;
}

.app-page .dashboard-layout-detail .project-plan-upload-controls {
    grid-template-columns: minmax(0, 1fr);
}

.app-page .dashboard-layout-detail .project-plan-upload-inline .button-primary {
    justify-self: start;
}

.app-page .dashboard-sidebar .project-plan-upload-picker {
    grid-template-columns: 1fr;
}

.app-page .dashboard-sidebar .project-plan-upload-picker-button {
    border-right: 1px solid #d9e2ec;
    border-radius: 13px 13px 0 0;
}

.app-page .dashboard-sidebar .project-plan-upload-picker-value {
    border-top: 0;
    border-radius: 0 0 13px 13px;
    white-space: normal;
    word-break: break-all;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-filter-tabs {
    gap: 0.5rem;
}
.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-filter-tab {
    gap: 0.42rem;
    padding: 0.48rem 0.72rem;
    font-size: 0.85rem;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-list-meta {
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-list-message:empty {
    display: none;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-bulk-form {
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-bulk-actions {
    gap: 0.6rem;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-bulk-select-all {
    gap: 0.45rem;
    font-size: 0.85rem;
}

.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .dashboard-bulk-buttons {
    gap: 0.5rem;
}

.app-page .dashboard-layout-compact .dashboard-main > .dashboard-panel .record-state-pill,
.app-page .dashboard-layout-detail .dashboard-main > .dashboard-panel .record-state-pill {
    min-height: 28px;
    padding: 0 0.62rem;
    font-size: 0.72rem;
}

.plan-upload-selection {
    display: grid;
    gap: 0.45rem;
    margin-top: -0.25rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    background: #f8fbff;
}

.plan-upload-selection.is-error {
    border-color: #f0c9bb;
    background: #fff6f2;
}

.plan-upload-selection.is-warning {
    border-color: #f1d8a7;
    background: #fffaf0;
}

.plan-upload-selection-summary {
    margin: 0;
    color: #16324f;
    font-size: 0.92rem;
    font-weight: 700;
}

.plan-upload-selection-message {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.plan-upload-selection-message.is-error {
    color: #b42318;
}

.plan-upload-selection-message.is-warning {
    color: #8a5a00;
}

.plan-upload-selection-groups {
    display: grid;
    gap: 0.7rem;
    margin: 0;
}

.plan-upload-selection-group {
    display: grid;
    gap: 0.4rem;
}

.plan-upload-selection-group-title {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plan-upload-selection-group.is-success .plan-upload-selection-group-title {
    color: #245c46;
}

.plan-upload-selection-group.is-warning .plan-upload-selection-group-title {
    color: #8a5a00;
}

.plan-upload-selection-file-list {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    padding-left: 1rem;
    color: #44576c;
    font-size: 0.88rem;
}

.plan-upload-selection-file-item {
    overflow-wrap: anywhere;
}

.flash-message.warning {
    border-color: #ead7aa;
    background: #fffaf0;
    color: #6f4c00;
}

.app-page .flash-message.warning.email-verification-banner {
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #0c63ae 0%, #236fae 100%);
    color: #ffffff;
    box-shadow: none;
}

.email-verification-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.email-verification-banner form {
    margin: 0;
}

.email-verification-banner .button-secondary,
.pricing-page .email-verification-banner .button-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(4, 17, 38, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.email-verification-banner .button-secondary:hover,
.pricing-page .email-verification-banner .button-secondary:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(4, 17, 38, 0.34);
    transform: translateY(-1px);
}

.verification-wall-shell {
    display: flex;
    justify-content: center;
    padding-top: clamp(1.2rem, 3vw, 2.2rem);
}

.verification-wall-card {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: clamp(1.75rem, 3vw, 2.6rem);
}

.verification-wall-card .dashboard-panel-header {
    margin-bottom: 1.25rem;
}

.verification-wall-card .dashboard-panel-header h1 {
    margin: 0.35rem 0 0;
    font-family: var(--app-heading-font);
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--app-heading-color);
}

.verification-wall-card p {
    max-width: 44rem;
}

.verification-wall-form {
    max-width: 24rem;
}

.verification-wall-actions {
    margin-top: 1rem;
}

@media (max-width: 760px) {
    .email-verification-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dashboard-inline-form {
    display: inline-flex;
}

.dashboard-status-summary {
    margin-top: 0;
}

.dashboard-list-controls {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
}

.dashboard-search-field {
    display: block;
}

.dashboard-search-field input[type='search'] {
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    padding-inline: 1.1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.1;
    border: 1px solid #cfd8e3;
    border-radius: 14px;
    background: #ffffff;
    color: #213245;
    font: inherit;
}

.dashboard-search-field input[type='search']:focus {
    outline: none;
    border-color: #7aa7d9;
    box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.12);
}

.dashboard-filter-submit {
    min-width: 108px;
    min-height: 42px;
}

.dashboard-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.dashboard-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.58rem 0.82rem;
    border: 1px solid #d8e2ec;
    border-radius: 999px;
    background: #f8fafc;
    color: #516377;
    font-size: 0.88rem;
}

.dashboard-filter-tab span,
.dashboard-filter-tab strong {
    color: inherit;
    font-size: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.dashboard-filter-tab strong {
    font-weight: 800;
}

.dashboard-filter-tab.is-active {
    border-color: #bfd3ea;
    background: #edf5ff;
    color: #0f5ea8;
}

.dashboard-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.dashboard-list-meta p {
    margin: 0;
}

.dashboard-clear-link {
    color: #0f6cbd;
    font-weight: 700;
}

.dashboard-list-message {
    min-height: 1.2rem;
    margin: 0 0 0.7rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.dashboard-list-message.is-error {
    color: #b42318;
}

.dashboard-list-message.is-success {
    color: #0b6b4b;
}

.app-page .dashboard-list-message.is-error {
    color: #b42318;
}

.app-page .dashboard-list-message.is-success {
    color: #0b6b4b;
}

.dashboard-bulk-form {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.dashboard-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-bulk-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #44576c;
    font-size: 0.88rem;
}

.dashboard-bulk-select-all input[type='checkbox'],
.record-cell-select input[type='checkbox'] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #0f6cbd;
}

.dashboard-bulk-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dashboard-bulk-button {
    min-height: 40px;
}

.button-secondary-restore {
    color: #ffffff;
    border-color: #3f617e;
    background: #4f708b;
}

.button-secondary-restore:hover,
.button-secondary-restore:focus-visible {
    border-color: #334e66;
    background: #3f5d76;
}

.button-secondary-archive {
    color: #ffffff;
    border-color: #6d7682;
    background: #7f8894;
}

.button-secondary-archive:hover,
.button-secondary-archive:focus-visible {
    border-color: #5a626d;
    background: #6f7884;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid #e1e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.app-record-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.plan-record-table {
    table-layout: fixed;
}

.app-record-table th,
.app-record-table td {
    padding: 0.72rem 0.75rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.88rem;
}

.app-record-table thead th {
    color: #6d7d8f;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #f8fafc;
    border-bottom: 1px solid #e1e8f0;
    white-space: nowrap;
}

.record-cell-select {
    width: 3rem;
}

.table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
}

.table-sort-link.is-current {
    color: #16324f;
}

.table-sort-indicator {
    color: #0f6cbd;
    font-size: 0.72rem;
    line-height: 1;
}

.app-record-table tbody td {
    border-top: 1px solid #edf2f7;
    color: #213245;
}

.app-record-table tbody tr:first-child td {
    border-top: 0;
}

.app-record-table tbody tr:hover {
    background: #fafcff;
}

.record-primary-link,
.record-primary-text {
    color: #16324f;
    font-weight: 700;
    font-size: 0.92rem;
}

.record-primary-text.is-disabled,
.record-action-link.is-disabled {
    color: #7a8b9c;
}

.record-lock-note {
    color: #9b5d00;
    font-weight: 700;
}

.record-secondary {
    margin-top: 0.22rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.app-record-table .record-secondary {
    line-clamp: 2;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.plan-record-table th:nth-child(2),
.plan-record-table td:nth-child(2) {
    width: 42%;
}

.plan-record-table th:nth-child(3),
.plan-record-table td:nth-child(3) {
    width: 24%;
}

.plan-record-table th:nth-child(4),
.plan-record-table td:nth-child(4) {
    width: 7rem;
}

.plan-record-table th:nth-child(5),
.plan-record-table td:nth-child(5) {
    width: 7.25rem;
}

.plan-record-table th:nth-child(6),
.plan-record-table td:nth-child(6) {
    width: 5.5rem;
}

.plan-record-table th:nth-child(7),
.plan-record-table td:nth-child(7) {
    width: 5.5rem;
}

.plan-record-table .record-primary-link,
.plan-record-table .record-primary-text {
    display: -webkit-box;
    overflow: hidden;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dashboard-plan-group {
    display: grid;
    gap: 0;
    margin-bottom: 1.5rem;
}

.dashboard-plan-group:last-child {
    margin-bottom: 0;
}

.dashboard-plan-group-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0 0.5rem;
    border-bottom: 1px solid #d9e8f5;
    margin-bottom: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #16324f;
}

.dashboard-plan-group-header a {
    color: inherit;
    text-decoration: none;
}

.dashboard-plan-group-header a:hover {
    color: #0f6cbd;
    text-decoration: underline;
}

.dashboard-plan-group .table-scroll {
    overflow-x: auto;
}

.record-cell-number {
    color: #16324f;
    font-weight: 700;
}

.record-cell-actions {
    text-align: right;
}

.record-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.record-action-link {
    color: #0f6cbd;
    font-weight: 700;
}

.record-action-link.is-disabled {
    cursor: default;
    text-decoration: none;
}

.record-action-form {
    display: inline-flex;
    margin: 0;
}

.record-action-button {
    min-height: 34px;
    padding: 0 0.8rem;
    border: 1px solid #d3dce7;
    border-radius: 999px;
    background: #ffffff;
    color: #0f6cbd;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.record-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 0.7rem;
    border: 1px solid #d5deea;
    border-radius: 999px;
    color: #5f7082;
    font-size: 0.76rem;
    background: #f8fafc;
}

.record-state-pill.is-active {
    border-color: #cfe9dc;
    color: #0b6b4b;
    background: #f2fcf7;
}

.record-state-pill.is-inactive {
    border-color: #e3d5c5;
    color: #946200;
    background: #fff8e8;
}

.dashboard-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-top: 1rem;
}

.dashboard-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.dashboard-pagination-link,
.dashboard-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 0.9rem;
    border: 1px solid #d8e2ec;
    border-radius: 999px;
    background: #ffffff;
    color: #4d6073;
    font-size: 0.92rem;
    font-weight: 700;
}

.dashboard-pagination-page.is-current {
    border-color: #bfd3ea;
    background: #edf5ff;
    color: #0f5ea8;
}

.dashboard-pagination-link.is-disabled {
    opacity: 0.45;
}

.dashboard-pagination-ellipsis {
    color: #7a8b9c;
    font-weight: 700;
}

.project-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card p {
    margin-bottom: 1rem;
}

.project-card small {
    margin-top: auto;
}

.project-card:hover {
    border-color: rgba(124, 247, 212, 0.24);
    transform: translateY(-2px);
}

.project-grid-plans {
    grid-template-columns: 1fr;
}

.dashboard-note {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.dashboard-empty-card-projects h2 {
    margin-top: 0.45rem;
}

.dashboard-heading,
.dashboard-empty-state,
.auth-shell {
    display: grid;
    gap: 1.5rem;
}

.dashboard-heading,
.dashboard-empty-state {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: start;
}

.dashboard-empty-copy h2 {
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 1.02;
}

.dashboard-empty-card ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.9;
}

.auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    align-items: start;
    padding: 4rem 0 2rem;
}

.auth-page .auth-shell {
    gap: 2rem;
    padding-top: 1rem;
}

.auth-page .auth-intro h1 {
    line-height: 1.02;
}

.auth-page .auth-intro p {
    max-width: 38rem;
    color: #b7c5d4;
}

.auth-card {
    padding: 1.6rem;
}

.auth-card form {
    display: grid;
    gap: 1rem;
}

.invitation-locked-fields {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.invitation-locked-field {
    gap: 0.55rem;
}

.auth-note {
    margin: 0;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.6;
}

.auth-page .auth-note {
    color: #e8eef5;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.form-field {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-page .form-field {
    color: #c3cfdb;
}

.form-field input:not([type='checkbox']):not([type='file']) {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}

.auth-page .form-field input:not([type='checkbox']):not([type='file']) {
    border-color: rgba(145, 164, 186, 0.22);
    border-radius: 14px;
    background: rgba(10, 18, 27, 0.44);
    color: #f3f7fb;
}

.auth-page .form-field input:not([type='checkbox']):not([type='file'])::placeholder {
    color: #7f93a6;
}

.password-field {
    position: relative;
}

.password-field input:not([type='checkbox']) {
    padding-right: 3.5rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.auth-page .password-toggle {
    color: #90a2b5;
}

.auth-page .password-toggle:hover {
    color: #eef4fa;
    background: rgba(255, 255, 255, 0.04);
}

.password-toggle:focus-visible {
    outline: none;
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(124, 247, 212, 0.18);
}

.password-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    pointer-events: none;
}

.form-field input:not([type='checkbox']):not([type='file']):focus {
    outline: none;
    border-color: rgba(124, 247, 212, 0.7);
    box-shadow: 0 0 0 4px rgba(124, 247, 212, 0.12);
}

.auth-page .form-field input:not([type='checkbox']):not([type='file']):focus {
    border-color: rgba(110, 193, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.16);
}

@media (max-width: 960px) {
    .dashboard-search-form {
        grid-template-columns: 1fr;
    }

    .dashboard-bulk-actions {
        align-items: stretch;
    }

    .dashboard-bulk-buttons {
        width: 100%;
    }

    .dashboard-bulk-button {
        flex: 1 1 180px;
    }

    .dashboard-filter-submit {
        width: 100%;
    }

    .dashboard-filter-tabs,
    .dashboard-pagination-pages {
        overflow-x: auto;
        padding-bottom: 0.15rem;
        flex-wrap: nowrap;
    }

    .dashboard-pagination {
        align-items: flex-start;
    }
}

.form-field-checkbox {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.7rem;
    row-gap: 0.35rem;
    color: var(--text);
}

.auth-page .form-field-checkbox {
    color: #e6edf4;
}

.form-field-checkbox input[type='checkbox'] {
    width: 1rem;
    height: 1rem;
    min-height: 1rem;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
}

.form-field-checkbox .field-error {
    grid-column: 1 / -1;
}

.form-field-checkbox .field-help {
    display: block;
    margin-top: 0.3rem;
}

.form-field-checkbox a {
    color: var(--accent);
}

.auth-page .form-field-checkbox a {
    color: #8ecfff;
}

.form-errors,
.field-error {
    color: var(--danger);
}

.field-help,
.auth-meta {
    color: var(--muted);
}

.auth-page .field-help,
.auth-page .auth-meta {
    color: #99adbf;
}

.field-help ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.field-help li + li {
    margin-top: 0.25rem;
}

.auth-meta {
    margin: 1rem 0 0;
}

.auth-meta a {
    color: var(--accent);
}

.auth-page .auth-meta a {
    color: #8ecfff;
}

.legal-shell {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
}

.legal-card {
    padding: 2rem;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    background: rgba(11, 17, 24, 0.92);
    box-shadow: var(--shadow);
}

.legal-card h1 {
    margin-bottom: 0.4rem;
}

.legal-meta {
    margin: 0 0 1rem;
    color: var(--muted);
}

.legal-note {
    margin: 0 0 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(124, 247, 212, 0.18);
    border-radius: 14px;
    background: rgba(124, 247, 212, 0.06);
    color: var(--text);
}

.legal-section + .legal-section {
    margin-top: 1.6rem;
}

.legal-section h2 {
    margin-bottom: 0.5rem;
}

.legal-section p,
.legal-section li {
    color: var(--muted);
}

.legal-section ul {
    margin: 0.85rem 0 0;
    padding-left: 1.25rem;
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.app-page .dashboard-shell.plan-workspace-page {
    width: 100%;
    max-width: clamp(1320px, calc(100vw - 4.75rem), 1720px);
}

.plan-workspace-main {
    display: grid;
    gap: 1.25rem;
}

.plan-workspace-page .dashboard-project-header > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    max-width: min(100%, 52rem);
}

.plan-workspace-notes-grid {
    display: grid;
    gap: 1rem;
}

.plan-workspace-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-workspace-notes-form-panel {
    height: 100%;
}

.plan-workspace-panel {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.plan-workspace-panel-head,
.plan-workspace-stage-toolbar {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.85rem;
}

.plan-workspace-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.plan-workspace-toolbar-stack {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    justify-items: stretch;
    align-content: start;
    gap: 0.3rem 0.35rem;
}

.plan-workspace-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    width: 100%;
}

.plan-workspace-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    min-width: 0;
}

.plan-workspace-toolbar-group:not(:has(> :not([hidden]))) {
    display: none;
}

.plan-workspace-toolbar-group + .plan-workspace-toolbar-group {
    position: relative;
    margin-inline-start: 0.1rem;
    padding-inline-start: 0.62rem;
}

.plan-workspace-toolbar-row-view > [data-plan-workspace-zoom-control].plan-workspace-toolbar-group {
    margin-inline-start: 0;
    padding-inline-start: 0;
}

.plan-workspace-toolbar-row-view > [data-plan-workspace-zoom-control].plan-workspace-toolbar-group::before {
    display: none;
}

.plan-workspace-toolbar-group + .plan-workspace-toolbar-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background: rgba(121, 145, 170, 0.4);
}

.plan-workspace-shell {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.plan-workspace-lock-notice {
    display: flex;
    align-items: start;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #d8e2ec;
    border-radius: 14px;
    background: #f8fbff;
    color: #24415f;
}

.plan-workspace-lock-notice span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plan-workspace-lock-notice p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.plan-workspace-lock-notice-action {
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
}

.plan-workspace-lock-notice.is-warning {
    border-color: #ecd8a8;
    background: #fff8e7;
    color: #7a5a0a;
}

.plan-workspace-lock-notice.is-error {
    border-color: #efc2c2;
    background: #fff1f1;
    color: #9f1c1c;
}

.plan-workspace-toolbar-dock {
    position: sticky;
    top: 0.75rem;
    z-index: 26;
}

.plan-workspace-stage-card {
    position: relative;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    background: #f8fafc;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    isolation: isolate;
}

.plan-workspace-stage-card {
    padding: 0.85rem;
}

.plan-workspace-stage-toolbar {
    position: relative;
    margin-bottom: 0;
    align-items: start;
    gap: 0.5rem;
    padding: 0.03rem 0.08rem 0.45rem;
    border-bottom: 1px solid rgba(214, 226, 240, 0.9);
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(18px);
}

.plan-workspace-stage {
    margin-top: 0.75rem;
}

.plan-workspace-surface {
    position: absolute;
    top: calc(100% + 0.75rem);
    z-index: 24;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.14);
}

.plan-workspace-surface-sheet {
    left: 50%;
    width: min(calc(100vw - 6rem), 70rem);
    max-width: calc(100% - 0.4rem);
    max-height: min(70vh, 40rem);
    overflow: auto;
    transform: translateX(-50%);
}

.plan-workspace-surface-flyout {
    right: 0;
    width: min(46rem, calc(100% - 0.2rem));
    max-height: min(76vh, 36rem);
    overflow: auto;
}

.plan-workspace-surface-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #d6e2f0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #44576c;
    font: inherit;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.plan-workspace-surface-close:hover,
.plan-workspace-surface-close:focus-visible {
    border-color: #8fb6d9;
    color: #16324f;
    outline: none;
}

.plan-workspace-stage-meta {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 0.32rem;
    flex: 0 0 7.4rem;
    min-width: 7.4rem;
    align-self: stretch;
    margin-inline-end: 0.35rem;
    padding-inline-end: 0.72rem;
    border-inline-end: 1px solid rgba(121, 145, 170, 0.4);
}

.plan-workspace-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.16rem 0.48rem;
    border: 1px solid #d6e2f0;
    border-radius: 999px;
    background: #ffffff;
    color: #27415e;
    font-size: 0.68rem;
    font-weight: 700;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.plan-workspace-chip.is-loading {
    border-color: #c7d8ee;
    background: #f1f7fd;
    color: #2d5888;
}

.plan-workspace-chip.is-loading::before {
    content: '';
    width: 0.72rem;
    height: 0.72rem;
    margin-right: 0.38rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    animation: spinner-rotate 0.65s linear infinite;
}

.plan-workspace-chip.is-error {
    border-color: #efc2c2;
    background: #fff1f1;
    color: #9f1c1c;
}

.plan-workspace-save-status {
    justify-content: center;
    inline-size: 6.6rem;
    min-inline-size: 6.6rem;
    max-inline-size: 6.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.plan-workspace-save-status.is-idle,
.plan-workspace-save-status.is-saved {
    border-color: #cfe6d8;
    background: #f3fbf6;
    color: #23603f;
}

.plan-workspace-save-status.is-dirty,
.plan-workspace-save-status.is-saving {
    border-color: #ecd8a8;
    background: #fff8e7;
    color: #7a5a0a;
}

.plan-workspace-save-status.is-error {
    border-color: #efc2c2;
    background: #fff1f1;
    color: #9f1c1c;
}

.plan-workspace-save-status.is-local {
    border-color: #d6e2f0;
    background: #f6f9fc;
    color: #44576c;
}

.plan-workspace-control-button-save:not(:disabled) {
    border-color: #cfe6d8;
    background: linear-gradient(180deg, #f8fffb 0%, #edf9f1 100%);
    color: #21573b;
}

.plan-workspace-control-button-save {
    min-inline-size: 6.2rem;
}

.plan-workspace-control-button-save.is-active:not(:disabled),
.plan-workspace-control-button-save:not(:disabled):hover {
    border-color: #96bea7;
    background: linear-gradient(180deg, #e7f8ee 0%, #d6eedf 100%);
    color: #173d2a;
}

.plan-workspace-page-control,
.plan-workspace-zoom-control {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    min-width: 0;
}

.plan-workspace-toolbar-history-control {
    position: relative;
    margin-inline-start: 0.1rem;
    padding-inline-start: 0.62rem;
}

.plan-workspace-toolbar-history-control:not([hidden])::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background: rgba(121, 145, 170, 0.4);
}

.plan-workspace-page-select-wrap {
    display: grid;
    gap: 0.18rem;
    min-width: 5.7rem;
    color: #44576c;
}

.plan-workspace-page-select-wrap span,
.plan-workspace-empty span {
    display: block;
    color: #56697d;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-workspace-page-select-wrap select,
.plan-workspace-control-button {
    min-height: 1.9rem;
    padding: 0.26rem 0.55rem;
    border: 1px solid #cfd8e3;
    border-radius: 9px;
    background: #ffffff;
    color: #213245;
    font: inherit;
}

.plan-workspace-control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
}

.plan-workspace-control-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.plan-workspace-control-button.is-active {
    border-color: #6f99c2;
    background: linear-gradient(180deg, #deecfb 0%, #cddff4 100%);
    color: #0f3256;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 0 0 1px rgba(111, 153, 194, 0.2);
}

.plan-workspace-control-button-danger:not(:disabled) {
    border-color: #efc2c2;
    background: linear-gradient(180deg, #fff5f5 0%, #ffe4e4 100%);
    color: #8a1c1c;
}

.plan-workspace-control-button-danger.is-active:not(:disabled),
.plan-workspace-control-button-danger:not(:disabled):hover {
    border-color: #e59898;
    background: linear-gradient(180deg, #ffeaea 0%, #ffd2d2 100%);
    color: #7d1515;
}

.plan-workspace-zoom-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 1.9rem;
    padding: 0 0.52rem;
    border: 1px solid #d6e2f0;
    border-radius: 9px;
    background: #ffffff;
    color: #27415e;
    font-size: 0.74rem;
    font-weight: 700;
}

.plan-workspace-calibration-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0 0.85rem;
    border: 1px solid #d6e2f0;
    border-radius: 12px;
    background: #ffffff;
    color: #44576c;
    font-size: 0.88rem;
    font-weight: 700;
}

.plan-workspace-measurement-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0 0.85rem;
    border: 1px solid #ead7b4;
    border-radius: 12px;
    background: #fffaf0;
    color: #7a5a19;
    font-size: 0.88rem;
    font-weight: 700;
}

.plan-workspace-calibration-pill.is-active {
    border-color: #8fb6d9;
    background: #eef5fb;
    color: #16324f;
}

.plan-workspace-measurement-pill.is-active {
    border-color: #e6c177;
    background: #fff3d8;
    color: #6f4d08;
}

.plan-workspace-calibration-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.78rem 0.82rem 0.78rem;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    background: #ffffff;
}

.plan-workspace-measurement-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    width: min(34rem, calc(100% - 0.2rem));
    padding: 0.82rem 0.82rem 0.9rem;
    border: 1px solid #eadfca;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdfa 0%, #fff8eb 100%);
}

.plan-workspace-layer-panel {
    display: grid;
    grid-template-columns: minmax(12.8rem, 14rem) minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.78rem 2.7rem 0.78rem 0.78rem;
    border: 1px solid #d8dde9;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fb 100%);
}

.plan-workspace-calibration-panel {
    padding-right: 3rem;
}

.plan-workspace-calibration-copy span,
.plan-workspace-calibration-field span,
.plan-workspace-calibration-error {
    display: block;
    color: #56697d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-workspace-measurement-copy span,
.plan-workspace-measurement-stat span,
.plan-workspace-measurement-error {
    display: block;
    color: #7a6850;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-workspace-tool-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.plan-workspace-tool-panel-titles {
    min-width: 0;
}

.plan-workspace-tool-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.plan-workspace-tool-help {
    position: relative;
    flex: 0 0 auto;
}

.plan-workspace-tool-help-button,
.plan-workspace-tool-panel-header .plan-workspace-surface-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #d8c6a8;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #7a6850;
    line-height: 1;
}

.plan-workspace-tool-help-button {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: help;
}

.plan-workspace-tool-panel-header .plan-workspace-surface-close {
    position: static;
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.plan-workspace-tool-help-button:hover,
.plan-workspace-tool-help-button:focus-visible,
.plan-workspace-tool-panel-header .plan-workspace-surface-close:hover,
.plan-workspace-tool-panel-header .plan-workspace-surface-close:focus-visible {
    border-color: #0f6cbd;
    color: #0f6cbd;
    outline: none;
}

.plan-workspace-tool-help-tooltip {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 16;
    width: min(18rem, calc(100vw - 4rem));
    padding: 0.6rem 0.72rem;
    border: 1px solid #d8c6a8;
    border-radius: 12px;
    background: #fffdfa;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.2rem);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.plan-workspace-tool-help:hover .plan-workspace-tool-help-tooltip,
.plan-workspace-tool-help:focus-within .plan-workspace-tool-help-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.plan-workspace-tool-help-tooltip p {
    margin: 0;
    color: #6f614c;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
}

.plan-workspace-calibration-copy h3 {
    margin: 0.28rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.08rem;
    line-height: 1.2;
    color: #16324f;
}

.plan-workspace-measurement-copy h3 {
    margin: 0.28rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.08rem;
    line-height: 1.2;
    color: #5d4308;
}

.plan-workspace-layer-copy h3 {
    margin: 0.25rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.08rem;
    line-height: 1.2;
    color: #16324f;
}

.plan-workspace-calibration-copy p,
.plan-workspace-calibration-error {
    margin: 0.5rem 0 0;
    color: #44576c;
    font-size: 0.84rem;
    line-height: 1.45;
}

.plan-workspace-measurement-copy p,
.plan-workspace-measurement-error {
    margin: 0.5rem 0 0;
    color: #6f614c;
    font-size: 0.84rem;
    line-height: 1.45;
}

.plan-workspace-layer-copy span,
.plan-workspace-layer-list-wrap > span,
.plan-workspace-layer-field span,
.plan-workspace-layer-stat span,
.plan-workspace-layer-error {
    display: block;
    color: #56697d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-workspace-layer-copy p,
.plan-workspace-layer-error {
    margin: 0.5rem 0 0;
    color: #44576c;
    font-size: 0.84rem;
    line-height: 1.45;
}

.plan-workspace-layer-copy {
    max-width: 13.6rem;
    align-self: start;
}

.plan-workspace-layer-copy p {
    max-width: 12.8rem;
}

.plan-workspace-layer-error {
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(180, 35, 24, 0.2);
    border-radius: 10px;
    background: rgba(180, 35, 24, 0.08);
    color: #b42318;
}

.app-page .dashboard-panel .plan-workspace-layer-error {
    color: #b42318;
}

.plan-workspace-layer-details,
.plan-workspace-layer-controls,
.plan-workspace-layer-list-wrap {
    display: grid;
    gap: 0.62rem;
    align-content: start;
}

.plan-workspace-layer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(13.8rem, 0.86fr);
    gap: 0.62rem;
    align-items: start;
    min-height: 0;
}

.plan-workspace-layer-list-wrap {
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
}

.plan-workspace-layer-table-head,
.plan-workspace-layer-row {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 2.35rem 3.55rem;
    align-items: center;
    column-gap: 0.35rem;
}

.plan-workspace-layer-table-head {
    padding: 0 0.5rem 0.22rem;
    border-bottom: 1px solid #d7e0ea;
}

.plan-workspace-layer-table-head span {
    color: #56697d;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-workspace-layer-table-head span:nth-child(n + 2) {
    text-align: right;
}

.plan-workspace-layer-list {
    display: grid;
    gap: 0.26rem;
    align-content: start;
    height: clamp(13rem, 29vh, 18rem);
    overflow-y: auto;
    padding-right: 0.15rem;
}

.plan-workspace-layer-page-heading {
    padding: 0.24rem 0.5rem 0.08rem;
    color: #7a6850;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-workspace-layer-row {
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(215, 224, 234, 0.85);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.92);
}

.plan-workspace-layer-row.is-active {
    border-color: rgba(15, 108, 189, 0.3);
    background: #f4f8fc;
    box-shadow: inset 0 0 0 1px rgba(15, 108, 189, 0.08);
}

.plan-workspace-layer-row-copy {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
    text-align: left;
}

.plan-workspace-layer-row-copy strong {
    color: #16324f;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-workspace-layer-row-button,
.plan-workspace-layer-row-count,
.plan-workspace-layer-chip {
    min-width: 0;
}

.plan-workspace-layer-row-button,
.plan-workspace-layer-chip {
    border: 1px solid #cfd8e3;
    color: #27415e;
    font: inherit;
}

.plan-workspace-layer-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.plan-workspace-layer-row-primary {
    min-width: 0;
    justify-content: flex-start;
    padding: 0.12rem 0.22rem;
    border: none;
    border-radius: 7px;
    background: transparent;
}

.plan-workspace-layer-row-primary:hover,
.plan-workspace-layer-row-primary[aria-pressed='true'] {
    background: rgba(15, 108, 189, 0.06);
}

.plan-workspace-layer-row-primary:disabled {
    cursor: default;
    opacity: 0.72;
}

.plan-workspace-layer-row-primary:disabled:hover {
    background: transparent;
}

.plan-workspace-layer-row-primary:focus-visible {
    outline: 2px solid #0f6cbd;
    outline-offset: 2px;
}

.plan-workspace-layer-row-count {
    color: #5d6f82;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.plan-workspace-layer-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.62rem;
    justify-self: end;
    padding: 0 0.44rem;
    border-radius: 999px;
    background: #f4f7fb;
    color: #53687e;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.plan-workspace-layer-stat {
    padding: 0.7rem 0.78rem;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.plan-workspace-layer-stat strong {
    display: block;
    margin-top: 0.28rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    color: #16324f;
}

.plan-workspace-layer-field {
    display: grid;
    gap: 0.3rem;
}

.plan-workspace-layer-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.46rem;
}

.plan-workspace-layer-field input {
    min-height: 2.08rem;
    padding: 0.36rem 0.58rem;
    border: 1px solid #cfd8e3;
    border-radius: 9px;
    background: #ffffff;
    color: #213245;
    font-size: 0.84rem;
}

.plan-workspace-layer-field input:disabled {
    cursor: not-allowed;
    background: #f3f6fa;
    color: #6b7b8d;
}

.plan-workspace-layer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.plan-workspace-calibration-form {
    display: grid;
    gap: 0.62rem;
    align-content: start;
}

.plan-workspace-measurement-details {
    display: grid;
    gap: 0.72rem;
    align-content: start;
}

.plan-workspace-measurement-color-picker,
.plan-workspace-measurement-field {
    display: grid;
    gap: 0.3rem;
}

.plan-workspace-measurement-combobox {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
}

.plan-workspace-measurement-color-picker > span,
.plan-workspace-measurement-field > span,
.plan-workspace-legend-overlay-head span {
    display: block;
    color: #7a6850;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-workspace-measurement-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.plan-workspace-markup-tool-grid,
.plan-workspace-markup-symbol-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.plan-workspace-markup-tool-grid {
    min-height: 2rem;
}

.plan-workspace-markup-tool-button,
.plan-workspace-markup-symbol-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.95rem;
    height: 1.95rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #1f2937;
    font: inherit;
    cursor: pointer;
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.plan-workspace-markup-tool-button:hover,
.plan-workspace-markup-symbol-button:hover {
    color: #0f6cbd;
    transform: translateY(-1px);
}

.plan-workspace-markup-tool-button:focus-visible,
.plan-workspace-markup-symbol-button:focus-visible {
    outline: 2px solid #0f6cbd;
    outline-offset: 2px;
}

.plan-workspace-markup-tool-button.is-active,
.plan-workspace-markup-symbol-button.is-active {
    color: #0f6cbd;
    transform: scale(1.08);
}

.plan-workspace-markup-tool-preview,
.plan-workspace-markup-symbol-button .plan-workspace-markup-stamp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.plan-workspace-markup-tool-preview {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    color: currentColor;
}

.plan-workspace-markup-tool-glyph {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.plan-workspace-markup-tool-glyph-text {
    font-size: 0.78rem;
}

.plan-workspace-markup-tool-svg {
    width: 1.42rem;
    height: 0.92rem;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.plan-workspace-markup-stamp-svg {
    width: 1.58rem;
    height: 1.58rem;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.plan-workspace-markup-stamp-svg-fill {
    fill: currentColor;
}

.plan-workspace-markup-stamp-chip {
    width: 1.5rem;
    height: 1.5rem;
    border: 2.2px solid currentColor;
    border-radius: 999px;
    background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.plan-workspace-markup-stamp-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.02rem;
    min-height: 1.02rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
}

.plan-workspace-markup-tool-label {
    display: none;
}

.plan-workspace-measurement-swatch {
    position: relative;
    width: 2.05rem;
    height: 2.05rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.plan-workspace-measurement-swatch::before {
    content: '';
    position: absolute;
    inset: 0.24rem;
    border-radius: 999px;
    background: var(--measurement-color, #d97706);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.22);
}

.plan-workspace-measurement-swatch.is-active {
    border-color: #7c5c14;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.plan-workspace-measurement-swatch:focus-visible {
    outline: 2px solid #0f6cbd;
    outline-offset: 2px;
}

.plan-workspace-measurement-field input {
    min-height: 2.08rem;
    padding: 0.36rem 0.58rem;
    border: 1px solid #d8c6a8;
    border-radius: 9px;
    background: #ffffff;
    color: #213245;
    font-size: 0.84rem;
}

.plan-workspace-measurement-combobox > input {
    padding-right: 2.6rem;
}

.plan-workspace-measurement-combobox-toggle {
    position: absolute;
    top: 0.18rem;
    right: 0.2rem;
    bottom: 0.18rem;
    width: 2rem;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #7a6850;
    cursor: pointer;
}

.plan-workspace-measurement-combobox-toggle:hover,
.plan-workspace-measurement-combobox-toggle:focus-visible {
    color: #0f6cbd;
}

.plan-workspace-measurement-catalog-dropdown {
    position: relative;
}

.plan-workspace-measurement-catalog-results {
    position: static;
    z-index: 8;
    display: grid;
    gap: 0.2rem;
    max-height: 18rem;
    padding: 0.3rem;
    overflow-y: auto;
    border: 1px solid #d8c6a8;
    border-radius: 10px;
    background: #fffaf1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.plan-workspace-measurement-catalog-option,
.plan-workspace-measurement-catalog-empty {
    display: grid;
    gap: 0.12rem;
    padding: 0.5rem 0.58rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #213245;
    text-align: left;
}

.plan-workspace-measurement-catalog-option {
    cursor: pointer;
}

.plan-workspace-measurement-catalog-option:hover,
.plan-workspace-measurement-catalog-option:focus-visible {
    background: rgba(15, 108, 189, 0.08);
    outline: none;
}

.plan-workspace-measurement-catalog-option-name {
    font-size: 0.82rem;
    font-weight: 700;
}

.plan-workspace-measurement-catalog-option-meta,
.plan-workspace-measurement-field-help {
    color: #7a6850;
    font-size: 0.72rem;
    line-height: 1.45;
}

.plan-workspace-calibration-field {
    display: grid;
    gap: 0.28rem;
}

.plan-workspace-calibration-field input,
.plan-workspace-calibration-field select {
    min-height: 2.08rem;
    padding: 0.36rem 0.58rem;
    border: 1px solid #cfd8e3;
    border-radius: 9px;
    background: #ffffff;
    color: #213245;
    font-size: 0.84rem;
}

.plan-workspace-calibration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.plan-workspace-measurement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.plan-workspace-measurement-grid-compact {
    grid-template-columns: minmax(0, 1fr);
}

.plan-workspace-measurement-stat {
    padding: 0.72rem 0.82rem;
    border: 1px solid #eadfca;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
}

.plan-workspace-measurement-stat strong {
    display: block;
    margin-top: 0.28rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    color: #5d4308;
}

.plan-workspace-measurement-stat-selection {
    grid-column: 1 / -1;
}

.plan-workspace-ledger-panel {
    display: grid;
    gap: 1rem;
}

.plan-workspace-ledger-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.plan-workspace-ledger-export-button {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-top: 0;
}

.plan-workspace-ledger-actions {
    gap: 0.5rem;
    justify-content: flex-end;
}

.plan-workspace-ledger-action {
    min-height: 38px;
    padding: 0 0.82rem;
    font-size: 0.84rem;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.xero-quote-modal-dialog {
    width: min(100%, 580px);
}

.xero-quote-modal-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.xero-quote-new-customer {
    display: grid;
    gap: 0.85rem;
}

.xero-quote-customer-field {
    position: relative;
}

.xero-quote-customer-combobox {
    position: relative;
    display: flex;
    align-items: center;
}

.xero-quote-customer-combobox input {
    width: 100%;
    padding-right: 3rem;
}

.xero-quote-customer-combobox.is-open input {
    border-color: #0f6cbd;
    box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.14);
}

.xero-quote-customer-toggle {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4b5f75;
    cursor: pointer;
    transform: translateY(-50%);
}

.xero-quote-customer-dropdown {
    position: absolute;
    top: calc(100% - 0.1rem);
    left: 0;
    right: 0;
    z-index: 25;
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.xero-quote-customer-results {
    display: grid;
    max-height: 240px;
    overflow-y: auto;
}

.xero-quote-customer-option,
.xero-quote-customer-create {
    display: grid;
    gap: 0.12rem;
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 0;
    border-bottom: 1px solid #eef3f7;
    background: #ffffff;
    color: #16324f;
    text-align: left;
    cursor: pointer;
}

.xero-quote-customer-option:last-child {
    border-bottom: 0;
}

.xero-quote-customer-option:hover,
.xero-quote-customer-option:focus,
.xero-quote-customer-create:hover,
.xero-quote-customer-create:focus {
    background: #f5f9fd;
    outline: none;
}

.xero-quote-customer-option-name {
    font-weight: 600;
}

.xero-quote-customer-option-meta {
    color: #5d7389;
    font-size: 0.84rem;
}

.xero-quote-customer-empty {
    margin: 0;
    padding: 0.85rem 0.9rem;
    color: #5d7389;
    font-size: 0.88rem;
}

.xero-quote-customer-create {
    border-top: 1px solid #dfe8f1;
    border-bottom: 0;
    background: #f8fbfe;
    font-weight: 700;
}

.xero-quote-modal-form .form-field {
    gap: 0.32rem;
    font-size: 0.9rem;
}

.xero-quote-modal-form .form-field input:not([type='checkbox']):not([type='file']),
.xero-quote-modal-form .form-field select {
    min-height: 48px;
}

.app-page .plan-workspace-ledger-export-button {
    color: #ffffff;
    border-color: #185c37;
    background: linear-gradient(180deg, #217346 0%, #185c37 100%);
}

.app-page .plan-workspace-ledger-header h2 {
    color: var(--app-heading-color);
}

.app-page .plan-workspace-ledger-export-button:hover:not(:disabled) {
    background: linear-gradient(180deg, #278651 0%, #1d6a40 100%);
}

.plan-workspace-ledger-export-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.plan-workspace-ledger-table th:nth-child(1),
.plan-workspace-ledger-table td:nth-child(1) {
    width: 6rem;
}

.plan-workspace-ledger-table th:nth-child(2),
.plan-workspace-ledger-table td:nth-child(2) {
    width: 8rem;
}

.plan-workspace-ledger-table th:nth-child(3),
.plan-workspace-ledger-table td:nth-child(3) {
    width: 6rem;
}

.plan-workspace-ledger-table th:nth-child(5),
.plan-workspace-ledger-table td:nth-child(5) {
    width: 5rem;
}

.plan-workspace-ledger-table th:nth-child(6),
.plan-workspace-ledger-table td:nth-child(6) {
    width: 11rem;
}

.plan-workspace-ledger-table th:nth-child(7),
.plan-workspace-ledger-table td:nth-child(7) {
    width: 6rem;
}

.project-measurement-rollup-table th:nth-child(1),
.project-measurement-rollup-table td:nth-child(1) {
    width: 16rem;
}

.project-measurement-rollup-table th:nth-child(2),
.project-measurement-rollup-table td:nth-child(2) {
    width: 6rem;
}

.project-measurement-rollup-table th:nth-child(3),
.project-measurement-rollup-table td:nth-child(3) {
    width: 8rem;
}

.project-measurement-rollup-table th:nth-child(5),
.project-measurement-rollup-table td:nth-child(5) {
    width: 5rem;
}

.project-measurement-rollup-table th:nth-child(6),
.project-measurement-rollup-table td:nth-child(6) {
    width: 7rem;
}

.project-measurement-rollup-table th:nth-child(7),
.project-measurement-rollup-table td:nth-child(7) {
    width: 6rem;
}

.plan-workspace-ledger-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.plan-workspace-ledger-sort-button:hover,
.plan-workspace-ledger-sort-button:focus-visible {
    color: #0f6cbd;
    outline: none;
}

.plan-workspace-ledger-sort-indicator::before {
    content: '↕';
    font-size: 0.72rem;
    opacity: 0.45;
}

[aria-sort='ascending'] .plan-workspace-ledger-sort-indicator::before {
    content: '↑';
    opacity: 1;
}

[aria-sort='descending'] .plan-workspace-ledger-sort-indicator::before {
    content: '↓';
    opacity: 1;
}

.plan-workspace-ledger-empty td {
    color: #5d6f82;
}

.plan-workspace-ledger-color {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #213245;
}

.plan-workspace-ledger-color-chip {
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.22);
    border-radius: 999px;
    background: var(--measurement-color, #d97706);
}

.plan-workspace-ledger-description {
    color: #44576c;
}

.plan-workspace-ledger-layer-button {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f6cbd;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
    cursor: pointer;
}

.plan-workspace-ledger-layer-button:hover,
.plan-workspace-ledger-layer-button:focus-visible {
    color: #0b5cab;
}

.plan-workspace-ledger-layer-button:focus-visible {
    outline: 2px solid #0f6cbd;
    outline-offset: 2px;
    border-radius: 4px;
}

.plan-workspace-stage-overlay-stack {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: grid;
    gap: 0.65rem;
    width: min(380px, calc(100% - 2rem));
}

.plan-workspace-layer-overlay,
.plan-workspace-legend-overlay {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgba(216, 198, 168, 0.9);
    border-radius: 14px;
    background: rgba(255, 252, 245, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
}

.plan-workspace-layer-overlay-head,
.plan-workspace-legend-overlay-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.85rem;
}

.plan-workspace-layer-overlay-copy,
.plan-workspace-legend-overlay-copy {
    min-width: 0;
}

.plan-workspace-layer-overlay-head strong,
.plan-workspace-legend-overlay-head strong {
    display: block;
    margin-top: 0.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: #5d4308;
}

.plan-workspace-calibration-badge {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.18em 0.55em;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.5;
    background: #ea580c;
    color: #fff;
}

.plan-workspace-calibration-badge.is-set {
    background: #16a34a;
    color: #fff;
}

.plan-workspace-calibration-badge.is-unset {
    background: #ea580c;
    color: #fff;
}

.plan-workspace-legend-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border: 1px solid rgba(216, 198, 168, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #7a6850;
    cursor: pointer;
    flex: 0 0 auto;
}

.plan-workspace-legend-toggle:hover {
    border-color: rgba(217, 119, 6, 0.34);
    background: #fff6e6;
    color: #5d4308;
}

.plan-workspace-legend-toggle:focus-visible {
    outline: 2px solid #0f6cbd;
    outline-offset: 2px;
}

.plan-workspace-legend-toggle span {
    display: block;
    font-size: 1rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.plan-workspace-legend-overlay.is-collapsed .plan-workspace-legend-toggle span {
    transform: rotate(-180deg);
}

.plan-workspace-layer-overlay.is-collapsed .plan-workspace-legend-toggle span {
    transform: rotate(-180deg);
}

.plan-workspace-layer-overlay-content,
.plan-workspace-legend-overlay-content {
    display: grid;
    gap: 0.38rem;
    margin-top: 0.35rem;
}

.plan-workspace-layer-overlay-list {
    display: grid;
    gap: 0.3rem;
}

.plan-workspace-layer-overlay-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.4rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(234, 223, 202, 0.72);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
    color: #3f2d09;
    cursor: pointer;
    text-align: left;
}

.plan-workspace-layer-overlay-row:hover,
.plan-workspace-layer-overlay-row.is-active {
    border-color: rgba(15, 108, 189, 0.28);
    background: #f6faff;
}

.plan-workspace-layer-overlay-row.is-empty {
    background: rgba(255, 249, 240, 0.82);
}

.plan-workspace-layer-overlay-row:focus-visible {
    outline: 2px solid #0f6cbd;
    outline-offset: 2px;
}

.plan-workspace-layer-overlay-row-copy {
    min-width: 0;
}

.plan-workspace-layer-overlay-row-copy strong {
    display: block;
    overflow: hidden;
    color: #16324f;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-workspace-layer-overlay-row-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.45rem;
    padding: 0 0.4rem;
    border: 1px solid #d8c6a8;
    border-radius: 999px;
    background: #fffaf1;
    color: #7a6850;
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
}

.plan-workspace-layer-overlay-row-status.is-empty {
    border-style: dashed;
    background: #fff6e9;
    color: #9a6b2f;
}

.plan-workspace-legend-table-head,
.plan-workspace-legend-row {
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr) 2.7rem minmax(0, 6.1rem);
    align-items: center;
    column-gap: 0.4rem;
}

.plan-workspace-legend-table-head {
    margin-top: 0.55rem;
    padding: 0 0.55rem 0.3rem;
    border-bottom: 1px solid rgba(216, 198, 168, 0.75);
}

.plan-workspace-legend-table-head span {
    color: #7a6850;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-workspace-legend-table-head span:nth-child(3),
.plan-workspace-legend-table-head span:nth-child(4) {
    text-align: right;
}

.plan-workspace-legend-section {
    display: grid;
    gap: 0.2rem;
}

.plan-workspace-legend-layer-title {
    padding: 0.35rem 0.1rem 0.1rem;
    color: #16324f;
    font-size: 0.78rem;
    font-weight: 800;
}

.plan-workspace-legend-section-title {
    padding: 0.3rem 0.1rem 0.15rem;
    color: #7a6850;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-workspace-legend-empty {
    margin: 0;
    color: #6f614c;
    line-height: 1.6;
    padding: 0.35rem 0.1rem 0.15rem;
}

.plan-workspace-legend-row {
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(234, 223, 202, 0.62);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    text-align: left;
}

.plan-workspace-legend-row:hover,
.plan-workspace-legend-row.is-active {
    border-color: rgba(217, 119, 6, 0.28);
    background: #fff6e6;
}

.plan-workspace-legend-row:focus-visible {
    outline: 2px solid #0f6cbd;
    outline-offset: 2px;
}

.plan-workspace-legend-row-swatch {
    width: 0.9rem;
    height: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.22);
    border-radius: 999px;
    background: var(--measurement-color, #d97706);
}

.plan-workspace-legend-row-copy {
    min-width: 0;
    justify-self: start;
    width: 100%;
    text-align: left;
}

.plan-workspace-legend-row-copy strong {
    display: block;
    overflow: hidden;
    color: #3f2d09;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-workspace-legend-row-count,
.plan-workspace-legend-row-total {
    color: #6a5832;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.plan-workspace-legend-row-total {
    color: #5d4308;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.plan-workspace-calibration-error {
    color: #b42318;
}

.plan-workspace-measurement-error {
    color: #b54708;
}

.plan-workspace-stage {
    position: relative;
    height: clamp(560px, 72vh, 880px);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0.85rem;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(247, 250, 252, 0.98)),
        repeating-linear-gradient(0deg, rgba(15, 108, 189, 0.04) 0, rgba(15, 108, 189, 0.04) 1px, transparent 1px, transparent 38px),
        repeating-linear-gradient(90deg, rgba(15, 108, 189, 0.04) 0, rgba(15, 108, 189, 0.04) 1px, transparent 1px, transparent 38px);
}

.plan-workspace-empty,
.plan-workspace-pdf-viewport {
    width: 100%;
    height: 100%;
}

.plan-workspace-empty {
    display: grid;
    place-content: center;
    padding: 2rem;
    text-align: center;
}

.plan-workspace-empty h3 {
    margin: 0.45rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
    color: #16324f;
}

.plan-workspace-empty p {
    margin: 0.75rem 0 0;
    color: #44576c;
    line-height: 1.65;
}

.plan-workspace-pdf-viewport,
.plan-workspace-pdf-surface,
.plan-workspace-stage-host,
.plan-workspace-stage-host canvas {
    display: block;
    background: #ffffff;
}

.plan-workspace-pdf-viewport {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 1rem;
    overflow: hidden;
    background: rgba(238, 244, 248, 0.84);
}

.plan-workspace-pdf-surface {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.plan-workspace-loading-notice {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
        linear-gradient(180deg, rgba(244, 249, 255, 0.84), rgba(232, 240, 248, 0.92)),
        radial-gradient(circle at 50% 18%, rgba(46, 127, 198, 0.12), transparent 34%);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.plan-workspace-loading-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.9rem;
    min-width: min(25rem, 100%);
    max-width: 32rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(159, 187, 218, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 32px rgba(27, 58, 93, 0.12);
}

.plan-workspace-loading-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #2e7fc6;
    border-right-color: transparent;
    border-radius: 999px;
    animation: spinner-rotate 0.65s linear infinite;
}

.plan-workspace-loading-copy strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #17395c;
}

.plan-workspace-loading-copy p {
    margin: 0.22rem 0 0;
    font-size: 0.82rem;
    color: #4a6077;
}

.plan-workspace-stage-host {
    position: relative;
    width: 100%;
    height: 100%;
}

.plan-workspace-stage-host > div {
    width: 100% !important;
    height: 100% !important;
}

.plan-workspace-pdf-viewport.is-dragging {
    cursor: grabbing;
}

.plan-workspace-pdf-viewport.is-calibrating,
.plan-workspace-pdf-viewport.is-calibrating * {
    cursor: crosshair;
}

.plan-workspace-pdf-viewport.is-measuring,
.plan-workspace-pdf-viewport.is-measuring * {
    cursor: crosshair;
}

.plan-workspace-pdf-viewport.is-dragging,
.plan-workspace-pdf-viewport.is-dragging * {
    user-select: none;
}

.plan-workspace-stage-host canvas {
    box-shadow: none;
}

.plan-workspace-markup-text-editor {
    position: absolute;
    z-index: 5;
    min-width: 9rem;
    max-width: 18rem;
    min-height: 2.2rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgba(15, 108, 189, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    font: 700 0.95rem/1.4 'Space Grotesk', sans-serif;
    resize: none;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.plan-workspace-markup-text-editor:focus {
    outline: 2px solid rgba(15, 108, 189, 0.18);
    outline-offset: 0;
}

.plan-workspace-notes-panel {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .hero-panel,
    .dashboard-layout,
    .dashboard-project-header,
    .dashboard-heading,
    .dashboard-empty-state,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-project-header {
        display: grid;
    }

    .plan-workspace-notes-grid,
    .plan-workspace-panel-head,
    .plan-workspace-stage-toolbar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .plan-workspace-toolbar-dock {
        position: static;
    }

    .plan-workspace-toolbar-stack {
        justify-items: stretch;
    }

    .plan-workspace-stage-meta {
        flex: 0 1 auto;
        min-width: 0;
        margin-inline-end: 0;
        padding-inline-end: 0;
        border-inline-end: 0;
    }

    .plan-workspace-save-status {
        inline-size: auto;
        min-inline-size: 15ch;
        max-inline-size: none;
    }

    .plan-workspace-toolbar-row {
        justify-content: stretch;
    }

    .plan-workspace-toolbar-group {
        width: 100%;
    }

    .plan-workspace-toolbar-group + .plan-workspace-toolbar-group {
        margin-inline-start: 0;
        padding-inline-start: 0;
        padding-block-start: 0.55rem;
    }

    .plan-workspace-toolbar-group + .plan-workspace-toolbar-group::before {
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        width: auto;
        height: 1px;
    }

    .plan-workspace-page-control,
    .plan-workspace-zoom-control {
        justify-content: stretch;
    }

    .plan-workspace-stage {
        height: clamp(500px, 64vh, 760px);
    }

    .plan-workspace-stage {
        margin-top: 0.85rem;
    }

    .plan-workspace-surface {
        position: static;
        width: 100%;
        max-width: none;
        max-height: none;
        margin-top: 0.75rem;
        transform: none;
    }

    .plan-workspace-calibration-panel {
        grid-template-columns: 1fr;
    }

    .plan-workspace-layer-panel,
    .plan-workspace-layer-grid,
    .plan-workspace-measurement-panel,
    .plan-workspace-measurement-grid {
        grid-template-columns: 1fr;
    }

    .plan-workspace-layer-field-row {
        grid-template-columns: 1fr;
    }

    .plan-workspace-stage-overlay-stack {
        position: static;
        width: 100%;
        margin: 0.85rem 0.85rem 0;
    }

    .plan-workspace-summary-list {
        display: grid;
        gap: 0.45rem;
    }

    .plan-workspace-header-actions {
        justify-content: stretch;
    }

    .plan-workspace-actions-menu {
        width: 100%;
    }

    .plan-workspace-actions-menu > summary {
        width: 100%;
    }

    .plan-workspace-actions-menu-panel {
        left: 0;
        right: auto;
        width: 100%;
        min-width: 0;
    }

    .dashboard-heading-card {
        max-width: none;
        justify-self: stretch;
    }

    .hero-visual {
        order: -1;
    }

    .hero-metrics,
    .info-band,
    .project-grid,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .app-page .dashboard-sidebar {
        position: static;
    }

    .dashboard-sidebar-meta {
        grid-template-columns: 1fr;
    }

    .app-record-table thead {
        display: none;
    }

    .app-record-table,
    .app-record-table tbody,
    .app-record-table tr,
    .app-record-table td {
        display: block;
        width: 100%;
    }

    .app-record-table tbody tr {
        padding: 0.4rem 0;
    }

    .app-record-table tbody td {
        padding: 0.55rem 1rem;
        border-top: 0;
    }

    .record-cell-actions {
        text-align: left;
    }

    .info-band article:not(:last-child)::after {
        content: '\2193';
        top: auto;
        right: 50%;
        bottom: -0.5rem;
        transform: translate(50%, 50%);
    }
}

@media (max-width: 720px) {
    main {
        padding: 0.9rem;
    }

    .plan-workspace-page {
        max-width: none;
    }

    .plan-workspace-stage,
    .plan-workspace-empty,
    .plan-workspace-pdf {
        min-height: 440px;
    }

    .plan-workspace-stage-card {
        padding: 0.75rem;
    }

    .plan-workspace-stage-toolbar {
        padding-inline: 0;
    }

    .plan-workspace-measurement-panel,
    .plan-workspace-layer-panel,
    .plan-workspace-calibration-panel {
        padding-inline: 0.85rem 2.8rem;
    }

    .plan-workspace-autocount-panel {
        padding-inline: 0.85rem 2.8rem;
    }

    .site-shell-header {
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 0.9rem 0;
    }

    .site-nav {
        justify-content: space-between;
        overflow-x: auto;
    }

    .hero-panel {
        padding-top: 2rem;
    }

    .hero-copy h1,
    .dashboard-heading h1,
    .auth-intro h1 {
        font-size: clamp(2.3rem, 14vw, 3.4rem);
    }

    .visual-frame {
        min-height: 430px;
    }
}

.plan-workspace-autocount-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.72rem 0.78rem;
    border: 1px solid #d7e2eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #eef5fb 100%);
    width: min(34rem, calc(100% - 0.2rem));
    max-height: none;
}

.plan-workspace-autocount-panel[hidden] {
    display: none;
}

.plan-workspace-autocount-panel .plan-workspace-measurement-copy h3 {
    margin: 0.1rem 0 0;
    font-size: 0.94rem;
}

.plan-workspace-autocount-panel .plan-workspace-measurement-details {
    gap: 0.5rem;
}

.plan-workspace-autocount-panel .plan-workspace-autocount-copy span {
    display: block;
    color: #56697d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-workspace-autocount-threshold-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.2rem;
}

.plan-workspace-autocount-threshold-field input[type="range"] {
    width: 100%;
}

.plan-workspace-autocount-threshold-value {
    font-weight: 600;
    color: #2c3e50;
}

.plan-workspace-autocount-metrics {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: #2c3e50;
}

.plan-workspace-autocount-metrics strong {
    font-weight: 700;
}

.plan-workspace-autocount-status {
    margin: 0.25rem 0 0;
    font-size: 0.74rem;
    color: #56697d;
    min-height: 1rem;
}

.plan-workspace-autocount-error {
    margin: 0.3rem 0 0;
    font-size: 0.74rem;
    color: #b23a3a;
}

.plan-workspace-autocount-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.plan-workspace-autocount-actions .plan-workspace-control-button {
    flex: 1;
}

.plan-workspace-autocount-actions .plan-workspace-control-button.is-primary {
    background: #1f6feb;
    color: #ffffff;
    border-color: #1f6feb;
}

.plan-workspace-autocount-actions .plan-workspace-control-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

[data-plan-workspace-autocount-toggle].is-active {
    background: #1f6feb;
    color: #ffffff;
    border-color: #1f6feb;
}

/* ============================================================
   LANDING PAGE — Atmospheric Light Theme
   All rules scoped to .landing-page to avoid affecting app/auth pages
   ============================================================ */

/* ── Page background ── */
.landing-page {
    color: #0d1f3c;
    background:
        radial-gradient(circle at 8% 12%,  rgba(25, 68, 208, 0.10) 0%, transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(107, 147, 245, 0.14) 0%, transparent 24%),
        radial-gradient(circle at 50% 106%, rgba(25, 68, 208, 0.12) 0%, transparent 32%),
        linear-gradient(180deg, #eef3ff 0%, #e8f0ff 40%, #edf2ff 100%);
}

/* Blueprint grid overlay — brand blue at low opacity */
.landing-page::before {
    background-image:
        linear-gradient(rgba(25, 68, 208, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 68, 208, 0.07) 1px, transparent 1px),
        radial-gradient(circle, rgba(25, 68, 208, 0.20) 1px, transparent 1px);
    background-size: 54px 54px, 54px 54px, 54px 54px;
    background-position: 0 0, 0 0, -1px -1px;
    -webkit-mask-image: none;
    mask-image: none;
}

/* Dots merged into ::before — ::after no longer needed */
.landing-page::after {
    display: none;
}

/* ── Header ── */
.landing-page .site-shell-header {
    padding: 0.56rem 1.25rem;
    border-bottom: 1px solid rgba(25, 68, 208, 0.10);
    background: rgba(238, 243, 255, 0.92);
    backdrop-filter: blur(24px);
}

.landing-page .site-brand {
    color: #0d1f3c;
}

.landing-page .site-brand-mark {
    width: 48px;
    height: 48px;
}

.landing-page .site-nav {
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    gap: 0.5rem;
}

.landing-page .site-nav a {
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(38, 119, 230, 0.4);
    background: linear-gradient(180deg, #f7fbff, #e4f2ff);
    box-shadow: 0 10px 28px rgba(22, 125, 227, 0.2);
    color: #111111;
    font-size: 0.88rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.landing-page .site-nav a:hover {
    border-color: rgba(38, 119, 230, 0.58);
    background: linear-gradient(180deg, #eef7ff, #d8ebff);
    box-shadow: 0 14px 34px rgba(22, 125, 227, 0.28);
    color: #111111;
    transform: translateY(-1px);
}

.landing-page .site-nav a.site-nav-link-signup {
    border-color: rgba(14, 92, 214, 0.42);
    background: linear-gradient(135deg, #5fb3ff 0%, #2f7df5 52%, #16a3d7 100%);
    box-shadow: 0 14px 36px rgba(22, 125, 227, 0.38);
}

.landing-page .site-nav a.site-nav-link-signup:hover {
    border-color: rgba(14, 92, 214, 0.5);
    background: linear-gradient(135deg, #72beff 0%, #3e8bf8 52%, #20addf 100%);
    box-shadow: 0 18px 44px rgba(22, 125, 227, 0.5);
}

.landing-page .site-nav a.site-nav-pill {
    color: #111111;
}

/* ── Main — above grid overlay ── */
.landing-page main {
    position: relative;
    z-index: 1;
    padding: 0;
}

/* ── Hero panel ── */
.landing-page .hero-panel {
    padding: 1.25rem 1.25rem 2.5rem;
    gap: 2.5rem;
}

/* ── Eyebrow ── */
.landing-page .eyebrow {
    border-color: rgba(25, 68, 208, 0.25);
    color: #1944D0;
    background: rgba(25, 68, 208, 0.07);
}

/* ── h1 ── */
.landing-page .hero-copy h1 {
    margin: 0;
    color: #22344f;
    font-size: clamp(1.95rem, 3.6vw, 3.4rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.landing-page .hero-copy .h1-accent-primary {
    color: currentColor;
    -webkit-text-fill-color: currentColor;
}

.landing-page .hero-copy .h1-accent-gradient {
    color: inherit;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

/* ── Hero body text ── */
.landing-page .hero-copy > p {
    max-width: 580px;
    color: #5270a4;
    font-size: 0.95rem;
}

.landing-page .hero-copy > .eyebrow {
    margin-bottom: 0.95rem;
}

.landing-page .hero-copy > .hero-trial-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 0;
    padding: 0.62rem 0.96rem;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 18px;
    background: rgba(122, 182, 255, 0.82);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
}

.landing-page .hero-copy > .hero-demo-note {
    margin: 1rem 0 0;
    color: #5270a4;
    font-size: 0.95rem;
    line-height: 1.55;
}

.landing-page .hero-copy > .hero-demo-note a {
    color: #1944d0;
    font-weight: 700;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.landing-page .hero-offer-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 1.1rem;
    max-width: 560px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23, 74, 194, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 255, 0.96));
    box-shadow: 0 16px 34px rgba(20, 64, 167, 0.12);
}

.landing-page .hero-offer-row::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, rgba(32, 107, 233, 0), rgba(32, 107, 233, 0.24), rgba(32, 107, 233, 0));
    transform: translateX(-0.5px);
}

.landing-page .hero-offer-item {
    display: grid;
    gap: 0.3rem;
    align-content: start;
    min-height: 96px;
    padding: 0.9rem 1rem 0.95rem;
}

.landing-page .hero-offer-item-discount {
    background: linear-gradient(135deg, rgba(248, 251, 255, 0.88), rgba(235, 244, 255, 0.94));
}

.landing-page .hero-offer-label {
    display: inline-block;
    margin-bottom: 0.05rem;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4c6593;
}

.landing-page .hero-offer-price,
.landing-page .hero-offer-coupon {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: #0d1f3c;
}

.landing-page .hero-offer-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.94rem;
    line-height: 1.25;
}

.landing-page .hero-offer-price-period {
    color: #36527c;
    font-size: 0.9rem;
}

.landing-page .hero-offer-coupon {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.landing-page .hero-offer-note {
    margin: 0;
    color: #4c6593;
    font-size: 0.8rem;
    line-height: 1.45;
}

.landing-page .demo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f8fc;
    border: 1px solid rgba(25, 68, 208, 0.12);
    box-shadow: 0 8px 24px rgba(20, 64, 167, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-page .demo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(20, 64, 167, 0.16);
}

.landing-page .demo-video {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #e8f0ff;
}

.landing-page .demo-label {
    padding: 0.72rem 0.85rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1944D0;
    text-align: center;
    line-height: 1.25;
}

.landing-page .demo-section {
    padding: 3rem 1.25rem;
    background: inherit;
}

.landing-page .pricing-social-proof {
    margin-top: 1.35rem;
    margin-bottom: 2.6rem;
    padding: 0 1.25rem 0.4rem;
}

.landing-page .landing-start-steps {
    max-width: 1240px;
    margin: 0 auto 3rem;
    padding: 0 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 320px));
    justify-content: center;
}

.landing-page .landing-start-steps article {
    min-height: 100%;
}

.landing-page .landing-start-steps h2 {
    font-size: clamp(1.18rem, 1.35vw, 1.32rem);
    line-height: 1.05;
    font-weight: 600;
}

.landing-page .demo-section-intro {
    max-width: 760px;
    margin: -1rem auto 2rem;
    color: #5270a4;
    font-size: 0.96rem;
    line-height: 1.65;
}

.landing-page .landing-page-faq {
    margin-top: 0;
    margin-bottom: 5rem;
}

.landing-page .demo-container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.landing-page .demo-section h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 2rem;
    padding: 0.65rem 1.6rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: -0.02em;
    background: rgba(122, 182, 255, 0.82);
    border: 1.5px solid rgba(37, 99, 235, 0.28);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.landing-page .demo-features-list {
    list-style: none;
    margin: 0 0 3rem;
    padding: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    color: #2d3e5f;
    line-height: 1.6;
}

.landing-page .demo-features-list li {
    margin: 0.7rem 0;
    position: relative;
}

.landing-page .demo-features-list li:before {
    content: "✓ ";
    color: #2f7df5;
    font-weight: 700;
    font-size: 1.1rem;
}

.landing-page .hero-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 100%;
}

@media (max-width: 640px) {
    .landing-page .hero-demo-grid {
        grid-template-columns: 1fr;
    }
}

.landing-page .hero-offer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.24rem 0.65rem;
    border-radius: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: rgba(122, 182, 255, 0.82);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
}

.landing-page .hero-offer-badge-price {
    color: #1d4ed8;
}

.landing-page .hero-offer-badge-code {
    color: #1d4ed8;
}

/* ── Buttons ── */
.landing-page .hero-actions .button-primary,
.landing-page .hero-actions .button-secondary {
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.landing-page .hero-actions .button-primary {
    color: #111111;
    border-color: rgba(14, 92, 214, 0.42);
    background: linear-gradient(135deg, #5fb3ff 0%, #2f7df5 52%, #16a3d7 100%);
    box-shadow: 0 14px 36px rgba(22, 125, 227, 0.38);
}

.landing-page .hero-actions .button-primary:hover,
.landing-page .hero-actions .button-primary:focus-visible {
    color: #111111;
    background: linear-gradient(135deg, #72beff 0%, #3e8bf8 52%, #20addf 100%);
    box-shadow: 0 18px 44px rgba(22, 125, 227, 0.5);
    transform: translateY(-1px);
}

.landing-page .hero-actions .button-secondary {
    color: #111111;
    border-color: rgba(38, 119, 230, 0.4);
    background: linear-gradient(180deg, #f7fbff, #e4f2ff);
    box-shadow: 0 10px 28px rgba(22, 125, 227, 0.2);
}

.landing-page .hero-actions .button-secondary:hover,
.landing-page .hero-actions .button-secondary:focus-visible {
    color: #111111;
    border-color: rgba(38, 119, 230, 0.58);
    background: linear-gradient(180deg, #eef7ff, #d8ebff);
    box-shadow: 0 14px 34px rgba(22, 125, 227, 0.28);
    transform: translateY(-1px);
}

/* ── Metrics cards ── */
.landing-page .hero-metrics div {
    border-color: rgba(25, 68, 208, 0.14);
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: 0 12px 48px rgba(25, 68, 208, 0.14);
}

.landing-page .hero-metrics span {
    color: #5270a4;
}

.landing-page .hero-metrics strong {
    color: #0d1f3c;
}

/* ── Hero visual — soft outer glow ── */
.landing-page .hero-visual::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at 50% 50%, rgba(25, 68, 208, 0.10), transparent 65%);
    pointer-events: none;
    z-index: -1;
    border-radius: 60px;
}

/* Visual frame — brand blue panel */
.landing-page .visual-frame {
    border-color: rgba(25, 68, 208, 0.20);
    background:
        radial-gradient(circle at 50% 46%, rgba(46, 92, 230, 0.60), transparent 32%),
        radial-gradient(circle at 28% 72%, rgba(107, 147, 245, 0.50), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(25, 68, 208, 0.30), transparent 24%),
        linear-gradient(140deg, #2554e8 0%, #1944D0 45%, #1638b8 100%);
    box-shadow:
        0 28px 80px rgba(25, 68, 208, 0.18),
        0 0 90px rgba(25, 68, 208, 0.28),
        0 0 180px rgba(25, 68, 208, 0.12),
        inset 0 0 80px rgba(255, 255, 255, 0.06);
}

/* White blueprint grid inside visual */
.landing-page .scan-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 1;
}

.landing-page .scan-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.45) 1.5px, transparent 1.5px);
    background-size: 54px 54px;
    background-position: -1px -1px;
}

.landing-page .ts-logo-scatter {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background-image:
        url("/static/takeoffs/img/header-logo.6b019a1f35fd.svg"),
        url("/static/takeoffs/img/header-logo.6b019a1f35fd.svg"),
        url("/static/takeoffs/img/header-logo.6b019a1f35fd.svg"),
        url("/static/takeoffs/img/header-logo.6b019a1f35fd.svg"),
        url("/static/takeoffs/img/header-logo.6b019a1f35fd.svg"),
        url("/static/takeoffs/img/header-logo.6b019a1f35fd.svg"),
        url("/static/takeoffs/img/header-logo.6b019a1f35fd.svg");
    background-repeat: no-repeat;
    background-size: 98px 98px, 76px 76px, 128px 128px, 84px 84px, 108px 108px, 70px 70px, 92px 92px;
    background-position: 81% 10%, 67% 26%, 88% 41%, 74% 56%, 92% 69%, 78% 82%, 64% 90%;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.42));
}

/* ── Scan line ── */
.landing-page .scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.40) 35%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0.40) 65%, transparent 100%);
    animation: lp-scanDown 5s linear infinite;
    pointer-events: none;
}

@keyframes lp-scanDown {
    0%   { top: -2px; opacity: 0; }
    5%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ── Blueprint corner markers ── */
.landing-page .dim-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(255, 255, 255, 0.42);
    border-style: solid;
}

.landing-page .dim-corner.tl { top: 22px; left: 22px; border-width: 1px 0 0 1px; }
.landing-page .dim-corner.tr { top: 22px; right: 22px; border-width: 1px 1px 0 0; }
.landing-page .dim-corner.bl { bottom: 22px; left: 22px; border-width: 0 0 1px 1px; }
.landing-page .dim-corner.br { bottom: 22px; right: 22px; border-width: 0 1px 1px 0; }

/* ── Connections SVG ── */
.landing-page .connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── Orbits — white on blue bg ── */
.landing-page .scan-orbit {
    border-color: rgba(255, 255, 255, 0.28);
}

.landing-page .orbit-a {
    inset: 14% 15% auto auto;
    width: 290px;
    height: 290px;
}

.landing-page .orbit-b {
    inset: auto auto 7% 9%;
    width: 370px;
    height: 370px;
}

/* ── Nodes — white glow on blue bg ── */
.landing-page .scan-node {
    animation: lp-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 12px currentColor, 0 0 28px currentColor, 0 0 60px currentColor;
}

.landing-page .node-a {
    color: #b8d4ff;
    background: currentColor;
    top: 23%;
    left: 56%;
    width: 14px;
    height: 14px;
}

.landing-page .node-b {
    color: #fbbf24;
    background: currentColor;
    right: 21%;
    top: 37%;
    width: 11px;
    height: 11px;
    animation-delay: -1s;
}

.landing-page .node-c {
    color: #ffffff;
    background: currentColor;
    left: 25%;
    bottom: 27%;
    width: 13px;
    height: 13px;
    animation-delay: -2s;
}

@keyframes lp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.65); }
}

/* ── Node labels ── */
.landing-page .node-label {
    position: absolute;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.64rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.landing-page .node-label.la { top: calc(23% - 20px); left: 56%; }
.landing-page .node-label.lb { right: 21%; top: calc(37% + 18px); }
.landing-page .node-label.lc { left: 25%; bottom: calc(27% - 20px); }

/* ── Scale bar ── */
.landing-page .scale-bar {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-page .scale-bar-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.50), transparent);
    position: relative;
}

.landing-page .scale-bar-line::before,
.landing-page .scale-bar-line::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 1px;
    height: 7px;
    background: rgba(255, 255, 255, 0.50);
}

.landing-page .scale-bar-line::before { left: 0; }
.landing-page .scale-bar-line::after  { right: 0; }

/* ── Platform flow — step cards ── */
.landing-page .platform-flow {
    padding: 0 1.25rem;
    margin-bottom: 5rem;
}

.landing-page .info-band article {
    border-color: rgba(25, 68, 208, 0.14);
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: 0 12px 48px rgba(25, 68, 208, 0.14);
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.landing-page .info-band article:hover {
    border-color: rgba(25, 68, 208, 0.28);
    box-shadow: 0 28px 80px rgba(25, 68, 208, 0.18);
    transform: translateY(-2px);
}

/* Blue accent bar above step number */
.landing-page .info-band article::before {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: #1944D0;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    opacity: 0.70;
}

.landing-page .info-band span {
    color: #5270a4;
}

.landing-page .info-band h2 {
    color: #0d1f3c;
}

.landing-page .info-band p {
    color: #5270a4;
}

.landing-page .info-band article:not(:last-child)::after {
    border-color: rgba(25, 68, 208, 0.22);
    color: #1944D0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(25, 68, 208, 0.08);
}

/* ── Pain band ── */
.landing-page .pain-band {
    padding: 3rem 1.25rem 0;
    max-width: 1240px;
    margin: 0 auto;
}

.landing-page .pain-band-header {
    text-align: center;
    margin-bottom: 2rem;
}

.landing-page .section-label-red {
    display: inline-flex;
    padding: 0.28rem 0.72rem;
    border: 1px solid rgba(209, 60, 60, 0.25);
    border-radius: 999px;
    color: #c03535;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(209, 60, 60, 0.06);
}

.landing-page .pain-band-header h2 {
    margin-top: 0.7rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    color: #0d1f3c;
    letter-spacing: -0.03em;
}

.landing-page .pain-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.landing-page .pain-card {
    padding: 1.5rem;
    border: 1px solid rgba(209, 60, 60, 0.12);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(209, 60, 60, 0.06);
}

.landing-page .pain-icon {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    display: block;
}

.landing-page .pain-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: #0d1f3c;
    margin-bottom: 0.35rem;
}

.landing-page .pain-card p {
    color: #5270a4;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ── Divider ── */
.landing-page .lp-divider-arrow {
    text-align: center;
    padding: 1.75rem 0 0.75rem;
    color: #1944D0;
    font-size: 1.4rem;
    opacity: 0.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.landing-page .lp-divider-label {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.72rem;
    border: 2px solid #22a05a;
    border-radius: 999px;
    background: rgba(34, 160, 90, 0.22);
    color: #063318;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 1;
}

/* ── Solution band ── */
.landing-page .lp-solution-band {
    padding: 0.5rem 1.25rem 3rem;
    max-width: 1240px;
    margin: 0 auto;
}

.landing-page .lp-solution-header {
    text-align: center;
    margin-bottom: 2rem;
}

.landing-page .lp-solution-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    color: #0d1f3c;
    letter-spacing: -0.03em;
}

.landing-page .lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.landing-page .lp-feature-card {
    padding: 1.5rem;
    border: 1px solid rgba(25, 68, 208, 0.14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 48px rgba(25, 68, 208, 0.14);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.landing-page .lp-feature-card:hover {
    box-shadow: 0 28px 80px rgba(25, 68, 208, 0.18);
    transform: translateY(-2px);
    border-color: rgba(25, 68, 208, 0.28);
}

.landing-page .lp-feature-card::before {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: #1944D0;
    border-radius: 999px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.landing-page .lp-feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    display: block;
}

.landing-page .lp-feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: #0d1f3c;
    margin-bottom: 0.3rem;
}

.landing-page .lp-feature-card p {
    color: #5270a4;
    font-size: 0.86rem;
    line-height: 1.6;
}

/* ── Stat strip ── */
.landing-page .lp-stat-strip {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem 3.5rem;
}

.landing-page .lp-stat-strip-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid rgba(25, 68, 208, 0.14);
    border-radius: 24px;
    background: rgba(25, 68, 208, 0.08);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(25, 68, 208, 0.14);
}

.landing-page .lp-stat-item {
    padding: 1.8rem 2rem;
    background: #ffffff;
    text-align: center;
}

.landing-page .lp-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #1944D0;
    letter-spacing: -0.04em;
    line-height: 1;
}

.landing-page .lp-stat-label {
    margin-top: 0.35rem;
    color: #5270a4;
    font-size: 0.85rem;
    line-height: 1.45;
}

/* ── Steps section header ── */
.landing-page .lp-steps-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1.25rem;
}

.landing-page .section-label-blue {
    display: inline-flex;
    padding: 0.28rem 0.72rem;
    border: 1px solid rgba(25, 68, 208, 0.25);
    border-radius: 999px;
    color: #1944D0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(25, 68, 208, 0.07);
}

.landing-page .lp-steps-header h2 {
    margin-top: 0.7rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 1.7vw, 1.55rem);
    font-weight: 500;
    color: #5270a4;
    letter-spacing: -0.02em;
}

/* ── CTA stat banner ── */
.landing-page .lp-cta-band {
    max-width: 1240px;
    margin: 0 auto 5rem;
    padding: 0 1.25rem;
}

.landing-page .lp-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.5rem;
    border: 1px solid rgba(25, 68, 208, 0.18);
    border-radius: 24px;
    background: #1944D0;
    box-shadow: 0 24px 80px rgba(25, 68, 208, 0.40);
    position: relative;
    overflow: hidden;
}

.landing-page .lp-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 54px 54px;
    pointer-events: none;
}

.landing-page .lp-cta-num {
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1;
    flex-shrink: 0;
}

.landing-page .lp-cta-num sup {
    font-size: 0.5em;
    vertical-align: super;
}

.landing-page .lp-cta-copy {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.landing-page .lp-cta-copy h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.landing-page .lp-cta-copy p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.6;
}

.landing-page .lp-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.6rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.landing-page .lp-cta-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ── Responsive ── */
@media (max-width: 820px) {
    .landing-page .hero-panel {
        grid-template-columns: 1fr;
        padding: 3rem 1.25rem 2rem;
    }

    .landing-page .hero-visual {
        display: none;
    }

    .landing-page .info-band {
        grid-template-columns: 1fr 1fr;
    }

    .landing-page .info-band article:not(:last-child)::after {
        display: none;
    }

    .landing-page .pain-cards,
    .landing-page .lp-feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-page .lp-stat-strip-inner {
        grid-template-columns: 1fr;
    }

    .landing-page .lp-cta-card {
        flex-direction: column;
        text-align: center;
    }

    .landing-page .landing-start-steps {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 560px) {
    .landing-page .pain-cards,
    .landing-page .lp-feature-grid {
        grid-template-columns: 1fr;
    }

    .landing-page .landing-start-steps {
        grid-template-columns: 1fr;
    }
}


.pricing-page {
    color: #0d1f3c;
}

.pricing-shell {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem 5rem;
}

.pricing-hero {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.4rem 0 1.5rem;
}

.pricing-hero-copy {
    text-align: center;
    padding: 0 0 0.35rem;
}

.pricing-hero h1 {
    margin: 0 0 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #1b3558;
}

.pricing-accent {
    color: inherit;
}

.pricing-hero-copy > p,
.pricing-summary,
.pricing-empty-state p,
.pricing-limit-list,
.pricing-card p,
.pricing-meta {
    color: #5270a4;
}

.pricing-summary {
    max-width: 700px;
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.65;
}

.pricing-social-proof,
.pricing-faq {
    max-width: 1040px;
    margin: 0 auto 1.15rem;
}

.pricing-social-proof {
    padding: 0.2rem 0 0.3rem;
}

.pricing-faq {
    margin-top: 1.35rem;
    padding: 1.3rem;
    border: 1px solid rgba(25, 68, 208, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 32px rgba(17, 44, 122, 0.06);
}

.pricing-section-heading {
    max-width: 760px;
    margin: 0 auto 1.15rem;
    text-align: center;
}

.pricing-section-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.pricing-section-heading h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.1;
    color: #0d1f3c;
}

.pricing-section-heading p:last-child {
    margin: 0.65rem auto 0;
    color: #5270a4;
    line-height: 1.65;
}

.pricing-social-proof-copy {
    max-width: none;
    margin: 0 auto 1rem;
    text-align: center;
    color: #5270a4;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.5;
    white-space: nowrap;
}

.pricing-logo-strip {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.pricing-logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.4rem;
    color: rgba(13, 31, 60, 0.5);
    white-space: nowrap;
}

.pricing-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.95rem, 1.7vw, 1.28rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pricing-logo-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.02rem;
}

.pricing-logo-subtext {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(13, 31, 60, 0.38);
}

.pricing-logo-mark,
.pricing-logo-seal,
.pricing-logo-badge {
    flex: 0 0 auto;
}

.pricing-logo-mark {
    position: relative;
    display: inline-block;
    width: 1.65rem;
    height: 1.65rem;
}

.pricing-logo-mark-peak::before,
.pricing-logo-mark-peak::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: currentColor;
}

.pricing-logo-mark-peak::before {
    top: 0.12rem;
    width: 1.18rem;
    height: 0.82rem;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.pricing-logo-mark-peak::after {
    bottom: 0.08rem;
    width: 0.34rem;
    height: 0.92rem;
    border-radius: 999px;
}

.pricing-logo-seal {
    display: grid;
    place-items: center;
    width: 1.72rem;
    height: 1.72rem;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.pricing-logo-badge {
    display: grid;
    place-items: center;
    min-width: 2.1rem;
    height: 1.62rem;
    padding: 0 0.45rem;
    border: 1.5px solid currentColor;
    border-radius: 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-family: 'Space Grotesk', sans-serif;
}

.pricing-logo-rule {
    display: inline-block;
    width: 1.35rem;
    height: 1px;
    background: currentColor;
    opacity: 0.35;
}

.pricing-logo-wordmark {
    font-size: clamp(0.98rem, 1.75vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.015em;
    color: inherit;
}

.pricing-logo-lockup-ironridge .pricing-logo-text {
    letter-spacing: 0.04em;
}

.pricing-logo-lockup-copperline {
    gap: 0.45rem;
}

.pricing-logo-lockup-copperline .pricing-logo-wordmark {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.32rem);
    letter-spacing: 0;
}

.pricing-logo-lockup-copperline .pricing-logo-subtext {
    letter-spacing: 0.08em;
    text-transform: none;
}

.pricing-logo-lockup-northcoil .pricing-logo-text {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.pricing-logo-lockup-timberline {
    position: relative;
    padding-left: 0.95rem;
}

.pricing-logo-lockup-timberline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.4rem;
    height: 1.7rem;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, currentColor 0%, rgba(13, 31, 60, 0.18) 100%);
}

.pricing-logo-lockup-timberline .pricing-logo-text {
    font-size: clamp(0.88rem, 1.45vw, 1.08rem);
    letter-spacing: 0.12em;
}

.pricing-logo-lockup-oakframe {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
}

.pricing-logo-lockup-oakframe .pricing-logo-wordmark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.08rem, 1.8vw, 1.38rem);
    letter-spacing: 0.01em;
}

.pricing-logo-lockup-oakframe .pricing-logo-subtext {
    letter-spacing: 0.18em;
}

.pricing-logo-lockup-stonepath .pricing-logo-badge {
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.pricing-hero-copy > .pricing-hero-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: fit-content;
    padding: 0.82rem 1.15rem;
    max-width: 720px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 18px;
    background: rgba(122, 182, 255, 0.82);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
}

.pricing-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.pricing-page .button-primary,
.pricing-page .button-secondary {
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.pricing-page .button-primary {
    color: #111111;
    border-color: rgba(14, 92, 214, 0.42);
    background: linear-gradient(135deg, #5fb3ff 0%, #2f7df5 52%, #16a3d7 100%);
    box-shadow: 0 14px 36px rgba(22, 125, 227, 0.38);
}

.pricing-page .button-primary:hover,
.pricing-page .button-primary:focus-visible {
    color: #111111;
    background: linear-gradient(135deg, #72beff 0%, #3e8bf8 52%, #20addf 100%);
    box-shadow: 0 18px 44px rgba(22, 125, 227, 0.5);
    transform: translateY(-1px);
}

.pricing-page .button-secondary {
    color: #111111;
    border-color: rgba(38, 119, 230, 0.4);
    background: linear-gradient(180deg, #f7fbff, #e4f2ff);
    box-shadow: 0 10px 28px rgba(22, 125, 227, 0.2);
}

.pricing-page .button-secondary:hover,
.pricing-page .button-secondary:focus-visible {
    color: #111111;
    border-color: rgba(38, 119, 230, 0.58);
    background: linear-gradient(180deg, #eef7ff, #d8ebff);
    box-shadow: 0 14px 34px rgba(22, 125, 227, 0.28);
    transform: translateY(-1px);
}

.pricing-billing-toggle-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    max-width: 420px;
    margin: 0;
    padding: 0;
}

.pricing-billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
}

.pricing-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.95rem;
    max-width: 520px;
    margin: 0 auto 1.1rem;
    text-align: center;
}

.pricing-billing-toggle-option {
    margin: 0;
    color: #7a95bf;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1;
    transition: color 0.2s ease;
}

.pricing-billing-toggle-option.is-active {
    color: #0d1f3c;
}

.pricing-billing-toggle-note {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: #2563eb;
}

.pricing-checkout-note {
    margin: 0;
    max-width: 420px;
    color: #6783b2;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-billing-switch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.pricing-billing-switch-input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
}

.pricing-billing-switch-track {
    position: relative;
    display: block;
    width: 3.2rem;
    height: 1.9rem;
    border-radius: 999px;
    background: #b9cadf;
    box-shadow: inset 0 1px 3px rgba(13, 31, 60, 0.14);
    transition: background 0.2s ease;
}

.pricing-billing-switch-track::after {
    content: '';
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 31, 60, 0.18);
    transition: transform 0.2s ease;
}

.pricing-billing-switch-input:checked + .pricing-billing-switch-track {
    background: linear-gradient(135deg, #8bc8ff 0%, #4d96ff 100%);
}

.pricing-billing-switch-input:checked + .pricing-billing-switch-track::after {
    transform: translateX(1.3rem);
}

.pricing-billing-switch-input:focus-visible + .pricing-billing-switch-track {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 3px;
}

.pricing-faq-list {
    display: grid;
    gap: 0.85rem;
}

.pricing-faq-item {
    border: 1px solid rgba(25, 68, 208, 0.14);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(17, 44, 122, 0.04);
}

.pricing-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.15rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0d1f3c;
}

.pricing-faq-item summary::-webkit-details-marker {
    display: none;
}

.pricing-faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-size: 1.15rem;
    line-height: 1;
}

.pricing-faq-item[open] summary::after {
    content: '-';
}

.pricing-faq-item p {
    margin: 0;
    padding: 0 1.15rem 1.1rem;
    color: #5270a4;
    line-height: 1.65;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.pricing-card,
.pricing-empty-state {
    border: 1px solid rgba(25, 68, 208, 0.15);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 44, 122, 0.08);
}

.pricing-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.7rem;
    position: relative;
    overflow: visible;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pricing-card::before {
    content: none;
}

.pricing-card::after {
    content: none;
}

.pricing-card.is-featured {
    border-color: rgba(25, 68, 208, 0.28);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(25, 68, 208, 0.12);
}

.pricing-card.is-featured::before {
    content: none;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(25, 68, 208, 0.24);
    box-shadow: 0 18px 36px rgba(17, 44, 122, 0.12);
}

.pricing-card h2 {
    margin: 0 0 0.45rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1.45rem;
    color: #0d1f3c;
}

.pricing-price-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 1.4rem 0 0.35rem;
}

.pricing-price {
    font-family: 'Manrope', sans-serif;
    font-size: 2.55rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #0d1f3c;
}

.pricing-price-period {
    color: #5270a4;
    font-size: 0.92rem;
    padding-bottom: 0.35rem;
}

.pricing-meta {
    margin: 0 0 1.2rem;
    min-height: 2.7rem;
    font-size: 0.94rem;
}

.pricing-limit-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: grid;
    gap: 0.7rem;
}

.pricing-limit-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pricing-limit-list li::before {
    content: '\2713';
    display: inline-grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    color: #22c55e;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
}

.pricing-card-actions {
    margin-top: auto;
    padding-top: 1.5rem;
}

.pricing-empty-state {
    padding: 2rem;
    text-align: center;
}

.pricing-empty-state h2 {
    margin: 0 0 0.65rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #0d1f3c;
}

@media (max-width: 1080px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pricing-hero h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }
}

@media (max-width: 720px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-shell {
        padding-bottom: 4rem;
    }

    .pricing-controls {
        max-width: none;
    }

    .pricing-billing-toggle-stack {
        max-width: none;
    }

    .pricing-billing-toggle {
        gap: 0.65rem;
    }

    .pricing-social-proof,
    .pricing-faq,
    .pricing-card,
    .pricing-empty-state {
        border-radius: 22px;
    }

    .pricing-logo-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.8rem 1rem;
    }

    .pricing-logo-text {
        font-size: 0.98rem;
    }

    .pricing-social-proof-copy {
        white-space: normal;
    }

    .pricing-hero-side,
    .pricing-hero-copy {
        padding: 0 0 0.35rem;
    }

    .pricing-empty-state,
    .pricing-card {
        padding: 1.35rem;
    }

    .pricing-hero-copy > .pricing-hero-notice {
        display: flex;
        width: 100%;
        max-width: none;
        font-size: 0.96rem;
    }
}


/* ============================================================
   AUTH + LEGAL PAGES — Atmospheric Light Theme
   Mirrors the landing-page light theme for visual consistency
   ============================================================ */

/* ── Page background — richer atmospheric orbs ── */
.auth-page,
.legal-page {
    color: #0d1f3c;
    background:
        /* Strong top-left blue orb */
        radial-gradient(ellipse at 6% 8%,   rgba(25, 68, 208, 0.22) 0%, transparent 32%),
        /* Top-right softer orb */
        radial-gradient(ellipse at 94% 6%,  rgba(107, 147, 245, 0.20) 0%, transparent 28%),
        /* Bottom horizon glow — the key atmospheric effect */
        radial-gradient(ellipse at 50% 112%, rgba(25, 68, 208, 0.28) 0%, transparent 42%),
        /* Mid-page depth wash */
        radial-gradient(ellipse at 78% 55%,  rgba(46, 92, 230, 0.10) 0%, transparent 26%),
        linear-gradient(180deg, #eaf1ff 0%, #e4edff 45%, #eaf0ff 100%);
}

/* Blueprint grid overlay — slightly bolder lines */
.auth-page::before,
.legal-page::before {
    background-image:
        linear-gradient(rgba(25, 68, 208, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 68, 208, 0.10) 1px, transparent 1px),
        radial-gradient(circle, rgba(25, 68, 208, 0.30) 1px, transparent 1px);
    background-size: 54px 54px, 54px 54px, 54px 54px;
    background-position: 0 0, 0 0, -1px -1px;
    -webkit-mask-image: none;
    mask-image: none;
}

/* Remove separate ::after layer — dots now live in ::before */
.auth-page::after,
.legal-page::after {
    display: none;
}

/* Ensure main sits above the grid */
.auth-page main,
.legal-page main {
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.auth-page .site-shell-header,
.legal-page .site-shell-header {
    border-bottom: 1px solid rgba(25, 68, 208, 0.10);
    background: rgba(238, 243, 255, 0.92);
    backdrop-filter: blur(24px);
}

.auth-page .site-brand,
.legal-page .site-brand {
    color: #0d1f3c;
}

.auth-page .site-brand-mark,
.legal-page .site-brand-mark {
    width: 48px;
    height: 48px;
}

@media (max-width: 720px) {
    .site-brand-mark {
        width: 38px;
        height: 38px;
    }
}

.auth-page .site-nav,
.legal-page .site-nav {
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    gap: 0.5rem;
}

.auth-page .site-nav a,
.legal-page .site-nav a {
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(38, 119, 230, 0.4);
    background: linear-gradient(180deg, #f7fbff, #e4f2ff);
    box-shadow: 0 10px 28px rgba(22, 125, 227, 0.2);
    color: #111111;
    font-size: 0.88rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.auth-page .site-nav a:hover,
.legal-page .site-nav a:hover {
    border-color: rgba(38, 119, 230, 0.58);
    background: linear-gradient(180deg, #eef7ff, #d8ebff);
    box-shadow: 0 14px 34px rgba(22, 125, 227, 0.28);
    color: #111111;
    transform: translateY(-1px);
}

.auth-page .site-nav a.site-nav-pill,
.legal-page .site-nav a.site-nav-pill {
    border-color: rgba(14, 92, 214, 0.42);
    background: linear-gradient(135deg, #5fb3ff 0%, #2f7df5 52%, #16a3d7 100%);
    box-shadow: 0 14px 36px rgba(22, 125, 227, 0.38);
    color: #111111;
}

.auth-page .site-nav a.site-nav-pill:hover,
.legal-page .site-nav a.site-nav-pill:hover {
    border-color: rgba(14, 92, 214, 0.5);
    background: linear-gradient(135deg, #72beff 0%, #3e8bf8 52%, #20addf 100%);
    box-shadow: 0 18px 44px rgba(22, 125, 227, 0.5);
    color: #111111;
}

/* ── Auth shell layout ── */
.auth-page .auth-shell {
    padding-top: 4.5rem;
    gap: 2.5rem;
}

/* ── Auth intro text ── */
.auth-page .auth-intro h1 {
    color: #0d1f3c;
    line-height: 0.96;
}

.auth-page .auth-intro p {
    color: #5270a4;
}

.auth-page .eyebrow {
    border-color: rgba(25, 68, 208, 0.25);
    color: #1944D0;
    background: rgba(25, 68, 208, 0.07);
}

/* ── Auth card — glowing aura ── */
.auth-page .auth-card {
    border: 1px solid rgba(25, 68, 208, 0.18);
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 12px 48px rgba(25, 68, 208, 0.18),
        0 0 80px rgba(25, 68, 208, 0.12),
        0 0 160px rgba(25, 68, 208, 0.07);
}

/* ── Buttons ── */
.auth-page .button-primary,
.auth-page .auth-submit {
    color: #ffffff;
    background: #1944D0;
    box-shadow: 0 8px 28px rgba(25, 68, 208, 0.38);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.auth-page .button-primary:hover,
.auth-page .auth-submit:hover {
    background: #2e5ce6;
    box-shadow: 0 12px 40px rgba(25, 68, 208, 0.52);
    transform: translateY(-1px);
}

.auth-page .button-primary:disabled,
.auth-page .auth-submit:disabled {
    background: #a0b4e8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
    transform: none;
}

.auth-page .button-secondary {
    color: #1944D0;
    border-color: rgba(25, 68, 208, 0.22);
    background: rgba(25, 68, 208, 0.04);
}

/* ── Form fields ── */
.auth-page .form-field {
    color: #0d1f3c;
}

.auth-page .form-field input:not([type='checkbox']):not([type='file']) {
    border-color: rgba(25, 68, 208, 0.18);
    border-radius: 14px;
    background: #ffffff;
    color: #0d1f3c;
}

.auth-page [data-signup-form] input[name='email'],
.auth-page [data-signup-form] input[name='first_name'],
.auth-page [data-signup-form] input[name='last_name'],
.auth-page [data-signup-form] input[name='company_name'],
.auth-page [data-signup-form] input[name='password1'],
.auth-page [data-signup-form] input[name='password2'] {
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
}

.auth-page .form-field input:not([type='checkbox']):not([type='file'])::placeholder {
    color: #8fa5c8;
}

.auth-page .form-field input:not([type='checkbox']):not([type='file']):focus {
    border-color: rgba(25, 68, 208, 0.60);
    box-shadow: 0 0 0 4px rgba(25, 68, 208, 0.10);
}

.auth-page .invitation-locked-field input[disabled] {
    border-color: rgba(25, 68, 208, 0.18);
    background: linear-gradient(180deg, #f7faff 0%, #f1f6ff 100%);
    color: #27456a;
    cursor: default;
    opacity: 1;
    -webkit-text-fill-color: #27456a;
}

.auth-page .password-toggle {
    color: #5270a4;
}

.auth-page .password-toggle:hover {
    color: #0d1f3c;
    background: rgba(25, 68, 208, 0.05);
}

/* ── Checkbox ── */
.auth-page .form-field-checkbox {
    color: #0d1f3c;
}

.auth-page .form-field-checkbox input[type='checkbox'] {
    accent-color: #1944D0;
}

.auth-page .form-field-checkbox a {
    color: #1944D0;
}

/* ── Auth note / meta ── */
.auth-page .auth-note {
    color: #0d1f3c;
}

.auth-page .field-help,
.auth-page .auth-meta {
    color: #5270a4;
}

.auth-page .auth-meta a {
    color: #1944D0;
}

/* ── Legal pages ── */
.legal-page .eyebrow {
    border-color: rgba(25, 68, 208, 0.25);
    color: #1944D0;
    background: rgba(25, 68, 208, 0.07);
}

.legal-shell {
    position: relative;
    z-index: 1;
}

.legal-page .legal-card {
    border: 1px solid rgba(25, 68, 208, 0.18);
    background: #ffffff;
    box-shadow:
        0 12px 48px rgba(25, 68, 208, 0.18),
        0 0 80px rgba(25, 68, 208, 0.12),
        0 0 160px rgba(25, 68, 208, 0.07);
}

.legal-page .legal-card h1 {
    color: #0d1f3c;
}

.legal-page .legal-meta {
    color: #5270a4;
}

.legal-page .legal-section h2 {
    color: #0d1f3c;
}

.legal-page .legal-section p,
.legal-page .legal-section li {
    color: #5270a4;
}

.legal-page .legal-note {
    border-color: rgba(25, 68, 208, 0.18);
    background: rgba(25, 68, 208, 0.05);
    color: #0d1f3c;
}

.legal-page:not(.pricing-page) .button-primary {
    color: #ffffff;
    background: #1944D0;
    box-shadow: 0 8px 28px rgba(25, 68, 208, 0.38);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.legal-page:not(.pricing-page) .button-primary:hover {
    background: #2e5ce6;
    box-shadow: 0 12px 40px rgba(25, 68, 208, 0.52);
    transform: translateY(-1px);
}

.legal-page:not(.pricing-page) .button-secondary {
    color: #1944D0;
    border-color: rgba(25, 68, 208, 0.22);
    background: rgba(25, 68, 208, 0.04);
}

.how-it-works-flow {
    display: grid;
    gap: 1.7rem;
}

.how-it-works-demo-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.15rem;
    align-items: center;
    margin: 1.5rem 0 1.8rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(25, 68, 208, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(46, 92, 230, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(25, 68, 208, 0.05), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 48px rgba(25, 68, 208, 0.12);
}

.how-it-works-demo-copy {
    display: grid;
    gap: 0.7rem;
}

.how-it-works-demo-copy h2 {
    margin: 0;
    color: #0d1f3c;
    font-size: clamp(1.3rem, 2vw, 1.55rem);
}

.how-it-works-demo-copy p {
    margin: 0;
    color: #5270a4;
}

.how-it-works-step {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 1.35rem;
    align-items: start;
}

.how-it-works-step + .how-it-works-step {
    margin-top: 0;
    padding-top: 1.7rem;
    border-top: 1px solid rgba(25, 68, 208, 0.12);
}

.how-it-works-step-copy {
    display: grid;
    gap: 0.72rem;
}

.how-it-works-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(25, 68, 208, 0.08);
    color: #1944D0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.how-it-works-shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(25, 68, 208, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(230, 238, 255, 0.7), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 48px rgba(25, 68, 208, 0.16);
}

.how-it-works-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.how-it-works-shot figcaption {
    padding: 0.95rem 1.1rem 1.05rem;
    border-top: 1px solid rgba(25, 68, 208, 0.1);
    color: #5270a4;
    font-size: 0.92rem;
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.92);
}

.demo-video-modal {
    width: min(100%, 960px);
    padding: 1.2rem;
}

.demo-video-shell {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid rgba(25, 68, 208, 0.16);
    border-radius: 20px;
    background: #0b1732;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.demo-video-player {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #0b1732;
}

@media (max-width: 980px) {
    .how-it-works-demo-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .how-it-works-step {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .demo-video-modal {
        padding: 1rem;
    }
}

.how-it-works-controls {
    margin-top: 1.7rem;
    padding-top: 1.7rem;
    border-top: 1px solid rgba(25, 68, 208, 0.12);
}

.how-it-works-controls > h2 {
    margin-bottom: 0.4rem;
}

.how-it-works-controls > p {
    margin-bottom: 1.4rem;
    color: #5270a4;
}

.how-it-works-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.how-it-works-control-item {
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(25, 68, 208, 0.14);
    border-radius: 14px;
    background: rgba(25, 68, 208, 0.03);
}

.how-it-works-control-item h3 {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1944D0;
}

.how-it-works-control-item p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #3a4a6b;
}

.how-it-works-control-item kbd {
    display: inline-block;
    padding: 0.1em 0.4em;
    border: 1px solid rgba(25, 68, 208, 0.25);
    border-radius: 5px;
    background: rgba(25, 68, 208, 0.06);
    font-size: 0.85em;
    font-family: inherit;
    color: #1944D0;
    white-space: nowrap;
}
