:root {
    --accent: #73958E;
    --accent-strong: #557670;
    --accent-surface: #EEF4F2;
    --accent-surface-strong: #E1EBE8;
    --accent-ring: rgba(115, 149, 142, 0.28);

    --bg: #FFFFFF;
    --bg-page: #FAFBFB;
    --surface: #F3F6F6;
    --surface-hover: #EDF1F1;
    --border: #E7ECEC;
    --border-strong: #D9E0E0;

    --text: #0F1B2A;
    --text-secondary: #5D6B79;
    --text-muted: #8A96A2;

    --action: #14212F;
    --action-hover: #22303F;
    --on-action: #FFFFFF;

    --danger: #C4574F;
    --danger-surface: #FBF0EF;
    --success: #4F8A6A;
    --warning: #B8873A;

    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 10px;

    --shadow-soft: 0 1px 2px rgba(15, 27, 42, 0.04);
    --shadow-float: 0 24px 60px -24px rgba(15, 27, 42, 0.22), 0 2px 8px rgba(15, 27, 42, 0.04);
    --grid-dot: rgba(15, 27, 42, 0.14);

    --sidebar-collapsed: 80px;
    --sidebar-expanded: 260px;
    --header-height: 70px;

    --ease-out: cubic-bezier(0.2, 0, 0, 1);
    --app-font-size: 0.9375rem;
}

html.theme-dark {
    color-scheme: dark;
    --accent: #8AADA6;
    --accent-strong: #A9C4BE;
    --accent-surface: #1C2A2F;
    --accent-surface-strong: #24353B;
    --accent-ring: rgba(138, 173, 166, 0.28);

    --bg: #151C22;
    --bg-page: #0F151A;
    --surface: #1C252C;
    --surface-hover: #243038;
    --border: #2A3840;
    --border-strong: #3A4B54;

    --text: #E8EEF1;
    --text-secondary: #9AABB5;
    --text-muted: #6E7F89;

    --action: #A9C4BE;
    --action-hover: #C2D6D1;
    --on-action: #0F151A;

    --danger: #E07A73;
    --danger-surface: #2C1C1B;
    --success: #6EAA88;
    --warning: #D4A24A;

    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-float: 0 24px 60px -24px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.22);
    --grid-dot: rgba(232, 238, 241, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--app-font-size);
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-page);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input {
    font: inherit;
    color: inherit;
}

h1, h2, h3 {
    margin: 0;
    color: var(--text);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
}

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

.logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.lp-logo-light {
    display: none;
}

html.lp-light .lp-logo-dark {
    display: none;
}

html.lp-light .lp-logo-light {
    display: block;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
}

.btn:active:not(:disabled) {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn[hidden] {
    display: none;
}

.btn-primary {
    background: var(--action);
    color: var(--on-action);
}

.btn-primary:hover:not(:disabled) {
    background: var(--action-hover);
}

.btn-accent {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-accent:hover:not(:disabled) {
    background: var(--accent-strong);
}

.btn-secondary {
    background: var(--bg);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--surface);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--accent-surface);
    color: var(--accent-strong);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    filter: brightness(0.94);
}

.btn-sm {
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.btn-icon-only {
    width: 44px;
    padding: 0;
}

/* ---------- Landing ---------- */

html:has(.landing-body) {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 12px);
    color-scheme: dark;
}

.landing-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    --accent: #8AADA6;
    --accent-strong: #A9C4BE;
    --accent-surface: #172427;
    --accent-surface-strong: #1F3033;
    --accent-ring: rgba(138, 173, 166, 0.28);

    --bg: #10171C;
    --bg-page: #0A0F13;
    --surface: #172026;
    --surface-hover: #1E2931;
    --border: #212E36;
    --border-strong: #33444F;

    --text: #E8EEF1;
    --text-secondary: #9AABB5;
    --text-muted: #6E7F89;

    --action: #E8EEF1;
    --action-hover: #FFFFFF;
    --on-action: #0A0F13;

    --danger: #E07A73;
    --danger-surface: #2C1C1B;
    --success: #6EAA88;
    --warning: #D4A24A;

    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-float: 0 24px 60px -24px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.24);

    --lp-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --lp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --lp-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --lp-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--action);
    color: var(--on-action);
    border-radius: var(--radius-sm);
    font-weight: 700;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: none;
}

.landing-body ::selection {
    background: var(--accent-surface-strong);
    color: var(--text);
}

.landing-body :focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 3px;
}

.landing-body a {
    text-decoration: none;
}

.lp-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: #0F171C;
    background-image: var(--lp-sky-dark);
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

.lp-sky::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 15, 19, 0.1) 0%, rgba(10, 15, 19, 0.3) 55%, rgba(10, 15, 19, 0.7) 100%);
}

.landing-body main,
.landing-footer {
    position: relative;
    z-index: 1;
}

.landing-container {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 28px;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 19, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 238, 241, 0.06);
}

.landing-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    min-height: var(--header-height);
}

.landing-nav .sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.landing-brand-text .sidebar-brand-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.landing-brand-text .sidebar-brand-sub {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-nav-links {
    display: flex;
    gap: 4px;
}

.landing-nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 150ms ease, color 150ms ease;
}

.landing-nav-links a[aria-current="page"] {
    background: var(--accent-surface);
    color: var(--accent-strong);
}

.landing-nav-links a.landing-nav-spotlight {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--accent-strong);
    font-weight: 600;
}

.landing-nav-links a.landing-nav-spotlight::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 60%;
    background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--accent-strong) 35%, transparent), transparent);
    transform: translateX(-120%) skewX(-18deg);
    pointer-events: none;
    animation: landing-nav-sheen 5.5s var(--lp-ease-in-out) 1.2s infinite;
}

.landing-nav-links a.landing-nav-spotlight[aria-current="page"]::after,
.landing-nav-links a.landing-nav-spotlight:hover::after {
    animation: none;
    opacity: 0;
}

html.lp-light .landing-nav-links a.landing-nav-spotlight::after {
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
}

@keyframes landing-nav-sheen {
    0% { transform: translateX(-120%) skewX(-18deg); }
    22%, 100% { transform: translateX(260%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
    .landing-nav-links a.landing-nav-spotlight::after {
        animation: none;
        opacity: 0;
    }
}

.landing-page {
    flex: 1;
}

@media (hover: hover) and (pointer: fine) {
    .landing-nav-links a:hover {
        background: var(--accent-surface);
        color: var(--accent-strong);
    }
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-nav-toggle {
    display: none;
}

.landing-nav-theme-label {
    display: none;
}

.landing-section {
    padding: 112px 0;
}

.landing-h2 {
    font-family: var(--lp-serif);
    font-size: clamp(1.95rem, 3.6vw, 2.7rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.12;
}

.landing-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 32px;
    border: 1px solid rgba(232, 238, 241, 0.1);
    border-radius: 28px;
    background: rgba(11, 16, 20, 0.86);
    text-align: center;
}

.landing-final-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 20px;
}

.landing-final .landing-h2 {
    max-width: 18ch;
    color: #F3F6F7;
}

.landing-final p {
    max-width: 460px;
    margin: 14px 0 0;
    color: rgba(232, 238, 241, 0.74);
    font-size: 1rem;
}

.landing-final-cta {
    margin-top: 28px;
}

.landing-footer {
    padding: 28px 0 36px;
    border-top: 1px solid var(--border);
    background: var(--bg-page);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.landing-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    .landing-footer a:hover {
        color: var(--accent-strong);
    }
}

/* ---------- Landing hero ---------- */

.lp-hero {
    padding: 88px 0 120px;
    text-align: center;
}

.lp-lead {
    margin: 0 0 16px;
    color: rgba(243, 246, 247, 0.92);
    font-family: var(--lp-serif);
    font-style: italic;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.lp-title {
    margin: 0;
    color: #F3F6F7;
    font-family: var(--lp-serif);
    font-size: clamp(2.5rem, 5.6vw, 3.9rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.lp-title-mark {
    display: inline-block;
    width: 0.78em;
    height: 0.78em;
    margin-left: 0.16em;
    vertical-align: -0.08em;
    background: currentColor;
    -webkit-mask: var(--lp-plane) center / contain no-repeat;
    mask: var(--lp-plane) center / contain no-repeat;
    animation: lp-plane-drift 4.8s var(--lp-ease-in-out) infinite;
}

@keyframes lp-plane-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(0.05em, -0.09em) rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-title-mark {
        animation: none;
    }
}

.lp-sub {
    margin: 16px auto 0;
    max-width: 46ch;
    color: rgba(232, 238, 241, 0.86);
    font-size: 1.05rem;
}

.lp-sub u {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.lp-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--lp-ease-out);
}

.lp-btn:active {
    transform: scale(0.97);
}

.lp-btn .app-icon {
    width: 1rem;
    height: 1rem;
}

.lp-btn--primary {
    background: #458E94;
    border-color: rgba(169, 196, 190, 0.45);
    color: #FFFFFF;
}

.lp-btn--ghost {
    background: rgba(10, 15, 19, 0.72);
    border-color: rgba(232, 238, 241, 0.16);
    color: #E8EEF1;
}

@media (hover: hover) and (pointer: fine) {
    .lp-btn--primary:hover {
        background: #509EA4;
    }

    .lp-btn--ghost:hover {
        background: rgba(20, 28, 34, 0.92);
        border-color: rgba(232, 238, 241, 0.28);
    }
}

.lp-btn--pulse {
    animation: btn-pulse 2.5s infinite ease-in-out;
}

@keyframes btn-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@media (hover: hover) and (pointer: fine) {
    .lp-btn--pulse:hover {
        animation-play-state: paused;
        transform: scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-btn--pulse {
        animation: none;
    }
}

.lp-demo {
    max-width: 1120px;
    margin: 56px auto 0;
}

/* A fixed-size design, scaled to its box by landing.js. */

.lp-fit {
    position: relative;
    margin: 0 auto;
}

.lp-fit-inner {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
}

.lp-hero-web {
    left: 0;
    top: 0;
    width: 860px;
    height: 600px;
}

.lp-hero-phone {
    left: 900px;
    top: 40px;
    z-index: 2;
}

.lp-demo.is-narrow .lp-hero-phone {
    left: 576px;
    top: 88px;
}

/* ---------- Landing feature panels ---------- */

.lp-stack {
    position: relative;
}

.lp-pager {
    position: fixed;
    right: 24px;
    top: 50%;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms var(--lp-ease-out);
}

.lp-pager.is-on {
    opacity: 1;
    pointer-events: auto;
}

.lp-pager-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(232, 238, 241, 0.16);
    border-radius: 50%;
    background: #151C22;
    color: #E8EEF1;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--lp-ease-out);
}

.lp-pager-btn .app-icon {
    width: 20px;
    height: 20px;
}

.lp-pager-btn:active:not(:disabled) {
    transform: scale(0.94);
}

.lp-pager-btn:disabled {
    opacity: 0.28;
    cursor: default;
}

.lp-pager-btn:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .lp-pager-btn:hover:not(:disabled) {
        background: #1C252C;
        border-color: rgba(232, 238, 241, 0.28);
    }
}

.lp-panel {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    height: 100vh;
    height: 100svh;
    padding: calc(var(--header-height) + 12px) 0 24px;
    scroll-margin-top: calc(-12px - var(--header-height));
}

.lp-panel + .lp-panel {
    margin-top: 55vh;
}

.lp-panel > .landing-container {
    width: min(1240px, 100%);
}

.lp-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
    align-items: center;
    gap: 32px;
    height: min(680px, calc(100svh - var(--header-height) - 36px));
    padding: 36px 28px 36px 44px;
    overflow: hidden;
    border: 1px solid rgba(232, 238, 241, 0.1);
    border-radius: 28px;
    background: linear-gradient(to bottom, #131B20, #0B1014);
    box-shadow: 0 -24px 80px -40px rgba(0, 0, 0, 0.8), 0 40px 100px -40px rgba(0, 0, 0, 0.8);
    transform-origin: 50% 0;
}

.lp-card-shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    background: #05080A;
    opacity: 0;
    pointer-events: none;
}

.lp-card-copy {
    min-width: 0;
}

.lp-card-copy > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--lp-ease-out), transform 600ms var(--lp-ease-out);
}

.lp-card-copy > :nth-child(2) { transition-delay: 60ms; }
.lp-card-copy > :nth-child(3) { transition-delay: 120ms; }
.lp-card-copy > :nth-child(4) { transition-delay: 180ms; }

.lp-panel.is-seen .lp-card-copy > * {
    opacity: 1;
    transform: none;
}

.lp-card-title {
    margin: 0;
    color: #F3F6F7;
    font-family: var(--lp-serif);
    font-size: clamp(2rem, 3.3vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.08;
}

.lp-card-copy p {
    max-width: 40ch;
    margin: 16px 0 0;
    color: rgba(232, 238, 241, 0.74);
    font-size: 1.02rem;
    line-height: 1.65;
}

.lp-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.lp-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #E8EEF1;
    font-size: 0.94rem;
}

.lp-points .app-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--accent-surface-strong);
    color: var(--accent-strong);
}

.lp-card-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
}

.lp-card-stage > .lp-fit {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms var(--lp-ease-out) 120ms, transform 800ms var(--lp-ease-out) 120ms;
}

.lp-panel.is-seen .lp-card-stage > .lp-fit {
    opacity: 1;
    transform: none;
}

/* ---------- Landing mocks ---------- */

.lp-mock {
    --m-bg: #0F151A;
    --m-panel: #151C22;
    --m-surface: #1C252C;
    --m-border: #2A3840;
    --m-text: #E8EEF1;
    --m-sub: #9AABB5;
    --m-muted: #6E7F89;
    --m-accent: #8AADA6;
    --m-accent-strong: #A9C4BE;
    --m-accent-surface: #1C2A2F;
    color: var(--m-text);
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.lp-mock .app-icon {
    width: 16px;
    height: 16px;
}

.lp-mock.is-instant *,
.lp-mock.is-instant *::after {
    transition: none !important;
}

.lp-web {
    position: absolute;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--m-border);
    border-radius: 14px;
    background: var(--m-bg);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
}

.lp-pair-web {
    left: 0;
    top: 50px;
    width: 580px;
    height: 500px;
}

.lp-pair-web .lp-web-main,
.lp-pair-web .lp-thread-head {
    padding-right: 60px;
}

.lp-pair-web .lp-msgs {
    margin-right: 60px;
}

.lp-pair-web .lp-compose {
    right: 60px;
}

.lp-pair-web .lp-pop {
    right: 60px;
}


.lp-web-bar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--m-border);
}

.lp-web-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.lp-crumb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.lp-mock .lp-crumb .app-icon {
    width: 13px;
    height: 13px;
    color: var(--m-muted);
}

.lp-crumb-sep {
    color: var(--m-muted);
}

.lp-crumb--muted {
    color: var(--m-sub);
    font-weight: 500;
}

.lp-web-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.lp-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--m-accent-surface);
    color: var(--m-accent-strong);
    font-size: 10.5px;
    font-weight: 800;
}

.lp-web-body {
    display: grid;
    flex: 1;
    grid-template-columns: 60px minmax(0, 1fr) 222px;
    min-height: 0;
}

.lp-web-body--wide {
    grid-template-columns: 60px minmax(0, 1fr);
}

.lp-web-body--chat {
    grid-template-columns: 60px 172px minmax(0, 1fr);
}

.lp-web-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 0;
    border-right: 1px solid var(--m-border);
}

.lp-web-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--m-sub);
}

.lp-web-icon.is-active {
    background: var(--m-accent-surface);
    color: var(--m-accent-strong);
}

.lp-web-icon--sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--m-surface);
    color: var(--m-text);
}

.lp-web-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    padding: 18px;
}

.lp-web-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-web-head > div {
    display: flex;
    flex-direction: column;
}

.lp-web-head strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lp-web-head > div > span {
    color: var(--m-muted);
    font-size: 11.5px;
}

.lp-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--m-text);
    color: var(--m-bg);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.lp-mock .lp-chip-btn .app-icon {
    width: 13px;
    height: 13px;
}

.lp-chip-btn--sm {
    height: 26px;
}

.lp-ghost-btn {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--m-border);
    border-radius: 8px;
    color: var(--m-sub);
    font-size: 12px;
    font-weight: 600;
}

.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.lp-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--m-border);
    border-radius: 12px;
    background: var(--m-panel);
}

.lp-stat .app-icon {
    grid-row: span 2;
    color: var(--m-accent-strong);
}

.lp-stat strong {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.lp-stat span {
    color: var(--m-muted);
    font-size: 11px;
}

.lp-beds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lp-beds--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 6px;
    row-gap: 18px;
}

.lp-bed {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 134px;
    padding: 12px;
    border: 1px solid var(--m-border);
    border-radius: 12px;
    background: var(--m-panel);
    transition: background-color 300ms ease, border-color 300ms ease;
}

.lp-beds--2 .lp-bed {
    min-height: 118px;
}

.lp-bed-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--m-sub);
    font-size: 11.5px;
    font-weight: 600;
}

.lp-mock .lp-bed-top .app-icon {
    width: 14px;
    height: 14px;
}

.lp-status {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 200ms ease;
}

.lp-status--critical { background: rgba(224, 122, 115, 0.15); color: #E07A73; }
.lp-status--unstable { background: rgba(212, 162, 74, 0.15); color: #D4A24A; }
.lp-status--stable { background: rgba(110, 170, 136, 0.15); color: #6EAA88; }
.lp-status--observed { background: rgba(138, 173, 166, 0.14); color: #A9C4BE; }

.lp-bed-name {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
}

.lp-bed-dx {
    margin: 0;
    color: var(--m-sub);
    font-size: 12px;
}

.lp-bed-foot {
    display: flex;
    align-items: center;
    margin-top: auto;
    color: var(--m-muted);
    font-size: 11px;
}

.lp-bed-icons {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.lp-bed-icons span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--m-surface);
    color: var(--m-sub);
}

.lp-mock .lp-bed-icons .app-icon {
    width: 13px;
    height: 13px;
}

.lp-bed--empty {
    border-style: dashed;
    background: transparent;
}

.lp-bed--empty .lp-bed-dx {
    margin: auto 0;
    align-self: center;
    color: var(--m-muted);
}

.lp-web-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 36px 18px 14px;
    border-left: 1px solid var(--m-border);
}

.lp-web-tasks-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 14px;
}

.lp-task {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--m-border);
    border-radius: 12px;
    background: var(--m-panel);
}

.lp-task strong {
    font-size: 12.5px;
}

.lp-task span {
    color: var(--m-muted);
    font-size: 11px;
}

.lp-task .lp-status {
    margin: 4px 0 0;
}

.lp-cursor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 6;
    width: 20px;
    height: 20px;
    opacity: 0;
    pointer-events: none;
    transition: transform 700ms var(--lp-ease-in-out), opacity 200ms ease;
}

.lp-cursor.is-on {
    opacity: 1;
}

.lp-cursor svg {
    display: block;
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 120ms var(--lp-ease-out);
}

.lp-cursor.is-down svg {
    transform: scale(0.86);
}

.lp-ring {
    position: absolute;
    left: -12px;
    top: -12px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--m-accent-strong);
    border-radius: 50%;
    opacity: 0;
}

.lp-field {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--m-border);
    border-radius: 10px;
    background: var(--m-bg);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.lp-field > span {
    flex: 0 0 auto;
    color: var(--m-muted);
    font-size: 11px;
}

.lp-field b {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
}

.lp-field em {
    color: var(--m-muted);
    font-size: 11px;
    font-style: normal;
}

.lp-field.is-focus {
    border-color: var(--m-accent);
    box-shadow: 0 0 0 3px rgba(138, 173, 166, 0.18);
}

.lp-field.is-focus b::after {
    content: '';
    display: inline-block;
    width: 1.5px;
    height: 14px;
    margin-left: 1px;
    background: var(--m-accent-strong);
    vertical-align: -2px;
    animation: lp-caret 1s steps(1) infinite;
}

@keyframes lp-caret {
    50% { opacity: 0; }
}

.lp-toast {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #E8EEF1;
    color: #0F151A;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 250ms var(--lp-ease-out), transform 250ms var(--lp-ease-out);
}

.lp-toast.is-on {
    opacity: 1;
    transform: none;
}

.lp-mock .lp-toast .app-icon {
    color: #3E6E5F;
}

/* Lists that JS stacks with translateY */

.lp-list {
    position: relative;
    flex: 1;
    min-height: 0;
}

.lp-trow,
.lp-mtask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--m-border);
    background: var(--m-panel);
    opacity: 0;
    transform: scale(0.97);
    transition: transform 420ms var(--lp-ease-in-out), opacity 300ms var(--lp-ease-out), border-color 200ms ease, background-color 300ms ease;
}

.lp-trow.is-on,
.lp-mtask.is-on {
    opacity: 1;
}

.lp-trow {
    height: 62px;
    padding: 0 14px;
    border-radius: 12px;
}

.lp-trow.is-flash {
    background: var(--m-accent-surface);
}

.lp-trow-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.lp-trow-body strong {
    min-height: 18px;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-trow-meta {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.lp-trow-meta i {
    padding: 1px 8px;
    border: 1px dashed var(--m-border);
    border-radius: 999px;
    color: var(--m-muted);
    font-size: 10.5px;
    font-style: normal;
    transition: background-color 200ms ease, color 200ms ease;
}

.lp-trow-meta i.is-set {
    border-style: solid;
    background: var(--m-surface);
    color: var(--m-sub);
}

.lp-trow--draft {
    border-style: dashed;
    border-color: var(--m-accent);
}

.lp-trow--draft .lp-status {
    opacity: 0;
}

.lp-trow--draft .lp-chip-btn--sm {
    position: absolute;
    right: 14px;
    transition: opacity 200ms ease;
}

.lp-trow--draft.is-saved {
    border-style: solid;
    border-color: var(--m-border);
}

.lp-trow--draft.is-saved .lp-status {
    opacity: 1;
}

.lp-trow--draft.is-saved .lp-chip-btn--sm {
    opacity: 0;
}

.lp-m-list {
    flex: 0 0 auto;
    height: 380px;
    margin: 0 12px;
}

.lp-mtask {
    height: 64px;
    padding: 0 12px;
    border-radius: 16px;
}

.lp-mtask-check {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    height: 22px;
    border: 1.5px solid var(--m-border);
    border-radius: 50%;
    color: #FFFFFF;
    transition: background-color 200ms ease, border-color 200ms ease;
}

.lp-mock .lp-mtask-check .app-icon {
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 200ms ease;
}

.lp-mtask.is-done .lp-mtask-check {
    border-color: #6EAA88;
    background: #6EAA88;
}

.lp-mock .lp-mtask.is-done .lp-mtask-check .app-icon {
    opacity: 1;
}

.lp-mtask-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.lp-mtask-body strong {
    overflow: hidden;
    font-size: 12.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 200ms ease;
}

.lp-mtask.is-done .lp-mtask-body strong {
    color: var(--m-muted);
    text-decoration: line-through;
}

.lp-mtask-body span {
    color: var(--m-muted);
    font-size: 10.5px;
}

/* Phone */

.lp-phone {
    position: absolute;
    width: 284px;
    height: 588px;
    padding: 10px;
    border: 1px solid var(--m-border);
    border-radius: 46px;
    background: #05080A;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 2px #121A20;
}

.lp-pair-phone {
    left: 536px;
    top: 6px;
}

.lp-solo-phone {
    left: 268px;
    top: 6px;
}

.lp-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 36px;
    background: var(--m-bg);
}

.lp-phone-notch {
    position: absolute;
    top: 9px;
    left: 50%;
    z-index: 5;
    width: 84px;
    height: 24px;
    margin-left: -42px;
    border-radius: 14px;
    background: #000000;
}

.lp-phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    padding: 6px 26px 0;
    font-size: 12px;
    font-weight: 700;
}

.lp-phone-signal {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.lp-phone-signal i {
    width: 3px;
    border-radius: 1px;
    background: var(--m-text);
}

.lp-phone-signal i:nth-child(1) { height: 5px; }
.lp-phone-signal i:nth-child(2) { height: 7px; }
.lp-phone-signal i:nth-child(3) { height: 9px; }

.lp-screen {
    position: absolute;
    inset: 42px 0 0;
    display: flex;
    flex-direction: column;
    background: var(--m-bg);
    transition: transform 450ms var(--lp-ease-drawer), opacity 450ms var(--lp-ease-drawer);
}

.lp-screen.is-pushed {
    opacity: 0;
    transform: translateX(-28%);
}

.lp-screen--next {
    transform: translateX(100%);
}

.lp-screen--next.is-active {
    transform: none;
}

.lp-m-head {
    display: flex;
    flex-direction: column;
    padding: 8px 18px 12px;
}

.lp-m-head span {
    color: var(--m-muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-m-head strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lp-m-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
}

.lp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--m-border);
    border-radius: 16px;
    background: var(--m-panel);
}

.lp-row-bed {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--m-accent-surface);
    color: var(--m-accent-strong);
    font-size: 11px;
    font-weight: 800;
}

.lp-row-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.lp-row-body strong {
    font-size: 13px;
}

.lp-row-body span {
    overflow: hidden;
    color: var(--m-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-m-dock {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 52px;
    border: 1px solid var(--m-border);
    border-radius: 26px;
    background: rgba(28, 37, 44, 0.92);
    color: var(--m-muted);
}

.lp-m-dock .is-active {
    color: var(--m-accent-strong);
}

.lp-m-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 10px;
    color: var(--m-sub);
}

.lp-m-top strong {
    flex: 1;
    color: var(--m-text);
    font-size: 17px;
    font-weight: 800;
}

.lp-m-top-sub {
    color: var(--m-muted);
    font-size: 11px;
    font-weight: 600;
}

.lp-m-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 16px;
    padding: 3px;
    border-radius: 12px;
    background: var(--m-surface);
    color: var(--m-sub);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.lp-m-seg span {
    padding: 6px 0;
    border-radius: 9px;
}

.lp-m-seg .is-active {
    background: var(--m-panel);
    color: var(--m-text);
}

.lp-m-log {
    position: relative;
    flex: 1;
    margin: 12px 12px 0;
}

.lp-entry {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 62px;
    padding: 8px;
    border: 1px solid var(--m-border);
    border-radius: 16px;
    background: var(--m-panel);
    opacity: 0;
    transform: scale(0.96);
    transition: transform 420ms var(--lp-ease-in-out), opacity 300ms var(--lp-ease-out);
}

.lp-entry.is-on {
    opacity: 1;
}

.lp-m-log--static .lp-entry {
    position: relative;
    margin-bottom: 8px;
    opacity: 1;
    transform: none;
}

.lp-entry-tile {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--m-accent-surface);
    color: var(--m-accent-strong);
}

.lp-entry-tile--photo {
    background: repeating-linear-gradient(to bottom, #DCE3E1 0 5px, #B7C3C0 5px 6px);
    box-shadow: inset 0 0 0 4px #DCE3E1;
}

.lp-entry-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.lp-entry-body strong {
    overflow: hidden;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-entry-body span {
    color: var(--m-muted);
    font-size: 10.5px;
}

.lp-m-bar {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 14px;
    height: 52px;
    border: 1px solid var(--m-border);
    border-radius: 26px;
    background: rgba(28, 37, 44, 0.94);
}

.lp-m-bar--chat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 14px;
    color: var(--m-sub);
}

.lp-m-bar-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 12px;
    color: var(--m-sub);
    opacity: 0;
    transition: opacity 200ms ease;
}

.lp-m-bar[data-state="idle"] .lp-m-bar-idle,
.lp-m-bar[data-state="rec"] .lp-m-bar-rec,
.lp-m-bar[data-state="busy"] .lp-m-bar-busy {
    opacity: 1;
}

.lp-m-input {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 7px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--m-muted);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-m-bar--chat .lp-m-input {
    color: var(--m-text);
}

.lp-m-bar--chat .lp-m-input:empty::before {
    content: 'Message';
    color: var(--m-muted);
}

.lp-m-send {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--m-muted);
}

.lp-m-send--on {
    background: var(--m-text);
    color: var(--m-bg);
}

.lp-m-bar-rec strong,
.lp-m-bar-busy strong {
    color: var(--m-text);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.lp-rec-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #E07A73;
}

.lp-rec-wave {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    height: 22px;
}

.lp-rec-wave i {
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: var(--m-accent);
    transform: scaleY(0.3);
    animation: lp-wave 1s ease-in-out infinite;
    animation-play-state: paused;
}

.lp-rec-wave i:nth-child(2n) { animation-delay: -0.3s; }
.lp-rec-wave i:nth-child(3n) { animation-delay: -0.55s; }
.lp-rec-wave i:nth-child(5n) { animation-delay: -0.8s; }

.lp-m-bar[data-state="rec"] .lp-rec-wave i {
    animation-play-state: running;
}

@keyframes lp-wave {
    50% { transform: scaleY(1); }
}

.lp-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(169, 196, 190, 0.25);
    border-top-color: var(--m-accent-strong);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    animation-play-state: paused;
}

.lp-m-bar[data-state="busy"] .lp-spinner {
    animation-play-state: running;
}

.lp-tap {
    position: absolute;
    left: -18px;
    top: -18px;
    z-index: 6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(232, 238, 241, 0.32);
    opacity: 0;
    pointer-events: none;
}

.lp-flash {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #FFFFFF;
    opacity: 0;
    pointer-events: none;
}

.lp-banner {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 44px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--m-border);
    border-radius: 18px;
    background: rgba(36, 47, 55, 0.97);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(-120%);
    transition: transform 450ms var(--lp-ease-drawer), opacity 300ms ease;
}

.lp-banner.is-on {
    opacity: 1;
    transform: none;
}

.lp-banner img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--m-bg);
}

.lp-banner > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lp-banner strong {
    font-size: 12px;
}

.lp-banner span span {
    overflow: hidden;
    color: var(--m-sub);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Floating cards beside the mocks */

.lp-float {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 240px;
    padding: 14px 16px;
    border: 1px solid var(--m-border);
    border-radius: 16px;
    background: rgba(21, 28, 34, 0.97);
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.75);
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 350ms var(--lp-ease-out), transform 350ms var(--lp-ease-out);
}

.lp-float.is-on {
    opacity: 1;
    transform: none;
}

.lp-float p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.lp-float-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--m-accent-strong);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-mock .lp-float-kicker .app-icon {
    width: 13px;
    height: 13px;
}

.lp-s3-voice {
    left: 0;
    top: 150px;
}

.lp-s3-photo {
    left: 580px;
    top: 330px;
}

/* Chat */

.lp-convs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 8px;
    border-right: 1px solid var(--m-border);
}

.lp-conv {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
}

.lp-conv.is-active {
    background: var(--m-surface);
}

.lp-conv-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--m-accent-surface);
    color: var(--m-accent-strong);
    font-size: 10.5px;
    font-weight: 800;
}

.lp-conv-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.lp-conv-body strong {
    font-size: 12px;
}

.lp-conv-body span {
    overflow: hidden;
    color: var(--m-muted);
    font-size: 10.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-badge {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #E07A73;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 250ms var(--lp-ease-out), transform 250ms var(--lp-ease-out);
}

.lp-badge.is-on {
    opacity: 1;
    transform: none;
}

.lp-thread {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.lp-thread-head {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid var(--m-border);
}

.lp-thread-head strong {
    font-size: 14px;
}

.lp-thread-head span {
    color: var(--m-muted);
    font-size: 11px;
}

.lp-msgs {
    position: relative;
    flex: 1;
    min-height: 0;
    margin: 0 14px 84px;
    overflow: hidden;
}

.lp-msgs--phone {
    margin: 0 10px 76px;
}

.lp-msg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 12px;
    opacity: 0;
    transform: translateY(12px);
    transition: transform 420ms var(--lp-ease-in-out), opacity 300ms var(--lp-ease-out);
}

.lp-msg.is-on {
    opacity: 1;
}

.lp-msg--me {
    justify-content: flex-end;
}

.lp-msg-av {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--m-accent-surface);
    color: var(--m-accent-strong);
    font-size: 9.5px;
    font-weight: 800;
}

.lp-bubble {
    position: relative;
    max-width: 78%;
    padding: 8px 11px;
    border-radius: 14px 14px 14px 4px;
    background: var(--m-surface);
    font-size: 12px;
}

.lp-bubble b {
    display: block;
    margin-bottom: 2px;
    color: var(--m-accent-strong);
    font-size: 10.5px;
}

.lp-msg--me .lp-bubble {
    border-radius: 14px 14px 4px 14px;
    background: #3E6760;
    color: #FFFFFF;
}

.lp-img {
    display: block;
    width: 150px;
    height: 92px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: repeating-linear-gradient(to bottom, #DCE3E1 0 7px, #B7C3C0 7px 8px);
    box-shadow: inset 0 0 0 6px #DCE3E1;
}

.lp-react {
    position: absolute;
    left: 8px;
    bottom: -12px;
    padding: 1px 7px;
    border: 1px solid var(--m-border);
    border-radius: 999px;
    background: var(--m-panel);
    color: var(--m-text);
    font-size: 11px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 250ms var(--lp-ease-out), transform 250ms var(--lp-ease-out);
}

.lp-react.is-on {
    opacity: 1;
    transform: none;
}

.lp-typing {
    position: absolute;
    left: 16px;
    bottom: 62px;
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--m-muted);
    font-size: 11px;
    opacity: 0;
    transition: opacity 200ms ease;
}

.lp-typing.is-on {
    opacity: 1;
}

.lp-typing i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--m-accent);
    animation: lp-dots 1s ease-in-out infinite;
    animation-play-state: paused;
}

.lp-typing i:nth-child(2) { animation-delay: 0.15s; }
.lp-typing i:nth-child(3) { margin-right: 4px; animation-delay: 0.3s; }

.lp-typing.is-on i {
    animation-play-state: running;
}

@keyframes lp-dots {
    50% { opacity: 0.3; transform: translateY(-2px); }
}

.lp-compose {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 4px 0 12px;
    border: 1px solid var(--m-border);
    border-radius: 21px;
    color: var(--m-sub);
}

.lp-compose-input {
    flex: 1;
    color: var(--m-muted);
    font-size: 12px;
}

.lp-compose .lp-m-send {
    flex-basis: 32px;
    height: 32px;
}

/* Team */

.lp-team {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-faces {
    display: flex;
}

.lp-faces .lp-avatar {
    width: 30px;
    height: 30px;
    margin-left: -8px;
    box-shadow: 0 0 0 2px var(--m-bg);
}

.lp-faces .lp-avatar:first-child {
    margin-left: 0;
}

.lp-faces .lp-avatar:nth-child(2) { background: #2B2A1E; color: #D4A24A; }
.lp-faces .lp-avatar:nth-child(3) { background: #2C1F22; color: #E07A73; }
.lp-faces .lp-avatar:nth-child(4) { background: #1E2B24; color: #6EAA88; }

.lp-avatar--new {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 300ms var(--lp-ease-out), transform 300ms var(--lp-ease-out);
}

.lp-avatar--new.is-on {
    opacity: 1;
    transform: none;
}

.lp-tag {
    position: absolute;
    right: 10px;
    top: -10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--m-accent-strong);
    color: #0F151A;
    font-size: 10.5px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 250ms var(--lp-ease-out), transform 250ms var(--lp-ease-out);
}

.lp-mock .lp-tag .app-icon {
    width: 11px;
    height: 11px;
}

.lp-tag.is-on {
    opacity: 1;
    transform: none;
}

.lp-pop {
    position: absolute;
    right: 18px;
    top: 104px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 260px;
    padding: 14px;
    border: 1px solid var(--m-border);
    border-radius: 14px;
    background: var(--m-panel);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 200ms var(--lp-ease-out), transform 200ms var(--lp-ease-out);
}

.lp-pop.is-on {
    opacity: 1;
    transform: none;
}

.lp-pop .lp-field {
    align-self: stretch;
}

.lp-m-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 80px;
    color: var(--m-muted);
    font-size: 12px;
}

.lp-mock .lp-m-empty .app-icon {
    width: 30px;
    height: 30px;
}

.lp-invite {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--m-border);
    border-radius: 18px;
    background: var(--m-surface);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 300ms var(--lp-ease-out), transform 450ms var(--lp-ease-drawer);
}

.lp-invite.is-on {
    opacity: 1;
    transform: none;
}

.lp-invite strong {
    font-size: 13.5px;
}

.lp-invite-acts {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Theme toggle and light theme */

.lp-theme-icons {
    display: inline-grid;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
}

.lp-theme-icons .app-icon {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    transition: opacity 200ms ease, transform 360ms var(--lp-ease-out);
}

.lp-theme-toggle .lp-theme-moon,
html.lp-light .lp-theme-toggle .lp-theme-sun {
    opacity: 0;
    transform: rotate(-70deg) scale(0.5);
}

html.lp-light .lp-theme-toggle .lp-theme-moon {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .lp-theme-icons .app-icon {
        transition: opacity 150ms ease;
    }

    .lp-theme-toggle .lp-theme-moon,
    html.lp-light .lp-theme-toggle .lp-theme-sun {
        transform: none;
    }
}

html.lp-light:has(.landing-body) {
    color-scheme: light;
}

html.lp-light .landing-body {
    --accent: #73958E;
    --accent-strong: #557670;
    --accent-surface: #EEF4F2;
    --accent-surface-strong: #E1EBE8;
    --accent-ring: rgba(115, 149, 142, 0.28);

    --bg: #FFFFFF;
    --bg-page: #F4F7F6;
    --surface: #F3F6F6;
    --surface-hover: #EDF1F1;
    --border: #E3E9E9;
    --border-strong: #D9E0E0;

    --text: #0F1B2A;
    --text-secondary: #5D6B79;
    --text-muted: #8A96A2;

    --action: #14212F;
    --action-hover: #22303F;
    --on-action: #FFFFFF;

    --danger: #C4574F;
    --danger-surface: #FBF0EF;
    --success: #4F8A6A;
    --warning: #B8873A;

    --shadow-soft: 0 1px 2px rgba(15, 27, 42, 0.04);
    --shadow-float: 0 24px 60px -24px rgba(15, 27, 42, 0.22), 0 2px 8px rgba(15, 27, 42, 0.04);
}

html.lp-light .lp-sky {
    background-color: #E6EFEC;
    background-image: var(--lp-sky-light);
}

html.lp-light .lp-sky::after {
    background: linear-gradient(to bottom, rgba(244, 247, 246, 0) 0%, rgba(244, 247, 246, 0.2) 55%, rgba(244, 247, 246, 0.55) 100%);
}

html.lp-light .landing-nav {
    background: rgba(244, 247, 246, 0.7);
    border-bottom-color: rgba(15, 27, 42, 0.06);
}

html.lp-light .lp-lead,
html.lp-light .lp-title,
html.lp-light .lp-card-title,
html.lp-light .landing-final .landing-h2 {
    color: #0F1B2A;
    text-shadow: none;
}

html.lp-light .lp-lead,
html.lp-light .lp-sub,
html.lp-light .lp-card-copy p,
html.lp-light .landing-final p {
    color: rgba(15, 27, 42, 0.7);
}

html.lp-light .lp-points li {
    color: #0F1B2A;
}

html.lp-light .lp-btn--ghost {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 27, 42, 0.12);
    color: #0F1B2A;
}

html.lp-light .lp-pager-btn {
    background: #FFFFFF;
    border-color: rgba(15, 27, 42, 0.12);
    color: #0F1B2A;
}

@media (hover: hover) and (pointer: fine) {
    html.lp-light .lp-pager-btn:hover:not(:disabled) {
        background: #F6F9F8;
        border-color: rgba(15, 27, 42, 0.22);
    }
}

@media (hover: hover) and (pointer: fine) {
    html.lp-light .lp-btn--ghost:hover {
        background: #FFFFFF;
        border-color: rgba(15, 27, 42, 0.22);
    }
}

html.lp-light .lp-card,
html.lp-light .landing-final {
    border-color: rgba(15, 27, 42, 0.08);
    background: linear-gradient(to bottom, #FFFFFF, #F6F9F8);
    box-shadow: 0 -24px 80px -40px rgba(15, 27, 42, 0.25), 0 40px 100px -40px rgba(15, 27, 42, 0.3);
}

html.lp-light .lp-card-shade {
    background: #DDE6E4;
}

html.lp-light .lp-mock {
    --m-bg: #FFFFFF;
    --m-panel: #F8FAFA;
    --m-surface: #EEF2F2;
    --m-border: #E1E8E8;
    --m-text: #0F1B2A;
    --m-sub: #5D6B79;
    --m-muted: #8A96A2;
    --m-accent: #73958E;
    --m-accent-strong: #557670;
    --m-accent-surface: #EEF4F2;
}

html.lp-light .lp-web,
html.lp-light .lp-float {
    box-shadow: 0 30px 70px -30px rgba(15, 27, 42, 0.35);
}

html.lp-light .lp-phone {
    border-color: #2A3840;
    background: #121A20;
    box-shadow: 0 30px 70px -30px rgba(15, 27, 42, 0.45), inset 0 0 0 2px #1E2A31;
}

html.lp-light .lp-status--critical { background: rgba(196, 87, 79, 0.1); color: #C4574F; }
html.lp-light .lp-status--unstable { background: rgba(184, 135, 58, 0.12); color: #9A6F25; }
html.lp-light .lp-status--stable { background: rgba(79, 138, 106, 0.12); color: #3F7A5A; }
html.lp-light .lp-status--observed { background: rgba(85, 118, 112, 0.1); color: #557670; }

html.lp-light .lp-m-dock,
html.lp-light .lp-m-bar,
html.lp-light .lp-banner,
html.lp-light .lp-float {
    background: rgba(255, 255, 255, 0.97);
}

html.lp-light .lp-m-input,
html.lp-light .lp-m-send {
    background: rgba(15, 27, 42, 0.05);
}

html.lp-light .lp-m-send--on {
    background: var(--m-text);
}

html.lp-light .lp-toast {
    background: #0F1B2A;
    color: #FFFFFF;
}

html.lp-light .lp-mock .lp-toast .app-icon {
    color: #A9C4BE;
}

html.lp-light .lp-msg--me .lp-bubble {
    background: #4F7A72;
}

html.lp-light .lp-tap {
    background: rgba(15, 27, 42, 0.16);
}

html.lp-light .lp-tag {
    color: #FFFFFF;
}

html.lp-light .lp-faces .lp-avatar:nth-child(2) { background: #F6EEDC; color: #9A6F25; }
html.lp-light .lp-faces .lp-avatar:nth-child(3) { background: #F8E6E4; color: #B04F48; }
html.lp-light .lp-faces .lp-avatar:nth-child(4) { background: #E4F1EA; color: #3F7A5A; }

@media (prefers-reduced-motion: reduce) {
    .lp-card-copy > *,
    .lp-card-stage > .lp-fit {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 900px), (max-height: 620px) {
    .lp-pager {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 20px;
        flex-direction: row;
        transform: translateX(-50%);
    }

    .lp-panel {
        position: relative;
        height: auto;
        padding: 16px 0;
        scroll-margin-top: 0;
    }

    .lp-panel + .lp-panel {
        margin-top: 0;
    }

    .lp-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        height: auto;
        padding: 32px 24px;
    }
}

@media (max-width: 900px) {
    .landing-nav-toggle {
        display: inline-flex;
        order: 3;
    }

    .landing-nav-links,
    .landing-nav-actions {
        display: contents;
    }

    .landing-nav .sidebar-brand {
        order: 1;
    }

    .landing-nav-spotlight {
        order: 2;
        margin-inline-start: auto;
    }

    .landing-nav-fold {
        display: none;
    }

    .landing-nav.is-open .landing-nav-fold {
        display: flex;
        align-items: center;
        order: 10;
        flex: 1 1 100%;
        width: 100%;
        justify-content: flex-start;
    }

    .landing-nav.is-open .landing-nav-links a.landing-nav-fold:first-child {
        margin-top: 4px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }

    .landing-nav.is-open .lp-theme-toggle {
        width: auto;
        height: auto;
        min-height: 44px;
        padding: 8px 14px;
        margin-bottom: 8px;
    }

    .landing-nav.is-open .landing-nav-theme-label {
        display: inline;
    }

    .lp-hero {
        padding: 64px 0 72px;
    }

    .landing-section {
        padding: 80px 0;
    }
}

@media (max-width: 560px) {
    .landing-container {
        padding: 0 18px;
    }

    .lp-card {
        padding: 26px 18px;
        border-radius: 22px;
    }

    .landing-final {
        padding: 48px 20px;
    }
}

@media (max-width: 420px) {
    .landing-nav-actions .btn-primary {
        display: none;
    }
}

/* ---------- Be first to know ---------- */

html:has(.landing-body) {
    scrollbar-gutter: stable;
}

html.lp-join-lock,
html.lp-join-lock body {
    overflow: hidden;
}

.lp-join-trigger {
    cursor: pointer;
}

.lp-join-trigger.is-joined .lp-join-trigger-label::before {
    content: '';
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    margin-right: 8px;
    vertical-align: -0.12em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lp-join {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 20px 16px;
    border: 0;
    background: transparent;
    color: var(--text);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.lp-join[open] {
    display: grid;
    place-items: center;
}

.lp-join::backdrop {
    background: transparent;
}

.lp-join-scrim {
    position: fixed;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 40%, rgba(10, 15, 19, 0.5), rgba(5, 8, 11, 0.82));
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.lp-join-card {
    position: relative;
    width: min(440px, 100%);
    padding: 34px 28px 28px;
    border: 1px solid rgba(232, 238, 241, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(138, 173, 166, 0.16), rgba(138, 173, 166, 0) 60%),
        linear-gradient(to bottom, #121A20, #0C1216);
    box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transform-origin: center;
    will-change: transform;
}

.lp-join-skin {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #4F7A72;
    opacity: 0;
    pointer-events: none;
}

.lp-join-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, transform 200ms var(--lp-ease-out);
}

.lp-join-close:active {
    transform: scale(0.9);
}

@media (hover: hover) and (pointer: fine) {
    .lp-join-close:hover {
        background: rgba(232, 238, 241, 0.06);
        color: var(--text);
    }
}

.lp-join-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-join-form[hidden] {
    display: none;
}

.lp-join-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}

.lp-join-mark {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    background: var(--accent-strong);
    -webkit-mask: var(--lp-plane) center / contain no-repeat;
    mask: var(--lp-plane) center / contain no-repeat;
    animation: lp-join-drift 4.5s ease-in-out infinite;
}

@keyframes lp-join-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(3px, -4px) rotate(-4deg); }
}

.lp-join-title {
    margin: 0;
    color: #F3F6F7;
    font-family: var(--lp-serif);
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.lp-join-title:focus {
    outline: none;
}

.lp-join-head p,
.lp-join-done p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.lp-join-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lp-join-field > span,
.lp-join-roles legend {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.lp-join-field input,
.lp-join-field textarea,
.lp-join-field select {
    width: 100%;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: rgba(232, 238, 241, 0.03);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 160ms ease, box-shadow 200ms var(--lp-ease-out), background-color 160ms ease;
}

.lp-join-field input,
.lp-join-field select {
    height: 46px;
}

.lp-join-field select {
    padding-right: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E7F89' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.lp-join-field select:required:invalid {
    color: var(--text-muted);
}

.lp-join-field select option {
    color: var(--text);
}

.lp-join-field textarea {
    min-height: 92px;
    padding: 12px 14px;
    resize: vertical;
}

.lp-join-field input::placeholder,
.lp-join-field textarea::placeholder {
    color: var(--text-muted);
}

.lp-join-field input:focus,
.lp-join-field textarea:focus,
.lp-join-field select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(232, 238, 241, 0.05);
    box-shadow: 0 0 0 4px var(--accent-ring);
}

.lp-join-field.is-invalid input,
.lp-join-field.is-invalid textarea,
.lp-join-field.is-invalid select {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(224, 122, 115, 0.18);
}

.lp-join-roles {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.lp-join-roles legend {
    padding: 0;
    margin-bottom: 7px;
}

.lp-join-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.lp-join-role-grid label {
    position: relative;
    cursor: pointer;
}

.lp-join-role-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lp-join-role-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms var(--lp-ease-out);
}

.lp-join-role-grid label:active span {
    transform: scale(0.96);
}

.lp-join-role-grid input:checked + span {
    border-color: var(--accent);
    background: var(--accent-surface-strong);
    color: var(--text);
    animation: lp-join-pick 320ms var(--lp-ease-out);
}

.lp-join-role-grid input:focus-visible + span {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.lp-join-roles.is-invalid .lp-join-role-grid span {
    border-color: rgba(224, 122, 115, 0.6);
}

@keyframes lp-join-pick {
    0% { transform: scale(0.94); }
    55% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@media (hover: hover) and (pointer: fine) {
    .lp-join-role-grid label:hover span {
        border-color: var(--accent);
        color: var(--text);
    }
}

.lp-join-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.lp-join-error {
    margin: -4px 0 0;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 600;
}

.lp-join-error[hidden] {
    display: none;
}

.lp-join-submit {
    position: relative;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 4px;
    overflow: hidden;
    cursor: pointer;
    font-size: 0.95rem;
}

.lp-join-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .lp-join-submit:hover::after {
        transform: translateX(120%);
        transition: transform 700ms var(--lp-ease-out);
    }
}

.lp-join-submit-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 180ms ease, transform 260ms var(--lp-ease-out);
}

.lp-join-submit-label .app-icon {
    transition: transform 220ms var(--lp-ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .lp-join-submit:hover .lp-join-submit-label .app-icon {
        transform: translateX(3px);
    }
}

.lp-join-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(12px) scale(0.6);
    transition: opacity 180ms ease, transform 260ms var(--lp-ease-out);
}

.lp-join-submit.is-loading {
    pointer-events: none;
}

.lp-join-submit.is-loading .lp-join-submit-label {
    opacity: 0;
    transform: translateY(-12px);
}

.lp-join-submit.is-loading .lp-join-spinner {
    opacity: 1;
    transform: none;
    animation: lp-join-spin 700ms linear infinite;
}

@keyframes lp-join-spin {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}

.lp-join-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 4px 0;
    text-align: center;
}

.lp-join-done[hidden] {
    display: none;
}

.lp-join-done p {
    max-width: 32ch;
}

.lp-join-done b {
    color: var(--text);
    font-weight: 600;
    word-break: break-all;
}

.lp-join-done .lp-btn {
    margin-top: 14px;
    cursor: pointer;
}

.lp-join-check {
    position: relative;
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
}

.lp-join-check::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
}

.lp-join-check svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--accent-strong);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-join-check circle {
    fill: rgba(138, 173, 166, 0.12);
    stroke-dasharray: 145;
    stroke-dashoffset: 145;
    transform: rotate(-90deg);
    transform-origin: center;
}

.lp-join-check path {
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
}

.lp-join-check.is-drawn circle {
    animation: lp-join-draw 650ms var(--lp-ease-out) forwards;
}

.lp-join-check.is-drawn path {
    animation: lp-join-draw 380ms var(--lp-ease-out) 420ms forwards;
}

.lp-join-check.is-drawn::after {
    animation: lp-join-ring 800ms var(--lp-ease-out) 560ms;
}

@keyframes lp-join-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes lp-join-ring {
    0% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(1.7); }
}

.lp-join-plane {
    position: fixed;
    z-index: 5;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    background: #A9C4BE;
    -webkit-mask: var(--lp-plane) center / contain no-repeat;
    mask: var(--lp-plane) center / contain no-repeat;
    pointer-events: none;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

html.lp-light .lp-join-scrim {
    background: radial-gradient(120% 90% at 50% 40%, rgba(244, 247, 246, 0.35), rgba(15, 27, 42, 0.35));
}

html.lp-light .lp-join-card {
    border-color: rgba(15, 27, 42, 0.08);
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(115, 149, 142, 0.14), rgba(115, 149, 142, 0) 60%),
        linear-gradient(to bottom, #FFFFFF, #F6F9F8);
    box-shadow: 0 50px 120px -40px rgba(15, 27, 42, 0.45);
}

html.lp-light .lp-join-title {
    color: #0F1B2A;
}

html.lp-light .lp-join-field input,
html.lp-light .lp-join-field textarea,
html.lp-light .lp-join-field select {
    background: #FFFFFF;
}

html.lp-light .lp-join-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A96A2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

html.lp-light .lp-join-plane {
    background: #557670;
    filter: drop-shadow(0 6px 14px rgba(15, 27, 42, 0.2));
}

@media (hover: hover) and (pointer: fine) {
    html.lp-light .lp-join-close:hover {
        background: rgba(15, 27, 42, 0.05);
    }
}

@media (max-width: 480px) {
    .lp-join-card {
        padding: 30px 20px 22px;
        border-radius: 22px;
    }

    .lp-join-title {
        font-size: 1.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-join-mark {
        animation: none;
    }

    .lp-join-check circle,
    .lp-join-check path {
        stroke-dashoffset: 0;
    }
}

/* ---------- Enterprise ---------- */

.ent {
    padding: 56px 0 96px;
}

.ent-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px 56px;
    align-items: center;
}

.ent-kicker {
    margin: 0 0 14px;
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ent-title {
    margin: 0;
    color: #F3F6F7;
    font-family: var(--lp-serif);
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.ent-lead {
    max-width: 52ch;
    margin: 16px 0 0;
    color: rgba(232, 238, 241, 0.86);
    font-size: 1.05rem;
}

.ent-shots {
    margin-top: 28px;
}

.ent-shots-track {
    display: grid;
    touch-action: pan-y;
}

.ent-shot {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(var(--ent-dir, 1) * -24px));
    transition: opacity 320ms var(--lp-ease-out), transform 420ms var(--lp-ease-out), visibility 0s linear 420ms;
}

.ent-shot.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 320ms var(--lp-ease-out) 80ms, transform 420ms var(--lp-ease-out) 80ms, visibility 0s;
}

.ent-shot-title {
    margin: 0 0 14px;
    color: #F3F6F7;
    font-family: var(--lp-serif);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.ent-shot-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.ent-shot-points li {
    position: relative;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.ent-shot-points li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-strong);
}

.ent-shot-points strong {
    color: #F3F6F7;
    font-weight: 600;
}

.ent-viz {
    padding: 18px 18px 16px;
    border: 1px solid rgba(232, 238, 241, 0.1);
    border-radius: 18px;
    background: rgba(11, 16, 20, 0.6);
    color: #E8EEF1;
}

.ent-viz-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ent-viz-head span {
    color: #9AABB5;
    font-size: 12.5px;
    font-weight: 600;
}

.ent-viz-delta {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(110, 170, 136, 0.16);
    color: #6EAA88;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ent-viz-foot {
    margin: 14px 0 0;
    color: #9AABB5;
    font-size: 12.5px;
}

.ent-viz-big {
    margin-right: 2px;
    color: #A9C4BE;
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ent-viz-old {
    color: #E07A73;
    font-weight: 700;
}

.ent-viz-note {
    margin: 14px 0 0;
    color: #6E7F89;
    font-size: 11.5px;
}

/* Waffle: tasks dropped at shift change */

.ent-waffle {
    display: grid;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    gap: 4px;
}

.ent-waffle i {
    aspect-ratio: 1;
    border-radius: 3px;
    background: rgba(232, 238, 241, 0.08);
}

.ent-waffle i.is-drop {
    background: rgba(110, 170, 136, 0.8);
}

.ent-waffle i.is-kept {
    background: #E07A73;
}

/* Gauge: tasks on time */

.ent-gauge {
    display: flex;
    align-items: center;
    gap: 28px;
}

.ent-gauge-dial {
    position: relative;
    flex: 0 0 auto;
    width: 128px;
    height: 128px;
}

.ent-gauge-dial svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ent-gauge-dial circle {
    fill: none;
    stroke-width: 9;
    stroke-dasharray: 100;
}

.ent-gauge-track {
    stroke: rgba(232, 238, 241, 0.07);
    stroke-dashoffset: 0;
}

.ent-gauge-before {
    stroke: rgba(224, 122, 115, 0.45);
    stroke-dashoffset: 36;
}

.ent-gauge-fill {
    stroke: #A9C4BE;
    stroke-linecap: round;
    stroke-dashoffset: 11;
}

.ent-gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ent-gauge-center strong {
    font-size: 26px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.ent-gauge-center span {
    color: #9AABB5;
    font-size: 11px;
}

.ent-gauge-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ent-gauge-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9AABB5;
    font-size: 12.5px;
}

.ent-gauge-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ent-gauge-legend i.is-before { background: rgba(224, 122, 115, 0.7); }
.ent-gauge-legend i.is-after { background: #A9C4BE; }

.ent-gauge-legend b {
    margin-left: 6px;
    color: #E8EEF1;
    font-variant-numeric: tabular-nums;
}

/* Redo: a note rewritten by hand vs carried over */

.ent-redo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ent-redo-card {
    flex: 1;
    min-width: 0;
    padding: 12px 14px 14px;
    border: 1px solid #2A3840;
    border-radius: 12px;
    background: #151C22;
}

.ent-redo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
}

.ent-redo-chip {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(138, 173, 166, 0.16);
    color: #A9C4BE;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.ent-redo-row {
    display: grid;
    grid-template-columns: 14px 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.ent-redo-row em {
    color: #A9C4BE;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 800;
}

.ent-redo-row i {
    position: relative;
    width: calc(var(--l) * 100%);
    height: 7px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(232, 238, 241, 0.06);
}

.ent-redo-row i::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(169, 196, 190, 0.6);
    transform-origin: left center;
}

.ent-redo-time {
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.ent-redo-time span {
    color: #9AABB5;
    font-size: 11.5px;
}

.ent-redo-time strong {
    color: #A9C4BE;
    font-size: 24px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Line: delayed tasks per week */

.ent-line {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.ent-line-grid {
    fill: none;
    stroke: rgba(232, 238, 241, 0.06);
    stroke-width: 1;
}

.ent-line-path {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
}

.ent-line-mark path {
    stroke: rgba(232, 238, 241, 0.25);
    stroke-dasharray: 3 3;
}

.ent-line-mark text {
    fill: #9AABB5;
    font-size: 8.5px;
    font-weight: 600;
}

.ent-line-dot {
    fill: #A9C4BE;
}

/* Load: patients per clinician */

.ent-load {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding-top: 22px;
}

.ent-load-stage {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ent-load-stage span {
    grid-area: 1 / 1;
}

.ent-load-stage .is-before {
    color: #E07A73;
    opacity: 0;
}

.ent-load-stage .is-after {
    color: #A9C4BE;
}

.ent-load-cap {
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: calc(22px + 4 * 13px);
    z-index: 1;
    border-top: 1px dashed rgba(224, 122, 115, 0.6);
}

.ent-load-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 6px;
    height: calc(7 * 13px + 22px);
}

.ent-load-col i {
    height: calc(var(--a) * 13px);
    border-radius: 6px 6px 3px 3px;
    background: #4F7A72;
}

.ent-load-col span {
    color: #9AABB5;
    font-size: 10.5px;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
}

/* Receipt: overtime paid */

.ent-receipt {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ent-receipt-row,
.ent-receipt-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.ent-receipt-row span:first-child {
    color: #9AABB5;
}

.ent-receipt-old {
    position: relative;
    color: #E07A73;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ent-receipt-old::after {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    top: 52%;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform-origin: left center;
}

.ent-receipt-row--new strong {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ent-receipt-total {
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px dashed rgba(110, 170, 136, 0.45);
    border-radius: 12px;
    background: rgba(110, 170, 136, 0.1);
}

.ent-receipt-total span {
    color: #6EAA88;
    font-weight: 700;
}

.ent-receipt-total strong {
    color: #6EAA88;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
    .ent-shot.is-active .ent-viz-delta {
        animation: ent-viz-pop 420ms var(--lp-ease-out) 1900ms both;
    }

    .ent-shot.is-active .ent-waffle i {
        animation: ent-viz-pop 300ms var(--lp-ease-out) calc(var(--i) * 7ms) both;
    }

    .ent-shot.is-active .ent-waffle i.is-drop {
        animation: ent-viz-pop 300ms var(--lp-ease-out) calc(var(--i) * 7ms) both, ent-waffle-red 1ms linear both;
    }

    .ent-shot.is-active .ent-waffle i.is-drop:not(.is-kept) {
        animation:
            ent-viz-pop 300ms var(--lp-ease-out) calc(var(--i) * 7ms) both,
            ent-waffle-fix 420ms ease calc(1300ms + var(--k) * 70ms) both;
    }

    .ent-shot.is-active .ent-gauge-fill {
        animation: ent-gauge-fill 1700ms var(--lp-ease-out) both;
    }

    .ent-shot.is-active .ent-gauge-before {
        animation: ent-viz-fade 300ms ease 700ms both;
    }

    .ent-shot.is-active .ent-redo-row i::after {
        animation:
            ent-redo-type 1100ms linear calc(var(--i) * 120ms) both,
            ent-redo-done 300ms ease 1550ms both;
    }

    .ent-shot.is-active .ent-redo-chip {
        animation: ent-viz-pop 380ms var(--lp-ease-out) 1500ms both;
    }

    .ent-shot.is-active .ent-line-path {
        animation: ent-line-draw 1600ms var(--lp-ease-in-out) both;
    }

    .ent-shot.is-active .ent-line-area {
        animation: ent-viz-fade 500ms ease 1300ms both;
    }

    .ent-shot.is-active .ent-line-mark {
        animation: ent-viz-fade 400ms ease 500ms both;
    }

    .ent-shot.is-active .ent-line-dot {
        animation: ent-viz-pop 380ms var(--lp-ease-out) 1550ms both;
        transform-box: fill-box;
        transform-origin: center;
    }

    .ent-shot.is-active .ent-load-col i {
        animation: ent-load-even 900ms var(--lp-ease-in-out) 1000ms both;
    }

    .ent-shot.is-active .ent-load-col i.is-over {
        animation: ent-load-even-over 900ms var(--lp-ease-in-out) 1000ms both;
    }

    .ent-shot.is-active .ent-load-stage .is-before {
        animation: ent-load-stage-out 1300ms ease both;
    }

    .ent-shot.is-active .ent-load-stage .is-after {
        animation: ent-viz-fade 300ms ease 1000ms both;
    }

    .ent-shot.is-active .ent-receipt-row {
        animation: ent-viz-rise 360ms var(--lp-ease-out) 100ms both;
    }

    .ent-shot.is-active .ent-receipt-old::after {
        animation: ent-receipt-strike 380ms var(--lp-ease-out) 650ms both;
    }

    .ent-shot.is-active .ent-receipt-row--new {
        animation: ent-viz-rise 360ms var(--lp-ease-out) 950ms both;
    }

    .ent-shot.is-active .ent-receipt-total {
        animation: ent-viz-rise 400ms var(--lp-ease-out) 1300ms both;
    }
}

@keyframes ent-viz-pop {
    from { opacity: 0; transform: scale(0.6); }
}

@keyframes ent-viz-fade {
    from { opacity: 0; }
}

@keyframes ent-viz-rise {
    from { opacity: 0; transform: translateY(6px); }
}

@keyframes ent-waffle-red {
    from, to { background: #E07A73; }
}

@keyframes ent-waffle-fix {
    from { background: #E07A73; }
}

@keyframes ent-gauge-fill {
    0% { stroke-dashoffset: 100; }
    40%, 45% { stroke-dashoffset: 36; }
}

@keyframes ent-redo-type {
    0% { transform: scaleX(0); background: rgba(224, 122, 115, 0.7); }
    100% { transform: scaleX(1); background: rgba(224, 122, 115, 0.7); }
}

@keyframes ent-redo-done {
    from { background: rgba(224, 122, 115, 0.7); }
}

@keyframes ent-line-draw {
    from { stroke-dashoffset: 1; }
}

@keyframes ent-load-even {
    0% { height: calc(var(--b) * 13px); }
}

@keyframes ent-load-even-over {
    0% { height: calc(var(--b) * 13px); background: #D4A24A; }
}

@keyframes ent-load-stage-out {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes ent-receipt-strike {
    from { transform: scaleX(0); }
}

.ent-shots-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.ent-shots-arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(232, 238, 241, 0.16);
    border-radius: 50%;
    background: rgba(11, 16, 20, 0.6);
    color: #E8EEF1;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--lp-ease-out);
}

.ent-shots-arrow .app-icon {
    width: 16px;
    height: 16px;
}

.ent-shots-arrow:active {
    transform: scale(0.94);
}

.ent-shots-dots {
    display: flex;
    gap: 8px;
}

.ent-shots-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(232, 238, 241, 0.28);
    cursor: pointer;
    transition: width 240ms var(--lp-ease-out), background-color 200ms ease;
}

.ent-shots-dots button.is-active {
    width: 22px;
    background: var(--accent-strong);
}

.ent-shots-arrow:focus-visible,
.ent-shots-dots button:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .ent-shots-arrow:hover {
        background: rgba(20, 28, 34, 0.92);
        border-color: rgba(232, 238, 241, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ent-shot,
    .ent-shot.is-active {
        transform: none;
        transition: opacity 200ms ease, visibility 0s;
    }
}

.ent-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.ent-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    height: 100%;
    padding: 22px 20px 24px;
    border: 1px solid rgba(232, 238, 241, 0.1);
    border-radius: 18px;
    background: rgba(11, 16, 20, 0.55);
}

.ent-topic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(138, 173, 166, 0.14);
    color: var(--accent-strong);
}

.ent-card h2 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: #F3F6F7;
    font-family: var(--lp-serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.ent-card p {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ent-form-card {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    padding: 28px 24px 24px;
    border: 1px solid rgba(232, 238, 241, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(138, 173, 166, 0.16), rgba(138, 173, 166, 0) 60%),
        linear-gradient(to bottom, #121A20, #0C1216);
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ent-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ent-form[hidden] {
    display: none;
}

.ent-form-head p {
    margin: 8px 0 4px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.ent-form-title {
    margin: 0;
    color: #F3F6F7;
    font-family: var(--lp-serif);
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.ent-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ent-form-done {
    padding: 28px 8px 12px;
}

html.lp-light .ent-title,
html.lp-light .ent-form-title,
html.lp-light .ent-card h2 {
    color: #0F1B2A;
    text-shadow: none;
}

html.lp-light .ent-lead,
html.lp-light .ent-form-head p,
html.lp-light .ent-card p {
    color: rgba(15, 27, 42, 0.7);
}

html.lp-light .ent-card {
    border-color: rgba(15, 27, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

html.lp-light .ent-shot-title,
html.lp-light .ent-shot-points strong {
    color: #0F1B2A;
}

html.lp-light .ent-shot-points li {
    color: rgba(15, 27, 42, 0.7);
}

html.lp-light .ent-viz {
    border-color: rgba(15, 27, 42, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: #0F1B2A;
}

html.lp-light .ent-viz-head span,
html.lp-light .ent-viz-foot,
html.lp-light .ent-gauge-center span,
html.lp-light .ent-gauge-legend li,
html.lp-light .ent-redo-time span,
html.lp-light .ent-load-col span,
html.lp-light .ent-receipt-row span:first-child {
    color: #5D6B79;
}

html.lp-light .ent-viz-delta {
    background: rgba(62, 110, 95, 0.12);
    color: #3E6E5F;
}

html.lp-light .ent-viz-big,
html.lp-light .ent-redo-time strong,
html.lp-light .ent-load-stage .is-after {
    color: #557670;
}

html.lp-light .ent-viz-old,
html.lp-light .ent-receipt-old,
html.lp-light .ent-load-stage .is-before {
    color: #C2564E;
}

html.lp-light .ent-viz-note {
    color: #8A97A3;
}

html.lp-light .ent-waffle i {
    background: rgba(15, 27, 42, 0.08);
}

html.lp-light .ent-waffle i.is-drop {
    background: #6EAA88;
}

html.lp-light .ent-waffle i.is-kept {
    background: #E07A73;
}

html.lp-light .ent-gauge-track {
    stroke: rgba(15, 27, 42, 0.07);
}

html.lp-light .ent-gauge-fill {
    stroke: #557670;
}

html.lp-light .ent-gauge-legend i.is-after {
    background: #557670;
}

html.lp-light .ent-gauge-legend b {
    color: #0F1B2A;
}

html.lp-light .ent-redo-card {
    border-color: rgba(15, 27, 42, 0.1);
    background: #FFFFFF;
}

html.lp-light .ent-redo-chip {
    background: rgba(85, 118, 112, 0.12);
    color: #557670;
}

html.lp-light .ent-redo-row em {
    color: #557670;
}

html.lp-light .ent-redo-row i {
    background: rgba(15, 27, 42, 0.06);
}

html.lp-light .ent-redo-row i::after {
    background: rgba(85, 118, 112, 0.55);
}

html.lp-light .ent-line-grid {
    stroke: rgba(15, 27, 42, 0.07);
}

html.lp-light .ent-line-mark path {
    stroke: rgba(15, 27, 42, 0.25);
}

html.lp-light .ent-line-mark text {
    fill: #5D6B79;
}

html.lp-light .ent-line-dot {
    fill: #557670;
}

html.lp-light .ent-receipt-total span,
html.lp-light .ent-receipt-total strong {
    color: #3E6E5F;
}

html.lp-light .ent-shots-arrow {
    border-color: rgba(15, 27, 42, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: #0F1B2A;
}

html.lp-light .ent-shots-dots button {
    background: rgba(15, 27, 42, 0.2);
}

html.lp-light .ent-shots-dots button.is-active {
    background: var(--accent-strong);
}

@media (hover: hover) and (pointer: fine) {
    html.lp-light .ent-shots-arrow:hover {
        background: #FFFFFF;
        border-color: rgba(15, 27, 42, 0.2);
    }
}

html.lp-light .ent-form-card {
    border-color: rgba(15, 27, 42, 0.08);
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(115, 149, 142, 0.14), rgba(115, 149, 142, 0) 60%),
        linear-gradient(to bottom, #FFFFFF, #F6F9F8);
    box-shadow: 0 40px 100px -40px rgba(15, 27, 42, 0.35);
}

@media (max-width: 900px) {
    .ent-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        margin-top: 40px;
    }

    .ent-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 32px;
    }

    .ent-form-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .ent {
        padding: 36px 0 72px;
    }

    .ent-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .ent-form-card {
        padding: 24px 18px 20px;
    }

    .ent-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- About ---------- */

.about {
    padding: 56px 0 96px;
}

.about-intro {
    max-width: 46rem;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.about-block {
    display: grid;
    grid-template-columns: minmax(200px, 0.38fr) minmax(0, 1fr);
    gap: 16px 40px;
    padding: 28px 28px 30px;
    border: 1px solid rgba(232, 238, 241, 0.1);
    border-radius: 22px;
    background: rgba(11, 16, 20, 0.55);
}

.about-block-head h2 {
    margin: 0;
    color: #F3F6F7;
    font-family: var(--lp-serif);
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.about-block-body p {
    max-width: 62ch;
    margin: 0;
    color: rgba(232, 238, 241, 0.86);
    font-size: 1rem;
    line-height: 1.6;
}

.about-block-body p + p {
    margin-top: 12px;
}

.about-problems {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-problems li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.about-problems .ent-topic-icon {
    margin-top: -4px;
}

.about-problems strong {
    color: #F3F6F7;
    font-weight: 600;
}

.about-founders {
    margin-top: 64px;
}

.about-founders-title {
    margin: 0 0 24px;
    color: #F3F6F7;
    font-family: var(--lp-serif);
    font-size: clamp(1.7rem, 3.2vw, 2.35rem);
    font-weight: 500;
    letter-spacing: -0.015em;
}

.about-founder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.about-founder {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 20px;
    border: 1px solid rgba(232, 238, 241, 0.1);
    border-radius: 22px;
    background: rgba(11, 16, 20, 0.55);
}

.about-founder-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    margin-bottom: 16px;
    background: var(--accent-surface);
}

.about-founder-photo--empty {
    display: grid;
    place-items: center;
    color: var(--text-muted);
}

.about-founder-photo--empty .app-icon {
    width: 40px;
    height: 40px;
}

.about-founder-role {
    margin: 0;
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-founder-name {
    margin: 8px 0 0;
    color: #F3F6F7;
    font-family: var(--lp-serif);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.about-founder--empty .about-founder-name {
    color: var(--text-muted);
}

.about-founder-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

.about-founder-link .app-icon {
    width: 16px;
    height: 16px;
}

@media (hover: hover) and (pointer: fine) {
    .about-founder-link:hover {
        color: var(--accent-strong);
    }
}

html.lp-light .about-founders-title,
html.lp-light .about-founder-name,
html.lp-light .about-block-head h2,
html.lp-light .about-problems strong {
    color: #0F1B2A;
    text-shadow: none;
}

html.lp-light .about-block {
    border-color: rgba(15, 27, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

html.lp-light .about-block-body p,
html.lp-light .about-problems li {
    color: rgba(15, 27, 42, 0.72);
}

html.lp-light .about-founder {
    border-color: rgba(15, 27, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

html.lp-light .about-founder-photo--empty {
    background: #EEF4F2;
}

@media (max-width: 900px) {
    .about-founder-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 400px;
    }

    .about-block {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .about {
        padding: 36px 0 72px;
    }

    .about-block {
        padding: 22px 18px 24px;
    }
}

