/* Public ProfoundPOS landing and sign-in surfaces only. */
:root {
    --auth-ink: #071527;
    --auth-navy: #08172e;
    --auth-navy-soft: #102540;
    --auth-blue: var(--pp-info, #2563a6);
    --auth-teal: var(--pp-accent, #0f8588);
    --auth-violet: #8069e8;
    --auth-muted: #9eb0c6;
    --auth-line: rgba(187, 211, 237, 0.17);
    --auth-glass: rgba(12, 30, 54, 0.66);
    --auth-white: #f8fbff;
}

body.platform-landing-page,
body.auth-login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    color: var(--auth-white);
    background:
        radial-gradient(circle at 10% 12%, rgba(32, 184, 173, 0.16), transparent 29rem),
        radial-gradient(circle at 87% 18%, rgba(59, 130, 246, 0.17), transparent 32rem),
        radial-gradient(circle at 72% 92%, rgba(128, 105, 232, 0.12), transparent 27rem),
        linear-gradient(135deg, #06111f 0%, #08172c 48%, #0b1730 100%);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    isolation: isolate;
}

body.platform-landing-page::before,
body.auth-login-page::before {
    display: none;
}

.auth-ambient,
.auth-grid {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.auth-ambient {
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.16;
}

.auth-ambient-one {
    top: -18rem;
    left: -10rem;
    background: #36cfc1;
}

.auth-ambient-two {
    right: -13rem;
    bottom: -20rem;
    background: #6574ed;
}

.auth-grid {
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.public-auth-header {
    width: min(1240px, calc(100% - 48px));
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(184, 211, 239, 0.12);
}

.public-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    font-size: 1.04rem;
    font-weight: 820;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.public-auth-brand img {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 9px 26px rgba(0, 0, 0, 0.24);
}

.public-auth-header-note,
.back-to-platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(227, 239, 252, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.header-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5fd0b8;
    box-shadow: 0 0 0 5px rgba(95, 208, 184, 0.1);
}

.back-to-platform {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(184, 211, 239, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.back-to-platform svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-to-platform:hover {
    color: #ffffff;
    border-color: rgba(184, 211, 239, 0.3);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.platform-landing-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.platform-hero {
    min-height: min(700px, calc(100vh - 76px));
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
    gap: clamp(44px, 7vw, 92px);
    align-items: center;
    padding: 64px 0 78px;
}

.platform-hero-copy {
    position: relative;
    z-index: 2;
}

.auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: #9fdad5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-eyebrow > span {
    width: 22px;
    height: 1px;
    background: #53c9bd;
    box-shadow: 0 0 12px rgba(83, 201, 189, 0.5);
}

.platform-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.65rem, 5vw, 4.8rem);
    font-weight: 760;
    line-height: 1.01;
    letter-spacing: -0.057em;
}

.platform-hero h1 span {
    display: block;
}

.platform-hero h1 .hero-product-name {
    margin-bottom: 12px;
    color: #82dfd3;
    font-size: 0.28em;
    font-weight: 830;
    letter-spacing: -0.02em;
}

.platform-hero-summary {
    max-width: 610px;
    margin: 24px 0 0;
    color: #aec0d4;
    font-size: clamp(0.98rem, 1.35vw, 1.08rem);
    line-height: 1.7;
}

.edition-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
    color: #e8f2fc;
    font-size: 0.78rem;
    font-weight: 750;
}

.edition-list i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #5a7088;
}

.platform-landing-page .launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 32px;
}

.platform-landing-page .launch-primary,
.platform-landing-page .launch-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.platform-landing-page .launch-primary {
    color: #061b25;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: linear-gradient(135deg, #9ce5db, #6dd5c8);
    box-shadow: 0 13px 34px rgba(44, 186, 173, 0.19), inset 0 1px rgba(255, 255, 255, 0.5);
}

.platform-landing-page .launch-primary svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.platform-landing-page .launch-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(44, 186, 173, 0.25), inset 0 1px rgba(255, 255, 255, 0.58);
}

.platform-landing-page .launch-primary:hover svg {
    transform: translateX(3px);
}

.platform-landing-page .launch-secondary {
    width: auto;
    margin: 0;
    color: #eaf5ff;
    border: 1px solid rgba(184, 211, 239, 0.2);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.platform-landing-page .launch-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 211, 239, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.platform-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 26px;
    color: #7f94ab;
    font-size: 0.7rem;
    font-weight: 650;
}

.platform-assurances span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.platform-assurances svg {
    width: 13px;
    fill: none;
    stroke: #62cfc1;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.workspace-visual {
    position: relative;
    min-width: 0;
    perspective: 1200px;
}

.workspace-visual::before {
    content: "";
    position: absolute;
    inset: 13% 3% 5% 8%;
    z-index: -1;
    border-radius: 38px;
    background: linear-gradient(135deg, rgba(31, 171, 160, 0.24), rgba(67, 110, 210, 0.2));
    filter: blur(52px);
}

.workspace-window {
    overflow: hidden;
    border: 1px solid rgba(190, 216, 242, 0.2);
    border-radius: 19px;
    background: rgba(11, 27, 48, 0.77);
    box-shadow: 0 38px 80px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    transform: rotateY(-2deg) rotateX(1deg);
    transform-origin: center;
}

.workspace-window-bar {
    height: 51px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(184, 211, 239, 0.12);
    background: rgba(255, 255, 255, 0.035);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(179, 204, 229, 0.35);
}

.window-controls span:first-child { background: #c98580; }
.window-controls span:nth-child(2) { background: #d6b879; }
.window-controls span:last-child { background: #6eb7a5; }

.window-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8fa5bd;
    font-size: 0.65rem;
    font-weight: 700;
}

.window-title span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5ac4b6;
}

.window-avatar {
    justify-self: end;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #dce9f6;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.65rem;
    font-weight: 800;
}

.workspace-window-body {
    min-height: 415px;
    display: grid;
    grid-template-columns: 53px minmax(0, 1fr);
}

.workspace-mini-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 21px;
    border-right: 1px solid rgba(184, 211, 239, 0.1);
    background: rgba(3, 13, 27, 0.36);
}

.workspace-mini-sidebar span {
    width: 18px;
    height: 5px;
    border-radius: 6px;
    background: rgba(165, 190, 216, 0.22);
}

.workspace-mini-sidebar .mini-brand {
    width: 23px;
    height: 23px;
    margin-bottom: 8px;
    border-radius: 7px;
    background: linear-gradient(135deg, #60cfc2, #4d80dc);
}

.workspace-mini-sidebar .active {
    height: 18px;
    background: rgba(95, 207, 194, 0.78);
    box-shadow: 0 0 0 7px rgba(95, 207, 194, 0.08);
}

.workspace-dashboard {
    min-width: 0;
    padding: 21px;
}

.workspace-dashboard-head,
.visual-card-heading,
.chart-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.workspace-dashboard-head div {
    display: grid;
    gap: 3px;
}

.workspace-dashboard-head small,
.visual-card-heading small {
    color: #6f879f;
    font-size: 0.52rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.workspace-dashboard-head strong {
    color: #eaf3fc;
    font-size: 0.86rem;
    letter-spacing: -0.015em;
}

.workspace-dashboard-head > span {
    padding: 5px 8px;
    border: 1px solid rgba(184, 211, 239, 0.13);
    border-radius: 7px;
    color: #91a6bc;
    font-size: 0.55rem;
}

.workspace-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 17px;
}

.workspace-metrics article,
.workspace-flow-card,
.workspace-chart-card {
    border: 1px solid rgba(184, 211, 239, 0.11);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.workspace-metrics article {
    min-width: 0;
    padding: 12px;
}

.metric-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 7px;
}

.metric-icon svg {
    width: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-icon.teal { color: #76dacd; background: rgba(32, 184, 173, 0.12); }
.metric-icon.blue { color: #81adf1; background: rgba(59, 130, 246, 0.12); }
.metric-icon.violet { color: #aa99ec; background: rgba(128, 105, 232, 0.12); }

.workspace-metrics small,
.workspace-metrics strong,
.workspace-metrics em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-metrics small {
    color: #7f95aa;
    font-size: 0.53rem;
}

.workspace-metrics strong {
    margin-top: 5px;
    color: #eef6fd;
    font-size: 0.78rem;
}

.workspace-metrics em {
    margin-top: 4px;
    color: #638179;
    font-size: 0.5rem;
    font-style: normal;
}

.workspace-lower-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 9px;
    margin-top: 9px;
}

.workspace-flow-card,
.workspace-chart-card {
    min-height: 188px;
    padding: 13px;
}

.visual-card-heading > span {
    color: #c9d8e7;
    font-size: 0.63rem;
    font-weight: 750;
}

.visual-card-heading small {
    color: #62bdaf;
}

.flow-line {
    display: grid;
    grid-template-columns: 25px 1fr 5px;
    gap: 9px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(184, 211, 239, 0.08);
}

.flow-line:last-child { border-bottom: 0; }

.flow-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
}

.flow-icon.retail { box-shadow: inset 3px 0 #50c3b5; }
.flow-icon.van { box-shadow: inset 3px 0 #5d91e4; }
.flow-icon.flex { box-shadow: inset 3px 0 #9a81e2; }

.flow-line div {
    display: grid;
    min-width: 0;
}

.flow-line strong {
    color: #d9e6f2;
    font-size: 0.6rem;
}

.flow-line small {
    color: #6f869d;
    font-size: 0.49rem;
}

.flow-line b {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #56c2b4;
}

.visual-bars {
    height: 98px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin: 17px 0 11px;
    padding: 0 3px;
    border-bottom: 1px solid rgba(184, 211, 239, 0.09);
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(184, 211, 239, 0.05) 32px);
}

.visual-bars i {
    width: 100%;
    height: var(--bar);
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, rgba(51, 139, 203, 0.56), rgba(88, 205, 188, 0.85));
}

.chart-caption {
    align-items: flex-end;
}

.chart-caption span {
    color: #6f869d;
    font-size: 0.5rem;
}

.chart-caption strong {
    color: #cbd9e7;
    font-size: 0.57rem;
}

.workspace-visual .launch-status-card {
    width: min(330px, 72%);
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    position: absolute;
    right: -18px;
    bottom: -32px;
    z-index: 3;
    padding: 14px 16px;
    border: 1px solid rgba(196, 220, 244, 0.25);
    border-radius: 13px;
    color: #eaf4fd;
    background: rgba(14, 34, 59, 0.88);
    box-shadow: 0 21px 46px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

.workspace-visual .launch-status-dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 50%;
    background: #62d1be;
    box-shadow: 0 0 0 5px rgba(98, 209, 190, 0.1);
}

.workspace-visual .launch-status-card strong {
    display: block;
    color: #edf6ff;
    font-size: 0.71rem;
}

.workspace-visual .launch-status-card p {
    margin: 3px 0 0;
    color: #8fa5bb;
    font-size: 0.61rem;
    line-height: 1.42;
}

.platform-capabilities {
    padding: 80px 0 86px;
    border-top: 1px solid rgba(184, 211, 239, 0.11);
}

.capability-heading {
    max-width: 720px;
}

.capability-heading h2 {
    margin: 0;
    color: #f3f8fd;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 720;
    line-height: 1.13;
    letter-spacing: -0.042em;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 36px;
}

.capability-card {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 22px;
    border: 1px solid rgba(184, 211, 239, 0.13);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 20px 45px rgba(0, 0, 0, 0.08);
    transition: transform 190ms ease, border-color 190ms ease, background 190ms ease;
}

.capability-card:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 211, 239, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.capability-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 12px;
}

.capability-icon svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.capability-icon.teal { color: #60cfc1; background: rgba(32, 184, 173, 0.08); }
.capability-icon.blue { color: #79a6ea; background: rgba(59, 130, 246, 0.08); }
.capability-icon.violet { color: #a390ed; background: rgba(128, 105, 232, 0.08); }
.capability-icon.amber { color: #d5ac6b; background: rgba(218, 162, 73, 0.08); }

.capability-card h3 {
    margin: 0;
    color: #edf5fc;
    font-size: 0.95rem;
    font-weight: 760;
    letter-spacing: -0.018em;
}

.capability-card p {
    margin: 7px 0 0;
    color: #899eb4;
    font-size: 0.78rem;
    line-height: 1.55;
}

.capability-arrow {
    color: #526a81;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* Login */
.auth-login-page {
    background:
        radial-gradient(circle at 16% 50%, rgba(32, 184, 173, 0.15), transparent 31rem),
        radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.16), transparent 28rem),
        linear-gradient(135deg, #06111f 0%, #09182e 55%, #0c1932 100%);
}

.auth-login-shell {
    width: min(1080px, calc(100% - 48px));
    min-height: calc(100vh - 146px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.72fr);
    gap: clamp(52px, 8vw, 112px);
    align-items: center;
    margin: 0 auto;
    padding: 44px 0 56px;
}

.login-story {
    max-width: 520px;
}

.login-story h1 {
    max-width: 490px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 4.6vw, 4.25rem);
    font-weight: 740;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.login-story > p:not(.auth-eyebrow) {
    max-width: 470px;
    margin: 22px 0 0;
    color: #9db1c7;
    font-size: 0.96rem;
    line-height: 1.7;
}

.login-edition-stack {
    display: grid;
    gap: 8px;
    max-width: 420px;
    margin-top: 30px;
}

.login-edition-stack article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid rgba(184, 211, 239, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.027);
}

.edition-symbol {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
}

.edition-symbol svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.edition-symbol.retail { color: #6ed4c7; background: rgba(32, 184, 173, 0.1); }
.edition-symbol.van { color: #79a7ec; background: rgba(59, 130, 246, 0.1); }
.edition-symbol.flex { color: #aa98ef; background: rgba(128, 105, 232, 0.1); }

.login-edition-stack article div {
    display: grid;
    gap: 1px;
}

.login-edition-stack strong {
    color: #dce8f4;
    font-size: 0.73rem;
}

.login-edition-stack small {
    color: #70869d;
    font-size: 0.61rem;
}

body.auth-login-page .login-container {
    width: 100%;
    max-width: none;
    align-self: auto;
    position: relative;
    margin: 0;
    padding: clamp(28px, 4vw, 40px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 20px;
    color: var(--auth-ink);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.94));
    box-shadow: 0 35px 85px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
}

body.auth-login-page .login-container::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    top: -100px;
    right: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 176, 166, 0.14), transparent 68%);
    pointer-events: none;
}

.login-card-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 25px;
}

body.auth-login-page .login-logo {
    width: 44px;
    height: 44px;
    margin: 0;
    border: 1px solid rgba(7, 21, 39, 0.08);
    border-radius: 13px;
    box-shadow: 0 10px 26px rgba(11, 52, 79, 0.13);
}

.login-card-brand > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #698095;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-card-brand > span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2aae9f;
    box-shadow: 0 0 0 4px rgba(42, 174, 159, 0.1);
}

body.auth-login-page .login-container h2 {
    margin: 0;
    color: #0a1a2c;
    font-size: 2rem;
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -0.042em;
    text-align: left;
}

body.auth-login-page .login-subtitle {
    margin: 8px 0 25px;
    color: #687d91;
    font-size: 0.83rem;
    line-height: 1.5;
    text-align: left;
}

.login-field {
    margin-top: 15px;
}

.login-field label {
    display: block;
    margin: 0 0 7px;
    color: #263a4e;
    font-size: 0.69rem;
    font-weight: 760;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > svg {
    width: 17px;
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    transform: translateY(-50%);
    fill: none;
    stroke: #70869a;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

body.auth-login-page .login-container input {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px 0 42px;
    border: 1px solid #c8d6e1;
    border-radius: 11px;
    color: #0b1b2d;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 2px rgba(7, 21, 39, 0.025);
    font-size: 0.85rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.auth-login-page .login-container input::placeholder {
    color: #99a9b8;
}

body.auth-login-page .login-container input:hover {
    border-color: #a9bdca;
    background: #ffffff;
}

body.auth-login-page .login-container input:focus {
    outline: none;
    border-color: #269b99;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(38, 155, 153, 0.11);
}

body.auth-login-page .login-container #loginButton {
    width: 100%;
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 23px 0 0;
    padding: 0 18px;
    border: 1px solid #173e79;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e568f, #223f81);
    box-shadow: 0 13px 27px rgba(29, 70, 129, 0.21), inset 0 1px rgba(255, 255, 255, 0.17);
    font-size: 0.84rem;
    font-weight: 790;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body.auth-login-page .login-container #loginButton::after {
    content: "\2192";
    font-size: 1rem;
    line-height: 1;
    transition: transform 180ms ease;
}

body.auth-login-page .login-container #loginButton:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 17px 32px rgba(29, 70, 129, 0.27), inset 0 1px rgba(255, 255, 255, 0.2);
}

body.auth-login-page .login-container #loginButton:hover:not(:disabled)::after {
    transform: translateX(3px);
}

body.auth-login-page .login-container #loginButton:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

body.auth-login-page .login-container #loginButton:disabled::after {
    display: none;
}

body.auth-login-page #loginMessage {
    display: none;
    margin: 13px 0 0;
    padding: 10px 12px;
    border: 1px solid #fecdd3;
    border-radius: 9px;
    color: #9f1239;
    background: #fff1f2;
    font-size: 0.71rem;
    font-weight: 650;
    line-height: 1.45;
    text-align: left;
}

body.auth-login-page #loginMessage:empty {
    display: none !important;
}

.login-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 0;
    color: #788b9d;
    font-size: 0.63rem;
    font-weight: 650;
}

.login-trust svg {
    width: 15px;
    fill: none;
    stroke: #399f97;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.platform-landing-page .public-auth-footer,
body.auth-login-page .public-auth-footer {
    width: min(1240px, calc(100% - 48px));
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: static;
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid rgba(184, 211, 239, 0.11);
    color: #61778e;
    font-size: 0.65rem;
    font-weight: 650;
    text-align: left;
}

.public-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 14px;
}

.public-legal-links a {
    color: inherit;
    text-decoration: none;
}

.public-legal-links a:hover,
.public-legal-links a:focus-visible {
    color: #9eb7cc;
    text-decoration: underline;
}

@media (max-width: 1020px) {
    .platform-hero {
        grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
        gap: 38px;
    }

    .workspace-dashboard {
        padding: 16px;
    }

    .workspace-metrics article {
        padding: 10px;
    }
}

@media (max-width: 880px) {
    .platform-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 72px 0 82px;
    }

    .platform-hero-copy {
        max-width: 700px;
    }

    .workspace-visual {
        width: min(640px, 94%);
        margin: 0 auto;
    }

    .workspace-window {
        transform: none;
    }

    .auth-login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 65px 0 72px;
    }

    .login-story {
        max-width: 650px;
        text-align: center;
        margin: 0 auto;
    }

    .login-story .auth-eyebrow {
        justify-content: center;
    }

    .login-story h1,
    .login-story > p:not(.auth-eyebrow) {
        margin-left: auto;
        margin-right: auto;
    }

    .login-edition-stack {
        max-width: 600px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .login-edition-stack article {
        align-items: flex-start;
    }

    body.auth-login-page .login-container {
        max-width: 430px;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .public-auth-header,
    .platform-landing-shell,
    .auth-login-shell,
    body.platform-landing-page .public-auth-footer,
    body.auth-login-page .public-auth-footer {
        width: min(100% - 30px, 1240px);
    }

    .public-auth-header {
        min-height: 65px;
    }

    .public-auth-header-note {
        display: none;
    }

    .back-to-platform {
        padding: 0 9px;
        border-color: transparent;
        background: transparent;
    }

    .platform-hero {
        gap: 52px;
        padding: 54px 0 66px;
    }

    .platform-hero h1 {
        font-size: clamp(2.3rem, 13vw, 3.3rem);
        line-height: 1.04;
    }

    .platform-hero-summary {
        font-size: 0.92rem;
    }

    .platform-assurances {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .workspace-visual {
        width: 100%;
    }

    .workspace-window-body {
        min-height: 360px;
        grid-template-columns: 39px minmax(0, 1fr);
    }

    .workspace-mini-sidebar {
        gap: 13px;
    }

    .workspace-mini-sidebar span {
        width: 13px;
    }

    .workspace-mini-sidebar .mini-brand {
        width: 20px;
        height: 20px;
    }

    .workspace-dashboard {
        padding: 13px;
    }

    .workspace-dashboard-head strong {
        font-size: 0.72rem;
    }

    .workspace-metrics {
        gap: 6px;
    }

    .workspace-metrics article {
        padding: 8px;
    }

    .metric-icon {
        margin-bottom: 9px;
    }

    .workspace-metrics em,
    .workspace-metrics article:first-child small {
        display: none;
    }

    .workspace-lower-grid {
        grid-template-columns: 1fr;
    }

    .workspace-chart-card {
        display: none;
    }

    .workspace-flow-card {
        min-height: 167px;
    }

    .workspace-visual .launch-status-card {
        width: calc(100% - 24px);
        right: 12px;
        bottom: -35px;
    }

    .platform-capabilities {
        padding: 80px 0 64px;
    }

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

    .capability-card {
        padding: 18px;
    }

    .auth-login-shell {
        gap: 34px;
        padding: 50px 0 58px;
    }

    .login-story h1 {
        font-size: 2.55rem;
    }

    .login-edition-stack {
        grid-template-columns: 1fr;
    }

    .login-edition-stack article {
        display: none;
    }

    .login-edition-stack article:first-child {
        display: flex;
    }

    body.auth-login-page .login-container {
        padding: 27px 22px;
        border-radius: 17px;
    }

    body.platform-landing-page .public-auth-footer,
    body.auth-login-page .public-auth-footer {
        min-height: 76px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px 16px;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .public-auth-brand span {
        font-size: 0.95rem;
    }

    .back-to-platform {
        font-size: 0.68rem;
    }

    .platform-landing-page .launch-actions {
        display: grid;
    }

    .platform-landing-page .launch-primary,
    .platform-landing-page .launch-secondary {
        width: 100%;
    }

    .platform-assurances {
        grid-template-columns: 1fr;
    }

    .workspace-metrics article:nth-child(2) {
        display: none;
    }

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

@media (prefers-reduced-motion: reduce) {
    .platform-landing-page *,
    .auth-login-page * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.auth-single-card {
    grid-template-columns: minmax(280px, 520px);
    justify-content: center;
}

.auth-inline-action {
    display: inline-flex;
    margin-top: 16px;
}

.auth-account-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 13px;
    font-size: 0.82rem;
}

.auth-account-links a {
    color: #0f766e;
    font-weight: 700;
}

.auth-form-message.is-success,
.auth-form-message.is-error,
.auth-form-message.is-warning {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
}

.auth-form-message.is-success {
    border-color: #a7dcc3;
    color: #116a4c;
    background: var(--pp-success-soft, #e8f7ef);
}

.auth-form-message.is-error {
    border-color: #edbec7;
    color: #a52f41;
    background: var(--pp-danger-soft, #fcecef);
}

.auth-form-message.is-warning {
    border-color: #edcf9f;
    color: #8c570d;
    background: var(--pp-warning-soft, #fff4df);
}

body.auth-login-page .auth-form-message.is-success { color: #116a4c; }
body.auth-login-page .auth-form-message.is-error { color: #a52f41; }
body.auth-login-page .auth-form-message.is-warning { color: #8c570d; }

/* The login page sizes its header, content, and footer as one viewport-aware unit.
   If the content cannot fit, the document still grows naturally and remains scrollable. */
@media (min-width: 881px) {
    body.auth-login-page.login-entry-page {
        display: grid;
        grid-template-rows: auto minmax(min-content, 1fr) auto;
    }

    body.login-entry-page .auth-login-shell {
        min-height: 0;
        align-self: stretch;
        padding-block: clamp(24px, 4vh, 38px);
    }
}

/* Workspace onboarding */
.onboarding-shell {
    width: min(calc(100% - 40px), 1020px);
    margin: clamp(30px, 5vw, 56px) auto 72px;
}

body.workspace-onboarding-page .onboarding-card {
    width: 100%;
    max-width: none;
    padding: clamp(26px, 4.5vw, 48px);
}

.onboarding-card-header {
    max-width: 690px;
}

.onboarding-card .login-card-brand {
    margin-bottom: 20px;
}

.onboarding-eyebrow {
    margin: 0 0 7px;
    color: var(--pp-accent, #0f8588);
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.onboarding-intro {
    margin: 9px 0 0;
    color: #657b90;
    font-size: 0.88rem;
    line-height: 1.55;
}

.workspace-progress {
    margin: 29px 0 32px;
    padding: 22px 20px 20px;
    border: 1px solid #d8e2eb;
    border-radius: var(--pp-radius-lg, 14px);
    background: #f8fafc;
}

.onboarding-stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0;
    margin: 0;
    list-style: none;
}

.onboarding-step {
    min-width: 0;
    position: relative;
    display: grid;
    justify-items: center;
    gap: 9px;
    padding-inline: 6px;
    text-align: center;
}

.onboarding-step:not(:last-child)::after {
    content: "";
    height: 2px;
    position: absolute;
    top: 17px;
    left: calc(50% + 23px);
    right: calc(-50% + 23px);
    z-index: 0;
    background: #d6e0e9;
}

.onboarding-step.is-complete:not(:last-child)::after {
    background: var(--pp-accent, #0f8588);
}

.onboarding-step-marker {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    border: 2px solid #cbd7e1;
    border-radius: 50%;
    color: #718397;
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 0 0 5px #f8fafc;
}

.onboarding-step.is-current .onboarding-step-marker {
    border-color: #173f68;
    color: #ffffff;
    background: linear-gradient(145deg, #173f68, var(--pp-accent, #0f8588));
    box-shadow: 0 0 0 5px #f8fafc, 0 0 0 8px rgba(15, 133, 136, 0.13);
}

.onboarding-step.is-complete .onboarding-step-marker {
    border-color: var(--pp-accent, #0f8588);
    color: #ffffff;
    background: var(--pp-accent, #0f8588);
}

.onboarding-step-check {
    width: 18px;
    display: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.onboarding-step.is-complete .onboarding-step-number {
    display: none;
}

.onboarding-step.is-complete .onboarding-step-check {
    display: block;
}

.onboarding-step-copy {
    min-width: 0;
}

.onboarding-step-copy strong {
    color: #54677b;
    font-size: 0.73rem;
    font-weight: 780;
    line-height: 1.25;
}

.onboarding-step.is-current .onboarding-step-copy strong {
    color: #123553;
}

.onboarding-step.is-complete .onboarding-step-copy strong {
    color: #0c716f;
}

.onboarding-mobile-progress {
    display: none;
}

.onboarding-form {
    display: grid;
    gap: 16px;
}

.onboarding-section {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 18px;
    margin: 0;
    padding: 22px;
    border: 1px solid #d8e2eb;
    border-radius: var(--pp-radius-lg, 14px);
    background: rgba(248, 250, 252, 0.72);
}

.onboarding-section legend {
    padding: 0 8px;
    color: #173653;
    font-size: 0.9rem;
    font-weight: 800;
}

.onboarding-section-note {
    grid-column: 1 / -1;
    margin: -3px 0 2px;
    color: #6f8294;
    font-size: 0.75rem;
    line-height: 1.5;
}

.onboarding-field {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 7px;
    color: #263a4e;
    font-size: 0.72rem;
    font-weight: 750;
}

.onboarding-field-wide {
    grid-column: 1 / -1;
}

.onboarding-field-compact {
    max-width: 280px;
}

.workspace-onboarding-page .onboarding-card input:not([type="radio"]),
.workspace-onboarding-page .onboarding-card textarea {
    width: 100%;
    margin: 0;
    border: 1px solid #c8d6e1;
    border-radius: var(--pp-radius-sm, 9px);
    color: #0b1b2d;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(7, 21, 39, 0.025);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.workspace-onboarding-page .onboarding-card input:not([type="radio"]) {
    height: var(--pp-control-height, 42px);
    padding: 0 12px;
}

.workspace-onboarding-page .onboarding-card textarea {
    min-height: 78px;
    padding: 10px 12px;
    resize: vertical;
}

.workspace-onboarding-page .onboarding-card input:not([type="radio"]):focus,
.workspace-onboarding-page .onboarding-card textarea:focus {
    outline: none;
    border-color: var(--pp-accent, #0f8588);
    box-shadow: 0 0 0 3px rgba(15, 133, 136, 0.12);
}

.onboarding-profile-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.onboarding-profile-option {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 15px;
    border: 1px solid #d2dde7;
    border-radius: 11px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.onboarding-profile-option:hover,
.onboarding-profile-option:focus-within {
    border-color: #88b9bb;
    box-shadow: 0 6px 18px rgba(16, 53, 79, 0.08);
}

.onboarding-profile-option:has(input:checked) {
    border-color: var(--pp-accent, #0f8588);
    background: rgba(15, 133, 136, 0.055);
    box-shadow: 0 0 0 3px rgba(15, 133, 136, 0.1);
}

.workspace-onboarding-page .onboarding-profile-option input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--pp-accent, #0f8588);
}

.onboarding-profile-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.onboarding-profile-copy strong {
    color: #18344e;
    font-size: 0.78rem;
    font-weight: 790;
}

.onboarding-profile-copy small {
    color: #6e8193;
    font-size: 0.69rem;
    font-weight: 500;
    line-height: 1.45;
}

.onboarding-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 4px;
}

.onboarding-legal-notice {
    max-width: 720px;
    margin: 4px 0 0;
    color: #6b7e90;
    font-size: 0.69rem;
    line-height: 1.55;
}

.onboarding-legal-notice a {
    color: #176f79;
    font-weight: 700;
    text-decoration: none;
}

.onboarding-legal-notice a:hover,
.onboarding-legal-notice a:focus-visible {
    text-decoration: underline;
}

.workspace-onboarding-page .onboarding-card button[type="submit"] {
    min-height: var(--pp-control-height, 42px);
    min-width: 220px;
    padding: 0 20px;
    border: 1px solid #173e79;
    border-radius: var(--pp-radius-sm, 9px);
    color: #ffffff;
    background: linear-gradient(135deg, #1e568f, #176f79);
    box-shadow: 0 9px 22px rgba(21, 74, 113, 0.19);
    font-size: 0.78rem;
    font-weight: 780;
}

.workspace-onboarding-page .onboarding-card button[type="submit"]:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.workspace-onboarding-page .onboarding-card button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.66;
}

#workspaceEmailMessage,
#workspaceMessage {
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.45;
}

#workspaceEmailMessage:empty,
#workspaceMessage:empty {
    display: none;
}

.onboarding-email-panel {
    max-width: 610px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #d8e2eb;
    border-radius: var(--pp-radius-lg, 14px);
    background: rgba(248, 250, 252, 0.78);
}

.onboarding-status-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #8c570d;
    background: rgba(183, 106, 12, 0.1);
}

.onboarding-status-icon svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.onboarding-email-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 0;
}

.onboarding-email-form .login-field {
    min-width: 0;
}

.onboarding-email-form button,
.onboarding-email-form #workspaceEmailMessage {
    grid-column: 1 / -1;
}

.onboarding-email-form button {
    justify-self: start;
    margin-top: 3px;
}

.onboarding-status {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #edcf9f;
    border-radius: var(--pp-radius-lg, 14px);
    background: var(--pp-warning-soft, #fff4df);
}

.onboarding-status strong {
    color: #8c570d;
    font-size: 0.88rem;
    text-transform: capitalize;
}

.onboarding-status p {
    margin: 4px 0 0;
    color: #557184;
    font-size: 0.76rem;
    line-height: 1.5;
}

.onboarding-status-active {
    border-color: #a7dcc3;
    background: var(--pp-success-soft, #e8f7ef);
}

.onboarding-status-active .onboarding-status-icon,
.onboarding-status-active strong {
    color: #116a4c;
}

.onboarding-status-active .onboarding-status-icon {
    background: rgba(22, 131, 95, 0.1);
}

.onboarding-status-rejected {
    border-color: #edbec7;
    background: var(--pp-danger-soft, #fcecef);
}

.onboarding-status-rejected .onboarding-status-icon,
.onboarding-status-rejected strong {
    color: #a52f41;
}

.onboarding-status-rejected .onboarding-status-icon {
    background: rgba(200, 62, 80, 0.1);
}

@media (max-width: 760px) {
    .onboarding-shell {
        width: min(calc(100% - 28px), 1020px);
        margin: 24px auto 48px;
    }

    body.workspace-onboarding-page .onboarding-card {
        padding: 25px 20px;
    }

    .workspace-progress {
        margin: 24px 0;
        padding: 16px;
    }

    .onboarding-stepper {
        display: none;
    }

    .onboarding-mobile-progress {
        display: grid;
        gap: 11px;
    }

    .onboarding-mobile-progress-head {
        display: grid;
        gap: 2px;
    }

    .onboarding-mobile-progress-head span {
        color: var(--pp-accent, #0f8588);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .onboarding-mobile-progress-head strong {
        color: #173653;
        font-size: 0.9rem;
    }

    .onboarding-progress-track {
        height: 5px;
        overflow: hidden;
        border-radius: 999px;
        background: #dbe4eb;
    }

    .onboarding-progress-fill {
        height: 100%;
        display: block;
        border-radius: inherit;
        background: linear-gradient(90deg, #1e568f, var(--pp-accent, #0f8588));
    }

    .onboarding-progress-step-1 { width: 20%; }
    .onboarding-progress-step-2 { width: 40%; }
    .onboarding-progress-step-3 { width: 60%; }
    .onboarding-progress-step-4 { width: 80%; }
    .onboarding-progress-step-5 { width: 100%; }

    .onboarding-section,
    .onboarding-profile-grid,
    .onboarding-email-form {
        grid-template-columns: 1fr;
    }

    .onboarding-section {
        padding: 19px 16px;
    }

    .onboarding-field-compact {
        max-width: none;
    }

    .onboarding-submit-row {
        display: grid;
    }

    .workspace-onboarding-page .onboarding-card button[type="submit"] {
        width: 100%;
    }

    .onboarding-email-panel {
        padding: 19px 16px;
    }
}
