:root{color:#0f172a;background:radial-gradient(circle at 0 0,#0ea5e933,#0000 28%),radial-gradient(circle at 100% 0,#f973162e,#0000 24%),linear-gradient(#f8fafc 0%,#eef2ff 100%);font-family:Avenir Next,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,textarea,select{font:inherit}.app-shell{min-height:100vh;padding:24px}.hero-panel{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#ffffffb3;border:1px solid #94a3b859;border-radius:24px;max-width:1200px;margin:0 auto 20px;padding:28px}.hero-copy h1,.history-header h2{margin:0;font-size:clamp(2rem,4vw,3.5rem);line-height:1.05}.hero-text{color:#334155;max-width:720px;margin:16px 0 0;font-size:1rem;line-height:1.6}.workspace{grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr);gap:20px;max-width:1200px;margin:0 auto;display:grid}.editor-panel,.history-panel{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffffd6;border:1px solid #94a3b84d;border-radius:24px;padding:24px}.field{gap:10px;margin-bottom:20px;display:grid}.field span,.match-group legend,.saved-label{text-transform:uppercase;letter-spacing:.04em;color:#475569;font-size:.88rem;font-weight:700}textarea,input,select{background:#fff;border:1px solid #cbd5e1;border-radius:14px;width:100%;padding:14px 16px}textarea{resize:vertical;min-height:120px}.convert-row{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:18px;display:flex}.convert-action{color:#fff;background:#0f766e}.inline-status{color:#475569;margin:0;font-size:.92rem;font-weight:600}.result-grid{gap:16px;margin-bottom:20px;display:grid}.result-card{background:#f8fafc;border:1px solid #dbe4f0;border-radius:18px;padding:18px}.result-card.primary{background:linear-gradient(135deg,#dbeafe 0%,#f8fafc 100%);border-color:#93c5fd}.result-card header{align-items:center;gap:12px;margin-bottom:14px;display:flex}.result-card h2{margin:0;font-size:1.15rem}.badge{color:#fff;background:#0f172a;border-radius:999px;align-items:center;padding:6px 10px;font-size:.72rem;font-weight:700;display:inline-flex}.badge.muted{background:#64748b}.braille{word-break:break-word;margin:0;font-size:clamp(1.5rem,3vw,2.25rem);line-height:1.5}.braille.secondary{color:#334155}.meta-line{color:#475569;margin:0 0 12px;font-size:.9rem;font-weight:600}.notes-box{background:#fefce8;border:1px solid #fde68a;border-radius:16px;margin-bottom:20px;padding:16px 18px}.notes-box h3{margin:0 0 10px;font-size:1rem}.notes-box ul{color:#713f12;margin:0;padding-left:18px}.detail-grid{grid-template-columns:1fr;gap:16px;display:grid}.match-group{border:0;flex-wrap:wrap;gap:10px;margin:0 0 20px;padding:0;display:flex}.toggle,.action,.text-button{cursor:pointer;border:0}.toggle{color:#1e293b;background:#e2e8f0;border-radius:999px;padding:12px 16px}.toggle.selected{color:#fff;background:#0f172a}.photo-block{margin-bottom:20px}.photo-preview{gap:12px;display:grid}.photo-preview img,.saved-image{object-fit:cover;border:1px solid #cbd5e1;border-radius:18px;width:100%}.saved-image{max-height:220px}.photo-meta{justify-content:space-between;align-items:center;gap:12px;display:flex}.action-row{flex-wrap:wrap;gap:12px;display:flex}.action{border-radius:14px;padding:14px 18px;font-weight:700}.primary-action{color:#fff;background:#0f172a}.secondary-action{color:#0c4a6e;background:#e0f2fe}.status,.error,.empty-state,.saved-meta{color:#475569}.error{color:#b91c1c}.history-header{justify-content:space-between;align-items:end;gap:16px;margin-bottom:20px;display:flex}.field.compact{min-width:180px;margin-bottom:0}.record-list{gap:16px;display:grid}.saved-card{cursor:pointer;background:#f8fafc;border:1px solid #dbe4f0;border-radius:18px;padding:18px;transition:border-color .16s,box-shadow .16s,transform .16s}.saved-card:hover,.saved-card:focus-visible{border-color:#60a5fa;outline:0;transform:translateY(-1px);box-shadow:0 14px 34px #0f172a1f}.saved-card-top,.saved-actions{justify-content:space-between;align-items:start;gap:12px;display:flex}.saved-text{margin:0 0 6px;font-size:1.05rem;font-weight:700}.saved-braille{word-break:break-word;margin:4px 0 14px;font-size:1.35rem}.saved-braille.subtle{color:#334155}.status-pill{text-transform:capitalize;color:#0f172a;background:#e2e8f0;border-radius:999px;padding:7px 10px;font-size:.78rem}.status-pill.match{color:#166534;background:#dcfce7}.status-pill.not_match{color:#991b1b;background:#fee2e2}.text-button{color:#0369a1;background:0 0;padding:0;font-weight:700}.text-button.danger{color:#b91c1c}.modal-backdrop{z-index:20;background:#0f172a9e;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.record-modal{background:#fff;border-radius:22px;grid-template-rows:auto minmax(0,1fr) auto;width:min(720px,100%);max-height:min(860px,100vh - 48px);display:grid;overflow:hidden;box-shadow:0 30px 80px #0f172a59}.modal-header,.modal-actions{justify-content:space-between;align-items:start;gap:16px;padding:22px 24px;display:flex}.modal-header{border-bottom:1px solid #e2e8f0}.modal-header h2{margin:0 0 6px;font-size:1.6rem}.icon-button{color:#0f172a;cursor:pointer;background:#e2e8f0;border:0;border-radius:999px;width:38px;height:38px;font-size:1.5rem;line-height:1}.modal-body{gap:14px;padding:20px 24px 24px;display:grid;overflow:auto}.modal-section{background:#f8fafc;border:1px solid #dbe4f0;border-radius:16px;padding:16px}.modal-section.primary{background:#eff6ff;border-color:#93c5fd}.modal-section-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.modal-source{color:#111827;white-space:pre-wrap;word-break:break-word;margin:8px 0 0;font-size:1.05rem;line-height:1.55}.modal-image{object-fit:contain;background:#e2e8f0;border:1px solid #cbd5e1;border-radius:16px;width:100%;max-height:360px}.modal-actions{border-top:1px solid #e2e8f0;justify-content:flex-end}.eyebrow{color:#0369a1;text-transform:uppercase;letter-spacing:.08em;margin:0 0 10px;font-size:.75rem;font-weight:700}@media (width<=960px){.workspace{grid-template-columns:1fr}}@media (width<=640px){.app-shell{padding:16px}.hero-panel,.editor-panel,.history-panel{border-radius:20px;padding:18px}.history-header,.photo-meta,.saved-card-top,.saved-actions,.modal-header,.modal-actions,.action-row,.convert-row{flex-direction:column;align-items:stretch}.modal-backdrop{padding:12px}.record-modal{border-radius:18px;max-height:calc(100vh - 24px)}}
