:root { --paper: #f7f2e9; --surface: #fffdf8; --ink: #10283e; --muted: #58636d; --line: #d9d3c6; --blue: #0759b8; --blue-dark: #003f88; --blue-soft: #e8f1fb; --yellow: #ffd548; --yellow-soft: #fff4c6; --orange: #f05a24; --orange-dark: #bb3914; --green: #237b56; font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
input, textarea { min-width: 0; width: 100%; color: var(--ink); background: #fffefa; border: 1px solid #b9bec1; border-radius: 9px 7px 10px 8px; padding: 12px 13px; line-height: 1.65; }
textarea { resize: vertical; min-height: 78px; }
input { min-height: 46px; }
input::placeholder, textarea::placeholder { color: #78818a; }
a { color: var(--blue-dark); text-underline-offset: 3px; overflow-wrap: anywhere; }
p { line-height: 1.7; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 18px; font-size: 23px; letter-spacing: -.03em; line-height: 1.5; }
h3 { font-size: 17px; line-height: 1.5; margin-bottom: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px; background: var(--yellow); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.shell { width: min(1180px, calc(100% - 64px)); margin: auto; }
.topbar { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; background: none; padding: 0; border: 0; text-align: left; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; border: 2px solid var(--ink); border-radius: 50% 47% 52% 45%; color: white; background: var(--blue); box-shadow: 3px 3px 0 var(--yellow); font: italic 28px Georgia, serif; }
.brand-sub { display: block; font-size: 11px; margin-top: 3px; letter-spacing: .18em; color: var(--blue-dark); }
.top-actions { display: flex; align-items: center; gap: 22px; font-size: 12px; }
.local-label { color: var(--muted); }
.save-status { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); }
.save-status::before { content: ''; width: 6px; height: 6px; background: #8a8f90; border-radius: 50%; }
.save-status[data-tone="saved"] { color: var(--green); }
.save-status[data-tone="saved"]::before { background: var(--green); }
.save-status[data-tone="error"] { color: #a02e18; }
.save-status[data-tone="error"]::before { background: #a02e18; }
.hero { position: relative; display: grid; grid-template-columns: 1fr 280px; gap: 24px; padding: 48px 46px 35px; color: white; background: var(--blue); border: 2px solid var(--ink); border-radius: 24px 19px 27px 20px / 20px 24px 18px 25px; box-shadow: 7px 7px 0 var(--yellow); }
.eyebrow { margin-bottom: 17px; font-size: 11px; font-weight: 700; letter-spacing: .15em; line-height: 1.6; }
.hero .eyebrow { color: #d4e6ff; }
.hero h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.28; letter-spacing: -.045em; font-weight: 850; margin-bottom: 21px; }
.marker { position: relative; color: var(--yellow); white-space: nowrap; }
.marker::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 5px; border: 2px solid var(--yellow); border-radius: 45%; transform: rotate(-3deg); }
.hero-desc { color: #e6f0ff; font-size: 15px; margin-bottom: 2px; line-height: 1.8; }
.hero-art { position: relative; align-self: center; height: 235px; margin-top: 16px; color: #fffaf0; transform: rotate(-4deg); }
.hero-art svg { width: 100%; height: 170px; position: absolute; top: 27px; left: -10px; }
.art-note { position: absolute; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 5px 8px 5px 9px; color: var(--ink); font-size: 17px; font-weight: 750; box-shadow: 4px 4px 0 var(--ink); }
.note-one { top: 0; left: 0; background: var(--yellow); transform: rotate(-5deg); }
.note-two { right: 0; bottom: 7px; color: white; background: var(--orange); transform: rotate(9deg); }
.capture-paper { position: relative; grid-column: 1 / -1; color: var(--ink); background: var(--surface); border: 2px solid var(--ink); border-radius: 14px 11px 16px 12px; padding: 24px 27px; box-shadow: 4px 4px 0 rgba(16,40,62,.4); }
.chip-fieldset, .angle-fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 8px 14px; background: transparent; border: 1px solid #c7cbd0; border-radius: 22px; font-size: 13px; font-weight: 650; }
.chip span { font-size: 17px; }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.chip:hover { border-color: var(--blue); }
.label-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
label { font-size: 13px; font-weight: 650; }
.preview-tag, .preview-line { font-size: 11px; color: var(--blue-dark); }
.preview-tag { padding: 4px 7px; background: var(--blue-soft); border-radius: 4px; }
#rawInput { background: #fff; border-color: #bfc8d2; min-height: 116px; font-size: 16px; }
.helper { font-size: 12px; line-height: 1.75; color: var(--muted); margin: 9px 0 18px; }
.capture-bottom { display: flex; align-items: flex-end; gap: 24px; }
.source-input { flex: 1; min-width: 0; max-width: 610px; }
.source-input label { display: block; margin-bottom: 6px; }
.source-input small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.optional { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 46px; padding: 11px 20px; border: 1.5px solid var(--ink); border-radius: 9px 7px 11px 8px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.button.primary { color: white; background: var(--orange); box-shadow: 3px 3px 0 var(--ink); }
.button.primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.button.quiet { background: var(--surface); }
.button.quiet:hover, .utility:hover { background: var(--blue-soft); }
.button.utility { min-height: 41px; padding: 7px 12px; font-size: 12px; border-color: #a5b3c2; background: transparent; box-shadow: none; }
.text-button { background: none; border: 0; color: var(--blue-dark); padding: 9px 4px; min-height: 42px; font-size: 13px; line-height: 1.6; font-weight: 650; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-under { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 8px 23px; }
.home-under p { margin: 0; font-size: 12px; color: var(--muted); }
.small-note { color: var(--muted); font-size: 11px; }
.experience-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 15px; padding: 10px 13px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 4px 8px 8px 4px; font-size: 12px; line-height: 1.65; }
.experience-source .text-button { flex: 0 0 auto; }
.route-paper { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 50px; list-style: none; font-size: 14px; font-weight: 750; }
summary::-webkit-details-marker { display: none; }
.route-paper summary small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 12px; }
.route-icon { display: inline-block; margin-right: 9px; font-size: 23px; color: var(--blue); }
.route-grid, .two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.route-grid { padding: 12px 0 0; }
.route-grid input { display: block; margin-top: 8px; }
.recent-section { margin-top: 34px; }
.library-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.library-section .section-heading { margin-bottom: 14px; }
.library-section .section-heading p { margin: 5px 0 0; }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.library-shelf { min-width: 0; padding: 17px; background: #eee9df; border: 1px solid var(--line); border-radius: 12px 9px 13px 10px; }
.shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #d3ccbf; }
.shelf-heading h3 { margin: 0; font-size: 15px; }
.library-list { display: grid; gap: 10px; padding-top: 10px; }
.library-card { min-width: 0; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px 7px 9px 8px; }
.library-card h4 { margin: 9px 0 5px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.library-card > p { margin: 5px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.library-card .text-button { margin-left: -4px; }
.library-card .experience-observation, .library-card .experience-test { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.library-card .experience-metrics { color: var(--blue-dark); font-weight: 700; }
.library-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 7px; }
.library-actions .button { min-height: 38px; padding: 7px 10px; font-size: 11px; }
.library-actions .text-button { min-height: 38px; }
.library-empty { margin: 0; padding: 10px 2px 4px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.source-chip { color: var(--blue-dark); font-size: 10px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.recent-section h2 { font-size: 20px; }
.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.recent-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 12px 9px 13px 10px; background: var(--surface); }
.recent-card h3 { margin-top: 12px; overflow-wrap: anywhere; font-size: 16px; }
.recent-card p { margin: 10px 0; color: var(--muted); font-size: 12px; }
.recent-card .text-button { margin-left: -4px; }
.recent-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; align-items: center; }
.empty-recent { grid-column: 1 / -1; padding: 27px 0; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
.editor-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 23px; }
.editor-tools { display: flex; gap: 9px; flex-wrap: wrap; }
.editor-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 28px; }
.editor-heading .eyebrow { color: var(--blue); margin-bottom: 9px; }
.editor-heading h1 { font-size: 36px; letter-spacing: -.035em; margin: 0; }
.step-intro { font-size: 14px; color: var(--muted); margin: 11px 0 0; }
.stage-stack { display: flex; align-items: flex-end; flex-direction: column; gap: 9px; }
.stage-badge { display: inline-block; font-size: 12px; font-weight: 650; padding: 6px 9px; background: var(--yellow-soft); border: 1px solid #cfb75a; border-radius: 5px; }
.demo-label { color: #994017; font-size: 11px; line-height: 1.65; }
.progress-nav { margin-bottom: 25px; }
.progress-nav ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.progress-nav button { width: 100%; display: flex; gap: 9px; align-items: center; min-height: 55px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 12px; white-space: nowrap; }
.progress-nav b { font-size: 11px; color: #6a747e; }
.progress-nav button[aria-current="step"] { color: white; background: var(--blue); border-color: var(--ink); box-shadow: 2px 2px 0 var(--yellow); }
.progress-nav button[aria-current="step"] b { color: var(--yellow); }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 274px; gap: 27px; align-items: start; }
.step-paper { background: var(--surface); border: 1px solid var(--line); border-radius: 15px 11px 16px 12px; padding: 28px; min-width: 0; }
.preview-line { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin: 0 0 25px; display: flex; flex-wrap: wrap; gap: 5px 16px; }
.preview-line span { color: var(--muted); font-size: 10px; }
.role-note { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 4px 16px; margin: -8px 0 22px; padding: 12px 15px; background: #f0f5fa; border-left: 3px solid var(--blue); border-radius: 4px 8px 8px 4px; }
.role-note .mini-label { grid-column: 1 / -1; margin-bottom: 2px; }
.role-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.sticker { transform: rotate(3deg); background: var(--yellow); border: 1px solid var(--ink); padding: 5px 8px; font-size: 11px; white-space: nowrap; }
.summary-box { padding: 17px 18px; background: var(--blue-soft); border-radius: 9px; margin-bottom: 24px; }
.summary-box p { font-size: 15px; margin: 7px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.summary-box small { font-size: 11px; color: var(--muted); }
.mini-label { display: block; color: var(--blue-dark); font-size: 11px; font-weight: 750; letter-spacing: .035em; }
.angle-fieldset legend { padding: 0; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.angle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.angle-option { min-width: 0; position: relative; display: flex; flex-direction: column; padding: 15px 12px; background: #fff; border: 1px solid #c4cbd1; border-radius: 9px; gap: 9px; cursor: pointer; }
.angle-option input { width: 18px; min-height: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--blue); }
.angle-option:has(input:checked) { border: 2px solid var(--blue); background: var(--blue-soft); padding: 14px 11px; }
.angle-option strong { font-size: 13px; line-height: 1.7; }
.angle-option small { color: var(--muted); line-height: 1.6; font-size: 11px; font-weight: 400; }
.recommend-box { border-left: 3px solid var(--orange); padding-left: 15px; margin: 23px 0; }
.recommend-box h3 { font-size: 13px; margin-bottom: 5px; }
.recommend-box p { margin-bottom: 7px; font-size: 12px; overflow-wrap: anywhere; }
.field { display: block; margin-bottom: 21px; line-height: 1.65; }
.field input, .field textarea { display: block; margin-top: 8px; font-weight: 400; font-size: 14px; }
.script-field textarea { background: #fff; font-size: 16px; line-height: 1.95; }
.next-note { display: flex; align-items: baseline; gap: 13px; color: var(--muted); font-size: 12px; }
.next-note span { color: var(--blue-dark); font-weight: 750; white-space: nowrap; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.source-sidebar { min-width: 0; }
.source-sidebar details { border-top: 3px solid var(--orange); }
.source-sidebar summary { font-size: 13px; }
.source-sidebar summary span { color: var(--orange); }
.source-body { padding: 15px 0; }
.original-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; margin: 10px 0 16px; max-height: 400px; overflow: auto; }
.source-body a { font-size: 12px; }
.source-body textarea { margin-top: 8px; font-size: 12px; }
.sidebar-route { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 17px; }
.sidebar-route p { white-space: pre-wrap; font-size: 12px; overflow-wrap: anywhere; color: var(--muted); margin-top: 9px; }
.privacy-note { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 15px; margin: 18px 0 0; }
.gate { padding: 32px 22px; background: var(--yellow-soft); border: 1px dashed #cbb660; border-radius: 10px; text-align: center; }
.gate p { font-size: 13px; color: var(--muted); }
.big-number { display: block; margin-bottom: 15px; color: var(--blue); font-size: 40px; font-weight: 850; }
.material-question { padding: 20px; background: var(--yellow-soft); border-radius: 10px; }
.material-question p { font-size: 13px; }
.material-question textarea { display: block; margin: 9px 0 15px; }
.covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 26px 0 23px; }
.cover-card { position: relative; text-align: left; aspect-ratio: 3/4; width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 13px; border: 2px solid var(--ink); border-radius: 9px 6px 10px 7px; background: var(--blue); color: white; overflow: hidden; }
.cover-card:nth-child(2) { background: var(--yellow); color: var(--ink); transform: rotate(1.2deg); }
.cover-card:nth-child(3) { background: var(--orange); transform: rotate(-1.2deg); }
.cover-card[aria-pressed="true"] { outline: 3px solid var(--blue); outline-offset: 4px; box-shadow: 4px 4px 0 var(--ink); }
.cover-card strong { position: relative; z-index: 1; display: block; font-size: clamp(14px, 1.75vw, 23px); line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; max-height: 75%; overflow: auto; }
.cover-card small { position: relative; z-index: 1; font-size: 9px; letter-spacing: .08em; }
.cover-card::after { content: '✳'; position: absolute; right: -10px; bottom: 13%; font-size: 90px; line-height: 1; opacity: .17; }
.cover-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.checklist { display: grid; gap: 10px; margin: 22px 0; }
.check-row { display: flex; gap: 11px; align-items: flex-start; font-weight: 400; background: #f2f6f9; padding: 13px; border-radius: 6px; cursor: pointer; line-height: 1.6; }
.check-row input { accent-color: var(--blue); width: 19px; min-height: 19px; height: 19px; flex: 0 0 19px; margin: 1px 0 0; }
.publication-box { padding: 22px; background: #faf6ed; border: 1px solid var(--line); border-radius: 10px; }
.publication-box h3 { margin-top: 7px; }
.publication-box .field:last-of-type { margin-bottom: 0; }
.confirmed-note { padding: 12px; background: var(--blue-soft); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 18px; }
.metric-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 22px 0; }
.metric-inputs .field { margin: 0; }
.pending-note { font-size: 12px; background: var(--yellow-soft); padding: 14px; border-left: 3px solid var(--orange); }
.review-summary { margin-top: 22px; padding: 18px; border: 1px solid #9dbcad; border-radius: 8px; background: #eff8f2; font-size: 13px; white-space: pre-wrap; line-height: 1.8; }
.notice { padding: 15px 18px; border: 1px solid #de9b8d; border-radius: 8px; background: #fff0e8; font-size: 13px; margin-bottom: 20px; }
.notice p { margin-bottom: 8px; }
.notice .button { margin: 4px 8px 4px 0; }
.error, .field-error { color: #982e1b; }
.field-error { font-size: 13px; margin: 14px 0 0; }
.footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 24px 0; margin-top: 52px; color: var(--muted); font-size: 11px; }
dialog { width: min(660px, calc(100% - 32px)); padding: 28px; border: 2px solid var(--ink); border-radius: 16px 12px 18px 13px; color: var(--ink); background: var(--surface); box-shadow: 6px 6px 0 var(--yellow); max-height: 90vh; overflow: auto; }
dialog::backdrop { background: rgba(16,40,62,.55); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.dialog-heading h2 { margin-bottom: 12px; }
.dialog-heading .eyebrow { color: var(--blue); }
.icon-button { border: 1px solid var(--line); border-radius: 50%; background: transparent; flex: 0 0 42px; width: 42px; height: 42px; font-size: 26px; }
.demo-options { display: grid; gap: 12px; }
.demo-option { display: block; width: 100%; text-align: left; padding: 17px; background: var(--blue-soft); border: 1px solid #b6c8db; border-radius: 9px; }
.demo-option:nth-child(2) { background: var(--yellow-soft); border-color: #d4c275; }
.demo-option:nth-child(3) { background: #ffeadc; border-color: #deb195; }
.demo-option strong { display: block; font-size: 16px; margin: 7px 0; }
.demo-option span { font-size: 11px; color: var(--muted); }
.demo-option p { margin: 0; font-size: 12px; }
#manualText { font-size: 13px; margin: 10px 0 18px; }
.toast { position: fixed; z-index: 15; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 13px 21px; font-size: 13px; color: white; background: var(--ink); border-left: 5px solid var(--yellow); border-radius: 8px; box-shadow: 0 8px 30px #10283e26; }
/* Keep the input and its primary action together within a 1280 × 720 first screen. */
@media (min-width: 1021px) {
  .topbar { min-height: 76px; }
  .hero { padding: 28px 34px 25px; gap: 18px; grid-template-columns: 1fr 260px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(40px, 4vw, 50px); margin-bottom: 12px; }
  .hero-desc { font-size: 14px; line-height: 1.65; }
  .hero .desktop-break { display: none; }
  .hero-art { height: 175px; margin-top: 0; }
  .hero-art svg { height: 135px; top: 16px; }
  .capture-paper { padding: 16px 22px; }
  .chips { margin-bottom: 14px; }
  .chip { min-height: 36px; padding: 6px 12px; font-size: 12px; }
  .label-row { margin-bottom: 8px; }
  #rawInput { height: 96px; min-height: 96px; }
  .capture-paper > .helper { margin: 6px 0 10px; }
  .source-input { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; align-items: center; }
  .source-input label { margin: 0; }
  .source-input small { grid-column: 2; margin-top: 4px; }
  .capture-bottom { align-items: center; }
}
@media (max-width: 1020px) { .shell { width: calc(100% - 40px); } .hero { padding: 35px 30px 29px; grid-template-columns: 1fr 210px; } .hero-art { height: 205px; } .art-note { font-size: 14px; padding: 10px 12px; } .editor-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 20px; } .step-paper { padding: 23px; } .progress-nav button { padding: 10px 8px; gap: 6px; font-size: 11px; } .angle-grid { grid-template-columns: 1fr; } .angle-option { display: grid; grid-template-columns: 18px 1fr; align-items: center; } .angle-option small { grid-column: 2; } }
@media (max-width: 780px) { .topbar { min-height: 84px; } .local-label { display: none; } .hero { padding: 28px 22px 23px; gap: 20px; grid-template-columns: 1fr; } .hero-art { display: none; } .hero h1 { font-size: 43px; } .capture-paper { padding: 20px; } .capture-bottom { align-items: stretch; gap: 20px; flex-direction: column; } .capture-bottom .primary { align-self: flex-start; } .home-under { align-items: flex-start; flex-direction: column; gap: 0; padding-bottom: 16px; } .home-under .small-note { display: none; } .recent-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .editor-layout { grid-template-columns: 1fr; gap: 16px; } .source-sidebar { grid-row: 1; } .source-sidebar details { background: #ece9e1; border-top: 0; border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; } .source-body { padding-top: 5px; } .original-text { max-height: 240px; } .source-sidebar summary { min-height: 48px; } .editor-heading h1 { font-size: 31px; } .progress-nav ol { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; } .progress-nav button { min-height: 45px; padding: 8px 10px; font-size: 12px; } .cover-card strong { font-size: 21px; } .stage-stack { max-width: 170px; } .preview-tag { font-size: 10px; } }
@media (max-width: 480px) { .shell { width: calc(100% - 28px); } .brand { gap: 9px; font-size: 17px; } .brand-mark { width: 37px; height: 37px; font-size: 24px; } .brand-sub { font-size: 10px; } .top-actions { max-width: 140px; } .save-status { font-size: 10px; } .hero { padding: 25px 15px 19px; border-radius: 17px 13px 18px 14px; box-shadow: 4px 4px 0 var(--yellow); } .hero h1 { font-size: 37px; } .hero .eyebrow { font-size: 9px; letter-spacing: .1em; } .hero-desc { font-size: 13px; } .desktop-break { display: none; } .capture-paper { padding: 18px 13px; } .chips { gap: 7px; margin-bottom: 19px; } .chip { font-size: 11px; min-height: 39px; padding: 7px 10px; } .chip span { font-size: 14px; } .capture-bottom .primary { width: 100%; } .label-row { gap: 7px; } .source-input input, #rawInput { font-size: 16px; } .route-paper summary small { display: block; margin: 3px 0 0 32px; font-size: 10px; } .route-grid, .two-columns { grid-template-columns: 1fr; gap: 0; } .route-grid label { margin-bottom: 15px; } .recent-grid { grid-template-columns: 1fr; } .recent-card { padding: 18px; } .editor-top { align-items: flex-start; flex-direction: column; gap: 6px; padding-bottom: 19px; } .editor-tools { width: 100%; gap: 8px; } .editor-tools button { flex: 1; } .editor-heading { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 20px; } .editor-heading h1 { font-size: 30px; } .stage-stack { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; } .step-intro { font-size: 12px; } .stage-badge { font-size: 11px; } .step-paper { padding: 21px 16px; } .step-paper h2 { font-size: 20px; } .preview-line { font-size: 10px; margin-bottom: 21px; } .step-actions { gap: 10px; } .step-actions .primary { width: 100%; } .covers { gap: 9px; } .cover-card { padding: 12px 9px; } .cover-card strong { font-size: 15px; } .cover-card small { font-size: 8px; letter-spacing: 0; } .cover-inputs { grid-template-columns: 1fr; gap: 0; } .publication-box { padding: 17px 13px; } .metric-inputs { grid-template-columns: repeat(2, minmax(0,1fr)); } .field input, .field textarea, .route-grid input { font-size: 16px; } .footer { margin-top: 34px; font-size: 10px; } dialog { padding: 22px 18px; } }
@media (max-width: 480px) {
  .hero .eyebrow { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 16px; }
  .capture-bottom { gap: 12px; }
  #rawInput { min-height: 104px; }
}
@media (max-width: 780px) {
  .library-grid { grid-template-columns: 1fr; }
  .role-note { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .library-shelf { padding: 13px; }
  .experience-source { align-items: flex-start; flex-direction: column; gap: 3px; }
  .experience-source .text-button { margin-left: -4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.ai-action { min-height: 42px; }
.ai-insight { margin: 18px 0 24px; padding: 19px 20px; border: 1.5px solid #b8d0c2; border-left: 5px solid var(--green); border-radius: 10px 8px 12px 9px; background: #f1f8f2; }
.ai-insight-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ai-insight > p { margin-bottom: 11px; font-size: 13px; line-height: 1.7; }
.ai-evidence-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 13px 0; }
.ai-evidence-group { min-width: 0; padding: 11px; background: #fffefa; border: 1px solid #d3e2d7; border-radius: 7px; }
.ai-evidence-group strong { font-size: 11px; }
.ai-evidence-group p { margin: 5px 0 0; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.ai-detail { padding: 10px 12px; background: #fff8df; border-radius: 6px; }
.ai-next-action { padding: 12px; border-left: 3px solid var(--orange); background: #fff; font-weight: 700; }
.ai-import-preview { margin: 18px 0; padding: 17px; border: 1px solid #b6c8db; border-radius: 9px; background: #f1f6fc; }
.ai-import-preview h3 { margin-bottom: 13px; }
.ai-preview-field { margin: 9px 0; padding: 10px 12px; background: #fff; border-radius: 6px; }
.ai-preview-field strong { font-size: 12px; }
.ai-preview-field p, .ai-preview-note { margin: 5px 0 0; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-import-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#aiResultInput { margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
@media (max-width: 780px) { .ai-evidence-groups { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ai-import-actions { flex-direction: column; } .ai-import-actions .button { width: 100%; } .ai-insight { padding: 15px 13px; } }
