/* Public website: fluid desktop layout, scoped away from the OCR workspace. */
.landing { --ink: #14202e; --muted: #52607a; --faint: #607086; --line: #dfe4ea; --line-strong: #c3ccd6; --lp-tint: #f3f5f8; --lp-paper: #fff; --lp-gutter: clamp(24px, 3.35vw, 80px); background: var(--surface); color: var(--ink); }
:root[data-theme='dark'] .landing { --ink: #ececef; --muted: #aeb2ba; --faint: #969ba4; --line: #2c2e33; --line-strong: #43464d; --lp-tint: #17181b; --lp-paper: #202226; }
.lp-container { width: calc(100% - var(--lp-gutter) * 2); max-width: 2040px; margin-inline: auto; }
.landing h1, .landing h2, .landing h3 { text-wrap: pretty; }
.landing p { text-wrap: pretty; }
.landing section[id] { scroll-margin-top: 12px; }
.lp-header { position: sticky; top: 0; z-index: 25; background: var(--surface); border-bottom: 1px solid var(--line); }
.lp-header-inner { min-height: 76px; display: flex; align-items: center; gap: 52px; }
.lp-header .brand-symbol { width: 38px; height: 38px; }
.lp-header .brand-wordmark { font-size: 22px; }
.lp-navigation { display: flex; align-items: center; gap: 28px; margin-right: auto; }
.lp-navigation a, .lp-login { color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; }
.lp-navigation a:hover, .lp-login:hover { color: var(--link); }
.lp-header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.lp-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 22px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; white-space: nowrap; }
.lp-button:hover { background: var(--blue-hover); }
.lp-header .lp-button { min-height: 40px; padding: 8px 16px; gap: 10px; font-size: 14px; }
.lp-button .icon { width: 17px; height: 17px; transition: transform .18s ease; }
.lp-menu-toggle, .lp-navigation .lp-mobile-login { display: none; }
.lp-hero-band { background: #0b3a66; }
:root[data-theme='dark'] .lp-hero-band { background: #0d2742; }
.lp-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); align-items: center; gap: clamp(24px,2.2vw,40px); padding-block: clamp(40px,4vw,64px); max-width: 1640px; }
.lp-hero-copy { --ink: #ffffff; --muted: #c7d8ea; --faint: #a9c1da; --link: #ffffff; --line: #ffffff33; color: var(--ink); padding-block: 12px; }
.lp-hero h1 { font-size: clamp(38px,3.6vw,60px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin: 0 0 24px; }
.lp-lead { max-width: 540px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.lp-hero-actions .lp-button { min-height: 48px; padding: 12px 22px; gap: 12px; border: 0; border-radius: 6px; background: #ffffff; color: #0b3a66; font-size: 16px; font-weight: 600; box-shadow: none; }
.lp-hero-actions .lp-button .icon { width: 18px; height: 18px; }
.lp-hero-actions .lp-text-link { min-height: 48px; padding-block: 12px; line-height: 1.5; }
.lp-hero-actions .lp-button:hover { background: #e6eef7; }
.lp-hero-copy :focus-visible { outline-color: #ffffff; }
.lp-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 32px; }
.lp-text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 550; color: var(--ink); }
.lp-text-link:hover { color: var(--link); }
.lp-text-link .icon { width: 16px; height: 16px; }
.lp-hero-caption { margin-top: 12px; color: var(--muted); font-size: 14px; }
/* Compact product illustrations share one frame so slide changes never move the page. */
.lp-showcase { width: 100%; max-width: 900px; min-width: 0; justify-self: start; line-height: 1.4; }
.lp-showcase-frame { overflow: hidden; border: 1px solid #ffffff26; border-radius: 8px; background: var(--surface); }
.lp-slides { display: grid; }
.lp-slide { grid-area: 1 / 1; min-width: 0; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .55s ease, transform .55s ease, visibility .55s; pointer-events: none; }
.lp-slide.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.lp-slide figcaption { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); text-align: center; }
.lp-showcase-note { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); background: var(--subtle); }
.lp-showcase-note .icon { width: 12px; height: 12px; }
.lp-carousel-controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; min-height: 32px; color: #bbcee1; }
.lp-carousel-title { margin-right: auto; font-size: 14px; }
.lp-carousel-dots { display: flex; gap: 2px; }
.lp-carousel-dots button { display: grid; place-items: center; width: 28px; height: 32px; border: 0; padding: 0; background: transparent; }
.lp-carousel-dots button span { width: 6px; height: 6px; border-radius: 8px; background: #bbcee17a; transition: width .3s ease, background .3s ease; }
.lp-carousel-dots button[aria-pressed='true'] span { width: 22px; background: #8bdde8; }
.lp-showcase :focus-visible { outline: 2px solid #53b9df; outline-offset: 3px; }

@media (max-width: 960px) {
  .lp-showcase { max-width: 650px; justify-self: center; }
}
@media (max-width: 550px) {
  .lp-showcase { max-width: 420px; }
  .lp-slide figcaption { font-size: 12px; padding-inline: 10px; }
  .lp-carousel-title { font-size: 14px; }
  .lp-carousel-controls { gap: 8px; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-slide, .lp-carousel-dots button span { transition: none; transform: none; }
}

/* Feature navigation and examples. */
.lp-section { padding-block: 56px; }
.lp-section-heading h2 { margin-top: 0; font-size: 32px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.lp-section-heading > p { margin-top: 16px; max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.lp-platform-heading, .lp-heading-split { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.lp-platform-heading > p, .lp-heading-split > p { margin: 0; max-width: 470px; }
/* Feature cards act as selectors; the selected capability opens below. */
.lp-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 32px; width: 100%; margin-top: 28px; border-bottom: 1px solid var(--line); }
.lp-tabs button { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 14px 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); text-align: left; font-size: 17px; font-weight: 500; cursor: pointer; }
.lp-tabs button .icon { flex-shrink: 0; width: 20px; height: 20px; color: currentColor; }
.lp-tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--blue); }
.lp-tabs button:hover { color: var(--ink); }
.lp-feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 48px; align-items: center; padding: 40px 0 0; margin-top: 0; border: 0; border-radius: 0; }
.lp-feature[hidden] { display: none; }
.lp-feature-copy { max-width: 580px; }
.lp-feature-copy h3 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.lp-feature-copy > p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.lp-feature-copy ul { list-style: none; padding: 0; margin: 22px 0 24px; }
.lp-feature-copy li { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 15px; }
.lp-feature-copy li .icon { width: 15px; height: 15px; color: var(--link); }
.lp-product-preview { border: 1px solid var(--line); border-radius: 8px; box-shadow: none; overflow: hidden; background: var(--subtle); min-width: 0; align-self: stretch; min-height: 320px; }
/* Ba bước đặt cạnh nhau trên một đường kẻ; thứ tự do vị trí thể hiện. */
.lp-workflow { background: var(--lp-tint); }
.lp-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin: 32px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.lp-steps > li { display: flex; min-width: 0; }
.lp-steps article { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px 0 0; }
.lp-steps h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.lp-steps p { max-width: 490px; color: var(--muted); font-size: 16px; line-height: 1.7; margin-block: 10px 20px; }
.lp-step-detail { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 14px; font-weight: 500; }
.lp-step-detail .icon { width: 16px; height: 16px; color: var(--muted); }
.lp-documents { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 64px; }
.lp-documents .lp-text-link { margin-top: 24px; }
.lp-document-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.lp-document-list article { display: flex; align-items: flex-start; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lp-document-list article:nth-child(-n+2) { padding-top: 0; }
.lp-document-list article:last-child { border-bottom: 0; }
.lp-document-list h3 { font-size: 17px; font-weight: 600; }
.lp-document-list p { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.lp-faq-section { background: var(--bg); }
.lp-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.lp-faq-list details { border-bottom: 1px solid var(--line); }
.lp-faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 0; font-size: 16px; font-weight: 500; cursor: pointer; }
.lp-faq-list details:first-child summary { padding-top: 0; }
.lp-faq-list summary:hover { color: var(--link); }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .18s ease; }
.lp-faq-list details[open] summary .icon { transform: rotate(45deg); }
.lp-faq-list details > p { font-size: 16px; color: var(--muted); padding-bottom: 20px; line-height: 1.7; max-width: 760px; }
.lp-final-cta { padding-block: 24px 8px; color: #fff; }
.lp-final-cta .lp-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 40px 44px; border-radius: 8px; background: #0b3a66; }
.lp-final-cta h2 { font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin-top: 0; }
.lp-final-cta .lp-container > div:last-child { display: flex; align-items: center; gap: 32px; }
.lp-final-cta p { color: #e8f3ff; font-size: 16px; line-height: 1.8; }
.lp-button-white { background: #fff; color: #06325d; }
.lp-button-white:hover { background: #e0edf9; }
.lp-footer { padding-top: 44px; }
.lp-footer-top { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(24px,3vw,56px); align-items: start; padding-bottom: 36px; }
.lp-footer-top > div { min-width: 0; }
.lp-footer-top h3 { display: flex; align-items: center; min-height: 38px; margin-bottom: 14px; color: var(--ink); font-size: 15px; font-weight: 600; }
.lp-footer-brand > .brand { display: flex; width: fit-content; min-height: 38px; gap: 12px; }
.lp-footer-brand .brand-symbol { width: 44px; height: 44px; }
.lp-footer-brand .brand-wordmark { font-size: 27px; }
.lp-footer-brand p { margin: 6px 0 0 56px; max-width: 280px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.lp-footer-partner-lockup { display: grid; justify-items: start; gap: 6px; margin-top: 28px; color: var(--link); }
.lp-footer-partner { display: block; width: 200px; max-width: 85%; height: auto; }
.lp-footer-partner-caption { font-size: 10px; font-weight: 500; line-height: 1.4; letter-spacing: .02em; }
.lp-footer-top nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lp-footer-top nav a { font-size: 14px; line-height: 1.7; color: var(--muted); }
.lp-footer-top nav a:hover { color: var(--link); }
.lp-footer-headquarters address { max-width: 440px; font-size: 15px; line-height: 1.85; font-style: normal; }
.lp-footer-headquarters a { color: var(--muted); overflow-wrap: anywhere; }
.lp-footer-headquarters a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.lp-footer-headquarters .icon { width: 14px; height: 14px; margin-left: 7px; vertical-align: -2px; }
.lp-footer-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding: 19px 0; font-size: 13px; color: var(--muted); text-align: center; }
.lp-footer-security { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lp-footer-security .icon { width: 14px; height: 14px; }
.lp-footer-divider { width: 1px; height: 14px; background: var(--line-strong); }

@media (max-width: 1250px) {
  .lp-footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 48px; }
  .lp-header-inner { gap: 28px; }
  .lp-navigation { gap: 22px; }
  .lp-header-actions { gap: 18px; }
  .lp-hero { gap: 24px; grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); }
  .lp-feature, .lp-documents, .lp-faq { gap: 40px; }
  .lp-final-cta .lp-container > div:last-child { gap: 22px; }
  .lp-final-cta p { max-width: 260px; }
}
@media (max-width: 1050px) {
  .lp-login { display: none; }
  .lp-navigation .lp-mobile-login { display: inline-flex; }
  .lp-navigation a { font-size: 12px; }
  .lp-hero h1 { font-size: 38px; letter-spacing: -1.4px; }
  .lp-hero-actions { gap: 16px; }
  .lp-hero-actions .lp-text-link { font-size: 15px; }
  .lp-platform-heading > p, .lp-heading-split > p { max-width: 350px; }
  .lp-document-list { grid-template-columns: 1fr; }
  .lp-document-list article:nth-child(2) { padding-top: 20px; }
}
@media (max-width: 1100px) {
  .lp-header-inner { min-height: 68px; gap: 18px; position: relative; }
  .lp-menu-toggle { display: grid; place-items: center; order: 4; width: 36px; height: 36px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; flex-shrink: 0; }
  .lp-navigation { display: none; position: absolute; top: 100%; left: calc(-1 * var(--lp-gutter)); right: calc(-1 * var(--lp-gutter)); padding: 12px var(--lp-gutter) 20px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 16px 24px #102f500c; }
  .lp-menu-open .lp-navigation { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .lp-navigation a { padding: 14px 0; font-size: 14px; }
  .lp-login { display: none; }
  .lp-navigation .lp-mobile-login { display: inline-flex; gap: 10px; }
}
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; gap: 30px; padding-block: 34px; }
  .lp-hero-copy { max-width: 720px; padding: 0; }
  .lp-hero h1 { font-size: 44px; }
  .lp-lead { max-width: 650px; }
  .lp-section { padding-block: 44px; }
  .lp-section-heading h2 { font-size: 27px; }
  .lp-platform-heading, .lp-heading-split { align-items: flex-start; gap: 32px; }
  .lp-feature { gap: 24px; grid-template-columns: .9fr 1.1fr; }
  .lp-tabs button { font-size: 15px; }
  .lp-final-cta .lp-container > div:last-child { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lp-footer-top { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
}
@media (max-width: 700px) {
  .landing { --lp-gutter: 20px; }
  .lp-header-inner { min-height: 64px; gap: 12px; }
  .lp-header .brand-symbol { width: 32px; height: 32px; }
  .lp-header .brand-wordmark { font-size: 19px; }
  .lp-header .brand { gap: 8px; }
  .lp-header-actions { gap: 10px; }
  .lp-header .lp-button { min-height: 38px; padding: 8px 12px; font-size: 12px; }
  .lp-header .lp-button .icon { display: none; }
  .lp-menu-toggle { width: 32px; height: 36px; }
  .lp-hero { padding-block: 30px; gap: 28px; }
  .lp-hero h1 { font-size: clamp(32px,8.6vw,44px); letter-spacing: -.02em; margin: 0 0 16px; }
  .lp-lead { font-size: 16px; }
  .lp-hero-actions { margin-top: 22px; gap: 20px; }
  .lp-hero-caption { font-size: 14px; }
  .lp-section { padding-block: 38px; }
  .lp-section-heading h2 { font-size: 25px; letter-spacing: -.6px; }
  .lp-section-heading > p { font-size: 16px; }
  .lp-platform-heading, .lp-heading-split { display: block; }
  .lp-platform-heading > p, .lp-heading-split > p { margin-top: 12px; max-width: 560px; }
  .lp-feature { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .lp-tabs { gap: 0 16px; margin-top: 24px; }
  .lp-tabs button { flex-direction: column; justify-content: center; gap: 6px; min-height: 72px; padding: 10px 0; text-align: center; font-size: 13px; }
  .lp-steps { grid-template-columns: 1fr; gap: 0; margin-top: 24px; border-top: 0; }
  .lp-steps article { padding: 20px 0 4px; }
  .lp-steps h3 { font-size: 19px; }
  .lp-feature-copy h3 { font-size: 21px; }
  .lp-feature-copy > p { font-size: 16px; }
  .lp-feature-copy li { font-size: 15px; }
  .lp-product-preview { min-height: 280px; }
  .lp-documents, .lp-faq { grid-template-columns: 1fr; gap: 28px; }
  .lp-document-list { grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .lp-document-list article { flex-direction: column; gap: 10px; padding-block: 16px; }
  .lp-document-list article:nth-child(2) { padding-top: 0; }
  .lp-document-list h3 { font-size: 16px; }
  .lp-document-list p { font-size: 15px; }
  .lp-faq-list summary { font-size: 16px; }
  .lp-final-cta .lp-container { display: block; padding: 28px 24px; border-radius: 14px; }
  .lp-final-cta h2 { font-size: 26px; }
  .lp-final-cta .lp-container > div:last-child { margin-top: 16px; gap: 18px; }
  .lp-final-cta p { max-width: none; font-size: 16px; }
  .lp-footer { padding-top: 32px; }
  .lp-footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 24px; padding-bottom: 28px; }
  .lp-footer-partner-lockup { margin-top: 20px; }
  .lp-footer-brand, .lp-footer-headquarters { grid-column: 1 / -1; }
  .lp-footer-bottom { flex-direction: column; gap: 8px; font-size: 13px; }
  .lp-footer-divider { display: none; }
}
@media (max-width: 550px) {
  .lp-hero-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; margin-top: 26px; }
  .lp-hero-actions .lp-button { width: 100%; min-width: 0; }
  .lp-hero-actions .lp-text-link { min-height: 44px; padding-block: 10px; justify-self: center; }
  .lp-hero-caption { text-align: center; margin-top: 8px; }
}
@media (max-width: 380px) {
  .lp-header-inner { --lp-gutter: 12px; gap: 8px; }
  .lp-header-actions { gap: 5px; }
  .lp-header .brand-wordmark { font-size: 16px; }
  .lp-header .brand-symbol { width: 26px; height: 26px; }
  .lp-header .lp-button { padding-inline: 8px; font-size: 11px; }
  .lp-menu-toggle { width: 28px; }
  .lp-hero h1 { font-size: 30px; }
  .lp-tabs { gap: 0 8px; }
  .lp-tabs button { font-size: 12px; }
  .lp-hero-actions .lp-text-link { font-size: 15px; }
}

@media (hover: hover) and (pointer: fine) {

  .lp-button:hover .icon, .lp-text-link:hover .icon { transform: translateX(2px); }
  .lp-text-link .icon { transition: transform .18s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .lp-button, .landing .lp-button .icon, .landing .lp-text-link .icon { transform: none; transition: none; }
}
@media (max-width: 480px) { .lp-header .lp-cta-extra { display: none; } }

/* Màu nhận diện chức năng, dùng chung với khu làm việc: OCR cyan, bóc tách tím, quản lý chàm. */
.lp-tabs button[data-lp-tab='text'], .lp-steps > li:nth-child(1) { --hue: var(--hue-cyan); }
.lp-tabs button[data-lp-tab='extract'], .lp-steps > li:nth-child(2) { --hue: var(--hue-violet); }
.lp-tabs button[data-lp-tab='manage'], .lp-steps > li:nth-child(3) { --hue: var(--hue-indigo); }
.lp-tabs button .icon { width: 36px; height: 36px; padding: 8px; border-radius: 9px; color: var(--hue); background: color-mix(in srgb, var(--hue) var(--tint), var(--surface)); }
.lp-tabs button[aria-selected='true'] { border-bottom-color: var(--hue); }
.lp-feature-copy li .icon { color: var(--hue-green); }
.lp-steps { border-top: 0; }
.lp-steps > li { border-top: 3px solid var(--hue); }
.lp-step-detail .icon { color: var(--hue); }
.lp-document-list article { align-items: flex-start; gap: 14px; }
.lp-document-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; color: var(--hue); background: color-mix(in srgb, var(--hue) var(--tint), var(--surface)); }
.lp-document-icon .icon { width: 20px; height: 20px; }
.lp-document-list .tone-admin { --hue: var(--hue-blue); } .lp-document-list .tone-identity { --hue: var(--hue-violet); } .lp-document-list .tone-legal { --hue: var(--hue-amber); } .lp-document-list .tone-education { --hue: var(--hue-teal); } .lp-document-list .tone-health { --hue: var(--hue-rose); }
.lp-final-cta .lp-container { background: #0a3f78; }
@media (max-width: 760px) { .lp-steps > li { border-top-width: 2px; } }

/* ===== Cảnh minh họa: giao diện workspace thu nhỏ (data-ui) =====
   Dùng lại bảng màu chức năng của workspace: Tổng quan xanh, OCR cyan, Bóc tách tím, Lịch sử chàm, Hỏi đáp xanh ngọc. */
.lpx-window { --ink: #16202e; --muted: #56647a; --line: #e2e6ec; --surface: #ffffff; --tint: 8%; display: flex; flex-direction: column; height: 100%; border-radius: 10px; overflow: hidden; background: #f6f7f9; color: var(--ink); text-align: left; font-size: 12px; line-height: 1.45; }
:root[data-theme='dark'] .lpx-window { --ink: #ececef; --muted: #a9adb5; --line: #2c2e33; --surface: #1d1f22; --tint: 14%; background: #151618; }
.lpx-window .icon { width: 14px; height: 14px; }
.hue-blue { --hue: var(--hue-blue); } .hue-cyan { --hue: var(--hue-cyan); } .hue-violet { --hue: var(--hue-violet); } .hue-indigo { --hue: var(--hue-indigo); } .hue-teal { --hue: var(--hue-teal); } .hue-amber { --hue: var(--hue-amber); } .hue-green { --hue: var(--hue-green); } .hue-rose { --hue: var(--hue-rose); }
.lpx-bar { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.lpx-dots { display: flex; gap: 5px; } .lpx-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.lpx-url { flex: 1; max-width: 300px; margin: 0 auto; padding: 2px 10px; border-radius: 5px; background: #f0f2f5; color: var(--muted); font-size: 11px; text-align: center; }
:root[data-theme='dark'] .lpx-url { background: #26282c; }
.lpx-app { flex: 1; display: grid; grid-template-columns: 168px minmax(0,1fr); min-height: 0; }
.lpx-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--line); }
.lpx-brand { display: flex; align-items: center; gap: 6px; padding: 0 6px 12px; font-size: 13px; font-weight: 700; color: var(--hue-blue); }
.lpx-brand img { width: 18px; height: 18px; }
.lpx-brand .brand-symbol-dark { display: none; }
:root[data-theme='dark'] .lpx-brand .brand-symbol-light { display: none; } :root[data-theme='dark'] .lpx-brand .brand-symbol-dark { display: block; }
.lpx-nav-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--muted); white-space: nowrap; }
.lpx-nav-item .icon { color: color-mix(in srgb, var(--hue) 60%, var(--muted)); }
.lpx-nav-item.on .icon { color: var(--hue); }
.lpx-nav-item.on { background: color-mix(in srgb, var(--hue) var(--tint), var(--surface)); color: var(--ink); font-weight: 600; }
.lpx-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px 16px; overflow: hidden; }
.lpx-head { display: flex; align-items: center; gap: 10px; }
.lpx-head > div { flex: 1; min-width: 0; }
.lpx-head strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.lpx-head small { display: block; color: var(--muted); font-size: 11px; }
.lpx-title-icon, .lpx-kpis i, .lpx-groups i, .lpx-docs i { display: grid; place-items: center; flex-shrink: 0; border-radius: 7px; color: var(--hue); background: color-mix(in srgb, var(--hue) var(--tint), var(--surface)); }
.lpx-title-icon { width: 30px; height: 30px; }
.lpx-pill { flex-shrink: 0; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-style: normal; font-weight: 500; }
.lpx-pill.green { background: #e9f6ef; color: #1d6f4c; } .lpx-pill.amber { background: #fdf3e2; color: #8a5a12; }
:root[data-theme='dark'] .lpx-pill.green { background: #17291f; color: #79cfa3; } :root[data-theme='dark'] .lpx-pill.amber { background: #2b2418; color: #e2bd80; }
.lpx-split { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; min-height: 0; }

/* Trang văn bản */
.lpx-paper-wrap, .lpx-photo { display: grid; place-items: start center; padding: 10px; border-radius: 8px; background: #e9ecf1; overflow: hidden; }
:root[data-theme='dark'] .lpx-paper-wrap, :root[data-theme='dark'] .lpx-photo { background: #0f1012; }
.lpx-photo { background: #8a7b68; }
:root[data-theme='dark'] .lpx-photo { background: #5b5144; }
.lpx-paper { --c-blue: #0b6fd0; --c-cyan: #0a8bb3; --c-violet: #7b4fd6; --c-teal: #0f8a7e; --c-amber: #c27510; position: relative; width: 100%; max-width: 300px; min-height: 290px; padding: 14px 14px 40px; border-radius: 2px; background: #fdfdfb; color: #2a2f38; font: 6.5px/1.5 'Times New Roman', Georgia, serif; box-shadow: 0 6px 16px #0b142233; }
.lpx-paper-photo { transform: rotate(-2.5deg) translateY(4px); filter: saturate(.9) contrast(.95); box-shadow: 0 14px 28px #00000055; }
.lpx-paper p { margin: 4px 0; font-size: 6.5px; text-indent: 10px; }
.lpx-doc-head { display: flex; justify-content: space-between; gap: 8px; text-align: center; }
.lpx-doc-head span { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.lpx-doc-head b { font-size: 6px; } .lpx-doc-head em { font-size: 6px; text-decoration: underline; }
.lpx-paper mark { margin-top: 3px; padding: 0 3px; border-radius: 2px; color: inherit; font-size: 6.5px; }
.hl.blue { --c: var(--c-blue); } .hl.cyan { --c: var(--c-cyan); } .hl.violet { --c: var(--c-violet); font-style: italic; } .hl.teal { --c: var(--c-teal); } .hl.amber { --c: var(--c-amber); }
.lpx-paper .hl { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent); }
.lpx-doc-title { display: block; margin-top: 14px; text-align: center; font-size: 10px; letter-spacing: .04em; }
.lpx-doc-subject { display: table; margin: 3px auto 10px; font-weight: 700; }
.lpx-doc-center { display: block; margin: 2px 0 8px; text-align: center; font-size: 7px; }
.lpx-lines { display: grid; gap: 4px; margin: 5px 0 7px; } .lpx-lines i { height: 2.5px; border-radius: 1px; background: #d9dde3; } .lpx-lines i:last-child { width: 60%; }
.lpx-doc-article { display: block; font-size: 6.5px; }
.lpx-doc-sign { position: absolute; right: 18px; bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 6.5px; }
.lpx-doc-sign i { width: 48px; height: 12px; border-bottom: 1.5px solid #3b5ea8; border-radius: 0 0 50% 50%; transform: rotate(-6deg); }

/* Danh sách trường kết quả: chấm màu khớp vùng đánh dấu trên trang */
.lpx-fields { margin: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); align-self: start; }
.lpx-fields > div { padding: 7px 0; border-bottom: 1px solid var(--line); }
.lpx-fields > div:last-child { border-bottom: 0; }
.lpx-fields dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.lpx-fields dt i { width: 7px; height: 7px; border-radius: 2px; background: var(--hue); }
.lpx-fields dd { margin: 1px 0 0 13px; font-size: 12.5px; font-weight: 600; }

/* Kết quả OCR */
.lpx-output { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.lpx-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.lpx-tabs span { padding: 2px 9px; border-radius: 5px; color: var(--muted); font-size: 11px; }
.lpx-tabs span.on { background: color-mix(in srgb, var(--hue-cyan) var(--tint), var(--surface)); color: var(--ink); font-weight: 600; }
.lpx-tabs em { margin-left: auto; color: var(--muted); font-size: 11px; font-style: normal; }
.lpx-text { flex: 1; padding: 10px 12px; font-size: 12px; line-height: 1.55; }
.lpx-text p + p { margin-top: 6px; }
.lpx-text mark { padding: 0 2px; border-radius: 2px; background: color-mix(in srgb, var(--hue-amber) 30%, transparent); color: inherit; box-shadow: inset 0 -1.5px var(--hue-amber); }
.lpx-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.lpx-actions span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.lpx-actions .primary { border-color: var(--hue-blue); background: var(--hue-blue); color: #fff; }

/* Hỏi đáp */
.lpx-chat { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.lpx-question { align-self: flex-end; max-width: 78%; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--hue-teal) 14%, var(--surface)); font-size: 12.5px; }
.lpx-answer { max-width: 92%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12.5px; line-height: 1.6; }
.lpx-ref { display: inline-grid; place-items: center; min-width: 16px; height: 15px; margin: 0 1px; padding: 0 4px; border-radius: 4px; background: color-mix(in srgb, var(--hue-teal) 18%, var(--surface)); color: var(--hue-teal); font-size: 10px; font-weight: 700; vertical-align: 1px; }
.lpx-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lpx-cites span { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.lpx-cites b { display: grid; place-items: center; min-width: 16px; height: 16px; border-radius: 4px; background: color-mix(in srgb, var(--hue-teal) 18%, var(--surface)); color: var(--hue-teal); font-size: 10px; }
.lpx-composer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.lpx-composer i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--hue-blue); color: #fff; }
.lpx-composer i .icon { width: 13px; height: 13px; transform: rotate(-90deg); }

/* Tìm kiếm trong văn bản */
.lpx-search { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--hue-cyan) 55%, var(--line)); border-radius: 7px; background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue-cyan) 14%, transparent); }
.lpx-search .icon { color: var(--hue-cyan); }
.lpx-search span { flex: 1; font-weight: 500; }
.lpx-search em { color: var(--muted); font-size: 11px; font-style: normal; }
.lpx-text-search { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

/* Chọn mẫu và trường */
.lpx-picker { flex: 1; display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 12px; }
.lpx-groups { display: flex; flex-direction: column; gap: 4px; }
.lpx-groups span { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; }
.lpx-groups span.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.lpx-groups i { width: 24px; height: 24px; }
.lpx-groups em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 11px; }
.lpx-checks { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.lpx-checks > span:not(.lpx-start) { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.lpx-checks > span.on { border-color: color-mix(in srgb, var(--hue-violet) 45%, var(--line)); background: color-mix(in srgb, var(--hue-violet) 7%, var(--surface)); color: var(--ink); }
.lpx-checks i { display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 3px; }
.lpx-checks .on i { border-color: var(--hue-violet); background: var(--hue-violet); color: #fff; }
.lpx-checks i .icon { width: 10px; height: 10px; stroke-width: 3; }
.lpx-start { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; padding: 7px; border-radius: 6px; background: var(--hue-blue); color: #fff; font-weight: 600; }

/* Tổng quan */
.lpx-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.lpx-kpis span { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 9px 10px; }
.lpx-kpis span + span { border-left: 1px solid var(--line); }
.lpx-kpis i { grid-row: span 2; width: 26px; height: 26px; }
.lpx-kpis small { color: var(--muted); font-size: 10.5px; } .lpx-kpis b { font-size: 16px; font-variant-numeric: tabular-nums; }
.lpx-status { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.lpx-status .seg-done { flex: 119; background: #4a9a76; } .lpx-status .seg-review { flex: 6; background: #c69a4f; } .lpx-status .seg-busy { flex: 3; background: var(--hue-cyan); }
.lpx-docs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.lpx-docs > span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.lpx-docs > span + span { border-top: 1px solid var(--line); }
.lpx-docs i { width: 24px; height: 26px; border-radius: 4px; }
.lpx-docs i.f-ocr { --hue: var(--hue-cyan); } .lpx-docs i.f-extract { --hue: var(--hue-violet); }
.lpx-docs b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lpx-docs small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 400; }

/* Đặt cảnh vào khung hero và khung tính năng */
.lp-showcase-frame { border: 0; border-radius: 12px; background: transparent; box-shadow: 0 24px 60px #02152b66; }
.lp-slide { height: 440px; }
.lp-slide .lpx-window { border-radius: 12px 12px 0 0; }
.lp-showcase-note { border-radius: 0 0 12px 12px; }
.lp-product-preview { padding: 0; border: 1px solid var(--line); border-radius: 12px; background: transparent; box-shadow: 0 12px 32px #0b14221a; min-height: 0; height: 420px; overflow: hidden; }
.lp-feature { align-items: center; }
.lpx-chat { gap: 8px; }
.lpx-main > * { flex-shrink: 0; }
.lpx-main > .lpx-split, .lpx-main > .lpx-chat, .lpx-main > .lpx-picker { flex-shrink: 1; }
@media (max-width: 1280px) { .lpx-app { grid-template-columns: 132px minmax(0,1fr); } .lpx-nav-item { font-size: 11px; } }
@media (max-width: 900px) { .lpx-app { grid-template-columns: 1fr; } .lpx-nav { display: none; } .lp-slide { height: auto; min-height: 420px; } .lp-product-preview { height: auto; } }
