/* Presentation layer for the public Lingxi build, 2026-09-11. */
:root {
  --lx-glass: rgb(255 255 255 / 80%);
  --lx-edge: rgb(255 255 255 / 90%);
  --lx-line: #e1dbe9;
  --lx-ink: #272139;
  --lx-secondary: #655d76;
  --lx-shadow: 0 12px 40px -24px #40315e38, inset 0 1px 0 #fff;
}
body, #root, #root * { letter-spacing: 0; }
body { color: var(--lx-ink); }
button, a, input, textarea, [contenteditable] { -webkit-tap-highlight-color: transparent; }
button, a { transition-duration: 180ms; }
svg { flex-shrink: 0; }
input, textarea, [contenteditable] { font-size: 16px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, [contenteditable]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.site-header {
  background: var(--lx-glass);
  border-bottom: 1px solid var(--lx-edge);
  box-shadow: 0 1px 0 #d9d2e54d, 0 4px 24px #40315e03;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header-inner { min-height: 56px; max-width: none; gap: 24px; padding-left: 12px; padding-right: 24px; }
.site-layout { display: flex; flex-direction: column; min-height: 100dvh; }
.site-layout > main { flex: 1 0 auto; width: 100%; }
.site-layout > header, .site-layout > footer { flex-shrink: 0; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 32px; background: #fff; border-top: 1px solid #eee9f3; font-size: 14px; line-height: 20px; }
.site-footer > nav { display: flex; gap: 16px; margin-left: auto; }
.site-footer.lx-home-footer > nav { gap: 20px; margin-left: 0; }
.site-footer > .footer-mobile { display: none; }
.site-footer a { white-space: nowrap; }
.site-brand { font-size: 22px; gap: 10px; }
.brand-caption { font-size: 9px; color: var(--lx-secondary); }
.brand-symbol { width: 38px; height: 38px; border-radius: 8px; box-shadow: inset 0 1px 1px #ffffff70, 0 4px 12px #6236c924; }
.site-nav { gap: 4px; }
.site-nav a { font-size: 13px; padding: 8px 16px; }
.site-nav a.is-active { background: #ebe3f7; color: #5429b1; box-shadow: inset 0 1px 0 #ffffffb3; }
.site-nav a[href="/"] { color: #6437ea; font-size: 18px; font-weight: 700; background: transparent; box-shadow: none; }
.site-home-divider { margin: 0 4px; color: #b8accb; font-weight: 400; }
.site-account > div > button { height: 36px; min-width: 64px; font-size: 13px; justify-content: center; border-radius: 8px; background: #ffffffb3; color: #5429b1; border: 1px solid #d4c6ea; }
.site-account > div > button:hover { background: #ede5fa; }
.site-nav .site-account-nav { margin-left: 0; }
.site-nav .site-nav-account { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; color: #655c76; font-size: 13px; line-height: 1.5; font-weight: 550; white-space: nowrap; }
.site-nav .site-nav-account:is(:hover, [aria-expanded="true"]) { background: #ebe3f7; color: #5429b1; }

.history-dialog { width: calc(100% - 32px); max-width: 672px; max-height: 85dvh; margin: auto; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--lx-ink); }
.history-dialog::backdrop { background: rgb(39 33 57 / 40%); backdrop-filter: blur(4px); }
.history-dialog > div { max-height: 85dvh; }
.files-select-all { display: none; }

/* The existing lavender gradient retains its colors and direction. */
.home-hero-shell { background: radial-gradient(ellipse at 79% 40%, #d7c5f599, transparent 52%); min-height: 0; display: block; padding: 0 32px 56px; position: relative; }
.home-hero { display: block; max-width: 1000px; padding: 40px 0 24px; margin: 0 auto; }
.home-hero-copy { text-align: center; width: 100%; max-width: none; margin: 0 auto; }
.home-hero-kicker { font-size: 11px; font-weight: 600; color: #726080; margin: 0 0 18px; }
.home-hero h1 { margin: 0; font-size: 44px; line-height: 1.18; font-weight: 650; }
.home-hero h1 .lx-hero-name { color: #6236c9; font-family: Outfit, 'Plus Jakarta Sans', system-ui, sans-serif; }
.home-hero h1 .lx-hero-category { display: inline-block; font-size: 44px; line-height: 1.4; color: #6437ea; font-weight: 700; text-wrap: balance; }
.home-hero-description { margin: 22px auto 0; max-width: 600px; font-size: 15px; line-height: 1.9; color: #655d76; }
.home-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.home-primary-action, .home-secondary-action { min-height: 46px; padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 500; gap: 16px; }
.home-primary-action { box-shadow: inset 0 1px 0 #ffffff38, 0 6px 18px -8px #6236c970; }
.home-primary-action:hover { background: var(--accent-hover); }
.home-secondary-action { background: #ffffffab; border: 1px solid #d1c2e5; box-shadow: inset 0 1px 0 #fff; backdrop-filter: blur(16px); }
.home-secondary-action:hover { background: #fff; }
.home-principles { justify-content: center; gap: 24px; margin-top: 24px; color: #70667d; }
.home-principles span { font-size: 12px; gap: 7px; }
.home-principles svg { color: #81699f; }
.lx-sample { position: relative; max-width: 1060px; margin: 0 auto; border: 1px solid #ffffffee; border-radius: 8px; background: var(--lx-glass); box-shadow: 0 0 0 1px #d9d2e57d, 0 24px 64px -32px #6449814d, inset 0 1px 0 #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lx-sample-toolbar { min-height: 66px; padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--lx-line); }
.lx-sample-title { display: flex; align-items: center; gap: 10px; }
.lx-sample-title svg { color: #7954a3; }
.lx-sample-title h2 { font-size: 14px; font-weight: 600; }
.lx-sample-title > span { font-size: 12px; color: #72647f; border-left: 1px solid #d9d2e5; padding-left: 10px; }
.lx-language { display: flex; gap: 4px; padding: 3px; background: #eae6f280; border-radius: 6px; }
.lx-language button { height: 32px; min-width: 64px; padding: 0 12px; font-size: 12px; color: #655d76; border-radius: 4px; }
.lx-language button[aria-pressed="true"] { color: #6236c9; background: #fff; box-shadow: 0 1px 4px #40315e12; }
.lx-comparison { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.lx-manuscript { min-width: 0; min-height: 365px; padding: 25px 36px 28px; }
.lx-manuscript + .lx-manuscript { border-left: 1px solid #eee9f3; }
.lx-document-label { display: flex; justify-content: space-between; align-items: center; color: #71677f; font-size: 12px; margin-bottom: 20px; }
.lx-document-label > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.lx-document-label > span:last-child { font-variant-numeric: tabular-nums; color: #70667d; }
.lx-refined .lx-document-label > span:first-child { color: #6236c9; }
.lx-manuscript h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.lx-manuscript p { font-size: 16px; line-height: 1.9; color: #494151; overflow-wrap: anywhere; }
.lx-manuscript mark { background: #eee5fa; color: #4f2d80; padding: 1px 0; border-bottom: 1px solid #d7c0ee; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lx-edit-notes { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; }
.lx-edit-notes span { display: inline-flex; align-items: center; gap: 4px; color: #567162; font-size: 11px; }
.lx-sample-footer { min-height: 58px; padding: 12px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--lx-line); }
.lx-sample-footer > span { display: inline-flex; align-items: center; gap: 8px; color: #655d76; font-size: 12px; }
.lx-sample-footer :is(button, a) { color: #6236c9; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; padding: 6px 0; }
.lx-sample-footer :is(button, a):hover { color: #432095; }
.lx-home-footer { max-width: none; width: 100%; padding: 14px 32px; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; line-height: 20px; color: #71677f; background: #fff; border-top: 1px solid #eee9f3; }
.lx-home-footer > div { display: flex; gap: 20px; }

.lx-writing-guides { width: min(100% - 64px, 980px); margin: 0 auto 64px; scroll-margin-top: 88px; }
.lx-guides-heading { margin-bottom: 34px; text-align: center; }
.lx-guides-heading h2 { margin: 0 0 12px; color: var(--lx-ink); font-size: 32px; line-height: 1.4; font-weight: 600; }
.lx-guides-heading > p { margin: 0; color: var(--lx-secondary); font-size: 14px; line-height: 1.9; }
.lx-guides-table-wrap { overflow: hidden; border: 1px solid #e3d9f2; border-radius: 12px; background: #fffefd; box-shadow: 0 18px 48px -32px #68458b45; }
.lx-guides-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 14px; line-height: 1.85; }
.lx-guides-table th { padding: 16px 20px; color: #493763; font-weight: 600; background: #f4effc; }
.lx-guides-table th:first-child { width: 64%; }
.lx-guides-table td { padding: 16px 20px; border-top: 1px solid #eee7f6; vertical-align: middle; overflow-wrap: anywhere; }
.lx-guides-table tbody tr:hover { background: #fcfaff; }
.lx-guides-table a { display: inline-block; padding: 2px 0; color: #6236c9; text-decoration: none; }
.lx-guides-table a:hover, .lx-guides-table a:focus-visible { color: #432095; }
.lx-guide-keyword { display: inline-block; max-width: 100%; padding: 4px 11px; border-radius: 999px; background: #f0e8fc; color: #6236c9; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.workspace-reading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 10px; color: var(--lx-secondary); font-size: 12px; line-height: 2; }
.workspace-reading a { padding: 5px 0; color: #6236c9; text-decoration: none; }
@media (max-width: 760px) {
  .lx-writing-guides { width: calc(100% - 36px); margin-bottom: 40px; scroll-margin-top: 120px; }
  .lx-guides-heading { margin-bottom: 24px; }
  .lx-guides-heading h2 { font-size: 26px; }
  .lx-guides-table { font-size: 13px; }
  .lx-guides-table th:first-child { width: 60%; }
  .lx-guides-table :is(th, td) { padding: 14px 12px; }
  .lx-guide-keyword { padding: 4px 8px; font-size: 11px; }
}
@media (max-width: 380px) {
  .lx-writing-guides { width: calc(100% - 28px); }
}

/* Paper for reading, glass for controls. */
#root > .min-h-screen:has(.processing-page) { background-image: radial-gradient(ellipse at 79% 40%, #d7c5f599, transparent 52%); background-attachment: fixed; }
#root > .min-h-screen > main:has(.processing-page) { padding-top: 24px; }
.processing-page { min-width: 0; }
.workspace-heading { padding: 0; gap: 18px; margin-bottom: 24px; }
.workspace-heading h1 { font-size: 28px; font-weight: 600; margin: 7px 0; }
.workspace-description { font-size: 14px; color: var(--lx-secondary); }
.eyebrow { font-size: 11px; color: #746080; }
.workspace-steps { gap: 12px; padding-bottom: 7px; }
.workspace-steps li { font-size: 12px; }
.workspace-steps li span { font-size: 10px; }
.processing-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 0; }
.submission-panel { min-height: 570px; background: #fff; border: 1px solid #e0d8e9; border-radius: 8px; box-shadow: 0 8px 28px -22px #40315e35; }
.submission-panel-header { min-height: 60px; padding: 16px 24px; border-color: #ede8f2; background: #fcfbfe; }
.submission-panel-header p, .processing-control-header p { font-size: 14px; }
.submission-panel-header span, .processing-control-header span { font-size: 11px; color: #70667d; }
.submission-tabs { margin: 16px 24px 0; border: none; border-radius: 6px; background: #f2f0f6; }
.submission-tabs button { min-height: 36px; font-size: 13px; padding: 6px 16px; border-radius: 4px; }
.submission-body { padding: 24px; min-width: 0; }
.submission-textarea, .submission-rich-editor { min-height: 305px; font-size: 16px; line-height: 1.75; color: #272139; overflow-wrap: anywhere; }
.submission-textarea::placeholder { font-size: 15px; line-height: 1.8; color: #71677f; }
.submission-rich-editor:empty:before { color: #71677f; font-size: 15px; }
.submission-meta { font-size: 12px; line-height: 1.6; gap: 12px; flex-wrap: wrap; }
.submission-meta b { color: #4b425b; font-variant-numeric: tabular-nums; }
.editor-note { font-size: 11px; padding: 13px 24px; color: #70667d; background: #fcfbfe; }
.processing-control { background: var(--lx-glass); border: 1px solid var(--lx-edge); border-radius: 8px; padding: 20px; box-shadow: var(--lx-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.processing-control-header { margin: -20px -20px 4px; padding: 17px 20px; min-height: 60px; border-color: #e8e1ef; }
.service-option-grid > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
.service-option { background: transparent; border: 0; border-bottom: 1px solid #e6dfed; border-radius: 0; padding: 14px 0; box-shadow: none; gap: 10px; }
.service-option.is-selected { background: transparent; border-color: #e6dfed; box-shadow: none; }
.service-option:hover { background: #ffffff69; }
.service-option strong { font-size: 14px; line-height: 1.6; font-weight: 600; }
.service-option span, .service-option ul, .service-option li { font-size: 12px; color: #655d76; line-height: 1.8; }
.service-option b { font-size: 13px; color: #6236c9; margin-top: 7px; font-variant-numeric: tabular-nums; }
.service-option ul { margin-top: 4px; }
.service-option ul > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
.research-option .tool-icon { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px; border-radius: 0; background: transparent; color: #80718f; }
.research-option.is-selected .tool-icon { background: transparent; color: #6236c9; }
.research-option.is-selected strong { color: #5126a5; }
.research-option .selection-mark { width: 17px; height: 17px; margin-top: 5px; border-color: #b9adc8; }
.research-option.is-selected .selection-mark { background: #6236c9; border-color: #6236c9; }
.model-tag { border: none; padding: 0; background: transparent; font-size: 11px; color: #6236c9 !important; }
.platform-picker { margin-top: 18px; padding: 0 0 20px; border: none; border-bottom: 1px solid #e6dfed; border-radius: 0; background: transparent; }
.platform-picker > p { font-size: 13px; }
.platform-option { padding: 8px 12px; min-height: 38px; border-radius: 6px; font-size: 12px; }
.processing-summary { margin-top: 0; padding-top: 16px; border-top: none; }
.processing-summary > div { font-size: 13px; gap: 12px; }
.processing-summary strong { font-variant-numeric: tabular-nums; }
.processing-summary > p, .processing-terms, .provider-note p { font-size: 11px; line-height: 1.8; color: #655d76; }
.processing-primary-action { min-height: 46px; border-radius: 6px; font-size: 14px; margin-top: 18px; }
.processing-primary-action:disabled { background: #e7e0f0; color: #6c5d7e; }
.provider-note { margin-top: 16px; padding-top: 16px; border-color: #e6dfed; }
.file-select-button { border-radius: 6px; min-height: 305px; background: #fcfbfe; }
.file-select-button .upload-symbol { border-radius: 8px; background: #eee6f7; width: 48px; height: 48px; }
.file-select-button .upload-hint { font-size: 12px; }
.selected-file { border-radius: 6px; }
.selected-file > div { min-width: 0; }
.research-results { padding-top: 8px; }
.result-section-heading h2 { font-size: 16px; }
.result-section-heading > span { font-size: 12px; color: #655d76; }
.result-empty { background: #fff; border: 1px solid #e0d8e9; border-radius: 8px; }
.result-empty h3 { font-size: 14px; color: #4e425d; }
.result-empty p { font-size: 13px; color: #655d76; }
.processing-page .card, .processing-page .glass-card, .rewrite-panel, .rewrite-result, .score-result { border-radius: 8px; background: #fff; box-shadow: 0 8px 24px -22px #40315e30; }
.refined-copy, .manuscript-text { font-size: 16px; line-height: 1.75; color: #332b40; }
.rewrite-result-header, .rewrite-toolbar { flex-wrap: wrap; }
.rewrite-card { border-radius: 8px; border-color: #e0d8e9; }
.rewrite-toolbar { background: #fcfbfe; }
.manuscript-content { font-size: 16px; line-height: 1.75; }
.manuscript-content.original-copy { color: #655d76; }
.manuscript-caption, .manuscript-footer { font-size: 12px; color: #655d76; }
.result-tool { font-size: 12px; color: #655d76; min-height: 38px; }
.request-error { color: #9d3228; border-radius: 6px; background: #fff1ef; }
.processing-page .fixed > .card { background: var(--lx-glass); border: 1px solid #fff; backdrop-filter: blur(16px); box-shadow: var(--lx-shadow); }
.processing-page .fixed > .card button { border-radius: 6px; }
.score-result h3 + p, .source-caption { color: #655d76; font-size: 12px; }
.academic-faq { padding-top: 20px; }
.academic-faq > h2 { font-size: 18px; }
.academic-faq > p { font-size: 12px; color: #655d76; }
.academic-faq summary > span { font-size: 14px; color: #4e435c; }
.academic-faq details > div { font-size: 14px; color: #655d76; }
.processing-page .academic-faq details { border: 0; border-bottom: 1px solid #ddd6e6; border-radius: 0; background: transparent; box-shadow: none; }
.glass-card-strong { background: #ffffffeb; border: 1px solid #fff; border-radius: 8px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--lx-shadow); }
.badge { font-size: 11px; }
.btn { border-radius: 6px; }
.lx-segmented { background: #eae6f280; border: 0; border-radius: 6px; padding: 4px; gap: 4px; }
.lx-segmented > button { border-radius: 4px; min-height: 38px; padding: 8px 12px; font-size: 13px; font-weight: 500; }
.lx-segmented > button[aria-pressed="true"] { background: #fff; color: #6236c9; box-shadow: 0 1px 4px #40315e12; }
[role="alert"], .bg-error-container { background: #fff1ef; color: #9d3228; border-radius: 6px; }

.login-page { position: relative; background: radial-gradient(ellipse at 79% 40%, #d7c5f599, transparent 52%), #f3f1f8; }
.login-back { position: absolute; top: 0; left: 0; padding: 0 12px; color: #655d76; min-height: 44px; }
.login-layout { max-width: 440px; margin-top: 44px; grid-template-columns: minmax(0, 1fr); gap: 0; }
.login-emblem { border-radius: 8px; background: #ffffffab; border: 1px solid #fff; color: #6236c9; box-shadow: var(--lx-shadow); }
.login-intro h2 { font-size: 38px; }
.login-intro > p:not(.eyebrow), .login-note { color: #655d76; }
.login-form.glass-card { background: var(--lx-glass); border: 1px solid #fff; border-radius: 8px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 64px -32px #6449814d, inset 0 1px 0 #fff; }
.login-form .input { background: #fff; border: 1px solid #d9d2e5; border-radius: 6px; font-size: 16px; min-height: 46px; }
.login-form .input::placeholder { color: #776c83; }
.login-form .btn { min-height: 44px; font-size: 13px; }
.login-form .page-title { font-size: 26px; }
.login-form.animate-fade-in { animation: none; }
.lx-ledger .workbench-heading { padding: 0 0 6px; border: none; border-radius: 0; background: transparent; box-shadow: none; }
.lx-ledger .workbench-heading h1 { font-size: 28px; }
.lx-ledger .workbench-heading h1 + p { color: #655d76; font-size: 14px; }
.lx-ledger .glass-card { background: #fff; border: none; border-radius: 0; box-shadow: none; padding: 0; }
.lx-ledger .glass-card:first-of-type { padding: 24px; border-top: 1px solid #e0d8e9; border-bottom: 1px solid #e0d8e9; }
.lx-ledger .glass-card + .glass-card { border-bottom: 1px solid #e0d8e9; }
.lx-ledger .font-display { font-variant-numeric: tabular-nums; }
.lx-ledger .text-status-success { color: #337055; }
.lx-ledger .shrink-0 { white-space: nowrap; }

@media (min-width: 761px) {
  .chinese-workspace .processing-layout, .english-workspace .processing-layout { align-items: stretch; }
}
@media (max-width: 1000px) {
  .site-header-inner { gap: 24px; }
  .processing-layout { grid-template-columns: minmax(0, 1fr) 292px; gap: 18px; }
  .lx-manuscript { padding: 24px; }
}
@media (max-width: 760px) {
  .site-header-inner { padding: 6px 18px; gap: 4px; min-height: 0; }
  .site-footer { padding-left: 18px; padding-right: 18px; }
  .site-footer > .footer-desktop { display: none; }
  .site-footer > .footer-mobile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 640px); gap: 0; margin: 0 auto; text-align: center; }
  .site-brand { font-size: 19px; }
  .brand-symbol { width: 32px; height: 32px; }
  .site-nav { gap: 0; }
  .site-nav a { min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 8px 10px; font-size: 12px; }
  .site-nav { display: grid; grid-template-columns: max-content repeat(3, minmax(0, 1fr)); }
  .site-nav .site-account-nav { width: 100%; }
  .site-account-nav > div, .site-account-nav > div > .relative { width: 100%; }
  .site-nav .site-nav-account { width: 100%; min-width: 0; min-height: 40px; height: 40px; padding: 8px 10px; font-size: 12px; }
  .site-account > div > button { min-height: 36px; }
  .home-hero-shell { padding: 0 16px 32px; min-height: 0; }
  .home-hero { padding: 24px 0 20px; }
  .home-hero-kicker { margin-bottom: 14px; font-size: 10px; }
  .home-hero h1 { font-size: 26px; }
  .home-hero h1 .lx-hero-category { font-size: 26px; }
  .home-hero-description { margin-top: 18px; font-size: 13px; line-height: 1.9; }
  .home-hero-actions { gap: 8px; margin-top: 22px; flex-wrap: nowrap; flex-direction: row; }
  .home-primary-action, .home-secondary-action { width: auto; min-height: 44px; padding: 10px 13px; font-size: 12px; gap: 8px; }
  .home-principles { gap: 10px; flex-wrap: wrap; margin-top: 20px; }
  .home-principles span { font-size: 10px; gap: 4px; }
  .home-principles svg { width: 13px; height: 13px; }
  .lx-sample-toolbar { padding: 12px 16px; min-height: 64px; gap: 8px; flex-wrap: wrap; }
  .lx-sample-title { gap: 6px; }
  .lx-sample-title h2 { font-size: 13px; }
  .lx-sample-title > span { font-size: 11px; padding-left: 6px; }
  .lx-language button { min-width: 48px; height: 36px; padding: 0 9px; }
  .lx-comparison { grid-template-columns: minmax(0, 1fr); }
  .lx-manuscript { padding: 22px; min-height: 0; }
  .lx-manuscript + .lx-manuscript { border-left: 0; border-top: 1px solid #eee9f3; }
  .lx-document-label { margin-bottom: 14px; }
  .lx-manuscript p { font-size: 15px; line-height: 1.9; }
  .lx-sample-footer { padding: 12px 16px; flex-wrap: wrap; gap: 4px; }
  .lx-sample-footer > span { font-size: 11px; }
  .lx-sample-footer :is(button, a) { min-height: 44px; }
  .lx-home-footer { padding-left: 18px; padding-right: 18px; }
  .lx-home-footer > span:nth-child(2) { display: none; }
  .workspace-heading { margin-bottom: 20px; }
  .workspace-heading h1 { font-size: 24px; }
  .workspace-description { font-size: 13px; }
  .processing-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .submission-panel { min-height: 440px; }
  .submission-panel-header { padding: 16px 18px; }
  .submission-tabs { margin: 14px 18px 0; }
  .submission-tabs button { padding: 6px 12px; min-height: 40px; }
  .submission-body { padding: 20px 18px; }
  .submission-textarea, .submission-rich-editor { min-height: 220px; }
  .submission-meta { font-size: 11px; gap: 8px; }
  .editor-note { padding: 12px 18px; }
  .processing-control { padding: 20px; }
  .processing-control-header { margin: -20px -20px 4px; padding: 16px 20px; }
  .service-option { padding: 16px 0; }
  .research-option .tool-icon { flex-basis: 26px; width: 26px; }
  .service-option strong { font-size: 14px; }
  .platform-option { min-height: 44px; }
  .result-empty { padding: 20px; gap: 14px; }
  .result-empty p { font-size: 12px; }
  .result-tool { min-height: 44px; }
  .login-page { padding: 16px; }
  .login-layout { padding: 16px 0; min-height: 0; gap: 0; }
  .login-form.glass-card { padding: 26px 22px; }
  .login-form .page-title { font-size: 24px; }
  .lx-ledger .truncate { white-space: normal; overflow-wrap: anywhere; }
  .record-table { display: block; }
  .record-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .record-table thead button { visibility: hidden; }
  .record-table tbody { display: block; }
  .record-table .table-row { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 18px 16px; border-bottom: 1px solid #e1dbe9; }
  .record-table .table-row:last-child { border-bottom: 0; }
  .record-table .table-cell { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 0; text-align: left; font-size: 13px; overflow-wrap: anywhere; }
  .record-table [data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #655d76; font-size: 12px; font-weight: 400; }
  .record-table .badge { white-space: nowrap; }
  .record-table button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border-radius: 6px; }
  .record-table td:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid #eee9f3; padding-top: 8px; }
  .record-table td:last-child::before { margin: 0; }
  .files-table .table-row { padding-left: 0; padding-right: 0; }
  .files-select-all { display: block; padding-bottom: 10px; border-bottom: 1px solid #e1dbe9; text-align: left; }
  .files-select-all button { gap: 8px; color: #655d76; font-size: 12px; }
  .files-table td:first-child { position: absolute; top: 18px; left: 0; }
  .files-table td:nth-child(2) { grid-column: 1 / -1; min-height: 44px; padding-left: 44px; }
  .files-table td:nth-child(2) > div { min-width: 0; width: 100%; }
  .files-table .truncate { max-width: none; white-space: normal; overflow-wrap: anywhere; }
  .files-actions { display: grid; grid-template-columns: 40px repeat(2, minmax(0, 1fr)); width: 100%; }
  .files-actions .btn { min-height: 40px; min-width: 0; padding: 8px 6px; gap: 4px; font-size: 12px; white-space: nowrap; }
  .files-actions svg { margin: 0; }
  .record-pagination { flex-wrap: wrap; gap: 12px; font-size: 12px; }
  .record-pagination > :first-child { font-size: 12px; }
  .record-pagination > :last-child { margin-left: auto; }
  .record-pagination button { width: 40px; min-height: 40px; padding: 8px; }
}
@media (max-width: 380px) {
  .site-header-inner { padding-left: 14px; padding-right: 14px; }
  .site-footer { padding-left: 14px; padding-right: 14px; }
  .lx-home-footer { padding-left: 14px; padding-right: 14px; }
  .site-nav a { padding-left: 8px; padding-right: 8px; }
  .lx-sample-title > span { display: none; }
  .lx-ledger .flex.items-center.gap-2 { flex-wrap: wrap; }
}
@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .site-header, .processing-control, .lx-sample, .login-form.glass-card, .glass-card-strong { background: #fcfafe; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .processing-control, .lx-sample, .login-form.glass-card, .glass-card-strong { background: #fcfafe; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
