:root {
    color-scheme: light;
    --bg: #eef2f6;
    --panel: rgba(255, 255, 255, 0.96);
    --line: rgba(24, 32, 43, 0.10);
    --text: #18202b;
    --muted: #647184;
    --accent: #1f4f68;
    --accent-dark: #183c50;
    --accent-soft: #e6eef4;
    --accent-strong: #152d3c;
    --shadow: 0 18px 40px rgba(18, 27, 38, 0.05);
    --display-font: "Gill Sans", "Trebuchet MS", Verdana, sans-serif;
}

.concept-ledger-clean {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: clamp(16px, 4vw, 54px);
    background:
        radial-gradient(circle at 82% 12%, rgba(31, 79, 104, 0.12), transparent 24%),
        linear-gradient(135deg, #e9f0f4 0%, #f8fafc 100%);
    color: #102033;
}

.ledger-clean-sheet {
    width: min(100%, 1160px);
    min-height: min(760px, calc(100vh - 44px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
    padding: clamp(24px, 5vw, 70px);
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 42px;
    background:
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(31, 79, 104, 0.065) 48px 49px),
        rgba(255, 255, 255, 0.78);
    box-shadow: 0 40px 120px rgba(15, 45, 60, 0.16);
}

.ledger-clean-copy h1 {
    max-width: 720px;
    margin: 42px 0 0;
    font-family: var(--display-font);
    font-size: clamp(2.45rem, 5.3vw, 5.2rem);
    font-weight: 520;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.ledger-clean-copy p {
    max-width: 610px;
    margin: 24px 0 0;
    color: #526779;
    font-size: 1.07rem;
    line-height: 1.72;
}

.ledger-clean-auth .auth-form-wrap {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ledger-clean-auth .auth-tabs {
    background: #edf3f7;
}

.ledger-clean-auth .auth-tab {
    color: #526779;
}

.ledger-clean-auth .auth-tab.is-active {
    background: #ffffff;
    color: #102033;
}

.ledger-clean-auth .auth-form-wrap label,
.ledger-clean-auth .form-subtitle,
.ledger-clean-auth .auth-panel-footer {
    color: #102033;
}

.ledger-clean-auth .auth-panel-footer {
    opacity: 0.68;
}

.ledger-clean-auth .text-link {
    color: #1f4f68;
    border-bottom-color: rgba(31, 79, 104, 0.28);
}

.ledger-clean-auth .auth-info-panel {
    border-color: #dce6ee;
    background: #f8fafc;
    color: #102033;
}

@media (max-width: 960px) {
    .concept-ledger-clean {
        padding: 14px;
    }

    .ledger-clean-sheet {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 28px;
    }

    .ledger-clean-auth {
        order: 1;
    }

    .ledger-clean-copy {
        order: 2;
    }

    .ledger-clean-copy h1 {
        font-size: clamp(2rem, 11vw, 3.6rem);
    }
}

.concept-ledgercards {
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 54px);
    background:
        radial-gradient(circle at 82% 18%, rgba(31, 79, 104, 0.14), transparent 24%),
        linear-gradient(135deg, #e9f0f4 0%, #f8fafc 54%, #e6eef4 100%);
    color: #102033;
}

.ledgercards-shell {
    width: min(100%, 1200px);
    min-height: min(780px, calc(100vh - 44px));
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
    padding: clamp(22px, 5vw, 68px);
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 44px;
    background:
        repeating-linear-gradient(0deg, transparent 0 51px, rgba(31, 79, 104, 0.06) 52px 53px),
        rgba(255, 255, 255, 0.74);
    box-shadow: 0 38px 120px rgba(15, 45, 60, 0.16);
}

.ledgercards-story h1 {
    max-width: 680px;
    margin: 22px 0 0;
    font-family: var(--display-font);
    font-size: clamp(2.45rem, 5.3vw, 5.1rem);
    font-weight: 520;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.ledgercards-story p {
    max-width: 590px;
    margin: 24px 0 0;
    color: #526779;
    font-size: 1.06rem;
    line-height: 1.72;
}

.ledgercards-story .landing-kicker {
    margin-top: 42px;
}

.ledgercards-lines {
    display: grid;
    gap: 12px;
    width: min(100%, 420px);
    margin-top: 34px;
}

.ledgercards-lines span {
    height: 12px;
    border-radius: 999px;
    background: rgba(31, 79, 104, 0.12);
}

.ledgercards-lines span:nth-child(2) {
    width: 78%;
}

.ledgercards-lines span:nth-child(3) {
    width: 54%;
}

.ledgercards-visual {
    display: grid;
    gap: 20px;
}

.ledgercards-deck {
    position: relative;
    min-height: 320px;
}

.ledgercards-card {
    position: absolute;
    display: grid;
    align-content: space-between;
    gap: 18px;
    border: 1px solid rgba(31, 79, 104, 0.12);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 28px 90px rgba(15, 45, 60, 0.16);
    color: #102033;
}

.ledgercards-card-main {
    inset: 12px auto auto 0;
    width: min(100%, 460px);
    min-height: 190px;
    padding: 28px;
    border-radius: 34px;
    transform: rotate(-3deg);
}

.ledgercards-card-side {
    right: 0;
    top: 70px;
    width: 240px;
    min-height: 132px;
    padding: 22px;
    border-radius: 28px;
    transform: rotate(5deg);
}

.ledgercards-card-note {
    left: 92px;
    bottom: 0;
    width: 230px;
    min-height: 120px;
    padding: 22px;
    border-radius: 28px;
    transform: rotate(1deg);
}

.ledgercards-card span {
    color: #64748b;
}

.ledgercards-card strong {
    color: #152d3c;
    font-family: var(--display-font);
    font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.ledgercards-card-main p {
    margin: 0;
    color: #526779;
}

.ledgercards-auth .auth-form-wrap {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 30px;
    box-shadow: 0 24px 80px rgba(15, 45, 60, 0.14);
}

.ledgercards-auth .auth-tabs {
    background: #edf3f7;
}

.ledgercards-auth .auth-tab {
    color: #526779;
}

.ledgercards-auth .auth-tab.is-active {
    background: #ffffff;
    color: #102033;
}

.ledgercards-auth .auth-form-wrap label,
.ledgercards-auth .form-subtitle,
.ledgercards-auth .auth-panel-footer {
    color: #102033;
}

.ledgercards-auth .text-link {
    color: #1f4f68;
    border-bottom-color: rgba(31, 79, 104, 0.26);
}

.ledgercards-auth .auth-info-panel {
    border-color: #dce6ee;
    background: #f8fafc;
    color: #102033;
}

@media (max-width: 860px) {
    .concept-ledgercards {
        padding: 14px;
    }

    .ledgercards-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 18px;
        border-radius: 28px;
    }

    .ledgercards-visual {
        order: 1;
    }

    .ledgercards-story {
        order: 2;
    }

    .ledgercards-deck {
        min-height: 380px;
    }

    .ledgercards-card-main {
        width: 82%;
    }

    .ledgercards-card-side {
        right: 0;
        top: 110px;
    }

    .ledgercards-card-note {
        left: 12px;
        bottom: 0;
    }

    .ledgercards-story h1 {
        font-size: clamp(2rem, 11vw, 3.6rem);
    }
}

/* Landing concept styles */
.concept {
    min-height: 100vh;
    overflow: hidden;
}

.concept-logo {
    display: block;
    width: auto;
    height: 46px;
    max-width: 210px;
}

.concept-logo-light {
    height: 40px;
}

.concept .auth-form-wrap {
    width: min(100%, 460px);
}

.concept-auth-ledger .auth-form-wrap,
.concept-auth-terminal .auth-form-wrap,
.splitcards-auth .auth-form-wrap {
    border-radius: 28px;
}

.concept-ledger {
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 56px);
    background:
        radial-gradient(circle at 80% 12%, rgba(31, 79, 104, 0.12), transparent 24%),
        linear-gradient(135deg, #e9f0f4 0%, #f8fafc 100%);
    color: #102033;
}

.ledger-sheet {
    width: min(100%, 1180px);
    min-height: min(760px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 490px);
    gap: clamp(22px, 5vw, 70px);
    align-items: center;
    padding: clamp(24px, 5vw, 70px);
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 42px;
    background:
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(31, 79, 104, 0.08) 48px 49px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
    box-shadow: 0 40px 120px rgba(15, 45, 60, 0.16);
}

.ledger-left h1 {
    max-width: 720px;
    margin: 46px 0 0;
    font-family: var(--display-font);
    font-size: clamp(2.4rem, 5.4vw, 5.4rem);
    font-weight: 520;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.ledger-left p {
    max-width: 620px;
    margin: 26px 0 0;
    color: #526779;
    font-size: 1.08rem;
    line-height: 1.72;
}

.ledger-lines {
    display: grid;
    gap: 12px;
    width: min(100%, 420px);
    margin-top: 44px;
}

.ledger-lines span {
    height: 12px;
    border-radius: 999px;
    background: rgba(31, 79, 104, 0.14);
}

.ledger-lines span:nth-child(2) { width: 82%; }
.ledger-lines span:nth-child(3) { width: 68%; }
.ledger-lines span:nth-child(4) { width: 90%; }
.ledger-lines span:nth-child(5) { width: 54%; }

.concept-auth-ledger .auth-form-wrap {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dce6ee;
    box-shadow: 0 26px 80px rgba(15, 45, 60, 0.14);
}

.concept-auth-ledger .auth-tabs,
.concept-auth-ledger .auth-tab.is-active,
.splitcards-auth .auth-tabs,
.splitcards-auth .auth-tab.is-active {
    background: #ffffff;
}

.concept-auth-ledger .auth-tabs,
.splitcards-auth .auth-tabs {
    background: #edf3f7;
}

.concept-auth-ledger .auth-tab,
.splitcards-auth .auth-tab {
    color: #526779;
}

.concept-auth-ledger .auth-form-wrap label,
.concept-auth-ledger .form-subtitle,
.concept-auth-ledger .auth-panel-footer,
.splitcards-auth .auth-form-wrap label,
.splitcards-auth .form-subtitle,
.splitcards-auth .auth-panel-footer {
    color: #102033;
}

.concept-auth-ledger .text-link,
.splitcards-auth .text-link {
    color: #1f4f68;
    border-bottom-color: rgba(31, 79, 104, 0.28);
}

.concept-terminal {
    display: grid;
    align-content: start;
    padding: clamp(18px, 4vw, 54px);
    background:
        linear-gradient(90deg, rgba(230, 238, 244, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(230, 238, 244, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 82% 18%, rgba(56, 160, 255, 0.2), transparent 24%),
        #07131b;
    background-size: 46px 46px, 46px 46px, auto, auto;
    color: #f8fbff;
}

.terminal-top {
    width: min(100%, 1180px);
    margin: 0 auto clamp(42px, 8vw, 86px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: rgba(248, 251, 255, 0.58);
}

.terminal-grid {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 500px);
    gap: clamp(28px, 6vw, 92px);
    align-items: center;
}

.terminal-command {
    width: fit-content;
    padding: 10px 14px;
    border: 1px solid rgba(230, 238, 244, 0.18);
    border-radius: 999px;
    background: rgba(230, 238, 244, 0.08);
    color: rgba(230, 238, 244, 0.82);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-copy h1 {
    max-width: 820px;
    margin: 24px 0 0;
    font-family: var(--display-font);
    font-size: clamp(2.7rem, 6.3vw, 6.2rem);
    font-weight: 540;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.terminal-stack {
    display: grid;
    gap: 12px;
    max-width: 560px;
    margin-top: 38px;
}

.terminal-stack div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 16px;
    border: 1px solid rgba(230, 238, 244, 0.14);
    border-radius: 16px;
    background: rgba(230, 238, 244, 0.06);
}

.terminal-stack span {
    color: rgba(230, 238, 244, 0.46);
}

.concept-auth-terminal .auth-form-wrap {
    background: rgba(7, 19, 27, 0.72);
    border: 1px solid rgba(230, 238, 244, 0.2);
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(18px);
}

.concept-auth-terminal .auth-tabs {
    background: rgba(230, 238, 244, 0.1);
}

.concept-auth-terminal .auth-tab {
    color: rgba(248, 251, 255, 0.62);
}

.concept-auth-terminal .auth-tab.is-active {
    background: rgba(230, 238, 244, 0.88);
    color: #102033;
}

.concept-auth-terminal .auth-form-wrap label,
.concept-auth-terminal .form-subtitle,
.concept-auth-terminal .auth-panel-footer {
    color: rgba(248, 251, 255, 0.86);
}

.concept-auth-terminal .text-link {
    color: #e6eef4;
    border-bottom-color: rgba(230, 238, 244, 0.32);
}

.concept-splitcards {
    display: grid;
    grid-template-columns: minmax(380px, 520px) minmax(0, 1fr);
    min-height: 100vh;
    background: #f8fafc;
}

.concept-splitcards-contained {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: clamp(14px, 3vw, 42px);
    background:
        radial-gradient(circle at 80% 18%, rgba(31, 79, 104, 0.12), transparent 24%),
        #edf3f7;
}

.splitcards-contained-wrap {
    width: min(100%, 1280px);
}

.splitcards-contained-shell {
    width: 100%;
    min-height: min(820px, calc(100vh - 40px));
    display: grid;
    grid-template-columns: minmax(380px, 500px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dce6ee;
    border-radius: 38px;
    background: #f8fafc;
    box-shadow: 0 34px 110px rgba(15, 45, 60, 0.16);
}

.splitcards-auth-branded {
    align-content: center;
    gap: 26px;
}

.splitcards-auth-logo {
    justify-self: start;
    margin-bottom: 4px;
}

.splitcards-auth-branded .auth-panel-footer {
    display: none;
}

.splitcards-auth-branded .auth-panel-intro {
    display: none;
}

.splitcards-auth-branded .actions {
    align-items: center;
}

.splitcards-auth-branded .actions button[type="submit"] {
    border-radius: 9px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}

.splitcards-auth-branded [data-auth-tab-panel="login"] .actions .text-button[data-auth-tab-trigger="about"],
.splitcards-auth-branded [data-auth-tab-panel="register"] .actions .text-button[data-auth-tab-trigger="about"] {
    display: none;
}

.splitcards-mini-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
    margin-top: 18px;
    color: #526779;
    font-size: 0.92rem;
}

.splitcards-mini-footer a {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f4f68;
    box-shadow: none;
    font: inherit;
    text-decoration: none;
}

/* ==========================================================================
   HOME-2 / INDEX-2 LANDING PAGE
   Saistīts ar:
   - public/index-2.php
   - app/Views/home-2.php

   Droši labo šīs .adtool-* klases, ja gribi mainīt index-2 landing lapu.
   Šis bloks nav paredzēts esošajai index.php sākumlapai vai app iekšējām lapām.
   ========================================================================== */
.concept-adtool {
    min-height: 100vh;
    padding: clamp(14px, 2.4vw, 32px);
    background:
        radial-gradient(circle at 12% 14%, rgba(49, 130, 206, 0.10), transparent 28%),
        linear-gradient(180deg, #fbfdff 0%, #f3f8fb 100%);
}

.adtool-page {
    width: min(100%, 1320px);
    margin: 0 auto;
}

.adtool-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: clamp(34px, 6vw, 76px);
}

.adtool-topbar-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #102033;
    font-weight: 800;
    text-decoration: none;
}

.adtool-topbar-logo img {
    width: 150px;
    height: auto;
}

.adtool-topbar-nav,
.adtool-topbar-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #526779;
    font-size: 0.9rem;
}

.adtool-topbar-nav a,
.adtool-topbar-actions a {
    color: inherit;
    text-decoration: none;
}

.adtool-topbar-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    background: #134b5f;
    color: #fff;
    text-align: center;
}

.adtool-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: clamp(34px, 6vw, 72px);
    align-items: center;
}

.adtool-badge {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #edf7ff;
    color: #2b6f9f;
    font-size: 0.84rem;
    font-weight: 700;
}

.adtool-hero-copy h1 {
    margin: 0;
    color: #102033;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
}

.adtool-hero-copy h1 span {
    display: block;
    color: #2a7bc8;
}

.adtool-hero-copy p {
    max-width: 600px;
    margin: 24px 0 0;
    color: #253847;
    font-size: clamp(1.16rem, 1.6vw, 1.32rem);
    font-weight: 650;
    line-height: 1.56;
}

.adtool-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 30px;
}

.button.adtool-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    background: #134b5f;
    color: #fff;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.adtool-free-limit {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(19, 75, 95, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #5d7082;
    font-size: 0.95rem;
    line-height: 1.35;
    box-shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
}

.adtool-free-limit strong {
    margin-right: 4px;
    color: #102033;
}

.adtool-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 28px;
    color: #5d7082;
    font-size: 0.9rem;
}

.adtool-trust-row span::before {
    content: "◇";
    margin-right: 7px;
    color: #2a7bc8;
}

.adtool-browser {
    padding: 16px;
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 26px 80px rgba(16, 32, 51, 0.12);
}

.adtool-browser-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.adtool-browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
}

.adtool-document-stack {
    position: relative;
    display: grid;
    justify-items: center;
    min-height: 480px;
    padding: 20px 20px 88px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(42, 123, 200, 0.12), transparent 30%),
        linear-gradient(145deg, #f8fafc 0%, #eef4f8 100%);
}

.adtool-hero-document {
    width: min(78%, 360px);
    transform: rotate(-1.5deg);
}

.adtool-hero-document img {
    display: block;
    width: 100%;
    background: #fff;
    box-shadow: 0 26px 70px rgba(16, 32, 51, 0.16);
}

.adtool-hero-note {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: grid;
    gap: 5px;
    width: min(78%, 330px);
    padding: 18px 20px;
    background: #134b5f;
    color: #fff;
    box-shadow: 0 18px 42px rgba(19, 75, 95, 0.24);
}

.adtool-hero-note span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.42;
}

.adtool-feature-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 54px;
    overflow: hidden;
    border: 1px solid #dfeaf3;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 48px rgba(16, 32, 51, 0.06);
}

.adtool-feature-row div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 5px 12px;
    padding: 22px 24px;
    border-right: 1px solid #d7e5f0;
}

.adtool-feature-icon {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2a7bc8;
    font-weight: 800;
}

.adtool-feature-icon img {
    width: 32px;
    height: 32px;
    display: block;
}

.adtool-feature-row div:last-child {
    border-right: 0;
}

.adtool-feature-row strong {
    color: #102033;
}

.adtool-feature-row span {
    color: #526779;
    font-size: 0.9rem;
    line-height: 1.42;
}

.adtool-docs-preview {
    display: grid;
    gap: 22px;
    justify-items: center;
    margin-top: 48px;
    text-align: center;
}

.adtool-docs-preview h2 {
    margin: 0;
    color: #102033;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.adtool-docs-preview p {
    margin: 8px 0 0;
    color: #5d7082;
}

.adtool-doc-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 20px;
    width: min(100%, 1040px);
    align-items: start;
}

.adtool-doc-card {
    appearance: none;
    display: grid;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 40px rgba(16, 32, 51, 0.08);
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.adtool-doc-card:hover,
.adtool-doc-card:focus-visible {
    border-color: rgba(19, 75, 95, 0.32);
    box-shadow: 0 20px 52px rgba(16, 32, 51, 0.14);
    transform: translateY(-3px);
}

.adtool-doc-card:focus-visible {
    outline: 3px solid rgba(19, 75, 95, 0.22);
    outline-offset: 3px;
}

.adtool-doc-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1191 / 1684;
    object-fit: cover;
    object-position: top;
    border: 1px solid #edf2f7;
    background: #fff;
}

.adtool-doc-card span {
    color: #102033;
    font-weight: 700;
    font-size: 0.95rem;
}

.adtool-doc-dialog {
    width: min(96vw, 980px);
    max-height: 92vh;
    padding: 18px;
    border: 0;
    background: #f8fafc;
    box-shadow: 0 32px 90px rgba(16, 32, 51, 0.32);
}

.adtool-doc-dialog::backdrop {
    background: rgba(9, 24, 36, 0.58);
    backdrop-filter: blur(4px);
}

.adtool-doc-dialog-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    color: #102033;
}

.adtool-doc-dialog-close {
    border: 0;
    padding: 8px 12px;
    background: #134b5f;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.adtool-doc-dialog img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(92vh - 78px);
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 12px 38px rgba(16, 32, 51, 0.16);
}

.adtool-bottom-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr) minmax(190px, 0.9fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 42px;
    padding: 18px 22px;
    border: 1px solid rgba(19, 75, 95, 0.13);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    color: #102033;
    box-shadow: 0 18px 46px rgba(16, 32, 51, 0.08);
}

.adtool-bottom-cta div {
    display: grid;
    gap: 4px;
}

.adtool-bottom-cta span {
    color: #5d7082;
    font-size: 0.86rem;
}

.adtool-bottom-cta .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #134b5f;
    color: #fff;
    line-height: 1;
    text-align: center;
}

@media (max-width: 980px) {
    .adtool-topbar-nav {
        display: none;
    }

    .adtool-hero,
    .adtool-feature-row,
    .adtool-bottom-cta {
        grid-template-columns: 1fr;
    }

    .adtool-feature-row div {
        border-right: 0;
        border-bottom: 1px solid #d7e5f0;
    }

    .adtool-feature-row div:last-child {
        border-bottom: 0;
    }

}

@media (max-width: 680px) {
    .concept-adtool {
        padding: 12px;
    }

    .adtool-topbar {
        margin-bottom: 28px;
    }

    .adtool-topbar-actions a:first-child {
        display: none;
    }

    .adtool-document-stack {
        min-height: 390px;
        padding: 16px 12px 92px;
    }

    .adtool-hero-document {
        width: min(88%, 300px);
    }

    .adtool-hero-note {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
    }

    .adtool-doc-cards {
        grid-template-columns: 1fr;
        width: min(100%, 360px);
    }
}
/* END HOME-2 / INDEX-2 LANDING PAGE */

.public-info-page {
    background:
        radial-gradient(circle at 82% 18%, rgba(31, 79, 104, 0.1), transparent 24%),
        linear-gradient(135deg, #e9f0f4 0%, #f8fafc 100%);
}

.public-about {
    min-height: 100vh;
    padding: clamp(18px, 4vw, 54px);
    padding-top: clamp(108px, 12vw, 132px);
    color: #102033;
}

.public-page-header {
    z-index: 40;
}

.public-page-header-inner {
    width: min(1180px, calc(100% - 4px));
}

.public-page-nav {
    justify-content: center;
}

.public-page-auth-nav {
    justify-content: flex-end;
}

.public-about-topbar {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0 28px;
}

.public-about-logo img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 210px;
}

.public-about-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.public-about-menu a {
    padding: 10px 13px;
    border: 1px solid rgba(31, 79, 104, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: #1f4f68;
    text-decoration: none;
    font-weight: 600;
}

.public-about-layout {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(22px, 5vw, 70px);
    align-items: start;
}

.public-about-index {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
}

.public-about-index span {
    color: #64748b;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-about-index a {
    color: #1f4f68;
    text-decoration: none;
    font-weight: 600;
}

.public-about-content {
    display: grid;
    gap: clamp(28px, 5vw, 58px);
    max-width: 860px;
}

.public-about-panel {
    display: grid;
    gap: clamp(28px, 5vw, 58px);
    padding: clamp(24px, 5vw, 58px);
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 28px 90px rgba(15, 45, 60, 0.12);
}

.public-about-panel .landing-kicker-muted {
    border-color: rgba(31, 79, 104, 0.22);
    background: rgba(31, 79, 104, 0.1);
    color: #183c50;
}

.public-about-content section {
    scroll-margin-top: 30px;
}

.public-about-content h1 {
    max-width: 760px;
    margin: 18px 0 0;
    color: #102033;
    font-family: var(--display-font);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 520;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.public-about-content h2 {
    margin: 0;
    color: #102033;
    font-family: var(--display-font);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 520;
    letter-spacing: -0.035em;
}

.public-about-content p {
    margin: 18px 0 0;
    color: #526779;
    font-size: 1.06rem;
    line-height: 1.75;
}

.public-about-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.public-about-cards article,
.public-about-cta {
    padding: 20px;
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
}

.public-about-cards strong {
    color: #102033;
    font-family: var(--display-font);
    font-size: 1.08rem;
}

.public-about-cards p {
    margin-top: 10px;
    font-size: 0.98rem;
}

.public-about-steps {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: about-step;
}

.public-about-steps li {
    counter-increment: about-step;
    position: relative;
    padding: 18px 18px 18px 58px;
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    color: #526779;
    line-height: 1.65;
}

.public-about-steps li::before {
    content: counter(about-step);
    position: absolute;
    left: 18px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #1f4f68;
    color: #fff;
    font-weight: 700;
}

.public-about-steps strong {
    color: #102033;
}

.public-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.public-about-footer {
    width: min(100%, 1180px);
    margin: clamp(34px, 6vw, 70px) auto 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(31, 79, 104, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    color: #64748b;
    font-size: 0.92rem;
    text-align: center;
}

.public-about-footer a {
    color: #1f4f68;
    text-decoration: none;
    font-weight: 400;
}

.public-info-hero {
    min-height: 100vh;
    padding: clamp(18px, 5vw, 72px);
}

.public-info-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.public-info-logo img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 220px;
}

.public-info-card {
    margin-top: clamp(28px, 6vw, 72px);
    padding: clamp(26px, 6vw, 74px);
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 38px;
    background:
        repeating-linear-gradient(0deg, transparent 0 51px, rgba(31, 79, 104, 0.055) 52px 53px),
        rgba(255, 255, 255, 0.78);
    box-shadow: 0 34px 110px rgba(15, 45, 60, 0.14);
}

.public-info-card h1 {
    max-width: 840px;
    margin: 22px 0 0;
    color: #102033;
    font-family: var(--display-font);
    font-size: clamp(2.4rem, 5.6vw, 5.4rem);
    font-weight: 520;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.public-info-card p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #526779;
    font-size: 1.08rem;
    line-height: 1.72;
}

.public-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.public-info-grid article {
    padding: 18px;
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
}

.public-info-grid strong,
.public-info-grid span {
    display: block;
}

.public-info-grid strong {
    color: #102033;
    font-family: var(--display-font);
    font-size: 1.08rem;
}

.public-info-grid span {
    margin-top: 9px;
    color: #526779;
    line-height: 1.55;
}

.public-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

@media (max-width: 860px) {
    .public-info-hero {
        padding: 14px;
    }

    .public-info-card {
        border-radius: 26px;
        padding: 22px;
    }

    .public-about-panel {
        border-radius: 24px;
        padding: 20px;
    }

    .public-info-grid {
        grid-template-columns: 1fr;
    }

    .public-about {
        padding: 14px;
    }

    .public-about-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 22px;
    }

    .public-about-layout {
        grid-template-columns: 1fr;
    }

    .public-about-index {
        position: static;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
    }

    .public-about-cards {
        grid-template-columns: 1fr;
    }
}

.splitcards-auth {
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 54px);
    background: #ffffff;
    border-right: 1px solid #dce6ee;
}

.splitcards-auth .auth-form-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.splitcards-world {
    position: relative;
    display: grid;
    align-content: center;
    gap: clamp(28px, 5vw, 70px);
    padding: clamp(28px, 7vw, 92px);
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 24%, rgba(31, 79, 104, 0.16), transparent 26%),
        linear-gradient(135deg, #e6eef4 0%, #f8fafc 68%);
}

.splitcards-deck {
    position: relative;
    min-height: 300px;
}

.splitcards-deck article {
    position: absolute;
    width: min(76vw, 360px);
    min-height: 150px;
    display: grid;
    align-content: space-between;
    padding: 24px;
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 28px 80px rgba(15, 45, 60, 0.16);
}

.splitcards-deck article:nth-child(1) {
    left: 0;
    top: 0;
    transform: rotate(-5deg);
}

.splitcards-deck article:nth-child(2) {
    left: 180px;
    top: 70px;
    transform: rotate(4deg);
}

.splitcards-deck article:nth-child(3) {
    left: 70px;
    top: 150px;
    transform: rotate(-1deg);
}

.splitcards-deck span {
    color: #64748b;
}

.splitcards-deck strong {
    color: #152d3c;
    font-family: var(--display-font);
    font-size: 2rem;
}

.splitcards-copy h1 {
    max-width: 720px;
    margin: 0;
    color: #102033;
    font-family: var(--display-font);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 520;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.splitcards-copy p {
    max-width: 620px;
    margin: 22px 0 0;
    color: #526779;
    font-size: 1.08rem;
    line-height: 1.72;
}

@media (max-width: 860px) {
    .concept-ledger,
    .concept-terminal {
        padding: 14px;
    }

    .ledger-sheet,
    .terminal-grid,
    .concept-splitcards {
        grid-template-columns: 1fr;
    }

    .concept-splitcards {
        display: grid;
    }

    .splitcards-contained-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 24px;
    }

    .splitcards-mini-footer {
        margin-top: 14px;
        padding: 0 6px;
    }

    .splitcards-auth {
        border-right: 0;
        border-bottom: 1px solid #dce6ee;
    }

    .ledger-sheet {
        min-height: auto;
        border-radius: 26px;
    }

    .ledger-left,
    .terminal-copy,
    .splitcards-world {
        order: 2;
    }

    .concept-auth,
    .splitcards-auth {
        order: 1;
    }

    .ledger-left h1,
    .terminal-copy h1,
    .splitcards-copy h1 {
        font-size: clamp(2rem, 11vw, 3.6rem);
    }

    .terminal-top {
        margin-bottom: 24px;
    }

    .splitcards-deck {
        min-height: 360px;
    }

    .splitcards-deck article:nth-child(2) {
        left: 24px;
    }

    .splitcards-deck article:nth-child(3) {
        left: 0;
        top: 190px;
    }
}

/* Alternate landing concept styles */
.auth-backdrop-aurora {
    background:
        radial-gradient(circle at 18% 22%, rgba(90, 180, 220, 0.42), transparent 24%),
        radial-gradient(circle at 76% 10%, rgba(230, 238, 244, 0.28), transparent 22%),
        radial-gradient(circle at 55% 82%, rgba(31, 79, 104, 0.38), transparent 28%),
        linear-gradient(135deg, #071720 0%, #102033 48%, #1f4f68 100%);
}

.landing-v6-grid,
.landing-v8-grid {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: grid;
    align-items: center;
    gap: clamp(28px, 6vw, 88px);
}

.landing-v6-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(400px, 500px);
}

.landing-v6-copy {
    color: #f8fbff;
}

.landing-v6-copy h1 {
    max-width: 800px;
    margin: 18px 0 0;
    font-family: var(--display-font);
    font-size: clamp(3rem, 7vw, 6.7rem);
    font-weight: 540;
    letter-spacing: -0.065em;
    line-height: 0.96;
}

.landing-v6-copy p {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(248, 251, 255, 0.78);
    font-size: 1.1rem;
    line-height: 1.7;
}

.landing-v6-orbit {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.landing-v6-orbit span {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(248, 251, 255, 0.82);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.landing-auth-neon .auth-form-wrap {
    background: rgba(8, 23, 32, 0.42);
    border: 1px solid rgba(230, 238, 244, 0.26);
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(230, 238, 244, 0.08) inset;
    backdrop-filter: blur(26px) saturate(1.18);
}

.landing-auth-neon .auth-tabs {
    background: rgba(255, 255, 255, 0.12);
}

.landing-auth-neon .auth-tab {
    color: rgba(248, 251, 255, 0.68);
}

.landing-auth-neon .auth-tab.is-active {
    background: rgba(230, 238, 244, 0.88);
    color: #102033;
}

.landing-auth-neon .auth-form-wrap label,
.landing-auth-neon .form-subtitle,
.landing-auth-neon .auth-panel-footer {
    color: rgba(248, 251, 255, 0.88);
}

.landing-auth-neon .text-link {
    color: #e6eef4;
    border-bottom-color: rgba(230, 238, 244, 0.36);
}

.landing-auth-neon .auth-info-panel {
    border-color: rgba(230, 238, 244, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #f8fbff;
}

.landing-auth-neon .auth-info-panel .list-item {
    background: rgba(255, 255, 255, 0.86);
    color: #102033;
}

.auth-backdrop-calm {
    background:
        radial-gradient(circle at 10% 16%, rgba(31, 79, 104, 0.08), transparent 22%),
        linear-gradient(135deg, #eef4f7 0%, #f8fafc 48%, #e6eef4 100%);
}

.landing-v7-card {
    width: min(100%, 1080px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    padding: clamp(22px, 4vw, 54px);
    border: 1px solid rgba(31, 79, 104, 0.1);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 30px 90px rgba(15, 45, 60, 0.12);
}

.landing-v7-copy {
    color: #102033;
}

.landing-kicker-muted {
    border-color: rgba(31, 79, 104, 0.14);
    background: rgba(31, 79, 104, 0.06);
    color: #1f4f68;
}

.landing-v7-copy h1,
.landing-v9-copy h1 {
    max-width: 680px;
    margin: 18px 0 0;
    font-family: var(--display-font);
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    font-weight: 520;
    letter-spacing: -0.052em;
    line-height: 1.03;
}

.landing-v7-copy p,
.landing-v9-copy p {
    max-width: 560px;
    margin: 22px 0 0;
    color: #526779;
    font-size: 1.05rem;
    line-height: 1.7;
}

.landing-v7-notes {
    display: grid;
    gap: 10px;
    max-width: 520px;
    margin-top: 30px;
}

.landing-v7-notes span {
    padding: 12px 14px;
    border-left: 3px solid #1f4f68;
    border-radius: 14px;
    background: rgba(31, 79, 104, 0.06);
    color: #1b3548;
}

.landing-auth-calm .auth-form-wrap,
.landing-auth-editorial .auth-form-wrap {
    background: #ffffff;
    border: 1px solid #dce6ee;
    box-shadow: 0 22px 70px rgba(15, 45, 60, 0.12);
}

.landing-auth-calm .auth-tabs,
.landing-auth-editorial .auth-tabs {
    background: #eef4f7;
}

.landing-auth-calm .auth-tab,
.landing-auth-editorial .auth-tab {
    color: #526779;
}

.landing-auth-calm .auth-tab.is-active,
.landing-auth-editorial .auth-tab.is-active {
    background: #ffffff;
    color: #102033;
}

.landing-auth-calm .auth-form-wrap label,
.landing-auth-calm .form-subtitle,
.landing-auth-calm .auth-panel-footer,
.landing-auth-editorial .auth-form-wrap label,
.landing-auth-editorial .form-subtitle,
.landing-auth-editorial .auth-panel-footer {
    color: #102033;
}

.landing-auth-calm .text-link,
.landing-auth-editorial .text-link {
    color: #1f4f68;
    border-bottom-color: rgba(31, 79, 104, 0.26);
}

.landing-auth-calm .auth-info-panel,
.landing-auth-editorial .auth-info-panel {
    border-color: #dce6ee;
    background: #f8fafc;
    color: #102033;
}

.auth-backdrop-desk {
    background:
        radial-gradient(circle at 80% 16%, rgba(230, 238, 244, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(15, 35, 48, 0.9), rgba(31, 79, 104, 0.66)),
        url("../images/bg-optimized.jpg") center center / cover no-repeat;
}

@supports (background-image: url("../images/bg-optimized.webp")) {
    .auth-backdrop-desk {
        background:
            radial-gradient(circle at 80% 16%, rgba(230, 238, 244, 0.18), transparent 26%),
            linear-gradient(135deg, rgba(15, 35, 48, 0.9), rgba(31, 79, 104, 0.66)),
            url("../images/bg-optimized.webp") center center / cover no-repeat;
    }
}

.landing-v8-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(400px, 520px);
}

.landing-v8-board,
.landing-v8-copy {
    color: #fff8f1;
}

.landing-v8-miniapp {
    width: min(100%, 620px);
    margin-top: 36px;
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    color: #102033;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.3);
}

.landing-v8-miniapp-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid #1f4f68;
}

.landing-v8-miniapp-head strong {
    font-family: var(--display-font);
    font-size: 2rem;
    color: #152d3c;
}

.landing-v8-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #dce6ee;
}

.landing-v8-side {
    display: grid;
    gap: 22px;
}

.landing-v8-copy h1 {
    max-width: 560px;
    margin: 16px 0 0;
    font-family: var(--display-font);
    font-size: clamp(2.2rem, 4.4vw, 4.4rem);
    font-weight: 520;
    letter-spacing: -0.052em;
    line-height: 1.03;
}

.landing-v8-copy p {
    margin: 18px 0 0;
    color: rgba(255, 248, 241, 0.74);
    line-height: 1.65;
}

.landing-auth-compact .auth-form-wrap {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.44);
    box-shadow: 0 26px 80px rgba(4, 18, 28, 0.26);
    backdrop-filter: blur(14px);
}

.landing-auth-compact .auth-tabs {
    background: rgba(230, 238, 244, 0.82);
}

.landing-auth-compact .auth-tab {
    color: #486273;
}

.landing-auth-compact .auth-tab.is-active {
    background: #ffffff;
    color: #102033;
}

.landing-auth-compact .auth-form-wrap label,
.landing-auth-compact .form-subtitle,
.landing-auth-compact .auth-panel-footer {
    color: #102033;
}

.landing-auth-compact .text-link {
    color: #1f4f68;
    border-bottom-color: rgba(31, 79, 104, 0.28);
}

.landing-auth-compact .auth-info-panel {
    border-color: #d8e4ee;
    background: #f8fafc;
    color: #102033;
}

.auth-backdrop-editorial {
    background:
        linear-gradient(90deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.9)),
        url("../images/bg-optimized.jpg") center center / cover no-repeat;
}

.landing-v9-grid {
    width: min(100%, 1060px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 450px);
    gap: clamp(24px, 5vw, 58px);
    align-items: center;
}

.landing-v9-copy {
    color: #102033;
}

.landing-auth-editorial .auth-form-wrap {
    border-radius: 10px;
    box-shadow: none;
}

@media (max-width: 860px) {
    .landing-v6-grid,
    .landing-v7-card,
    .landing-v8-grid,
    .landing-v9-grid {
        grid-template-columns: 1fr;
    }

    .landing-v6-grid .auth-panel,
    .landing-v7-card .auth-panel,
    .landing-v8-grid .auth-panel,
    .landing-v9-grid .auth-panel {
        order: -1;
    }

    .landing-v6-copy h1,
    .landing-v7-copy h1,
    .landing-v8-copy h1,
    .landing-v9-copy h1 {
        font-size: clamp(2.05rem, 11vw, 3.4rem);
    }

    .landing-v7-card {
        border-radius: 24px;
        padding: 18px;
    }

    .landing-v8-miniapp {
        margin-top: 18px;
        border-radius: 24px;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #edf2f7;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31, 79, 104, 0.05), transparent 18%),
        radial-gradient(circle at top right, rgba(21, 45, 60, 0.04), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100vh, 100% 100vh, 100% 100vh;
    color: var(--text);
}

body.landing-page {
    background: #111;
    min-height: 100vh;
}

a {
    color: var(--accent-dark);
}

.shell {
    width: min(1440px, calc(100% - 28px));
    margin: 20px auto 36px;
}

.app-shell {
    display: grid;
    gap: 18px;
}

.user-content-area.is-loading {
    opacity: 0.45;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 252, 247, 0.74);
    backdrop-filter: blur(10px);
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 252, 247, 0.74);
    backdrop-filter: blur(10px);
}

.user-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 16px 24px;
    background:
        linear-gradient(180deg, rgba(31, 31, 31, 0.97), rgba(51, 51, 51, 0.95)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    color: #f5f7fa;
}

.user-header-inner {
    width: min(1460px, calc(100% - 4px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.user-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.user-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.74);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.user-nav a.active,
.user-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.user-nav-toggle svg {
    width: 18px;
    height: 18px;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-bell {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.notification-bell svg {
    width: 19px;
    height: 19px;
}

.notification-bell:hover,
.notification-bell.is-active {
    color: #ffffff;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #f59e0b;
    color: #1f2937;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.95);
    animation: notificationPulse 1.8s ease-in-out infinite;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 4px 6px 8px;
    border-radius: 999px;
    text-decoration: none;
    background: transparent;
    border: 0;
    color: #f5f7fa;
    box-shadow: none;
    transition: opacity 140ms ease, transform 140ms ease;
}

.profile-chip:hover {
    opacity: 0.96;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-copy {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.profile-copy strong {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.15;
}

.profile-copy span {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.78rem;
}

.app-topbar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-user-badge {
    display: grid;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.app-user-badge strong {
    font-size: 0.95rem;
}

.app-user-badge span {
    color: var(--muted);
    font-size: 0.88rem;
}

.app-frame {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 24px;
}

.sidebar-nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sidebar-nav a {
    display: block;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
    border: 1px solid transparent;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
}

.content-area {
    display: grid;
    gap: 20px;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 12px 28px rgba(13, 59, 64, 0.22);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 42px;
}

.brand-logo img {
    display: block;
    width: auto;
    max-width: 150px;
    height: 34px;
    object-fit: contain;
}

.user-header .brand-logo img {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.brand-copy strong {
    display: block;
    font-size: 1rem;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.92rem;
}

.user-header .brand-copy span {
    color: rgba(255, 255, 255, 0.62);
}

.user-header .brand-copy strong {
    color: #ffffff;
}

.user-header .brand-mark {
    background: linear-gradient(135deg, #1d6f76 0%, #183c50 100%);
    box-shadow: 0 12px 28px rgba(16, 63, 68, 0.3);
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.nav a {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--muted);
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.nav a.active,
.nav a:hover {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
}

.card {
    background: var(--panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.82) 18%, transparent 100%);
    pointer-events: none;
}

.hero {
    margin-bottom: 20px;
}

.hero h1,
.hero h2,
.hero h3 {
    margin: 0 0 8px;
}

.hero p {
    margin: 0;
    color: var(--muted);
    max-width: 66ch;
}

.hero-title-xl {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.95;
    margin-top: 16px;
}

.hero-title-lg {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-top: 10px;
}

.user-page-title {
    margin: 8px 0 0;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 0.95;
}

.user-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    background: linear-gradient(135deg, #ffffff 0%, #f1f7f6 100%);
}

.user-hero-copy p {
    margin-top: 10px;
    max-width: 64ch;
}

.user-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.quick-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 42px rgba(48, 33, 22, 0.06);
}

.quick-card h2 {
    margin: 8px 0;
    font-size: 1.4rem;
}

.quick-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

.quick-card a {
    text-decoration: none;
    font-weight: 700;
}

.workspace-board {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 18px;
}

.workspace-panel {
    background: rgba(255, 255, 255, 0.72);
}

.workflow-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.workflow-item {
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
}

.workflow-item p {
    margin: 6px 0 0;
    color: var(--muted);
}

.workflow-item-muted {
    background: #f7f2ea;
}

.profile-summary {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.profile-row span {
    color: var(--muted);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 20px;
    align-items: stretch;
}

.auth-stage {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 8, 0.34) 0%, rgba(8, 8, 8, 0.34) 100%),
        url("../images/bg-optimized.jpg") center center / cover no-repeat;
}

@supports (background-image: url("../images/bg-optimized.webp")) {
    .auth-backdrop {
        background:
            linear-gradient(180deg, rgba(8, 8, 8, 0.34) 0%, rgba(8, 8, 8, 0.34) 100%),
            url("../images/bg-optimized.webp") center center / cover no-repeat;
    }
}

.auth-shell {
    position: relative;
    z-index: 1;
    padding: 24px;
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.auth-panel {
    width: min(100%, 520px);
}

.text-link {
    color: #fff7f0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 245, 238, 0.35);
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.auth-form-wrap {
    background: rgba(245, 239, 231, 0.18);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    padding: 28px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 18px;
}

.auth-tab {
    border: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: transparent;
    color: rgba(255, 247, 240, 0.72);
    cursor: pointer;
    box-shadow: none;
}

.auth-tab.is-active {
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.is-active {
    display: block;
}

.form-head {
    margin-bottom: 16px;
}

.form-title {
    margin: 0;
    color: #fff8f1;
    font-size: 2rem;
    font-weight: 400;
}

.form-subtitle {
    margin: 8px 0 0;
    color: rgba(255, 244, 236, 0.78);
}

.auth-panel-intro {
    margin: 0 0 16px;
}

.auth-form-wrap label {
    color: #fff9f2;
}

.auth-form-wrap input,
.auth-form-wrap select,
.auth-form-wrap textarea {
    background: rgba(255, 255, 255, 0.92);
}

.auth-info-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff9f2;
    line-height: 1.55;
}

.auth-info-panel p {
    margin: 0;
}

.auth-info-panel .list-item {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(255, 255, 255, 0.22);
    color: #102033;
}

.auth-info-panel .muted {
    color: #64748b;
}

.auth-panel-footer {
    margin: 22px 0 0;
    text-align: center;
    color: rgba(255, 244, 236, 0.72);
    font-size: 0.88rem;
}

.auth-shell-wide {
    width: 100%;
    padding: clamp(20px, 4vw, 54px);
}

.landing-logo-mark {
    width: min(100%, 1180px);
    margin: 0 auto 18px;
}

.landing-logo-mark img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 190px;
}

.landing-logo-mark-inline {
    width: auto;
    margin: 0 0 24px;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: rgba(255, 248, 241, 0.82);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-v2-grid,
.landing-v3-grid,
.landing-v4-grid {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: grid;
    align-items: center;
    gap: clamp(22px, 4vw, 56px);
}

.landing-v2-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 520px);
}

.landing-copy-card {
    color: #fff8f1;
}

.landing-copy-card-glass {
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(20, 45, 60, 0.58), rgba(31, 79, 104, 0.28));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
}

.landing-copy-card h1,
.landing-hero-copy h1,
.landing-v4-copy h1 {
    margin: 18px 0 0;
    font-family: var(--display-font);
    font-weight: 520;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.landing-copy-card h1 {
    max-width: 740px;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.landing-copy-card p,
.landing-hero-copy p,
.landing-v4-copy p {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 248, 241, 0.78);
    font-size: clamp(1rem, 1.6vw, 1.14rem);
    line-height: 1.68;
}

.landing-step-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.landing-step-row div {
    min-height: 110px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    align-content: space-between;
}

.landing-step-row span {
    color: rgba(255, 248, 241, 0.58);
    font-size: 0.8rem;
}

.landing-step-row strong {
    color: #fff8f1;
    font-family: var(--display-font);
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.auth-backdrop-soft {
    background:
        radial-gradient(circle at 16% 18%, rgba(230, 238, 244, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(15, 35, 48, 0.82), rgba(31, 79, 104, 0.56)),
        url("../images/bg-optimized.jpg") center center / cover no-repeat;
}

@supports (background-image: url("../images/bg-optimized.webp")) {
    .auth-backdrop-soft {
        background:
            radial-gradient(circle at 16% 18%, rgba(230, 238, 244, 0.18), transparent 24%),
            linear-gradient(135deg, rgba(15, 35, 48, 0.82), rgba(31, 79, 104, 0.56)),
            url("../images/bg-optimized.webp") center center / cover no-repeat;
    }
}

.landing-v3-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 500px);
}

.landing-hero-copy {
    color: #fff8f1;
}

.landing-hero-copy h1 {
    max-width: 720px;
    font-size: clamp(2.7rem, 5.4vw, 5.3rem);
    line-height: 1.03;
}

.landing-audience-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.landing-audience-row span {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 248, 241, 0.8);
    font-size: 0.9rem;
}

.landing-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
    margin-top: 30px;
}

.landing-benefit-grid div {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.landing-benefit-grid strong,
.landing-benefit-grid span {
    display: block;
}

.landing-benefit-grid strong {
    color: #fff8f1;
    font-family: var(--display-font);
    font-size: 1.02rem;
}

.landing-benefit-grid span {
    margin-top: 8px;
    color: rgba(255, 248, 241, 0.72);
    font-size: 0.9rem;
    line-height: 1.5;
}

.landing-proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    color: rgba(255, 248, 241, 0.66);
    font-size: 0.9rem;
}

.landing-proof-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.landing-proof-strip span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #e6eef4;
    box-shadow: 0 0 0 4px rgba(230, 238, 244, 0.12);
}

.landing-auth-raised .auth-form-wrap,
.landing-auth-solid .auth-form-wrap {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22));
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: 0 28px 76px rgba(4, 18, 28, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(24px) saturate(1.12);
}

.landing-auth-raised .auth-tabs,
.landing-auth-solid .auth-tabs {
    background: rgba(230, 238, 244, 0.46);
}

.landing-auth-raised .auth-tab,
.landing-auth-solid .auth-tab {
    color: #486273;
}

.landing-auth-raised .auth-tab.is-active,
.landing-auth-solid .auth-tab.is-active {
    background: rgba(255, 255, 255, 0.76);
    color: #102033;
}

.landing-auth-raised .form-title,
.landing-auth-solid .form-title,
.landing-auth-raised .auth-form-wrap label,
.landing-auth-solid .auth-form-wrap label {
    color: #102033;
}

.landing-auth-raised .form-subtitle,
.landing-auth-solid .form-subtitle {
    color: #1b3548;
}

.landing-auth-raised .text-link,
.landing-auth-solid .text-link {
    color: #1f4f68;
    border-bottom-color: rgba(31, 79, 104, 0.24);
}

.landing-auth-raised .auth-panel-footer,
.landing-auth-solid .auth-panel-footer {
    color: #1b3548;
    font-weight: 560;
    text-shadow: 0 1px 14px rgba(255, 255, 255, 0.42);
}

.landing-auth-raised .auth-info-panel,
.landing-auth-solid .auth-info-panel {
    border-color: rgba(216, 228, 238, 0.72);
    background: rgba(248, 250, 252, 0.54);
    color: #102033;
}

.landing-auth-raised .auth-info-panel .list-item,
.landing-auth-solid .auth-info-panel .list-item {
    background: #ffffff;
    border-color: #e2e8f0;
}

.auth-backdrop-minimal {
    background:
        radial-gradient(circle at 72% 20%, rgba(31, 79, 104, 0.2), transparent 28%),
        radial-gradient(circle at 20% 80%, rgba(230, 238, 244, 0.16), transparent 24%),
        linear-gradient(135deg, #102033 0%, #152d3c 54%, #1f4f68 100%);
}

.landing-v4-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 500px);
}

.landing-product-preview {
    color: #fff8f1;
}

.landing-document-stack {
    position: relative;
    min-height: 360px;
    display: grid;
    align-items: center;
}

.landing-doc-card {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.9);
    color: #102033;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}

.landing-doc-main {
    width: min(100%, 640px);
    padding: clamp(24px, 4vw, 42px);
    border-radius: 34px;
    transform: rotate(-2deg);
}

.landing-doc-small {
    position: absolute;
    right: 4%;
    bottom: 0;
    min-width: 220px;
    padding: 22px;
    border-radius: 28px;
    transform: rotate(4deg);
}

.landing-doc-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 2px solid #1f4f68;
}

.landing-doc-head span,
.landing-doc-small span {
    color: #64748b;
    font-size: 0.86rem;
}

.landing-doc-head strong,
.landing-doc-small strong {
    font-family: var(--display-font);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: #152d3c;
}

.landing-doc-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #dce6ee;
}

.landing-v4-copy {
    margin-top: 34px;
}

.landing-v4-copy h1 {
    max-width: 760px;
    font-size: clamp(2.4rem, 5.6vw, 5.2rem);
}

.landing-v5-grid {
    width: min(100%, 1120px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
    align-items: center;
    gap: clamp(26px, 6vw, 78px);
}

.landing-v5-copy {
    color: #fff8f1;
}

.landing-v5-copy h1 {
    max-width: 700px;
    margin: 18px 0 0;
    font-family: var(--display-font);
    font-size: clamp(2.45rem, 5.2vw, 5rem);
    font-weight: 520;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.landing-v5-copy p {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255, 248, 241, 0.76);
    font-size: 1.05rem;
    line-height: 1.7;
}

.landing-v5-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.landing-v5-flow span {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 248, 241, 0.78);
}

.landing-v5-flow span + span::before {
    content: "->";
    margin-right: 10px;
    color: rgba(255, 248, 241, 0.44);
}

.landing-auth-paper .auth-form-wrap {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 26px 70px rgba(4, 18, 28, 0.22);
    backdrop-filter: blur(8px);
}

.landing-auth-paper .auth-tabs {
    background: #eaf1f6;
}

.landing-auth-paper .auth-tab {
    color: #486273;
}

.landing-auth-paper .auth-tab.is-active {
    background: #ffffff;
    color: #102033;
}

.landing-auth-paper .auth-form-wrap label,
.landing-auth-paper .form-subtitle,
.landing-auth-paper .auth-panel-footer {
    color: #102033;
}

.landing-auth-paper .auth-panel-footer {
    opacity: 0.68;
}

.landing-auth-paper .text-link {
    color: #1f4f68;
    border-bottom-color: rgba(31, 79, 104, 0.28);
}

.landing-auth-paper .auth-info-panel {
    border-color: #d8e4ee;
    background: #f8fafc;
    color: #102033;
}

.hero-side {
    display: grid;
    gap: 12px;
    align-content: start;
}

.flash {
    padding: 12px 14px;
    border-radius: 16px;
    margin: 0 0 16px;
}

.flash-spaced {
    margin-top: 18px;
}

.flash-error {
    background: #fbeaea;
    color: #6d1d1d;
    border: 1px solid #e5b9b9;
}

.flash-success {
    background: #edf7ec;
    color: #214f22;
    border: 1px solid #b8d7ba;
}

.toast-container {
    position: fixed;
    right: 24px;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 140;
}

.toast {
    min-width: 280px;
    max-width: 380px;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 24px 60px rgba(18, 27, 38, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    color: var(--text);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: toast-in 0.25s ease-out;
    position: relative;
    overflow: hidden;
}

.toast.success {
    border-left: 4px solid #22c55e;
    color: #14532d;
}

.toast.error {
    border-left: 4px solid #ef4444;
    color: #7f1d1d;
}

.toast.info,
.toast.warning {
    border-left: 4px solid #0ea5e9;
    color: #0c4a6e;
}

.toast .icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: currentColor;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.16);
    flex: 0 0 auto;
}

.toast-copy {
    line-height: 1.4;
}

.toast .close {
    margin-left: auto;
    cursor: pointer;
    color: var(--muted);
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.toast .progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.6;
    animation: toast-progress 4.5s linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0; }
}

@keyframes toast-in {
    from {
        transform: translateY(-6px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 500;
    color: #475569;
}

label > span {
    font-weight: 500;
    color: #475569;
    font-size: 0.92rem;
}

input,
textarea,
select,
button {
    font: inherit;
    border-radius: 14px;
}

input,
textarea,
select {
    border: 1px solid var(--line);
    padding: 13px 14px;
    background: #fff;
    width: 100%;
    color: #0f172a;
    font-weight: 500;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button,
.button {
    display: inline-block;
    font-family: var(--display-font);
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    padding: 12px 18px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(24, 60, 80, 0.16);
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

button:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(24, 60, 80, 0.18);
}

.text-button:hover,
.text-link:hover {
    transform: none;
    box-shadow: none;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-strong);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button-danger {
    background: linear-gradient(135deg, #b33b2d 0%, #8c261b 100%);
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form {
    display: inline;
}

.actions-spaced {
    margin-top: 24px;
}

.grid {
    display: grid;
    gap: 16px;
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.stat {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(252,247,242,0.9) 100%);
}

.stat strong {
    display: block;
    font-size: 2rem;
    margin-top: 10px;
}

.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.list {
    display: grid;
    gap: 12px;
}

.list-offset {
    margin-top: 14px;
}

.list-item {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--line);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

.section-title {
    margin: 0 0 6px;
    font-family: var(--display-font);
    font-weight: 600;
    letter-spacing: 0.005em;
    color: #0f172a;
}

.footer-note {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.public-faq-list {
    display: grid;
    gap: 12px;
}

.public-faq-item {
    border: 1px solid rgba(100, 116, 139, 0.14);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.72);
    overflow: hidden;
}

.public-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    color: #102033;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.public-faq-item summary::-webkit-details-marker {
    display: none;
}

.public-faq-item summary::after {
    content: "+";
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
}

.public-faq-item[open] summary::after {
    content: "−";
}

.public-faq-item[open] summary {
    border-bottom: 1px solid rgba(100, 116, 139, 0.12);
}

.public-faq-item p {
    margin: 0;
    padding: 14px 18px 16px;
}

.dialog-card {
    width: min(100% - 24px, 560px);
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    padding: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.dialog-card:not([open]) {
    display: none;
}

.dialog-card::backdrop {
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

.dialog-close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.dialog-close {
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    color: #475569;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    box-shadow: none;
    padding: 0;
}

.dialog-card .muted {
    color: #64748b;
}

.dialog-card .list-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.about-dialog-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(245, 239, 231, 0.96), rgba(255, 255, 255, 0.94)),
        radial-gradient(circle at top left, rgba(31, 79, 104, 0.12), transparent 30%);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.about-dialog-card::backdrop {
    background: rgba(8, 10, 14, 0.82);
    backdrop-filter: blur(14px);
}

.about-dialog-card .section-title {
    color: #102033;
}

.about-dialog-card .eyebrow {
    color: #1f4f68;
}

.about-dialog-card .list-item {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.28);
}

.button-catalog-accent {
    border-color: #1f4f68;
    background: linear-gradient(180deg, #1d6f76 0%, #183c50 100%);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(16, 63, 68, 0.22);
}

.button-catalog-accent:hover {
    border-color: #1f4f68;
    background: linear-gradient(180deg, #20727a 0%, #12484d 100%);
    color: #ffffff;
}

.feedback-dialog {
    width: min(560px, calc(100vw - 32px));
}

.onboarding-exit-dialog {
    width: min(520px, calc(100vw - 28px));
}

.onboarding-exit-form {
    gap: 12px;
}

.choice-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    padding: 12px 14px;
    color: #1f2937;
    line-height: 1.35;
}

.choice-row input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.choice-row span {
    min-width: 0;
}

.onboarding-exit-actions {
    gap: 10px;
}

.feedback-item {
    gap: 14px;
}

.feedback-item-body {
    color: #334155;
    line-height: 1.6;
}

.feedback-admin-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 20px;
}

.support-broadcast-panel {
    border-color: #bfdbfe;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #eff6ff 100%);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.08);
}

.support-broadcast-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.support-broadcast-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.support-broadcast-icon svg {
    width: 20px;
    height: 20px;
}

.support-broadcast-pill {
    background: #dbeafe;
    color: #1d4ed8;
}

.support-broadcast-list {
    gap: 12px;
}

.support-broadcast-item {
    border-color: #bfdbfe;
    border-left: 4px solid #2563eb;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.06);
}

.support-broadcast-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.support-broadcast-item strong {
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.35;
    font-weight: 500;
}

.support-broadcast-item > p {
    margin-top: 10px;
    color: #111827 !important;
    font-size: 1rem !important;
    line-height: 1.72 !important;
    font-weight: 600 !important;
}

.support-broadcast-item .stack-meta {
    margin-top: 10px;
    color: #64748b;
    font-size: 0.84rem;
}

.support-broadcast-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-support-layout {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.support-ticket-link {
    display: grid;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.support-ticket-link.is-active {
    background: #f8fbff;
    border-color: #cfe0ff;
}

.support-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.support-ticket-status {
    margin-left: 0;
    align-self: flex-start;
    padding: 3px 8px;
    font-size: 0.72rem;
}

.support-thread {
    display: grid;
    gap: 14px;
}

.feedback-thread {
    margin-top: 10px;
}

.support-message {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.support-message-user {
    background: #f8fbff;
}

.support-message-admin {
    background: #f8fafc;
}

.support-message-root {
    border-left: 3px solid #f59e0b;
}

.feedback-root-message {
    margin-top: 10px;
}

.support-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 0.86rem;
}

.support-message-body {
    color: #0f172a;
    line-height: 1.6;
}

.support-admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.support-action-card {
    padding: 16px;
    border: 1px solid var(--line);
    background: #fff;
    align-self: start;
    height: auto;
}

.feedback-list-filter {
    margin-bottom: 10px;
}

.feedback-list-filter select {
    min-width: 220px;
    min-height: 36px;
    padding: 6px 10px;
}

.feedback-admin-layout {
    margin-top: 10px;
    gap: 14px;
}

.feedback-admin-layout > .card {
    padding: 16px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    margin-left: 6px;
}

.status-ok,
.status-info {
    background: #e4f4ea;
    color: #1f6c40;
}

.status-warning {
    background: #fff1d7;
    color: #865500;
}

.status-error,
.status-security {
    background: #fce6e6;
    color: #8f2222;
}

.status-new {
    background: #e8f1ff;
    color: #1d4ed8;
}

.status-reviewing {
    background: #fff1d7;
    color: #9a5b00;
}

.status-done {
    background: #e4f4ea;
    color: #1f6c40;
}

.meta-line {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.data-table th {
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.table-empty {
    color: var(--muted);
    padding: 24px 12px;
}

.page-feedback-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 600;
}

.page-feedback-trigger svg {
    width: 18px;
    height: 18px;
}

.page-heading h1 {
    display: none;
}

.page-heading p {
    display: none;
}

.document-toolbar {
    padding-top: 18px;
    padding-bottom: 18px;
}

.toolbar-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) auto;
    gap: 14px;
    align-items: end;
}

.toolbar-actions {
    justify-content: flex-start;
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    gap: 18px;
}

.document-workspace {
    display: grid;
    gap: 20px;
}

.document-editor {
    min-width: 0;
}

.document-editor-wide {
    width: 100%;
}

.document-surface-head {
    align-items: center;
    margin-bottom: 8px;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.document-surface-head .section-title {
    color: #0f172a;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.document-surface-head .muted {
    max-width: 56ch;
}

.archive-link-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    text-decoration: none;
    color: #16405a;
    border: 1px solid rgba(31, 79, 104, 0.18);
    background: rgba(31, 79, 104, 0.05);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.archive-link-pill:hover {
    color: #102f44;
    border-color: rgba(31, 79, 104, 0.28);
    background: rgba(31, 79, 104, 0.08);
    text-decoration: none;
}

.archive-panel {
    margin-top: 16px;
}

.archive-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-bottom: 4px;
}

.archive-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.archive-nav-link:hover,
.archive-nav-link.is-active {
    color: var(--accent-strong);
    border-color: rgba(31, 79, 104, 0.2);
    background: rgba(31, 79, 104, 0.06);
    text-decoration: none;
}

.archive-inline-editor {
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
}

.editor-panel {
    position: sticky;
    top: 108px;
    align-self: start;
}

.surface-panel {
    background:
        radial-gradient(circle at top right, rgba(31, 79, 104, 0.035), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
}

.stack-list {
    display: grid;
    gap: 12px;
}

.stack-item {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sortable-item {
    cursor: grab;
    user-select: none;
}

.sortable-item.is-dragging {
    opacity: 0.55;
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.14);
}

.drag-handle {
    cursor: grab;
    touch-action: none;
}

.drag-handle:active,
.sortable-item:active {
    cursor: grabbing;
}

.stack-item-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.archive-item-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.archive-item-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.archive-item-title p {
    margin: 0;
    color: var(--muted);
}

.archive-item-amount {
    white-space: nowrap;
    font-family: var(--display-font);
    font-weight: 600;
    color: var(--accent-strong);
}

.archive-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

.archive-item-actions {
    margin-top: 14px;
    gap: 14px;
}

.invoice-archive-status-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px;
    border: 1px solid rgba(100, 116, 139, 0.16);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.88);
}

.invoice-archive-status-form label {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.invoice-archive-status-form label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.invoice-archive-status-form select {
    min-height: 30px;
    width: auto;
    min-width: 122px;
    padding: 4px 26px 4px 10px;
    border: 0;
    border-radius: 999px;
    background-color: transparent;
    box-shadow: none;
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 700;
}

.invoice-archive-status-form button {
    min-height: 30px;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    font-size: 0.84rem;
    line-height: 1;
}

.settings-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-premium-item {
    padding: 14px 16px;
    border: 1px solid rgba(31, 79, 104, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
}

.settings-premium-section {
    border-top: 1px solid rgba(31, 79, 104, 0.10);
    padding-top: 22px;
}

.settings-premium-actions {
    margin-top: 18px;
}

.document-branding-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
}

.document-branding-controls {
    border-right: 0;
    padding-right: 0;
}

.document-branding-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.document-branding-block-group {
    padding: 18px 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.92);
    display: grid;
    gap: 12px;
}

.document-branding-preset-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.document-branding-block-group .section-title {
    margin: 0 0 4px;
}

.document-branding-tab-panels {
    margin-top: 18px;
    margin-bottom: 18px;
}

.document-branding-tab-panel {
    display: none;
}

.document-branding-tab-panel.is-active {
    display: block;
}

.document-branding-tab-panel[hidden] {
    display: none !important;
}

.document-branding-order-group {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.document-branding-order-title {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.document-branding-logo-meta {
    color: #475569;
    font-size: 0.88rem;
}

.document-logo-uploader {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.document-color-field {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.document-color-field input[type="color"] {
    width: 52px;
    height: 44px;
    padding: 4px;
    border-radius: 12px;
    cursor: pointer;
}

.document-logo-uploader-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.document-logo-uploader-title {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-weight: 650;
}

.document-logo-uploader-body {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.document-logo-uploader-preview {
    min-height: 112px;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px dashed rgba(31, 79, 104, 0.28);
    background: rgba(31, 79, 104, 0.04);
}

.document-logo-uploader-preview img {
    max-width: 150px;
    max-height: 78px;
    object-fit: contain;
}

.document-logo-uploader-actions {
    display: grid;
    justify-items: start;
    gap: 10px;
}

.document-logo-upload-button {
    cursor: pointer;
}

.document-logo-upload-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.document-logo-upload-name {
    color: #475569;
    font-size: 0.9rem;
}

.document-logo-remove-button {
    margin-top: 2px;
}

.document-logo-progress {
    width: min(100%, 320px);
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.10);
}

.document-logo-progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f4f68, #2d7f85);
    transition: width 0.42s ease;
}

.document-branding-logo-preview {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 76px;
}

.document-branding-preview.logo-position-center .document-branding-logo-preview {
    justify-content: center;
}

.document-branding-preview.logo-position-right .document-branding-logo-preview {
    justify-content: flex-end;
}

.document-branding-logo-preview img {
    max-height: 74px;
    max-width: 220px;
    object-fit: contain;
}

.document-branding-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 56px;
    padding: 0 18px;
    border: 1px dashed rgba(31, 79, 104, 0.28);
    background: rgba(31, 79, 104, 0.05);
    color: #1f4f68;
    font: 700 13px/1 "Trebuchet MS", "Segoe UI", sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.document-branding-logo-preview img[hidden],
.document-branding-logo-placeholder[hidden] {
    display: none !important;
}

.document-branding-flow {
    display: grid;
    gap: 24px;
}

.document-branding-sortlist {
    display: grid;
    gap: 10px;
}

.document-branding-sortitem {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    cursor: move;
}

.document-branding-sortitem.is-dragging {
    opacity: 0.6;
}

.document-branding-sorthandle {
    color: #64748b;
    font: 700 16px/1 "Trebuchet MS", "Segoe UI", sans-serif;
    letter-spacing: 0.08em;
}

.document-branding-sortlabel {
    color: #0f172a;
    font-weight: 600;
}

.checkbox-field {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.checkbox-field input {
    margin-top: 2px;
}

.checkbox-field span {
    display: block;
    line-height: 1.45;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.document-branding-preview-stage {
    display: grid;
    place-items: center;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, #edf3f6 0%, #e5edf2 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: auto;
}

.document-branding-preview-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.document-branding-real-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 18px;
}

.document-branding-preview-tab {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 79, 104, 0.14);
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    box-shadow: none;
}

.document-branding-preview-tab.is-active {
    background: rgba(31, 79, 104, 0.10);
    color: var(--accent-strong);
    border-color: rgba(31, 79, 104, 0.24);
}

.document-branding-preview {
    --preview-accent: #1f4f68;
    background: #fff;
    width: min(100%, 794px);
    min-height: 1123px;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    padding: 44px;
    display: grid;
    gap: 24px;
    align-content: start;
}

.document-branding-preview[hidden] {
    display: none !important;
}

.document-branding-preview.is-active {
    display: grid;
}

.document-branding-preview.print-theme-slate {
    --preview-accent: #334155;
    background:
        linear-gradient(180deg, rgba(241, 245, 249, 0.72), rgba(255, 255, 255, 0.98) 22%),
        #fff;
}

.document-branding-preview.print-theme-forest {
    --preview-accent: #2f5d50;
    background:
        linear-gradient(180deg, rgba(233, 243, 238, 0.72), rgba(255, 255, 255, 0.98) 18%),
        #fff;
}

.document-branding-preview.print-theme-terracotta {
    --preview-accent: #b4533d;
    background:
        linear-gradient(180deg, rgba(249, 239, 235, 0.82), rgba(255, 255, 255, 0.98) 20%),
        #fff;
}

.document-branding-sheet-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.document-branding-sheet-eyebrow {
    display: block;
    color: var(--preview-accent);
    font: 700 11px/1 "Trebuchet MS", "Segoe UI", sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.document-branding-sheet-title {
    margin-top: 8px;
    font: 700 36px/1.08 Georgia, "Times New Roman", serif;
    color: #0f172a;
    word-break: break-word;
}

.document-branding-sheet-title-invoice {
    line-height: 1.08;
}

.document-branding-sheet-title.title-size-small,
.document-branding-sheet-title-invoice.title-size-small {
    font-size: 24px;
}

.document-branding-sheet-title.title-size-medium {
    font-size: 31px;
}

.document-branding-sheet-title-invoice.title-size-medium {
    font-size: 25px;
}

.document-branding-sheet-title.title-size-large {
    font-size: 36px;
}

.document-branding-sheet-title-invoice.title-size-large {
    font-size: 29px;
}

.document-branding-sheet-date {
    display: grid;
    gap: 4px;
    justify-items: end;
    color: #475569;
    font-size: 1rem;
}

.document-branding-sheet-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.document-branding-sheet-parties-single {
    grid-template-columns: minmax(0, 1fr);
}

.document-branding-sheet-card {
    padding: 18px 20px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
}

.document-branding-sheet-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--preview-accent);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.document-branding-sheet-card p {
    margin: 0;
}

.document-branding-sheet-card p + p {
    margin-top: 6px;
}

.document-branding-sheet-note-card strong {
    margin-bottom: 10px;
}

.document-branding-sheet-table {
    border: 1px solid rgba(15, 23, 42, 0.10);
}

.document-branding-sheet-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 0.8fr 0.8fr 0.8fr;
    gap: 12px;
    padding: 16px 18px;
    align-items: center;
    font-size: 1rem;
}

.document-branding-sheet-row + .document-branding-sheet-row {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.document-branding-sheet-row-head {
    background: rgba(31, 79, 104, 0.08);
    color: #475569;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.document-branding-preview.print-theme-slate .document-branding-sheet-row-head {
    background: rgba(51, 65, 85, 0.08);
}

.document-branding-preview.print-theme-forest .document-branding-sheet-row-head {
    background: rgba(47, 93, 80, 0.08);
}

.document-branding-preview.print-theme-terracotta .document-branding-sheet-row-head {
    background: rgba(180, 83, 61, 0.08);
}

.document-branding-sheet-footer {
    display: grid;
    gap: 16px;
}

.document-branding-sheet-total {
    margin-left: auto;
    width: min(100%, 280px);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: var(--preview-accent);
    font-weight: 700;
}

.document-branding-sheet-note {
    min-height: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.document-branding-note-grid {
    padding: 0;
}

.document-branding-preview [data-branding-block][hidden] {
    display: none !important;
}

.document-branding-preview.print-theme-slate .document-branding-sheet-header,
.document-branding-preview.print-theme-slate .document-branding-sheet-total {
    border-color: rgba(51, 65, 85, 0.16);
}

.document-branding-preview.print-theme-slate .document-branding-sheet-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: end;
}

.document-branding-preview.print-theme-slate .document-branding-sheet-parties {
    grid-template-columns: 1fr;
}

.document-branding-preview.print-theme-slate .document-branding-sheet-card {
    border-left: 4px solid rgba(51, 65, 85, 0.55);
}

.document-branding-preview.print-theme-slate .document-branding-sheet-table {
    border-width: 0;
    border-top: 2px solid rgba(51, 65, 85, 0.18);
    border-bottom: 2px solid rgba(51, 65, 85, 0.18);
}

.document-branding-preview.print-theme-forest .document-branding-sheet-card {
    background: linear-gradient(180deg, #ffffff, #f6fbf8);
}

.document-branding-preview.print-theme-forest .document-branding-sheet-header {
    padding: 20px 22px 22px;
    border: 1px solid rgba(47, 93, 80, 0.14);
    background: linear-gradient(180deg, rgba(47, 93, 80, 0.05), rgba(255, 255, 255, 0.92));
}

.document-branding-preview.print-theme-forest .document-branding-sheet-parties {
    gap: 12px;
}

.document-branding-preview.print-theme-forest .document-branding-sheet-card {
    border-radius: 14px;
}

.document-branding-preview.print-theme-forest .document-branding-sheet-total {
    border-radius: 14px;
}

.document-branding-preview.print-theme-terracotta .document-branding-sheet-header {
    border-bottom-width: 2px;
}

.document-branding-preview.print-theme-terracotta .document-branding-sheet-total {
    background: rgba(180, 83, 61, 0.06);
}

.document-branding-preview.print-theme-terracotta .document-branding-sheet-header {
    align-items: start;
}

.document-branding-preview.print-theme-terracotta .document-branding-sheet-parties {
    grid-template-columns: 1.1fr 0.9fr;
}

.document-branding-preview.print-theme-terracotta .document-branding-sheet-table {
    border-top: 3px solid rgba(180, 83, 61, 0.44);
}

.document-branding-preview.print-theme-terracotta .document-branding-sheet-row-head {
    border-bottom: 1px solid rgba(180, 83, 61, 0.18);
}

.document-branding-preview.print-theme-slate .document-branding-sheet-card strong {
    letter-spacing: 0.08em;
}

.document-branding-preview.print-theme-forest .document-branding-sheet-header {
    background: linear-gradient(180deg, rgba(47, 93, 80, 0.03), transparent);
}

.document-branding-preview.print-theme-terracotta .document-branding-sheet-card strong {
    font-size: 0.76rem;
}

.document-branding-preview.print-layout-compact {
    gap: 16px;
    padding: 36px;
}

.document-branding-preview.print-layout-compact .document-branding-flow {
    gap: 14px;
}

.document-branding-preview.print-layout-compact .document-branding-sheet-header {
    padding-bottom: 14px;
}

.document-branding-preview.print-layout-compact .document-branding-sheet-card {
    padding: 13px 15px;
}

.document-branding-preview.print-layout-compact .document-branding-sheet-row {
    padding: 11px 14px;
    font-size: 0.92rem;
}

.document-branding-preview.print-layout-compact .document-branding-sheet-total {
    padding: 12px 15px;
}

.document-branding-preview.print-layout-borderless .document-branding-sheet-card,
.document-branding-preview.print-layout-borderless .document-branding-sheet-table,
.document-branding-preview.print-layout-borderless .document-branding-sheet-total {
    border-color: transparent;
}

.document-branding-preview.print-layout-borderless .document-branding-sheet-card {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}

.document-branding-preview.print-layout-borderless .document-branding-sheet-table {
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.document-branding-preview.print-layout-borderless .document-branding-sheet-row-head {
    background: transparent;
}

.document-branding-preview.print-layout-borderless .document-branding-sheet-total {
    border-top: 2px solid var(--preview-accent);
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
}

.document-branding-preview.print-layout-accent .document-branding-sheet-header {
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--preview-accent), color-mix(in srgb, var(--preview-accent) 72%, #0f172a));
    border: 0;
}

.document-branding-preview.print-layout-accent .document-branding-sheet-eyebrow,
.document-branding-preview.print-layout-accent .document-branding-sheet-title,
.document-branding-preview.print-layout-accent .document-branding-sheet-date {
    color: #fff;
}

.document-branding-preview.print-layout-accent .document-branding-sheet-total {
    background: var(--preview-accent);
    color: #fff;
    border-color: var(--preview-accent);
}

.document-branding-preview.print-layout-accent .document-branding-sheet-row-head {
    background: var(--preview-accent);
    color: #fff;
}

.archive-link {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
}

.archive-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.archive-link-strong {
    color: var(--accent-dark);
    font-weight: 600;
}

.archive-link-strong:hover {
    color: var(--accent-strong);
}

.archive-link-danger {
    color: #b42318;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    font-weight: 700;
}

.archive-link-danger:hover {
    color: #912018;
    text-decoration: none;
}

.stack-item strong {
    font-size: 1rem;
}

.stack-item p {
    margin: 8px 0 0;
    color: var(--muted);
}

.stack-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.estimate-items {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.estimate-items > .split {
    padding: 0 18px;
}

.estimate-form-layout {
    display: flex;
    flex-direction: column;
}

.estimate-info-card {
    display: grid;
    gap: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 10px;
}

.estimate-info-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

.estimate-info-summary::-webkit-details-marker {
    display: none;
}

.estimate-info-summary strong {
    display: block;
}

.estimate-info-summary span {
    color: var(--muted);
    font-size: 0.9rem;
}

.estimate-info-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.estimate-info-summary-note {
    color: var(--muted);
    font-size: 0.86rem;
}

.estimate-info-summary-icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.18s ease, border-color 0.18s ease;
    margin-top: -4px;
}

.estimate-info-card[open] .estimate-info-summary-icon {
    transform: rotate(-135deg);
    border-color: #1f4f68;
    margin-top: 4px;
}

.estimate-info-body {
    display: grid;
    gap: 18px;
    padding: 0 18px 18px;
}

.estimate-secondary-card {
    margin-top: 14px;
}

.estimate-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.estimate-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.toggle-chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.toggle-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-chip span {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
}

.toggle-chip input:checked + span {
    border-color: rgba(31, 79, 104, 0.2);
    background: rgba(31, 79, 104, 0.06);
    color: #1f4f68;
}

.estimate-toolbar-card {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.estimate-toolbar-panel,
.estimate-summary-card {
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: none;
}

.estimate-toolbar-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.estimate-toolbar-heading {
    display: grid;
    gap: 4px;
}

.estimate-toolbar-heading strong {
    font-size: 1.02rem;
    color: #0f172a;
}

.estimate-toolbar-heading span {
    color: #64748b;
    font-size: 0.94rem;
}

.estimate-toolbar-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
    gap: 14px 16px;
    align-items: end;
}

.estimate-toolbar-fields-compact {
    align-items: start;
}

.estimate-toolbar-fields label > span {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.87rem;
    font-weight: 600;
}

.estimate-select-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
}

.estimate-select-all span {
    margin: 0;
    font-size: 0.92rem;
}

.estimate-price-mode {
    display: grid;
    gap: 8px;
}

.estimate-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.estimate-calculation-card {
    margin-top: 0;
    border-top: 0;
    background: #ffffff;
}

.estimate-calculation-card .estimate-info-summary {
    padding-top: 14px;
}

.estimate-summary-card {
    display: grid;
    gap: 8px;
    padding: 20px 18px;
    position: relative;
    overflow: hidden;
}

.estimate-summary-card span {
    color: #64748b;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.estimate-summary-card strong {
    color: #0f172a;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.1;
}

.estimate-summary-card small {
    color: #64748b;
    font-size: 0.88rem;
}

.estimate-summary-card-accent {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
}

.estimate-summary-card-accent::after {
    display: none;
}

.invoice-estimate-picker {
    margin-bottom: 1.1rem;
    grid-template-columns: minmax(0, 1fr);
}

.invoice-estimate-picker-fields {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.65fr) auto;
    align-items: end;
}

.invoice-estimate-picker-select {
    min-width: 0;
}

.invoice-estimate-picker-actions {
    padding-bottom: 1px;
}

.estimate-template-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.estimate-template-picker-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estimate-template-picker-fields .estimate-template-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 0.2rem;
}

.estimate-filter-bar {
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) minmax(180px, 220px);
    gap: 14px 16px;
    align-items: end;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: #fff;
}

.estimate-filter-bar label > span {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.87rem;
    font-weight: 600;
}

.document-field {
    min-width: 0;
}

.estimate-row-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.document-summary {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    color: var(--muted);
}

.summary-row strong {
    color: var(--text);
}

.summary-row-total {
    padding-top: 10px;
    border-top: 1px solid rgba(24, 32, 43, 0.08);
}

.summary-row-total strong {
    font-size: 1.1rem;
}

.document-primary-actions {
    padding-top: 4px;
    padding-left: 18px;
    padding-right: 18px;
}

.app-fade-in {
    animation: appFadeIn 160ms ease;
}

@keyframes appFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6f5;
    color: var(--accent-dark);
    font-size: 0.82rem;
}

.profile-chip-button {
    border: 0;
    box-shadow: none;
    cursor: pointer;
}

.user-profile-menu {
    position: relative;
}

.rating-dialog {
    width: min(520px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    overflow-x: hidden;
}

.clients-list-item {
    padding: 16px 18px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.settings-danger-zone {
    margin-top: 18px;
    border-color: rgba(179, 59, 45, 0.22);
    background: #ffffff;
}

.settings-danger-zone .section-title {
    color: #8c261b;
}

@media (max-width: 640px) {
    .catalog-savebar {
        left: 0;
        right: 0;
        bottom: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 0;
        box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.12);
    }

    .catalog-footer-actions {
        border-left: 0;
        border-right: 0;
    }
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}

.rating-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-stars label {
    color: #cbd5e1;
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1;
    cursor: pointer;
    transition: color 0.16s ease, transform 0.16s ease;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    color: #f59e0b;
}

.rating-stars label:hover {
    transform: translateY(-1px);
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 280px;
    gap: 20px;
    background: linear-gradient(135deg, rgba(58, 83, 206, 0.88), rgba(112, 52, 200, 0.82));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(4, 10, 20, 0.34);
}

.admin-hero .eyebrow,
.admin-hero p {
    color: rgba(255, 255, 255, 0.8);
}

.admin-hero-visual {
    min-height: 180px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 30%, rgba(125, 211, 252, 0.95), transparent 20%),
        radial-gradient(circle at 50% 70%, rgba(14, 165, 233, 0.55), transparent 28%),
        linear-gradient(180deg, rgba(20, 35, 58, 0.28), rgba(8, 14, 24, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
}

.admin-hero-visual::before,
.admin-hero-visual::after {
    content: "";
    position: absolute;
    inset: 24px;
    border: 2px solid rgba(125, 211, 252, 0.46);
    border-radius: 24px;
}

.admin-hero-visual::after {
    inset: 48px;
    border-color: rgba(192, 132, 252, 0.34);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-stat-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
    .topbar,
    .split,
    .app-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-grid,
    .grid-2,
    .landing-v2-grid,
    .landing-v3-grid,
    .landing-v4-grid,
    .landing-v5-grid,
    .landing-benefit-grid,
    .landing-audience-row,
    .landing-proof-strip,
    .landing-step-row {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        width: min(100%, 100%);
    }

    .auth-shell {
        padding: 16px;
    }

    .auth-shell-wide {
        padding: 16px;
    }

    .landing-logo-mark {
        margin-bottom: 12px;
    }

    .landing-logo-mark img {
        height: 34px;
    }

    .landing-copy-card-glass {
        padding: 22px;
        border-radius: 26px;
    }

    .landing-copy-card h1,
    .landing-hero-copy h1,
    .landing-v4-copy h1 {
        font-size: clamp(2.15rem, 12vw, 3.7rem);
        letter-spacing: -0.04em;
    }

    .landing-copy-card p,
    .landing-hero-copy p,
    .landing-v4-copy p {
        font-size: 0.98rem;
    }

    .landing-audience-row,
    .landing-proof-strip {
        display: grid;
        gap: 8px;
    }

    .landing-step-row div {
        min-height: 82px;
    }

    .landing-document-stack {
        min-height: 310px;
    }

    .landing-doc-main {
        transform: none;
        border-radius: 26px;
    }

    .landing-doc-small {
        right: 0;
        bottom: -16px;
        min-width: 180px;
    }

    .landing-v2-grid .auth-panel,
    .landing-v3-grid .auth-panel,
    .landing-v4-grid .auth-panel,
    .landing-v5-grid .auth-panel {
        order: -1;
    }

    .landing-hero-copy,
    .landing-copy-card,
    .landing-product-preview,
    .landing-v5-copy {
        order: 2;
    }

    .landing-v5-flow {
        display: grid;
    }

    .landing-v5-flow span + span::before {
        display: none;
    }

    .toast-container {
        left: 14px;
        right: 14px;
        top: 88px;
    }

    .toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .shell {
        width: min(100% - 18px, 1440px);
    }

    .user-header {
        padding: 12px 14px;
    }

    .user-header-inner {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .user-content-area {
        padding-top: 180px;
    }

    .user-profile-menu,
    .user-hero,
    .workspace-board {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .quick-grid,
    .workspace-board,
    .editor-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .feedback-admin-grid,
    .admin-stat-grid-compact,
    .support-layout,
    .admin-support-layout,
    .support-admin-actions,
    .feedback-status-bar {
        grid-template-columns: 1fr;
    }

    .support-ticket-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .editor-panel {
        position: static;
    }

    .app-frame {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .auth-form-wrap {
        padding: 22px;
    }

    .topbar .brand-logo img {
        width: 40px;
        height: 40px;
        max-width: 40px;
    }
}

.button-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.catalog-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-inline-profile-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.catalog-inline-profile-form select {
    min-width: 220px;
}

.catalog-import-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #d8e2ee;
    background: #f8fafc;
}

.catalog-import-head {
    display: grid;
    gap: 4px;
}

.catalog-import-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-import-toolbar select {
    min-width: 240px;
}

.catalog-import-list {
    display: grid;
    gap: 10px;
}

.catalog-import-form {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
}

.catalog-import-searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding-bottom: 6px;
}

.catalog-import-searchfield {
    display: grid;
    gap: 6px;
}

.catalog-import-searchfield span {
    color: #475569;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.catalog-import-searchmeta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.88rem;
    white-space: nowrap;
}

.catalog-import-groups {
    display: grid;
    gap: 14px;
}

.catalog-import-group {
    display: grid;
    gap: 10px;
}

.catalog-import-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

.catalog-import-group-head strong {
    color: #0f172a;
    font-size: 0.98rem;
}

.catalog-import-group-head span {
    color: #64748b;
    font-size: 0.84rem;
    white-space: nowrap;
}

.catalog-import-check {
    display: grid;
    place-items: center;
}

.catalog-import-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.catalog-import-main strong {
    font-size: 0.96rem;
}

.catalog-import-main span {
    color: #64748b;
    font-size: 0.9rem;
}

.catalog-savebar {
    position: sticky;
    top: 98px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.catalog-savebar[hidden] {
    display: none !important;
}

.catalog-filterbar {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.9fr) minmax(160px, 0.8fr) auto auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #f8fafc;
}

.catalog-filter-field {
    display: grid;
    gap: 6px;
}

.catalog-filter-field span {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catalog-filter-field input,
.catalog-filter-field select {
    width: 100%;
}

.catalog-filter-meta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.catalog-filter-reset {
    min-height: 42px;
    align-self: end;
    white-space: nowrap;
}

.catalog-row.is-filtered-out,
.catalog-row[hidden] {
    display: none !important;
}

.catalog-filter-empty {
    border-style: dashed;
    background: #f8fafc;
}

.catalog-list {
    display: grid;
    gap: 10px;
}

.catalog-row {
    display: grid;
    grid-template-columns: minmax(320px, 2.5fr) minmax(180px, 1.3fr) 96px 120px 220px;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #e6ebf2;
    background: #ffffff;
}

.catalog-row-head {
    background: #f8fafc;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.catalog-row-new {
    position: relative;
    padding-top: 18px;
    background: #ffffff;
    border-color: rgba(31, 79, 104, 0.22);
    box-shadow: none;
}

.catalog-row-new-badge {
    position: absolute;
    top: -11px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eaf1f5;
    color: #1f4f68;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catalog-row-item.is-editing {
    border-color: rgba(31, 79, 104, 0.28);
    background: #f8fafc;
    box-shadow: inset 2px 0 0 #1f4f68;
}

.catalog-row-item.is-dirty {
    border-color: rgba(31, 79, 104, 0.22);
    background: #fbfdff;
}

.catalog-cell {
    min-width: 0;
}

.catalog-cell[data-column-label]::before {
    content: none;
}

.catalog-cell input,
.catalog-cell select {
    width: 100%;
}

.catalog-autocomplete {
    position: relative;
}

.catalog-autocomplete-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.catalog-autocomplete-results[hidden] {
    display: none;
}

.catalog-autocomplete-option {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #0f172a;
    text-align: left;
    box-shadow: none;
}

.catalog-autocomplete-option:hover {
    background: #f1f5f9;
    transform: none;
    box-shadow: none;
}

.catalog-autocomplete-option strong {
    font-size: 0.94rem;
    font-weight: 600;
}

.catalog-autocomplete-option span,
.catalog-autocomplete-empty {
    color: #64748b;
    font-size: 0.86rem;
}

.catalog-autocomplete-empty {
    padding: 10px 12px;
}

.catalog-cell [data-unit-custom] {
    margin-top: 8px;
}

.catalog-display {
    min-height: 34px;
    display: flex;
    align-items: center;
    color: #102033;
}

.catalog-display strong {
    font-size: 0.96rem;
}

.catalog-row-item.is-editing [data-display-field] {
    display: none;
}

.catalog-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
}

.catalog-actions-head {
    text-align: right;
}

.catalog-inline-note {
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
}

.catalog-link {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2563eb;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 140ms ease;
}

.catalog-link:hover {
    color: #1d4ed8;
    transform: none;
    box-shadow: none;
    text-decoration: underline;
}

.catalog-link-danger {
    color: #b42318;
}

.catalog-link-danger:hover {
    color: #912018;
}

.catalog-danger-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    margin: 0;
    border: 1px solid rgba(179, 35, 24, 0.18);
    border-radius: 10px;
    background: #fff5f4;
    color: #9f1d16;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
    box-shadow: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.catalog-danger-chip:hover {
    background: #ffe8e5;
    border-color: rgba(159, 29, 22, 0.24);
    color: #7f1d1d;
}

.catalog-danger-chip:focus-visible {
    outline: 2px solid rgba(159, 29, 22, 0.22);
    outline-offset: 2px;
}

.catalog-grip {
    color: #94a3b8;
    letter-spacing: -1px;
    font-weight: 700;
    text-decoration: none;
}

.catalog-grip:hover {
    color: #64748b;
    text-decoration: none;
}

.catalog-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
    padding: 14px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    margin-top: 12px;
    border-top: 1px solid #e6ebf2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
}

.catalog-footer-summary {
    display: grid;
    gap: 4px;
}

.catalog-footer-summary strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.catalog-row-state {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.8rem;
    white-space: nowrap;
}

.hidden-form {
    display: none;
}

.data-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.data-form-grid > label {
    min-width: 0;
}

.data-form-grid > label:first-of-type {
    grid-column: span 2;
}

.data-form-grid > label:last-of-type {
    grid-column: span 2;
}

.data-form-actions {
    grid-column: 1 / -1;
    padding-top: 6px;
}

.clients-list {
    gap: 12px;
}

.data-list-actions {
    gap: 14px;
    align-items: center;
}

.data-activity-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.client-activity-pill {
    background: rgba(31, 79, 104, 0.08);
    color: var(--accent-strong);
    border-color: rgba(31, 79, 104, 0.18);
}

.data-activity-history {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.data-list-card .stack-item-head {
    align-items: flex-start;
    gap: 16px;
}

.data-list-card .stack-item-head > div:first-child {
    min-width: 0;
}

.settings-danger-zone {
    margin-top: 18px;
    border-color: rgba(179, 59, 45, 0.28);
    background: linear-gradient(180deg, #fffafa, #ffffff);
}

.settings-danger-zone .section-title {
    color: #8c261b;
}

.settings-surface-head {
    margin-bottom: 0;
    padding-bottom: 14px;
}

.settings-section:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.settings-span-2 {
    grid-column: span 2;
}

.settings-checkbox-field {
    align-content: start;
}

.settings-actions {
    padding-top: 4px;
}

.category-list-item {
    padding: 16px 18px;
}

.category-list-surface {
    border-color: #e2e8f0;
}

.category-list-surface .category-sort-list {
    gap: 0;
    border-top: 1px solid #e2e8f0;
}

.category-list-surface .category-list-item {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}

.category-list-surface .category-list-item:first-child {
    padding-top: 18px;
}

.category-list-surface .category-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.category-list-item .inline-form {
    display: inline-flex;
    align-items: center;
}

.category-grip {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.category-grip:hover {
    transform: none;
    box-shadow: none;
    color: #64748b;
}

.field-note {
    display: block;
    margin-top: 8px;
}

.calculations-shell {
    display: grid;
    gap: 18px;
}

.calculation-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.calculation-switcher button {
    display: grid;
    gap: 4px;
    min-height: 0;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    text-align: left;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    cursor: pointer;
}

.calculation-switcher button:hover,
.calculation-switcher button.is-active {
    border-color: rgba(31, 79, 104, 0.42);
    background: linear-gradient(180deg, #ffffff, var(--accent-soft));
}

.calculation-switcher span {
    font-size: 1rem;
    font-weight: 800;
}

.calculation-switcher small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.calculations-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.calculation-mode[hidden] {
    display: none !important;
}

.calculation-panel,
.calculation-result-panel {
    padding: 22px;
}

.calculation-result-panel {
    position: sticky;
    top: 104px;
}

.calculation-mode[data-calculation-mode="room_surface"] .calculation-result-panel {
    position: static;
}

.calculation-material-list {
    display: grid;
    gap: 10px;
}

.calculation-material-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.calculation-material-row strong {
    display: block;
    color: var(--text);
    font-size: 0.98rem;
}

.calculation-material-row p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.calculation-material-row > span {
    display: inline-flex;
    justify-content: center;
    min-width: 96px;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 800;
    white-space: nowrap;
}

.calculation-piece-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.calculation-piece-options span {
    display: inline-flex;
    gap: 4px;
    align-items: baseline;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
}

.calculation-piece-options small {
    color: var(--muted);
    font-weight: 600;
}

.calculation-disclaimer {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.8);
}

.calculation-estimate-builder {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(31, 79, 104, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, var(--accent-soft));
}

.calculation-estimate-builder-head h3 {
    margin: 4px 0 4px;
}

.calculation-estimate-planes {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.calculation-estimate-plane {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
}

.calculation-estimate-plane-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.calculation-estimate-plane-head strong,
.calculation-estimate-plane-head span,
.calculation-estimate-plane-head small {
    display: block;
}

.calculation-estimate-plane-head span,
.calculation-estimate-plane-head small {
    color: var(--muted);
    font-size: 0.84rem;
}

.calculation-plane-empty {
    margin: 0;
}

.room-wall-editor {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.room-wall-editor-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.room-wall-list {
    display: grid;
    gap: 8px;
}

.room-wall-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.6fr) minmax(160px, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: #ffffff;
}

.room-wall-remove {
    align-self: center;
}

.calculation-estimate-rows {
    display: grid;
    gap: 8px;
}

.calculation-estimate-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1.1fr) 110px 90px 110px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.calculation-estimate-row.is-active {
    border-color: rgba(31, 79, 104, 0.36);
    background: #ffffff;
}

.calculation-estimate-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

@media (max-width: 980px) {
    .calculations-workspace {
        grid-template-columns: 1fr;
    }

    .calculation-result-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .calculation-switcher {
        grid-template-columns: 1fr;
    }

    .calculation-switcher button {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .calculation-panel,
    .calculation-result-panel {
        padding: 14px;
    }

    .calculation-material-row {
        grid-template-columns: 1fr;
    }

    .calculation-material-row > span {
        justify-self: start;
    }

    .calculation-estimate-row {
        grid-template-columns: 1fr;
    }

    .calculation-estimate-plane-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .room-wall-editor-head,
    .room-wall-row {
        grid-template-columns: 1fr;
        align-items: stretch;
        flex-direction: column;
    }
}

.stack-md,
.stack-lg {
    display: grid;
}

.stack-md {
    gap: 14px;
}

.stack-lg {
    gap: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    cursor: pointer;
}

.checkbox-row > span {
    min-width: 0;
}

.auth-terms-row {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px !important;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-terms-row input {
    margin: 3px 0 0;
    width: 16px;
    height: 16px;
}

.auth-terms-row span {
    min-width: 0;
}

.auth-terms-row a {
    color: #165e63;
    font-weight: 700;
    text-decoration: none;
}

.auth-terms-row a:hover {
    text-decoration: underline;
}

.activity-bars {
    display: grid;
    gap: 14px;
}

.activity-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.activity-label {
    font-size: 0.88rem;
    color: #64748b;
}

.activity-track-group {
    display: grid;
    gap: 8px;
}

.activity-track {
    min-height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
}

.activity-track.estimates {
    background: linear-gradient(90deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
}

.activity-track.invoices {
    background: linear-gradient(90deg, #dcfce7, #f0fdf4);
    color: #166534;
}

.admin-mini-grid {
    display: grid;
    gap: 14px;
}

.conversation-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.conversation-pill,
.prompt-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    color: #102033;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
}

.conversation-pill.is-active,
.prompt-chip:hover {
    background: #e0f2fe;
    border-color: #bae6fd;
}

.ai-chat-log {
    display: grid;
    gap: 14px;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.ai-message {
    display: grid;
    gap: 8px;
}

.ai-message.user {
    justify-items: end;
}

.ai-message-role {
    font-size: 0.8rem;
    color: #64748b;
}

.ai-message-bubble {
    width: min(100%, 760px);
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    line-height: 1.55;
}

.ai-message.user .ai-message-bubble {
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
}

.ai-message.assistant .ai-message-bubble {
    background: #ffffff;
}

.prompt-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 860px) {
    .form-grid-2,
    .admin-dashboard-hero-grid,
    .admin-settings-stack,
    .admin-ai-stack,
    .admin-analytics-grid,
    .admin-analytics-audience,
    .admin-section-head,
    .data-form-grid,
    .settings-grid,
    .activity-row,
    .catalog-row {
        grid-template-columns: 1fr;
    }

    .catalog-savebar {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 60;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 16px;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    }

    .catalog-savebar .muted {
        display: none;
    }

    .catalog-savebar strong {
        font-size: 0.92rem;
    }

    .catalog-savebar .button,
    .catalog-savebar button {
        min-height: 38px;
        padding: 0 12px;
        white-space: nowrap;
    }

    .catalog-filterbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 12px;
    }

    .catalog-filter-meta {
        justify-content: flex-start;
        width: 100%;
    }

    .catalog-filter-reset {
        justify-self: start;
    }

    .catalog-top-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-inline-profile-form {
        display: grid;
    }

    .catalog-import-toolbar,
    .catalog-import-item {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-import-searchbar {
        grid-template-columns: 1fr;
    }

    .catalog-import-toolbar select {
        min-width: 0;
    }

    .catalog-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-row-head {
        display: none;
    }

    .catalog-cell[data-column-label]::before {
        content: attr(data-column-label);
        display: block;
        margin-bottom: 6px;
        color: #64748b;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .catalog-actions {
        justify-content: flex-start;
    }

    .catalog-inline-note {
        text-align: left;
    }

    .document-branding-blocks {
        grid-template-columns: 1fr;
    }

    .document-branding-preset-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        background: #f6f8fb;
    }

    .shell {
        width: 100%;
        margin: 0;
    }

    .surface-panel,
    .document-editor,
    .catalog-editor,
    .clients-workspace,
    .settings-workspace {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 0;
    }

    .document-surface-head,
    .catalog-surface-head {
        gap: 10px;
        align-items: stretch;
    }

    .button,
    button {
        min-height: 42px;
        justify-content: center;
    }

    .archive-link-pill {
        min-height: 38px;
        justify-content: center;
    }

    .invoice-archive-status-form {
        display: flex;
        width: 100%;
        gap: 8px;
        border-radius: 14px;
        padding: 6px;
    }

    .invoice-archive-status-form label {
        flex: 1 1 auto;
        min-width: 0;
    }

    .invoice-archive-status-form select {
        width: 100%;
        min-height: 36px;
        background: #ffffff;
    }

    .data-form-grid,
    .settings-grid,
    .form-grid-2 {
        gap: 10px;
    }

    input,
    select,
    textarea {
        min-height: 42px;
        font-size: 16px;
    }

    textarea {
        min-height: 110px;
    }
}

/* Main landing auth controls */
.splitcards-auth-branded .auth-form-wrap {
    border-radius: 10px !important;
}

.splitcards-auth-branded .auth-tabs {
    border-radius: 10px;
    padding: 4px;
}

.splitcards-auth-branded .auth-tab {
    border-radius: 8px;
}

.splitcards-auth-branded .auth-tab.is-active {
    border-radius: 8px;
}

.splitcards-auth-branded .actions button[type="submit"],
.splitcards-auth-branded button[type="submit"] {
    border-radius: 8px !important;
    clip-path: inset(0 round 8px);
    appearance: none;
    -webkit-appearance: none;
}

.splitcards-auth-branded .text-button,
.splitcards-auth-branded .text-link {
    text-decoration: none;
}

.splitcards-auth-branded .text-button:hover,
.splitcards-auth-branded .text-link:hover {
    text-decoration: none;
}
