:root {
    --lh-demo-blue: #2458a6;
    --lh-demo-blue-soft: #edf4ff;
    --lh-demo-text: #172033;
    --lh-demo-muted: #5f6c7f;
    --lh-demo-border: #e2e7ed;
    --lh-demo-sidebar: #fbfcfe;
    --lh-demo-green: #16805b;
    --lh-demo-green-ring: #9ed8c3;
    --lh-demo-amber: #a16207;
}

/* Demo routes navigate as complete documents. Cross-document view transitions
   blend unrelated workspace screens and make a visible double image. */

.lh-demo-app {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    background: #fff;
    color: var(--lh-demo-text);
    overflow: hidden;
}

.lh-demo-app.is-embedded {
    min-height: 780px;
}

.lh-demo-app__main {
    min-width: 0;
    min-height: 100vh;
    background: #fff;
}

.lh-demo-app__content {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 28px 32px 42px;
}

/* -------------------------------------------------------------------------- */
/* Sidebar                                                                     */
/* -------------------------------------------------------------------------- */
.lh-demo-sidebar {
    position: relative;
    z-index: 20;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px 12px 14px;
    border-right: 1px solid var(--lh-demo-border);
    background: var(--lh-demo-sidebar);
}

.lh-demo-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 8px 14px;
    border-bottom: 1px solid #edf0f4;
}

.lh-demo-sidebar__mark {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--lh-demo-blue);
}

.lh-demo-sidebar__brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lh-demo-sidebar__brand-copy strong {
    color: var(--lh-demo-text);
    font-size: 13px;
    line-height: 16px;
    font-weight: 800;
}

.lh-demo-sidebar__brand-copy span {
    color: #68758a;
    font-size: 10px;
    line-height: 14px;
    font-weight: 600;
}

.lh-demo-sidebar__access-key {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 12px 6px 3px;
    color: #64748b;
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-sidebar__access-swatch {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border: 1.5px solid var(--lh-demo-green-ring);
    border-radius: 4px;
    background: #fff;
}

.lh-demo-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 6px;
}

.lh-demo-sidebar__section-label {
    margin: 13px 9px 4px;
    color: #8995a6;
    font-size: 9px;
    line-height: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lh-demo-sidebar__link {
    width: 100%;
    min-height: 37px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #526076;
    font: inherit;
    font-size: 11px;
    line-height: 15px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.lh-demo-sidebar__link svg,
.lh-demo-sidebar__mini-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.lh-demo-sidebar__mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 10px;
    font-weight: 800;
}

.lh-demo-sidebar__link:hover {
    background: #f2f5f8;
    color: #26364e;
}

.lh-demo-sidebar__link.is-demo-access {
    border-color: var(--lh-demo-green-ring);
    background: #fff;
}

.lh-demo-sidebar__link.is-demo-access:hover {
    border-color: #72c4a5;
    background: #f8fcfa;
}

.lh-demo-sidebar__link.is-demo-access.is-active {
    border-color: #79b99f;
    background: var(--lh-demo-blue-soft);
    color: var(--lh-demo-blue);
    box-shadow: inset 3px 0 0 var(--lh-demo-green);
}

.lh-demo-sidebar__count {
    min-width: 20px;
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 999px;
    background: #dce9fb;
    color: var(--lh-demo-blue);
    font-size: 9px;
    line-height: 15px;
    text-align: center;
}

.lh-demo-sidebar__bottom {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf0f4;
}

.lh-demo-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 5px;
    padding: 9px 8px 2px;
}

.lh-demo-sidebar__avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dee7;
    border-radius: 999px;
    background: #fff;
    color: #4b5d73;
    font-size: 10px;
    font-weight: 800;
}

.lh-demo-sidebar__profile > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lh-demo-sidebar__profile strong {
    color: #334155;
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-sidebar__profile span:not(.lh-demo-sidebar__avatar) {
    color: #8290a2;
    font-size: 9px;
    line-height: 13px;
}

/* -------------------------------------------------------------------------- */
/* Top bar                                                                     */
/* -------------------------------------------------------------------------- */
.lh-demo-topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 20px;
    border-bottom: 1px solid var(--lh-demo-border);
    background: rgba(255, 255, 255, .98);
}

.lh-demo-topbar__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-topbar__identity strong {
    color: #334155;
    font-size: 11px;
}

.lh-demo-topbar__sample-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--lh-demo-green);
}

.lh-demo-topbar__actions,
.lh-demo-topbar__form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.lh-demo-topbar__button,
.lh-demo-topbar__icon-button,
.lh-demo-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 10px;
    line-height: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.lh-demo-topbar__button,
.lh-demo-button {
    padding: 0 11px;
}

.lh-demo-topbar__button svg,
.lh-demo-button svg {
    width: 14px;
    height: 14px;
}

.lh-demo-topbar__icon-button {
    width: 34px;
    padding: 0;
}

.lh-demo-topbar__icon-button svg {
    width: 15px;
    height: 15px;
}

.lh-demo-topbar__button:hover,
.lh-demo-topbar__icon-button:hover,
.lh-demo-button:hover {
    border-color: #aeb9c8;
    background: #f8fafc;
    color: #172033;
}

.lh-demo-topbar__button.is-primary,
.lh-demo-button.is-primary {
    border-color: var(--lh-demo-blue);
    background: var(--lh-demo-blue);
    color: #fff;
}

.lh-demo-topbar__button.is-secondary {
    border-color: transparent;
    background: transparent;
    color: #526076;
}

.lh-demo-topbar__button.is-secondary:hover {
    border-color: #d8dee7;
    background: #f8fafc;
    color: #26364e;
}

.lh-demo-topbar__button.is-primary:hover,
.lh-demo-button.is-primary:hover {
    border-color: #1e4c91;
    background: #1e4c91;
    color: #fff;
}

.lh-demo-button.is-large {
    min-height: 40px;
    padding: 0 15px;
    font-size: 11px;
}

.lh-demo-jump {
    position: relative;
}

.lh-demo-jump__menu,
.lh-demo-export__menu {
    position: absolute;
    z-index: 70;
    top: calc(100% + 7px);
    right: 0;
    width: 235px;
    padding: 5px;
    border: 1px solid #d7dee7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 36px -26px rgba(15, 23, 42, .65);
}

.lh-demo-jump__menu a {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 9px;
    border-radius: 5px;
    color: #334155;
    text-decoration: none;
}

.lh-demo-jump__menu a:hover,
.lh-demo-jump__menu a:focus-visible {
    background: #f5f7fa;
    outline: none;
}

.lh-demo-jump__menu strong {
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-jump__menu span {
    color: #7b8798;
    font-size: 9px;
    line-height: 13px;
}

.lh-demo-mobile-nav {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* Page structure                                                              */
/* -------------------------------------------------------------------------- */
.lh-demo-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.lh-demo-page-head > div:first-child {
    max-width: 760px;
}

.lh-demo-page-head__eyebrow {
    margin: 0 0 5px;
    color: var(--lh-demo-blue);
    font-size: 9px;
    line-height: 13px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.lh-demo-page-head h1 {
    margin: 0;
    color: var(--lh-demo-text);
    font-size: clamp(23px, 2.4vw, 31px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.025em;
}

.lh-demo-page-head p:not(.lh-demo-page-head__eyebrow) {
    max-width: 700px;
    margin: 7px 0 0;
    color: var(--lh-demo-muted);
    font-size: 12px;
    line-height: 18px;
}

.lh-demo-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}

.lh-demo-section-head h2 {
    margin: 0;
    color: #25344a;
    font-size: 13px;
    line-height: 18px;
    font-weight: 800;
}

.lh-demo-section-head p {
    margin: 2px 0 0;
    color: #718096;
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-section-head > a,
.lh-demo-dashboard-next > a,
.lh-demo-guidance-banner > a {
    color: var(--lh-demo-blue);
    font-size: 10px;
    line-height: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.lh-demo-section-head > a:hover,
.lh-demo-dashboard-next > a:hover,
.lh-demo-guidance-banner > a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Upload                                                                      */
/* -------------------------------------------------------------------------- */
.lh-demo-upload-batch {
    border-top: 1px solid var(--lh-demo-border);
    border-bottom: 1px solid var(--lh-demo-border);
}

.lh-demo-upload-batch__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0 13px;
}

.lh-demo-upload-batch__head h2,
.lh-demo-own-upload h2,
.lh-demo-upload-complete h2 {
    margin: 0;
    color: #25344a;
    font-size: 14px;
    line-height: 19px;
    font-weight: 800;
}

.lh-demo-upload-batch__head p,
.lh-demo-own-upload p,
.lh-demo-upload-complete p {
    margin: 3px 0 0;
    color: #68758a;
    font-size: 10px;
    line-height: 15px;
}

.lh-demo-upload-batch__kicker {
    margin-bottom: 3px;
    color: var(--lh-demo-green);
    font-size: 9px;
    line-height: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lh-demo-upload-batch__count {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid #d8e2df;
    border-radius: 999px;
    background: #f8fcfa;
    color: #366c59;
    font-size: 9px;
    line-height: 14px;
    font-weight: 800;
}

.lh-demo-upload-cards,
.lh-demo-processing-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 15px;
}

.lh-demo-upload-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
}

.lh-demo-upload-card__icon,
.lh-demo-own-upload__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce4ed;
    border-radius: 7px;
    background: #f8fafc;
    color: #526076;
}

.lh-demo-upload-card__icon svg,
.lh-demo-own-upload__icon svg {
    width: 17px;
    height: 17px;
}

.lh-demo-upload-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lh-demo-upload-card__scenario {
    color: #7a8798;
    font-size: 8px;
    line-height: 12px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.lh-demo-upload-card__body strong {
    overflow: hidden;
    color: #25344a;
    font-size: 11px;
    line-height: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lh-demo-upload-card__filename {
    overflow: hidden;
    color: #536176;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    line-height: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lh-demo-upload-card__body small {
    margin-top: 2px;
    color: #7a8798;
    font-size: 9px;
    line-height: 13px;
}

.lh-demo-upload-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: #8995a6;
    font-size: 8px;
}

.lh-demo-ready-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #237154;
    font-weight: 800;
}

.lh-demo-ready-pill i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #34a577;
}

.lh-demo-upload-card.is-processed {
    background: #fbfcfd;
}

.lh-demo-ready-pill.is-processed {
    color: #365f8f;
}

.lh-demo-ready-pill.is-processed i {
    background: #5f87b8;
}

.lh-demo-upload-batch__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px 0;
    border-top: 1px solid #edf0f4;
}

.lh-demo-upload-batch__action > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lh-demo-upload-batch__action strong {
    color: #334155;
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-upload-batch__action span {
    color: #7a8798;
    font-size: 9px;
    line-height: 13px;
}

.lh-demo-upload-complete,
.lh-demo-own-upload,
.lh-demo-dashboard-next,
.lh-demo-guidance-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 15px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
}

.lh-demo-upload-complete__check,
.lh-demo-processing-complete__check {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a9dcc7;
    border-radius: 999px;
    background: #f3fbf7;
    color: var(--lh-demo-green);
    font-size: 14px;
    font-weight: 900;
}

.lh-demo-upload-complete {
    justify-content: flex-start;
}

.lh-demo-upload-complete > div:nth-child(2) {
    flex: 1 1 auto;
}

.lh-demo-own-upload {
    align-items: stretch;
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
}

.lh-demo-own-upload__copy {
    flex: 1 1 46%;
    padding: 18px;
}

.lh-demo-own-upload__drop {
    flex: 1 1 54%;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 18px;
    border-left: 1px dashed #cbd5e1;
    background: #fbfcfe;
    color: #475569;
    text-align: center;
    cursor: pointer;
}

.lh-demo-own-upload__drop:hover,
.lh-demo-own-upload__drop.is-dragover {
    background: #f6f9fd;
    border-color: #9eb4cf;
}

.lh-demo-own-upload__drop strong {
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-own-upload__drop > span:last-child {
    color: #718096;
    font-size: 9px;
    line-height: 13px;
}

.lh-demo-existing-history {
    margin-top: 24px;
}

.lh-demo-history-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.lh-demo-history-card {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-top: 1px solid #e6ebf0;
    border-bottom: 1px solid #e6ebf0;
    color: #334155;
    text-decoration: none;
}

.lh-demo-history-card:hover {
    background: #fbfcfe;
}

.lh-demo-history-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lh-demo-history-card > div:last-child {
    align-items: flex-end;
    text-align: right;
}

.lh-demo-history-card span {
    color: #7a8798;
    font-size: 9px;
    line-height: 13px;
}

.lh-demo-history-card strong {
    color: #334155;
    font-size: 10px;
    line-height: 14px;
}

/* -------------------------------------------------------------------------- */
/* Processing                                                                  */
/* -------------------------------------------------------------------------- */
.lh-demo-page-head--processing {
    align-items: center;
}

.lh-demo-processing-counter {
    flex: 0 0 auto;
    color: #526076;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.lh-demo-processing__track {
    height: 4px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.lh-demo-processing__track > div {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--lh-demo-blue);
    transition: width 280ms ease;
}

.lh-demo-processing-card {
    min-width: 0;
    display: flex;
    gap: 11px;
    padding: 13px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.lh-demo-processing-card.is-active {
    border-color: #b6c9e3;
    background: #fcfdff;
}

.lh-demo-processing-card.is-complete {
    border-color: #cfe4da;
}

.lh-demo-processing-card__status-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3eb;
    border-radius: 999px;
    background: #fafbfd;
    color: var(--lh-demo-blue);
}

.lh-demo-processing-card.is-complete .lh-demo-processing-card__status-icon {
    border-color: #afe0cc;
    background: #f4fbf8;
    color: var(--lh-demo-green);
}

.lh-demo-spinner {
    width: 12px;
    height: 12px;
    border: 1.7px solid #c9d4e1;
    border-top-color: var(--lh-demo-blue);
    border-radius: 999px;
    animation: lhDemoSpin .8s linear infinite;
}

@keyframes lhDemoSpin { to { transform: rotate(360deg); } }

.lh-demo-processing-card__main {
    min-width: 0;
    flex: 1 1 auto;
}

.lh-demo-processing-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.lh-demo-processing-card__top > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lh-demo-processing-card__top strong {
    color: #2d3c52;
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-processing-card__top > div > span {
    overflow: hidden;
    color: #7a8798;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 8.5px;
    line-height: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lh-demo-processing-card__state {
    flex: 0 0 auto;
    color: #6b7789;
    font-size: 9px;
    line-height: 13px;
    font-weight: 800;
}

.lh-demo-processing-card__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 9px;
}

.lh-demo-processing-card__steps span {
    position: relative;
    padding-left: 12px;
    color: #9aa5b4;
    font-size: 8.5px;
    line-height: 12px;
    font-weight: 700;
}

.lh-demo-processing-card__steps span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 6px;
    height: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
}

.lh-demo-processing-card__steps span.is-active {
    color: #41536b;
}

.lh-demo-processing-card__steps span.is-active::before {
    border-color: #8ba9cf;
    background: #dfeafa;
}

.lh-demo-processing-card__steps span.is-complete {
    color: #547263;
}

.lh-demo-processing-card__steps span.is-complete::before {
    border-color: #87c8aa;
    background: #49a87e;
}

.lh-demo-processing-card__result {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #edf0f4;
    color: #334155;
    font-size: 9px;
    line-height: 13px;
    font-weight: 800;
}

.lh-demo-processing-complete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid #bfe1d2;
    border-radius: 8px;
    background: #fbfefc;
}

.lh-demo-processing-complete > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lh-demo-processing-complete > div > div {
    display: flex;
    flex-direction: column;
}

.lh-demo-processing-complete strong {
    color: #2f4e40;
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-processing-complete span:not(.lh-demo-processing-complete__check) {
    color: #65786f;
    font-size: 9px;
    line-height: 13px;
}

/* -------------------------------------------------------------------------- */
/* Invoice history / dashboard                                                 */
/* -------------------------------------------------------------------------- */
.lh-demo-ready-summary {
    min-width: 122px;
    padding-left: 18px;
    border-left: 1px solid #e4e9ef;
}

.lh-demo-ready-summary span {
    display: block;
    color: #718096;
    font-size: 9px;
    font-weight: 700;
}

.lh-demo-ready-summary strong {
    display: block;
    margin-top: 2px;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
}

.lh-demo-guidance-banner {
    margin-bottom: 14px;
    border-color: #e8cf73;
    background: #fffdf6;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, .06);
}

.lh-demo-guidance-banner.is-complete {
    border-color: #bfe1d2;
    background: #fbfefc;
    box-shadow: none;
}

.lh-demo-guidance-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lh-demo-guidance-banner__actions button {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #b7c9df;
    border-radius: 6px;
    background: #fff;
    color: var(--lh-demo-blue);
    font: inherit;
    font-size: 9px;
    line-height: 13px;
    font-weight: 800;
    cursor: pointer;
}

.lh-demo-guidance-banner__actions button:hover {
    border-color: #91abd0;
    background: #f6f9fd;
}

.lh-demo-guidance-banner__actions a {
    color: var(--lh-demo-blue);
    font-size: 10px;
    line-height: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.lh-demo-guidance-banner > div,
.lh-demo-dashboard-next > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lh-demo-guidance-banner strong,
.lh-demo-dashboard-next strong {
    color: #3b4657;
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-guidance-banner span,
.lh-demo-dashboard-next span {
    margin-top: 1px;
    color: #6f7b8d;
    font-size: 9px;
    line-height: 13px;
}

.lh-demo-invoice-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
}

.lh-demo-search {
    width: min(360px, 100%);
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid #cfd7e1;
    border-radius: 6px;
    background: #fff;
}

.lh-demo-search svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: #8490a0;
}

.lh-demo-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: 10px;
}

.lh-demo-invoice-toolbar__right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.lh-demo-sort-label {
    color: #8995a6;
    font-size: 9px;
    font-weight: 700;
}

.lh-demo-sort-value {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #d8dee7;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 9px;
    font-weight: 800;
}

.lh-demo-export {
    position: relative;
}

.lh-demo-export__menu {
    width: 215px;
}

.lh-demo-export__menu button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 8px 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.lh-demo-export__menu button:hover,
.lh-demo-export__menu button:focus-visible {
    background: #f5f7fa;
    outline: 0;
}

.lh-demo-export__menu small {
    color: #8490a0;
    font-size: 8px;
    font-weight: 700;
}

.lh-demo-selection-bar {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
    padding: 7px 9px 7px 12px;
    border: 1px solid #cfdceb;
    border-radius: 7px;
    background: #f8fbff;
}

.lh-demo-selection-bar[hidden] {
    display: none;
}

.lh-demo-selection-bar__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lh-demo-selection-bar__copy strong {
    color: #334155;
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-selection-bar__copy span {
    color: #718096;
    font-size: 9px;
    line-height: 13px;
}

.lh-demo-queue-section {
    margin-top: 24px;
}

.lh-demo-queue-section--all {
    margin-top: 0;
}

.lh-demo-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid #dfe5ec;
    border-bottom: 1px solid #dfe5ec;
}

.lh-demo-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    table-layout: auto;
}

.lh-demo-table th {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e9ef;
    color: #718096;
    font-size: 9px;
    line-height: 12px;
    font-weight: 800;
    letter-spacing: .035em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.lh-demo-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #edf0f4;
    color: #445166;
    font-size: 10px;
    line-height: 14px;
    vertical-align: middle;
}

.lh-demo-table tbody tr:last-child td {
    border-bottom: 0;
}

.lh-demo-table tbody tr:not(.lh-demo-table__empty):hover {
    background: #fbfcfe;
}

.lh-demo-table tbody tr.is-guided {
    position: relative;
    background: #fffdf7;
    box-shadow: inset 3px 0 0 #d5a516, inset 0 0 0 1px rgba(213, 165, 22, .3);
}

.lh-demo-table tbody tr.is-guided:hover {
    background: #fffaf0;
}

.lh-demo-table tbody tr.is-historical:not(.is-guided) {
    background: #fdfefe;
}

.lh-demo-table__primary {
    color: #25344a;
    font-weight: 700;
}

.lh-demo-table__secondary,
.lh-demo-table__muted {
    margin-top: 1px;
    color: #7a8798;
    font-size: 9px;
}

.lh-demo-table__secondary.lh-demo-table__amount {
    color: #9f1239;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
}

.lh-demo-history-label {
    display: inline-block;
    margin-left: 6px;
    color: #8a96a6;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.lh-demo-table__money {
    text-align: right !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lh-demo-table__action {
    text-align: right !important;
}

.lh-demo-table__select {
    width: 38px;
    text-align: center !important;
    white-space: nowrap;
}

.lh-demo-table__select input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--lh-demo-blue);
    cursor: pointer;
}

.lh-demo-table__select span {
    color: #c4ccd6;
}

.lh-demo-table__action a {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 11px;
    border: 1px solid #b9cce6;
    border-radius: 6px;
    background: #f8fbff;
    color: var(--lh-demo-blue);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.lh-demo-table__action a:hover {
    border-color: #8faed6;
    background: #eef5ff;
}

.lh-demo-table__empty td {
    padding: 24px 12px;
    color: #7a8798;
    text-align: center;
}

.lh-demo-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 9px;
    line-height: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.lh-demo-status--rose {
    border-color: #fecdd3;
    background: #fff7f7;
    color: #9f1239;
}

.lh-demo-status--amber {
    border-color: #fde3a7;
    background: #fffbeb;
    color: #92400e;
}

.lh-demo-status--emerald {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.lh-demo-status--slate {
    border-color: #dce2e9;
    background: #f8fafc;
    color: #526076;
}

.lh-demo-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #e7ebf0;
    border-bottom: 1px solid #e7ebf0;
}

.lh-demo-metric {
    min-width: 0;
    padding: 16px 18px 15px 0;
}

.lh-demo-metric + .lh-demo-metric {
    padding-left: 18px;
    border-left: 1px solid #edf0f4;
}

.lh-demo-metric > span {
    display: block;
    color: #64748b;
    font-size: 10px;
    line-height: 13px;
    font-weight: 700;
}

.lh-demo-metric strong {
    display: block;
    margin-top: 4px;
    color: #172033;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 20px;
    line-height: 25px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.lh-demo-metric small {
    display: block;
    margin-top: 3px;
    color: #7a8798;
    font-size: 9px;
    line-height: 13px;
}

.lh-demo-dashboard-next {
    margin-top: 18px;
}

/* -------------------------------------------------------------------------- */
/* Demo-only modals                                                            */
/* -------------------------------------------------------------------------- */
.lh-demo-modal {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.lh-demo-modal[aria-hidden="false"] {
    display: flex;
}

.lh-demo-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(15, 23, 42, .34);
    cursor: default;
}

.lh-demo-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    padding: 24px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px -36px rgba(15, 23, 42, .62);
}

.lh-demo-modal__dialog h2 {
    margin: 0;
    color: #172033;
    font-size: 20px;
    line-height: 26px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.lh-demo-modal__dialog > p:not(.lh-demo-page-head__eyebrow) {
    margin: 8px 0 0;
    color: #5f6c7f;
    font-size: 11px;
    line-height: 17px;
}

.lh-demo-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
}

.lh-demo-modal__close:hover {
    background: #f1f5f9;
    color: #172033;
}

.lh-demo-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.lh-demo-modal__continue {
    margin-top: 11px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.lh-demo-modal__continue:hover {
    color: #334155;
    text-decoration: underline;
}

body.lh-demo-modal-open {
    overflow: hidden;
}

.lh-demo-app__content--invoice {
    width: 100%;
    max-width: none;
    padding-top: 16px;
}

.lh-demo-invoice-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 4px;
    padding: 0 2px 9px;
    border-bottom: 1px solid #edf0f4;
    color: #718096;
    font-size: 9px;
    line-height: 13px;
    font-weight: 700;
}

.lh-demo-invoice-context a {
    color: var(--lh-demo-blue);
    font-weight: 800;
    text-decoration: none;
}

.lh-demo-invoice-context a:hover {
    text-decoration: underline;
}

.lh-demo-app :is(a, button, input, label[for]):focus-visible,
.lh-demo-modal :is(a, button):focus-visible {
    outline: 2px solid rgba(36, 88, 166, .45);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .lh-demo-spinner { animation-duration: 1.4s; }
    .lh-demo-processing__track > div { transition-duration: 80ms; }
}

/* Production-like rail between tablet and full desktop widths. */
@media (max-width: 1180px) and (min-width: 761px) {
    .lh-demo-app { grid-template-columns: 72px minmax(0, 1fr); }
    .lh-demo-sidebar { padding-inline: 9px; }
    .lh-demo-sidebar__brand { justify-content: center; padding-inline: 0; }
    .lh-demo-sidebar__brand-copy,
    .lh-demo-sidebar__access-key,
    .lh-demo-sidebar__section-label,
    .lh-demo-sidebar__link > span:not(.lh-demo-sidebar__mini-icon),
    .lh-demo-sidebar__count,
    .lh-demo-sidebar__profile > div { display: none; }
    .lh-demo-sidebar__link { justify-content: center; padding-inline: 0; }
    .lh-demo-sidebar__profile { justify-content: center; padding-inline: 0; }
    .lh-demo-app__content { padding-inline: 24px; }
}

@media (max-width: 900px) {
    .lh-demo-upload-cards,
    .lh-demo-processing-cards,
    .lh-demo-history-cards { grid-template-columns: 1fr; }

    .lh-demo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lh-demo-metric:nth-child(3) { border-left: 0; border-top: 1px solid #edf0f4; }
    .lh-demo-metric:nth-child(4) { border-top: 1px solid #edf0f4; }
}

@media (max-width: 760px) {
    .lh-demo-app { display: block; min-height: 100vh; }
    .lh-demo-app.is-embedded { min-height: 720px; }
    .lh-demo-sidebar { display: none; }
    .lh-demo-app__main { min-height: 100vh; }
    .lh-demo-topbar { flex-wrap: wrap; padding: 8px 10px 0; gap: 8px; }
    .lh-demo-topbar__identity { flex: 1 1 auto; }
    .lh-demo-topbar__actions { margin-left: auto; }
    .lh-demo-topbar__actions > .lh-demo-jump,
    .lh-demo-topbar__actions > .is-primary,
    .lh-demo-topbar__actions > .is-secondary { display: none; }
    .lh-demo-mobile-nav {
        order: 3;
        width: calc(100% + 20px);
        margin: 0 -10px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid #edf0f4;
    }
    .lh-demo-mobile-nav a {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 2px solid transparent;
        color: #637186;
        font-size: 10px;
        font-weight: 800;
        text-decoration: none;
    }
    .lh-demo-mobile-nav a.is-active {
        border-bottom-color: var(--lh-demo-green);
        color: var(--lh-demo-blue);
        background: #f8fbff;
    }
    .lh-demo-app__content { padding: 20px 14px 32px; }
    .lh-demo-page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .lh-demo-upload-batch__action,
    .lh-demo-processing-complete,
    .lh-demo-guidance-banner,
    .lh-demo-dashboard-next,
    .lh-demo-selection-bar { align-items: flex-start; flex-direction: column; }
    .lh-demo-upload-batch__action .lh-demo-button,
    .lh-demo-processing-complete .lh-demo-button { width: 100%; }
    .lh-demo-own-upload { flex-direction: column; }
    .lh-demo-own-upload__drop { border-left: 0; border-top: 1px dashed #cbd5e1; }
    .lh-demo-invoice-toolbar { align-items: stretch; flex-direction: column; }
    .lh-demo-search { width: 100%; }
    .lh-demo-invoice-toolbar__right { justify-content: flex-end; }
}

@media (max-width: 520px) {
    .lh-demo-topbar__identity > span:last-child { display: none; }
    .lh-demo-metrics { grid-template-columns: 1fr; }
    .lh-demo-metric,
    .lh-demo-metric + .lh-demo-metric,
    .lh-demo-metric:nth-child(3),
    .lh-demo-metric:nth-child(4) {
        padding: 12px 0;
        border-left: 0;
        border-top: 1px solid #edf0f4;
    }
    .lh-demo-metric:first-child { border-top: 0; }
    .lh-demo-upload-card { grid-template-columns: 32px minmax(0, 1fr); }
    .lh-demo-upload-card__meta { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
    .lh-demo-page-head h1 { font-size: 24px; }
    .lh-demo-ready-summary { padding-left: 0; border-left: 0; }
    .lh-demo-modal__dialog { padding: 22px 18px; }
}

/* -------------------------------------------------------------------------- */
/* Production-alignment pass: demo shell should read like the real workspace. */
/* -------------------------------------------------------------------------- */
.lh-demo-app__content {
    width: min(100%, 1600px);
    padding: 24px 28px 40px;
}

.lh-demo-sidebar {
    padding: 0;
    border-right-color: var(--lh-border, #dbe3ee);
    background: #fbfcfe;
}

.lh-demo-sidebar__brand {
    min-height: 70px;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid #edf1f6;
}

.lh-demo-sidebar__brand-full {
    display: block;
    width: auto;
    height: 50px;
    max-width: 182px;
    object-fit: contain;
    object-position: left center;
}

.lh-demo-sidebar__brand-mark {
    display: none;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.lh-demo-sidebar__access-key {
    margin: 0.7rem 0.62rem 0.3rem;
    padding: 0.45rem 0.58rem;
    border: 1px solid #d9e6df;
    border-radius: 6px;
    background: #ffffff;
    color: #627086;
    font-size: 10px;
    font-weight: 650;
}

.lh-demo-sidebar__access-swatch {
    border-color: #7ec1a7;
    border-radius: 4px;
}

.lh-demo-sidebar__scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 0.62rem 0.8rem;
}

.lh-demo-sidebar__section + .lh-demo-sidebar__section {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #eef2f7;
}

.lh-demo-sidebar__section-label {
    margin: 0;
    padding: 0 0.62rem 0.35rem;
    color: #627086;
    font-size: 0.625rem;
    line-height: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.lh-demo-sidebar__nav {
    gap: 0.18rem;
    padding-top: 0;
}

.lh-demo-sidebar__link {
    min-height: 38px;
    gap: 0.68rem;
    padding: 0.48rem 0.62rem;
    border-radius: 0.45rem;
    color: #475569;
    font-size: 0.76rem;
    line-height: 1rem;
}

.lh-demo-sidebar__icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: #708198;
}

.lh-demo-sidebar__link:hover {
    border-color: #e7edf5;
    background: #f5f8fc;
    color: #163b6d;
}

.lh-demo-sidebar__link.is-demo-access {
    border-color: #a9d9c6;
    background: #ffffff;
}

.lh-demo-sidebar__link.is-demo-access.is-active {
    border-color: #8ec8b1;
    background: #eef5ff;
    color: #1d4f91;
    box-shadow: inset 3px 0 0 #16805b;
}

.lh-demo-sidebar__link:hover .lh-demo-sidebar__icon,
.lh-demo-sidebar__link.is-active .lh-demo-sidebar__icon {
    color: currentColor;
}

.lh-demo-sidebar__bottom {
    margin-top: 0;
    padding: 0.65rem 0.62rem 0.7rem;
    border-top: 1px solid #e7edf4;
    background: #fbfcfe;
}

.lh-demo-sidebar__profile {
    width: 100%;
    min-height: 44px;
    margin-top: 0.6rem;
    padding: 0.48rem 0.62rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    background: transparent;
    cursor: pointer;
}

.lh-demo-sidebar__profile:hover {
    background: #f5f8fc;
}

.lh-demo-sidebar__avatar {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #708198;
}

.lh-demo-sidebar__profile-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.lh-demo-sidebar__profile-copy strong {
    color: #0f172a;
    font-size: 0.72rem;
    line-height: 0.95rem;
    font-weight: 800;
}

.lh-demo-sidebar__profile-copy span {
    color: #627086;
    font-size: 0.625rem;
    line-height: 0.82rem;
    font-weight: 600;
}

.lh-demo-sidebar__signout {
    color: #b4232c;
}

.lh-demo-sidebar__signout:hover {
    border-color: transparent;
    background: #fff1f2;
    color: #b4232c;
}

.lh-demo-topbar {
    min-height: 58px;
    padding: 9px 18px;
    border-bottom-color: #dbe3ee;
    background: #ffffff;
}

.lh-demo-topbar__actions,
.lh-demo-topbar__journey-actions,
.lh-demo-topbar__utility-actions,
.lh-demo-topbar__form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.lh-demo-topbar__journey-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lh-demo-topbar__utility-actions {
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid #dbe3ee;
}

.lh-demo-topbar__reset-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    font: inherit;
    font-size: 10px;
    line-height: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.lh-demo-topbar__reset-button svg {
    width: 14px;
    height: 14px;
}

.lh-demo-topbar__reset-button:hover {
    border-color: #aeb9c8;
    background: #f8fafc;
    color: #172033;
}

.lh-demo-page-head {
    align-items: flex-end;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e2e8f0;
}

.lh-demo-page-head h1 {
    color: #0f172a;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lh-demo-page-head p:not(.lh-demo-page-head__eyebrow) {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    line-height: 17px;
}

.lh-demo-ready-summary {
    border-left-color: #e2e8f0;
}

.lh-demo-upload-batch {
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
}

.lh-demo-upload-batch__head {
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.lh-demo-upload-batch__process {
    flex: 0 0 auto;
}

.lh-demo-upload-batch__kicker {
    color: #627086;
}

.lh-demo-upload-cards {
    gap: 0;
    padding: 0;
}

.lh-demo-upload-card {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #edf1f6;
    background: #ffffff;
    padding: 12px 16px;
}

.lh-demo-upload-card:nth-child(odd) {
    border-right: 1px solid #edf1f6;
}

.lh-demo-upload-card:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.lh-demo-upload-card__scenario {
    color: #627086;
}

.lh-demo-upload-complete,
.lh-demo-own-upload {
    border-color: #dbe3ee;
    box-shadow: none;
}

.lh-demo-existing-history {
    margin-top: 24px;
}

.lh-demo-processing {
    border-color: #dbe3ee;
}

.lh-demo-processing-card {
    border-color: #e2e8f0;
    box-shadow: none;
}

.lh-demo-processing-complete {
    border-color: #cfe1d8;
    background: #f8fcfa;
}

.lh-demo-invoice-toolbar {
    margin-bottom: 0;
    padding: 7px 0 11px;
}

.lh-demo-search {
    min-height: 32px;
    border-radius: 8px;
}

.lh-demo-sort-value {
    min-height: 32px;
    border-radius: 8px;
}

.lh-demo-queue-clear-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: -4px 0 8px;
    color: #64748b;
    font-size: 10px;
}

.lh-demo-queue-clear-actions button,
.lh-demo-queue-clear-actions a {
    padding: 0;
    border: 0;
    background: transparent;
    color: #2458a6;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.lh-demo-queue-clear-actions button:hover,
.lh-demo-queue-clear-actions a:hover {
    text-decoration: underline;
}

.lh-demo-selection-bar {
    margin-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.lh-demo-table-wrap {
    border: 1px solid #dde2e8;
    border-radius: 8px;
    background: #ffffff;
}

.lh-demo-table {
    min-width: 1180px;
}

.lh-demo-table th {
    padding: 10px 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    letter-spacing: .06em;
}

.lh-demo-table td {
    padding: 10px 12px;
    color: #475569;
    font-size: 11px;
    line-height: 15px;
}

.lh-demo-table__primary {
    color: #0f172a;
    font-weight: 700;
}

.lh-demo-table__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

.lh-demo-table tbody tr.is-guided {
    background: #fffdf7;
    box-shadow: inset 3px 0 0 #d5a516;
}

.lh-demo-table__action a {
    min-height: 32px;
    gap: 6px;
    border-color: #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.lh-demo-table__action a svg {
    width: 14px;
    height: 14px;
}

.lh-demo-table__action a:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #1d4f91;
}

.lh-demo-table__action a.is-primary {
    border-color: #2458a6;
    background: #2458a6;
    color: #ffffff;
}

.lh-demo-table__action a.is-primary:hover {
    border-color: #1d4b91;
    background: #1d4b91;
    color: #ffffff;
}

.lh-demo-metrics {
    border: 1px solid #dde2e8;
    border-radius: 8px;
    background: #ffffff;
}

.lh-demo-metric {
    padding: 16px;
}

.lh-demo-metric + .lh-demo-metric {
    padding-left: 16px;
}

.lh-demo-dashboard-review {
    margin-top: 22px;
    border: 1px solid #dde2e8;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.lh-demo-dashboard-review__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.lh-demo-dashboard-review__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lh-demo-dashboard-review__title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 13px;
    line-height: 18px;
    font-weight: 800;
}

.lh-demo-dashboard-review__title span {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
}

.lh-demo-dashboard-review__title span.is-clear {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.lh-demo-dashboard-review__head p {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 10px;
    line-height: 14px;
}

.lh-demo-dashboard-review__head > a {
    color: #2458a6;
    font-size: 10px;
    line-height: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.lh-demo-dashboard-review__head > a:hover {
    text-decoration: underline;
}

.lh-demo-review-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lh-demo-review-strip > a {
    min-width: 0;
    padding: 13px 16px;
    color: #0f172a;
    text-decoration: none;
}

.lh-demo-review-strip > a + a {
    border-left: 1px solid #edf1f6;
}

.lh-demo-review-strip > a:hover {
    background: #f8fafc;
}

.lh-demo-review-strip span,
.lh-demo-review-strip strong,
.lh-demo-review-strip small {
    display: block;
}

.lh-demo-review-strip span {
    font-size: 9px;
    line-height: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.lh-demo-review-strip .is-rose span { color: #be123c; }
.lh-demo-review-strip .is-amber span { color: #b45309; }
.lh-demo-review-strip .is-blue span { color: #1d4f91; }

.lh-demo-review-strip strong {
    margin-top: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 20px;
    line-height: 24px;
    font-weight: 800;
}

.lh-demo-review-strip small {
    margin-top: 2px;
    color: #64748b;
    font-size: 9px;
    line-height: 13px;
}

@media (max-width: 1180px) and (min-width: 761px) {
    .lh-demo-sidebar__brand-full { display: none; }
    .lh-demo-sidebar__brand-mark { display: block; }
    .lh-demo-sidebar__profile-copy { display: none; }
    .lh-demo-sidebar__icon { margin: 0; }
    .lh-demo-sidebar__link { justify-content: center; padding-inline: 0; }
    .lh-demo-sidebar__profile { justify-content: center; padding-inline: 0; }
}

@media (max-width: 900px) {
    .lh-demo-review-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lh-demo-review-strip > a:nth-child(3) { border-left: 0; border-top: 1px solid #edf1f6; }
    .lh-demo-review-strip > a:nth-child(4) { border-top: 1px solid #edf1f6; }
}

@media (max-width: 760px) {
    .lh-demo-topbar__actions { gap: 8px; }
    .lh-demo-topbar__utility-actions {
        margin-left: 0;
        padding-left: 8px;
    }
    .lh-demo-topbar__reset-button span { display: none; }
    .lh-demo-topbar__reset-button { width: 34px; padding: 0; }
    .lh-demo-upload-batch__head { align-items: stretch; flex-direction: column; }
    .lh-demo-upload-batch__process .lh-demo-button { width: 100%; }
    .lh-demo-upload-card:nth-child(odd) { border-right: 0; }
    .lh-demo-upload-card:nth-last-child(-n + 2) { border-bottom: 1px solid #edf1f6; }
    .lh-demo-upload-card:last-child { border-bottom: 0; }
    .lh-demo-dashboard-review__head { flex-direction: column; }
    .lh-demo-queue-clear-actions { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 520px) {
    .lh-demo-review-strip { grid-template-columns: 1fr; }
    .lh-demo-review-strip > a + a,
    .lh-demo-review-strip > a:nth-child(3),
    .lh-demo-review-strip > a:nth-child(4) { border-left: 0; border-top: 1px solid #edf1f6; }
}

/* Keep demo utilities unambiguous on small screens. The journey CTAs move out
   of the compact header, but Reset demo always retains its text label. */
@media (max-width: 760px) {
    .lh-demo-topbar__journey-actions { display: none; }
    .lh-demo-topbar__reset-button span { display: inline; }
    .lh-demo-topbar__reset-button { width: auto; padding: 0 10px; }
}

.lh-demo-page-head__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lh-demo-financial-overview {
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
}

.lh-demo-financial-overview > .lh-demo-section-head {
    margin: 0;
    padding: 13px 16px;
    border-bottom: 1px solid #edf1f6;
}

.lh-demo-financial-overview > .lh-demo-metrics {
    border: 0;
    border-radius: 0;
}

.lh-demo-table.is-compact {
    min-width: 760px;
}

.lh-demo-financial-overview {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .lh-demo-upload-card:nth-child(odd) { border-right: 0; }
    .lh-demo-upload-card { border-bottom: 1px solid #edf1f6; }
    .lh-demo-upload-card:nth-last-child(-n + 2) { border-bottom: 1px solid #edf1f6; }
    .lh-demo-upload-card:last-child { border-bottom: 0; }
}

/* -------------------------------------------------------------------------- */
/* Shared production workspace primitives                                     */
/* -------------------------------------------------------------------------- */
/* The demo now uses the real workspace sidebar component classes and width
   variable. Keep only demo-specific routing affordances here. */
.lh-demo-app {
    display: block;
    overflow: visible;
}

@media (min-width: 1024px) {
    .lh-demo-app__main {
        margin-left: var(--lh-workspace-sidebar-width);
        transition: margin-left 160ms ease;
    }

    #workspace-sidebar .lh-sidebar__link.is-demo-access {
        border-color: #a9d9c6;
    }

    #workspace-sidebar .lh-sidebar__link.is-demo-access[aria-current="page"] {
        border-color: #8ec8b1;
        box-shadow: inset 3px 0 0 #16805b;
    }

    html.lh-sidebar-collapsed-pref #workspace-sidebar .lh-demo-sidebar__count {
        display: none;
    }
}

@media (max-width: 1023px) {
    .lh-demo-app__main {
        margin-left: 0;
    }
}

.lh-demo-sidebar__count {
    min-width: 20px;
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 999px;
    background: #dce9fb;
    color: #2458a6;
    font-size: 9px;
    line-height: 15px;
    text-align: center;
}

/* The preloaded demo batch uses the exact selected-file card language from
   the production single-invoice uploader. Four cards are stacked inside the
   same upload well; the only omitted control is Change file. */
.lh-demo-preloaded-dropzone {
    min-height: 0;
    border-style: solid;
    border-color: #cbd8e6;
    background: #f8fbff;
    cursor: default;
}

.lh-demo-preloaded-dropzone:hover {
    border-color: #cbd8e6;
    background: #f8fbff;
    box-shadow: none;
}

.lh-demo-preloaded-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lh-demo-preloaded-card {
    min-width: 0;
}

.lh-demo-preloaded-card > .flex {
    min-width: 0;
    width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Demo viewport scrolling / production table scrolling                       */
/* -------------------------------------------------------------------------- */
/* The iframe owns its own vertical scroll. Do not trap it inside the demo
   shell; the only intentionally contained scroller is the fixed workspace
   sidebar. */
html,
body {
    min-height: 100%;
}

body.lh-site-body {
    overflow-y: auto;
}

.lh-demo-app,
.lh-demo-app__main,
.lh-demo-app__content {
    overflow: visible;
}

.lh-demo-app.is-embedded {
    min-height: 100%;
}

[data-demo-history-table] .lh-work-table__scroll,
.lh-demo-app .lh-work-table__scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.lh-demo-overlay-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}
