@import"https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap";:root{color-scheme:light;font-family:Manrope,Segoe UI,sans-serif;--bg: #f5f2e9;--surface: rgba(255, 252, 246, .88);--surface-strong: rgba(255, 249, 238, .98);--ink: #15212f;--muted: #617183;--line: rgba(21, 33, 47, .12);--shadow: 0 24px 60px rgba(17, 27, 39, .12);--accent-strong: #0a8f7a;--accent-muted: #cc7f31;--accent-wash: rgba(10, 143, 122, .12);--danger: #b1442b;--scrollbar-thumb: rgba(21, 33, 47, .22);--scrollbar-thumb-hover: rgba(21, 33, 47, .34);--scrollbar-track: rgba(21, 33, 47, .06)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at top left,rgba(10,143,122,.16),transparent 28%),radial-gradient(circle at bottom right,rgba(204,127,49,.16),transparent 26%),var(--bg);color:var(--ink)}a{color:inherit}button,input{font:inherit}.visually-hidden-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#root{min-height:100vh}.app-shell{width:min(1420px,calc(100% - 32px));margin:0 auto;padding:32px 0 48px}.workspace-layout{display:grid;grid-template-columns:320px minmax(0,1fr) 300px;gap:24px;align-items:start}.workspace-main{min-width:0}.samples-sidebar{position:sticky;top:24px;padding:24px;background:linear-gradient(180deg,#fffcf6fa,#f5efe4f5),var(--surface);color:#1a2732;border-color:#15212f14}.samples-sidebar .eyebrow{color:#9a4b0c}.samples-sidebar-inner{display:flex;flex-direction:column;gap:20px}.samples-header h2{margin:0 0 10px;font-size:1.4rem;letter-spacing:-.04em}.samples-group{display:flex;flex-direction:column;gap:10px}.samples-group-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.samples-count{color:var(--muted);font-size:.82rem;font-weight:700}.samples-grid{display:flex;flex-direction:column;gap:10px}.sample-card{display:flex;flex-direction:column;gap:10px;padding:10px;border:1px solid rgba(21,33,47,.08);border-radius:18px;background:#ffffffb8;text-align:left;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}.sample-card:hover:not(:disabled){transform:translateY(-1px);border-color:#0a8f7a47;box-shadow:0 16px 28px #111b2714}.sample-card:disabled{cursor:wait;opacity:.7}.sample-card-active{border-color:#0a8f7a66;box-shadow:0 16px 28px #0a8f7a1f}.sample-card-image{display:block;width:100%;aspect-ratio:1.2 / 1;object-fit:cover;border-radius:12px;border:1px solid rgba(21,33,47,.08);background:#f5f2e9e0}.sample-card-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.sample-card-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}.sample-card-copy span{color:var(--muted);font-size:.78rem;font-weight:700}.pipeline-sidebar{position:sticky;top:24px;padding:24px;background:linear-gradient(180deg,#fffcf6fa,#f5efe4f5),var(--surface);color:#1a2732;border-color:#15212f14}.pipeline-sidebar .eyebrow{color:#0f7a69}.pipeline-sidebar-inner{display:flex;flex-direction:column;gap:22px}.pipeline-header h2{margin:0 0 10px;font-size:1.6rem;letter-spacing:-.04em}.pipeline-text{margin:0;color:#1a2732b8;line-height:1.7}.pipeline-run-card{padding:16px 18px;border-radius:20px;background:#ffffffb8;border:1px solid rgba(21,33,47,.08)}.pipeline-run-card strong{display:block;margin-bottom:4px;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pipeline-run-card p{margin:0;color:#1a2732a8}.pipeline-run-label{display:inline-block;margin-bottom:10px;padding:5px 9px;border-radius:999px;background:#0a8f7a1f;color:#0f7a69;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.pipeline-list{position:relative;display:flex;flex-direction:column;gap:14px;margin:0;padding:0;list-style:none}.pipeline-list:before{content:"";position:absolute;left:18px;top:8px;bottom:8px;width:1px;background:linear-gradient(180deg,#0a8f7a59,#0a8f7a0f)}.pipeline-step{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:14px;align-items:start}.pipeline-step-index{position:relative;z-index:1;display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:linear-gradient(145deg,#0a8f7a,#86b66b);color:#f6fbf8;font-size:.76rem;font-weight:800;letter-spacing:.08em}.pipeline-step-copy{min-width:0;padding:2px 0 14px}.pipeline-step-copy h3{margin:0 0 4px;font-size:1rem}.pipeline-step-copy p{margin:0;color:#1a2732b3;font-size:.92rem;line-height:1.55}.pipeline-step-active .pipeline-step-index{box-shadow:0 10px 24px #0a8f7a38}.pipeline-step-pending .pipeline-step-index{background:linear-gradient(145deg,#ece7dc,#ddd6c8);color:#a29a8c}.pipeline-step-pending .pipeline-step-copy h3,.pipeline-step-pending .pipeline-step-copy p{color:#1a27326b}.pipeline-stage-artifact{margin-top:8px;padding:8px 10px;overflow:hidden;border-radius:12px;background:#0a8f7a14;color:#0f6e60;font-size:.82rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.eyebrow{margin:0 0 12px;color:var(--accent-strong);font-size:.82rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase}.panel{background:var(--surface);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.6);border-radius:28px;box-shadow:var(--shadow)}.file-summary,.result-meta,.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.primary-button{border:0;border-radius:999px;background:linear-gradient(135deg,#0d7c6b,#115d94);color:#fff;padding:12px 18px;font-weight:700;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease;box-shadow:0 12px 30px #115d9438}.primary-button:hover:not(:disabled){transform:translateY(-1px)}.primary-button:disabled{opacity:.72;cursor:progress}.primary-button-compact,.secondary-button{min-height:42px;padding:10px 16px;font-size:.95rem}.secondary-button{border:1px solid rgba(21,33,47,.12);border-radius:999px;background:#ffffffd6;color:var(--ink);font-weight:700;cursor:pointer}.workflow-stack{display:flex;flex-direction:column;gap:18px}.workspace-empty,.workspace-toolbar,.section-card{padding:22px 24px}.workspace-empty{min-height:220px;display:flex;flex-direction:column;justify-content:center;gap:12px}.workspace-empty h2,.workspace-toolbar h1,.section-card-title-row h2{margin:0;letter-spacing:-.03em}.workspace-empty p:last-of-type,.workspace-toolbar-copy p:last-of-type,.section-card-title-row p,.section-footnote{margin:0;color:var(--muted);line-height:1.6}.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px}.workspace-toolbar-controls{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.ocr-engine-toggle{display:inline-flex;align-items:center;gap:6px;padding:4px;border-radius:999px;background:#15212f0f}.ocr-engine-button{min-height:34px;padding:7px 12px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:.84rem;font-weight:700;cursor:pointer}.ocr-engine-button-active{background:#ffffffeb;color:var(--ink);box-shadow:0 8px 18px #15212f14}.workspace-toolbar-copy{min-width:0}.workspace-toolbar-copy h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.45rem}.workspace-toolbar-actions{display:flex;align-items:center;gap:12px}.document-import-stack{display:flex;flex-direction:column;gap:12px}.url-import-form{display:flex;align-items:center;gap:10px;width:100%}.url-import-input{min-width:0;flex:1;min-height:42px;padding:0 14px;border:1px solid rgba(21,33,47,.12);border-radius:999px;background:#ffffffd6;color:var(--ink)}.url-import-input::placeholder{color:#617183cc}.document-import-hint{margin:0;color:var(--muted);font-size:.92rem;line-height:1.5}.section-card{display:flex;flex-direction:column;gap:16px}.section-card-copy{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.section-card-meta{display:flex;align-items:center;gap:10px}.section-control-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.section-control-stack{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.section-card-title-row{display:flex;align-items:flex-start;gap:14px}.section-step{display:inline-grid;place-items:center;min-width:42px;height:42px;border-radius:14px;background:#0a8f7a1f;color:var(--accent-strong);font-size:.82rem;font-weight:800;letter-spacing:.08em}.section-card-title-row h2{font-size:1.12rem}.section-card-title-row p{margin-top:4px}.section-status{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border-radius:999px;font-size:.82rem;font-weight:800;white-space:nowrap}.section-status-ready{background:#0a8f7a1f;color:var(--accent-strong)}.section-status-passed{background:#115d941a;color:#115d94}.section-status-waiting{background:#15212f14;color:var(--muted)}.section-status-muted{background:#cc7f311f;color:var(--accent-muted)}.stage-play-button{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(21,33,47,.12);border-radius:999px;background:#ffffffd6;color:var(--ink);cursor:pointer}.stage-play-button:disabled{opacity:.56;cursor:not-allowed}.stage-play-icon{display:block;width:0;height:0;margin-left:2px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:10px solid currentColor}.section-card-body{display:flex;flex-direction:column;gap:14px}.layout-variant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.layout-variant-card{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:20px;background:#ffffff9e;border:1px solid rgba(21,33,47,.08)}.section-note-card{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border-radius:18px;background:#ffffffb8;border:1px solid rgba(21,33,47,.06)}.section-note-card strong{font-size:1rem}.section-note-card p{margin:0;color:var(--muted)}.section-footnote{font-size:.92rem}.stage-chip-row{display:flex;flex-wrap:wrap;gap:10px}.stage-chip{display:inline-flex;align-items:center;min-height:32px;padding:6px 11px;border-radius:999px;font-size:.8rem;font-weight:700}.stage-chip-ready{background:#0a8f7a1f;color:var(--accent-strong)}.stage-chip-muted{background:#15212f14;color:var(--muted)}.error-copy{margin:0;color:var(--danger)}.inline-error{padding:14px 16px;border-radius:18px}.panel-heading h2{margin:0;font-size:1.35rem}.preview-note{margin:0;color:var(--muted);font-size:.92rem}.page-stage{position:relative;width:100%;aspect-ratio:595 / 842;overflow:hidden;border-radius:26px;border:1px solid var(--line);background:linear-gradient(180deg,#fffffff5,#f4efe6fa),repeating-linear-gradient(180deg,transparent 0,transparent 40px,rgba(21,33,47,.025) 40px,rgba(21,33,47,.025) 41px)}.page-stage-image{background:#fff}.stage-preview{min-height:280px}.stage-preview-missing{min-height:220px;display:grid;place-items:center;padding:24px;border-radius:24px;border:1px dashed rgba(21,33,47,.12);background:#ffffff85;color:var(--muted);text-align:center}.stage-preview-missing p{margin:0}.page-preview-image{display:block;width:100%;height:100%;object-fit:contain}.page-stage:before{content:attr(data-page-label);position:absolute;top:18px;right:18px;padding:6px 10px;border-radius:999px;background:#15212f12;color:var(--muted);font-size:.8rem}.connector-layer{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.reading-order-layer{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.reading-order-link{stroke:#ca2d20f0;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 6px rgba(202,45,32,.18))}.reading-order-link-layout{stroke:#ca2d20e6}.reading-order-link-structure{stroke:#c62618f5}.overlay-box{position:absolute;display:flex;align-items:center;padding:4px 8px;border:2px solid;border-radius:12px;background:#ffffffd6;box-shadow:0 6px 18px #15212f14}.overlay-box span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;font-weight:700}.overlay-box-key{background:#0a8f7a1f}.overlay-box-value{background:#cc7f3124}.text-region-box{position:absolute;border:1.5px solid rgba(17,93,148,.7);border-radius:6px;background:#115d9414;box-shadow:inset 0 0 0 1px #ffffff38}.structure-region-box{position:absolute;border:1.8px solid rgba(30,126,89,.78);border-radius:8px;background:#1e7e591a;box-shadow:inset 0 0 0 1px #ffffff3d}.structure-region-badges{position:absolute;top:8px;left:8px;display:flex;gap:6px}.structure-column-region-box{position:absolute;border:2px dashed rgba(191,107,28,.84);border-radius:12px;background:#bf6b1c14;box-shadow:inset 0 0 0 1px #ffffff38}.structure-column-labels{position:absolute;top:8px;left:8px;display:flex;gap:6px}.structure-column-order-badge{color:#9a4b0c}.structure-column-label{padding:3px 7px;border-radius:999px;background:#fffaf4f2;color:#9a4b0c;font-size:.72rem;font-weight:800;line-height:1;text-transform:uppercase}.layout-region-box{position:absolute;display:flex;align-items:flex-start;justify-content:flex-start;border:2px solid rgba(181,68,43,.82);border-radius:10px;background:#b5442b14;box-shadow:inset 0 0 0 1px #ffffff38}.layout-missing-text-box{position:absolute;display:flex;align-items:flex-start;justify-content:flex-start;border:2px dashed rgba(27,103,173,.88);border-radius:10px;background:#1b67ad1a;box-shadow:inset 0 0 0 1px #ffffff38}.layout-table-cell-box{position:absolute;border:1px dashed rgba(17,93,148,.66);background:#115d940d;pointer-events:none}.layout-region-labels{display:flex;align-items:center;gap:6px;margin:8px}.layout-region-label{padding:3px 7px;border-radius:999px;background:#fffcf6eb;color:#8e3623;font-size:.72rem;font-weight:800;line-height:1;text-transform:uppercase}.layout-missing-text-label{padding:3px 7px;border-radius:999px;background:#f7fbfff2;color:#1b67ad;font-size:.72rem;font-weight:800;line-height:1;text-transform:uppercase}.overlay-order-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#fffffff0;color:var(--ink);font-size:.7rem;font-weight:800;line-height:1;box-shadow:0 6px 18px #15212f1a}.layout-order-badge{color:#8e3623}.layout-column-badge{color:#7b5a1a}.structure-order-badge{color:#1e7e59}.structure-column-badge{color:#115d94}.overlay-placeholder{position:absolute;left:18px;right:18px;bottom:18px;padding:12px 14px;border-radius:16px;background:#fffcf6eb;color:var(--ink);box-shadow:0 10px 28px #15212f1a}.overlay-placeholder p{margin:0;font-size:.88rem}.warning-card{padding:14px 16px;border-radius:18px;background:var(--accent-wash);color:var(--ink)}.warning-card p{margin:0}.engine-pill{padding:8px 12px;border-radius:999px;background:#15212f14;color:var(--muted);font-size:.82rem;font-weight:700;text-transform:uppercase}.result-list{display:flex;flex-direction:column;gap:12px}.result-panel{display:flex;flex-direction:column;gap:16px}@media (min-width: 961px){body{overflow:hidden}#root{height:100vh}.app-shell{height:100vh;padding:24px 0}.workspace-layout{height:calc(100vh - 48px);align-items:stretch}.pipeline-sidebar,.workspace-main,.samples-sidebar{min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}.pipeline-sidebar,.samples-sidebar{position:relative;top:auto}.pipeline-sidebar::-webkit-scrollbar,.workspace-main::-webkit-scrollbar,.samples-sidebar::-webkit-scrollbar{width:10px}.pipeline-sidebar::-webkit-scrollbar-track,.workspace-main::-webkit-scrollbar-track,.samples-sidebar::-webkit-scrollbar-track{background:transparent}.pipeline-sidebar::-webkit-scrollbar-thumb,.workspace-main::-webkit-scrollbar-thumb,.samples-sidebar::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border:2px solid transparent;border-radius:999px;background-clip:padding-box;min-height:44px}.pipeline-sidebar:hover::-webkit-scrollbar-thumb,.workspace-main:hover::-webkit-scrollbar-thumb,.samples-sidebar:hover::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb-hover);border:2px solid transparent;background-clip:padding-box}}.result-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;border-radius:18px;background:#ffffffa8;border:1px solid rgba(21,33,47,.06)}.result-copy{min-width:0}.result-copy strong{display:block;overflow:hidden;text-overflow:ellipsis}.result-label{margin:0 0 4px;color:var(--muted);font-size:.85rem}.result-meta{min-width:88px;flex-direction:column;align-items:flex-end;color:var(--muted);font-size:.82rem}.postprocess-layout{display:grid;grid-template-columns:minmax(260px,.95fr) minmax(0,1.2fr);gap:18px;align-items:start}.postprocess-summary{min-width:0}.empty-state{min-height:220px;display:grid;place-items:center;padding:24px;color:var(--muted);text-align:center}@media (max-width: 960px){body{overflow:auto}#root,.app-shell,.workspace-layout{height:auto}.workspace-layout,.postprocess-layout,.layout-variant-grid{grid-template-columns:1fr}.pipeline-sidebar{position:static}.workspace-toolbar,.section-card-copy{flex-direction:column;align-items:flex-start}.workspace-toolbar-controls{width:100%;align-items:stretch}.workspace-toolbar-actions{width:100%}.url-import-form{flex-direction:column;align-items:stretch}}@media (max-width: 640px){.app-shell{width:min(100% - 20px,1200px);padding:20px 0 28px}.workspace-empty,.workspace-toolbar,.section-card{padding:18px}.panel-heading,.result-item{flex-direction:column;align-items:flex-start}.workspace-toolbar-actions{flex-wrap:wrap}.section-card-title-row{flex-direction:column}.result-meta{align-items:flex-start}}
