.research-help,.research-empty{font-size:12px;color:var(--txt-3);line-height:1.7;margin:12px 0}.research-head{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}.research-head small{font-size:12px;font-weight:400;color:var(--txt-3);margin-left:12px}.research-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.research-task{padding:18px;border:1px solid var(--hair2);border-radius:12px;background:var(--surface,rgba(255,255,255,.03));min-width:0}.research-task header,.research-task footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.research-task strong{font-size:16px}.research-task header p{font-size:12px;color:var(--txt-3);margin:6px 0}.research-task-meta{font-size:11px;color:var(--txt-3);margin:10px 0;overflow-wrap:anywhere}.research-state{font-size:11px;white-space:nowrap;color:var(--gold-bright)}.research-state.completed{color:#64bc89}.research-state.failed,.research-state.unknown{color:#ec9b8b}.research-meter{height:5px;background:#30291f;border-radius:5px;overflow:hidden;margin:15px 0}.research-meter i{display:block;height:100%;background:linear-gradient(90deg,#c8974a,#e7c880);transition:width .3s}.research-task footer{font-size:12px}.research-task footer span{overflow-wrap:anywhere}.research-task footer button{flex-shrink:0;font-size:12px;padding:7px 12px}.tg-upload-card h3{font-size:14px}.tg-upload-card small{color:var(--txt-3);font-weight:400}.tg-upload-card .up-drop{display:block;padding:22px;text-align:left}.tg-upload-card .up-drop>p{font-size:12px;color:var(--txt-3);margin:10px 0}.tg-upload-chips,.tg-steps{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.tg-steps span{flex:1;text-align:center;border:1px solid var(--hair2);border-radius:8px;padding:10px;font-size:12px;color:var(--txt-3)}
#view-report .paper{max-width:1120px;width:100%}.insight-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin:0 0 24px;font-size:12px;color:#777}.insight-toolbar button{border:1px solid #d9d6cd;background:#fff;color:#666;border-radius:7px;padding:7px 12px;cursor:pointer}.insight-toolbar button[aria-pressed=true]{background:#263d3b;color:#fff;border-color:#263d3b}.insight-v2{color:#283633;font-size:14px;line-height:1.7}.insight-v2 h1{font-size:34px;line-height:1.25;margin:12px 0}.insight-v2 h2{font-size:19px;margin:0 0 12px}.insight-v2 h3{font-size:14px;margin:8px 0}.insight-v2 p{margin:7px 0}.insight-v2 a,.insight-v2 a:visited{color:#1769c2!important;text-decoration:underline!important;text-underline-offset:3px;overflow-wrap:anywhere}.insight-cover{border-bottom:2px solid #baa06c;padding-bottom:22px}.insight-eyebrow{color:#82704e;font-size:12px;letter-spacing:.16em}.insight-cover-meta{display:flex;gap:18px;flex-wrap:wrap;color:#6a746f;font-size:12px}.insight-file-note{font-size:12px;color:#66736b}.insight-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.insight-kpis>div{padding:16px;border-radius:10px;border:1px solid #e1e6df;background:#f4f7f2}.insight-kpis strong{display:block;font-size:28px;color:#315d52}.insight-kpis span{font-size:12px;color:#65766e}.insight-v2 .rep-sum{background:#f7f5ef;padding:22px;margin-bottom:24px}.insight-v2 .rep-sum .blk{margin:12px 0}.insight-v2 .rep-sum ol{display:grid;grid-template-columns:1fr 1fr;gap:8px 25px;padding-left:20px}.insight-viz{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;border:1px solid #e0e6de;padding:22px;border-radius:12px}.insight-viz>div>p{font-size:11px;color:#707b72}.insight-bar{display:grid;grid-template-columns:145px 1fr 28px;gap:8px;align-items:center;margin:13px 0;font-size:12px}.insight-bar>div{height:8px;border-radius:5px;background:#e9ece6;overflow:hidden}.insight-bar i{display:block;background:#a88443;height:100%;border-radius:5px}.insight-evidence-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.insight-evidence-counts>div{padding:12px;border-radius:8px;background:#f2f4ee}.insight-evidence-counts strong{font-size:22px;display:block}.insight-evidence-counts span{font-size:12px}.insight-actions{margin:28px 0}.insight-actions>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.insight-actions article{padding:16px;border:1px solid #e8dfcd;border-radius:10px;background:#fffcf5}.insight-actions article>b{font-size:22px;color:#a58042}.insight-actions article>span{font-size:11px;color:#95662c}.insight-section{margin:12px 0;border:1px solid #e2e5df;border-radius:9px;padding:0 18px}.insight-section>summary{padding:17px 0;font-size:15px;font-weight:600;cursor:pointer;list-style-position:inside}.insight-section>summary span{float:right;font-size:11px;font-weight:400;color:#7b857c}.insight-v2 table{font-size:12px;line-height:1.65;width:100%;table-layout:auto}.insight-v2 td,.insight-v2 th{padding:10px 12px;word-break:normal;overflow-wrap:anywhere}.insight-sources{margin-top:28px}.insight-sources>p{font-size:12px;color:#6c766c}.insight-sources small{display:block;font-weight:400;color:#728077;font-size:11px;margin-top:3px}.insight-sources h2 small{display:inline}.insight-sources td:last-child{width:148px}.source-time{font-size:11.5px;white-space:nowrap;font-variant-numeric:tabular-nums;overflow-wrap:normal}.insight-claims article{padding:15px 0;border-bottom:1px solid #e5e7e1}.insight-claims article:last-child{border:0}.insight-claims p,.insight-claims a{font-size:12px}.claim-state{display:inline-block;padding:2px 8px;border-radius:5px;background:#f2e8d5;font-size:11px}.claim-state.verified{background:#e0eee3;color:#286543}.insight-method{margin:22px 0;font-size:12px;color:#69756c}.insight-method .lead{font-size:12px}.insight-v2 .sub3{font-size:14px}.insight-v2 .lead{font-size:13px;line-height:1.75}
@media(max-width:700px){.research-tasks{grid-template-columns:1fr}.insight-cover h1{font-size:27px}.insight-kpis{grid-template-columns:repeat(2,1fr);gap:8px}.insight-viz,.insight-actions>div,.insight-v2 .rep-sum ol{grid-template-columns:1fr}.insight-viz{padding:15px}.insight-bar{grid-template-columns:125px 1fr 24px}.insight-section{padding:0 12px}.insight-section>summary span{float:none;margin-left:8px}.insight-sources td{padding:8px 5px}.insight-sources td:last-child{width:125px}.source-time{font-size:10.5px}.tg-steps{display:grid;grid-template-columns:1fr 1fr}.insight-v2 table{font-size:12px}}

.insight-summary-more>summary{cursor:pointer;font-size:12px;color:#596b62;padding:10px 0}.tg-upload-card{margin-top:18px}

/* v2.26.1: paired writing cards and monitoring field polish */
.tg-workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;margin-bottom:14px}
.tg-workspace>#tg-card,.tg-workspace>.tg-upload-card{margin:0!important;min-width:0;height:100%;box-sizing:border-box}
.tg-workspace>#tg-card{display:flex;flex-direction:column;align-items:stretch}
#tg-card>[data-page-node-id="tgCardHead001"]{align-items:flex-start!important;flex-direction:column}
#tg-card>[data-page-node-id="tgGenRow001"]{display:block!important}
#tg-card #btn-tg-gen{align-self:flex-start;margin-top:14px!important}
#tg-card .field{min-width:0!important}


.required-star{color:#ef5350}.field-optional{margin-left:4px;font-size:inherit;color:inherit}
.analysis-chevron{flex:none;color:var(--txt);transition:transform .2s;margin-right:0}
@media(max-width:760px){.tg-workspace{grid-template-columns:1fr}.tg-workspace>#tg-card,.tg-workspace>.tg-upload-card{height:auto}}

/* v2.26.2: stable dark fields, including browser autofill */
:is(#in-name,#in-full,#in-site,#oc-brand,#tg-brand,#mon-brand,#mon-alias,#mon-task){background:#100d08;color:#fff;caret-color:#fff;-webkit-text-fill-color:#fff}
:is(#in-name,#in-full,#in-site,#oc-brand,#tg-brand,#mon-brand,#mon-alias,#mon-task):-webkit-autofill,
:is(#in-name,#in-full,#in-site,#oc-brand,#tg-brand,#mon-brand,#mon-alias,#mon-task):autofill{background:#100d08!important;-webkit-box-shadow:0 0 0 1000px #100d08 inset!important;box-shadow:0 0 0 1000px #100d08 inset!important;-webkit-text-fill-color:#fff!important;caret-color:#fff}
.tg-workspace>#tg-card{grid-column:1;grid-row:1}.tg-workspace>.tg-upload-card{grid-column:2;grid-row:1}
.tg-workspace>#btn-tg-gen{grid-column:1;grid-row:2;width:calc(100% - 42px);margin:0 21px!important;box-sizing:border-box}
@media(max-width:760px){.tg-workspace>.tg-upload-card{grid-column:1;grid-row:3}.tg-workspace>#tg-card{height:auto}.tg-workspace>#btn-tg-gen{grid-row:2}}

/* Explicit placeholder fill prevents input text-fill from overriding gray hints. */
:is(#in-name,#in-full,#in-site,#oc-brand,#tg-brand,#mon-brand,#mon-alias,#mon-task)::placeholder{color:#808080;-webkit-text-fill-color:#808080;opacity:1}

/* v2.26.6: balanced writing form; brand field anchors the card bottom. */
#tg-card>[data-page-node-id="tgCardHead001"]{gap:12px!important;margin-bottom:18px!important}
#tg-card>[data-page-node-id="tgSkillField001"]{margin-bottom:20px!important}
#tg-card #tg-skills{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important}
#tg-card #tg-skills>*{width:100%;min-width:0;box-sizing:border-box;text-align:center;white-space:normal;line-height:1.5;padding:9px 8px}
#tg-card>[data-page-node-id="tgGenRow001"]{margin-top:auto;padding-top:6px}
@media(max-width:760px){#tg-card>[data-page-node-id="tgGenRow001"]{margin-top:0}#tg-card #tg-skills{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v2.26.7: independent left column avoids upload-driven blank space. */
.tg-workspace{align-items:start}
.tg-left{grid-column:1;grid-row:1;min-width:0}
.tg-left>#tg-card{height:auto!important;margin:0!important;display:flex;flex-direction:column}
.tg-left #tg-card>[data-page-node-id="tgGenRow001"]{margin-top:0;padding-top:0}
.tg-left #tg-card>[data-page-node-id="tgSkillField001"]{margin-bottom:16px!important}
.tg-left>#btn-tg-gen{display:block;width:calc(100% - 42px);margin:14px 21px 0!important;box-sizing:border-box}
#tg-upload-status{color:var(--gold-bright)}
#tg-upload-status.done{color:#64bc89}
#tg-upload-list .up-item>span:not(.cat){min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.tg-workspace>.tg-upload-card{grid-column:1;grid-row:2}}

/* v2.26.8: shared input palette across pages and dialogs. */
:is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="url"],input[type="password"],input[type="number"],input[type="date"],input[type="datetime-local"],input[type="time"],input[type="month"],input[type="week"],textarea):not(:disabled){background-color:#100d08!important;color:#fff!important;-webkit-text-fill-color:#fff!important;caret-color:#fff!important}
:is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="url"],input[type="password"],input[type="number"],input[type="date"],input[type="datetime-local"],input[type="time"],input[type="month"],input[type="week"],textarea)::placeholder{color:#808080!important;-webkit-text-fill-color:#808080!important;opacity:1!important}
:is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="url"],input[type="password"],input[type="number"],input[type="date"],input[type="datetime-local"],input[type="time"],input[type="month"],input[type="week"],textarea):is(:-webkit-autofill,:autofill):not(:disabled){-webkit-box-shadow:0 0 0 1000px #100d08 inset!important;box-shadow:0 0 0 1000px #100d08 inset!important;-webkit-text-fill-color:#fff!important;caret-color:#fff!important}

/* v2.26.10: ten visible history rows; smaller screens scroll sooner. */
#hist-modal .hist-modal{display:flex;flex-direction:column;max-height:calc(100dvh - 40px);box-sizing:border-box;overflow:hidden}
#hist-modal .hist-modal>h3,#hist-modal .hist-modal>p{flex-shrink:0}
#hist-list{max-height:620px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a98042 transparent;-webkit-overflow-scrolling:touch}
#hist-list .mrow{height:52px;min-height:52px;box-sizing:border-box;margin-bottom:10px}
#hist-list .mrow b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#hist-list .mrow span{white-space:nowrap;flex-shrink:0}
#hist-list::-webkit-scrollbar{width:6px}#hist-list::-webkit-scrollbar-thumb{background:#a98042;border-radius:6px}

/* v2.26.11: aligned monitoring history metadata and actions. */
#mon-history-content .mon-history-meta{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
#mon-history-content .mon-history-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#mon-history-content .mon-history-meta p{margin:0;white-space:nowrap;flex-shrink:0;color:var(--txt-3)}
#mon-history-content .mon-history-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
#mon-history-dialog .mon-history-actions>.btn{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:96px;height:40px;padding:0 10px;margin:0;font-size:12px;line-height:1;text-decoration:none;white-space:nowrap}
@media(max-width:600px){#mon-history-content article{flex-wrap:wrap}#mon-history-content .mon-history-meta{flex-basis:100%}#mon-history-content .mon-history-actions{margin-left:auto}#mon-history-content .mon-history-meta p{font-size:11px}}

/* v2.26.14: requested filled question/alias outlines and readable native menus. */
html body select{color-scheme:dark;background-color:#19150f!important;color:#f7f4ec!important;-webkit-text-fill-color:#f7f4ec!important}
html body select option,html body select optgroup{background-color:#211b13!important;color:#f7f4ec!important;-webkit-text-fill-color:#f7f4ec!important}
html body select option:checked{background-color:#805b27!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body select:focus-visible{outline:2px solid #d9a95c;outline-offset:2px}

/* v2.26.16: same original border for empty, filled, focused and autofilled fields. */
html body :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="url"],input[type="password"],input[type="number"],input[type="date"],input[type="datetime-local"],input[type="time"],input[type="month"],input[type="week"],textarea):not(:disabled){border:1px solid var(--hair2)!important;outline:none!important;box-shadow:none!important;-webkit-box-shadow:none!important}
html body :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="url"],input[type="password"],input[type="number"],input[type="date"],input[type="datetime-local"],input[type="time"],input[type="month"],input[type="week"],textarea):is(:autofill,:-webkit-autofill):not(:disabled){border-color:var(--hair2)!important;box-shadow:0 0 0 1000px #100d08 inset!important;-webkit-box-shadow:0 0 0 1000px #100d08 inset!important}

/* Keep browser autofill and named fields on the same visible muted border. */
html body :is(#in-name,#in-full,#in-site,#oc-brand,#tg-brand,#mon-brand,#mon-alias,#mon-task,#oc-q,#oc-output-dir),
html body input:is(:autofill,:-webkit-autofill){border:1px solid rgba(233,213,177,.16)!important;outline:none!important}
