:root { color-scheme: light; --ink: #252d29; --muted: #626c66; --line: #dce2dd; --paper: #f5f7f5; --green: #276348; --green-soft: #eaf3ec; --amber: #785413; --amber-soft: #fff6de; --red: #a33434; }
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); font: 14px/1.6 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { min-height: 40px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 5px; background: white; cursor: pointer; line-height: 1.45; overflow-wrap: anywhere; }
button:hover { background: var(--green-soft); border-color: #91b79d; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #5485bd; outline-offset: 3px; }
button.primary { background: var(--green); border-color: var(--green); color: white; font-weight: 600; }
button.primary:hover { background: #1e5039; }
button.secondary { color: var(--green); border-color: #a4b8aa; }
button.quiet { border-color: transparent; background: transparent; }
button.danger { color: var(--red); }
button.icon-button { width: 40px; height: 40px; min-width: 40px; padding: 0; font-size: 24px; line-height: 1; }
a { color: var(--green); text-underline-offset: 3px; overflow-wrap: anywhere; }
p { margin: 8px 0 14px; }
h1, h2, h3 { color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
h1 { font-size: 24px; margin: 2px 0 0; font-weight: 650; }
h2 { font-size: 16px; margin: 0 0 14px; font-weight: 650; }
h3 { font-size: 14px; margin: 16px 0 8px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; margin: 16px 0 6px; font-weight: 550; }
input:not([type="checkbox"]), textarea, select { width: 100%; min-width: 0; border: 1px solid #bac7be; border-radius: 4px; background: white; padding: 10px 12px; }
select { min-height: 44px; text-overflow: ellipsis; }
input:not([type="checkbox"]) { min-height: 44px; }
input[type="file"] { font-size: 13px; padding: 8px; overflow: hidden; }
input::file-selector-button { border: 1px solid var(--line); background: var(--paper); border-radius: 3px; padding: 5px 8px; margin-right: 8px; color: var(--ink); }
textarea { display: block; resize: vertical; min-height: 94px; line-height: 1.6; }
input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--green); margin: 2px 0 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check span { min-width: 0; overflow-wrap: anywhere; }
.mail-assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; margin: 20px 0; }
.mail-asset { border: 1px solid var(--line); border-radius: 4px; padding: 12px; min-width: 0; }
.mail-asset img { display: block; width: 100%; height: 150px; object-fit: contain; background: #f7f8f7; }
.mail-asset h3 { margin: 10px 0 4px; }
.mail-asset .check { margin: 8px 0 0; }
.mail-asset-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.mail-asset-option { border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; align-items: center; gap: 10px; margin: 0; }
.mail-asset-option img { width: 64px; height: 64px; object-fit: contain; }
.mail-asset-option span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.contact-heading { margin-top: 16px; }
.contact-heading h3 { margin: 0; }
.contact-list { max-height: 360px; overflow-y: auto; }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-row > div { min-width: 0; overflow-wrap: anywhere; }
.contact-row p { margin: 3px 0; }
.contact-row small { color: var(--muted); }
.contact-row[aria-current="true"] { border-left: 3px solid var(--green); padding-left: 10px; }
#first-mail-contact-verification, #first-mail-contacts-status, #first-mail-zone-source, #first-mail-suggestion-status { overflow-wrap: anywhere; }
#first-mail-contact-verification[data-valid="false"] { color: var(--amber); }
#first-mail-business-time .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) 40px; }
#first-mail-business-time p { margin: 8px 0; }
#first-mail-recipient[readonly] { background: var(--paper); }
.email-preview { border: 1px solid var(--line); border-radius: 4px; padding: 22px; margin: 18px 0; background: #fff; color: #252d29; overflow: auto; max-height: 900px; overflow-wrap: anywhere; font-family: Arial, sans-serif; }
.email-preview img { max-width: 100%; height: auto; object-fit: contain; }
.email-preview table { max-width: 100%; border-collapse: collapse; }
.email-preview p { margin: 0 0 14px; }
.email-preview .mail-logo { max-width: 130px; max-height: 90px; }
.email-preview a { color: #216aa5; }
.email-preview .email-frame { width:100%; max-width:640px; font-family:Arial,sans-serif; font-size:14px; line-height:1.6; color:#222222; }
.email-preview .email-paragraph { margin:0 0 16px; }
.email-preview .email-image { display:block; max-width:100%; height:auto; margin:8px 0 18px; }
.email-preview .email-signature { border-top:1px solid #dce2df; padding-top:16px; margin-top:20px; }
.email-preview .email-logo { display:block; max-width:100%; height:auto; margin:0 0 8px; }
.email-preview .email-identity { margin:0; font-weight:bold; }
.email-preview .email-details { margin:4px 0 0; font-size:13px; color:#555555; }
.email-preview .email-link { color:#246447; text-decoration:none; }
.label-note { margin-left: 10px; color: var(--muted); font-size: 12px; font-weight: 400; }
.muted, .eyebrow { color: var(--muted); }
.eyebrow { font-size: 12px; margin: 0 0 5px; }
.full { width: 100%; margin-top: 24px; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 10px; background: white; }
.skip-link:focus { top: 10px; }
.topbar { min-height: 68px; padding: 12px 28px; display: flex; align-items: center; gap: 24px; background: #202923; color: #fff; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand strong { font-size: 24px; line-height: 1.2; }
/* Reuse the established Nexora home-page logo geometry. */
.nx11-logo__mark { position: relative; width: 32px; height: 24px; display: inline-block; transform: rotate(-7deg); color: #b8e65b; }
.nx11-logo__mark i { position: absolute; width: 20px; height: 12px; border-radius: 100% 20% 100% 20%; background: currentColor; }
.nx11-logo__mark i:first-child { left: 0; top: 0; transform: rotate(-28deg); }
.nx11-logo__mark i:last-child { right: 0; bottom: 0; transform: rotate(-28deg); }
.topbar-label { color: #bfcac2; font-size: 13px; }
.identity { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 13px; }
#identity-name { max-width: 360px; overflow-wrap: anywhere; }
.identity button { color: #fff; flex-shrink: 0; }
.identity button:hover { background: #34463a; }
.notice { margin: 0; padding: 14px 28px; background: var(--amber-soft); color: var(--amber); border-bottom: 1px solid #e4cea0; overflow-wrap: anywhere; }
.notice[data-kind="error"] { color: var(--red); background: #fff0ed; border-color: #e5bcb4; }
.notice[data-kind="success"] { color: #205b3d; background: var(--green-soft); border-color: #b7d1c0; }
.loading { padding: 32px; text-align: center; color: var(--muted); }
.auth-view { width: min(100% - 40px, 420px); margin: 58px auto 80px; }
.auth-view h1 { margin-bottom: 24px; }
.segmented { display: inline-flex; max-width: 100%; border-bottom: 1px solid var(--line); gap: 4px; margin: 0 0 4px; }
.segmented button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: 10px 15px; min-height: 44px; }
.segmented button[aria-pressed="true"] { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.app-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: calc(100dvh - 68px); }
.rail { border-right: 1px solid var(--line); background: #eef2ee; padding: 24px 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.rail-heading { display: grid; padding: 0 10px 18px; overflow-wrap: anywhere; }
.rail-heading strong { font-size: 15px; }
.primary-nav { display: grid; gap: 4px; }
.primary-nav button { display: flex; align-items: center; justify-content: space-between; border-color: transparent; background: transparent; text-align: left; }
.primary-nav button[aria-current] { background: #dceade; color: #1c5538; font-weight: 650; }
.count { font-variant-numeric: tabular-nums; min-width: 24px; text-align: right; font-size: 12px; }
.history-heading { margin: 27px 0 8px; padding-left: 10px; display: flex; align-items: center; justify-content: space-between; }
.history-heading h2 { font-size: 12px; color: var(--muted); margin: 0; }
.history-heading .icon-button { background: transparent; border-color: transparent; }
.task-history { display: grid; gap: 5px; max-height: 55dvh; overflow-y: auto; }
.history-item { width: 100%; min-width: 0; display: grid; text-align: left; padding: 10px; border-color: transparent; background: transparent; }
.history-item[aria-current] { border-color: #b6cabb; background: white; }
.history-item strong { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.history-item small { color: var(--muted); font-size: 11px; }
/* Scroll the sidebar list without compressing its content-sized rows. */
.rail .task-history { min-width: 0; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-content: start; }
.rail .history-item { height: auto; min-height: 48px; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-content: start; row-gap: 3px; white-space: normal; }
.rail .history-item > strong, .rail .history-item > small { display: block; min-width: 0; max-width: 100%; }
.rail .history-item :is(strong, small), .rail .history-item :is(strong, small) * { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.customer-history { margin: 0 0 8px 10px; border-left: 1px solid var(--line); padding-left: 8px; }
.customer-history summary { font-size: 11px; color: var(--muted); padding: 6px 0; }
.rail-footer { display: flex; align-items: center; gap: 8px; padding: 24px 10px 0; margin-top: auto; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); }
.workspace { min-width: 0; padding: 28px 34px 0; background: #fff; }
.workspace > section { max-width: 1160px; margin: 0 auto; }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-heading { margin-bottom: 24px; }
.page-heading > div { min-width: 0; }
.section-heading { margin-bottom: 12px; flex-wrap: wrap; }
.section-heading h2 { margin: 0; }
.company-summary, .inline-actions, .task-summary, .task-commands { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.company-summary { color: var(--muted); margin-bottom: 18px; font-size: 12px; }
.understanding-band { border-top: 1px solid var(--line); padding-top: 20px; }
.understanding-scope { color: var(--muted); font-size: 12px; }
.understanding-status { border-left: 3px solid #659174; background: #f0f5f1; padding: 12px 16px; margin: 16px 0; overflow-wrap: anywhere; }
.understanding-status[data-tone="warning"] { border-color: #b68a30; background: var(--amber-soft); }
.understanding-status p { margin: 6px 0 0; }
.understanding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.understanding-category { border-top: 1px solid var(--line); padding: 16px 0; min-width: 0; }
.understanding-category h3 { margin: 0 0 12px; }
.understanding-entry { margin: 12px 0 18px; min-width: 0; overflow-wrap: anywhere; }
.understanding-entry p { margin: 6px 0; }
.understanding-entry[data-status="conflict"], .understanding-entry[data-status="unknown"] { border-left: 2px solid #b68a30; padding-left: 12px; }
.understanding-citation { margin-top: 4px; font-size: 12px; }
.understanding-citation summary { padding: 4px 0; }
.understanding-citation blockquote { margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.understanding-citation button { font-size: 12px; }
.understanding-more { border-top: 1px dashed var(--line); }
.understanding-questions { padding-left: 22px; }
.understanding-questions li { padding: 8px 0 12px; overflow-wrap: anywhere; }
.understanding-questions p { margin: 6px 0; }
.consent-heading { margin: 30px 0 12px; }
.secondary-disclosure > summary { font-weight: 600; }
.secondary-disclosure { padding-top: 12px; }
.consent-band { background: #f0f5f1; padding: 4px 18px 18px; border-left: 3px solid #659174; }
.consent-band p { font-size: 12px; margin-left: 28px; }
.inline-actions { justify-content: space-between; font-size: 12px; }
.band { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; padding-bottom: 2px; min-width: 0; }
#material-form { max-width: 760px; }
#material-submit { margin-top: 16px; }
.source-row { border-bottom: 1px solid var(--line); padding: 15px 0; overflow-wrap: anywhere; }
.source-row > .section-heading { margin-bottom: 5px; }
.source-row p { margin: 6px 0; }
.source-meta { color: var(--muted); font-size: 12px; }
.historical-source { border-left: 2px solid #b68a30; padding-left: 10px; }
.source-row .check { margin: 12px 0 0; }
.plain-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.badge { display: inline-block; max-width: 100%; padding: 4px 8px; border: 1px solid #c6dccc; border-radius: 4px; background: var(--green-soft); color: #205b3d; font-size: 12px; overflow-wrap: anywhere; }
.badge[data-tone="warning"] { color: var(--amber); border-color: #e3cd9f; background: var(--amber-soft); }
.badge[data-tone="neutral"] { color: var(--muted); border-color: var(--line); background: var(--paper); }
.readiness { margin-bottom: 18px; color: var(--muted); }
.readiness:not(:empty) { border-left: 3px solid #cfad60; padding: 10px 14px; background: #fffaed; }
.readiness button { margin: 8px 0 0; }
.task-form { max-width: 860px; border-top: 1px solid var(--line); padding-top: 8px; }
#company-discovery { margin-top: 12px; }
#discovery-form { max-width: 860px; }
#targeting-form { max-width: 860px; }
#prospecting-form { max-width: 860px; }
.prospecting-history-bar { display: grid; grid-template-columns: auto minmax(120px, 1fr); align-items: center; gap: 12px; margin: 26px 0 20px; max-width: 860px; }
.prospecting-history-bar label { margin: 0; }
.prospecting-history-bar select { min-width: 0; margin: 0; }
#prospecting-result > .facts { display: grid; grid-template-columns: repeat(3, auto minmax(30px, 1fr)); padding: 14px 0; border-bottom: 1px solid var(--line); }
.prospecting-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(180px, 2fr) auto; align-items: start; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.prospecting-row > div { min-width: 0; overflow-wrap: anywhere; }
.prospecting-row h3 { margin: 0 0 8px; }
.prospecting-row p { margin: 7px 0; }
.prospecting-row a { font-size: 12px; }
.prospecting-row button { min-width: 40px; }
#prospecting-back { margin: 0 0 12px; }
#targeting-result:not(:empty) { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.targeting-criteria, .targeting-search-plan { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 18px; }
.filter-receipt { border-left: 3px solid #718fa4; padding: 12px 16px; background: #f1f6f9; margin: 16px 0; }
.filter-receipt[data-tone="warning"] { border-color: #b68a30; background: var(--amber-soft); }
.filter-receipt h3 { margin: 0 0 8px; }
.filter-receipt p { margin: 6px 0; }
#discovery-history { max-width: 860px; margin-bottom: 16px; }
.discovery-candidate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.discovery-candidate > div { min-width: 0; overflow-wrap: anywhere; }
.discovery-candidate h3 { margin: 0 0 8px; }
.discovery-candidate p { margin: 6px 0; }
.discovery-candidate button { min-width: 116px; }
.discovery-summary { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; overflow-wrap: anywhere; }
.understanding-questions button { margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid > div { min-width: 0; }
.form-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.form-actions .muted { font-size: 12px; }
details { margin-top: 14px; }
summary { cursor: pointer; color: var(--green); padding: 8px 0; overflow-wrap: anywhere; }
.task-goal { font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 16px 0 8px; }
.task-summary { justify-content: space-between; font-size: 12px; }
.task-commands { margin-top: 16px; }
.question-band { margin-top: 24px; padding: 18px; border-left: 3px solid #b68a30; background: #fff8e7; }
.question-band h2 { font-size: 17px; white-space: pre-wrap; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 30px; }
.result-main { min-width: 0; }
.progress-column { min-width: 0; padding: 22px 0 0 22px; margin-top: 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.progress-column h2 { font-size: 14px; }
.timeline { padding-left: 19px; margin: 0; }
.timeline li { padding: 0 0 18px 3px; overflow-wrap: anywhere; }
.timeline li::marker { color: #478562; font-size: 12px; }
.timeline time { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.facts { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 15px; margin: 12px 0; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.progress-column .facts { grid-template-columns: 72px minmax(0, 1fr); gap: 6px 10px; font-size: 12px; }
.evidence-row { border-left: 2px solid #b7cbbb; padding: 3px 0 3px 12px; margin: 14px 0; overflow-wrap: anywhere; }
.evidence-row p { margin: 6px 0; }
.version-row { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.version-row > div { min-width: 0; overflow-wrap: anywhere; }
.version-row p { margin: 4px 0; }
.empty-state { color: var(--muted); padding: 18px 0; font-size: 13px; }
.empty-state p { margin: 0; }
.workspace-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; max-width: 1160px; margin: 36px auto 0; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.workspace-footer details { margin: 0; }
.workspace-footer summary { padding: 0; }
.work-status { border-left: 3px solid #718fa4; background: #f1f6f9; padding: 14px 16px; margin: 20px 0; overflow-wrap: anywhere; }
.work-status .section-heading { margin: 0; }
.work-status p { margin: 8px 0 0; }
.work-status[data-tone="error"] { border-color: var(--red); background: #fff0ed; }
.work-status[data-tone="warning"] { border-color: #b68a30; background: var(--amber-soft); }
.work-status[data-tone="neutral"] { border-color: #adb8b0; background: var(--paper); }
.work-status[data-tone="busy"] { border-color: #5485bd; }
.work-status[data-tone="busy"] h2::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border: 2px solid #c4d5e5; border-top-color: #3973a8; border-radius: 50%; animation: status-spin 1s linear infinite; }
@keyframes status-spin { to { transform: rotate(360deg); } }
#known-customer-command { margin-top: 22px; font-size: 13px; }
.business-plan { padding-bottom: 18px; }
.business-plan > summary { font-size: 16px; font-weight: 600; padding-top: 0; }
.business-plan .facts { max-width: 860px; }
.results-heading { margin-top: 24px; }
.development-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; font-size: 12px; color: var(--muted); }
.development-stages li { border-bottom: 2px solid var(--line); padding: 8px 0; overflow-wrap: anywhere; }
.development-stages [aria-current] { color: var(--green); border-color: var(--green); font-weight: 650; }
.company-overview { padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.company-overview > details { margin: 0; }
.company-overview-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.company-overview-facts > div { min-width: 0; }
.company-overview-facts strong { font-size: 12px; color: var(--muted); }
.company-overview-facts p { margin: 6px 0; }
.preference-notice { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.preference-notice h3 { font-size: 13px; margin: 0 0 6px; }
.preference-notice p { margin: 6px 0; }
.development-start-actions { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 16px 0 24px; }
.development-start-actions label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); }
#development-target { width: 64px; flex: 0 0 64px; }
.development-status { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-left: 3px solid #558b70; background: #f0f5f1; padding: 18px; margin: 20px 0; }
.development-status > div:first-child { min-width: 0; }
.development-status .mail-inline-actions { max-width: 50%; justify-content: flex-end; flex-shrink: 1; }
.development-status .mail-inline-actions button:not(.icon-button) { min-height: 40px; max-width: 100%; white-space: normal; }
#development-feedback-section, #development-sample-selection { scroll-margin-top: 24px; }
.development-status h2 { font-size: 19px; margin: 0; }
.development-status p:last-child { margin-bottom: 0; overflow-wrap: anywhere; }
.development-status[data-phase="preparing"], .development-status[data-phase="researching"], .development-status[data-phase="revising"], .development-status[data-phase="sampling"] { background: #f1f6f9; border-color: #5485bd; }
.development-status[aria-busy="true"] h2::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border: 2px solid #c4d5e5; border-top-color: #3973a8; border-radius: 50%; animation: status-spin 1s linear infinite; }
.development-status[data-phase="needs_attention"] { border-color: var(--red); background: #fff0ed; }
.development-status[data-phase="paused"], .development-status[data-phase="calibrating"] { border-color: #b68a30; background: var(--amber-soft); }
.development-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-top: 24px; }
.development-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 0; background: transparent; }
.development-tabs [aria-selected="true"] { border-color: var(--green); color: var(--green); font-weight: 650; }
.development-company, .development-sample { border-bottom: 1px solid var(--line); padding: 24px 0; min-width: 0; }
.development-company h3, .development-sample h3 { font-size: 18px; margin: 0 0 6px; }
.development-company h4 { margin: 18px 0 8px; font-size: 13px; }
.development-company .section-heading { align-items: flex-start; }
.development-company .section-heading > div { min-width: 0; }
.development-company .facts { grid-template-columns: 150px minmax(0, 1fr); }
.development-company li { overflow-wrap: anywhere; }
.development-evidence figure { margin: 12px 0; padding: 0 0 0 14px; border-left: 2px solid #718fa4; }
.development-evidence blockquote { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.development-evidence figcaption { font-size: 12px; overflow-wrap: anywhere; }
.development-evidence .source-meta { margin: 4px 0 0; }
.feedback-record { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 8px; }
.feedback-record p { margin: 4px 0; }
.sample-subject { font-weight: 600; }
.mission-history { font-size: 12px; padding: 0 10px; }
#development-feedback-form { max-width: 860px; }
.mailbox-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.mailbox-row > div { min-width: 0; overflow-wrap: anywhere; }
.mail-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
#mailbox-connect-form, #first-mail-form { max-width: 860px; }
#mailbox-connect-details > summary { font-weight: 600; }
#first-mail-sender, #first-mail-subject[readonly], #first-mail-body[readonly] { background: var(--paper); }
#first-mail-review-fields { max-width: 960px; }
.mail-body { border-left: 2px solid var(--line); padding: 12px 16px; margin: 16px 0; }
#first-mail-history { display: grid; gap: 6px; }
#first-mail-history .history-item { border-bottom: 1px solid var(--line); border-radius: 0; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; gap: 4px; height: auto; white-space: normal; }
#first-mail-history .history-item > *, .mail-evidence > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.mail-evidence { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 12px; white-space: normal; }
#first-mail-history .mail-evidence { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); margin: 4px 0; }
#first-mail-review-fields dt, #first-mail-content-state { overflow-wrap: anywhere; }
#connections-view .work-status { margin-top: 0; }
#company-view > .band:first-of-type { margin-top: 16px; }
.company-next { justify-content: space-between; }
.form-actions .icon-button { flex: 0 0 40px; align-self: flex-end; }
.progress-column { border-left: 0; }
.progress-column details:first-child { margin-top: 0; }
@media (min-width: 1600px) { .workspace { padding-left: 48px; padding-right: 48px; } }
@media (max-width: 1100px) { .result-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .progress-column { border-left: 0; padding-left: 0; } .app-layout { grid-template-columns: 216px minmax(0, 1fr); } .workspace { padding: 24px 24px 0; } }
@media (max-width: 700px) {
  .prospecting-history-bar { grid-template-columns: minmax(0, 1fr); }
  .prospecting-history-bar label { grid-column: 1 / -1; }
  #prospecting-result > .facts { grid-template-columns: 100px minmax(0, 1fr); }
  .prospecting-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .prospecting-row button { justify-self: start; }
  .topbar { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .topbar-label { margin-left: auto; }
  .identity { width: 100%; justify-content: space-between; margin: 0; padding-top: 6px; border-top: 1px solid #45534a; }
  #identity-name { max-width: none; }
  .notice { padding: 12px 16px; }
  .app-layout { display: block; }
  .rail { padding: 10px 16px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-heading, .rail-footer { display: none; }
  .primary-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .primary-nav button { padding-left: 10px; padding-right: 10px; }
  .mailbox-row { align-items: flex-start; flex-direction: column; }
  .company-overview-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .development-stages { gap: 6px; font-size: 11px; margin-bottom: 18px; }
  .development-status { padding: 14px 12px; gap: 10px; }
  .development-status h2 { font-size: 17px; }
  .development-status { flex-wrap: wrap; }
  .development-status .mail-inline-actions { max-width: 100%; width: 100%; flex-direction: row; justify-content: flex-start; }
  .development-company .facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .development-company .facts dd { margin-bottom: 10px; }
  .development-company h3, .development-sample h3 { font-size: 16px; }
  .history-heading { margin: 8px 0 2px; padding-left: 0; }
  .task-history { max-height: 142px; }
  .history-item { padding: 8px 10px; }
  .history-item strong { font-size: 12px; }
  .task-history .empty-state { padding: 0; }
  .workspace { padding: 22px 16px 0; }
  h1 { font-size: 22px; }
  .page-heading { margin-bottom: 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .understanding-grid { grid-template-columns: minmax(0, 1fr); }
  .discovery-candidate { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .discovery-candidate button { justify-self: start; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions button { width: 100%; }
  .form-actions .icon-button { width: 40px; }
  .facts { grid-template-columns: 78px minmax(0, 1fr); gap: 9px 10px; }
  .consent-band, .question-band { padding-left: 12px; padding-right: 12px; }
  .consent-band p { margin-left: 0; }
  .auth-view { margin-top: 36px; }
  .label-note { display: inline-block; margin-left: 6px; }
  .source-row > .section-heading { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; } }
