:root { --primary:#2F63FF; --accent:#34D5D2; --text:#17243B; --muted:#68758A; --line:#E2E8F0; --canvas:#F5F7FA; font-family:"Microsoft YaHei","PingFang SC","Segoe UI",sans-serif; font-size:14px; color:var(--text); background:var(--canvas); }
:root { --brand-gradient:linear-gradient(90deg,#2F63FF 0%,#3F87FA 52%,#22B9D2 100%); --brand-soft:linear-gradient(90deg,#edf2ff 0%,#eef6ff 52%,#eefaff 100%); }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; }
button,textarea,input,select { font:inherit; }
button,summary { cursor:pointer; }
button { min-height:40px; }
:is(button,a,textarea,input,select,summary):focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
button:disabled { cursor:not-allowed; color:var(--muted); background:var(--canvas); }
a { color:inherit; text-underline-offset:3px; }
h1,h2,h3,p { overflow-wrap:anywhere; }
h1,h2,h3 { font-weight:600; }
.app-shell { display:grid; grid-template-columns:252px minmax(0,1fr); grid-template-rows:72px minmax(0,1fr); height:100vh; height:100dvh; border-top:2px solid var(--primary); }
.brand { display:flex; grid-column:1; grid-row:1; gap:12px; align-items:center; padding:0 12px; text-decoration:none; background:white; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.brand img { width:120px; height:auto; object-fit:contain; }
.brand strong { font-size:14px; letter-spacing:.12em; color:#071F3F; }
.topbar { grid-column:2; grid-row:1; display:flex; gap:16px; align-items:center; padding:0 24px; background:white; border-bottom:1px solid var(--line); min-width:0; }
.topbar-context { min-width:0; flex:1; }
.topbar h1 { font-size:16px; margin:0 0 4px; }
.topbar p { margin:0; color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mode-button { display:flex; gap:8px; align-items:center; border:1px solid var(--line); border-radius:24px; background:white; padding:8px 12px; white-space:nowrap; font-size:12px; }
.mode-button span { width:5px; height:5px; border-radius:50%; background:var(--accent); }
.sidebar { grid-column:1; grid-row:2; display:flex; flex-direction:column; padding:16px 12px 0; min-height:0; overflow-y:auto; border-right:1px solid var(--line); background:#FBFCFE; }
.primary-button,.send { border:0; border-radius:8px; padding:10px 16px; background:var(--brand-gradient); color:#fff; font-weight:600; }
.primary-button:hover:not(:disabled),.send:hover:not(:disabled) { filter:brightness(.95); }
.new-chat { width:100%; flex-shrink:0; }
.secondary-button { border:1px solid #CFD6E0; border-radius:8px; background:white; padding:8px 12px; color:var(--text); }
.secondary-button:hover { background:var(--canvas); }
.group-label { margin:16px 4px 8px; color:var(--muted); font-size:12px; }
.project-section { min-height:0; flex-shrink:0; }
.history { margin:0; }
.history summary { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 4px; list-style:none; }
.history summary::before { content:"⌄"; color:var(--muted); }
.history:not([open]) summary::before { content:"›"; }
.history summary strong { flex:1; }
.history summary>span { color:var(--muted); font-size:12px; }
#session-list { display:grid; gap:4px; margin:0 0 4px 8px; padding-left:8px; border-left:1px solid var(--line); max-height:220px; overflow-y:auto; }
.session { display:block; width:100%; text-align:left; border:0; background:transparent; padding:8px; border-radius:8px; color:var(--text); min-width:0; }
.session:hover,.nav-link:hover { background:#F0F3F8; }
.session.active,.nav-link.active { background:#EBF0FF; color:#2454DB; }
.session-title { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; line-height:1.6; }
.session-meta { display:flex; gap:8px; align-items:center; justify-content:space-between; color:var(--muted); font-size:11px; margin-top:4px; }
.status { color:var(--muted); font-size:12px; }
.status.needs { color:#9A570C; background:#FFF4E5; padding:2px 8px; border-radius:16px; }
.side-nav { display:grid; gap:4px; flex-shrink:0; }
.nav-link { display:flex; align-items:center; min-height:40px; gap:12px; padding:10px 12px; border-radius:8px; text-decoration:none; font-size:14px; }
.side-nav .nav-link::before { content:""; width:5px; height:5px; background:#BCC6D5; border-radius:50%; flex-shrink:0; }
.side-nav .active::before { background:var(--accent); }
.capabilities { margin-top:16px; padding-top:8px; border-top:1px solid var(--line); flex-shrink:0; }
.capabilities summary { padding:12px; color:var(--muted); }
.sidebar-bottom { margin: auto -12px 0; border-top:1px solid var(--line); padding:8px 12px; background:white; flex-shrink:0; }
.main { grid-column:2; grid-row:2; display:flex; flex-direction:column; min-width:0; min-height:0; }
.page { min-width:0; min-height:0; }
.chat-page { display:flex; flex:1; flex-direction:column; background:white; }
.chat-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 24px; border-bottom:1px solid var(--line); }
.chat-head h2 { margin:0; font-size:14px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.text-button,.upload { border:0; background:transparent; color:var(--muted); padding:8px 0; text-align:left; }
.text-button:hover,.upload:hover { color:var(--text); text-decoration:underline; }
.conversation { flex:1; min-height:0; overflow-y:auto; padding:24px; }
.welcome { max-width:720px; margin:56px auto; }
.eyebrow { color:var(--muted); font-size:14px; }
.welcome h2 { font-size:28px; margin:12px 0 16px; }
.welcome p { font-size:16px; line-height:1.8; color:var(--muted); }
.examples { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:24px 0; }
.examples button { display:grid; gap:8px; padding:16px; background:white; border:1px solid var(--line); border-radius:12px; text-align:left; color:var(--text); }
.examples button:hover { background:var(--canvas); }
.examples span { font-size:12px; color:var(--muted); }
.messages,.thinking { max-width:820px; margin:auto; }
.message { margin-bottom:24px; min-width:0; overflow-wrap:anywhere; }
.message-label { color:var(--muted); font-size:12px; margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.message-label img { width:20px; height:20px; }
.message.user { max-width:85%; width:fit-content; margin-left:auto; }
.user .message-label { justify-content:flex-end; }
.user .message-body { padding:12px 16px; background:#F0F3F8; border-radius:12px; white-space:pre-wrap; font-size:15px; }
.message-body { font-size:15px; line-height:1.8; min-width:0; }
.message-body p { margin:8px 0; }
.message-body ul,.message-body ol,.action-list { padding-left:24px; }
.message-body li { margin:4px 0; }
.message-body pre { overflow-x:auto; background:var(--canvas); padding:12px; }
.message-body :is(h1,h2,h3,h4,h5,h6) { font-size:15px; margin:16px 0 8px; }
.inline-answer .result-section { padding:0 0 8px; border:0; }
.inline-answer .result-section h3 { margin:0 0 4px; }
.summary-card { margin-top:12px; border:1px solid var(--line); border-radius:12px; background:#FBFCFE; overflow:hidden; }
.summary-card .result-section { padding:0; }
.summary-open { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; padding:16px; border:0; background:transparent; color:var(--text); border-radius:12px; }
.summary-open:hover { background:#F0F3F8; }
.summary-open strong,.summary-open small { display:block; }
.summary-open small { margin-top:8px; color:var(--muted); }
.summary-arrow { font-size:20px; color:var(--muted); }
.summary-card .downloads { border-top:1px solid var(--line); padding:8px 16px 12px; }
.file-links,.message-attachments,.attachments { display:flex; flex-wrap:wrap; gap:8px; }
.file-link,.attachment { display:inline-flex; max-width:100%; padding:8px 12px; gap:8px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--text); text-decoration:none; font-size:12px; overflow-wrap:anywhere; }
.file-link:hover { background:var(--canvas); }
.attachment button { min-height:24px; border:0; background:transparent; color:var(--muted); }
.composer-area { padding:16px 24px 12px; border-top:1px solid var(--line); background:white; }
.composer { max-width:820px; margin:auto; padding:12px 16px; border:1px solid #CFD6E0; border-radius:12px; }
.composer:focus-within { border-color:var(--primary); }
.composer textarea { width:100%; min-height:50px; max-height:160px; border:0; resize:none; background:transparent; color:var(--text); font-size:15px; line-height:1.6; }
.composer textarea:focus { outline:none; }
.composer-bottom { display:flex; align-items:center; gap:12px; }
.composer-bottom .muted { font-size:12px; }
.send { margin-left:auto; }
.composer-note { display:flex; justify-content:space-between; gap:12px; max-width:820px; margin:8px auto 0; color:var(--muted); font-size:11px; line-height:1.6; }
.composer-note>span { white-space:nowrap; }
.muted,.freshness,.tool-note { color:var(--muted); font-size:14px; line-height:1.6; }
.notice { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 24px; padding:12px 16px; background:white; border:1px solid var(--line); border-radius:8px; line-height:1.6; }
.content-page { flex:1; overflow-y:auto; padding:24px 32px; }
.page-head { margin-bottom:24px; }
#page-kos { contain:layout paint; }
.kos-data-panel { display:block; width:100%; min-height:180px; border:0; margin-bottom:32px; }
.page-head h1 { margin:0 0 8px; font-size:26px; }
.page-head p { margin:0; line-height:1.7; color:var(--muted); }
.scene-grid,.memory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.scene-card,.info-card { display:flex; flex-direction:column; align-items:start; gap:12px; padding:24px; background:white; border:1px solid var(--line); border-radius:12px; }
.card-head { display:flex; justify-content:space-between; align-items:start; gap:12px; width:100%; }
.scene-card h3,.info-card h2 { margin:0; font-size:16px; }
.scene-card p,.info-card p { margin:0; font-size:14px; line-height:1.7; color:var(--muted); }
.scene-card dl { display:grid; grid-template-columns:32px 1fr; gap:8px; margin:0; line-height:1.6; font-size:14px; }
.scene-card dt { color:var(--muted); }
.scene-card dd { margin:0; }
.scene-card button { margin-top:auto; }
.info-card { margin-bottom:16px; }
.task-board { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.task-column { border:1px solid var(--line); border-radius:12px; padding:12px; background:#EEF1F5; min-height:380px; }
.task-column h2 { display:flex; justify-content:space-between; margin:0 0 12px; font-size:14px; }
.task-column h2 span { color:var(--muted); }
.task-card { padding:16px; margin-bottom:12px; background:white; border:1px solid var(--line); border-radius:8px; overflow-wrap:anywhere; }
.task-card p { line-height:1.7; margin:0 0 12px; }
.task-card small { color:var(--muted); display:block; line-height:1.6; }
.task-card input { accent-color:var(--primary); }
.action-check { display:flex; align-items:center; gap:8px; margin:12px 0 4px; }
.knowledge-toolbar { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.knowledge-toolbar input,.knowledge-toolbar select { padding:10px 12px; border:1px solid #CFD6E0; border-radius:8px; min-width:0; background:white; color:var(--text); }
.knowledge-toolbar input { flex:1; }
.knowledge-toolbar select { max-width:100%; }
.knowledge-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.knowledge-card { border:1px solid var(--line); border-radius:12px; background:white; padding:16px; }
.source p,.knowledge-card p { font-size:14px; line-height:1.8; margin:8px 0; overflow-wrap:anywhere; }
.source p { color:var(--muted); }
.source strong { color:var(--text); }
.source { margin-top:16px; padding-left:12px; border-left:2px solid var(--accent); }
.pagination { display:flex; align-items:center; gap:16px; margin:16px 0; }
.flat-list { border:1px solid var(--line); border-radius:12px; background:white; }
.list-row { padding:16px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:16px; min-width:0; }
.list-row:last-child { border:0; }
.list-row p { margin:8px 0; line-height:1.6; color:var(--muted); font-size:14px; }
.list-row strong { overflow-wrap:anywhere; }
.row-actions { display:flex; flex-wrap:wrap; gap:8px; flex-shrink:0; }
.result-detail { min-width:0; min-height:0; grid-column:3; grid-row:1/-1; border-left:1px solid var(--line); background:#FBFCFE; display:flex; flex-direction:column; }
.app-shell.detail-open { grid-template-columns:252px minmax(0,1fr) 420px; }
.detail-head { min-height:72px; padding:12px 16px; border-bottom:1px solid var(--line); background:white; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.detail-head h2 { margin:0 0 4px; font-size:16px; }
.detail-head p { margin:0; color:var(--muted); font-size:12px; }
.detail-content { overflow-y:auto; padding:16px; }
.result-card { padding:16px; border:1px solid var(--line); background:white; border-radius:12px; }
.result-head { display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.result-head span { color:var(--muted); font-size:12px; }
.result-section { border-top:1px solid var(--line); padding:16px 0; }
.result-section h3 { margin:0 0 8px; font-size:15px; }
.result-section.summary { border:0; }
.result-section summary { font-weight:600; }
.result-section summary span { display:block; color:var(--muted); font-weight:400; font-size:12px; margin-top:8px; }
.result-table { max-width:100%; overflow-x:auto; margin:12px 0; }
table { width:100%; border-collapse:collapse; font-size:13px; text-align:left; }
caption { text-align:left; padding:8px 0; font-weight:600; }
th,td { padding:8px 12px; border-bottom:1px solid var(--line); line-height:1.6; }
th { background:var(--canvas); }
.empty-state { padding:24px; background:white; border:1px dashed #CFD6E0; border-radius:12px; color:var(--muted); line-height:1.8; }
.empty-state p { margin:0 0 16px; }
.menu-toggle { display:none; }
.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; }
@media (max-width:1200px) { .app-shell.detail-open { grid-template-columns:252px minmax(0,1fr) 360px; } .task-board { grid-template-columns:repeat(2,minmax(0,1fr)); } .scene-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .composer-note>span,.composer-bottom .muted { display:none; } }
@media (max-width:900px) and (min-width:701px) { .app-shell.detail-open { grid-template-columns:252px minmax(0,1fr); } .detail-open .main { display:none; } .result-detail { grid-column:2; grid-row:2; } }
@media (max-width:700px) {
  .app-shell,.app-shell.detail-open { display:flex; flex-direction:column; height:100dvh; }
  .brand { min-height:64px; justify-content:center; flex-shrink:0; border-right:0; }
  .brand img { width:120px; }
  .topbar { min-height:64px; padding:8px 12px; gap:12px; flex-shrink:0; }
  .menu-toggle { display:block; }
  .topbar h1 { font-size:14px; }
  .sidebar { display:none; flex-shrink:0; width:100%; max-height:calc(100dvh - 130px); overflow-y:auto; border-right:0; padding-bottom:0; }
  .sidebar.menu-open { display:flex; }
  #session-list { max-height:140px; }
  .side-nav { grid-template-columns:1fr; }
  .main { flex:1; }
  .chat-head { padding:8px 16px; }
  .chat-head h2 { max-width:220px; font-size:12px; }
  .conversation { padding:16px; }
  .welcome { margin:24px auto; }
  .welcome h2 { font-size:24px; }
  .welcome p { font-size:14px; }
  .examples { grid-template-columns:1fr; margin:16px 0; }
  .examples button { display:flex; justify-content:space-between; padding:12px; }
  .composer-area { padding:12px 12px max(12px,env(safe-area-inset-bottom)); }
  .composer-note { font-size:10px; }
  .content-page { padding:24px 16px; }
  .page-head h1 { font-size:24px; }
  .scene-grid,.memory-grid,.knowledge-grid,.task-board { grid-template-columns:1fr; }
  .task-column { min-height:160px; }
  .scene-card { padding:16px; }
  .knowledge-toolbar { flex-direction:column; }
  .list-row { flex-direction:column; align-items:start; }
  .row-actions { flex-shrink:1; }
  .detail-open .main,.detail-open .sidebar { display:none; }
  .result-detail { flex:1; }
  .detail-head { min-height:64px; }
  .detail-content { padding:12px; }
  .result-head { flex-direction:column; }
  .message.user { max-width:95%; }
  .notice { margin:8px 12px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
.market-intake { display:grid; gap:12px; }
.market-intake label { font-weight:600; margin-top:8px; }
.market-intake :is(input,select) { width:100%; padding:12px; border:1px solid #CFD6E0; border-radius:8px; background:white; color:var(--text); }
.market-intake p { line-height:1.8; margin:0; }
.market-analysis { margin:20px 0; padding:20px; border:1px solid var(--line); border-radius:12px; background:#FBFCFE; }
.market-analysis h3 { margin:0; font-size:17px; }
.market-analysis h4 { margin:24px 0 10px; font-size:15px; }
.market-analysis p,.market-analysis li { line-height:1.8; }
.market-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.market-tabs button { border:1px solid #CFD6E0; border-radius:8px; background:white; padding:8px 12px; text-align:left; }
.market-tabs button[aria-pressed=true] { border-color:var(--primary); color:var(--primary); background:#EEF3FF; }
.market-verdict { background:#EEF3FF; border-left:3px solid var(--primary); padding:12px 16px; border-radius:4px; }
.market-verdict strong { font-size:18px; }
.market-verdict p { margin:8px 0 0; }
.market-date { font-size:12px; color:var(--muted); }
.market-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.market-metrics>div { display:grid; gap:8px; background:white; border:1px solid var(--line); padding:12px; border-radius:8px; }
.market-metrics span { color:var(--muted); font-size:12px; }
.market-metrics strong { font-size:16px; overflow-wrap:anywhere; }
.growth-row { display:grid; grid-template-columns:64px minmax(0,1fr) 88px; gap:8px; align-items:center; margin:14px 0; font-size:12px; }
.growth-row strong { text-align:right; }
.growth-track { height:18px; position:relative; background:#EEF1F5; border-radius:3px; }
.growth-zero { position:absolute; left:50%; top:-5px; height:28px; width:1px; background:#8290A5; }
.growth-bar { height:18px; position:absolute; border-radius:3px; }
.growth-bar.negative { background:#D78341; }.growth-bar.positive { background:#218C76; }
.market-sources { margin:20px 0; }.market-sources summary { color:var(--primary); }
.detail-content .market-analysis { padding:12px; }.detail-content .market-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (max-width:700px) { .market-analysis { padding:12px; }.market-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.market-analysis th,.market-analysis td { padding:8px; min-width:75px; } }

.research-group{margin:20px 0;padding-top:12px;border-top:1px solid var(--line,#E6EBF1)}
.research-bars>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(70px,2fr) minmax(100px,1fr);align-items:center;gap:10px;margin:10px 0;font-size:14px}
.research-bars meter{width:100%;height:18px;accent-color:#2F63FF}
.research-bars strong{font-weight:500}
@media(max-width:560px){.research-bars>div{grid-template-columns:1fr 1fr}.research-bars>div>span{grid-column:1/-1}}

.business-brief { padding:24px; border:1px solid var(--line); border-radius:14px; background:white; }
.brief-head { display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--primary); }
.brief-head>span { font-size:17px; font-weight:600; }.brief-head small { color:var(--muted); font-size:11px; white-space:nowrap; }
.business-brief .brief-conclusion { margin:14px 0 20px; line-height:1.75; font-size:16px; font-weight:500; }
.brief-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:10px; margin:16px 0; }
.brief-metrics>div { min-width:0; display:flex; flex-direction:column; gap:8px; padding:14px; background:#F3F6FC; border-radius:10px; }
.brief-metrics span,.brief-metrics small { color:var(--muted); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.brief-metrics strong { font-size:21px; line-height:1.35; color:#143B71; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.brief-bars>div { display:grid; grid-template-columns:minmax(100px,1.1fr) minmax(50px,1.5fr) minmax(60px,.8fr); align-items:center; gap:12px; margin:10px 0; font-size:13px; }
.brief-bars meter { width:100%; height:18px; accent-color:var(--primary); }.brief-bars strong { text-align:right; font-weight:500; font-variant-numeric:tabular-nums; }
.business-brief .brief-note { color:var(--muted); font-size:12px; line-height:1.65; }
.brief-quadrants { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.entry-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:12px; }
.execution-card { min-width:0; padding:16px; margin:12px 0; border:1px solid var(--line); border-radius:10px; background:#fff; overflow-wrap:anywhere; }
.execution-card h4 { margin:0 0 10px; }.execution-card p,.execution-card dd { font-size:13px; line-height:1.7; }
.execution-card summary { font-size:13px; color:var(--primary); cursor:pointer; }.execution-card dt { margin-top:14px; font-weight:600; font-size:13px; }.execution-card dd { margin:5px 0 0; }
.entry-state { display:inline-block; padding:4px 8px; border-radius:5px; background:#FFF3DD; color:#67563A; font-size:12px; }
.home-header,.home-section-head { display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap; }.home-header h1 { font-size:28px; margin:10px 0; }.home-header p { color:var(--muted); line-height:1.6; }
.home-period { display:flex; gap:8px; }.home-period [aria-pressed="true"] { color:white; background:var(--primary); border-color:var(--primary); }
.home-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:22px 0; }.home-stats>div,.home-stats>button { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px; background:#fff; border:1px solid var(--line); border-radius:12px; }.home-stats span { font-size:13px; color:var(--muted); }.home-stats strong { font-size:28px; color:#143b71; }
.home-top-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:start; gap:18px; }.home-panel { min-width:0; background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; }.home-panel h2 { font-size:19px; margin:4px 0 12px; }.home-panel h3,.home-panel h4 { font-size:15px; line-height:1.6; margin:10px 0; }.home-panel p { font-size:13px; line-height:1.7; }.home-panel details { margin:14px 0; }.home-panel summary { cursor:pointer; font-size:13px; color:var(--primary); }.home-panel small { color:var(--muted); font-size:12px; line-height:1.6; }
.home-tag { display:inline-block; color:#24598d; background:#edf5fc; border-radius:6px; padding:5px 9px; font-size:12px; }.home-item-meta { display:flex; justify-content:space-between; gap:12px; font-size:12px; color:var(--muted); }.home-news-item { border-top:1px solid var(--line); padding:14px 0; }.home-links { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:12px 0; font-size:13px; }.home-links a,.home-issues a { color:var(--primary); }.home-next { padding:10px; background:#f3f7fc; border-radius:7px; }.home-notice { padding:12px; background:#f6f8fc; border-radius:7px; }.home-issues article { padding:14px 0; border-top:1px solid var(--line); font-size:13px; }
.home-alert { border-left:3px solid #e4a449; border-bottom:1px solid var(--line); padding:4px 0 12px 14px; margin:16px 0; }.home-alert-value { font-weight:500; color:#805a25; }.home-actions { margin-top:20px; }.home-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.home-action { border:1px solid var(--line); border-radius:10px; padding:16px; overflow-wrap:anywhere; }.home-more-actions article { padding:14px 0; border-top:1px solid var(--line); }
.home-handoff { line-height:1.7; }.home-handoff textarea { width:100%; box-sizing:border-box; margin:10px 0; padding:12px; border:1px solid var(--line); border-radius:8px; font:inherit; font-size:13px; resize:vertical; }.home-handoff code { overflow-wrap:anywhere; }
@media(max-width:900px) { .home-top-grid { grid-template-columns:1fr; } }
@media(max-width:700px) { .home-header h1 { font-size:23px; }.home-stats { gap:8px; }.home-stats>div,.home-stats>button { flex-direction:column; align-items:start; padding:12px; }.home-stats strong { font-size:24px; }.home-panel { padding:16px; }.home-action-grid { grid-template-columns:1fr; } }
.brief-quadrants>div { display:grid; grid-template-columns:1fr auto; gap:6px; padding:12px; border:1px solid var(--line); border-radius:8px; font-size:13px; }
.brief-quadrants small { grid-column:1/-1; color:var(--muted); }.brief-quadrants strong { color:var(--primary); }
.brief-next { margin:20px 0 12px; }.brief-next ol { list-style:none; padding:0; counter-reset:steps; }
.brief-next li { display:grid; grid-template-columns:26px 1fr; column-gap:10px; margin:12px 0; counter-increment:steps; }
.brief-next li::before { content:counter(steps); grid-row:1/3; display:grid; place-content:center; height:26px; border-radius:50%; background:#EDF2FF; color:var(--primary); font-size:12px; }
.brief-next li strong { font-size:14px; font-weight:500; line-height:1.6; }.brief-next li p { grid-column:2; font-size:13px; color:var(--muted); margin:4px 0 0; line-height:1.6; }
.brief-context { border-top:1px solid var(--line); margin-top:18px; padding-top:14px; font-size:13px; }.brief-context summary { color:var(--muted); font-size:13px; }
.brief-context ul { padding-left:18px; }.brief-context p { font-size:13px; }.business-brief .market-analysis { padding:0; margin:0; background:transparent; border:0; }
.business-brief .market-tabs { margin:0 0 16px; }.brief-verdict { font-size:14px; }.brief-rating { display:flex; align-items:start; gap:12px; padding:12px; background:#F3F6FC; border-radius:8px; margin-top:16px; }
.brief-rating strong { flex-shrink:0; font-size:14px; }.brief-rating span { font-size:12px; color:var(--muted); }
.brief-risk-list>div,.brief-checklist>div { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); font-size:14px; }
.brief-risk-list strong,.brief-checklist strong { font-size:12px; white-space:nowrap; padding:3px 8px; border-radius:5px; color:#67563A; background:#FFF3DD; }
.brief-risk-list [data-risk-level="高"] { color:#A33F37; background:#FFF0EC; }.brief-risk-list [data-risk-level="低"],.brief-checklist [data-ready="true"] { color:#197360; background:#EAF7F1; }
.brief-progress { display:grid; gap:10px; margin:18px 0; }.brief-progress progress { width:100%; height:12px; accent-color:var(--primary); }.brief-progress span { color:var(--muted); font-size:12px; }
.brief-timeline { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.brief-timeline>div { border-left:3px solid #B8CAF9; padding:8px 12px; background:#F8FAFE; }
.brief-timeline strong { font-size:13px; }.brief-timeline p { font-size:12px; line-height:1.65; color:var(--muted); }
@media(max-width:700px) { .business-brief { padding:16px; }.brief-head { align-items:start; }.brief-head>span { font-size:15px; }.brief-head small { display:none; }.brief-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.brief-metrics>div { padding:11px; }.brief-metrics strong { font-size:19px; }.brief-bars>div { grid-template-columns:minmax(90px,1.3fr) minmax(35px,1fr) minmax(50px,.8fr); gap:7px; font-size:12px; }.brief-quadrants>div { grid-template-columns:1fr; }.brief-quadrants strong { font-size:17px; }.brief-timeline { grid-template-columns:1fr; }.brief-rating { flex-direction:column; gap:4px; }.business-brief .growth-row { grid-template-columns:54px minmax(0,1fr) 75px; gap:5px; } }
.image-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;max-width:100%;margin:12px 0}.image-gallery img{display:block;width:100%;height:150px;object-fit:contain;border-radius:10px;background:#f4f6fb}.image-gallery figure{min-width:0;margin:0}.image-gallery .file-link{display:block;overflow-wrap:anywhere;margin-top:7px}.image-choice{display:flex;flex-direction:column;border:1px solid var(--line,#dce3f0);border-radius:10px;padding:8px;min-width:0}.image-choice span{font-size:12px;overflow-wrap:anywhere;margin-top:8px}.image-choice input{width:auto!important;margin:0 6px 0 0!important}.image-choice:has(input:checked){border-color:#315efb;background:#f4f6ff}.message-images{margin-left:16px}.attachment img{width:30px;height:30px;object-fit:cover;border-radius:5px;margin-right:6px}.market-intake textarea{width:100%;box-sizing:border-box;resize:vertical;font:inherit;border:1px solid var(--line,#dce3f0);border-radius:8px;padding:10px;min-height:100px}#image-studio .secondary-button{margin-top:8px}#image-studio h3{margin:22px 0 10px}#image-result{overflow-wrap:anywhere;margin-top:16px}@media(max-width:600px){.image-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.image-gallery img{height:125px}.message-images{margin-left:0}}
.report-data-table{margin:14px 0;border:1px solid var(--line,#dce3f0);border-radius:10px;max-width:100%;min-width:0}.report-data-table>summary{cursor:pointer;padding:14px;font-weight:600;overflow-wrap:anywhere}.report-data-table>summary span{display:block;margin:7px 0 0 14px;font-size:12px;font-weight:400;color:#6b7b95}.report-table-page{padding:0 12px 12px;min-width:0}.report-table-range{font-size:12px;line-height:1.65;color:#627590}.report-table-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0}.report-table-controls span{font-size:12px;white-space:nowrap}.report-page-form{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:12px;max-width:100%}.report-page-form input{width:66px;padding:6px;border:1px solid var(--line,#dce3f0);border-radius:6px}.report-table-page .result-table{margin:12px 0}@media(max-width:600px){.report-table-controls button{padding:8px}.report-table-page{padding:0 8px 8px}}

.home-stats>button { text-align:left; font:inherit; cursor:pointer; }.home-stats>button:hover { border-color:var(--primary); background:#f8faff; }
.newsletter-link { display:inline-block; padding:9px 12px; border-radius:8px; color:#176d5c; background:#e9f7f1; text-decoration:none; font-size:13px; font-weight:600; }
.morning-panel { margin:0 0 20px; background:linear-gradient(120deg,#f2f6ff,#fff 62%); }
.morning-heading,.morning-mini-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }.morning-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr); gap:26px; margin-top:8px; }
.morning-state { display:inline-block; border-radius:20px; padding:7px 11px; color:#755020; background:#fff0d9; font-size:12px; white-space:nowrap; }.morning-state.is-sent { color:#136749; background:#e6f5ed; }
.morning-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:18px 0; }.morning-counts>div { padding:12px; background:#fff; border:1px solid #e0e8f5; border-radius:10px; }.morning-counts strong { display:block; font-size:25px; color:#1c4c90; }.morning-counts small { margin-left:5px; font-size:12px; font-weight:400; }.morning-counts span { display:block; margin-top:6px; color:var(--muted); font-size:12px; }
.morning-flow { display:flex; gap:8px; flex-wrap:wrap; }.morning-flow span { font-size:12px; color:#496181; }.morning-flow span:not(:last-child)::after { content:'→'; margin-left:8px; color:#7b99c0; }
.morning-mini-card { border:1px solid #d4e2f6; background:#fff; border-radius:12px; padding:17px; box-shadow:0 4px 16px #244c9010; }.morning-mini-head { justify-content:flex-start; }.morning-mini-head small { display:block; margin-top:3px; }.morning-symbol { display:grid; place-items:center; width:34px; height:34px; background:#326bde; color:white; border-radius:9px; font-size:24px; }.morning-mini-title { font-weight:600; font-size:16px!important; color:#173f77; }
.morning-runtime { padding:16px; border-radius:10px; background:#edf5ff; margin-bottom:20px; }.morning-runtime small,.morning-detail>p { color:var(--muted); line-height:1.7; }.morning-record>h3 { font-size:20px; }.morning-record>p { font-size:14px; line-height:1.8; }
.morning-timeline { list-style:none; margin:20px 0; padding:0 0 0 12px; border-left:2px solid #c5d8f5; }.morning-timeline li { margin:0 0 18px; padding-left:8px; font-size:13px; }.morning-timeline time { display:block; margin-top:4px; color:var(--muted); }
.morning-sections { display:grid; gap:12px; }.morning-sections article { display:flex; gap:12px; padding:14px; background:#f7f9fd; border-radius:10px; }.morning-sections article>span { color:#3470c7; font-weight:700; }.morning-sections h4 { margin:0; }.morning-sections p { margin:7px 0 0; font-size:13px; line-height:1.7; }.morning-detail>details { margin:24px 0; }.morning-detail summary,.morning-reminder summary { cursor:pointer; color:var(--primary); font-size:13px; }
.morning-preview-card { margin:18px 0; border:1px solid #ccdbef; border-radius:12px; overflow:hidden; box-shadow:0 4px 18px #21487a0c; }.morning-preview-card>header { background:linear-gradient(120deg,#e2edff,#f1f6ff); padding:14px 18px; color:#24558f; font-weight:600; }.morning-preview-card>div { padding:18px; }.morning-preview-card h3 { font-size:18px; line-height:1.6; margin-top:0; }.morning-preview-card p { line-height:1.8; font-size:14px; }.morning-preview-card dl>div { display:grid; grid-template-columns:74px minmax(0,1fr); gap:10px; margin:10px 0; font-size:13px; }.morning-preview-card dt { color:var(--muted); }.morning-preview-card dd { margin:0; overflow-wrap:anywhere; }.morning-preview-card details { margin:16px 0; }.morning-reminder>p { font-size:13px; line-height:1.7; color:var(--muted); }.morning-reminder textarea { width:100%; box-sizing:border-box; margin:12px 0; font:inherit; font-size:13px; line-height:1.7; padding:12px; border:1px solid var(--line); border-radius:8px; }
@media(max-width:900px) { .morning-layout { grid-template-columns:1fr; gap:14px; } }
@media(max-width:700px) { .morning-heading { align-items:flex-start; flex-direction:column; }.morning-counts { gap:7px; }.morning-counts>div { padding:10px; }.morning-counts strong { font-size:23px; }.morning-mini-card { padding:14px; } }

#workspace.app-shell{border-top:0}
#workspace>.brand{gap:10px;padding:0 15px}
#workspace>.brand .brand-mark{position:relative;display:block;flex:none;width:74px;height:36px;overflow:hidden;background:#fff;border-radius:6px}
/* The original logo includes transparent margins; crop them without changing the brand asset. */
#workspace>.brand img{position:absolute;left:-9px;top:-5px;width:93px;height:auto;max-width:none;padding:0;background:transparent;border-radius:0}
#workspace>.brand strong{color:#fff;letter-spacing:.08em}
#workspace>.topbar p{color:#e0f2ff}#workspace>.topbar .account,#workspace>.topbar .text-button{color:#fff}
#workspace>.topbar .secondary-button{color:#fff;background:#ffffff14;border-color:#ffffff70}
#workspace>.sidebar{background:linear-gradient(180deg,#fff,#f5fbff 85%);border-right-color:#d6e5f3;padding:18px 12px 0}
#workspace .sidebar .group-label{color:#526d8c;letter-spacing:.05em;font-size:11px}
#workspace .sidebar .nav-link{border:1px solid transparent;border-radius:9px;color:#31506e}
#workspace .sidebar .nav-link.active{color:#1456b8;border-color:#bdd4ef;background:var(--brand-soft);font-weight:600;box-shadow:inset 3px 0 #168aa9}
#workspace .sidebar .nav-link:hover{background:#e8f2ff}#workspace .sidebar .side-nav .active::before{background:#157c97;width:6px;height:6px}
#workspace .sidebar .session.active{background:var(--brand-soft);color:#1858b7}#workspace .sidebar .new-chat{background:var(--brand-gradient);border:0;border-radius:22px;box-shadow:0 5px 14px #3470ff20}
#workspace .sidebar-bottom{background:#f3f8fd}
@media(max-width:700px){#workspace>.brand{justify-content:flex-start;padding:8px 14px}#workspace>.brand img{width:100px}#workspace>.topbar{padding:10px 14px}}
/* One continuous brand strip spans both grid columns. */
#workspace{--line:#e5edf7;--muted:#6a7b93;--text:#182d4d;background:#f7faff;position:relative}
#workspace:before{content:"";position:absolute;inset:0 0 auto;height:72px;background:var(--brand-gradient);pointer-events:none;z-index:0}
#workspace>.brand,#workspace>.topbar{position:relative;z-index:1;background:transparent;border:0;box-shadow:none}
#workspace>.sidebar{padding-top:20px;background:#fff}#workspace .sidebar .new-chat{min-height:44px;font-weight:650;box-shadow:0 5px 16px #3b7aff1c}
#workspace .sidebar #session-list{max-height:190px;flex:0 1 auto;margin-bottom:16px}
#workspace .history-item{padding:10px 12px;border:0;background:transparent;border-radius:10px;text-align:left;color:#547091;margin-bottom:4px}
#workspace .history-item.active{background:#eef5ff;color:#245dcc}#workspace .history-item strong{font-weight:500}#workspace .history-item small{color:#8b9bb0}
#workspace .sidebar .nav-link{min-height:42px;color:#56708c}#workspace .sidebar .nav-link.active{background:var(--brand-soft);border-color:transparent;box-shadow:inset 3px 0 var(--primary);color:var(--primary)}
#workspace .content-page{background:#f7faff}.page-heading h1{letter-spacing:-.035em}
#page-chat.is-conversation{background:radial-gradient(ellipse at 50% 0,#eef8ff,transparent 60%),#fff}
.is-conversation #analysis-workspace{max-width:900px;margin:auto;width:100%;padding:28px 32px}.is-conversation .session-header{border:0}
.is-conversation .question-panel{border:1px solid #d8e9f7;border-radius:18px;box-shadow:0 8px 30px #2d6cc30b;background:#fff}
.is-conversation .question-panel textarea{border:0;background:transparent;font-size:16px;min-height:90px}.is-conversation .question-panel textarea:focus{outline:0;box-shadow:none}
.is-conversation .question-panel:focus-within{outline:2px solid #4e9bff;outline-offset:2px}
.is-conversation .composer-footer p,.is-conversation .results-section>.section-heading{display:none}
.is-conversation .results-section{margin-top:24px}.conversation-welcome{padding:32px 8px 24px;text-align:center}.conversation-welcome>span{color:#2894c7;font-size:13px;font-weight:600}.conversation-welcome h2{font-size:34px;line-height:1.45;letter-spacing:-.04em;color:#203c61}.conversation-welcome p{color:#8291a6;font-size:14px}
.conversation-scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px}.conversation-scenes button{text-align:left;border:1px solid #e0edf8;border-radius:16px;padding:20px;background:linear-gradient(140deg,#fff,#f2faff);display:grid;gap:9px;color:#22466a;cursor:pointer}.conversation-scenes button:hover{border-color:#56b7e4;box-shadow:0 6px 20px #3b83d414}.conversation-scenes span{font-size:11px;color:#6d9abb}.conversation-scenes strong{font-size:17px}.conversation-scenes small{font-size:12px;color:#7389a0}.conversation-scenes b{font-size:12px;color:#2684d3;font-weight:500;margin-top:7px}.conversation-model-note{font-size:12px;text-align:center;color:#7c91a7;line-height:1.8}.conversation-model-note a{color:#227cd1}
/* The conversation replaces the onboarding screen as soon as the user sends. */
.is-conversation.conversation-started .analysis-heading{display:none}
.is-conversation.conversation-started .results-section{margin-top:0}
.is-conversation.conversation-started .question-panel{padding:18px 22px;margin-top:22px}
.is-conversation.conversation-started .question-panel textarea{min-height:58px}
.is-conversation.conversation-started #question-label{font-size:13px;color:var(--muted);font-weight:500}
.conversation-next{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:4px 0 8px}
.conversation-next>span{font-size:12px;color:#7389a0}
.conversation-next button{font:inherit;font-size:13px;color:#245dcc;background:#f1f7ff;border:1px solid #d8e7f7;border-radius:20px;padding:9px 14px;cursor:pointer}
.conversation-next button:hover{background:#e7f1ff;border-color:#98bcee}
.conversation-answer{border:0!important;box-shadow:none!important;background:transparent!important}.conversation-answer .answer-summary{font-size:15px;line-height:1.9}.conversation-answer .answer-head{margin-bottom:15px}
.model-settings-card{max-width:760px;margin:24px auto;background:#fff;padding:30px;border:1px solid #e0ebf7;border-radius:20px}.model-settings-card h2{font-size:23px;margin:12px 0}.model-settings-card p{font-size:13px;color:#71869e;line-height:1.8}.model-settings-card form{display:grid;gap:18px;margin-top:26px}.model-settings-card label{display:grid;gap:9px;font-size:13px;color:#34577b}.model-settings-card input:not([type=checkbox]),.model-settings-card select{width:100%;padding:12px;border:1px solid #d6e3f1;border-radius:9px;background:#fcfeff;color:#25486e}.model-settings-card details{padding:18px;border:1px solid #e0edf6;border-radius:12px}.model-settings-card details label{margin-top:16px}.model-connection-state{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:#4d84a3}.model-connection-state span{background:#eff8fc;border-radius:20px;padding:6px 11px}
@media(max-width:700px){.is-conversation #analysis-workspace{padding:18px 14px}.conversation-welcome h2{font-size:27px}.conversation-scenes{grid-template-columns:1fr}.model-settings-card{padding:20px}}
#workspace>.topbar{color:#fff}
#workspace>.topbar p,#workspace>.topbar .account,#workspace>.topbar .text-button,#workspace>.topbar .secondary-button{color:#fff}
#workspace>.sidebar{background:linear-gradient(90deg,#eefafa 0%,#f0f5ff 100%)}
#workspace .content-page{background:#f6f8fc}
.app-shell{width:100%;max-width:100%;overflow:hidden}.topbar-context{overflow:hidden}.news-review-layout>*{min-width:0}.news-topic-card,.news-ops-card{overflow-wrap:anywhere}
@media(min-width:701px) and (max-width:1100px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.news-review-layout.news-workflow{grid-template-columns:minmax(0,1fr)}.news-review-side{position:static}.news-issue-heading h2{font-size:22px}.content-page{padding:22px 18px}}
.is-conversation #analysis-workspace{display:flex;flex-direction:column}.is-conversation .results-section{order:0}.is-conversation .question-panel{order:1;margin-top:22px;position:sticky;bottom:16px;z-index:2}.is-conversation .session-header{order:-1}
.is-conversation .analysis-heading .status-tag,.is-conversation .analysis-heading #scene-label{display:none}.is-conversation .analysis-heading h1{font-size:16px;color:#6e87a1}.is-conversation .analysis-heading p{font-size:12px}
@media(max-width:700px){#workspace:before{height:128px}#workspace>.brand .brand-mark{width:70px;height:34px}#workspace>.brand img{width:88px;left:-8px;top:-5px}}

/* Keep white labels legible across the blue/cyan brand gradient. */
.primary-button,.send,.primary,:is(#task-detail-root,#tod-root,#hars-root) .tod-primary,:is(#task-detail-root,#tod-root,#hars-root) .tod-scene-nav [aria-current=page],.news-stages-compact li.current{text-shadow:0 1px 2px #16439c}
#workspace>.brand strong,#workspace>.topbar .topbar-context,#workspace>.topbar .topbar-context h1{color:#fff}#workspace>.topbar .topbar-context p{color:#f0f7ff}
