:root{--bg-base:var(--surface);--bg-card:var(--surface);--text-main:var(--ink);--text-secondary:var(--muted);--text-muted:var(--muted);--border-color:var(--line);--accent:#007da5}.editor-intro:before{background-image:url('receipt-art-v1.png');opacity:.5;inset:0 -10px -25px 27%}[data-theme="dark"] .editor-intro:before{opacity:.16;mix-blend-mode:screen}.editor-icon{background:linear-gradient(145deg,#b1bda0,#7b8e7e)}.editor-intro h1{font-size:50px}.receipt-note{font-size:12px;color:var(--muted);margin:18px 0 25px}#file-context{margin-right:auto;color:var(--muted);font-size:12px}.editor-toolbar button{font:12px Inter,Segoe UI,Arial,sans-serif;min-height:38px;height:38px;padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);box-shadow:none}.editor-toolbar .primary-action{background:#007da5;color:white;border-color:#007da5}.split-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;min-height:520px}.editor-panel{background:var(--wash);border:0;border-radius:0;min-width:0;padding:0}.preview-panel{border:0!important;border-left:1px solid var(--line)!important;border-radius:0!important;background:var(--surface)!important;min-width:0}.panel-section{padding:22px;border-color:var(--line)}.panel-section h3{font-size:13px;font-weight:600;margin:0 0 20px}.upload-zone{background:transparent!important;border:1px dashed var(--line)!important;border-radius:8px!important;padding:90px 20px!important;box-shadow:none}.upload-zone:hover{background:var(--surface)!important;box-shadow:none}.upload-zone svg{margin:0 auto 22px!important;color:var(--muted)}#receiptPreview{width:100%!important;max-height:600px!important;object-fit:contain!important;border:0!important;border-radius:0!important;box-shadow:0 5px 20px #0002;background:white}#previewSection{padding:24px}#emptyState{color:var(--muted)!important;font-size:15px;line-height:1.8}#consentState{background:var(--surface)!important;border-radius:0!important;backdrop-filter:none!important;color:var(--ink)!important;padding:30px!important}#consentState h3{font-size:22px!important}#consentState p{color:var(--muted)!important;font-size:13px!important}.btn{font:12px Inter,Segoe UI,Arial,sans-serif;border:1px solid var(--line);border-radius:7px;padding:9px 12px;background:var(--surface);color:var(--ink);box-shadow:none}.btn-primary{background:#007da5;color:white;border-color:#007da5}.btn:hover{box-shadow:none}.extracted-data{padding:24px;gap:22px}.data-field label{font-size:12px;color:var(--muted);margin-bottom:10px}.data-field .value{font:18px Inter,Segoe UI,Arial,sans-serif;padding:12px;border:1px solid var(--line);border-radius:6px}.data-field textarea{font:14px/1.9 Inter,Segoe UI,Arial,sans-serif;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:6px;min-height:290px;padding:16px;resize:vertical}#receiptReview{font-size:12px;line-height:1.7;color:var(--muted)}#workspace{scroll-margin-top:110px}.site-header .theme-choice{width:78px;max-width:78px;margin:0;padding:10px 9px;font-size:11px;flex:none}@media(max-width:760px){.editor-intro h1{font-size:36px;letter-spacing:-1.5px}.split-layout{grid-template-columns:1fr}.preview-panel{border-left:0!important;border-top:1px solid var(--line)!important}.upload-zone{padding:55px 16px!important}#file-context{width:100%}#receiptPreview{max-height:440px!important}.extracted-data{padding:18px}}

/* Shared workspace rhythm, matching OCR and Markdown rather than nested cards. */
.split-layout{margin:0;align-items:stretch;background:var(--surface)}
.editor-panel{gap:0;background:var(--surface)}
.receipt-pane-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;min-height:54px;border-bottom:1px solid var(--line);font-size:13px;font-weight:600;color:var(--ink);background:var(--surface);flex-wrap:wrap}
.receipt-pane-header small{font-size:10px;font-weight:400;color:var(--muted)}
.editor-panel>.panel-section{padding:24px}
.editor-panel>.panel-section:has(.upload-zone){flex:1;background:var(--wash)}
.upload-zone{height:100%;min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center}
#previewSection{height:570px;overflow:auto;background:var(--wash)}
#receiptPreview{max-height:none!important;height:auto;object-fit:contain!important}
.extracted-data{padding:22px;gap:24px;overflow:visible}
.data-field{background:transparent;border:0;border-radius:0;padding:0}
.data-field label{font-size:12px;font-weight:500;text-transform:none;letter-spacing:0;color:var(--muted)}
.data-field .value{font-size:15px;font-weight:400;padding:10px 12px;background:var(--surface)}
.data-field textarea{border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0;height:300px;min-height:260px;line-height:1.9}
.data-field textarea:focus-visible{outline:2px solid #007ca7;outline-offset:4px}
#receiptReview{margin:0 0 14px;font-size:11px}
#emptyState{min-height:480px;line-height:1.8}
@media(max-width:760px){.receipt-pane-header{padding:15px 18px}#previewSection{height:420px}.upload-zone{min-height:260px}#emptyState{min-height:240px}.editor-panel>.panel-section{padding:18px}.extracted-data{padding:18px}}

.upload-zone .receipt-upload-icon{color:var(--muted);opacity:.7;margin:0 auto 22px!important;flex:none}
