:root {
    --lp-primary: #1b3a6b;
    --lp-primary-dark: #122951;
    --lp-accent: #c89b2a;
    --lp-accent-light: #f0d98a;
    --lp-sidebar-width: 240px;
    --lp-sidebar-collapsed-width: 76px;
    --lp-topbar-height: 58px;
    --lp-background: #f4f5f7;
    --lp-surface: #ffffff;
    --lp-border: #dfe3e8;
    --lp-text: #20252b;
    --lp-muted: #69737d;
    --lp-radius: .6rem;
    --lp-shadow: 0 2px 10px rgba(18, 41, 81, .09);
    --lp-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.lp-activity-list {
  display: grid;
}

.lp-activity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--lp-border, #dce3ea);
}

.lp-activity-row:first-child { border-top: 0; }
.lp-activity-row h3 { margin: .55rem 0 .25rem; font-size: 1rem; }
.lp-activity-row p { margin: 0 0 .35rem; }
.lp-activity-row small { color: var(--bs-secondary-color); }

.lp-notification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .75rem;
  padding: 1rem 1.25rem 1.25rem;
}

.lp-notification-item {
  display: grid;
  gap: .25rem;
  min-width: 0;
  padding: .9rem 1rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--lp-border, #dce3ea);
  border-left: 4px solid #718096;
  border-radius: .65rem;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.lp-notification-item:hover {
  color: inherit;
  transform: translateY(-1px);
  box-shadow: 0 .45rem 1rem rgba(20, 45, 79, .09);
}

.lp-notification-item.is-soon { border-left-color: #d69e2e; background: #fffbeb; }
.lp-notification-item.is-overdue { border-left-color: #dc3545; background: #fff5f5; }
.lp-notification-item span:not(.lp-status-pill),
.lp-notification-item small { color: var(--bs-secondary-color); overflow-wrap: anywhere; }

@media (max-width: 575.98px) {
  .lp-activity-row { flex-direction: column; }
  .lp-notification-grid { grid-template-columns: 1fr; }
}

.lp-statement-sheet { max-width: 1050px; margin: 0 auto; }
.lp-lsw-letterhead { display: block; width: 100%; height: auto; }
.lp-statement-letterhead { margin-bottom: 2rem; }
.lp-statement-letterhead address { min-height: 4.5rem; margin: 1.75rem 0; font-style: normal; }
.lp-statement-letterhead h2 { margin: 1.5rem 0; font-family: Georgia, "Times New Roman", serif; }
.lp-statement-reference { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #4d535a; font-weight: 600; }
.lp-statement-table tfoot { border-top: 2px solid var(--lp-navy, #17345f); }
.lp-statement-balance { background: #edf3fa; border-left: 4px solid #d2a31f; padding: 1rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; font-size: 1.2rem; }
.lp-statement-balance strong { color: #17345f; font-size: 1.35rem; }

@media print {
    @page { size: Letter; margin: .55in .55in .6in; }
    .lp-sidebar, .lp-topbar, .lp-no-print, .toast-container { display: none !important; }
    .lp-main, main { margin: 0 !important; padding: 0 !important; width: 100% !important; }
    .lp-statement-sheet { border: 0 !important; box-shadow: none !important; max-width: none; }
    .lp-statement-sheet .card-body { padding: 0 !important; }
    .lp-statement-sheet { font-family: Georgia, "Times New Roman", serif; font-size: 12pt; }
    .lp-statement-letterhead { margin-bottom: .35in; }
    .lp-lsw-letterhead { max-width: 100%; }
    .lp-statement-table { page-break-inside: avoid; }
}

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

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--lp-text);
    background: var(--lp-background);
    font-family: var(--lp-font);
    font-size: 14px;
}

a { color: var(--lp-primary); }
a:hover { color: var(--lp-primary-dark); }

.lp-topbar,
.lp-auth-topbar {
    background: var(--lp-primary-dark);
    color: #fff;
    min-height: var(--lp-topbar-height);
    box-shadow: var(--lp-shadow);
}

.lp-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1rem;
}

.lp-auth-topbar {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
}

.lp-brand:hover { color: var(--lp-accent-light); text-decoration: none; }

.lp-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: .45rem;
    color: var(--lp-primary-dark);
    background: var(--lp-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.lp-menu-button {
    display: none;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 1.4rem;
}

.lp-user-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.lp-user-summary > span { display: flex; flex-direction: column; text-align: right; }
.lp-user-summary small { color: rgba(255,255,255,.65); font-size: .72rem; }

.lp-sidebar {
    position: fixed;
    inset: var(--lp-topbar-height) auto 0 0;
    z-index: 1030;
    width: var(--lp-sidebar-width);
    overflow-y: auto;
    background: var(--lp-primary);
    transition: width .2s ease, transform .2s ease;
}

.lp-sidebar-collapse {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: calc(100% - 1.5rem);
    min-height: 38px;
    margin: .75rem;
    padding: .4rem .7rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: .45rem;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.04);
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
}

.lp-sidebar-collapse:hover { color: #fff; background: rgba(255,255,255,.09); }
.lp-sidebar-collapse svg {
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.lp-nav { display: flex; flex-direction: column; padding: 0 0 2rem; }

.lp-nav-group-label {
    margin-top: .8rem;
    padding: .45rem 1rem .2rem;
    color: rgba(255,255,255,.42);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lp-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 42px;
    padding: .55rem 1rem;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.lp-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    text-decoration: none;
}

.lp-nav-link.active {
    border-left-color: var(--lp-accent);
    color: var(--lp-accent-light);
    background: rgba(200,155,42,.14);
}

.lp-nav-link.disabled { color: rgba(255,255,255,.42); cursor: not-allowed; }
.lp-nav-link small { margin-left: auto; color: var(--lp-accent-light); font-size: .62rem; text-transform: uppercase; }

.lp-nav-icon {
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-main {
    min-height: calc(100vh - var(--lp-topbar-height));
    margin-top: var(--lp-topbar-height);
    margin-left: var(--lp-sidebar-width);
    padding: 1.5rem;
    transition: margin-left .2s ease;
}

.lp-sidebar-overlay { display: none; }

@media (min-width: 992px) {
    .lp-sidebar-collapsed .lp-sidebar { width: var(--lp-sidebar-collapsed-width); }
    .lp-sidebar-collapsed .lp-main { margin-left: var(--lp-sidebar-collapsed-width); }
    .lp-sidebar-collapsed .lp-sidebar-collapse { justify-content: center; width: 44px; margin-inline: auto; padding-inline: .4rem; }
    .lp-sidebar-collapsed .lp-sidebar-collapse svg { transform: rotate(180deg); }
    .lp-sidebar-collapsed .lp-sidebar-collapse span,
    .lp-sidebar-collapsed .lp-nav-text,
    .lp-sidebar-collapsed .lp-nav-group-label { display: none; }
    .lp-sidebar-collapsed .lp-nav-link { justify-content: center; gap: 0; min-height: 48px; padding-inline: .5rem; }
    .lp-sidebar-collapsed .lp-nav-link.active { border-left-width: 3px; }
    .lp-sidebar-collapsed .lp-nav-icon { width: 1.6rem; height: 1.6rem; }
}

.lp-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.lp-page-title { margin: 0; color: var(--lp-primary); font-size: 1.45rem; font-weight: 750; }
.lp-page-subtitle { margin: .25rem 0 0; color: var(--lp-muted); }

.lp-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 1.75rem;
    border: 1px solid #d9e4f2;
    border-radius: 1rem;
    background: linear-gradient(120deg, #f4f8fc 0%, #fff 62%, #fff9ea 100%);
    box-shadow: var(--lp-shadow);
}
.lp-eyebrow { margin: 0 0 .35rem; color: var(--lp-accent); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lp-dashboard-title { margin: 0; color: var(--lp-primary); font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 780; letter-spacing: -.03em; }
.lp-dashboard-subtitle { max-width: 620px; margin: .4rem 0 0; color: var(--lp-muted); font-size: 1rem; }
.lp-dashboard-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.lp-dashboard-stat {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    color: var(--lp-text);
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.lp-dashboard-stat::after { position: absolute; right: -1.2rem; bottom: -1.7rem; width: 5rem; height: 5rem; border-radius: 50%; background: rgba(31, 84, 143, .08); content: ''; }
.lp-dashboard-stat:hover { transform: translateY(-2px); color: var(--lp-text); box-shadow: 0 8px 22px rgba(18,41,81,.13); }
.lp-dashboard-stat-warm::after { background: rgba(200,155,42,.14); }
.lp-dashboard-stat-green::after { background: rgba(48,138,98,.12); }
.lp-dashboard-stat-purple::after { background: rgba(112,82,157,.12); }
.lp-dashboard-stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-bottom: .8rem; border-radius: .55rem; color: var(--lp-primary-dark); background: #e8eef7; font-size: .78rem; font-weight: 800; }
.lp-dashboard-stat-warm .lp-dashboard-stat-icon { color: #705816; background: #fff4cf; }
.lp-dashboard-stat-green .lp-dashboard-stat-icon { color: #17623c; background: #e5f5eb; }
.lp-dashboard-stat-purple .lp-dashboard-stat-icon { color: #5c407e; background: #f0e9fa; }
.lp-dashboard-stat-value { display: block; margin-top: .35rem; color: var(--lp-primary); font-size: 1.65rem; font-weight: 780; line-height: 1.1; }

.lp-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.lp-card-heading h2 { margin: 0; color: var(--lp-primary); font-size: 1.03rem; font-weight: 750; }
.lp-card-heading p { margin: .2rem 0 0; color: var(--lp-muted); font-size: .8rem; font-weight: 400; }
.lp-card-link { flex: 0 0 auto; color: var(--lp-primary); font-size: .8rem; font-weight: 700; text-decoration: none; }
.lp-card-link:hover { color: var(--lp-accent); text-decoration: underline; }
.lp-dashboard-list { padding: .35rem 0; }
.lp-dashboard-list-row { display: flex; align-items: center; gap: .8rem; min-height: 4.35rem; padding: .65rem 1.2rem; color: var(--lp-text); text-decoration: none; transition: background .15s ease; }
.lp-dashboard-list-row:hover { color: var(--lp-text); background: #f7f9fc; }
.lp-dashboard-list-main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: .18rem; }
.lp-dashboard-list-main strong { overflow: hidden; color: var(--lp-primary); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.lp-dashboard-list-main small, .lp-dashboard-list-meta small { color: var(--lp-muted); font-size: .75rem; }
.lp-dashboard-list-meta { display: flex; align-items: flex-end; flex: 0 0 auto; flex-direction: column; gap: .25rem; }
.lp-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 50%; color: var(--lp-primary-dark); background: #e8eef7; font-size: .82rem; font-weight: 800; }
.lp-dashboard-empty { min-height: 11rem; padding-block: 2rem; }
.lp-quick-actions { display: flex; flex-direction: column; gap: .7rem; }

@media (max-width: 767.98px) {
    .lp-dashboard-hero { align-items: flex-start; flex-direction: column; padding: 1.25rem; }
    .lp-dashboard-actions { width: 100%; }
    .lp-dashboard-actions .btn { flex: 1; }
    .lp-dashboard-list-row { padding-inline: 1rem; }
}

.lp-stat-card,
.card,
.lp-auth-card {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
}

.lp-stat-card { height: 100%; padding: 1.15rem; }
.lp-stat-label { color: var(--lp-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lp-stat-value { display: block; margin-top: .35rem; color: var(--lp-primary); font-size: 1.3rem; font-weight: 750; }
.lp-stat-detail { display: block; margin-top: .25rem; color: var(--lp-muted); font-size: .8rem; }

.card-header { border-bottom: 1px solid var(--lp-border); background: var(--lp-surface); font-weight: 650; }

.btn-lp-primary { border-color: var(--lp-primary); color: #fff; background: var(--lp-primary); }
.btn-lp-primary:hover, .btn-lp-primary:focus { border-color: var(--lp-primary-dark); color: #fff; background: var(--lp-primary-dark); }

.form-label { color: var(--lp-muted); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.lp-field-requirement {
    display: inline-block;
    margin-left: .4rem;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .03em;
}
.lp-field-requirement.is-required { color: #dc3545; }
.lp-field-requirement.is-optional { color: var(--lp-muted); font-weight: 600; }
.form-control:focus,
.form-select:focus { border-color: var(--lp-primary); box-shadow: 0 0 0 .2rem rgba(27,58,107,.14); }

.lp-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    color: var(--lp-text);
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.lp-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(27,58,107,.35);
    color: var(--lp-text);
    box-shadow: 0 8px 22px rgba(18,41,81,.13);
}

.lp-action-card > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: .2rem; }
.lp-action-card strong { color: var(--lp-primary); font-size: 1rem; }
.lp-action-card small { color: var(--lp-muted); }
.lp-action-icon,
.lp-health-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .55rem;
    color: var(--lp-primary-dark);
    background: rgba(200,155,42,.22);
    font-size: .78rem;
    font-weight: 800;
}
.lp-action-arrow { color: var(--lp-accent); font-size: 1.4rem; }

.lp-settings-form { max-width: 980px; }
.lp-record-form { max-width: 1080px; }
.lp-record-link { color: var(--lp-primary); font-weight: 700; text-decoration: none; }
.lp-record-link:hover { text-decoration: underline; }
.lp-matter-number { padding: .18rem .42rem; border-radius: .3rem; color: var(--lp-primary); background: #e8eef7; font-size: .75rem; }
.lp-section-title { margin: 0 0 .55rem; color: var(--lp-primary); font-size: .82rem; font-weight: 750; text-transform: uppercase; }
.text-prewrap { white-space: pre-wrap; }
.lp-info-icon { display: inline-grid; width: 1.05rem; height: 1.05rem; margin-left: .35rem; place-items: center; border: 1px solid #9bb1ca; border-radius: 50%; color: #496783; background: #f2f6fa; font-size: .68rem; font-style: normal; font-weight: 800; line-height: 1; cursor: help; vertical-align: .08em; }
.lp-info-icon:hover, .lp-info-icon:focus { border-color: var(--lp-accent); color: var(--lp-primary); background: #fff8df; outline: 0; }

.lp-form-guidance {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
    padding: .72rem .8rem;
    border: 1px solid #cfdae7;
    border-left: 3px solid var(--lp-primary);
    border-radius: .5rem;
    color: #31475d;
    background: #f4f7fb;
    font-size: .78rem;
    line-height: 1.45;
}

.lp-form-guidance-copy { display: grid; min-width: 0; gap: .12rem; }
.lp-form-guidance-copy strong { color: var(--lp-primary); font-size: .8rem; }
.lp-form-guidance-copy span { color: var(--lp-muted); }
.lp-form-guidance-tooltip { flex: 0 0 1.2rem; width: 1.2rem; height: 1.2rem; margin: .05rem 0 0; padding: 0; }

.lp-form-guidance.is-compact {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    order: -1;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.lp-form-guidance.is-compact .lp-form-guidance-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.lp-form-guidance.is-compact .lp-form-guidance-tooltip { margin: 0; }
.table .lp-form-guidance.is-compact { vertical-align: middle; }

@media (max-width: 575.98px) {
    .lp-form-guidance { padding: .65rem .7rem; }
}
.lp-next-steps { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.lp-next-step { display: grid; grid-template-columns: 1.8rem 1fr auto; align-items: start; gap: .65rem; padding: .7rem 0; border-bottom: 1px solid var(--lp-border); }
.lp-next-step:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-next-step:first-child { padding-top: 0; }
.lp-next-step-number { display: inline-grid; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: 50%; color: var(--lp-primary); background: #e8eef7; font-size: .75rem; font-weight: 800; }
.lp-next-step.is-done .lp-next-step-number { color: #17623c; background: #e5f5eb; }
.lp-next-step strong { display: block; color: var(--lp-primary); font-size: .85rem; }
.lp-next-step small { display: block; margin-top: .12rem; color: var(--lp-muted); font-size: .76rem; line-height: 1.35; }
.lp-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.lp-summary-item { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.lp-summary-item span { color: var(--lp-muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.lp-summary-item strong { overflow-wrap: anywhere; color: var(--lp-primary); font-size: .9rem; }
.lp-modal-intro { color: var(--lp-muted); line-height: 1.5; }
.lp-contact-picker { position: relative; }
.lp-contact-options { display: none; }
.lp-contact-suggestions { position: absolute; z-index: 20; top: calc(100% + .25rem); right: 0; left: 0; overflow: hidden; border: 1px solid #9db5ce; border-radius: .45rem; background: #fff; box-shadow: 0 .6rem 1.4rem rgba(12, 35, 68, .16); }
.lp-contact-suggestion { display: flex; width: 100%; flex-direction: column; gap: .12rem; padding: .65rem .8rem; border: 0; border-bottom: 1px solid var(--lp-border); color: var(--lp-text); background: #fff; text-align: left; }
.lp-contact-suggestion:last-child { border-bottom: 0; }
.lp-contact-suggestion:hover, .lp-contact-suggestion:focus { color: var(--lp-primary); background: #f0f6fd; outline: 0; }
.lp-contact-suggestion strong { font-size: .88rem; }
.lp-contact-suggestion small { color: var(--lp-muted); font-size: .75rem; }
.lp-client-workspaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.lp-client-workspace { display: flex; min-height: 5.8rem; flex-direction: column; justify-content: space-between; gap: .5rem; padding: .85rem; border: 1px solid var(--lp-border); border-radius: .55rem; color: var(--lp-text); background: #fbfcfe; text-decoration: none; }
.lp-client-workspace:hover { border-color: #9bb5d0; color: var(--lp-primary); background: #f3f7fb; }
.lp-client-workspace strong { color: var(--lp-primary); font-size: .86rem; }
.lp-client-workspace small { color: var(--lp-muted); font-size: .74rem; line-height: 1.35; }
.lp-client-workspace.is-disabled { color: var(--lp-muted); background: #f5f6f7; cursor: not-allowed; opacity: .75; }

.lp-cockpit-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--lp-border);
    border-radius: .7rem;
    background: #fff;
    box-shadow: var(--lp-shadow);
}
.lp-cockpit-metrics > a {
    min-width: 0;
    padding: 1rem 1.1rem;
    border-right: 1px solid var(--lp-border);
    color: var(--lp-text);
    text-decoration: none;
}
.lp-cockpit-metrics > a:last-child { border-right: 0; }
.lp-cockpit-metrics > a:hover { background: #f4f8fc; }
.lp-cockpit-metrics span, .lp-cockpit-metrics small { display: block; }
.lp-cockpit-metrics span { color: var(--lp-muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lp-cockpit-metrics strong { display: block; overflow: hidden; margin: .2rem 0; color: var(--lp-primary); font-size: 1.25rem; text-overflow: ellipsis; white-space: nowrap; }
.lp-cockpit-metrics small { overflow: hidden; color: var(--lp-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.lp-cockpit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lp-cockpit-panel { min-width: 0; align-self: start; }
.lp-cockpit-panel.is-wide { grid-column: 1 / -1; }
.lp-cockpit-panel-header { display: flex; min-height: 3.7rem; align-items: center; gap: .75rem; justify-content: space-between; padding: .55rem .75rem .55rem 1rem; }
.lp-cockpit-toggle { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: .75rem; padding: 0; border: 0; color: var(--lp-text); background: transparent; text-align: left; }
.lp-cockpit-toggle > span:first-child { display: flex; min-width: 0; flex-direction: column; gap: .1rem; }
.lp-cockpit-toggle strong { color: var(--lp-primary); font-size: .9rem; }
.lp-cockpit-toggle small { overflow: hidden; color: var(--lp-muted); font-size: .72rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lp-cockpit-chevron { color: var(--lp-muted); font-size: 1rem; transition: transform .15s ease; }
.lp-cockpit-toggle[aria-expanded="true"] .lp-cockpit-chevron { transform: rotate(180deg); }
.lp-cockpit-list { display: flex; flex-direction: column; }
.lp-cockpit-list > a { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .75rem; padding: .78rem 1rem; border-bottom: 1px solid var(--lp-border); color: var(--lp-text); text-decoration: none; }
.lp-cockpit-list > a:hover { background: #f4f8fc; }
.lp-cockpit-list > a > span:first-child { min-width: 0; }
.lp-cockpit-list strong, .lp-cockpit-list small { display: block; }
.lp-cockpit-list strong { overflow: hidden; color: var(--lp-primary); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.lp-cockpit-list small { overflow: hidden; margin-top: .1rem; color: var(--lp-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.lp-cockpit-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--lp-muted); font-size: .7rem; }
.lp-cockpit-footer > div { display: flex; flex-wrap: wrap; gap: .8rem; }
.lp-cockpit-footer a { font-weight: 700; text-decoration: none; }
.lp-developer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lp-developer-card .card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.lp-developer-card .card-header > div { display: flex; min-width: 0; flex-direction: column; }
.lp-developer-card .card-header a { overflow: hidden; color: var(--lp-primary); font-size: 1rem; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.lp-developer-card .card-footer { color: var(--lp-muted); font-size: .72rem; }
.lp-developer-card .card-footer a { font-weight: 700; text-decoration: none; }
.lp-developer-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-bottom: .8rem; }
.lp-developer-metrics > div { min-width: 0; padding: .65rem; border: 1px solid var(--lp-border); border-radius: .45rem; background: #f8fafc; }
.lp-developer-metrics span, .lp-developer-metrics strong { display: block; }
.lp-developer-metrics span { overflow: hidden; color: var(--lp-muted); font-size: .62rem; font-weight: 750; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.lp-developer-metrics strong { margin-top: .15rem; color: var(--lp-primary); font-size: 1rem; }
.lp-cockpit-development-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem; }
.lp-cockpit-development { min-width: 0; padding: 1rem; border: 1px solid var(--lp-border); border-radius: .55rem; background: #fff; }
.lp-cockpit-development > div:first-child { display: flex; min-width: 0; flex-direction: column; gap: .1rem; margin-bottom: .8rem; }
.lp-cockpit-development a { overflow: hidden; color: var(--lp-primary); font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.lp-cockpit-development small { color: var(--lp-muted); font-size: .7rem; }

@media (max-width: 991.98px) {
    .lp-cockpit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-cockpit-metrics > a:nth-child(2) { border-right: 0; }
    .lp-cockpit-metrics > a:nth-child(-n+2) { border-bottom: 1px solid var(--lp-border); }
    .lp-cockpit-grid { grid-template-columns: 1fr; }
    .lp-cockpit-panel.is-wide { grid-column: auto; }
    .lp-developer-grid, .lp-cockpit-development-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .lp-cockpit-metrics { grid-template-columns: 1fr; }
    .lp-cockpit-metrics > a { border-right: 0; border-bottom: 1px solid var(--lp-border); }
    .lp-cockpit-metrics > a:last-child { border-bottom: 0; }
    .lp-cockpit-panel-header { align-items: flex-start; }
    .lp-cockpit-footer { align-items: flex-start; flex-direction: column; }
}

.lp-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: .4rem;
    padding: 2.5rem 1rem;
    color: var(--lp-muted);
    text-align: center;
}
.lp-empty-state strong { color: var(--lp-primary); font-size: 1rem; }
.lp-empty-state .btn { margin-top: .55rem; }

.lp-readiness-banner {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem;
    border: 1px solid #ead38d;
    border-radius: .5rem;
    color: #67501a;
    background: #fff8e3;
}
.lp-readiness-banner span { font-size: .8rem; line-height: 1.45; }
.lp-readiness-banner.verified { border-color: #9dd8b7; color: #17623c; background: #e7f7ed; }
.lp-readiness-banner.expired { border-color: #e1a5ae; color: #8b2635; background: #fcebed; }
.lp-readiness-banner.received { border-color: #9ebbd8; color: #234e78; background: #edf5fc; }

.lp-cdd-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    overflow: hidden;
    border: 1px solid var(--lp-border);
    border-radius: .6rem;
    background: #fff;
    box-shadow: var(--lp-shadow);
}
.lp-cdd-summary div { padding: .9rem 1rem; border-right: 1px solid var(--lp-border); }
.lp-cdd-summary div:last-child { border-right: 0; }
.lp-cdd-summary span { display: block; color: var(--lp-muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.lp-cdd-summary strong { display: block; margin-top: .2rem; color: var(--lp-primary); }
.lp-reference-location { max-width: 360px; overflow-wrap: anywhere; white-space: normal; }
.lp-empty-state.compact { padding: 1.25rem 1rem; }

.lp-status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .22rem .52rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.2;
}
.lp-status-pill.is-good { color: #17623c; background: #def5e8; }
.lp-status-pill.is-warning { color: #775607; background: #fff1c7; }
.lp-status-pill.is-bad { color: #8b2635; background: #fce1e5; }
.lp-status-pill.is-neutral { color: #405160; background: #e9eef2; }
.lp-status-pill.cdd-verified { color: #17623c; background: #def5e8; }
.lp-status-pill.cdd-received { color: #234e78; background: #dcebf8; }
.lp-status-pill.cdd-missing { color: #775607; background: #fff1c7; }
.lp-status-pill.cdd-expired { color: #8b2635; background: #fce1e5; }
.lp-status-pill.intake-draft { color: #405160; background: #e9eef2; }
.lp-status-pill.intake-complete { color: #234e78; background: #dcebf8; }
.lp-status-pill.intake-approved { color: #17623c; background: #def5e8; }
.lp-status-pill.intake-reopened { color: #775607; background: #fff1c7; }
.lp-status-pill.title-active,
.lp-status-pill.lot-available { color: #17623c; background: #def5e8; }
.lp-status-pill.title-pendingsplinter,
.lp-status-pill.lot-reserved { color: #775607; background: #fff1c7; }
.lp-status-pill.title-surrendered,
.lp-status-pill.lot-sold { color: #405160; background: #e9eef2; }

.lp-callout {
    padding: .75rem .85rem;
    border-left: 3px solid var(--lp-primary);
    border-radius: .25rem;
    color: #42505d;
    background: #edf3fa;
    font-size: .8rem;
}
.lp-callout-warning { border-left-color: #b78209; background: #fff6dc; }
.lp-callout-danger { border-left-color: #a33445; background: #fcecef; }

.lp-health-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 150px;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 1.6rem 1.8rem;
    border-radius: .8rem;
    color: #fff;
    background: linear-gradient(118deg, var(--lp-primary-dark), var(--lp-primary));
    box-shadow: var(--lp-shadow);
}
.lp-health-hero.has-warning { background: linear-gradient(118deg, #493813, #85630d); }
.lp-health-kicker { color: rgba(255,255,255,.7); font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lp-health-hero h2 { margin: .35rem 0 .2rem; font-size: 1.45rem; }
.lp-health-hero p { margin: 0; color: rgba(255,255,255,.72); }
.lp-health-orb {
    position: relative;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.lp-health-orb::before,
.lp-health-orb::after {
    position: absolute;
    content: "";
    inset: 12px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
}
.lp-health-orb::after { inset: 24px; background: #61d394; border: 0; box-shadow: 0 0 0 7px rgba(97,211,148,.15); }
.lp-health-hero.has-warning .lp-health-orb::after { background: #ffd166; box-shadow: 0 0 0 7px rgba(255,209,102,.15); }

.lp-health-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 175px;
    padding: 1rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
}
.lp-health-card-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .85rem; }
.lp-health-card strong { color: var(--lp-muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.lp-health-card > span { margin-top: .25rem; color: var(--lp-primary); font-size: 1.05rem; font-weight: 750; }
.lp-health-card small { margin-top: auto; padding-top: .55rem; color: var(--lp-muted); line-height: 1.35; }

.lp-detail-grid {
    display: grid;
    grid-template-columns: minmax(135px, .6fr) minmax(0, 1.4fr);
    margin: 0;
}
.lp-detail-grid dt,
.lp-detail-grid dd { margin: 0; padding: .7rem 0; border-bottom: 1px solid #edf0f2; }
.lp-detail-grid dt { color: var(--lp-muted); font-size: .77rem; font-weight: 650; }
.lp-detail-grid dd { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.lp-detail-grid dt:nth-last-of-type(1),
.lp-detail-grid dd:last-child { border-bottom: 0; }
.lp-detail-grid-compact dt,
.lp-detail-grid-compact dd { padding: .5rem 0; }

.lp-readiness-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.lp-readiness-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid #edf0f2; }
.lp-readiness-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.lp-readiness-list span { color: var(--lp-muted); }
.lp-readiness-list strong { text-align: right; font-size: .8rem; }
.lp-readiness-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto .75rem;
    align-items: center;
    gap: .7rem;
    width: 100%;
    margin: -.3rem -.45rem;
    padding: .3rem .45rem;
    border-radius: .4rem;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.lp-readiness-link:hover { background: #f3f7fb; color: var(--lp-navy); }
.lp-readiness-link:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(31, 67, 115, .2); }
.lp-readiness-link:hover span:first-child,
.lp-readiness-link:focus-visible span:first-child { color: var(--lp-navy); }
.lp-readiness-link .lp-readiness-arrow { color: #7890ab; font-size: 1.15rem; line-height: 1; text-align: right; }

.lp-description-row td { padding-top: .45rem; color: var(--lp-muted); background: #fafbfc; }
.lp-date-compact { width: 145px; }
.lp-metric-number { color: var(--lp-primary); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.lp-process-list { display: grid; gap: .65rem; margin: 0 0 1rem; padding-left: 1.2rem; }
.lp-process-list li::marker { color: var(--lp-accent); font-weight: 800; }
.lp-price-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); background: var(--lp-surface); box-shadow: var(--lp-shadow); }
.lp-price-strip div { display: grid; gap: .2rem; padding: .9rem; border-right: 1px solid var(--lp-border); }
.lp-price-strip div:last-child { border-right: 0; }
.lp-price-strip span { color: var(--lp-muted); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lp-price-strip strong { color: var(--lp-primary); font-size: 1.05rem; }
.lp-price-strip .is-total { background: #edf3fa; }
.lp-history-table { max-height: 360px; }
.lp-contract-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lp-status-pill.contract-draft { color: #405160; background: #e9eef2; }
.lp-status-pill.contract-issued { color: #234e78; background: #dcebf8; }
.lp-status-pill.contract-executed { color: #17623c; background: #def5e8; }
.lp-status-pill.contract-void { color: #8b2635; background: #fce1e5; }
.lp-contract-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; min-width: 240px; }
.lp-contract-actions form { display: flex; gap: .3rem; }

.lp-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--lp-border);
    color: var(--lp-muted);
    font-size: .72rem;
    text-align: center;
}
.lp-footer span,
.lp-auth-footer span { color: var(--lp-accent); }
.lp-auth-footer { padding: .7rem; color: rgba(255,255,255,.58); background: var(--lp-primary-dark); font-size: .72rem; text-align: center; }

.lp-auth-body {
    background:
        linear-gradient(135deg, rgba(18,41,81,.97), rgba(27,58,107,.88)),
        var(--lp-primary-dark);
}

.lp-auth-main {
    display: grid;
    min-height: calc(100vh - var(--lp-topbar-height) - 36px);
    place-items: center;
    padding: 2rem 1rem;
}

.lp-auth-card { width: min(100%, 470px); padding: 2rem; }
.lp-auth-card h1 { margin: 0 0 .4rem; color: var(--lp-primary); font-size: 1.5rem; }
.lp-auth-card p { color: var(--lp-muted); }

.lp-auth-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.lp-form-stack { display: grid; gap: 1rem; }
.lp-auth-note { margin: 1.25rem 0 0; border-top: 1px solid var(--lp-border); padding-top: 1rem; font-size: .78rem; }
.lp-otp-input { font-size: 1.45rem; font-weight: 700; letter-spacing: .35em; text-align: center; }
.lp-otp-code { font-size: 1.15rem; letter-spacing: .16em; }

.validation-summary-valid { display: none; }

.lp-board-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: .84rem; }
.lp-live-dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .35rem; border-radius: 50%; background: #20a267; box-shadow: 0 0 0 .2rem rgba(32,162,103,.13); }
.lp-kanban { display: grid; grid-template-columns: repeat(5, minmax(260px, 1fr)); gap: .85rem; overflow-x: auto; padding: .2rem .1rem 1rem; align-items: start; }
.lp-kanban-three { grid-template-columns: repeat(3, minmax(300px, 1fr)); }
.lp-kanban-column { min-height: 420px; border: 1px solid var(--lp-border); border-radius: .7rem; background: #eef2f6; transition: border-color .15s, background .15s; }
.lp-kanban-column > header { display: flex; justify-content: space-between; align-items: center; padding: .8rem .9rem; border-bottom: 1px solid var(--lp-border); color: var(--lp-primary); font-weight: 800; }
.lp-kanban-count { display: inline-grid; min-width: 1.65rem; height: 1.65rem; padding: 0 .35rem; place-items: center; border-radius: 1rem; background: white; color: var(--lp-muted); font-size: .75rem; }
.lp-kanban-lane { display: grid; gap: .65rem; padding: .65rem; }
.lp-kanban-empty { padding: 1.2rem .5rem; border: 1px dashed #b9c3cd; border-radius: .5rem; color: var(--lp-muted); font-size: .75rem; text-align: center; }
.lp-kanban-card { display: grid; gap: .3rem; padding: .8rem; border: 1px solid var(--lp-border); border-left: 3px solid var(--lp-accent); border-radius: .55rem; background: white; box-shadow: 0 2px 7px rgba(20,43,76,.06); cursor: grab; }
.lp-kanban-card:active { cursor: grabbing; }
.lp-kanban-card > a { color: var(--lp-primary); text-decoration: none; }
.lp-kanban-card > small { color: var(--lp-muted); }
.lp-kanban-card .lp-card-property { padding-top: .3rem; border-top: 1px solid #edf0f3; color: #355679; }
.lp-card-price { color: var(--lp-primary); font-weight: 800; }
.lp-kanban-card.is-dragging { opacity: .45; transform: rotate(1deg); }
.lp-kanban-column.is-dragover { border-color: var(--lp-accent); background: #fff8df; }
.lp-inventory-summary { display: flex; justify-content: flex-end; gap: 1rem; color: var(--lp-muted); font-size: .8rem; }
.lp-inventory-summary strong { color: var(--lp-primary); }

@media (max-width: 991.98px) {
    .lp-price-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-price-strip div:nth-child(3) { border-right: 0; }
    .lp-menu-button { display: inline-flex; }
    .lp-sidebar-collapse { display: none; }
    .lp-sidebar { transform: translateX(calc(-1 * var(--lp-sidebar-width))); }
    .lp-sidebar.show { transform: translateX(0); }
    .lp-main { margin-left: 0; }
    .lp-sidebar-overlay.show {
        display: block;
        position: fixed;
        inset: var(--lp-topbar-height) 0 0;
        z-index: 1020;
        background: rgba(0,0,0,.38);
    }
}

@media (max-width: 575.98px) {
    .lp-cdd-summary { grid-template-columns: 1fr; }
    .lp-cdd-summary div { border-right: 0; border-bottom: 1px solid var(--lp-border); }
    .lp-cdd-summary div:last-child { border-bottom: 0; }
    .lp-main { padding: 1rem; }
    .lp-user-summary small { display: none; }
    .lp-user-summary strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lp-auth-card { padding: 1.4rem; }
    .lp-page-header { align-items: stretch; flex-direction: column; }
    .lp-health-hero { min-height: 125px; padding: 1.2rem; }
    .lp-health-orb { display: none; }
    .lp-health-hero h2 { font-size: 1.2rem; }
    .lp-detail-grid { grid-template-columns: 1fr; }
    .lp-detail-grid dt { padding-bottom: .15rem; border-bottom: 0; }
    .lp-detail-grid dd { padding-top: 0; }
    .lp-summary-grid, .lp-client-workspaces { grid-template-columns: 1fr; }
}
.lp-popover-panel {
    width: min(28rem, 80vw);
    padding: 1rem;
    margin-top: .5rem;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    box-shadow: 0 .5rem 1.5rem rgba(12, 35, 68, .15);
}

.lp-page-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.lp-access-header { align-items: flex-end; }
.lp-access-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.lp-access-section-header h2 { margin: 0; color: var(--lp-primary); font-size: 1.05rem; font-weight: 780; }
.lp-access-section-header p { margin: .2rem 0 0; color: var(--lp-muted); font-size: .8rem; font-weight: 400; }
.lp-count-badge { flex: 0 0 auto; padding: .32rem .65rem; border-radius: 1rem; color: var(--lp-primary); background: #e8eef7; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.lp-user-list { display: grid; }
.lp-user-row { display: grid; grid-template-columns: minmax(225px, 2.2fr) minmax(170px, 1.45fr) minmax(135px, 1fr) minmax(100px, .75fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--lp-border); }
.lp-user-row:first-child { border-top: 0; }
.lp-user-identity { display: flex; align-items: center; min-width: 0; gap: .75rem; }
.lp-user-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 2.45rem; height: 2.45rem; border-radius: .7rem; color: var(--lp-primary-dark); background: #e8eef7; font-size: .9rem; font-weight: 800; }
.lp-user-identity-copy { display: flex; min-width: 0; flex-direction: column; gap: .12rem; }
.lp-user-identity-copy strong { overflow: hidden; color: var(--lp-primary); text-overflow: ellipsis; white-space: nowrap; }
.lp-user-identity-copy small, .lp-user-property span { color: var(--lp-muted); font-size: .75rem; }
.lp-user-identity-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-user-property { display: flex; min-width: 0; flex-direction: column; gap: .18rem; }
.lp-user-property strong { overflow-wrap: anywhere; color: var(--lp-text); font-size: .85rem; font-weight: 650; }
.lp-user-status { display: flex; align-items: flex-end; flex-direction: column; gap: .5rem; }
.lp-domain-list { display: grid; gap: .55rem; margin-bottom: 1rem; }
.lp-domain-item { display: flex; align-items: center; gap: .65rem; min-height: 3rem; padding: .65rem .75rem; border: 1px solid var(--lp-border); border-radius: .55rem; background: #fbfcfe; }
.lp-domain-item strong { flex: 1; overflow-wrap: anywhere; color: var(--lp-primary); }
.lp-domain-mark { display: inline-grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: .45rem; color: #17623c; background: #e5f5eb; font-weight: 800; }
.lp-domain-form { display: grid; gap: .35rem; }
.lp-form-note { margin-top: .85rem; color: var(--lp-muted); font-size: .75rem; line-height: 1.45; }
.lp-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.lp-permission-group strong { color: var(--lp-primary); font-size: .85rem; }
.lp-permission-group ul { margin: .35rem 0 0; padding-left: 1.05rem; color: var(--lp-muted); font-size: .78rem; }
.lp-permission-group li + li { margin-top: .2rem; }
.lp-modal-body { padding: 1.25rem 1.5rem; }
.lp-modal-intro, .lp-modal-section-note { margin: 0 0 1rem; color: var(--lp-muted); font-size: .85rem; line-height: 1.5; }
.lp-role-picker { margin: 0; padding: 0; border: 0; }
.lp-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.lp-role-option { display: flex; align-items: flex-start; gap: .6rem; min-height: 4.25rem; padding: .7rem .75rem; border: 1px solid var(--lp-border); border-radius: .55rem; background: #fbfcfe; cursor: pointer; }
.lp-role-option:has(input:checked) { border-color: #8cadd0; background: #f0f6fd; }
.lp-role-option > span { display: flex; flex-direction: column; gap: .16rem; }
.lp-role-option strong { color: var(--lp-primary); font-size: .86rem; }
.lp-role-option small { color: var(--lp-muted); font-size: .74rem; line-height: 1.35; }
.lp-modal-section h3 { margin: 0 0 .2rem; color: var(--lp-primary); font-size: .95rem; font-weight: 750; }
.lp-modal-section-note { margin-bottom: .8rem; }
.lp-status-form { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(230px, 1.4fr) auto; align-items: end; gap: .75rem; }
.lp-status-form .form-label { margin-bottom: .3rem; }

@media (max-width: 1199.98px) {
    .lp-user-row { grid-template-columns: minmax(240px, 1.8fr) minmax(160px, 1.2fr) minmax(120px, 1fr) auto; }
    .lp-user-row .lp-user-property:nth-of-type(3) { display: none; }
}

@media (max-width: 767.98px) {
    .lp-access-header { align-items: stretch; }
    .lp-page-header-actions .btn { flex: 1; }
    .lp-user-row { grid-template-columns: 1fr auto; gap: .75rem; }
    .lp-user-property { display: none; }
    .lp-user-status { align-items: flex-end; }
    .lp-permission-grid, .lp-role-grid { grid-template-columns: 1fr; }
    .lp-modal-body { padding: 1rem; }
    .lp-status-form { grid-template-columns: 1fr; align-items: stretch; }
    .lp-status-form button { width: 100%; }
}

.lp-page-heading-icon {
    display: inline-grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border-radius: .55rem;
    color: var(--lp-primary);
    background: #e8eef7;
}

.lp-page-heading-icon .lp-nav-icon { width: 1.35rem; height: 1.35rem; }

.lp-conveyancing-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
}

.lp-conveyancing-metric {
    display: grid;
    gap: .15rem;
    min-height: 112px;
    padding: 1.15rem 1.25rem;
    border-right: 1px solid var(--lp-border);
    color: var(--lp-text);
    text-decoration: none;
}

.lp-conveyancing-metric:last-child { border-right: 0; }
.lp-conveyancing-metric:hover { color: var(--lp-text); background: #f8fafc; text-decoration: none; }
.lp-conveyancing-metric > span { color: var(--lp-muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.lp-conveyancing-metric strong { color: var(--lp-primary); font-size: 1.75rem; line-height: 1.1; }
.lp-conveyancing-metric small { color: var(--lp-muted); }
.lp-conveyancing-metric.is-available { background: #f0f8f4; }
.lp-conveyancing-metric.is-available strong { color: #14764a; }
.lp-conveyancing-section { margin-bottom: 1rem; }

.lp-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lp-section-heading > div { display: grid; gap: .12rem; }
.lp-section-heading strong { color: var(--lp-primary); font-size: 1rem; }
.lp-section-heading small { color: var(--lp-muted); font-weight: 400; }
.lp-section-heading > a { font-size: .78rem; font-weight: 700; text-decoration: none; }
.lp-section-heading-plain { padding: .25rem .15rem .8rem; }

.lp-conveyance-table td small {
    display: block;
    max-width: 26rem;
    margin-top: .15rem;
    color: var(--lp-muted);
    font-size: .72rem;
}

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

.lp-development-card { overflow: hidden; }
.lp-development-card .card-header,
.lp-development-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lp-development-card .card-header > div { display: flex; align-items: baseline; gap: .55rem; min-width: 0; }
.lp-development-card .card-header a { overflow: hidden; color: var(--lp-primary); font-size: 1rem; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.lp-development-code { color: var(--lp-accent); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.lp-development-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 0 0 1rem;
}

.lp-development-meta div { min-width: 0; }
.lp-development-meta dt { margin-bottom: .12rem; color: var(--lp-muted); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.lp-development-meta dd { margin: 0; overflow: hidden; font-size: .78rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.lp-inventory-line { display: block; width: 100%; height: .55rem; overflow: hidden; border: 0; border-radius: 2rem; background: #d8dee6; appearance: none; }
.lp-inventory-line::-webkit-progress-bar { border-radius: inherit; background: #d8dee6; }
.lp-inventory-line::-webkit-progress-value { border-radius: inherit; background: #198754; }
.lp-inventory-line::-moz-progress-bar { border-radius: inherit; background: #198754; }
.lp-development-counts { display: flex; gap: 1rem; margin-top: .55rem; color: var(--lp-muted); font-size: .72rem; }
.lp-development-counts strong { color: var(--lp-primary); }
.lp-development-card .card-footer { color: var(--lp-muted); font-size: .72rem; }
.lp-development-card .card-footer a { font-weight: 700; text-decoration: none; }

.lp-register-search {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(12rem, .35fr) auto;
    gap: .75rem;
    align-items: end;
    padding: 1rem;
    border-bottom: 1px solid var(--lp-border);
    background: #f8fafc;
}

@media (max-width: 1199.98px) {
    .lp-development-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .lp-conveyancing-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-conveyancing-metric:nth-child(2) { border-right: 0; }
    .lp-conveyancing-metric:nth-child(-n+2) { border-bottom: 1px solid var(--lp-border); }
}

@media (max-width: 575.98px) {
    .lp-conveyancing-metric { min-height: 96px; padding: .85rem; }
    .lp-conveyancing-metric strong { font-size: 1.4rem; }
    .lp-register-search { grid-template-columns: 1fr; }
    .lp-register-search .btn { width: 100%; }
    .lp-development-meta { grid-template-columns: 1fr 1fr; }
    .lp-development-meta div:first-child { grid-column: 1 / -1; }
    .lp-development-card .card-footer { align-items: flex-start; flex-direction: column; }
}

.lp-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
    align-items: end;
}

.lp-filter-grid .lp-filter-wide { grid-column: span 2; }
.lp-filter-actions { display: flex; gap: .5rem; align-items: end; }
.lp-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.lp-stat-card { padding: 1rem; border: 1px solid var(--lp-border); border-radius: .65rem; background: #fff; }
.lp-stat-card span { display: block; color: var(--lp-muted); font-size: .7rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.lp-stat-card strong { display: block; margin-top: .2rem; color: var(--lp-primary); font-size: 1.4rem; }
.lp-document-name { color: var(--lp-primary); font-weight: 750; text-decoration: none; }
.lp-document-name:hover { text-decoration: underline; }
.lp-status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .22rem .58rem; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.lp-status-current { background: #dff3e7; color: #12663a; }
.lp-status-outstanding { background: #fee7e9; color: #a51d2d; }
.lp-status-pending { background: #fff0c7; color: #785500; }
.lp-status-draft { background: #e8edf3; color: #344454; }
.lp-status-setup { background: #e8e5fa; color: #4a3a8f; }
.lp-report-choice { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; padding: .8rem; border: 1px solid var(--lp-border); border-radius: .55rem; }
.lp-report-choice strong, .lp-report-choice small { display: block; }
.lp-report-choice small { margin-top: .15rem; color: var(--lp-muted); }

.lp-document-filter,
.lp-billing-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
    align-items: end;
    padding: 1rem;
}

.lp-billing-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--lp-border);
    border-radius: .7rem;
    background: #fff;
    box-shadow: var(--lp-shadow);
}

.lp-billing-metrics > div { min-height: 104px; padding: 1rem; border-right: 1px solid var(--lp-border); }
.lp-billing-metrics > div:last-child { border-right: 0; }
.lp-billing-metrics > div.has-attention { background: #fff8f4; }
.lp-billing-metrics span, .lp-billing-metrics small { display: block; }
.lp-billing-metrics span { color: var(--lp-muted); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.lp-billing-metrics strong { display: block; margin: .2rem 0; color: var(--lp-primary); font-size: 1.35rem; }
.lp-billing-metrics small { color: var(--lp-muted); font-size: .7rem; }
.lp-document-table td small, .lp-billing-table td small { display: block; margin-top: .18rem; color: var(--lp-muted); font-size: .72rem; }
.lp-linked-entities { display: block; max-width: 30rem; white-space: normal; }
.lp-report-list { display: grid; gap: .7rem; padding: 1rem; }
.lp-report-choice { width: 100%; color: inherit; text-align: left; background: #fff; cursor: pointer; }
.lp-report-choice:hover, .lp-report-choice.is-selected { border-color: var(--lp-primary); background: #f1f6fc; box-shadow: 0 0 0 1px var(--lp-primary); }

@media (max-width: 991.98px) {
    .lp-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-document-filter, .lp-billing-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-billing-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-billing-metrics > div:nth-child(2) { border-right: 0; }
    .lp-billing-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--lp-border); }
}

@media (max-width: 575.98px) {
    .lp-filter-grid, .lp-stat-grid { grid-template-columns: 1fr; }
    .lp-document-filter, .lp-billing-filter, .lp-billing-metrics { grid-template-columns: 1fr; }
    .lp-billing-metrics > div { border-right: 0; border-bottom: 1px solid var(--lp-border); }
    .lp-billing-metrics > div:last-child { border-bottom: 0; }
    .lp-filter-grid .lp-filter-wide { grid-column: auto; }
    .lp-filter-actions { align-items: stretch; flex-direction: column; }
}
