:root {
    --navy-950: #071121;
    --navy-900: #0b1730;
    --navy-800: #122441;
    --navy-700: #1c3356;
    --gold-500: #c9a76a;
    --gold-400: #d8bd88;
    --gold-300: #e6d3ac;
    --ink: #182033;
    --muted: #6f7787;
    --surface: #ffffff;
    --background: #f5f6f8;
    --border: #e4e7ec;
    --success: #287557;
    --warning: #9a6a18;
    --danger: #a54040;
    --shadow: 0 18px 50px rgba(7, 17, 33, .09);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--background);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(201, 167, 106, .15),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--navy-950),
            var(--navy-800)
        );
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(430px, .9fr);
}

.auth-brand-panel {
    padding: 72px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    letter-spacing: .01em;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(216, 189, 136, .65);
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--gold-400);
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
}

.brand-copy strong {
    display: block;
    font-size: 18px;
}

.brand-copy span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-hero {
    max-width: 660px;
    margin: 80px 0;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--gold-400);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.auth-hero h1 {
    margin: 0;
    max-width: 620px;
    font-family: Georgia, serif;
    font-size: clamp(46px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.auth-hero p {
    max-width: 600px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 17px;
    line-height: 1.75;
}

.auth-footer {
    color: rgba(255, 255, 255, .46);
    font-size: 13px;
}

.auth-form-panel {
    margin: 18px;
    border-radius: 28px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.auth-card {
    width: min(430px, calc(100% - 56px));
}

.auth-card h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 500;
}

.auth-card > p {
    margin: 12px 0 32px;
    color: var(--muted);
    line-height: 1.6;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #30394b;
    font-size: 13px;
    font-weight: 700;
}

.field input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    padding: 0 15px;
    color: var(--ink);
    background: var(--ui-surface);
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.field input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(201, 167, 106, .14);
}

.field-help {
    margin-top: 8px;
    color: #9298a5;
    font-size: 12px;
    line-height: 1.5;
}

.error-box {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid #f0cccc;
    border-radius: 12px;
    color: #873535;
    background: #fff5f5;
    font-size: 13px;
    line-height: 1.5;
}

.primary-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    cursor: pointer;
    color: white;
    background: var(--navy-900);
    font-weight: 800;
    letter-spacing: .015em;
    transition:
        transform .18s ease,
        background .18s ease;
}

.primary-button:hover {
    background: var(--navy-800);
    transform: translateY(-1px);
}

.auth-switch {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.auth-switch a {
    color: var(--ui-text);
    font-weight: 750;
}

.portal-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
}

.sidebar {
    min-height: 100vh;
    padding: 28px 20px;
    color: white;
    background:
        linear-gradient(
            180deg,
            var(--navy-950),
            var(--navy-900)
        );
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .brand {
    margin: 0 8px 32px;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.nav-label {
    margin: 24px 12px 9px;
    color: rgba(255, 255, 255, .38);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 43px;
    padding: 0 13px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .67);
    font-size: 13px;
    font-weight: 650;
    transition:
        color .18s ease,
        background .18s ease;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, .07);
}

.nav-item.active {
    color: #fff;
    background: rgba(201, 167, 106, .15);
    box-shadow:
        inset 3px 0 0 var(--gold-500);
}

.sidebar-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.logout-button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 13px;
    cursor: pointer;
    text-align: left;
    color: rgba(255, 255, 255, .64);
    background: transparent;
    font-size: 13px;
    font-weight: 650;
}

.logout-button:hover {
    color: white;
    background: rgba(255, 255, 255, .06);
}

.portal-main {
    min-width: 0;
}

.topbar {
    min-height: 78px;
    padding: 0 34px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .94);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-title {
    color: var(--ui-text-strong);
    font-size: 15px;
    font-weight: 800;
}

.account-chip {
    display: flex;
    align-items: center;
    gap: 11px;
}

.account-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ui-text-strong);
    background: var(--gold-300);
    font-size: 12px;
    font-weight: 900;
}

.account-copy strong {
    display: block;
    font-size: 13px;
}

.account-copy span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.content {
    padding: 36px;
}

.page-header {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.page-header h1 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -.02em;
}

.page-header p {
    margin: 8px 0 0;
    max-width: 700px;
    color: var(--muted);
    line-height: 1.6;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #4d3c1d;
    background: #f3e8d1;
    font-size: 11px;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.stat-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(7, 17, 33, .035);
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.stat-value {
    margin-top: 10px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 32px;
}

.grid-two {
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(300px, .8fr);
    gap: 20px;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(7, 17, 33, .035);
    overflow: hidden;
}

.panel-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-size: 15px;
}

.panel-body {
    padding: 22px;
}

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

.detail label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.detail div {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    background: #fafafa;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

td {
    color: #374052;
    font-size: 13px;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.status {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--success);
    background: #eaf6f0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.empty-state {
    padding: 38px 20px;
    text-align: center;
    color: var(--muted);
}

.empty-state strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ui-text);
}

.section-placeholder {
    min-height: 330px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 50px;
}

.section-placeholder h2 {
    margin: 0 0 10px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.section-placeholder p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.coming-soon {
    display: inline-block;
    margin-top: 18px;
    color: var(--gold-500);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (max-width: 1050px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

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

    .auth-form-panel {
        min-height: calc(100vh - 36px);
    }

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

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

@media (max-width: 780px) {
    .portal-shell {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        height: auto;
    }

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

    .nav-label {
        grid-column: 1 / -1;
    }

    .content {
        padding: 24px 18px;
    }

    .topbar {
        padding: 0 18px;
    }

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

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

@media (max-width: 500px) {
    .auth-form-panel {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .auth-card {
        width: calc(100% - 38px);
    }

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

    .sidebar-nav {
        grid-template-columns: 1fr;
    }
}

/* LSC-CLIENT-MANAGEMENT-STYLES */

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.button-primary {
    color: #fff;
    background: var(--navy-900);
}

.button-secondary {
    color: var(--ui-text-strong);
    border-color: #d9dde5;
    background: var(--ui-surface);
}

.button-ghost {
    color: #596275;
    border-color: transparent;
    background: #f2f4f7;
}

.button-warning {
    color: #674712;
    border-color: #ead8b6;
    background: #fff7e7;
}

.header-actions,
.form-actions,
.pagination-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-bar {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        180px
        auto
        auto;
    gap: 10px;
}

.filter-bar input,
.filter-bar select,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--ui-surface);
}

.filter-bar input,
.filter-bar select,
.field select {
    min-height: 44px;
}

.field textarea {
    resize: vertical;
    font: inherit;
}

.filter-bar input:focus,
.filter-bar select:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold-500);
    box-shadow:
        0 0 0 4px
        rgba(201, 167, 106, .14);
}

.form-section {
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--ui-surface);
    box-shadow:
        0 8px 24px
        rgba(7, 17, 33, .035);
}

.form-section-heading {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.form-section-heading h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 500;
}

.form-section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

.field-full,
.detail-full {
    grid-column: 1 / -1;
}

.form-actions {
    justify-content: flex-end;
    padding: 4px 0 30px;
}

.form-errors {
    margin: 8px 0 0;
    padding-left: 20px;
}

.success-box {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #cce7db;
    border-radius: 12px;
    color: #245f49;
    background: #edf8f3;
    font-size: 13px;
}

.profile-issued-box {
    margin-bottom: 24px;
    border: 1px solid #dfc89d;
    border-radius: 16px;
    padding: 20px 22px;
    background: #fff9ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.profile-issued-box strong {
    color: #594018;
}

.profile-issued-box p {
    margin: 5px 0 0;
    color: #806b45;
    font-size: 12px;
}

.profile-issued-box code {
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--ui-text-strong);
    background: var(--ui-surface);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .04em;
    white-space: nowrap;
}

.secret-details {
    margin-top: 8px;
}

.secret-details summary {
    cursor: pointer;
    color: var(--ui-text);
    font-size: 13px;
    font-weight: 750;
}

.secret-details code {
    display: block;
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f4f5f7;
    color: var(--ui-text-strong);
    font-weight: 800;
    letter-spacing: .03em;
}

.top-gap {
    margin-top: 20px;
}

.form-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.status-suspended {
    color: #8a6016;
    background: #fff4d8;
}

.status-inactive {
    color: #7a4450;
    background: #f8e9ec;
}

.table-actions {
    text-align: right;
}

.text-link {
    color: var(--ui-text);
    font-weight: 800;
}

.pagination-row {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

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

    .field-full {
        grid-column: auto;
    }

    .profile-issued-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

/* LSC-DOCUMENT-MODULE-STYLES */

.document-filter {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        170px
        170px
        auto
        auto;
    gap: 10px;
}

.document-filter input,
.document-filter select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    padding: 0 13px;
    color: var(--ink);
    background: white;
}

.document-filter input:focus,
.document-filter select:focus {
    border-color: var(--gold-500);
    box-shadow:
        0 0 0 4px
        rgba(201, 167, 106, .14);
}

.table-subtext {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.status-superseded {
    color: #6b5c3f;
    background: #f1ede5;
}

.status-archived {
    color: #626875;
    background: #eceef1;
}

.checkbox-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 24px;
}

.check-card {
    min-height: 100px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    background: var(--ui-surface);
}

.check-card input {
    margin-top: 4px;
}

.check-card span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.check-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ui-text-strong);
    font-size: 13px;
}

.hash-code {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    border-radius: 9px;
    padding: 10px 12px;
    color: #424b5e;
    background: #f3f4f6;
    font-size: 11px;
}

.history-record {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.history-record span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.compact-empty {
    padding: 20px 0;
}

.version-notice {
    margin-bottom: 22px;
    border: 1px solid #ead9b7;
    border-radius: 14px;
    padding: 16px 18px;
    background: #fff8eb;
}

.version-notice strong {
    display: block;
    color: #644a1f;
}

.version-notice span {
    display: block;
    margin-top: 5px;
    color: #806e4f;
    font-size: 12px;
}

.document-tabs {
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.document-tabs a {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--muted);
    background: white;
    font-size: 12px;
    font-weight: 750;
}

.document-tabs a.active {
    color: white;
    border-color: var(--ui-text-strong);
    background: var(--navy-900);
}

.document-list {
    display: grid;
}

.client-document-card {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns:
        54px
        minmax(0, 1fr)
        auto;
    gap: 18px;
    align-items: center;
}

.client-document-card:last-child {
    border-bottom: 0;
}

.document-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--ui-text-strong);
    background: #f0e6d3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

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

.document-title-row h3 {
    margin: 0;
    color: var(--ui-text-strong);
    font-size: 14px;
}

.document-title-row p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.document-description {
    max-width: 760px;
    margin: 10px 0 0;
    color: #616a7b;
    font-size: 12px;
    line-height: 1.6;
}

.document-meta {
    margin-top: 11px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: #8a919f;
    font-size: 10px;
}

.document-card-action {
    min-width: 100px;
    text-align: right;
}

@media (max-width: 1000px) {
    .document-filter {
        grid-template-columns:
            1fr 1fr;
    }

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

@media (max-width: 700px) {
    .document-filter {
        grid-template-columns: 1fr;
    }

    .client-document-card {
        grid-template-columns:
            46px minmax(0, 1fr);
    }

    .document-card-action {
        grid-column: 1 / -1;
        text-align: left;
    }
}

/* LSC-COMMERCIAL-MODULE-STYLES */

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

.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: white;
    box-shadow:
        0 8px 24px
        rgba(7, 17, 33, .035);
}

.service-card h2 {
    margin: 14px 0 8px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 500;
}

.service-card > div > p {
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.service-price {
    margin: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.service-price span,
.service-price small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.service-price strong {
    display: block;
    margin: 5px 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 30px;
}

.service-order-form {
    margin-top: 18px;
}

.simple-filter {
    display: flex;
    gap: 10px;
    align-items: center;
}

.simple-filter select {
    min-width: 200px;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    background: white;
}

.status-consumed {
    color: #305979;
    background: #e8f2f8;
}

.status-rejected {
    color: #8a4343;
    background: #f9eaea;
}

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

.invoice-line span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.invoice-totals {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.invoice-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
}

.invoice-grand-total {
    margin-top: 7px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    color: var(--navy-900) !important;
    font-size: 16px !important;
}

@media (max-width: 900px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}

/* LSC-PREMIUM-COMMERCE-2G1 */

.commerce-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    border-radius: 24px;
    padding: 42px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, .65fr);
    gap: 42px;
    align-items: center;
    color: white;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(216, 189, 136, .25),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #071121,
            #142c4c
        );
    box-shadow:
        0 24px 60px
        rgba(7, 17, 33, .13);
}

.commerce-hero h1 {
    margin: 0;
    max-width: 720px;
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -.035em;
}

.commerce-hero > div:first-child > p:last-child {
    max-width: 680px;
    margin: 23px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 15px;
    line-height: 1.75;
}

.commerce-trust-card {
    border: 1px solid rgba(216,189,136,.35);
    border-radius: 18px;
    padding: 24px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
}

.trust-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--gold-400);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.commerce-trust-card strong {
    display: block;
    font-size: 15px;
    line-height: 1.5;
}

.commerce-trust-card p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.7;
}

.payment-guide-section,
.premium-services-section,
.premium-history-section {
    margin-top: 34px;
}

.section-heading-premium {
    margin-bottom: 20px;
}

.section-heading-premium > div {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.section-number {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border: 1px solid #dfd2ba;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #8c6a32;
    background: #fbf7ef;
    font-family: Georgia, serif;
    font-size: 13px;
}

.section-heading-premium h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 500;
}

.section-heading-premium p:not(.eyebrow) {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

.client-payment-method {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    background: white;
    box-shadow:
        0 12px 35px
        rgba(7,17,33,.045);
}

.payment-method-top {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.payment-method-symbol {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #6c5225;
    background: #f2e8d5;
    font-family: Georgia, serif;
    font-size: 12px;
}

.payment-method-top h3 {
    margin: 0;
    color: var(--ui-text-strong);
    font-size: 15px;
}

.payment-method-top p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.payment-method-text {
    color: #4f5869;
    font-size: 12px;
    line-height: 1.75;
}

.payment-reference-note {
    margin-top: 17px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.payment-reference-note strong {
    display: block;
    color: var(--ui-text);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.payment-reference-note span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.payment-method-empty {
    grid-column: 1 / -1;
    border: 1px dashed #d8dce4;
    border-radius: 16px;
    padding: 26px;
    color: var(--muted);
    background: var(--ui-surface-soft);
}

.premium-service-grid {
    display: grid;
    gap: 22px;
}

.premium-service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    background: white;
    box-shadow:
        0 14px 40px
        rgba(7,17,33,.055);
}

.premium-service-card.featured {
    border-color: #d7bf91;
    box-shadow:
        0 18px 50px
        rgba(99,72,28,.10);
}

.featured-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    border-bottom-left-radius: 14px;
    padding: 9px 17px;
    color: #513b17;
    background: #e6d3ac;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.premium-service-top {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        220px;
    gap: 28px;
    align-items: start;
}

.premium-service-badge {
    display: inline-flex;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #765a2b;
    background: #f5edde;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.premium-service-top h3 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 500;
}

.premium-service-top p {
    max-width: 730px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.premium-price-block {
    border-left: 1px solid var(--border);
    padding-left: 24px;
}

.premium-price-block > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.premium-price-block strong {
    display: block;
    margin: 5px 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 31px;
    font-weight: 500;
}

.premium-price-block small {
    color: var(--muted);
    font-size: 10px;
}

.turnaround-strip {
    margin-top: 20px;
    border-radius: 12px;
    padding: 11px 14px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #635132;
    background: #faf6ee;
    font-size: 11px;
}

.service-benefits {
    margin-top: 22px;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 11px 25px;
}

.service-benefits > div {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #50596b;
    font-size: 12px;
    line-height: 1.55;
}

.benefit-check {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #3c6958;
    background: #e9f4ef;
    font-size: 10px;
    font-weight: 900;
}

.premium-order-panel {
    margin-top: 26px;
    border-radius: 16px;
    padding: 22px;
    background: #f7f8fa;
}

.order-panel-heading {
    margin-bottom: 18px;
}

.order-panel-heading span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.order-panel-heading strong {
    display: block;
    margin-top: 4px;
    color: var(--ui-text-strong);
    font-size: 14px;
}

.premium-order-button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: white;
    background:
        linear-gradient(
            135deg,
            #09172d,
            #18375f
        );
    font-weight: 800;
}

.premium-order-button strong {
    color: var(--gold-400);
    font-size: 20px;
}

.branding-settings-layout {
    display: grid;
    grid-template-columns:
        250px
        minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
}

.brand-logo-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: #fafafa;
}

.brand-logo-card img {
    width: 100%;
    height: 150px;
    margin-bottom: 18px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
}

.brand-logo-placeholder {
    width: 100%;
    height: 150px;
    margin-bottom: 18px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--gold-500);
    background: var(--navy-900);
    font-family: Georgia, serif;
    font-size: 38px;
}

.brand-details-grid {
    padding: 0;
}

.payment-admin-grid {
    display: grid;
    gap: 14px;
}

.payment-admin-card {
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 20px;
    display: grid;
    grid-template-columns:
        50px minmax(0, 1fr);
    gap: 16px;
    background: white;
}

.payment-method-number {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #75592a;
    background: #f4ead9;
    font-family: Georgia, serif;
}

.payment-admin-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.payment-admin-heading h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-size: 16px;
}

.payment-admin-card p {
    margin: 5px 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.payment-instruction-preview {
    margin-bottom: 13px;
    white-space: pre-line;
    color: #596274;
    font-size: 12px;
    line-height: 1.65;
}

@media (max-width: 1050px) {
    .commerce-hero {
        grid-template-columns: 1fr;
    }

    .payment-method-client-grid {
        grid-template-columns: 1fr;
    }

    .premium-service-top {
        grid-template-columns: 1fr;
    }

    .premium-price-block {
        border-left: 0;
        border-top: 1px solid var(--border);
        padding: 18px 0 0;
    }
}

@media (max-width: 800px) {
    .commerce-hero {
        padding: 27px;
    }

    .service-benefits {
        grid-template-columns: 1fr;
    }

    .branding-settings-layout {
        grid-template-columns: 1fr;
    }
}

/* LSC-PREMIUM-INVOICE-2G2 */

.invoice-screen-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid #d8c49d;
    border-radius: 22px;
    padding: 30px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: white;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(216,189,136,.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #071121,
            #18365d
        );
    box-shadow:
        0 18px 48px
        rgba(7,17,33,.10);
}

.invoice-screen-hero h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 500;
}

.invoice-screen-hero > div > p:last-child {
    margin: 7px 0 0;
    color: rgba(255,255,255,.62);
    font-size: 12px;
}

.invoice-screen-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.invoice-screen-actions .status {
    color: #5b4219;
    background: var(--gold-300);
}

.invoice-screen-actions .button-primary {
    color: var(--ui-text-strong);
    background: white;
}

.invoice-security-panel {
    margin-top: 22px;
    border: 1px solid #d8e8df;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: #f7fbf9;
}

.invoice-security-panel > div:first-child {
    display: flex;
    align-items: center;
    gap: 13px;
}

.security-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #39725b;
    font-weight: 900;
}

.invoice-security-panel strong {
    display: block;
    color: #254c3d;
    font-size: 13px;
}

.invoice-security-panel p {
    margin: 4px 0 0;
    color: #698176;
    font-size: 11px;
}

.invoice-fingerprint {
    max-width: 390px;
    text-align: right;
}

.invoice-fingerprint span {
    display: block;
    margin-bottom: 4px;
    color: #73827b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.invoice-fingerprint code {
    color: #32463e;
    font-size: 9px;
    overflow-wrap: anywhere;
}

.invoice-pdf-pending {
    border: 1px dashed #d8c28f;
    border-radius: 12px;
    padding: 12px 14px;
    color: #7a6338;
    background: #fffaf0;
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 760px) {
    .invoice-screen-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .invoice-screen-actions {
        justify-content: flex-start;
    }

    .invoice-security-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .invoice-fingerprint {
        max-width: 100%;
        text-align: left;
    }
}

/* LSC-COMPACT-SERVICES-2G11 */

.compact-commerce-hero {
    margin-bottom: 34px;
    border-radius: 22px;
    padding: 34px 38px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(280px, .65fr);
    gap: 32px;
    align-items: center;
    color: white;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(216,189,136,.20),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #071121,
            #19395f
        );
}

.compact-commerce-hero h1 {
    max-width: 620px;
    margin: 0;
    font-family: Georgia, serif;
    font-size: 43px;
    font-weight: 400;
    line-height: 1.05;
}

.compact-commerce-hero > div:first-child > p:last-child {
    max-width: 660px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    line-height: 1.7;
}

.compact-hero-security {
    border: 1px solid rgba(216,189,136,.35);
    border-radius: 16px;
    padding: 20px;
    background: rgba(255,255,255,.055);
}

.compact-hero-security > span {
    color: var(--gold-400);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.compact-hero-security strong {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}

.compact-hero-security p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 11px;
    line-height: 1.6;
}

.catalogue-heading {
    margin: 0 0 19px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.catalogue-heading h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 500;
}

.catalogue-heading p:not(.eyebrow) {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.catalogue-count {
    border-radius: 999px;
    padding: 7px 12px;
    color: #6a5531;
    background: #f4ecdd;
    font-size: 10px;
    font-weight: 800;
}

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

.compact-service-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 21px;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow:
        0 10px 30px
        rgba(7,17,33,.045);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.compact-service-card:hover {
    transform: translateY(-3px);
    border-color: #d9c69f;
    box-shadow:
        0 18px 40px
        rgba(7,17,33,.08);
}

.compact-service-card.featured {
    border-color: #d4bd8e;
}

.compact-badges {
    min-height: 24px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.service-mini-badge,
.featured-mini-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-mini-badge {
    color: #705525;
    background: #f5ecdc;
}

.featured-mini-badge {
    color: white;
    background: var(--navy-900);
}

.compact-service-card h3 {
    margin: 12px 0 7px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.compact-card-top > p {
    min-height: 55px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.compact-benefits {
    margin: 17px 0;
    display: grid;
    gap: 8px;
}

.compact-benefits > div {
    color: #525c6d;
    font-size: 10.5px;
    line-height: 1.45;
}

.compact-benefits > div span {
    margin-right: 6px;
    color: #39725b;
    font-weight: 900;
}

.compact-card-meta {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.compact-card-meta > div > span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.compact-card-meta > div > strong {
    display: block;
    margin-top: 4px;
    color: #3d4657;
    font-size: 10px;
}

.compact-price {
    color: var(--navy-900) !important;
    font-family: Georgia, serif;
    font-size: 20px !important;
    font-weight: 500 !important;
}

.compact-buy-button {
    min-height: 44px;
    margin-top: 16px;
    border-radius: 11px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    background:
        linear-gradient(
            135deg,
            #09162b,
            #18365d
        );
    font-size: 11px;
    font-weight: 800;
}

.compact-buy-button strong {
    color: var(--gold-400);
    font-size: 17px;
}

.recent-orders-block {
    margin-top: 38px;
}

.checkout-back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.checkout-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        310px;
    gap: 24px;
    align-items: start;
}

.checkout-main {
    display: grid;
    gap: 20px;
}

.checkout-service-hero,
.checkout-includes,
.checkout-payment-section,
.checkout-order-section {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
    background: white;
    box-shadow:
        0 10px 30px
        rgba(7,17,33,.04);
}

.checkout-service-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        210px;
    gap: 28px;
    align-items: start;
}

.checkout-service-hero h1 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 500;
}

.checkout-description {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.checkout-price {
    border-left: 1px solid var(--border);
    padding-left: 22px;
}

.checkout-price > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.checkout-price strong {
    display: block;
    margin: 6px 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.checkout-price small {
    color: var(--muted);
    font-size: 9px;
}

.checkout-section-heading {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.checkout-section-heading > span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #75592a;
    background: #f4ead9;
    font-family: Georgia, serif;
    font-size: 11px;
}

.checkout-section-heading h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 500;
}

.checkout-section-heading p:not(.eyebrow) {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.checkout-turnaround {
    border-radius: 11px;
    padding: 11px 13px;
    display: flex;
    justify-content: space-between;
    color: #655431;
    background: #faf6ee;
    font-size: 10px;
}

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

.checkout-benefit-grid > div {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #525c6d;
    font-size: 11px;
}

.checkout-benefit-grid > div > span {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #39725b;
    background: #e8f3ee;
    font-size: 9px;
    font-weight: 900;
}

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

.checkout-payment-method {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: var(--ui-surface-soft);
}

.checkout-payment-title {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checkout-payment-title > span {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #705525;
    background: #f2e7d3;
    font-family: Georgia, serif;
    font-size: 9px;
}

.checkout-payment-title strong {
    display: block;
    color: var(--ui-text-strong);
    font-size: 12px;
}

.checkout-payment-title small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.checkout-payment-copy {
    margin-top: 13px;
    color: #596273;
    font-size: 10px;
    line-height: 1.65;
}

.checkout-reference-help {
    margin-top: 13px;
    border-top: 1px solid var(--border);
    padding-top: 11px;
}

.checkout-reference-help strong {
    color: #3f4858;
    font-size: 9px;
}

.checkout-reference-help p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

.checkout-no-payment {
    grid-column: 1 / -1;
    border: 1px dashed #d8dde5;
    border-radius: 12px;
    padding: 16px;
    color: var(--muted);
    background: var(--ui-surface-soft);
    font-size: 10px;
}

.premium-checkout-submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 13px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: white;
    background:
        linear-gradient(
            135deg,
            #071121,
            #1a3a63
        );
}

.premium-checkout-submit span {
    display: block;
    text-align: left;
    font-weight: 850;
    font-size: 12px;
}

.premium-checkout-submit small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.56);
    font-size: 9px;
}

.premium-checkout-submit > strong {
    color: var(--gold-400);
    font-family: Georgia, serif;
    font-size: 17px;
}

.checkout-summary {
    position: sticky;
    top: 98px;
}

.checkout-summary-card {
    border: 1px solid #d8c49d;
    border-radius: 18px;
    padding: 21px;
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfaf7
        );
    box-shadow:
        0 14px 36px
        rgba(7,17,33,.07);
}

.checkout-summary-card h3 {
    margin: 0 0 18px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    font-size: 10px;
}

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

.summary-total {
    margin-top: 5px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    color: var(--ui-text-strong);
    font-size: 14px;
}

.summary-turnaround {
    margin-top: 16px;
    border-radius: 10px;
    padding: 10px;
    background: #f6f1e7;
}

.summary-turnaround span {
    display: block;
    color: #8b744b;
    font-size: 8px;
    text-transform: uppercase;
}

.summary-turnaround strong {
    display: block;
    margin-top: 3px;
    color: #634d28;
    font-size: 10px;
}

.checkout-security-note {
    margin-top: 17px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    display: flex;
    gap: 9px;
}

.checkout-security-note > span {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: #39725b;
    font-size: 9px;
}

.checkout-security-note p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

@media (max-width: 1200px) {
    .compact-service-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .checkout-layout {
        grid-template-columns:
            minmax(0, 1fr) 270px;
    }
}

@media (max-width: 900px) {
    .compact-commerce-hero {
        grid-template-columns: 1fr;
    }

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

    .checkout-summary {
        position: static;
    }

    .checkout-service-hero {
        grid-template-columns: 1fr;
    }

    .checkout-price {
        border-left: 0;
        border-top: 1px solid var(--border);
        padding: 17px 0 0;
    }
}

@media (max-width: 700px) {
    .compact-service-grid {
        grid-template-columns: 1fr;
    }

    .checkout-payment-methods,
    .checkout-benefit-grid {
        grid-template-columns: 1fr;
    }

    .compact-commerce-hero {
        padding: 26px;
    }

    .compact-commerce-hero h1 {
        font-size: 34px;
    }
}

/* LSC-PREMIUM-DOCUMENT-VAULT-2E1 */

.document-vault-hero {
    margin-bottom: 22px;
    border-radius: 22px;
    padding: 32px 36px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(280px, .6fr);
    gap: 30px;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(
            circle at 92% 5%,
            rgba(216,189,136,.20),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #071121,
            #18385f
        );
    box-shadow:
        0 18px 45px
        rgba(7,17,33,.10);
}

.document-vault-hero h1 {
    margin: 0;
    max-width: 620px;
    font-family: Georgia, serif;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -.025em;
}

.document-vault-hero > div:first-child > p:last-child {
    max-width: 650px;
    margin: 15px 0 0;
    color: rgba(255,255,255,.64);
    font-size: 12px;
    line-height: 1.7;
}

.vault-security-card {
    border: 1px solid rgba(216,189,136,.30);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: rgba(255,255,255,.055);
}

.vault-security-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #183429;
    background: #d5eadf;
    font-weight: 900;
}

.vault-security-card strong {
    display: block;
    font-size: 12px;
}

.vault-security-card p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.55);
    font-size: 10px;
    line-height: 1.55;
}

.document-stat-row {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.document-mini-stat {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ui-surface);
}

.document-mini-stat span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.document-mini-stat strong {
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
}

.document-vault-toolbar {
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--ui-surface);
}

.document-vault-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.document-vault-tabs a {
    border-radius: 9px;
    padding: 9px 12px;
    color: #6b7484;
    font-size: 10px;
    font-weight: 750;
}

.document-vault-tabs a:hover {
    background: #f3f5f7;
}

.document-vault-tabs a.active {
    color: #fff;
    background: var(--navy-900);
}

.document-search-form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.document-search-field {
    min-width: 220px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--ui-surface);
}

.document-search-field span {
    color: #9298a4;
    font-size: 15px;
}

.document-search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 10px;
}

.document-search-form select {
    height: 40px;
    min-width: 150px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    outline: none;
    color: #515b6c;
    background: var(--ui-surface);
    font-size: 10px;
}

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

.vault-document-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 19px;
    display: flex;
    flex-direction: column;
    background: var(--ui-surface);
    box-shadow:
        0 8px 26px
        rgba(7,17,33,.04);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.vault-document-card:hover {
    transform: translateY(-3px);
    border-color: #d7c69f;
    box-shadow:
        0 17px 38px
        rgba(7,17,33,.075);
}

.vault-document-header {
    min-height: 54px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vault-file-icon {
    position: relative;
    overflow: hidden;
    width: 48px;
    height: 55px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.vault-file-icon .file-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-bottom-left-radius: 5px;
    background: rgba(255,255,255,.65);
}

.vault-file-icon strong {
    margin-top: 5px;
}

.file-pdf {
    color: #9d353b;
    background: #fbeaec;
}

.file-word {
    color: #245ca8;
    background: #e8f1fd;
}

.file-excel {
    color: #237548;
    background: #e8f6ee;
}

.file-powerpoint {
    color: #ac4b27;
    background: #fbeee8;
}

.file-image {
    color: #7550a5;
    background: #f1eafa;
}

.file-text {
    color: #586273;
    background: #eef0f3;
}

.file-file {
    color: #695637;
    background: #f3ede3;
}

.vault-document-badges {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.vault-new-badge,
.vault-postal-badge,
.vault-version-badge {
    border-radius: 999px;
    padding: 5px 7px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.vault-new-badge {
    color: #2e654e;
    background: #e8f4ee;
}

.vault-postal-badge {
    color: #705626;
    background: #f5eddd;
}

.vault-version-badge {
    color: #656c79;
    background: #eceef1;
}

.vault-document-body {
    margin-top: 16px;
}

.vault-document-category {
    margin-bottom: 6px;
    color: #a1844f;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vault-document-body h3 {
    min-height: 47px;
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 500;
}

.vault-document-body p {
    min-height: 49px;
    margin: 9px 0 0;
    color: #737c8c;
    font-size: 10px;
    line-height: 1.6;
}

.vault-muted-copy {
    color: #9298a4 !important;
}

.vault-document-info {
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 13px;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px 13px;
}

.vault-document-info span {
    display: block;
    color: #989eaa;
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.vault-document-info strong {
    display: block;
    margin-top: 3px;
    color: #4d5667;
    font-size: 9px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.vault-document-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vault-original-name {
    min-width: 0;
    color: #9a9faa;
    font-size: 8px;
    overflow-wrap: anywhere;
}

.vault-download-button {
    min-width: 100px;
    min-height: 37px;
    flex: 0 0 auto;
    border-radius: 9px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #09162b,
            #18385f
        );
    font-size: 9px;
    font-weight: 800;
}

.vault-download-button strong {
    color: var(--gold-400);
    font-size: 14px;
}

.vault-download-disabled {
    color: #a5a9b1;
    font-size: 8px;
}

.premium-document-empty {
    min-height: 300px;
    border: 1px dashed #d8dce4;
    border-radius: 18px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    background: var(--ui-surface);
}

.empty-document-icon {
    width: 58px;
    height: 66px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #697383;
    background: #eef0f3;
    font-size: 10px;
    font-weight: 900;
}

.premium-document-empty h2 {
    margin: 15px 0 5px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
}

.premium-document-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.premium-pagination {
    margin-top: 19px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
}

.premium-pagination > div {
    display: flex;
    gap: 7px;
}

@media (max-width: 1200px) {
    .document-vault-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .document-vault-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .document-search-form {
        width: 100%;
    }

    .document-search-field {
        flex: 1;
    }
}

@media (max-width: 850px) {
    .document-vault-hero {
        grid-template-columns: 1fr;
    }

    .document-stat-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .document-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .document-search-field,
    .document-search-form select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .document-vault-grid {
        grid-template-columns: 1fr;
    }

    .document-vault-hero {
        padding: 25px;
    }

    .document-vault-hero h1 {
        font-size: 31px;
    }

    .document-stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .document-vault-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .premium-pagination {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

/* LSC-COMPANY-POLICIES-2I */

.cms-search {
    margin-bottom: 25px;
    display: flex;
    gap: 8px;
}

.cms-search .document-search-field {
    flex: 1;
    max-width: 500px;
}

.cms-section {
    margin-top: 30px;
}

.cms-section-heading {
    margin-bottom: 15px;
}

.cms-section-heading h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 500;
}

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

.cms-admin-card {
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 18px;
    background: var(--ui-surface);
    box-shadow:
        0 8px 24px
        rgba(7,17,33,.035);
}

.cms-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.cms-section-chip {
    border-radius: 999px;
    padding: 5px 8px;
    color: #765b2d;
    background: #f5eddf;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.cms-admin-card h3,
.cms-resource-admin h3 {
    margin: 13px 0 6px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
}

.cms-admin-card > p,
.cms-resource-admin p {
    min-height: 50px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.cms-card-meta {
    margin: 13px 0;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #969ca7;
    font-size: 8px;
}

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

.cms-resource-admin {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 17px;
    display: grid;
    grid-template-columns:
        44px minmax(0,1fr);
    gap: 13px;
    background: var(--ui-surface);
}

.resource-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #715625;
    background: #f4ead8;
    font-size: 9px;
    font-weight: 900;
}

.company-policy-hero {
    margin-bottom: 20px;
    border-radius: 22px;
    padding: 31px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #fff;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(216,189,136,.20),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #071121,
            #18385f
        );
}

.company-policy-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.company-policy-logo,
.company-policy-logo-placeholder {
    width: 115px;
    height: 84px;
    flex: 0 0 115px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--ui-surface);
}

.company-policy-logo img {
    max-width: 92px;
    max-height: 62px;
    object-fit: contain;
}

.company-policy-logo-placeholder {
    color: #d1af70;
    background: rgba(255,255,255,.08);
    font-family: Georgia, serif;
    font-size: 27px;
}

.company-policy-hero h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 35px;
    font-weight: 400;
}

.company-policy-brand > div:last-child > p:last-child {
    max-width: 520px;
    margin: 9px 0 0;
    color: rgba(255,255,255,.59);
    font-size: 10px;
    line-height: 1.65;
}

.company-verified-panel {
    border: 1px solid rgba(216,189,136,.3);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.05);
}

.company-verified-panel > span {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #17362b;
    background: #d0e7db;
    font-size: 10px;
    font-weight: 900;
}

.company-verified-panel strong {
    display: block;
    font-size: 9px;
}

.company-verified-panel p {
    margin: 3px 0 0;
    color: rgba(255,255,255,.55);
    font-size: 8px;
}

.company-details-panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    background: var(--ui-surface);
    box-shadow:
        0 9px 26px
        rgba(7,17,33,.035);
}

.company-details-heading h2 {
    margin: 0 0 18px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 500;
}

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

.company-details-grid > div {
    border-radius: 11px;
    padding: 12px 13px;
    background: #f8f9fb;
}

.company-details-grid span {
    display: block;
    color: #9299a5;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.company-details-grid strong {
    display: block;
    margin-top: 4px;
    color: #445062;
    font-size: 10px;
    line-height: 1.5;
}

.company-address-detail {
    grid-column: 1 / -1;
}

.policy-library-section {
    margin-top: 29px;
}

.policy-section-title {
    margin-bottom: 15px;
}

.policy-section-title h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 500;
}

.policy-section-title p:not(.eyebrow) {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

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

.policy-client-card {
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 18px;
    display: grid;
    grid-template-columns:
        43px minmax(0,1fr) 20px;
    gap: 12px;
    align-items: start;
    color: inherit;
    background: var(--ui-surface);
    box-shadow:
        0 8px 25px
        rgba(7,17,33,.035);
    transition:
        transform .17s ease,
        border-color .17s ease,
        box-shadow .17s ease;
}

.policy-client-card:hover {
    transform: translateY(-2px);
    border-color: #dac69d;
    box-shadow:
        0 14px 32px
        rgba(7,17,33,.065);
}

.policy-card-icon {
    width: 43px;
    height: 49px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #6d552b;
    background: #f4ebdb;
    font-size: 8px;
    font-weight: 900;
}

.policy-type-privacy {
    color: #355c83;
    background: #eaf1f8;
}

.policy-type-compliance {
    color: #3e6c58;
    background: #e9f4ef;
}

.policy-type-refund {
    color: #8b5942;
    background: #f8eee9;
}

.policy-card-content > span {
    color: #a0834e;
    font-size: 7px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.policy-card-content h3 {
    margin: 6px 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 500;
}

.policy-card-content p {
    margin: 0;
    color: #7b8391;
    font-size: 9px;
    line-height: 1.55;
}

.policy-arrow {
    color: #ad8d57;
    padding-top: 9px;
    font-size: 15px;
}

.policy-empty-state {
    grid-column: 1 / -1;
    border: 1px dashed #d8dde4;
    border-radius: 15px;
    padding: 22px;
    color: var(--muted);
    background: var(--ui-surface-soft);
    font-size: 10px;
}

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

.knowledge-client-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: var(--ui-surface);
}

.knowledge-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.knowledge-type {
    color: #8e6e37;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.knowledge-card-heading small {
    color: #9aa0aa;
    font-size: 8px;
}

.knowledge-client-card h3 {
    margin: 8px 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 500;
}

.knowledge-description {
    color: #737c8c;
    font-size: 9.5px;
    line-height: 1.7;
}

.knowledge-external-link {
    display: inline-block;
    margin-top: 13px;
    color: #84662f;
    font-size: 9px;
    font-weight: 800;
}

.policy-document-view {
    max-width: 980px;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--ui-surface);
    box-shadow:
        0 14px 40px
        rgba(7,17,33,.055);
}

.policy-document-header {
    padding: 29px 31px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    background: var(--ui-surface-soft);
}

.policy-document-header h1 {
    margin: 4px 0 7px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 500;
}

.policy-document-header > div:first-child > p:last-child {
    max-width: 670px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.policy-current-badge {
    border: 1px solid #d7e7df;
    border-radius: 11px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #396b56;
    background: #f5faf7;
    font-size: 8px;
}

.policy-current-badge span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #4a8069;
}

.policy-document-body {
    min-height: 360px;
    padding: 36px 32px;
    color: #414b5c;
    font-size: 11px;
    line-height: 1.9;
}

.policy-document-footer {
    border-top: 1px solid var(--border);
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #979da8;
    background: var(--ui-surface-soft);
    font-size: 8px;
}

@media (max-width: 1050px) {
    .cms-page-grid,
    .policy-card-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

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

@media (max-width: 760px) {
    .cms-page-grid,
    .cms-resource-grid,
    .policy-card-grid,
    .knowledge-client-grid {
        grid-template-columns: 1fr;
    }

    .company-policy-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .company-policy-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .company-details-grid {
        grid-template-columns: 1fr;
    }

    .company-address-detail {
        grid-column: auto;
    }

    .policy-document-header {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .cms-search {
        flex-direction: column;
    }

    .cms-search .document-search-field {
        max-width: none;
    }

    .company-policy-hero {
        padding: 24px;
    }

    .policy-document-footer {
        flex-direction: column;
    }
}

/* LSC-PREMIUM-INBOX-2H */

.inbox-filter {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        170px
        auto
        auto;
    gap: 9px;
}

.inbox-filter input,
.inbox-filter select {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    background: var(--ui-surface);
}

.admin-message-list {
    display: grid;
}

.admin-message-row {
    min-height: 90px;
    border-top: 1px solid var(--border);
    padding: 15px 20px;
    display: grid;
    grid-template-columns:
        4px 42px minmax(0,1fr) 100px;
    gap: 14px;
    align-items: center;
    color: inherit;
    transition: background .15s ease;
}

.admin-message-row:hover {
    background: var(--ui-surface-soft);
}

.message-priority-marker {
    width: 4px;
    height: 42px;
    border-radius: 999px;
    background: #d8dce3;
}

.priority-important {
    background: #c89a4b;
}

.priority-urgent {
    background: #a64444;
}

.message-client-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--navy-900);
    font-size: 10px;
    font-weight: 850;
}

.admin-message-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-message-title-row > strong {
    color: var(--ui-text-strong);
    font-size: 12px;
}

.message-priority-label {
    border-radius: 999px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.priority-text-normal {
    color: #78808d;
}

.priority-text-important {
    color: #9b6d20;
}

.priority-text-urgent {
    color: #9f3f46;
}

.admin-message-main p {
    margin: 5px 0;
    color: #7b8391;
    font-size: 10px;
}

.admin-message-meta {
    display: flex;
    gap: 14px;
    color: #a0a5af;
    font-size: 8px;
}

.message-read-state {
    text-align: right;
}

.read-state-read,
.read-state-unread {
    display: block;
    font-size: 9px;
    font-weight: 850;
}

.read-state-read {
    color: #39725b;
}

.read-state-unread {
    color: #9a722e;
}

.message-read-state small {
    display: block;
    margin-top: 3px;
    color: #9ba0aa;
    font-size: 7px;
}

.compose-message-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--ui-surface);
    box-shadow:
        0 15px 40px
        rgba(7,17,33,.06);
}

.compose-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #071121,
            #18385f
        );
}

.compose-header span {
    display: block;
    color: var(--gold-400);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.compose-header strong {
    display: block;
    margin-top: 4px;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
}

.secure-chip {
    border: 1px solid rgba(216,189,136,.4);
    border-radius: 999px;
    padding: 6px 10px;
    color: #ead7af;
    font-size: 8px;
}

.compose-body {
    padding: 4px 0;
}

.compose-footer {
    border-top: 1px solid var(--border);
    padding: 17px 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: var(--ui-surface-soft);
}

.compose-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.message-detail-layout {
    max-width: 980px;
}

.message-detail-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--ui-surface);
    box-shadow:
        0 14px 38px
        rgba(7,17,33,.055);
}

.message-detail-header {
    padding: 25px 27px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-start;
    background: var(--ui-surface-soft);
}

.message-detail-header h1 {
    margin: 7px 0 5px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 500;
}

.message-detail-header p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.message-read-panel {
    text-align: right;
}

.message-read-panel strong {
    display: block;
    margin-top: 4px;
    color: #687182;
    font-size: 9px;
}

.message-body-content {
    min-height: 260px;
    padding: 32px 28px;
    color: #404a5b;
    font-size: 12px;
    line-height: 1.85;
}

.message-detail-footer {
    border-top: 1px solid var(--border);
    padding: 16px 27px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: var(--ui-surface-soft);
}

.message-detail-footer span {
    display: block;
    color: #999faa;
    font-size: 7px;
    text-transform: uppercase;
}

.message-detail-footer strong {
    display: block;
    margin-top: 3px;
    color: #596273;
    font-size: 9px;
}

.client-inbox-hero {
    margin-bottom: 19px;
    border-radius: 22px;
    padding: 31px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #fff;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(216,189,136,.19),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #071121,
            #19395f
        );
}

.client-inbox-hero h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 400;
}

.client-inbox-hero > div:first-child > p:last-child {
    max-width: 580px;
    margin: 11px 0 0;
    color: rgba(255,255,255,.60);
    font-size: 11px;
    line-height: 1.7;
}

.inbox-unread-display {
    min-width: 110px;
    border: 1px solid rgba(216,189,136,.32);
    border-radius: 16px;
    padding: 15px 20px;
    text-align: center;
    background: rgba(255,255,255,.055);
}

.inbox-unread-display span {
    display: block;
    color: #d7bd8b;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.inbox-unread-display strong {
    display: block;
    margin-top: 4px;
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 500;
}

.client-inbox-stats {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0,1fr));
    gap: 9px;
}

.client-inbox-stats > div {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ui-surface);
}

.client-inbox-stats span {
    color: var(--muted);
    font-size: 9px;
}

.client-inbox-stats strong {
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
}

.client-inbox-search {
    margin-bottom: 14px;
    display: flex;
    gap: 7px;
}

.client-inbox-search .document-search-field {
    flex: 1;
}

.client-message-list {
    display: grid;
    gap: 9px;
}

.client-message-card {
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns:
        24px minmax(0,1fr) 24px;
    gap: 12px;
    align-items: center;
    color: inherit;
    background: var(--ui-surface);
    box-shadow:
        0 7px 22px
        rgba(7,17,33,.03);
}

.client-message-card.unread {
    border-color: #d8c18f;
    background:
        linear-gradient(
            90deg,
            #fffaf1,
            #ffffff 13%
        );
}

.unread-dot {
    width: 8px;
    height: 8px;
    margin: auto;
    border-radius: 50%;
    display: block;
    background: #c7953e;
    box-shadow:
        0 0 0 4px
        rgba(199,149,62,.12);
}

.read-check {
    display: block;
    color: #4a8069;
    text-align: center;
    font-size: 11px;
}

.client-message-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.client-message-topline > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.client-message-topline strong {
    color: var(--ui-text-strong);
    font-size: 12px;
}

.client-message-topline time {
    color: #9aa0ab;
    font-size: 8px;
    white-space: nowrap;
}

.client-priority {
    border-radius: 999px;
    padding: 4px 6px;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}

.client-priority.priority-important {
    color: #896222;
    background: #f7edd9;
}

.client-priority.priority-urgent {
    color: #963e44;
    background: #fae8ea;
}

.client-message-content > p {
    margin: 6px 0;
    color: #77808f;
    font-size: 10px;
    line-height: 1.55;
}

.client-message-bottom {
    display: flex;
    gap: 12px;
    color: #a0a5af;
    font-size: 8px;
}

.client-message-bottom strong {
    color: #9b712b;
}

.message-open-arrow {
    color: #b09058;
    text-align: right;
    font-size: 16px;
}

.client-message-detail {
    max-width: 980px;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--ui-surface);
    box-shadow:
        0 14px 40px
        rgba(7,17,33,.055);
}

.client-message-detail-header {
    padding: 27px 29px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-start;
    color: #fff;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(216,189,136,.17),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #071121,
            #17375e
        );
}

.client-message-detail-header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 400;
}

.client-message-detail-header > div:first-child > p:last-child {
    margin: 7px 0 0;
    color: rgba(255,255,255,.56);
    font-size: 9px;
}

.secure-message-seal {
    border: 1px solid rgba(216,189,136,.30);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #e5d1aa;
    background: rgba(255,255,255,.05);
    font-size: 8px;
}

.secure-message-seal span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #17362a;
    background: #cce4d9;
}

.client-message-body {
    min-height: 300px;
    padding: 35px 30px;
    color: #404a5b;
    font-size: 12px;
    line-height: 1.9;
}

.client-message-detail-footer {
    border-top: 1px solid var(--border);
    padding: 17px 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: var(--ui-surface-soft);
}

.client-message-detail-footer span {
    display: block;
    margin-bottom: 3px;
    color: #9a9faa;
    font-size: 7px;
    text-transform: uppercase;
}

.client-message-detail-footer code {
    color: #596273;
    font-size: 8px;
}

@media (max-width: 800px) {
    .inbox-filter {
        grid-template-columns: 1fr;
    }

    .admin-message-row {
        grid-template-columns:
            4px 38px minmax(0,1fr);
    }

    .message-read-state {
        grid-column: 3;
        text-align: left;
    }

    .client-inbox-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-message-detail-header {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .client-inbox-stats {
        grid-template-columns: 1fr;
    }

    .client-inbox-search {
        flex-direction: column;
    }

    .client-message-topline {
        flex-direction: column;
        gap: 5px;
    }

    .client-message-detail-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .compose-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* LSC-PREMIUM-PROFILE-2J */

.profile-premium-hero {
    margin-bottom: 14px;
    border-radius: 22px;
    padding: 31px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #fff;
    background:
        radial-gradient(
            circle at 92% 0%,
            rgba(216,189,136,.20),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #071121,
            #19395f
        );
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border: 1px solid rgba(216,189,136,.45);
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ead5aa;
    background: rgba(255,255,255,.07);
    font-family: Georgia, serif;
    font-size: 22px;
}

.profile-identity h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 400;
}

.profile-identity > div:last-child > p:last-child {
    margin: 6px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 10px;
}

.profile-security-card {
    border: 1px solid rgba(216,189,136,.32);
    border-radius: 15px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255,255,255,.055);
}

.profile-security-card > span {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #17372b;
    background: #cfe7da;
    font-size: 10px;
    font-weight: 900;
}

.profile-security-card small {
    display: block;
    color: #d2b77f;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.profile-security-card strong {
    display: block;
    margin-top: 3px;
    font-size: 10px;
}

.profile-security-card p {
    margin: 3px 0 0;
    color: rgba(255,255,255,.52);
    font-size: 8px;
}

.profile-account-strip {
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 15px;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0,1fr));
    gap: 12px;
    background: var(--ui-surface);
}

.profile-account-strip > div {
    border-right: 1px solid var(--border);
    padding-right: 12px;
}

.profile-account-strip > div:last-child {
    border-right: 0;
}

.profile-account-strip span {
    display: block;
    color: #999faa;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.profile-account-strip strong {
    display: block;
    margin-top: 4px;
    color: #4d5667;
    font-size: 9px;
}

.profile-status {
    color: #39725b !important;
}

.profile-edit-layout {
    display: grid;
    grid-template-columns:
        minmax(0,1fr) 310px;
    gap: 20px;
    align-items: start;
}

.profile-edit-main {
    display: grid;
    gap: 15px;
}

.profile-section-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--ui-surface);
    box-shadow:
        0 8px 25px
        rgba(7,17,33,.035);
}

.profile-section-heading {
    border-bottom: 1px solid var(--border);
    padding: 18px 21px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: var(--ui-surface-soft);
}

.profile-section-heading h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
}

.profile-section-heading > div > p:last-child {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.profile-section-heading > span {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #705525;
    background: #f3ead8;
    font-family: Georgia, serif;
    font-size: 9px;
}

.profile-fields-grid {
    padding: 20px;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0,1fr));
    gap: 15px;
}

.profile-save-bar {
    border: 1px solid #d8c69e;
    border-radius: 15px;
    padding: 15px 17px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: #fffaf1;
}

.profile-save-bar strong {
    display: block;
    color: #5f4a27;
    font-size: 10px;
}

.profile-save-bar span {
    display: block;
    margin-top: 3px;
    color: #887452;
    font-size: 8px;
}

.profile-sidebar {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 13px;
}

.profile-readonly-card {
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 18px;
    background: var(--ui-surface);
    box-shadow:
        0 8px 24px
        rgba(7,17,33,.035);
}

.profile-readonly-card h3 {
    margin: 0 0 14px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
}

.readonly-profile-row {
    border-top: 1px solid var(--border);
    padding: 10px 0;
}

.readonly-profile-row span {
    display: block;
    color: #9a9faa;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.readonly-profile-row strong {
    display: block;
    margin-top: 3px;
    color: #4d5768;
    font-size: 9px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.profile-readonly-note {
    margin: 12px 0 0;
    color: #89909c;
    font-size: 8px;
    line-height: 1.6;
}

.profile-security-info {
    border: 1px solid #d6e6de;
    border-radius: 15px;
    padding: 14px;
    display: flex;
    gap: 10px;
    background: #f6faf8;
}

.profile-security-check {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: #4a8069;
    font-size: 9px;
}

.profile-security-info strong {
    display: block;
    color: #315b4a;
    font-size: 9px;
}

.profile-security-info p {
    margin: 3px 0 0;
    color: #71877d;
    font-size: 8px;
    line-height: 1.55;
}

@media (max-width: 1000px) {
    .profile-edit-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {
    .profile-premium-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-account-strip {
        grid-template-columns: 1fr;
    }

    .profile-account-strip > div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 8px;
    }

    .profile-account-strip > div:last-child {
        border-bottom: 0;
    }

    .profile-fields-grid {
        grid-template-columns: 1fr;
    }

    .profile-save-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* LSC-COMPANY-RECORDS-2K */

.company-admin-filter {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns:
        minmax(260px,1fr)
        170px
        auto
        auto;
    gap: 8px;
}

.company-admin-filter select {
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    background: var(--ui-surface);
}

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

.company-record-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 19px;
    display: flex;
    flex-direction: column;
    background: var(--ui-surface);
    box-shadow:
        0 9px 27px
        rgba(7,17,33,.04);
}

.company-record-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.company-record-monogram {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #d2b578;
    background: #0d1c33;
    font-family: Georgia, serif;
    font-size: 14px;
}

.company-record-badges {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    flex-wrap: wrap;
}

.company-primary-chip {
    border-radius: 999px;
    padding: 5px 8px;
    color: #765b2d;
    background: #f4ebda;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}

.company-record-body {
    margin-top: 16px;
}

.company-record-body h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
}

.company-trading-name {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.company-card-facts {
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 11px;
}

.company-card-facts span {
    display: block;
    color: #999faa;
    font-size: 7px;
    text-transform: uppercase;
}

.company-card-facts strong {
    display: block;
    margin-top: 3px;
    color: #505a6b;
    font-size: 9px;
    overflow-wrap: anywhere;
}

.company-record-footer {
    margin-top: auto;
    padding-top: 16px;
}

.company-editor-layout {
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        300px;
    gap: 20px;
    align-items: start;
}

.company-editor-section {
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--ui-surface);
}

.company-editor-heading {
    border-bottom: 1px solid var(--border);
    padding: 18px 20px;
    display: flex;
    gap: 13px;
    background: var(--ui-surface-soft);
}

.company-editor-heading > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #765b2d;
    background: #f3ead8;
    font-family: Georgia, serif;
    font-size: 9px;
}

.company-editor-heading h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
}

.company-editor-heading p:last-child {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.company-editor-fields {
    padding: 20px;
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 14px;
}

.company-primary-option {
    grid-column: 1 / -1;
    border: 1px solid #dfcfac;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    background: #fffaf1;
}

.company-primary-option strong {
    display: block;
    color: #66502a;
    font-size: 10px;
}

.company-primary-option span {
    color: #83704f;
    font-size: 9px;
}

.company-save-bar {
    border: 1px solid #d8c69e;
    border-radius: 15px;
    padding: 15px 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #fffaf1;
}

.company-save-bar strong {
    display: block;
    color: #604a26;
    font-size: 10px;
}

.company-save-bar span {
    display: block;
    margin-top: 3px;
    color: #887452;
    font-size: 8px;
}

.company-editor-sidebar {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 13px;
}

.company-side-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 17px;
    background: var(--ui-surface);
}

.company-side-card h3 {
    margin: 0 0 12px;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
}

.company-side-row {
    border-top: 1px solid var(--border);
    padding: 9px 0;
}

.company-side-row span {
    display: block;
    color: #9b9faa;
    font-size: 7px;
    text-transform: uppercase;
}

.company-side-row strong {
    display: block;
    margin-top: 3px;
    color: #4f596a;
    font-size: 9px;
    overflow-wrap: anywhere;
}

.company-side-note {
    color: #858d99;
    font-size: 9px;
    line-height: 1.65;
}

.company-history-notice {
    border: 1px solid #d7e6df;
    border-radius: 15px;
    padding: 14px;
    display: flex;
    gap: 10px;
    background: #f6faf8;
}

.company-history-notice > span {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #4a8069;
    font-size: 9px;
}

.company-history-notice strong {
    color: #315b4a;
    font-size: 9px;
}

.company-history-notice p {
    margin: 3px 0 0;
    color: #71877d;
    font-size: 8px;
    line-height: 1.55;
}

@media (max-width: 1150px) {
    .company-admin-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 950px) {
    .company-editor-layout {
        grid-template-columns: 1fr;
    }

    .company-editor-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .company-admin-filter {
        grid-template-columns: 1fr;
    }

    .company-admin-grid {
        grid-template-columns: 1fr;
    }

    .company-editor-fields {
        grid-template-columns: 1fr;
    }

    .company-primary-option {
        grid-column: auto;
    }

    .company-save-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* LSC-THREADED-INBOX-2K1 */

.message-admin-filter {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns:
        minmax(240px,1fr)
        minmax(180px,240px)
        150px
        auto
        auto
        auto;
    gap: 8px;
    align-items: center;
}

.message-admin-filter select {
    min-height: 41px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 11px;
    background: var(--ui-surface);
}

.message-unread-filter {
    min-height: 41px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--ui-surface);
    color: #6d7583;
    font-size: 8px;
    white-space: nowrap;
}

.conversation-admin-list {
    display: grid;
    gap: 8px;
}

.conversation-admin-row {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns:
        42px
        minmax(0,1fr)
        85px
        20px;
    gap: 13px;
    align-items: center;
    color: inherit;
    background: var(--ui-surface);
    box-shadow:
        0 6px 20px
        rgba(7,17,33,.025);
}

.conversation-admin-row:hover {
    border-color: #d9c79e;
}

.conversation-unread {
    border-color: #d7bf88;
    background:
        linear-gradient(
            90deg,
            #fff9ed,
            #fff 13%
        );
}

.conversation-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--navy-900);
    font-size: 10px;
    font-weight: 900;
}

.conversation-title-line {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.conversation-title-line strong {
    color: var(--ui-text-strong);
    font-size: 11px;
}

.conversation-new-chip {
    border-radius: 999px;
    padding: 3px 6px;
    color: #8b6420;
    background: #f6ead0;
    font-size: 7px;
    font-weight: 900;
}

.conversation-admin-main > p {
    margin: 5px 0;
    color: #78808e;
    font-size: 9px;
}

.conversation-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #9ba1ab;
    font-size: 7.5px;
}

.conversation-admin-time {
    text-align: right;
}

.conversation-admin-time span,
.conversation-admin-time small {
    display: block;
    color: #8e95a0;
    font-size: 8px;
}

.conversation-admin-time small {
    margin-top: 3px;
    color: #adb1b8;
}

.thread-header-card,
.client-thread-header {
    margin-bottom: 15px;
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(216,189,136,.17),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #071121,
            #17375e
        );
}

.thread-header-card h1,
.client-thread-header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 400;
}

.thread-header-card p:last-child,
.client-thread-header p:last-child {
    margin: 5px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 9px;
}

.thread-security-chip {
    border: 1px solid rgba(216,189,136,.3);
    border-radius: 999px;
    padding: 8px 11px;
    display: flex;
    gap: 6px;
    align-items: center;
    color: #e4cea3;
    font-size: 8px;
}

.message-thread {
    display: grid;
    gap: 10px;
}

.thread-message {
    max-width: 78%;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 14px 16px;
    background: var(--ui-surface);
    box-shadow:
        0 5px 18px
        rgba(7,17,33,.025);
}

.thread-message-admin {
    margin-left: auto;
    border-color: #d8c49a;
    background: #fffaf1;
}

.thread-message-client {
    margin-right: auto;
    background: var(--ui-surface-soft);
}

.thread-message-admin-clientview {
    margin-right: auto;
    border-color: #d9c69a;
    background: #fffaf1;
}

.thread-message-client-own {
    margin-left: auto;
    color: #fff;
    background: #142d4c;
    border-color: #142d4c;
}

.thread-message-author {
    display: flex;
    align-items: center;
    gap: 7px;
}

.thread-message-author strong {
    font-size: 9px;
}

.thread-message-author span {
    color: #9a9faa;
    font-size: 7px;
}

.thread-message-client-own
.thread-message-author span {
    color: rgba(255,255,255,.58);
}

.thread-message-body {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.75;
}

.thread-attachments {
    margin-top: 11px;
    display: grid;
    gap: 6px;
}

.thread-attachment {
    border: 1px solid rgba(150,157,168,.24);
    border-radius: 10px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns:
        34px minmax(0,1fr) 16px;
    gap: 9px;
    align-items: center;
    color: inherit;
    background: rgba(255,255,255,.7);
}

.thread-message-client-own
.thread-attachment {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.07);
}

.attachment-file-icon {
    width: 34px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #765b2d;
    background: #f3ead8;
    font-size: 7px;
    font-weight: 900;
}

.thread-attachment strong {
    display: block;
    font-size: 8px;
    overflow-wrap: anywhere;
}

.thread-attachment small {
    display: block;
    margin-top: 2px;
    color: #969ca7;
    font-size: 7px;
}

.thread-message-client-own
.thread-attachment small {
    color: rgba(255,255,255,.55);
}

.thread-message-footer {
    margin-top: 9px;
    border-top: 1px solid rgba(150,157,168,.18);
    padding-top: 7px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #a0a5af;
    font-size: 7px;
}

.thread-message-client-own
.thread-message-footer {
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.55);
}

.thread-reply-box {
    margin-top: 15px;
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 18px;
    background: var(--ui-surface);
    box-shadow:
        0 8px 25px
        rgba(7,17,33,.035);
}

.thread-reply-heading {
    margin-bottom: 11px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.thread-reply-heading h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 500;
}

.thread-reply-box textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 12px;
    resize: vertical;
    outline: none;
    background: var(--ui-surface-soft);
}

.thread-reply-actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.thread-file-picker label {
    display: block;
    color: #6d7583;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.thread-file-picker input {
    display: block;
    margin-top: 6px;
    font-size: 8px;
}

.thread-file-picker small {
    display: block;
    margin-top: 4px;
    color: #a0a5ae;
    font-size: 7px;
}

.thread-archive-form {
    margin-top: 10px;
    text-align: right;
}

.client-thread {
    padding-bottom: 2px;
}

@media (max-width: 1100px) {
    .message-admin-filter {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 700px) {
    .message-admin-filter {
        grid-template-columns: 1fr;
    }

    .conversation-admin-row {
        grid-template-columns:
            38px minmax(0,1fr) 20px;
    }

    .conversation-admin-time {
        grid-column: 2;
        text-align: left;
    }

    .thread-header-card,
    .client-thread-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .thread-message {
        max-width: 94%;
    }

    .thread-reply-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* LSC-PROFILE-PHOTO-2K2 */

.profile-avatar-photo,
.account-avatar-photo,
.admin-client-photo {
    overflow: hidden;
}

.profile-avatar-photo img,
.account-avatar-photo img,
.admin-client-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-photo-manager {
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--ui-surface);
}

.profile-photo-manager-copy {
    flex: 1;
}

.profile-photo-manager h2 {
    margin: 0;
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
}

.profile-photo-manager p:last-child {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 8px;
}

.profile-photo-upload-form {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-photo-upload-form input {
    max-width: 220px;
    font-size: 8px;
}

.account-avatar-photo {
    border-radius: 50%;
}

.admin-client-photo-card {
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--ui-surface);
}

.admin-client-photo {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #d5b775;
    background: #0e1d34;
    font-family: Georgia, serif;
    font-size: 18px;
}

.admin-client-photo-card strong,
.admin-client-photo-card small {
    display: block;
}

.admin-client-photo-card strong {
    color: var(--ui-text-strong);
    font-family: Georgia, serif;
    font-size: 17px;
}

.admin-client-photo-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
}

@media (max-width: 700px) {
    .profile-photo-manager,
    .profile-photo-upload-form {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* LSC-AUDIT-ADMIN-2L */

.audit-filter-grid {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns:
        minmax(220px,1.4fr)
        repeat(4,minmax(130px,.8fr))
        135px
        135px
        auto
        auto;
    gap: 7px;
}

.audit-filter-grid input,
.audit-filter-grid select,
.administrator-search input {
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 10px;
    background: var(--ui-surface);
}

.audit-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--ui-surface);
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
}

.audit-table th {
    padding: 10px 12px;
    text-align: left;
    color: #818895;
    background: var(--ui-surface-soft);
    font-size: 7px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.audit-table td {
    padding: 11px 12px;
    border-top: 1px solid #edf0f3;
    vertical-align: middle;
    font-size: 8.5px;
}

.audit-table td strong,
.audit-table td small {
    display: block;
}

.audit-table td small {
    margin-top: 2px;
    color: #999faa;
    font-size: 7px;
}

.audit-actor span {
    display: inline-block;
    margin-top: 4px;
    border-radius: 999px;
    padding: 2px 6px;
    color: #806328;
    background: #f5ecd9;
    font-size: 6.5px;
    font-weight: 800;
    text-transform: capitalize;
}

.audit-event {
    color: #284667;
    font-size: 7.5px;
}

.audit-detail-header {
    margin-bottom: 15px;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background: #0e213a;
}

.audit-detail-header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 400;
}

.audit-detail-header p:last-child {
    color: rgba(255,255,255,.55);
}

.audit-json-panel {
    margin-top: 13px;
}

.audit-json-panel pre {
    max-height: 380px;
    margin: 0;
    overflow: auto;
    border-radius: 10px;
    padding: 13px;
    color: #d7dfeb;
    background: #101a29;
    font-size: 8px;
    line-height: 1.6;
}

.administrator-search {
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
}

.administrator-search input {
    width: min(440px,100%);
}

.administrator-grid {
    display: grid;
    gap: 8px;
}

.administrator-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 15px;
    display: grid;
    grid-template-columns:
        43px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    background: var(--ui-surface);
}

.administrator-avatar {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #d7bd87;
    background: #0e213a;
    font-size: 10px;
    font-weight: 900;
}

.administrator-title {
    display: flex;
    align-items: center;
    gap: 7px;
}

.administrator-title strong {
    color: var(--ui-text-strong);
    font-size: 10px;
}

.administrator-info p {
    margin: 3px 0;
    color: #7f8793;
    font-size: 8px;
}

.administrator-meta {
    display: flex;
    gap: 12px;
    color: #9ca2ac;
    font-size: 7px;
    text-transform: capitalize;
}

.status-live,
.status-off {
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 6px;
    font-weight: 900;
}

.status-live {
    color: #337359;
    background: #e6f3ed;
}

.status-off {
    color: #936363;
    background: #f5eaea;
}

.administrator-password-panel {
    margin-top: 15px;
}

.administrator-password-action {
    display: flex;
    align-items: flex-end;
}

@media (max-width: 1100px) {
    .audit-filter-grid {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 700px) {
    .audit-filter-grid {
        grid-template-columns: 1fr;
    }

    .administrator-card {
        grid-template-columns:
            43px minmax(0,1fr);
    }

    .administrator-card > .button {
        grid-column: 2;
    }
}


/* ==========================================================
   LSC-SMART-DARKMODE-2L1
   Premium Typography + Smart Dark Mode
   ========================================================== */

:root {
    --ui-bg: #f5f7fa;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f8fafc;
    --ui-surface-raised: #ffffff;

    --ui-text: #162033;
    --ui-text-strong: #09182d;
    --ui-muted: #657084;

    --ui-border: #dfe4eb;
    --ui-input: #ffffff;

    --ui-gold: #b99452;
    --ui-gold-soft: #f4ead8;

    --ui-shadow:
        0 8px 28px
        rgba(8, 20, 38, .055);
}


/* ----------------------------------------------------------
   MODERN READABLE TYPOGRAPHY
   ---------------------------------------------------------- */

html {
    font-size: 16px;
}

body,
button,
input,
select,
textarea {
    font-family:
        "Segoe UI Variable Text",
        "Segoe UI Variable",
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
}

body {
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: .002em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-header h1,
.panel-header h2,
.stat-value,
.brand-copy strong,
.audit-detail-header h1,
.thread-header-card h1,
.client-thread-header h1,
.profile-photo-manager h2,
.admin-client-photo-card strong {
    font-family:
        "Segoe UI Variable Display",
        "Segoe UI Variable",
        "Segoe UI",
        Arial,
        sans-serif !important;
    letter-spacing: -.015em;
}


/* Sidebar */

.sidebar .brand {
    min-height: 72px;
}

.brand-mark {
    display: none !important;
}

.brand-copy strong {
    font-size: 17px !important;
    font-weight: 700;
}

.brand-copy span {
    font-size: 12px !important;
}

.nav-item,
.logout-button {
    font-size: 14px !important;
    line-height: 1.35;
}

.sidebar-footer {
    font-size: 13px;
}


/* Top bar */

.topbar {
    min-height: 68px;
}

.topbar-title {
    font-size: 15px !important;
    font-weight: 600;
}

.account-chip {
    font-size: 13px;
}

.account-chip strong {
    font-size: 13px !important;
}

.account-chip span,
.account-chip small {
    font-size: 11px !important;
}


/* Page hierarchy */

.eyebrow {
    font-size: 11px !important;
    letter-spacing: .11em;
    font-weight: 700;
}

.page-header h1 {
    font-size: 30px !important;
    line-height: 1.2;
    font-weight: 650;
}

.page-header p {
    font-size: 14px !important;
    line-height: 1.6;
}

.stat-label {
    font-size: 11px !important;
    letter-spacing: .06em;
}

.stat-value {
    font-size: 27px !important;
    font-weight: 650;
}

.panel-header h2 {
    font-size: 18px !important;
    font-weight: 650;
}

.panel-body,
.panel-body p {
    font-size: 14px;
}

.detail label {
    font-size: 11px !important;
    font-weight: 700;
}

.detail > div {
    font-size: 14px !important;
}


/* Forms */

.field label,
form label {
    font-size: 12px;
    font-weight: 650;
}

input,
select,
textarea {
    font-size: 14px !important;
    line-height: 1.45;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
    min-height: 43px;
}

textarea {
    min-height: 110px;
}

.field-help,
.form-help {
    font-size: 11px !important;
    line-height: 1.5;
}

.button,
button.button {
    font-size: 13px !important;
    font-weight: 650;
    line-height: 1.2;
}


/* General tables */

table th {
    font-size: 11px !important;
    font-weight: 700;
}

table td {
    font-size: 13px !important;
    line-height: 1.45;
}


/* Audit readability */

.audit-table th {
    font-size: 11px !important;
}

.audit-table td {
    font-size: 13px !important;
}

.audit-table td small {
    font-size: 11px !important;
}

.audit-actor span {
    font-size: 10px !important;
}

.audit-event {
    font-size: 11px !important;
}

.audit-json-panel pre {
    font-size: 12px !important;
    line-height: 1.65;
}


/* Inbox readability */

.conversation-title-line strong {
    font-size: 14px !important;
}

.conversation-admin-main > p {
    font-size: 12px !important;
}

.conversation-meta {
    font-size: 11px !important;
}

.conversation-admin-time span {
    font-size: 11px !important;
}

.conversation-admin-time small {
    font-size: 10px !important;
}

.thread-message-author strong {
    font-size: 12px !important;
}

.thread-message-author span {
    font-size: 10px !important;
}

.thread-message-body {
    font-size: 14px !important;
}

.thread-message-footer {
    font-size: 10px !important;
}

.thread-attachment strong {
    font-size: 12px !important;
}

.thread-attachment small {
    font-size: 10px !important;
}


/* Administrator readability */

.administrator-title strong {
    font-size: 14px !important;
}

.administrator-info p {
    font-size: 12px !important;
}

.administrator-meta {
    font-size: 10px !important;
}


/* ----------------------------------------------------------
   THEME BUTTON
   ---------------------------------------------------------- */

.theme-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;

    margin-left: auto;
    margin-right: 10px;

    border: 1px solid var(--ui-border);
    border-radius: 11px;

    display: grid;
    place-items: center;

    color: var(--ui-text-strong);
    background: var(--ui-surface);

    cursor: pointer;

    box-shadow:
        0 3px 10px
        rgba(8, 20, 38, .045);

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: #c6a766;
}

.theme-toggle-icon {
    display: block;
    font-size: 19px;
    line-height: 1;
}


/* ----------------------------------------------------------
   LIGHT SURFACES — NORMALISE EXISTING UI
   ---------------------------------------------------------- */

body {
    color: var(--ui-text);
    background: var(--ui-bg);
}

.topbar {
    background: var(--ui-surface);
}

.panel,
.stat-card,
.detail,
.account-chip,
.profile-photo-manager,
.admin-client-photo-card,
.administrator-card,
.audit-table-wrap,
.thread-reply-box,
.conversation-admin-row {
    border-color: var(--ui-border);
}


/* ==========================================================
   DARK MODE
   ========================================================== */

html[data-theme="dark"] {
    color-scheme: dark;

    --ui-bg: #090f19;
    --ui-surface: #111a27;
    --ui-surface-soft: #162131;
    --ui-surface-raised: #182536;

    --ui-text: #dfe7f1;
    --ui-text-strong: #f5f7fb;
    --ui-muted: #a1adbd;

    --ui-border: #2a3748;
    --ui-input: #131e2d;

    --ui-gold: #d1b06c;
    --ui-gold-soft: #30291d;

    --border: #2a3748;
    --muted: #a1adbd;
}


/* Main shell */

html[data-theme="dark"] body,
html[data-theme="dark"] .portal-shell,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .content,
html[data-theme="dark"] .page-content,
html[data-theme="dark"] main {
    color: var(--ui-text);
    background-color: var(--ui-bg);
}


/* Sidebar stays premium navy */

html[data-theme="dark"] .sidebar {
    border-right-color: #243247;
    background:
        linear-gradient(
            180deg,
            #07101d,
            #0b1728
        );
}

html[data-theme="dark"] .sidebar .nav-item {
    color: #c7d2df;
}

html[data-theme="dark"] .sidebar .nav-item:hover {
    color: #ffffff;
    background: rgba(255,255,255,.055);
}

html[data-theme="dark"] .sidebar .nav-item.active {
    color: #f0d79f;
    background: rgba(206,172,101,.12);
}


/* Top bar */

html[data-theme="dark"] .topbar {
    color: var(--ui-text);
    border-bottom-color: var(--ui-border);
    background: #101927;
}

html[data-theme="dark"] .topbar-title,
html[data-theme="dark"] .account-chip strong {
    color: var(--ui-text-strong);
}

html[data-theme="dark"] .account-chip {
    border-color: var(--ui-border);
    background: #162131;
}


/* Typography */

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .page-header h1,
html[data-theme="dark"] .panel-header h2,
html[data-theme="dark"] .stat-value,
html[data-theme="dark"] .detail > div,
html[data-theme="dark"] .administrator-title strong,
html[data-theme="dark"] .conversation-title-line strong {
    color: var(--ui-text-strong) !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .page-header p,
html[data-theme="dark"] .detail label,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .form-help {
    color: var(--ui-muted);
}


/* Primary surfaces */

html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .detail,
html[data-theme="dark"] .profile-photo-manager,
html[data-theme="dark"] .admin-client-photo-card,
html[data-theme="dark"] .administrator-card,
html[data-theme="dark"] .conversation-admin-row,
html[data-theme="dark"] .thread-reply-box,
html[data-theme="dark"] .compose-message-card,
html[data-theme="dark"] .client-message-card,
html[data-theme="dark"] .premium-document-empty,
html[data-theme="dark"] .document-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .invoice-card,
html[data-theme="dark"] .checkout-card,
html[data-theme="dark"] .profile-account-strip {
    color: var(--ui-text);
    border-color: var(--ui-border);
    background: var(--ui-surface);
    box-shadow:
        0 8px 26px
        rgba(0,0,0,.16);
}


/* Panel headers */

html[data-theme="dark"] .panel-header {
    border-color: var(--ui-border);
    background: var(--ui-surface);
}

html[data-theme="dark"] .panel-body {
    background: var(--ui-surface);
}


/* Inputs */

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color: var(--ui-text);
    border-color: var(--ui-border);
    background: var(--ui-input);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #758398;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
    border-color: #b99553;
    outline-color: rgba(185,149,83,.25);
}


/* Tables */

html[data-theme="dark"] table,
html[data-theme="dark"] .audit-table-wrap {
    color: var(--ui-text);
    border-color: var(--ui-border);
    background: var(--ui-surface);
}

html[data-theme="dark"] table thead,
html[data-theme="dark"] .audit-table th {
    color: #aeb9c8;
    border-color: var(--ui-border);
    background: #162131;
}

html[data-theme="dark"] table td,
html[data-theme="dark"] .audit-table td {
    color: var(--ui-text);
    border-color: var(--ui-border);
}

html[data-theme="dark"] table tbody tr:hover {
    background: rgba(255,255,255,.025);
}


/* Audit */

html[data-theme="dark"] .audit-event {
    color: #d8bd83;
}

html[data-theme="dark"] .audit-actor span {
    color: #dfc88e;
    background: #30291d;
}

html[data-theme="dark"] .audit-json-panel pre {
    color: #dce5f1;
    background: #070d16;
}


/* Inbox */

html[data-theme="dark"] .conversation-admin-row {
    background: var(--ui-surface);
}

html[data-theme="dark"] .conversation-unread {
    border-color: #806b42;
    background:
        linear-gradient(
            90deg,
            rgba(185,149,83,.13),
            var(--ui-surface) 18%
        );
}

html[data-theme="dark"] .thread-message {
    color: var(--ui-text);
    border-color: var(--ui-border);
    background: #162131;
}

html[data-theme="dark"] .thread-message-admin,
html[data-theme="dark"] .thread-message-admin-clientview {
    color: #e8dfcc;
    border-color: #554a34;
    background: #241f18;
}

html[data-theme="dark"] .thread-message-client,
html[data-theme="dark"] .thread-message-client-own {
    color: #eef4fb;
    border-color: #29405d;
    background: #152c48;
}

html[data-theme="dark"] .thread-attachment {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.045);
}


/* Buttons */

html[data-theme="dark"] .button-ghost,
html[data-theme="dark"] .button-secondary {
    color: #d8e1eb;
    border-color: var(--ui-border);
    background: #172334;
}

html[data-theme="dark"] .button-ghost:hover,
html[data-theme="dark"] .button-secondary:hover {
    background: #1d2b3e;
}

html[data-theme="dark"] .button-primary {
    color: #fff;
    border-color: #315276;
    background: #183b62;
}


/* Status / chips */

html[data-theme="dark"] .status-live {
    color: #8fd4b5;
    background: #153229;
}

html[data-theme="dark"] .status-off {
    color: #dfa5a5;
    background: #382323;
}

html[data-theme="dark"] .secure-chip,
html[data-theme="dark"] .badge {
    border-color: #564a32;
    color: #dbc58e;
    background: #29241b;
}


/* Theme button */

html[data-theme="dark"] .theme-toggle {
    color: #f1d79f;
    border-color: #344257;
    background: #182536;
}


/* Dropdown / file controls */

html[data-theme="dark"] input[type="file"]::file-selector-button {
    color: #e7edf5;
    border: 1px solid #344257;
    border-radius: 7px;
    background: #1b293b;
}


/* Scrollbars */

html[data-theme="dark"] {
    scrollbar-color:
        #3a485c
        #101824;
}

html[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #101824;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    border: 2px solid #101824;
    border-radius: 999px;
    background: #3a485c;
}


/* Mobile */

@media (max-width: 700px) {

    body {
        font-size: 14px;
    }

    .page-header h1 {
        font-size: 25px !important;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        margin-right: 7px;
    }
}



/* ==========================================================
   LSC-GLOBAL-UI-2L2
   System-wide visual refinement
   ========================================================== */


/* ----------------------------------------------------------
   GLOBAL TYPOGRAPHY SYSTEM
   ---------------------------------------------------------- */

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family:
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif !important;
}

body {
    font-size: 16px !important;
    line-height: 1.62;
    font-weight: 400;
}

p {
    line-height: 1.65;
}

strong {
    font-weight: 650;
}

small {
    line-height: 1.5;
}


/* ----------------------------------------------------------
   HEADINGS
   ---------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family:
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif !important;

    letter-spacing: -.022em;
}

.page-header h1 {
    font-size: 32px !important;
    line-height: 1.18;
    font-weight: 700;
}

.page-header p {
    max-width: 760px;
    font-size: 15px !important;
}

.panel-header h2 {
    font-size: 19px !important;
    font-weight: 700;
}

.eyebrow {
    font-size: 12px !important;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: .095em;
}


/* ----------------------------------------------------------
   SIDEBAR
   ---------------------------------------------------------- */

.brand-copy strong {
    font-size: 18px !important;
}

.brand-copy span {
    font-size: 13px !important;
}

.nav-item,
.logout-button {
    font-size: 15px !important;
    font-weight: 550;
}

.sidebar-nav {
    gap: 4px;
}

.nav-item {
    min-height: 42px;
    display: flex;
    align-items: center;
}


/* ----------------------------------------------------------
   TOP BAR
   ---------------------------------------------------------- */

.topbar {
    min-height: 72px;
}

.topbar-title {
    font-size: 16px !important;
}

.account-chip strong {
    font-size: 14px !important;
}

.account-chip span,
.account-chip small {
    font-size: 12px !important;
}


/* ----------------------------------------------------------
   FORMS
   ---------------------------------------------------------- */

.field label,
form label {
    font-size: 13px !important;
    font-weight: 650;
}

input,
select,
textarea {
    font-size: 15px !important;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
    min-height: 44px;
}

textarea {
    line-height: 1.6;
}

.field-help,
.form-help {
    font-size: 12px !important;
}

.button,
button.button {
    font-size: 14px !important;
    min-height: 40px;
    font-weight: 650;
}


/* ----------------------------------------------------------
   CARDS / PANELS
   ---------------------------------------------------------- */

.panel,
.stat-card,
.detail,
.document-card,
.service-card,
.invoice-card,
.checkout-card,
.company-card,
.content-card,
.resource-card,
.policy-card,
.payment-method-card,
.profile-photo-manager,
.admin-client-photo-card,
.administrator-card,
.conversation-admin-row,
.thread-reply-box,
.client-message-card,
.compose-message-card {
    border-radius: 14px;
}

.panel-body {
    font-size: 15px !important;
}

.detail label {
    font-size: 12px !important;
}

.detail > div {
    font-size: 15px !important;
}

.stat-label {
    font-size: 12px !important;
}

.stat-value {
    font-size: 29px !important;
    font-weight: 700;
}


/* ----------------------------------------------------------
   TABLES
   ---------------------------------------------------------- */

table th {
    font-size: 12px !important;
    letter-spacing: .045em;
}

table td {
    font-size: 14px !important;
}

.audit-table th {
    font-size: 12px !important;
}

.audit-table td {
    font-size: 14px !important;
}

.audit-table td small {
    font-size: 11px !important;
}

.audit-event {
    font-size: 12px !important;
}


/* ----------------------------------------------------------
   INBOX
   ---------------------------------------------------------- */

.conversation-title-line strong {
    font-size: 15px !important;
}

.conversation-admin-main > p {
    font-size: 13px !important;
}

.conversation-meta {
    font-size: 11px !important;
}

.thread-message-author strong {
    font-size: 13px !important;
}

.thread-message-author span {
    font-size: 11px !important;
}

.thread-message-body {
    font-size: 15px !important;
}

.thread-message-footer {
    font-size: 11px !important;
}

.thread-attachment strong {
    font-size: 13px !important;
}

.thread-attachment small {
    font-size: 11px !important;
}


/* ----------------------------------------------------------
   SMART LIGHT MODE
   ---------------------------------------------------------- */

:root {
    --ui-bg: #f2f5f8;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f7f9fb;
    --ui-surface-raised: #ffffff;

    --ui-text: #1b2533;
    --ui-text-strong: #0c192b;
    --ui-muted: #647184;

    --ui-border: #dbe1e8;
    --ui-input: #ffffff;

    --border: #dbe1e8;
    --muted: #647184;
}


/* ----------------------------------------------------------
   LIGHTER PROFESSIONAL DARK MODE
   ---------------------------------------------------------- */

html[data-theme="dark"] {
    color-scheme: dark;

    --ui-bg: #182331;
    --ui-surface: #223044;
    --ui-surface-soft: #28384d;
    --ui-surface-raised: #2d3d53;

    --ui-text: #e8eef5;
    --ui-text-strong: #ffffff;
    --ui-muted: #b6c1ce;

    --ui-border: #40536a;
    --ui-input: #29394e;

    --border: #40536a;
    --muted: #b6c1ce;

    --navy-950: #172435;
    --navy-900: #203149;
    --navy-800: #29405c;
    --navy-700: #365372;
}


/* ----------------------------------------------------------
   DARK MODE — PAGE BASE
   ---------------------------------------------------------- */

html[data-theme="dark"] body,
html[data-theme="dark"] .portal-shell,
html[data-theme="dark"] main,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .content,
html[data-theme="dark"] .page-content {
    color: var(--ui-text);
    background: var(--ui-bg) !important;
}


/* ----------------------------------------------------------
   DARK SIDEBAR
   ---------------------------------------------------------- */

html[data-theme="dark"] .sidebar {
    border-right: 1px solid #3a4a60;

    background:
        linear-gradient(
            180deg,
            #213047,
            #1b293c
        ) !important;
}

html[data-theme="dark"] .sidebar .brand {
    border-color: rgba(255,255,255,.08);
}

html[data-theme="dark"] .brand-copy strong {
    color: #ffffff;
}

html[data-theme="dark"] .brand-copy span {
    color: #b6c2d1;
}

html[data-theme="dark"] .nav-item {
    color: #d1dbe6;
}

html[data-theme="dark"] .nav-item:hover {
    color: #ffffff;

    background:
        rgba(
            255,
            255,
            255,
            .07
        );
}

html[data-theme="dark"] .nav-item.active {
    color: #f1d79e;

    background:
        rgba(
            215,
            184,
            116,
            .14
        );
}


/* ----------------------------------------------------------
   DARK TOP BAR
   ---------------------------------------------------------- */

html[data-theme="dark"] .topbar {
    color: var(--ui-text);

    border-bottom:
        1px solid
        var(--ui-border);

    background:
        #223044 !important;
}

html[data-theme="dark"] .topbar-title {
    color: #ffffff;
}

html[data-theme="dark"] .account-chip {
    color: var(--ui-text);

    border-color:
        var(--ui-border);

    background:
        #2a3a50 !important;
}


/* ----------------------------------------------------------
   DARK GLOBAL SURFACES
   ---------------------------------------------------------- */

html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .detail,
html[data-theme="dark"] .document-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .invoice-card,
html[data-theme="dark"] .checkout-card,
html[data-theme="dark"] .company-card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .resource-card,
html[data-theme="dark"] .policy-card,
html[data-theme="dark"] .payment-method-card,
html[data-theme="dark"] .profile-photo-manager,
html[data-theme="dark"] .profile-account-strip,
html[data-theme="dark"] .admin-client-photo-card,
html[data-theme="dark"] .administrator-card,
html[data-theme="dark"] .conversation-admin-row,
html[data-theme="dark"] .thread-reply-box,
html[data-theme="dark"] .compose-message-card,
html[data-theme="dark"] .client-message-card,
html[data-theme="dark"] .premium-document-empty,
html[data-theme="dark"] .client-inbox-search,
html[data-theme="dark"] .client-inbox-stats > div {
    color: var(--ui-text) !important;

    border-color:
        var(--ui-border) !important;

    background:
        var(--ui-surface) !important;

    box-shadow:
        0 8px 25px
        rgba(0,0,0,.10);
}


/* ----------------------------------------------------------
   DARK PANEL SECTIONS
   ---------------------------------------------------------- */

html[data-theme="dark"] .panel-header,
html[data-theme="dark"] .panel-body {
    border-color:
        var(--ui-border) !important;

    background:
        var(--ui-surface) !important;
}


/* ----------------------------------------------------------
   DARK TEXT NORMALISATION
   ---------------------------------------------------------- */

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] strong,
html[data-theme="dark"] .page-header h1,
html[data-theme="dark"] .panel-header h2,
html[data-theme="dark"] .stat-value,
html[data-theme="dark"] .detail > div,
html[data-theme="dark"] .conversation-title-line strong,
html[data-theme="dark"] .administrator-title strong {
    color:
        var(--ui-text-strong) !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] small,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .page-header p,
html[data-theme="dark"] .detail label,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .form-help {
    color:
        var(--ui-muted) !important;
}


/* ----------------------------------------------------------
   DARK FORMS
   ---------------------------------------------------------- */

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color:
        var(--ui-text) !important;

    border-color:
        var(--ui-border) !important;

    background:
        var(--ui-input) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #91a0b2;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
    border-color:
        #d0ad67 !important;

    outline:
        3px solid
        rgba(
            208,
            173,
            103,
            .13
        );
}


/* ----------------------------------------------------------
   DARK TABLES
   ---------------------------------------------------------- */

html[data-theme="dark"] table,
html[data-theme="dark"] .audit-table-wrap {
    color:
        var(--ui-text);

    border-color:
        var(--ui-border);

    background:
        var(--ui-surface);
}

html[data-theme="dark"] table thead,
html[data-theme="dark"] table th {
    color:
        #d1dbe6 !important;

    border-color:
        var(--ui-border) !important;

    background:
        #2b3c52 !important;
}

html[data-theme="dark"] table td {
    color:
        var(--ui-text) !important;

    border-color:
        var(--ui-border) !important;
}

html[data-theme="dark"] table tbody tr:hover {
    background:
        rgba(
            255,
            255,
            255,
            .035
        );
}


/* ----------------------------------------------------------
   DARK INBOX
   ---------------------------------------------------------- */

html[data-theme="dark"] .conversation-unread {
    border-color:
        #8b7449 !important;

    background:
        linear-gradient(
            90deg,
            rgba(
                204,
                168,
                96,
                .13
            ),
            var(--ui-surface)
            22%
        ) !important;
}

html[data-theme="dark"] .thread-message {
    color:
        var(--ui-text);

    border-color:
        var(--ui-border);

    background:
        #29394f !important;
}

html[data-theme="dark"] .thread-message-admin,
html[data-theme="dark"] .thread-message-admin-clientview {
    color: #f0e7d8;

    border-color:
        #746446;

    background:
        #453c2e !important;
}

html[data-theme="dark"] .thread-message-client,
html[data-theme="dark"] .thread-message-client-own {
    color: #ffffff;

    border-color:
        #456487;

    background:
        #315172 !important;
}

html[data-theme="dark"] .thread-attachment {
    border-color:
        rgba(
            255,
            255,
            255,
            .14
        );

    background:
        rgba(
            255,
            255,
            255,
            .055
        );
}


/* ----------------------------------------------------------
   DARK BUTTONS
   ---------------------------------------------------------- */

html[data-theme="dark"] .button-primary {
    color: #ffffff !important;

    border-color:
        #47709a !important;

    background:
        #355f88 !important;
}

html[data-theme="dark"] .button-primary:hover {
    background:
        #3d6d9c !important;
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .button-ghost {
    color:
        #e4ebf3 !important;

    border-color:
        var(--ui-border) !important;

    background:
        #2b3c52 !important;
}

html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .button-ghost:hover {
    background:
        #344861 !important;
}


/* ----------------------------------------------------------
   DARK BADGES
   ---------------------------------------------------------- */

html[data-theme="dark"] .badge,
html[data-theme="dark"] .secure-chip {
    color:
        #efd9a7 !important;

    border-color:
        #7b6741 !important;

    background:
        #4b402d !important;
}


/* ----------------------------------------------------------
   CLIENT SPECIFIC
   ---------------------------------------------------------- */

html[data-theme="dark"] .client-inbox-hero {
    border-color:
        var(--ui-border);

    background:
        linear-gradient(
            135deg,
            #2b4059,
            #385674
        ) !important;
}

html[data-theme="dark"] .client-thread-header,
html[data-theme="dark"] .thread-header-card {
    background:
        linear-gradient(
            135deg,
            #2a4059,
            #3a5877
        ) !important;
}

html[data-theme="dark"] .profile-avatar,
html[data-theme="dark"] .account-avatar {
    border-color:
        #60748c;
}


/* ----------------------------------------------------------
   FILTERS / SEARCH AREAS
   ---------------------------------------------------------- */

html[data-theme="dark"] .message-admin-filter,
html[data-theme="dark"] .audit-filter-grid,
html[data-theme="dark"] .administrator-search {
    color:
        var(--ui-text);
}

html[data-theme="dark"] .message-unread-filter {
    color:
        var(--ui-text);

    border-color:
        var(--ui-border);

    background:
        var(--ui-surface);
}


/* ----------------------------------------------------------
   FILE CONTROLS
   ---------------------------------------------------------- */

html[data-theme="dark"]
input[type="file"]::file-selector-button {
    color: #eef3f8;

    border:
        1px solid
        #52677f;

    border-radius:
        7px;

    background:
        #33465e;
}


/* ----------------------------------------------------------
   ERROR / SUCCESS MESSAGES
   ---------------------------------------------------------- */

html[data-theme="dark"] .success-box {
    color: #b7e6cf;

    border-color:
        #3f7560;

    background:
        #294a3d !important;
}

html[data-theme="dark"] .error-box {
    color: #f1c2c2;

    border-color:
        #885b5b;

    background:
        #513636 !important;
}


/* ----------------------------------------------------------
   THEME TOGGLE
   ---------------------------------------------------------- */

html[data-theme="dark"] .theme-toggle {
    color:
        #f0d79f;

    border-color:
        #53677f;

    background:
        #314259 !important;
}


/* ----------------------------------------------------------
   ACCESSIBILITY / FOCUS
   ---------------------------------------------------------- */

a,
button,
input,
select,
textarea {
    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline:
        3px solid
        rgba(
            194,
            154,
            78,
            .28
        );

    outline-offset: 2px;
}


/* ----------------------------------------------------------
   MOBILE TYPOGRAPHY
   ---------------------------------------------------------- */

@media (max-width: 700px) {

    body {
        font-size:
            15px !important;
    }

    .page-header h1 {
        font-size:
            27px !important;
    }

    .page-header p {
        font-size:
            14px !important;
    }

    .nav-item,
    .logout-button {
        font-size:
            14px !important;
    }

    table td {
        font-size:
            13px !important;
    }
}



/* ==========================================================
   LSC-THEME-COMPLETE-2L3
   Full system theme coverage
   ========================================================== */


/* ----------------------------------------------------------
   PROFESSIONAL FLUID TYPOGRAPHY
   ---------------------------------------------------------- */

body {
    font-size:
        clamp(
            15px,
            .25vw + 14px,
            16px
        ) !important;

    line-height: 1.62;
}

.page-header h1 {
    font-size:
        clamp(
            28px,
            1.7vw,
            34px
        ) !important;
}

.page-header p {
    font-size:
        clamp(
            14px,
            .35vw + 12px,
            16px
        ) !important;
}

.nav-item,
.logout-button {
    font-size:
        clamp(
            14px,
            .2vw + 13px,
            15px
        ) !important;
}

.panel-header h2 {
    font-size:
        clamp(
            18px,
            .6vw + 14px,
            20px
        ) !important;
}

.panel-body,
.detail > div {
    font-size:
        15px !important;
}

input,
select,
textarea {
    font-size:
        15px !important;
}

table td {
    font-size:
        14px !important;
}

table th {
    font-size:
        12px !important;
}


/* ----------------------------------------------------------
   CONSISTENT SPACING / SURFACE SYSTEM
   ---------------------------------------------------------- */

.panel,
.stat-card,
.document-card,
.service-card,
.invoice-card,
.company-card,
.content-card,
.resource-card,
.policy-card,
.payment-method-card,
.administrator-card,
.client-message-card,
.compose-message-card,
.thread-reply-box,
.profile-photo-manager,
.admin-client-photo-card {
    border:
        1px solid
        var(--ui-border);

    box-shadow:
        0 8px 24px
        rgba(
            14,
            29,
            49,
            .05
        );
}


/* ----------------------------------------------------------
   FORM SECTIONS
   Covers Settings / Companies / Clients / CMS etc.
   ---------------------------------------------------------- */

main form > section,
.main-content form > section,
.content form > section,
.page-content form > section,
.form-section,
.form-card,
.settings-section,
.settings-card,
.settings-panel,
.branding-panel,
.branding-card,
.invoice-settings-card,
.invoice-settings-panel {
    color:
        var(--ui-text);

    border-color:
        var(--ui-border);

    background:
        var(--ui-surface);
}


/* ----------------------------------------------------------
   DARK MODE: FORM / SETTINGS COMPLETION
   ---------------------------------------------------------- */

html[data-theme="dark"]
main form > section,

html[data-theme="dark"]
.main-content form > section,

html[data-theme="dark"]
.content form > section,

html[data-theme="dark"]
.page-content form > section,

html[data-theme="dark"]
.form-section,

html[data-theme="dark"]
.form-card,

html[data-theme="dark"]
.settings-section,

html[data-theme="dark"]
.settings-card,

html[data-theme="dark"]
.settings-panel,

html[data-theme="dark"]
.branding-panel,

html[data-theme="dark"]
.branding-card,

html[data-theme="dark"]
.invoice-settings-card,

html[data-theme="dark"]
.invoice-settings-panel {
    color:
        var(--ui-text) !important;

    border-color:
        var(--ui-border) !important;

    background:
        var(--ui-surface) !important;
}


/* Direct nested blocks inside forms */

html[data-theme="dark"]
main form > section > div,

html[data-theme="dark"]
.settings-section > div,

html[data-theme="dark"]
.settings-card > div {
    border-color:
        var(--ui-border);
}


/* ----------------------------------------------------------
   MODALS / DIALOGS
   ---------------------------------------------------------- */

html[data-theme="dark"] .modal,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-dialog,
html[data-theme="dark"] .dialog,
html[data-theme="dark"] [role="dialog"] {
    color:
        var(--ui-text) !important;

    border-color:
        var(--ui-border) !important;

    background:
        var(--ui-surface-raised) !important;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-body,
html[data-theme="dark"] .modal-footer {
    color:
        var(--ui-text);

    border-color:
        var(--ui-border);

    background:
        var(--ui-surface-raised);
}

html[data-theme="dark"] .modal-backdrop,
html[data-theme="dark"] .dialog-backdrop {
    background:
        rgba(
            18,
            30,
            44,
            .66
        );
}


/* ----------------------------------------------------------
   DROPDOWNS / POPOVERS
   ---------------------------------------------------------- */

html[data-theme="dark"] .dropdown,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .popover,
html[data-theme="dark"] .menu,
html[data-theme="dark"] .context-menu {
    color:
        var(--ui-text) !important;

    border-color:
        var(--ui-border) !important;

    background:
        var(--ui-surface-raised) !important;

    box-shadow:
        0 14px 35px
        rgba(
            0,
            0,
            0,
            .18
        );
}


/* ----------------------------------------------------------
   SETTINGS PAGE
   Fixes remaining white blocks shown in screenshot
   ---------------------------------------------------------- */

html[data-theme="dark"]
form .panel,

html[data-theme="dark"]
form .panel-body,

html[data-theme="dark"]
form .panel-header {
    color:
        var(--ui-text) !important;

    border-color:
        var(--ui-border) !important;

    background:
        var(--ui-surface) !important;
}

html[data-theme="dark"]
form .detail,

html[data-theme="dark"]
form .field,

html[data-theme="dark"]
form .form-group {
    color:
        var(--ui-text);
}


/* Logo / preview containers */

html[data-theme="dark"] .logo-preview,
html[data-theme="dark"] .logo-upload,
html[data-theme="dark"] .logo-card,
html[data-theme="dark"] .branding-logo,
html[data-theme="dark"] .image-preview,
html[data-theme="dark"] .upload-panel {
    color:
        var(--ui-text);

    border-color:
        var(--ui-border) !important;

    background:
        var(--ui-surface-soft) !important;
}


/* Keep actual company logo readable */

html[data-theme="dark"] .logo-preview img,
html[data-theme="dark"] .branding-logo img {
    border-radius: 8px;

    background:
        #ffffff;
}


/* ----------------------------------------------------------
   ALL INPUT TYPES
   ---------------------------------------------------------- */

html[data-theme="dark"]
input:not([type="checkbox"]):not([type="radio"]),

html[data-theme="dark"] select,

html[data-theme="dark"] textarea {
    color:
        #edf3f9 !important;

    border:
        1px solid
        #50647c !important;

    background:
        #304157 !important;

    box-shadow:
        none !important;
}

html[data-theme="dark"]
input:hover,

html[data-theme="dark"]
select:hover,

html[data-theme="dark"]
textarea:hover {
    border-color:
        #667c95 !important;
}

html[data-theme="dark"]
input:focus,

html[data-theme="dark"]
select:focus,

html[data-theme="dark"]
textarea:focus {
    border-color:
        #d0ac66 !important;

    background:
        #34475e !important;

    box-shadow:
        0 0 0 3px
        rgba(
            208,
            172,
            102,
            .12
        ) !important;
}


/* Native select option */

html[data-theme="dark"] option {
    color: #edf3f9;
    background: #304157;
}


/* ----------------------------------------------------------
   CHECKBOX / RADIO
   ---------------------------------------------------------- */

html[data-theme="dark"]
input[type="checkbox"],

html[data-theme="dark"]
input[type="radio"] {
    accent-color:
        #d0ac66;
}


/* ----------------------------------------------------------
   TABLE ACTION LINKS
   Fixes low-contrast View link
   ---------------------------------------------------------- */

table a:not(.button),
.table-link,
.action-link {
    color:
        #28659a;

    font-weight:
        650;
}

html[data-theme="dark"]
table a:not(.button),

html[data-theme="dark"]
.table-link,

html[data-theme="dark"]
.action-link {
    color:
        #9dc8ef !important;

    font-weight:
        650;
}

html[data-theme="dark"]
table a:not(.button):hover,

html[data-theme="dark"]
.table-link:hover,

html[data-theme="dark"]
.action-link:hover {
    color:
        #c4e1fb !important;
}


/* ----------------------------------------------------------
   PAGINATION
   ---------------------------------------------------------- */

.pagination,
.pagination nav {
    font-size: 13px;
}

html[data-theme="dark"]
.pagination a,

html[data-theme="dark"]
.pagination span {
    color:
        var(--ui-text);

    border-color:
        var(--ui-border);

    background:
        var(--ui-surface);
}

html[data-theme="dark"]
.pagination .active,
html[data-theme="dark"]
.pagination [aria-current="page"] {
    color: #ffffff;

    border-color:
        #55799c;

    background:
        #3d6488;
}


/* ----------------------------------------------------------
   EMPTY STATES
   ---------------------------------------------------------- */

html[data-theme="dark"]
.empty-state,

html[data-theme="dark"]
.premium-document-empty,

html[data-theme="dark"]
.empty-card {
    color:
        var(--ui-text);

    border-color:
        var(--ui-border);

    background:
        var(--ui-surface);
}


/* ----------------------------------------------------------
   SEARCH / FILTER BARS
   ---------------------------------------------------------- */

html[data-theme="dark"]
.document-search-field,

html[data-theme="dark"]
.search-box,

html[data-theme="dark"]
.filter-bar,

html[data-theme="dark"]
.filters,

html[data-theme="dark"]
.search-panel {
    color:
        var(--ui-text);

    border-color:
        var(--ui-border);

    background:
        var(--ui-surface-soft);
}


/* ----------------------------------------------------------
   HORIZONTAL RULES / DIVIDERS
   ---------------------------------------------------------- */

html[data-theme="dark"] hr,
html[data-theme="dark"] .divider {
    border-color:
        var(--ui-border);
}


/* ----------------------------------------------------------
   FILE UPLOAD
   ---------------------------------------------------------- */

html[data-theme="dark"]
input[type="file"] {
    color:
        #d9e3ed !important;
}

html[data-theme="dark"]
input[type="file"]::file-selector-button {
    margin-right: 10px;

    color:
        #f0f4f8;

    border:
        1px solid
        #60758d;

    border-radius:
        7px;

    padding:
        7px 10px;

    background:
        #40566f;

    cursor:
        pointer;
}


/* ----------------------------------------------------------
   READABILITY: STATUS / SMALL CHIPS
   ---------------------------------------------------------- */

.badge,
.status-live,
.status-off,
.client-priority,
.secure-chip,
.conversation-new-chip {
    font-size:
        11px !important;

    line-height:
        1.2;
}


/* ----------------------------------------------------------
   ADMIN + CLIENT HEADER CONTRAST
   ---------------------------------------------------------- */

html[data-theme="dark"] .topbar {
    background:
        #2a3a50 !important;
}

html[data-theme="dark"] .sidebar {
    background:
        linear-gradient(
            180deg,
            #273950,
            #213247
        ) !important;
}

html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .main-content {
    background:
        #1e2b3b !important;
}


/* Cards visibly separated from page */

html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .audit-table-wrap,
html[data-theme="dark"] .conversation-admin-row,
html[data-theme="dark"] .administrator-card,
html[data-theme="dark"] .client-message-card {
    background:
        #2b3b50 !important;

    border-color:
        #465a72 !important;
}


/* Raised/interactive surfaces */

html[data-theme="dark"] .account-chip,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .button-ghost {
    background:
        #35485f !important;
}


/* ----------------------------------------------------------
   RESPONSIVE TYPOGRAPHY
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    .page-header h1 {
        font-size:
            28px !important;
    }

    .panel-body,
    .detail > div,
    input,
    select,
    textarea {
        font-size:
            14px !important;
    }
}

@media (max-width: 600px) {

    body {
        font-size:
            15px !important;
    }

    .page-header h1 {
        font-size:
            25px !important;
    }

    .nav-item {
        font-size:
            14px !important;
    }
}



/* ==========================================================
   LSC-PRO-READABILITY-2L4
   Professional typography + dark-mode completion
   ========================================================== */


/* ==========================================================
   GLOBAL TYPOGRAPHY
   ========================================================== */

html {
    font-size: 16px;
}

body {
    font-size: 16px !important;
    line-height: 1.62 !important;
    font-weight: 400;
}

body,
input,
select,
textarea,
button {
    font-family:
        "Segoe UI Variable",
        "Segoe UI",
        Inter,
        Arial,
        Helvetica,
        sans-serif !important;
}


/* Main headings */

.page-header h1,
h1 {
    font-size: 31px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -.025em;
}

h2,
.panel-header h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

h3 {
    font-size: 17px !important;
    line-height: 1.35 !important;
}


/* Normal copy */

p,
.panel-body,
.detail > div {
    font-size: 15px !important;
    line-height: 1.62 !important;
}


/* Small copy should still be readable */

small,
.field-help,
.form-help,
.help-text,
.description,
.helper-text {
    font-size: 12px !important;
    line-height: 1.55 !important;
}


/* Eyebrows */

.eyebrow {
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    letter-spacing: .11em !important;
}


/* ==========================================================
   SIDEBAR / HEADER
   ========================================================== */

.brand-copy strong {
    font-size: 18px !important;
    font-weight: 700 !important;
}

.brand-copy span {
    font-size: 12px !important;
}

.nav-item,
.logout-button {
    font-size: 15px !important;
    font-weight: 550 !important;
}

.topbar-title {
    font-size: 15px !important;
    font-weight: 650 !important;
}

.account-chip strong {
    font-size: 13px !important;
}

.account-chip span,
.account-chip small {
    font-size: 11px !important;
}


/* ==========================================================
   FORMS
   ========================================================== */

label,
.field label,
.form-group label {
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 650 !important;
}

input,
select,
textarea {
    font-size: 15px !important;
    line-height: 1.45 !important;
}

input:not(
    [type="checkbox"]
):not(
    [type="radio"]
):not(
    [type="file"]
),
select {
    min-height: 44px;
}

textarea {
    padding: 13px !important;
}

.button,
button.button {
    min-height: 40px;
    font-size: 13px !important;
    font-weight: 700 !important;
}


/* ==========================================================
   TABLES
   ========================================================== */

table th {
    font-size: 12px !important;
    font-weight: 750 !important;
}

table td {
    font-size: 14px !important;
}

table td small {
    font-size: 11px !important;
}


/* ==========================================================
   DARK PALETTE
   Lighter than previous dark theme
   ========================================================== */

html[data-theme="dark"] {

    --ui-bg: #1b2938;

    --ui-surface: #293c51;

    --ui-surface-soft: #30455d;

    --ui-surface-raised: #354b64;

    --ui-input: #344b64;

    --ui-text: #eaf0f6;

    --ui-text-strong: #ffffff;

    --ui-muted: #bdc8d4;

    --ui-border: #4c627a;

    --border: #4c627a;

    --muted: #bdc8d4;
}


/* ==========================================================
   BASE PAGE
   ========================================================== */

html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .content,
html[data-theme="dark"] .page-content,
html[data-theme="dark"] .portal-main {
    color: var(--ui-text) !important;
    background: var(--ui-bg) !important;
}


/* ==========================================================
   ALL HEADINGS / LABELS
   Fixes invisible form titles
   ========================================================== */

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,

html[data-theme="dark"] label,

html[data-theme="dark"] .field label,

html[data-theme="dark"] .form-group label,

html[data-theme="dark"] .panel-header h2,

html[data-theme="dark"] .detail > div,

html[data-theme="dark"] .stat-value {
    color:
        var(--ui-text-strong)
        !important;
}


/* Secondary copy */

html[data-theme="dark"] p,
html[data-theme="dark"] small,
html[data-theme="dark"] .help-text,
html[data-theme="dark"] .helper-text,
html[data-theme="dark"] .description,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .form-help,
html[data-theme="dark"] .detail label,
html[data-theme="dark"] .stat-label {
    color:
        var(--ui-muted)
        !important;
}


/* ==========================================================
   MAIN CARDS
   ========================================================== */

html[data-theme="dark"] .panel,

html[data-theme="dark"] .stat-card,

html[data-theme="dark"] .detail,

html[data-theme="dark"] .company-card,

html[data-theme="dark"] .document-card,

html[data-theme="dark"] .invoice-card,

html[data-theme="dark"] .administrator-card,

html[data-theme="dark"] .content-card,

html[data-theme="dark"] .resource-card,

html[data-theme="dark"] .policy-card,

html[data-theme="dark"] .payment-method-card {
    color:
        var(--ui-text)
        !important;

    border-color:
        var(--ui-border)
        !important;

    background:
        var(--ui-surface)
        !important;
}


/* ==========================================================
   PROFILE CUSTOMER PAGE
   ========================================================== */

html[data-theme="dark"] .profile-section,

html[data-theme="dark"] .profile-card,

html[data-theme="dark"] .profile-panel,

html[data-theme="dark"] .profile-account-strip,

html[data-theme="dark"] .profile-photo-manager,

html[data-theme="dark"] .profile-sidebar-card,

html[data-theme="dark"] .profile-security-card,

html[data-theme="dark"] .company-record-card {
    color:
        var(--ui-text)
        !important;

    border-color:
        var(--ui-border)
        !important;

    background:
        var(--ui-surface)
        !important;
}


/* Profile labels */

html[data-theme="dark"]
.profile-section label,

html[data-theme="dark"]
.profile-card label,

html[data-theme="dark"]
.profile-panel label {
    color:
        #dbe5ef
        !important;

    font-size:
        13px !important;
}


/* Profile descriptions */

html[data-theme="dark"]
.profile-section p,

html[data-theme="dark"]
.profile-card p {
    color:
        #c0ccd8
        !important;

    font-size:
        13px !important;
}


/* Right side security/company cards */

html[data-theme="dark"]
.profile-sidebar strong,

html[data-theme="dark"]
.profile-sidebar-card strong {
    color:
        #ffffff
        !important;

    font-size:
        13px !important;
}

html[data-theme="dark"]
.profile-sidebar small,

html[data-theme="dark"]
.profile-sidebar-card small {
    color:
        #b9c6d3
        !important;

    font-size:
        11px !important;
}


/* ==========================================================
   PROFILE SAVE BAR
   Fixes cream/white bottom strip
   ========================================================== */

html[data-theme="dark"]
.profile-save-bar,

html[data-theme="dark"]
.profile-actions,

html[data-theme="dark"]
.form-actions,

html[data-theme="dark"]
.sticky-actions,

html[data-theme="dark"]
form > .actions {
    color:
        var(--ui-text)
        !important;

    border-color:
        var(--ui-border)
        !important;

    background:
        var(--ui-surface-raised)
        !important;
}


/* ==========================================================
   PROFILE ID / READONLY FIELDS
   ========================================================== */

html[data-theme="dark"]
input[readonly],

html[data-theme="dark"]
textarea[readonly],

html[data-theme="dark"]
input:disabled,

html[data-theme="dark"]
select:disabled {
    opacity: 1 !important;

    color:
        #ffffff
        !important;

    -webkit-text-fill-color:
        #ffffff !important;

    border-color:
        #667d96
        !important;

    background:
        #3a506a
        !important;
}


/* Reveal profile ID */

html[data-theme="dark"]
details,

html[data-theme="dark"]
summary {
    color:
        #edf3f8
        !important;
}

html[data-theme="dark"]
summary {
    font-size:
        13px !important;

    font-weight:
        650 !important;

    cursor:
        pointer;
}


/* ==========================================================
   INPUTS
   ========================================================== */

html[data-theme="dark"]
input:not([type="checkbox"]):not([type="radio"]),

html[data-theme="dark"]
select,

html[data-theme="dark"]
textarea {
    color:
        #f2f6fa
        !important;

    border:
        1px solid
        #587089
        !important;

    background:
        var(--ui-input)
        !important;
}

html[data-theme="dark"]
input::placeholder,

html[data-theme="dark"]
textarea::placeholder {
    color:
        #a9b7c5
        !important;
}


/* ==========================================================
   ADMIN SERVICE CREATE / EDIT
   ========================================================== */

html[data-theme="dark"]
.service-form,

html[data-theme="dark"]
.service-form-section,

html[data-theme="dark"]
.service-editor,

html[data-theme="dark"]
.service-editor-card {
    color:
        var(--ui-text)
        !important;

    border-color:
        var(--ui-border)
        !important;

    background:
        var(--ui-surface)
        !important;
}

html[data-theme="dark"]
.service-form label,

html[data-theme="dark"]
.service-editor label {
    color:
        #e6edf4
        !important;
}


/* ==========================================================
   CUSTOMER SERVICE CATALOGUE
   Fix white service cards
   ========================================================== */

html[data-theme="dark"]
.service-card,

html[data-theme="dark"]
.premium-service-card,

html[data-theme="dark"]
.catalog-card,

html[data-theme="dark"]
.service-catalog-card {
    color:
        var(--ui-text)
        !important;

    border-color:
        var(--ui-border)
        !important;

    background:
        var(--ui-surface)
        !important;

    box-shadow:
        0 10px 28px
        rgba(
            0,
            0,
            0,
            .10
        )
        !important;
}

html[data-theme="dark"]
.service-card h2,

html[data-theme="dark"]
.service-card h3,

html[data-theme="dark"]
.premium-service-card h2,

html[data-theme="dark"]
.premium-service-card h3 {
    color:
        #ffffff
        !important;
}

html[data-theme="dark"]
.service-card p,

html[data-theme="dark"]
.service-card li,

html[data-theme="dark"]
.premium-service-card p,

html[data-theme="dark"]
.premium-service-card li {
    color:
        #d2dce6
        !important;
}


/* ==========================================================
   CUSTOMER SERVICE CHECKOUT
   Fix all large white sections
   ========================================================== */

html[data-theme="dark"]
.checkout-card,

html[data-theme="dark"]
.checkout-panel,

html[data-theme="dark"]
.service-checkout,

html[data-theme="dark"]
.service-detail-card,

html[data-theme="dark"]
.service-summary-card,

html[data-theme="dark"]
.order-summary,

html[data-theme="dark"]
.order-summary-card,

html[data-theme="dark"]
.checkout-summary,

html[data-theme="dark"]
.payment-section,

html[data-theme="dark"]
.payment-panel,

html[data-theme="dark"]
.verification-section {
    color:
        var(--ui-text)
        !important;

    border-color:
        var(--ui-border)
        !important;

    background:
        var(--ui-surface)
        !important;
}


/* Payment cards */

html[data-theme="dark"]
.payment-method-card,

html[data-theme="dark"]
.payment-option,

html[data-theme="dark"]
.payment-method {
    color:
        #eaf1f7
        !important;

    border-color:
        #587089
        !important;

    background:
        #30465f
        !important;
}


/* Payment detail text */

html[data-theme="dark"]
.payment-method-card p,

html[data-theme="dark"]
.payment-method-card small,

html[data-theme="dark"]
.payment-option p {
    color:
        #c8d3de
        !important;
}


/* ==========================================================
   GENERIC WHITE ARTICLE / SECTION FALLBACK
   ========================================================== */

html[data-theme="dark"]
main section,

html[data-theme="dark"]
main article {
    border-color:
        var(--ui-border);
}


/*
   Do NOT force hero sections.
   Only pale/white form/card containers.
*/

html[data-theme="dark"]
main section.panel,

html[data-theme="dark"]
main article.panel {
    background:
        var(--ui-surface)
        !important;
}


/* ==========================================================
   TABLES / LINKS
   ========================================================== */

html[data-theme="dark"] table {
    color:
        var(--ui-text)
        !important;

    background:
        var(--ui-surface)
        !important;
}

html[data-theme="dark"] table th {
    color:
        #d6e0ea
        !important;

    background:
        #33485f
        !important;
}

html[data-theme="dark"] table td {
    color:
        #e5edf5
        !important;

    border-color:
        var(--ui-border)
        !important;
}

html[data-theme="dark"]
table a {
    color:
        #a7d2f7
        !important;

    font-weight:
        650 !important;
}


/* ==========================================================
   SUCCESS / ERROR BOX
   ========================================================== */

html[data-theme="dark"]
.success-box {
    color:
        #c9edda
        !important;

    border-color:
        #4b8068
        !important;

    background:
        #315748
        !important;
}

html[data-theme="dark"]
.error-box {
    color:
        #f3cccc
        !important;

    border-color:
        #8a6262
        !important;

    background:
        #573d3d
        !important;
}


/* ==========================================================
   BADGES
   ========================================================== */

.badge,
.status-live,
.status-off,
.client-priority,
.secure-chip,
.conversation-new-chip {
    font-size:
        11px !important;

    font-weight:
        750 !important;
}


/* ==========================================================
   BUTTON CONTRAST
   ========================================================== */

html[data-theme="dark"]
.button-primary {
    color:
        #ffffff
        !important;

    border-color:
        #5c83aa
        !important;

    background:
        #386a97
        !important;
}

html[data-theme="dark"]
.button-primary:hover {
    background:
        #4179aa
        !important;
}

html[data-theme="dark"]
.button-secondary,

html[data-theme="dark"]
.button-ghost {
    color:
        #edf3f8
        !important;

    border-color:
        #60758d
        !important;

    background:
        #3a4e66
        !important;
}


/* ==========================================================
   CUSTOMER HERO AREAS
   Keep premium navy but increase readability
   ========================================================== */

html[data-theme="dark"]
.client-inbox-hero,

html[data-theme="dark"]
.client-thread-header,

html[data-theme="dark"]
.thread-header-card,

html[data-theme="dark"]
.service-hero {
    color:
        #ffffff
        !important;

    background:
        linear-gradient(
            135deg,
            #253d59,
            #395d7e
        )
        !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    body {
        font-size:
            15px !important;
    }

    .page-header h1,
    h1 {
        font-size:
            27px !important;
    }

    label,
    .field label {
        font-size:
            12px !important;
    }
}



/* ==========================================================
   LSC-INVOICE-SECURITY-DARK
   Invoice security / SHA-256 panel
   ========================================================== */

.invoice-security-panel {
    border:
        1px solid
        var(--ui-border);

    border-radius:
        14px;

    padding:
        18px 20px;

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        20px;

    background:
        var(--ui-surface);
}

.invoice-security-panel > div:first-child {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;
}

.invoice-security-panel strong {
    display:
        block;

    font-size:
        14px !important;

    font-weight:
        700;
}

.invoice-security-panel p {
    margin:
        3px 0 0;

    font-size:
        13px !important;

    line-height:
        1.55 !important;
}

.invoice-security-panel .security-icon {
    width:
        34px;

    height:
        34px;

    flex:
        0 0 34px;

    border-radius:
        50%;

    display:
        grid;

    place-items:
        center;

    font-size:
        14px;

    font-weight:
        800;
}

.invoice-fingerprint {
    min-width:
        min(
            470px,
            46vw
        );

    border:
        1px solid
        var(--ui-border);

    border-radius:
        10px;

    padding:
        10px 12px;
}

.invoice-fingerprint span {
    display:
        block;

    margin-bottom:
        4px;

    font-size:
        10px !important;

    font-weight:
        800;

    letter-spacing:
        .08em;
}

.invoice-fingerprint code {
    display:
        block;

    max-width:
        100%;

    overflow-wrap:
        anywhere;

    word-break:
        break-all;

    font-size:
        11px !important;

    line-height:
        1.45;
}


/* Dark mode */

html[data-theme="dark"]
.invoice-security-panel {
    color:
        #edf3f8 !important;

    border-color:
        #50667f !important;

    background:
        #2b3f55 !important;

    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            .10
        );
}

html[data-theme="dark"]
.invoice-security-panel strong {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.invoice-security-panel p {
    color:
        #c3cfdb !important;
}

html[data-theme="dark"]
.invoice-security-panel
.security-icon {
    color:
        #d9f2e5 !important;

    border:
        1px solid
        #54856d;

    background:
        #315b49 !important;
}

html[data-theme="dark"]
.invoice-fingerprint {
    border-color:
        #5b7088 !important;

    background:
        #344a62 !important;
}

html[data-theme="dark"]
.invoice-fingerprint span {
    color:
        #d8c18b !important;
}

html[data-theme="dark"]
.invoice-fingerprint code {
    color:
        #dfe9f3 !important;

    background:
        transparent !important;
}


/* Mobile */

@media (max-width: 800px) {

    .invoice-security-panel {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .invoice-fingerprint {
        width:
            100%;

        min-width:
            0;
    }
}



/* ==========================================================
   LSC-ORDER-SERVICE-EXACT-DARK
   Exact catalogue + checkout component theming
   ========================================================== */


/* ----------------------------------------------------------
   COMPACT SERVICE CARD
   ---------------------------------------------------------- */

.compact-service-card {
    border:
        1px solid
        var(--ui-border);

    border-radius:
        16px;

    overflow:
        hidden;

    background:
        var(--ui-surface);

    box-shadow:
        0 8px 24px
        rgba(0,0,0,.05);
}

.compact-card-top {
    padding:
        20px 20px 12px;
}

.compact-card-top h3 {
    margin:
        8px 0;

    font-size:
        18px !important;

    line-height:
        1.3 !important;

    font-weight:
        700 !important;
}

.compact-card-top p {
    font-size:
        14px !important;

    line-height:
        1.6 !important;
}

.compact-badges {
    min-height:
        18px;
}

.compact-card-meta {
    margin:
        0 20px;

    padding:
        14px 0;

    border-top:
        1px solid
        var(--ui-border);

    display:
        flex;

    justify-content:
        space-between;

    gap:
        16px;
}

.compact-card-meta span {
    display:
        block;

    margin-bottom:
        4px;

    font-size:
        11px !important;

    font-weight:
        750;

    letter-spacing:
        .06em;

    text-transform:
        uppercase;
}

.compact-price {
    font-size:
        17px !important;

    font-weight:
        750;
}

.compact-buy-button {
    margin:
        0 20px 18px;

    min-height:
        44px;

    border-radius:
        10px;

    padding:
        0 14px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    font-size:
        14px !important;

    font-weight:
        700;

    text-decoration:
        none;
}


/* Dark compact card */

html[data-theme="dark"]
.compact-service-card {
    color:
        #eaf1f7 !important;

    border-color:
        #50667f !important;

    background:
        #2b3f55 !important;

    box-shadow:
        0 10px 28px
        rgba(0,0,0,.12);
}

html[data-theme="dark"]
.compact-card-top h3 {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.compact-card-top p {
    color:
        #c6d2de !important;
}

html[data-theme="dark"]
.compact-card-meta {
    border-color:
        #50667f !important;
}

html[data-theme="dark"]
.compact-card-meta span {
    color:
        #aebdcb !important;
}

html[data-theme="dark"]
.compact-price {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.compact-buy-button {
    color:
        #ffffff !important;

    background:
        #183b62 !important;

    border:
        1px solid
        #4c7196;
}

html[data-theme="dark"]
.compact-buy-button:hover {
    background:
        #24527f !important;
}


/* ----------------------------------------------------------
   CHECKOUT HERO
   ---------------------------------------------------------- */

html[data-theme="dark"]
.checkout-service-hero {
    color:
        #edf3f8 !important;

    border-color:
        #50667f !important;

    background:
        #2b3f55 !important;
}

html[data-theme="dark"]
.checkout-service-hero h1 {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.checkout-description {
    color:
        #c5d1dd !important;

    font-size:
        14px !important;
}

html[data-theme="dark"]
.checkout-price {
    border-color:
        #657b93 !important;
}

html[data-theme="dark"]
.checkout-price span,
html[data-theme="dark"]
.checkout-price small {
    color:
        #b8c5d2 !important;
}

html[data-theme="dark"]
.checkout-price strong {
    color:
        #ffffff !important;

    font-size:
        22px !important;
}


/* ----------------------------------------------------------
   SERVICE DETAILS / PAYMENT / ORDER SECTIONS
   ---------------------------------------------------------- */

html[data-theme="dark"]
.checkout-includes,

html[data-theme="dark"]
.checkout-payment-section,

html[data-theme="dark"]
.checkout-order-section {
    color:
        #eaf1f7 !important;

    border-color:
        #50667f !important;

    background:
        #2b3f55 !important;
}


/* Section headings */

.checkout-section-heading h2 {
    font-size:
        20px !important;

    font-weight:
        700 !important;
}

html[data-theme="dark"]
.checkout-section-heading h2 {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.checkout-section-heading > span {
    color:
        #7a5a21 !important;

    background:
        #f1dfb6 !important;
}

html[data-theme="dark"]
.checkout-section-heading p {
    color:
        #c2ceda !important;
}


/* ----------------------------------------------------------
   TURNAROUND
   ---------------------------------------------------------- */

html[data-theme="dark"]
.checkout-turnaround {
    color:
        #e8edf3 !important;

    border-color:
        #5d7188 !important;

    background:
        #354b63 !important;
}

html[data-theme="dark"]
.checkout-turnaround span {
    color:
        #c0ccd8 !important;
}

html[data-theme="dark"]
.checkout-turnaround strong {
    color:
        #ffffff !important;
}


/* ----------------------------------------------------------
   BENEFITS
   ---------------------------------------------------------- */

html[data-theme="dark"]
.checkout-benefit-grid > div {
    color:
        #e2e9f0 !important;

    border-color:
        #536980 !important;

    background:
        #31475e !important;
}

html[data-theme="dark"]
.checkout-benefit-grid strong {
    color:
        #edf3f8 !important;

    font-size:
        13px !important;

    line-height:
        1.55 !important;
}

html[data-theme="dark"]
.checkout-benefit-grid > div > span {
    color:
        #a8dfc4 !important;

    background:
        #315a49 !important;
}


/* ----------------------------------------------------------
   PAYMENT METHODS
   ---------------------------------------------------------- */

.checkout-payment-method {
    border-radius:
        14px;
}

.checkout-payment-title strong {
    font-size:
        14px !important;
}

.checkout-payment-title small {
    font-size:
        11px !important;
}

.checkout-payment-copy {
    font-size:
        12px !important;

    line-height:
        1.65 !important;
}

.checkout-reference-help strong {
    font-size:
        12px !important;
}

.checkout-reference-help p {
    font-size:
        12px !important;

    line-height:
        1.6 !important;
}

html[data-theme="dark"]
.checkout-payment-method {
    color:
        #edf3f8 !important;

    border:
        1px solid
        #5a7088 !important;

    background:
        #334a63 !important;
}

html[data-theme="dark"]
.checkout-payment-title strong {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.checkout-payment-title small,
html[data-theme="dark"]
.checkout-payment-copy {
    color:
        #c2ceda !important;
}

html[data-theme="dark"]
.checkout-reference-help {
    border-color:
        #5d7289 !important;
}

html[data-theme="dark"]
.checkout-reference-help strong {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.checkout-reference-help p {
    color:
        #d1dbe5 !important;
}


/* ----------------------------------------------------------
   SECURE VERIFICATION
   ---------------------------------------------------------- */

html[data-theme="dark"]
.checkout-order-section label {
    color:
        #e6edf4 !important;

    font-size:
        13px !important;
}

html[data-theme="dark"]
.checkout-order-section input,

html[data-theme="dark"]
.checkout-order-section textarea {
    color:
        #f3f7fb !important;

    border-color:
        #617991 !important;

    background:
        #374f68 !important;
}

html[data-theme="dark"]
.checkout-order-section .field-help {
    color:
        #b7c5d3 !important;
}


/* ----------------------------------------------------------
   PREMIUM CHECKOUT BUTTON
   ---------------------------------------------------------- */

html[data-theme="dark"]
.premium-checkout-submit {
    color:
        #ffffff !important;

    border:
        1px solid
        #547ca3 !important;

    background:
        #173b62 !important;
}

html[data-theme="dark"]
.premium-checkout-submit:hover {
    background:
        #24537f !important;
}

html[data-theme="dark"]
.premium-checkout-submit span,
html[data-theme="dark"]
.premium-checkout-submit strong {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.premium-checkout-submit small {
    color:
        #c8d5e2 !important;
}


/* ----------------------------------------------------------
   ORDER SUMMARY
   ---------------------------------------------------------- */

html[data-theme="dark"]
.checkout-summary-card {
    color:
        #edf3f8 !important;

    border:
        1px solid
        #50667f !important;

    background:
        #2b3f55 !important;

    box-shadow:
        0 10px 28px
        rgba(0,0,0,.10);
}

html[data-theme="dark"]
.checkout-summary-card h3 {
    color:
        #ffffff !important;

    font-size:
        18px !important;
}

html[data-theme="dark"]
.summary-row {
    border-color:
        #566d85 !important;
}

html[data-theme="dark"]
.summary-row span,
html[data-theme="dark"]
.summary-total span {
    color:
        #bdcad6 !important;
}

html[data-theme="dark"]
.summary-row strong,
html[data-theme="dark"]
.summary-total strong {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.summary-total {
    border-color:
        #657b92 !important;
}


/* Turnaround */

html[data-theme="dark"]
.summary-turnaround {
    color:
        #e7edf3 !important;

    border-color:
        #665b43 !important;

    background:
        #443c2c !important;
}

html[data-theme="dark"]
.summary-turnaround span {
    color:
        #dbc999 !important;
}

html[data-theme="dark"]
.summary-turnaround strong {
    color:
        #ffffff !important;
}


/* Security note */

html[data-theme="dark"]
.checkout-security-note {
    border-color:
        #58718a !important;
}

html[data-theme="dark"]
.checkout-security-note p {
    color:
        #c6d3df !important;

    font-size:
        12px !important;
}


/* ----------------------------------------------------------
   PREMIUM BADGE
   ---------------------------------------------------------- */

html[data-theme="dark"]
.premium-service-badge {
    color:
        #74531d !important;

    background:
        #f0ddb1 !important;
}


/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 800px) {

    .compact-card-top {
        padding:
            16px 16px 10px;
    }

    .compact-card-meta {
        margin:
            0 16px;
    }

    .compact-buy-button {
        margin:
            0 16px 16px;
    }
}



/* ==========================================================
   LSC-COMPANY-BENEFITS-DARK
   Company details + compact service benefits
   ========================================================== */


/* ----------------------------------------------------------
   COMPANY DETAILS
   ---------------------------------------------------------- */

.company-details-grid > div {
    color:
        var(--ui-text);
}

.company-details-grid > div > span,
.company-address-detail > span {
    display:
        block;

    margin-bottom:
        4px;

    font-size:
        12px !important;

    line-height:
        1.4;

    font-weight:
        700;

    letter-spacing:
        .035em;
}

.company-details-grid > div > strong,
.company-address-detail > strong {
    display:
        block;

    font-size:
        14px !important;

    line-height:
        1.5;

    font-weight:
        650;
}


/* Dark mode */

html[data-theme="dark"]
.company-details-grid > div > span,

html[data-theme="dark"]
.company-address-detail > span {
    color:
        #e8eef5 !important;
}

html[data-theme="dark"]
.company-details-grid > div > strong,

html[data-theme="dark"]
.company-address-detail > strong {
    color:
        #ffffff !important;
}


/* Optional subtle separation */

html[data-theme="dark"]
.company-details-grid > div {
    border-color:
        #50667f !important;
}


/* ----------------------------------------------------------
   COMPACT BENEFITS
   ---------------------------------------------------------- */

.compact-benefits {
    display:
        grid;

    gap:
        8px;
}

.compact-benefits > div {
    font-size:
        13px !important;

    line-height:
        1.55 !important;
}

.compact-benefits > div > span {
    margin-right:
        6px;

    font-weight:
        800;
}


/* Dark mode */

html[data-theme="dark"]
.compact-benefits {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.compact-benefits > div {
    color:
        #eef3f8 !important;
}

html[data-theme="dark"]
.compact-benefits > div > span {
    color:
        #96dfbd !important;
}


/* ----------------------------------------------------------
   COMPACT CARD META / LABEL SAFETY
   ---------------------------------------------------------- */

html[data-theme="dark"]
.compact-card-meta span {
    color:
        #d6e0ea !important;
}

html[data-theme="dark"]
.compact-card-meta strong {
    color:
        #ffffff !important;
}



/* ==========================================================
   LSC-INBOX-NOTIFICATIONS-2L5
   ========================================================== */

.notification-center {
    position:
        relative;

    margin-left:
        auto;

    margin-right:
        8px;
}

.notification-bell {
    width:
        40px;

    height:
        40px;

    min-width:
        40px;

    position:
        relative;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        11px;

    display:
        grid;

    place-items:
        center;

    color:
        var(--ui-text-strong);

    background:
        var(--ui-surface);

    cursor:
        pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}

.notification-bell:hover {
    transform:
        translateY(-1px);

    border-color:
        #bd9a59;
}

.notification-bell svg {
    width:
        19px;

    height:
        19px;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}

.notification-bell.has-notifications {
    color:
        #c3333b;
}

.notification-count {
    min-width:
        18px;

    height:
        18px;

    position:
        absolute;

    top:
        -6px;

    right:
        -6px;

    border:
        2px solid
        var(--ui-surface);

    border-radius:
        999px;

    padding:
        0 4px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        #ffffff;

    background:
        #d33c45;

    font-size:
        9px !important;

    line-height:
        1;

    font-weight:
        800;

    box-shadow:
        0 3px 10px
        rgba(150,20,28,.24);
}

.notification-menu {
    width:
        360px;

    max-height:
        470px;

    position:
        absolute;

    top:
        calc(100% + 10px);

    right:
        0;

    z-index:
        1000;

    overflow:
        hidden;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        15px;

    color:
        var(--ui-text);

    background:
        var(--ui-surface-raised);

    box-shadow:
        0 22px 55px
        rgba(10,20,34,.20);
}

.notification-menu[hidden],
.notification-count[hidden],
.notification-empty[hidden] {
    display:
        none !important;
}

.notification-menu-head {
    min-height:
        52px;

    border-bottom:
        1px solid
        var(--ui-border);

    padding:
        0 14px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        12px;
}

.notification-menu-head strong {
    color:
        var(--ui-text-strong);

    font-size:
        14px !important;
}

.notification-menu-head a {
    color:
        #527ba3;

    font-size:
        12px !important;

    font-weight:
        650;
}

.notification-list {
    max-height:
        365px;

    overflow-y:
        auto;
}

.notification-item {
    min-height:
        72px;

    border-bottom:
        1px solid
        var(--ui-border);

    padding:
        11px 13px;

    display:
        grid;

    grid-template-columns:
        8px
        minmax(0,1fr)
        18px;

    gap:
        10px;

    align-items:
        center;

    color:
        inherit;

    text-decoration:
        none;
}

.notification-item:hover {
    background:
        var(--ui-surface-soft);
}

.notification-item-dot {
    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        #d43f47;

    box-shadow:
        0 0 0 4px
        rgba(212,63,71,.10);
}

.notification-item-copy {
    min-width:
        0;
}

.notification-item-copy strong,
.notification-item-copy span,
.notification-item-copy small {
    display:
        block;
}

.notification-item-copy strong {
    overflow:
        hidden;

    color:
        var(--ui-text-strong);

    font-size:
        13px !important;

    font-weight:
        700;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.notification-item-copy span {
    margin-top:
        2px;

    overflow:
        hidden;

    color:
        var(--ui-text);

    font-size:
        12px !important;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.notification-item-copy small {
    margin-top:
        4px;

    color:
        var(--ui-muted);

    font-size:
        10px !important;
}

.notification-item-arrow {
    color:
        var(--ui-muted);

    font-size:
        15px;
}

.notification-empty {
    padding:
        25px 14px;

    color:
        var(--ui-muted);

    text-align:
        center;

    font-size:
        12px !important;
}


/* ----------------------------------------------------------
   POPUP / TOAST
   ---------------------------------------------------------- */

.message-notification-toast {
    width:
        min(
            430px,
            calc(100vw - 28px)
        );

    position:
        fixed;

    top:
        82px;

    right:
        18px;

    z-index:
        2000;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        15px;

    padding:
        14px;

    display:
        grid;

    grid-template-columns:
        42px
        minmax(0,1fr)
        18px;

    gap:
        12px;

    align-items:
        center;

    color:
        var(--ui-text);

    background:
        var(--ui-surface-raised);

    text-align:
        left;

    cursor:
        pointer;

    box-shadow:
        0 22px 60px
        rgba(8,18,31,.24);

    opacity:
        0;

    transform:
        translateY(-10px);

    transition:
        opacity .22s ease,
        transform .22s ease;
}

.message-notification-toast.is-visible {
    opacity:
        1;

    transform:
        translateY(0);
}

.message-toast-icon {
    width:
        42px;

    height:
        42px;

    border-radius:
        12px;

    display:
        grid;

    place-items:
        center;

    color:
        #ffffff;

    background:
        #c73b44;
}

.message-toast-icon svg {
    width:
        20px;

    height:
        20px;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}

.message-toast-copy strong,
.message-toast-copy span,
.message-toast-copy small {
    display:
        block;
}

.message-toast-copy strong {
    color:
        var(--ui-text-strong);

    font-size:
        14px !important;
}

.message-toast-copy span {
    margin-top:
        3px;

    color:
        var(--ui-text);

    font-size:
        12px !important;
}

.message-toast-copy small {
    margin-top:
        5px;

    color:
        var(--ui-muted);

    font-size:
        10px !important;
}

.message-toast-arrow {
    color:
        var(--ui-muted);

    font-size:
        18px;
}


/* ----------------------------------------------------------
   DARK MODE
   ---------------------------------------------------------- */

html[data-theme="dark"]
.notification-bell {
    color:
        #eef3f8;

    border-color:
        #52677f;

    background:
        #34495f;
}

html[data-theme="dark"]
.notification-bell.has-notifications {
    color:
        #ff767e;
}

html[data-theme="dark"]
.notification-count {
    border-color:
        #34495f;

    background:
        #e0444d;
}

html[data-theme="dark"]
.notification-menu,

html[data-theme="dark"]
.message-notification-toast {
    color:
        #eaf1f7;

    border-color:
        #536a82;

    background:
        #30445b;
}

html[data-theme="dark"]
.notification-menu-head {
    border-color:
        #536a82;
}

html[data-theme="dark"]
.notification-menu-head strong,

html[data-theme="dark"]
.notification-item-copy strong,

html[data-theme="dark"]
.message-toast-copy strong {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.notification-menu-head a {
    color:
        #a9d1f4;
}

html[data-theme="dark"]
.notification-item {
    border-color:
        #4d6279;
}

html[data-theme="dark"]
.notification-item:hover {
    background:
        #394e66;
}

html[data-theme="dark"]
.notification-item-copy span,

html[data-theme="dark"]
.message-toast-copy span {
    color:
        #d7e1ea !important;
}

html[data-theme="dark"]
.notification-item-copy small,

html[data-theme="dark"]
.message-toast-copy small {
    color:
        #b6c4d2 !important;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 700px) {

    .notification-center {
        margin-right:
            5px;
    }

    .notification-bell {
        width:
            37px;

        height:
            37px;

        min-width:
            37px;
    }

    .notification-menu {
        width:
            min(
                350px,
                calc(100vw - 24px)
            );

        position:
            fixed;

        top:
            68px;

        right:
            12px;
    }

    .message-notification-toast {
        top:
            72px;

        right:
            12px;
    }
}



/* ==========================================================
   LSC-TOPBAR-CONTROLS-ALIGNMENT
   Bell + theme toggle grouped together
   ========================================================== */

.notification-center {
    margin-left: auto !important;
    margin-right: 6px !important;
}

.notification-center + .theme-toggle {
    margin-left: 0 !important;
    margin-right: 10px !important;
}

.theme-toggle {
    flex: 0 0 auto;
}

.notification-bell {
    flex: 0 0 auto;
}


/* Keep controls compact beside account chip */

.topbar .notification-center,
.topbar .theme-toggle,
.topbar .account-chip {
    align-self: center;
}


/* Mobile */

@media (max-width: 700px) {

    .notification-center {
        margin-right: 4px !important;
    }

    .notification-center + .theme-toggle {
        margin-left: 0 !important;
        margin-right: 6px !important;
    }
}



/* ==========================================================
   LSC-CLIENT-LOGIN-HOME-STYLE
   Main Laws Bakery website link
   ========================================================== */

.client-login-home-button {
    width: 100%;
    min-height: 46px;

    margin-top: 12px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-sizing: border-box;

    border:
        1px solid
        rgba(29, 54, 82, .22);

    border-radius: 10px;

    color: #203b58;

    background:
        rgba(255, 255, 255, .72);

    font-size: 14px !important;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.client-login-home-button svg {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-login-home-button:hover {
    color: #142e49;

    border-color:
        rgba(29, 54, 82, .40);

    background: #ffffff;

    transform:
        translateY(-1px);
}

.client-login-home-button:focus-visible {
    outline:
        3px solid
        rgba(190, 151, 79, .24);

    outline-offset: 2px;
}


/* Dark mode */

html[data-theme="dark"]
.client-login-home-button {
    color: #edf3f8 !important;

    border-color:
        #587089 !important;

    background:
        #344b63 !important;
}

html[data-theme="dark"]
.client-login-home-button:hover {
    color: #ffffff !important;

    border-color:
        #7890a8 !important;

    background:
        #405970 !important;
}



/* ==========================================================
   LSC-PREMIUM-SYSTEM-LOADER-2L6
   ========================================================== */

.system-page-loader {
    position:
        fixed;

    inset:
        0;

    z-index:
        99999;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    background:
        rgba(
            240,
            244,
            248,
            .82
        );

    backdrop-filter:
        blur(9px);

    -webkit-backdrop-filter:
        blur(9px);

    transition:
        opacity .20s ease,
        visibility .20s ease;
}

.system-page-loader.is-visible {
    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        all;
}


/* ----------------------------------------------------------
   TOP PROGRESS BAR
   ---------------------------------------------------------- */

.system-loader-progress {
    position:
        absolute;

    top:
        0;

    left:
        0;

    width:
        100%;

    height:
        3px;

    overflow:
        hidden;

    background:
        rgba(
            29,
            55,
            82,
            .09
        );
}

.system-loader-progress::after {
    content:
        "";

    position:
        absolute;

    inset:
        0;

    width:
        38%;

    background:
        linear-gradient(
            90deg,
            transparent,
            #c5a05a,
            #e4c986,
            #c5a05a,
            transparent
        );

    transform:
        translateX(
            -130%
        );

    animation:
        lsc-loader-progress
        1.25s
        ease-in-out
        infinite;
}


/* ----------------------------------------------------------
   CENTER CARD
   ---------------------------------------------------------- */

.system-loader-card {
    min-width:
        225px;

    border:
        1px solid
        rgba(
            38,
            62,
            88,
            .13
        );

    border-radius:
        20px;

    padding:
        25px 28px 21px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    color:
        #1c3550;

    background:
        rgba(
            255,
            255,
            255,
            .92
        );

    box-shadow:
        0 24px 70px
        rgba(
            17,
            38,
            60,
            .14
        );

    transform:
        translateY(
            5px
        )
        scale(
            .985
        );

    transition:
        transform
        .22s
        ease;
}

.system-page-loader.is-visible
.system-loader-card {
    transform:
        translateY(0)
        scale(1);
}


/* ----------------------------------------------------------
   EMBLEM
   ---------------------------------------------------------- */

.system-loader-emblem {
    width:
        76px;

    height:
        76px;

    position:
        relative;

    display:
        grid;

    place-items:
        center;
}

.system-loader-ring {
    position:
        absolute;

    inset:
        0;

    border:
        2px solid
        rgba(
            194,
            158,
            90,
            .18
        );

    border-radius:
        50%;

    animation:
        lsc-loader-spin
        1.25s
        linear
        infinite;
}

.system-loader-ring::before {
    content:
        "";

    position:
        absolute;

    inset:
        -2px;

    border:
        2px solid
        transparent;

    border-top-color:
        #c5a05a;

    border-right-color:
        #d5b76f;

    border-radius:
        50%;
}

.system-loader-ring span:first-child {
    width:
        7px;

    height:
        7px;

    position:
        absolute;

    top:
        3px;

    left:
        50%;

    border-radius:
        50%;

    background:
        #d4b66e;

    box-shadow:
        0 0 12px
        rgba(
            202,
            165,
            94,
            .50
        );

    transform:
        translateX(
            -50%
        );
}

.system-loader-ring span:last-child {
    width:
        4px;

    height:
        4px;

    position:
        absolute;

    bottom:
        6px;

    left:
        50%;

    border-radius:
        50%;

    background:
        #b78f49;

    transform:
        translateX(
            -50%
        );
}

.system-loader-monogram {
    width:
        53px;

    height:
        53px;

    border:
        1px solid
        rgba(
            193,
            155,
            84,
            .33
        );

    border-radius:
        50%;

    display:
        grid;

    place-items:
        center;

    color:
        #1d3957;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f4f0e7
        );

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        18px !important;

    font-weight:
        700;

    letter-spacing:
        .04em;

    box-shadow:
        inset 0 0 0 4px
        rgba(
            255,
            255,
            255,
            .64
        );
}


/* ----------------------------------------------------------
   TEXT
   ---------------------------------------------------------- */

.system-loader-copy {
    margin-top:
        13px;

    text-align:
        center;
}

.system-loader-copy strong {
    display:
        block;

    color:
        #183651 !important;

    font-size:
        16px !important;

    line-height:
        1.2;

    font-weight:
        700;

    letter-spacing:
        -.01em;
}

.system-loader-copy span {
    display:
        block;

    margin-top:
        4px;

    color:
        #758290;

    font-size:
        10px !important;

    line-height:
        1.3;

    font-weight:
        650;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;
}


/* ----------------------------------------------------------
   DOTS
   ---------------------------------------------------------- */

.system-loader-dots {
    height:
        12px;

    margin-top:
        15px;

    display:
        flex;

    align-items:
        center;

    gap:
        5px;
}

.system-loader-dots i {
    width:
        5px;

    height:
        5px;

    border-radius:
        50%;

    background:
        #c2a05f;

    animation:
        lsc-loader-dot
        1.05s
        ease-in-out
        infinite;
}

.system-loader-dots i:nth-child(2) {
    animation-delay:
        .13s;
}

.system-loader-dots i:nth-child(3) {
    animation-delay:
        .26s;
}


/* ----------------------------------------------------------
   DARK MODE
   ---------------------------------------------------------- */

html[data-theme="dark"]
.system-page-loader {
    background:
        rgba(
            20,
            31,
            44,
            .82
        );
}

html[data-theme="dark"]
.system-loader-progress {
    background:
        rgba(
            255,
            255,
            255,
            .05
        );
}

html[data-theme="dark"]
.system-loader-card {
    color:
        #edf3f8;

    border-color:
        #536a82;

    background:
        rgba(
            44,
            62,
            82,
            .95
        );

    box-shadow:
        0 26px 75px
        rgba(
            0,
            0,
            0,
            .30
        );
}

html[data-theme="dark"]
.system-loader-monogram {
    color:
        #f5e7c6;

    border-color:
        rgba(
            210,
            177,
            112,
            .42
        );

    background:
        linear-gradient(
            145deg,
            #40566e,
            #2f4359
        );

    box-shadow:
        inset 0 0 0 4px
        rgba(
            255,
            255,
            255,
            .035
        );
}

html[data-theme="dark"]
.system-loader-copy strong {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.system-loader-copy span {
    color:
        #bdc9d5 !important;
}


/* ----------------------------------------------------------
   ANIMATION
   ---------------------------------------------------------- */

@keyframes lsc-loader-spin {

    to {
        transform:
            rotate(
                360deg
            );
    }
}

@keyframes lsc-loader-progress {

    0% {
        transform:
            translateX(
                -130%
            );
    }

    70%,
    100% {
        transform:
            translateX(
                300%
            );
    }
}

@keyframes lsc-loader-dot {

    0%,
    70%,
    100% {
        opacity:
            .35;

        transform:
            translateY(0)
            scale(.8);
    }

    35% {
        opacity:
            1;

        transform:
            translateY(-3px)
            scale(1);
    }
}


/* ----------------------------------------------------------
   ACCESSIBILITY
   ---------------------------------------------------------- */

@media (
    prefers-reduced-motion:
    reduce
) {

    .system-loader-ring,
    .system-loader-progress::after,
    .system-loader-dots i {
        animation-duration:
            3s !important;
    }

    .system-loader-card {
        transition:
            none;
    }
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .system-loader-card {
        min-width:
            195px;

        padding:
            22px 23px 19px;
    }

    .system-loader-emblem {
        width:
            68px;

        height:
            68px;
    }

    .system-loader-monogram {
        width:
            47px;

        height:
            47px;

        font-size:
            16px !important;
    }
}



/* ==========================================================
   LSC-LOADER-REAL-COMPANY-LOGO
   ========================================================== */

.system-loader-emblem {
    width:
        88px !important;

    height:
        88px !important;
}

.system-loader-logo-shell {
    width:
        64px;

    height:
        64px;

    position:
        relative;

    z-index:
        2;

    border:
        1px solid
        rgba(
            193,
            155,
            84,
            .28
        );

    border-radius:
        50%;

    padding:
        7px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    box-sizing:
        border-box;

    background:
        #ffffff;

    box-shadow:
        0 5px 18px
        rgba(
            21,
            40,
            61,
            .10
        );
}

.system-loader-company-logo {
    display:
        block;

    width:
        auto;

    height:
        auto;

    max-width:
        100%;

    max-height:
        100%;

    object-fit:
        contain;
}


/*
 * LB remains only as automatic fallback.
 */

.system-loader-logo-shell
.system-loader-monogram {
    width:
        100% !important;

    height:
        100% !important;

    border:
        0 !important;

    box-shadow:
        none !important;
}


/* Slight premium glow around configured logo */

.system-page-loader.is-visible
.system-loader-logo-shell {
    animation:
        lsc-company-logo-breathe
        2s
        ease-in-out
        infinite;
}


@keyframes lsc-company-logo-breathe {

    0%,
    100% {
        box-shadow:
            0 5px 18px
            rgba(
                21,
                40,
                61,
                .10
            ),
            0 0 0 0
            rgba(
                198,
                161,
                91,
                0
            );
    }

    50% {
        box-shadow:
            0 7px 22px
            rgba(
                21,
                40,
                61,
                .13
            ),
            0 0 0 5px
            rgba(
                198,
                161,
                91,
                .08
            );
    }
}


/* ----------------------------------------------------------
   DARK MODE
   ---------------------------------------------------------- */

html[data-theme="dark"]
.system-loader-logo-shell {
    border-color:
        rgba(
            218,
            187,
            125,
            .40
        ) !important;

    /*
     * Keep a clean neutral background around
     * the corporate logo so its original
     * colours are never distorted.
     */
    background:
        #ffffff !important;

    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            .18
        );
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .system-loader-emblem {
        width:
            80px !important;

        height:
            80px !important;
    }

    .system-loader-logo-shell {
        width:
            58px;

        height:
            58px;

        padding:
            6px;
    }
}


/* Accessibility */

@media (
    prefers-reduced-motion:
    reduce
) {

    .system-loader-logo-shell {
        animation:
            none !important;
    }
}



/* ==========================================================
   LSC-DOCUMENT-LIST-GRID-UPGRADE
   ========================================================== */


/* Default client document presentation = LIST */

.document-vault-grid {
    display:
        block !important;
}

.document-vault-grid
.vault-document-card {
    margin-bottom:
        14px;
}


/* ----------------------------------------------------------
   LIST VIEW
   ---------------------------------------------------------- */

.document-vault-grid[
    data-document-view="list"
]
.vault-document-card {
    display:
        grid !important;

    grid-template-columns:
        86px
        minmax(0, 1fr);

    gap:
        10px 18px;

    align-items:
        center;

    padding:
        19px 21px !important;
}

.document-vault-grid[
    data-document-view="list"
]
.vault-document-header {
    grid-column:
        1;

    grid-row:
        1 / span 4;

    align-self:
        start;
}

.document-vault-grid[
    data-document-view="list"
]
.vault-document-body,

.document-vault-grid[
    data-document-view="list"
]
.vault-document-info,

.document-vault-grid[
    data-document-view="list"
]
.vault-document-footer,

.document-vault-grid[
    data-document-view="list"
]
.vault-document-actions {
    grid-column:
        2;
}


/* ----------------------------------------------------------
   GRID VIEW
   ---------------------------------------------------------- */

.document-vault-grid[
    data-document-view="grid"
] {
    display:
        grid !important;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(
                285px,
                1fr
            )
        );

    gap:
        18px;
}

.document-vault-grid[
    data-document-view="grid"
]
.vault-document-card {
    margin-bottom:
        0;
}


/* ----------------------------------------------------------
   BIGGER DOCUMENT TYPOGRAPHY
   ---------------------------------------------------------- */

.vault-document-category {
    font-size:
        12px !important;

    line-height:
        1.4 !important;

    font-weight:
        750 !important;
}

.vault-document-body h3 {
    font-size:
        18px !important;

    line-height:
        1.35 !important;

    font-weight:
        720 !important;
}

.vault-document-body p,
.vault-muted-copy {
    font-size:
        14px !important;

    line-height:
        1.6 !important;
}

.vault-document-info span {
    font-size:
        11px !important;

    line-height:
        1.35 !important;

    font-weight:
        700 !important;
}

.vault-document-info strong {
    font-size:
        13px !important;

    line-height:
        1.45 !important;
}

.vault-document-card
.button,

.vault-document-card
a {
    font-size:
        13px !important;
}


/* ----------------------------------------------------------
   LIST / GRID CONTROL
   ---------------------------------------------------------- */

.document-view-toggle {
    margin-left:
        auto;

    padding:
        3px;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        3px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        10px;

    background:
        var(--ui-surface-soft);
}

.document-view-toggle button {
    min-height:
        34px;

    border:
        0;

    border-radius:
        7px;

    padding:
        0 11px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        6px;

    color:
        var(--ui-muted);

    background:
        transparent;

    font-size:
        12px !important;

    font-weight:
        700;

    cursor:
        pointer;
}

.document-view-toggle button svg {
    width:
        15px;

    height:
        15px;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}

.document-view-toggle button.active {
    color:
        #ffffff;

    background:
        #234b72;
}


/* ----------------------------------------------------------
   ADMIN ARCHIVED DOCUMENT ACTIONS
   ---------------------------------------------------------- */

.inline-document-action {
    display:
        inline-flex;
}

.document-permanent-delete {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;
}

.document-permanent-delete input {
    width:
        112px;

    min-height:
        40px;

    font-size:
        12px !important;
}

.button-danger {
    color:
        #ffffff !important;

    border:
        1px solid
        #a7363e !important;

    background:
        #a7363e !important;
}

.button-danger:hover {
    background:
        #8c2931 !important;
}


/* ----------------------------------------------------------
   DARK MODE
   ---------------------------------------------------------- */

html[data-theme="dark"]
.document-vault-grid
.vault-document-card {
    color:
        #edf3f8 !important;

    border-color:
        #50667f !important;

    background:
        #2b3f55 !important;
}

html[data-theme="dark"]
.vault-document-category {
    color:
        #d6bd80 !important;
}

html[data-theme="dark"]
.vault-document-body h3 {
    color:
        #ffffff !important;
}

html[data-theme="dark"]
.vault-document-body p,

html[data-theme="dark"]
.vault-muted-copy {
    color:
        #c8d3de !important;
}

html[data-theme="dark"]
.vault-document-info span {
    color:
        #afbdcb !important;
}

html[data-theme="dark"]
.vault-document-info strong {
    color:
        #f1f5f9 !important;
}

html[data-theme="dark"]
.document-view-toggle {
    border-color:
        #536a82;

    background:
        #31465d;
}

html[data-theme="dark"]
.document-view-toggle button {
    color:
        #c6d2dd;
}

html[data-theme="dark"]
.document-view-toggle button.active {
    color:
        #ffffff;

    background:
        #41698f;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 760px) {

    .document-view-toggle {
        width:
            100%;

        margin-left:
            0;

        justify-content:
            stretch;
    }

    .document-view-toggle button {
        flex:
            1;
    }

    .document-vault-grid[
        data-document-view="list"
    ]
    .vault-document-card {
        display:
            block !important;

        padding:
            17px !important;
    }

    .document-vault-grid[
        data-document-view="list"
    ]
    .vault-document-header {
        margin-bottom:
            14px;
    }
}



/* ==========================================================
   LSC-CLIENT-DANGER-ZONE-STYLE
   ========================================================== */

.client-danger-zone {
    margin-top:
        22px;

    border-color:
        #d5a6aa !important;
}

.client-danger-zone
.panel-header {
    border-bottom-color:
        #e2c2c5;
}

.client-danger-zone
.eyebrow {
    color:
        #a53840 !important;
}

.client-delete-warning {
    border:
        1px solid
        #e0b9bc;

    border-radius:
        11px;

    padding:
        14px 16px;

    background:
        #fff7f7;
}

.client-delete-warning strong {
    color:
        #842d34;

    font-size:
        15px !important;
}

.client-delete-warning p {
    margin:
        5px 0 0;

    color:
        #6f4c50;

    font-size:
        13px !important;

    line-height:
        1.6 !important;
}

.client-delete-summary {
    margin-top:
        14px;

    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap:
        10px;
}

.client-delete-summary > div {
    border:
        1px solid
        var(--ui-border);

    border-radius:
        9px;

    padding:
        10px 12px;

    background:
        var(--ui-surface-soft);
}

.client-delete-summary span,
.client-delete-summary strong {
    display:
        block;
}

.client-delete-summary span {
    color:
        var(--ui-muted);

    font-size:
        11px !important;

    font-weight:
        700;
}

.client-delete-summary strong {
    margin-top:
        3px;

    color:
        var(--ui-text-strong);

    font-size:
        18px !important;
}

.client-delete-form {
    margin-top:
        16px;

    max-width:
        520px;
}

.client-delete-form
.button-danger {
    margin-top:
        10px;
}


/* Dark mode */

html[data-theme="dark"]
.client-danger-zone {
    border-color:
        #815157 !important;

    background:
        #2b3b50 !important;
}

html[data-theme="dark"]
.client-danger-zone
.panel-header {
    border-color:
        #704a50 !important;
}

html[data-theme="dark"]
.client-danger-zone
.eyebrow {
    color:
        #f0a2a8 !important;
}

html[data-theme="dark"]
.client-delete-warning {
    border-color:
        #7f5056;

    background:
        #4b3439;
}

html[data-theme="dark"]
.client-delete-warning strong {
    color:
        #ffd8db !important;
}

html[data-theme="dark"]
.client-delete-warning p {
    color:
        #e7bdc1 !important;
}

html[data-theme="dark"]
.client-delete-summary > div {
    border-color:
        #536a82;

    background:
        #33485f;
}

html[data-theme="dark"]
.client-delete-summary span {
    color:
        #bbc8d4 !important;
}

html[data-theme="dark"]
.client-delete-summary strong {
    color:
        #ffffff !important;
}


/* Mobile */

@media (max-width: 700px) {

    .client-delete-summary {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }
}



/* ==========================================================
   LSC-ORDER-PROCESSING-UI
   ========================================================== */

.order-processing-panel,
.order-processing-history-panel,
.client-order-processing-card {
    margin-top:
        18px;
}


/* STATUS BADGE */

.order-processing-badge {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        30px;

    padding:
        5px 11px;

    border:
        1px solid transparent;

    border-radius:
        999px;

    font-size:
        12px !important;

    line-height:
        1;

    font-weight:
        800;

    letter-spacing:
        .01em;

    white-space:
        nowrap;
}


.order-processing-badge.processing-hold {
    color:
        #805d14;

    border-color:
        #dfc47f;

    background:
        #fff6d9;
}


.order-processing-badge.processing-started {
    color:
        #24567f;

    border-color:
        #9fc3e2;

    background:
        #eaf5ff;
}


.order-processing-badge.processing-failed {
    color:
        #96373f;

    border-color:
        #dfadb2;

    background:
        #fff0f1;
}


.order-processing-badge.processing-completed {
    color:
        #236649;

    border-color:
        #99cbb5;

    background:
        #eaf8f1;
}


/* ADMIN FORM */

.order-processing-form {
    max-width:
        760px;
}


/* HISTORY */

.order-processing-history {
    display:
        grid;

    gap:
        9px;
}


.processing-history-row {
    padding:
        12px 14px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        10px;

    background:
        var(--ui-surface-soft);
}


.processing-history-main {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        14px;
}


.processing-history-main > div {
    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-end;

    gap:
        2px;
}


.processing-history-main strong {
    font-size:
        13px !important;
}


.processing-history-main span:not(
    .order-processing-badge
) {
    color:
        var(--ui-muted);

    font-size:
        11px !important;
}


.processing-history-row p {
    margin:
        10px 0 0;

    color:
        var(--ui-text);

    font-size:
        13px !important;

    line-height:
        1.55;
}


.order-processing-empty {
    color:
        var(--ui-muted);

    font-size:
        13px !important;
}


/* CLIENT */

.client-order-processing-card {
    overflow:
        hidden;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        14px;

    background:
        var(--ui-surface);

    box-shadow:
        0 7px 24px
        rgba(
            28,
            46,
            66,
            .06
        );
}


.client-processing-heading {
    padding:
        16px 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        14px;

    border-bottom:
        1px solid
        var(--ui-border);
}


.client-processing-heading h2 {
    margin:
        2px 0 0;

    font-size:
        18px !important;
}


.client-processing-body {
    padding:
        17px 18px;
}


.client-processing-description {
    margin:
        0;

    color:
        var(--ui-text);

    font-size:
        15px !important;

    line-height:
        1.6;
}


.client-processing-note {
    margin-top:
        14px;

    padding:
        12px 14px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        10px;

    background:
        var(--ui-surface-soft);
}


.client-processing-note span {
    display:
        block;

    margin-bottom:
        4px;

    color:
        var(--ui-muted);

    font-size:
        11px !important;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        .05em;
}


.client-processing-note p {
    margin:
        0;

    color:
        var(--ui-text-strong);

    font-size:
        14px !important;

    line-height:
        1.6;
}


.client-processing-updated {
    margin-top:
        12px;

    color:
        var(--ui-muted);

    font-size:
        11px !important;
}


/* DARK MODE */

html[data-theme="dark"]
.client-order-processing-card {
    border-color:
        #50667f;

    background:
        #2b3f55;
}


html[data-theme="dark"]
.client-processing-heading {
    border-color:
        #50667f;
}


html[data-theme="dark"]
.client-processing-description {
    color:
        #e4ebf2;
}


html[data-theme="dark"]
.client-processing-note {
    border-color:
        #536a82;

    background:
        #33485f;
}


html[data-theme="dark"]
.client-processing-note span {
    color:
        #b7c5d2;
}


html[data-theme="dark"]
.client-processing-note p {
    color:
        #ffffff;
}


html[data-theme="dark"]
.processing-history-row {
    border-color:
        #536a82;

    background:
        #33485f;
}


html[data-theme="dark"]
.processing-history-row p {
    color:
        #e5edf4;
}


html[data-theme="dark"]
.order-processing-badge.processing-hold {
    color:
        #f2d892;

    border-color:
        #826b32;

    background:
        #554923;
}


html[data-theme="dark"]
.order-processing-badge.processing-started {
    color:
        #b9dcfa;

    border-color:
        #416b91;

    background:
        #294b69;
}


html[data-theme="dark"]
.order-processing-badge.processing-failed {
    color:
        #ffc2c7;

    border-color:
        #8b5158;

    background:
        #59373c;
}


html[data-theme="dark"]
.order-processing-badge.processing-completed {
    color:
        #bde8d2;

    border-color:
        #48785f;

    background:
        #315a46;
}


/* MOBILE */

@media (max-width: 700px) {

    .client-processing-heading,
    .processing-history-main {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .processing-history-main > div {
        align-items:
            flex-start;
    }
}



/* ==========================================================
   LSC-CLIENT-ORDER-DETAIL-PAGE
   ========================================================== */

.client-order-detail-action {
    margin-top:
        12px;
}


.client-order-detail-action
.button {
    font-size:
        13px !important;
}


.client-order-processing-card {
    margin-top:
        20px;
}


.client-order-processing-card
.eyebrow {
    margin-bottom:
        3px;
}


.client-order-processing-card
.order-processing-badge {
    font-size:
        13px !important;

    min-height:
        32px;
}


.client-processing-description {
    font-size:
        15px !important;

    line-height:
        1.65 !important;
}


.client-processing-note p {
    font-size:
        14px !important;
}


/* Dark */

html[data-theme="dark"]
.client-order-processing-card
h2 {
    color:
        #ffffff !important;
}


/* Mobile */

@media (max-width: 700px) {

    .client-order-detail-action
    .button {
        width:
            100%;
    }
}



/* ==========================================================
   LSC-SAVED-BELL-HISTORY-UI
   ========================================================== */

.notification-item-row {
    position:
        relative;

    display:
        flex;

    align-items:
        stretch;

    border-bottom:
        1px solid
        var(--ui-border);
}


.notification-item-row:last-child {
    border-bottom:
        0;
}


.notification-item-row
.notification-item {
    flex:
        1;

    min-width:
        0;

    border-bottom:
        0 !important;
}


.notification-item-row.is-unread {
    background:
        rgba(
            49,
            100,
            146,
            .08
        );
}


.notification-item-row.is-unread
.notification-item {
    box-shadow:
        inset 3px 0 0
        #396b98;
}


.notification-item-row.is-read
.notification-item {
    opacity:
        .72;
}


.notification-item-copy {
    min-width:
        0;

    display:
        flex;

    flex-direction:
        column;

    gap:
        3px;
}


.notification-item-copy em {
    color:
        var(--ui-muted);

    font-size:
        11px !important;

    line-height:
        1.45;

    font-style:
        normal;
}


.notification-item-state {
    width:
        fit-content;

    padding:
        2px 6px;

    border-radius:
        999px;

    color:
        #576675;

    background:
        #edf1f4;

    font-size:
        9px !important;

    line-height:
        1.4;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        .04em;
}


.notification-item-row.is-unread
.notification-item-state {
    color:
        #24547d;

    background:
        #dceeff;
}


.notification-dismiss-button {
    width:
        34px;

    flex:
        0 0 34px;

    border:
        0;

    border-left:
        1px solid
        var(--ui-border);

    color:
        var(--ui-muted);

    background:
        transparent;

    font-size:
        20px !important;

    font-weight:
        400;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        background .15s ease,
        color .15s ease;
}


.notification-dismiss-button:hover {
    color:
        #9a343c;

    background:
        rgba(
            163,
            53,
            62,
            .08
        );
}


.notification-dismiss-button:disabled {
    cursor:
        wait;

    opacity:
        .45;
}


/* Dark */

html[data-theme="dark"]
.notification-item-row {
    border-color:
        #4d637a;
}


html[data-theme="dark"]
.notification-item-row.is-unread {
    background:
        rgba(
            94,
            149,
            198,
            .14
        );
}


html[data-theme="dark"]
.notification-item-row.is-unread
.notification-item {
    box-shadow:
        inset 3px 0 0
        #77a9d4;
}


html[data-theme="dark"]
.notification-item-row.is-read
.notification-item {
    opacity:
        .67;
}


html[data-theme="dark"]
.notification-item-state {
    color:
        #c3ced8;

    background:
        #3b5067;
}


html[data-theme="dark"]
.notification-item-row.is-unread
.notification-item-state {
    color:
        #d5ebff;

    background:
        #365f84;
}


html[data-theme="dark"]
.notification-dismiss-button {
    border-color:
        #4d637a;

    color:
        #aebdca;
}


html[data-theme="dark"]
.notification-dismiss-button:hover {
    color:
        #ffc3c7;

    background:
        #53383d;
}



/* ==========================================================
   LSC-ORDER-HISTORY-PAGE
   ========================================================== */

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


.order-history-table {
    width:
        100%;

    border-collapse:
        collapse;
}


.order-history-table th {
    padding:
        11px 14px;

    color:
        var(--ui-muted);

    border-bottom:
        1px solid
        var(--ui-border);

    font-size:
        11px !important;

    font-weight:
        800;

    letter-spacing:
        .04em;

    text-align:
        left;

    text-transform:
        uppercase;
}


.order-history-table td {
    padding:
        14px;

    border-bottom:
        1px solid
        var(--ui-border);

    color:
        var(--ui-text);

    font-size:
        13px !important;

    vertical-align:
        middle;
}


.order-history-table tbody
tr:last-child td {
    border-bottom:
        0;
}


.order-history-table td strong {
    color:
        var(--ui-text-strong);

    font-size:
        13px !important;
}


.order-history-table td small {
    display:
        block;

    margin-top:
        3px;

    color:
        var(--ui-muted);

    font-size:
        11px !important;
}


.order-history-action {
    text-align:
        right;
}


.order-history-action .button {
    white-space:
        nowrap;

    font-size:
        12px !important;
}


.order-payment-status {
    display:
        inline-flex;

    padding:
        4px 8px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        999px;

    background:
        var(--ui-surface-soft);

    font-size:
        11px !important;

    font-weight:
        700;
}


.order-history-empty {
    padding:
        28px !important;

    text-align:
        center;
}


.order-history-empty h2 {
    margin:
        0 0 6px;

    font-size:
        19px !important;
}


.order-history-empty p {
    margin:
        0 0 16px;

    color:
        var(--ui-muted);

    font-size:
        14px !important;
}


.order-history-pagination {
    margin-top:
        18px;
}


/* Dark */

html[data-theme="dark"]
.order-history-table th {
    color:
        #aebcca;

    border-color:
        #4e6379;
}


html[data-theme="dark"]
.order-history-table td {
    color:
        #dfe7ee;

    border-color:
        #465d74;
}


html[data-theme="dark"]
.order-history-table td strong {
    color:
        #ffffff;
}


html[data-theme="dark"]
.order-payment-status {
    color:
        #dce6ee;

    border-color:
        #536a82;

    background:
        #34495f;
}


/* Mobile */

@media (max-width: 780px) {

    .order-history-table thead {
        display:
            none;
    }


    .order-history-table,
    .order-history-table tbody,
    .order-history-table tr,
    .order-history-table td {
        display:
            block;

        width:
            100%;
    }


    .order-history-table tr {
        margin-bottom:
            12px;

        padding:
            8px 0;

        border:
            1px solid
            var(--ui-border);

        border-radius:
            11px;
    }


    .order-history-table td {
        padding:
            8px 14px;

        display:
            grid;

        grid-template-columns:
            105px
            minmax(
                0,
                1fr
            );

        gap:
            10px;

        border:
            0;
    }


    .order-history-table td::before {
        content:
            attr(data-label);

        color:
            var(--ui-muted);

        font-size:
            10px;

        font-weight:
            800;

        letter-spacing:
            .04em;

        text-transform:
            uppercase;
    }


    .order-history-action {
        display:
            block !important;

        padding-top:
            12px !important;
    }


    .order-history-action::before {
        display:
            none;
    }


    .order-history-action .button {
        width:
            100%;
    }
}



/* ==========================================================
   LSC-COMPANY-DETAILS-DARK-FIX
   ========================================================== */

html[data-theme="dark"]
.company-details-grid > div {
    border-color:
        #536a82 !important;

    background:
        #31465d !important;

    box-shadow:
        none !important;
}


html[data-theme="dark"]
.company-details-grid > div > span {
    color:
        #b9c7d4 !important;
}


html[data-theme="dark"]
.company-details-grid > div > strong {
    color:
        #ffffff !important;
}


html[data-theme="dark"]
.company-details-grid
.company-address-detail {
    border-color:
        #5a7189 !important;

    background:
        #354b63 !important;
}


html[data-theme="dark"]
.company-details-grid
.company-address-detail > span {
    color:
        #c0ccd7 !important;
}


html[data-theme="dark"]
.company-details-grid
.company-address-detail > strong {
    color:
        #ffffff !important;
}


/* Links inside company details */

html[data-theme="dark"]
.company-details-grid a {
    color:
        #d7bd7b !important;
}


/* Improve field separation */

html[data-theme="dark"]
.company-details-grid > div:hover {
    border-color:
        #657e98 !important;

    background:
        #374f67 !important;
}



/* ==========================================================
   LSC-POLICY-AUDIENCE-UI
   ========================================================== */

.policy-audience-section {
    margin-top:
        18px;
}


.policy-audience-badge {
    display:
        inline-flex;

    align-items:
        center;

    min-height:
        29px;

    padding:
        5px 10px;

    border-radius:
        999px;

    font-size:
        11px !important;

    font-weight:
        800;
}


.policy-audience-badge.is-global {
    color:
        #285c48;

    border:
        1px solid
        #9dc8b5;

    background:
        #edf8f3;
}


.policy-audience-badge.is-specific {
    color:
        #7b5a18;

    border:
        1px solid
        #dbc27f;

    background:
        #fff7df;
}


.policy-audience-form {
    max-width:
        820px;
}


.policy-audience-security-note {
    margin-top:
        14px;

    padding:
        12px 14px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        3px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        10px;

    background:
        var(--ui-surface-soft);
}


.policy-audience-security-note strong {
    color:
        var(--ui-text-strong);

    font-size:
        13px !important;
}


.policy-audience-security-note span {
    color:
        var(--ui-muted);

    font-size:
        12px !important;

    line-height:
        1.55;
}


/* Dark */

html[data-theme="dark"]
.policy-audience-badge.is-global {
    color:
        #c2ead7;

    border-color:
        #4e8069;

    background:
        #315746;
}


html[data-theme="dark"]
.policy-audience-badge.is-specific {
    color:
        #f0d893;

    border-color:
        #846f39;

    background:
        #544925;
}


html[data-theme="dark"]
.policy-audience-security-note {
    border-color:
        #536a82;

    background:
        #33485f;
}


html[data-theme="dark"]
.policy-audience-security-note strong {
    color:
        #ffffff !important;
}


html[data-theme="dark"]
.policy-audience-security-note span {
    color:
        #c4d0db !important;
}



/* ==========================================================
   LSC-AUDIT-PAGINATION
   ========================================================== */

.audit-pagination {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        16px;

    margin-top:
        14px;

    padding:
        10px 12px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        10px;

    background:
        var(--ui-surface);
}


.audit-pagination-summary {
    color:
        var(--ui-muted);

    font-size:
        11px !important;
}


.audit-pagination-summary strong {
    color:
        var(--ui-text-strong);

    font-weight:
        800;
}


.audit-pagination-controls {
    display:
        flex;

    align-items:
        center;

    gap:
        5px;
}


.audit-page-button,
.audit-page-number {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        30px;

    padding:
        5px 9px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        7px;

    color:
        var(--ui-text);

    background:
        var(--ui-surface);

    font-size:
        11px !important;

    font-weight:
        700;

    line-height:
        1;

    text-decoration:
        none;

    white-space:
        nowrap;

    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease;
}


.audit-page-number {
    min-width:
        30px;

    padding-left:
        7px;

    padding-right:
        7px;
}


.audit-page-button:hover,
.audit-page-number:hover {
    border-color:
        #bba264;

    background:
        #f7f3e8;

    color:
        #17283b;
}


.audit-page-number.is-current {
    border-color:
        #b99b54;

    background:
        #17283b;

    color:
        #ffffff;

    pointer-events:
        none;
}


.audit-page-button.is-disabled {
    opacity:
        .42;

    cursor:
        default;

    pointer-events:
        none;
}


.audit-page-ellipsis {
    min-width:
        18px;

    color:
        var(--ui-muted);

    font-size:
        12px !important;

    text-align:
        center;
}


/* Dark */

html[data-theme="dark"]
.audit-pagination {
    border-color:
        #4f647a;

    background:
        #2f4358;
}


html[data-theme="dark"]
.audit-pagination-summary {
    color:
        #b7c5d1;
}


html[data-theme="dark"]
.audit-pagination-summary strong {
    color:
        #ffffff;
}


html[data-theme="dark"]
.audit-page-button,
html[data-theme="dark"]
.audit-page-number {
    border-color:
        #566c82;

    color:
        #dce6ee;

    background:
        #364c63;
}


html[data-theme="dark"]
.audit-page-button:hover,
html[data-theme="dark"]
.audit-page-number:hover {
    border-color:
        #c5aa68;

    color:
        #ffffff;

    background:
        #405a73;
}


html[data-theme="dark"]
.audit-page-number.is-current {
    border-color:
        #d0b46d;

    color:
        #142335;

    background:
        #d6bd7c;
}


html[data-theme="dark"]
.audit-page-ellipsis {
    color:
        #99aabd;
}


/* Mobile */

@media (max-width: 700px) {

    .audit-pagination {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .audit-pagination-controls {
        flex-wrap:
            wrap;
    }
}



/* ==========================================================
   LSC-BELL-NOTIFICATION-WIDTH-FIX
   ========================================================== */

.notification-item-row {
    width:
        100% !important;

    min-width:
        0 !important;
}


.notification-item-row
.notification-item {
    width:
        auto !important;

    max-width:
        none !important;

    min-width:
        0 !important;

    flex:
        1 1 auto !important;

    display:
        grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        18px !important;

    align-items:
        center !important;

    gap:
        10px !important;

    padding:
        11px 10px 11px 13px !important;

    box-sizing:
        border-box !important;
}


.notification-item-copy {
    width:
        100% !important;

    max-width:
        100% !important;

    min-width:
        0 !important;

    flex:
        1 1 auto !important;

    overflow:
        hidden;
}


.notification-item-copy > strong,
.notification-item-copy > span:not(
    .notification-item-state
),
.notification-item-copy > em,
.notification-item-copy > small {
    display:
        block;

    width:
        100%;

    min-width:
        0;

    max-width:
        100%;

    white-space:
        normal !important;

    overflow-wrap:
        break-word !important;

    word-break:
        normal !important;
}


.notification-item-copy > strong {
    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap !important;
}


.notification-item-copy > span:not(
    .notification-item-state
) {
    color:
        var(--ui-text);

    font-size:
        12px !important;

    font-weight:
        700;

    line-height:
        1.4;
}


.notification-item-copy > em {
    margin-top:
        1px;

    line-height:
        1.45;
}


.notification-item-copy > small {
    margin-top:
        2px;

    color:
        var(--ui-muted);

    font-size:
        10px !important;
}


.notification-item-arrow {
    width:
        18px !important;

    min-width:
        18px !important;

    display:
        flex !important;

    align-items:
        center;

    justify-content:
        center;

    color:
        var(--ui-muted);

    font-size:
        14px !important;
}


.notification-dismiss-button {
    width:
        34px !important;

    min-width:
        34px !important;

    max-width:
        34px !important;

    flex:
        0 0 34px !important;
}


/* Read notifications remain readable */

.notification-item-row.is-read
.notification-item {
    opacity:
        .78;
}


/* Dark mode */

html[data-theme="dark"]
.notification-item-copy
> span:not(.notification-item-state) {
    color:
        #edf3f7 !important;
}


html[data-theme="dark"]
.notification-item-copy
> strong {
    color:
        #ffffff !important;
}


html[data-theme="dark"]
.notification-item-copy
> em,
html[data-theme="dark"]
.notification-item-copy
> small {
    color:
        #b8c7d4 !important;
}


html[data-theme="dark"]
.notification-item-arrow {
    color:
        #9fb0bf !important;
}



/* ==========================================================
   LSC-ADMIN-CUSTOMER-SEARCH-UI
   ========================================================== */

.admin-customer-search {
    width:
        100%;

    min-width:
        0;

    display:
        grid;

    gap:
        6px;
}


.admin-customer-search-input {
    width:
        100%;

    min-width:
        0;

    height:
        38px;

    padding:
        8px 11px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        8px;

    outline:
        none;

    color:
        var(--ui-text);

    background:
        var(--ui-surface);

    font-family:
        inherit;

    font-size:
        12px !important;

    line-height:
        1.4;

    box-sizing:
        border-box;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


.admin-customer-search-input::placeholder {
    color:
        var(--ui-muted);

    opacity:
        .78;
}


.admin-customer-search-input:focus {
    border-color:
        #aa8d4b;

    box-shadow:
        0 0 0 3px
        rgba(
            170,
            141,
            75,
            .12
        );
}


.admin-customer-search > select {
    width:
        100%;

    min-width:
        0;
}


.admin-customer-search-status {
    min-height:
        15px;

    color:
        var(--ui-muted);

    font-size:
        10px !important;

    line-height:
        1.4;
}


.admin-customer-search.has-no-results
.admin-customer-search-input {
    border-color:
        #bc6970;
}


.admin-customer-search.has-no-results
.admin-customer-search-status {
    color:
        #9a3e47;
}


/* Dark mode */

html[data-theme="dark"]
.admin-customer-search-input {
    color:
        #edf3f7;

    border-color:
        #536a82;

    background:
        #33495f;
}


html[data-theme="dark"]
.admin-customer-search-input::placeholder {
    color:
        #9fb0bf;
}


html[data-theme="dark"]
.admin-customer-search-input:focus {
    border-color:
        #cfb66f;

    background:
        #384f67;

    box-shadow:
        0 0 0 3px
        rgba(
            207,
            182,
            111,
            .14
        );
}


html[data-theme="dark"]
.admin-customer-search-status {
    color:
        #aebdca;
}


html[data-theme="dark"]
.admin-customer-search.has-no-results
.admin-customer-search-input {
    border-color:
        #cf747d;
}


html[data-theme="dark"]
.admin-customer-search.has-no-results
.admin-customer-search-status {
    color:
        #f2a9af;
}


/* Compact filter/toolbars */

.filters
.admin-customer-search,
.filter-bar
.admin-customer-search,
.toolbar
.admin-customer-search {
    min-width:
        210px;
}


/* Mobile */

@media (max-width: 700px) {

    .admin-customer-search {
        width:
            100%;
    }


    .admin-customer-search-input {
        height:
            40px;
    }
}



/* ==========================================================
   LSC-ADMIN-CUSTOMER-COMBOBOX-V2
   Search is INSIDE dropdown — no extra form row.
   ========================================================== */

.admin-customer-combobox {
    position:
        relative;

    width:
        100%;

    min-width:
        0;
}


/*
 * Keep the actual Laravel field in the form,
 * but visually replace it with the combobox.
 */

.admin-customer-native-select {
    position:
        absolute !important;

    width:
        1px !important;

    height:
        1px !important;

    padding:
        0 !important;

    margin:
        0 !important;

    opacity:
        0 !important;

    pointer-events:
        none !important;

    overflow:
        hidden !important;
}


.admin-customer-combobox-trigger {
    width:
        100%;

    min-width:
        0;

    min-height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    padding:
        8px 11px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        8px;

    outline:
        none;

    color:
        var(--ui-text);

    background:
        var(--ui-surface);

    font-family:
        inherit;

    font-size:
        12px !important;

    font-weight:
        500;

    line-height:
        1.4;

    text-align:
        left;

    cursor:
        pointer;

    box-sizing:
        border-box;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


.admin-customer-combobox-trigger:hover {
    border-color:
        #b9a365;
}


.admin-customer-combobox.is-open
.admin-customer-combobox-trigger,
.admin-customer-combobox-trigger:focus-visible {
    border-color:
        #aa8d4b;

    box-shadow:
        0 0 0 3px
        rgba(
            170,
            141,
            75,
            .12
        );
}


.admin-customer-combobox-value {
    min-width:
        0;

    flex:
        1;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.admin-customer-combobox-arrow {
    flex:
        0 0 auto;

    color:
        var(--ui-muted);

    font-size:
        14px !important;

    line-height:
        1;

    transition:
        transform .15s ease;
}


.admin-customer-combobox.is-open
.admin-customer-combobox-arrow {
    transform:
        rotate(180deg);
}


/*
 * Floating menu.
 * It overlays the page instead of changing
 * the form/filter layout height.
 */

.admin-customer-combobox-panel {
    position:
        absolute;

    top:
        calc(100% + 5px);

    left:
        0;

    z-index:
        120;

    width:
        max(
            100%,
            310px
        );

    max-width:
        min(
            420px,
            90vw
        );

    padding:
        7px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        10px;

    background:
        var(--ui-surface);

    box-shadow:
        0 14px 35px
        rgba(
            16,
            29,
            43,
            .16
        );

    box-sizing:
        border-box;
}


.admin-customer-combobox-panel[hidden] {
    display:
        none !important;
}


/*
 * Search lives INSIDE the dropdown.
 */

.admin-customer-combobox-search {
    padding:
        1px 1px 7px;
}


.admin-customer-combobox-search input {
    width:
        100%;

    height:
        36px;

    padding:
        7px 10px;

    border:
        1px solid
        var(--ui-border);

    border-radius:
        7px;

    outline:
        none;

    color:
        var(--ui-text);

    background:
        var(--ui-surface-soft);

    font-family:
        inherit;

    font-size:
        12px !important;

    box-sizing:
        border-box;
}


.admin-customer-combobox-search
input::placeholder {
    color:
        var(--ui-muted);

    opacity:
        .78;
}


.admin-customer-combobox-search
input:focus {
    border-color:
        #aa8d4b;

    box-shadow:
        0 0 0 2px
        rgba(
            170,
            141,
            75,
            .10
        );
}


.admin-customer-combobox-list {
    max-height:
        260px;

    overflow-y:
        auto;

    overscroll-behavior:
        contain;
}


.admin-customer-combobox-option {
    width:
        100%;

    display:
        flex;

    align-items:
        center;

    padding:
        8px 9px;

    border:
        0;

    border-radius:
        6px;

    color:
        var(--ui-text);

    background:
        transparent;

    font-family:
        inherit;

    font-size:
        12px !important;

    line-height:
        1.4;

    text-align:
        left;

    cursor:
        pointer;
}


.admin-customer-combobox-option:hover,
.admin-customer-combobox-option:focus-visible {
    outline:
        none;

    color:
        var(--ui-text-strong);

    background:
        var(--ui-surface-soft);
}


.admin-customer-combobox-option.is-selected {
    color:
        #193047;

    background:
        #f2ead4;

    font-weight:
        700;
}


.admin-customer-combobox-option.is-placeholder {
    color:
        var(--ui-muted);
}


.admin-customer-combobox-empty {
    padding:
        12px 9px;

    color:
        var(--ui-muted);

    font-size:
        11px !important;

    text-align:
        center;
}


/*
 * Prevent legacy V1 search UI from affecting
 * geometry if old browser markup survives
 * during hot navigation.
 */

.admin-customer-search-input,
.admin-customer-search-status {
    display:
        none !important;
}


/* Dark mode */

html[data-theme="dark"]
.admin-customer-combobox-trigger {
    color:
        #edf3f7;

    border-color:
        #536a82;

    background:
        #33495f;
}


html[data-theme="dark"]
.admin-customer-combobox-trigger:hover {
    border-color:
        #c4aa68;
}


html[data-theme="dark"]
.admin-customer-combobox.is-open
.admin-customer-combobox-trigger,
html[data-theme="dark"]
.admin-customer-combobox-trigger:focus-visible {
    border-color:
        #d0b66e;

    box-shadow:
        0 0 0 3px
        rgba(
            208,
            182,
            110,
            .14
        );
}


html[data-theme="dark"]
.admin-customer-combobox-arrow {
    color:
        #aebdca;
}


html[data-theme="dark"]
.admin-customer-combobox-panel {
    border-color:
        #536a82;

    background:
        #30455b;

    box-shadow:
        0 16px 38px
        rgba(
            4,
            13,
            23,
            .34
        );
}


html[data-theme="dark"]
.admin-customer-combobox-search input {
    color:
        #edf3f7;

    border-color:
        #566d84;

    background:
        #293e53;
}


html[data-theme="dark"]
.admin-customer-combobox-search
input::placeholder {
    color:
        #9fb0bf;
}


html[data-theme="dark"]
.admin-customer-combobox-search
input:focus {
    border-color:
        #cfb66f;
}


html[data-theme="dark"]
.admin-customer-combobox-option {
    color:
        #e0e9f0;
}


html[data-theme="dark"]
.admin-customer-combobox-option:hover,
html[data-theme="dark"]
.admin-customer-combobox-option:focus-visible {
    color:
        #ffffff;

    background:
        #3b536b;
}


html[data-theme="dark"]
.admin-customer-combobox-option.is-selected {
    color:
        #172536;

    background:
        #d4ba75;
}


html[data-theme="dark"]
.admin-customer-combobox-option.is-placeholder,
html[data-theme="dark"]
.admin-customer-combobox-empty {
    color:
        #9fb0bf;
}


/* Filters stay compact */

.filters
.admin-customer-combobox,
.filter-bar
.admin-customer-combobox,
.toolbar
.admin-customer-combobox {
    min-width:
        0 !important;
}


/* Mobile */

@media (max-width: 700px) {

    .admin-customer-combobox-panel {
        width:
            100%;

        min-width:
            260px;

        max-width:
            calc(100vw - 40px);
    }
}

