.hypothesis-live-panel{margin:0;padding:32px clamp(16px,4vw,64px);background:#f5f9fd;color:#203a55;border-top:1px solid #c6d7e9;font:14px/1.7 system-ui}.hypothesis-live-panel h2{font-size:24px;margin:0 0 8px}.hypothesis-live-panel h3{font-size:17px;line-height:1.6;overflow-wrap:anywhere}.narrative-status{display:inline-block;padding:4px 10px;background:#e0edfa;border-radius:6px;font-size:12px}.hypothesis-live-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:460px;overflow:auto;border:1px solid #c6d7e9;border-radius:10px;background:white;padding:22px;font:14px/1.85 system-ui}.narrative-actions{display:flex;gap:10px;flex-wrap:wrap}.hypothesis-live-panel button{padding:10px 16px;min-height:42px;border:1px solid #a6c6e5;border-radius:6px;background:#fff;color:#15538e;cursor:pointer;font:600 13px system-ui}.hypothesis-live-panel details{margin-top:20px;padding:18px;border:1px solid #c6d7e9;border-radius:10px}.hypothesis-live-panel summary{font-weight:650;cursor:pointer}.hypothesis-live-panel textarea,.hypothesis-live-panel select{display:block;box-sizing:border-box;width:100%;max-width:100%;padding:12px;margin:14px 0;color:#203a55;background:white;border:1px solid #aac1d9;border-radius:6px;font:14px/1.7 system-ui}.narrative-analysis p{padding:10px;border-left:3px solid #5598d4;background:#eaf3fc}.gb-dark .hypothesis-live-panel{background:#142339;color:#dfebf8}.gb-dark .hypothesis-live-panel pre,.gb-dark .hypothesis-live-panel textarea,.gb-dark .hypothesis-live-panel select,.gb-dark .hypothesis-live-panel button{background:#1b304b;color:#dfebf8;border-color:#476587}.gb-dark .narrative-status,.gb-dark .narrative-analysis p{background:#203f63}.hypothesis-live-panel button:focus-visible,.hypothesis-live-panel summary:focus-visible{outline:3px solid #4a9fe8;outline-offset:3px}@media(max-width:550px){.hypothesis-live-panel pre{padding:14px}.hypothesis-live-panel textarea,.hypothesis-live-panel select{font-size:16px}}
.internal-chat-log{max-height:380px;overflow:auto;scrollbar-gutter:stable}.internal-chat-message{border:1px solid #c6d7e9;border-radius:8px;padding:14px 18px;background:white;margin:12px 0}.internal-chat-message strong{font-size:12px;color:#246a9e}.internal-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.gb-dark .internal-chat-message{background:#1b304b;border-color:#476587}.gb-dark .internal-chat-message strong{color:#9aceef}

/* Streamlined research actions — one save, one explicit text-to-canvas update. */
.narrative-source-label{display:block;margin-top:18px;font-weight:700;font-size:14px}
#hypothesisSourceEditor{min-height:145px;resize:vertical;line-height:1.65}
.hypothesis-live-panel .narrative-primary-action{background:#1263a6;color:#fff;border-color:#1263a6}
.narrative-more-actions{margin:14px 0 0!important;padding:8px 14px!important}
.narrative-more-actions summary{font-size:13px}
.narrative-more-actions .narrative-actions{margin-top:12px}
.gb-dark .hypothesis-live-panel .narrative-primary-action{background:#2578b7;color:#fff;border-color:#56a8e8}

/* Restored seven-field research editor. Fields precede the optional compiled preview. */
.narrative-field-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:22px;max-width:1040px}
.narrative-field{min-width:0}
.hypothesis-live-panel .narrative-field-label{display:block;font-size:14px;font-weight:700;margin:0 0 6px;color:inherit}
.hypothesis-live-panel .narrative-field input,.hypothesis-live-panel .narrative-field textarea{display:block;width:100%;box-sizing:border-box;margin:0;padding:13px 15px;border:1px solid #b7cbe0;background:#fff;color:#1d344d;border-radius:9px;font:14px/1.65 system-ui;resize:vertical}
.hypothesis-live-panel .narrative-field input{min-height:46px;font-weight:600}
.hypothesis-live-panel .narrative-field textarea{min-height:114px}
.hypothesis-live-panel .narrative-field input:focus,.hypothesis-live-panel .narrative-field textarea:focus{outline:2px solid #3588db;outline-offset:1px;border-color:#3588db}
.hypothesis-live-panel .narrative-field :is(input,textarea)::placeholder{color:#71849a;opacity:1}
.hypothesis-live-panel .narrative-assembled-preview{margin-top:24px}
.gb-dark .hypothesis-live-panel .narrative-field :is(input,textarea){background:#1b304b;color:#e9f2fa;border-color:#476587}
.gb-dark .hypothesis-live-panel .narrative-field :is(input,textarea)::placeholder{color:#a8bbcc}
@media(min-width:1000px){.narrative-field-grid{gap:18px}}
/* Same seven inputs and shared editor in Guided and Pro. */
.hypothesis-live-panel{background:#0b1928!important;color:#e8f0f8!important;padding:32px clamp(18px,4vw,64px);border-top:1px solid #38556c}.hypothesis-live-panel>h2{font-size:26px}.hypothesis-live-panel>p{color:#a9bed1;max-width:950px}.narrative-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.narrative-field{padding:18px;border:1px solid #284357;border-radius:10px;background:#0e2031}.narrative-field:first-child,.narrative-field:nth-child(2),.narrative-field:last-child{grid-column:1/-1}.narrative-field-label{display:block;font-weight:600;color:#e8f0f8}.hypothesis-live-panel .narrative-field input,.hypothesis-live-panel .narrative-field textarea,.narrative-intake textarea{background:#122b3e!important;border:1px solid #38556c!important;color:#e8f0f8!important;border-radius:7px;line-height:1.7;width:100%;box-sizing:border-box;padding:12px;margin:10px 0 0}.narrative-field textarea{min-height:160px;resize:vertical}.narrative-field:first-child input{min-height:44px}.narrative-intake{padding:24px;margin:24px 0;border:1px solid #2a737d;border-radius:12px;background:#0d2632}.narrative-intake h3{margin:0 0 6px}.narrative-intake p{color:#a9bed1}.narrative-intake .narrative-actions{margin-top:14px}.hypothesis-live-panel button.narrative-primary-action,.narrative-intake .narrative-actions button:first-child{background:#35dce7!important;border-color:#35dce7!important;color:#06242e!important;font-weight:700}.narrative-extraction-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.narrative-extract-row{display:block;border:1px solid #38556c;background:#102335;border-radius:8px;padding:12px;min-width:0}.narrative-extract-row>input{width:auto!important;margin-right:8px}.narrative-extract-row small{display:block;color:#adc2d4}.narrative-extract-row pre{font-size:12px!important;max-height:180px!important;margin:8px 0 0!important;padding:12px!important;background:#0b1928!important;border:0!important}.narrative-warning{color:#ffd093!important}.hypothesis-live-panel>details{background:#0d2030;border-color:#284357!important}.hypothesis-live-panel> .narrative-actions{margin-top:20px}.hypothesis-live-panel button:focus-visible{outline:2px solid #35dce7;outline-offset:3px}
@media(max-width:700px){.narrative-field-grid,.narrative-extraction-preview{grid-template-columns:1fr}.narrative-field{grid-column:1!important;padding:14px}.narrative-intake{padding:16px}.hypothesis-live-panel{padding:24px 16px}.hypothesis-live-panel textarea{font-size:16px!important}}
