/* Self-hosted brand fonts (woff2, latin + latin-ext) — Fraunces (display serif), Space Grotesk (UI sans),
     JetBrains Mono (data/labels), Jost (wordmark). Served from /fonts/ (server.py). Matches aurenna.bio;
     no Google Fonts / gstatic dependency (blocked in mainland China). */
  @font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/fraunces-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
  @font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/fraunces-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
  @font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/spacegrotesk-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
  @font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/spacegrotesk-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
  @font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url('/fonts/jetbrainsmono-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
  @font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url('/fonts/jetbrainsmono-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
  @font-face{font-family:'Jost';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/jost-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
  @font-face{font-family:'Jost';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/jost-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
  :root{
    /* Noah Research (Figma 2026-10): white pages, #eee hairlines, neutral gray text ramp, NOAH teal accent. */
    --bg:#FFFFFF; --panel:#ffffff; --panel2:#F1F1F1; --ink:#191919; --muted:#666666;
    --line:#EEEEEE; --line2:#CCCCCC;
    /* NOAH teal: fills/borders use --accent-strong, text uses the slightly deeper --accent-ink; legacy --blue/--blue2 alias it */
    --accent:#00BCA0; --accent-strong:#00BCA0; --accent-strong-hover:#00A88F; --accent-ink:#00A88F; --accent-weak:#E5F8F5;
    --accent-muted:#4AA598;   /* a table row's inline 详情 / 收起 link (Figma clinical list) */
    --blue:#00A88F; --blue2:#E5F8F5;
    --green:#159a78; --green2:#e8f5ef; --orange:#b1762b; --orange2:#f9f0e0;
    --red:#b5463f; --red2:#f8ece9; --shadow:0 12px 32px rgba(25,25,25,.08);
    --shadow-sm:0 4px 6px rgba(204,204,204,.16);           /* the composer / raised-card lift */
    --rail:264px; --left:340px; --right:340px; --runtime-gutter:7px; --radius:16px;
    /* type: PingFang SC (UI sans, Latin + CJK) · Fraunces (legacy display serif) · JetBrains Mono (data/labels) */
    --serif:'Fraunces','Songti SC','Noto Serif SC',"Iowan Old Style",Georgia,ui-serif,serif;
    --sans:'PingFang SC',-apple-system,BlinkMacSystemFont,"Segoe UI",'Microsoft YaHei','Noto Sans SC',system-ui,sans-serif;
    --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
    --font-cjk-sans:'PingFang SC','Microsoft YaHei','Noto Sans SC',sans-serif;
    --font-cjk-serif:'Songti SC','Noto Serif SC','SimSun',serif;
    /* design-system tokens — see docs/DESIGN_SYSTEM.md; consolidate hardcoded values onto these */
    --page:#FFFFFF;      /* the one workspace page background (white, = --bg) */
    --bar:#FBFCFC;       /* the sidebar, page top-bars / sticky group headers */
    --inset:#FCFCFC;     /* subtle inner fill inside a card */
    --line-soft:#F0F0F0; /* soft inner divider */
    --text:#191919;      /* body text */
    --faint:#999999;     /* tertiary text: timestamps, meta */
    --placeholder:#ADADAD;
    --panel-warm:#F5F5F5;/* neutral raised surface */
    --avatar:#959C9B;    /* the initials avatar */
    --danger:#FF4849;    /* destructive menu actions (删除) */
    --heat-ink:#00806E;  /* pipeline heatmap cells: deep teal at the cell's density alpha */
    --hero-tint:#F5FAFA; /* the landing hero's faint teal wash */
    /* category tags (monitor event types, news categories): text + 10% tint of the same hue */
    --tag-teal:#27A894; --tag-teal-bg:#E9F6F4; --tag-purple:#543AA0; --tag-purple-bg:#EEEBF5;
    --tag-amber:#C69F34; --tag-amber-bg:#F9F5EB; --tag-rust:#B7532B; --tag-rust-bg:#F8EEEA;
    --tag-cyan:#007E8E; --tag-cyan-bg:#E5F2F3;
    --r-sm:8px; --r-md:10px; --r-lg:12px; --r-pill:999px;   /* radius scale */
    --ctl-sm:32px; --ctl-md:36px; --ctl-lg:40px;            /* control-height scale (40 = sidebar rows) */
    --violet:#6349A8; --violet2:#EFEBF8;   /* BD / partnership tags (季报分析) */
    --scrim:rgba(28,33,30,.28);              /* overlay behind page drawers */
    --page-max:1200px;                                      /* shared max-width for centered content/board pages (行业动态/热点/管线) — dense data pages (监控/日历/知识库) stay full-width */
    --content-max:870px;                                    /* the landing / conversation reading column */
    --ease:cubic-bezier(.22,1,.36,1); --dur-fast:.16s; --dur:.28s;   /* brand motion: decel curve + durations */
  }
  *{box-sizing:border-box}
  html,body{height:100%;margin:0}
  body{
    background:var(--bg); color:var(--ink);
    font:14px/1.55 var(--sans);
    -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  }
  button,input,select,textarea{font:inherit}
  button{cursor:pointer}
  /* a11y: one consistent keyboard focus ring on every interactive element (brand teal) */
  :where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
  /* a11y: respect reduced-motion — neutralize the ~10 infinite spinners/pulses + all transitions */
  @media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
  /* Live token-stream bubble: Markdown is progressively rendered while the
     buffer grows; the caret remains until the terminal answer commits. */
  .noahStreaming{animation:msgRise var(--dur) var(--ease)}
  @keyframes msgRise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
  .noahStreaming .streamText{white-space:normal}
  .noahStreaming .streamText>p{margin:.3em 0}
  .noahStreaming .streamText>h1,.noahStreaming .streamText>h2,.noahStreaming .streamText>h3{margin:.65em 0 .35em}
  .noahStreaming .streamText>.tableWrap{height:auto;max-height:55vh;margin:8px 0}
  .noahStreaming .streamText::after{content:'\258D';color:var(--accent);margin-left:1px;animation:caretBlink 1.05s step-end infinite}
  @keyframes caretBlink{50%{opacity:0}}
  .app{height:100vh;display:grid;grid-template-columns:var(--rail) 1fr;overflow:hidden}
  .app.sidebar-collapsed{--rail:66px}
  /* Sidebar (Figma 1.x): --bar rail, 60px logo row, 40px rows at 15px, 历史对话 shows titles only. */
  .rail{position:relative;border-right:1px solid var(--line);background:var(--bar);display:flex;flex-direction:column;padding:0;min-width:0;min-height:0}   /* min-height:0: as a grid item it defaults to min-height:auto and would grow past 100vh with many history sessions (clipped by .app overflow:hidden) instead of letting .sessionList scroll */
  .railTop{position:relative;height:60px;flex:0 0 60px;display:flex;align-items:center;gap:8px;padding:0 16px}
  .railLogo{height:24px;width:auto;display:block}
  .railMark{display:none;width:32px;height:32px;flex:0 0 32px}
  .app.sidebar-collapsed .railLogo{display:none}
  .app.sidebar-collapsed .railMark{display:block}
  .railToggle{margin-left:auto;width:22px;height:22px;border:0;border-radius:4px;background:transparent;color:var(--faint);display:grid;place-items:center;padding:0}
  .railToggle svg{width:22px;height:22px;display:block}
  .railToggle:hover{background:var(--panel2);color:var(--ink)}
  .nav{display:flex;flex-direction:column;gap:4px;width:100%;padding:0 12px}
  .nav button{width:100%;min-width:0;height:var(--ctl-lg);border:1px solid transparent;background:transparent;border-radius:var(--r-sm);color:var(--ink);font-size:15px;line-height:22px;display:flex;align-items:center;gap:10px;text-align:left;padding:0 12px}
  /* Release gate: unfinished product surfaces remain implemented but have no public navigation entry. */
  .nav button.releaseHidden{display:none!important}
  .nav button b{width:16px;height:16px;display:grid;place-items:center;color:inherit;flex:0 0 16px}
  .nav button b svg{width:16px;height:16px;display:block}
  .nav button span,.sessionOpen span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nav button:hover,.nav button.active{background:var(--panel2)}
  .nav button.navNew,.nav button.navNew.active{background:var(--panel);border-color:var(--line)}   /* 新建会话 is an action, always raised */
  .nav button.navNew:hover{border-color:var(--line2)}
  .navKbd{margin-left:auto;display:flex;gap:6px;font:inherit}
  .navKbd i{min-width:18px;height:18px;padding:0 4px;border-radius:4px;background:var(--panel2);color:var(--faint);font-style:normal;font-size:11px;line-height:18px;text-align:center}
  .historyPanel{min-height:0;display:flex;flex:1;flex-direction:column;padding:12px 12px 8px}
  .railSectionTitle{height:32px;flex:0 0 32px;display:flex;align-items:center;padding:0 12px;font-size:12px;color:var(--muted)}
  .sessionList{min-height:0;overflow:auto;display:flex;flex-direction:column}
  .sessionItem{position:relative;min-width:0;flex:0 0 auto;display:flex;align-items:center;height:var(--ctl-lg);border-radius:var(--r-sm);color:var(--ink)}
  .sessionItem:hover,.sessionItem.active,.sessionItem.menuOpen{background:var(--panel2)}
  .sessionOpen{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:10px;border:0;border-radius:var(--r-sm);background:transparent;color:inherit;cursor:pointer;padding:0 12px;text-align:left;font-size:15px;line-height:22px}
  .sessionSpin{width:15px;height:15px;flex:0 0 15px;display:block;animation:spin .9s linear infinite}
  .sessionSpin svg{width:15px;height:15px;display:block}
  .sessionOpen>span:not([class]){flex:1;min-width:0}
  .sessionFlag{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--orange)}   /* waiting for the user's answer */
  .sessionPinned{width:12px;height:12px;flex:0 0 12px;color:var(--faint)}
  .sessionPinned svg{width:12px;height:12px;display:block}
  /* The ⋯ menu stays out of the reading path until the row is hovered/focused. It is a real button beside the
     open button (nested interactive controls are invalid HTML and unreliable for screen readers). */
  .sessionMore{position:absolute;right:8px;top:8px;width:24px;height:24px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted);display:grid;place-items:center;opacity:0;pointer-events:none}
  .sessionItem:hover .sessionOpen,.sessionItem:focus-within .sessionOpen,.sessionItem.menuOpen .sessionOpen{padding-right:40px}
  .sessionMore svg{width:16px;height:auto;display:block;overflow:visible}   /* dots sit inside a padded box: Safari clipped the last one */
  .sessionItem:hover .sessionMore,.sessionItem:focus-within .sessionMore,.sessionItem.menuOpen .sessionMore{opacity:1;pointer-events:auto}
  .sessionMore:hover,.sessionItem.menuOpen .sessionMore{background:var(--line);color:var(--ink)}
  .sessionRename{flex:1;min-width:0;height:30px;margin:0 8px;padding:0 8px;border:1px solid var(--accent);border-radius:var(--r-sm);background:var(--panel);color:var(--ink);font-size:15px;outline:0}
  .popMenu{position:fixed;z-index:90;width:136px;padding:8px;display:flex;flex-direction:column;gap:4px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow)}
  .popMenu[hidden]{display:none}
  .popMenu button{height:var(--ctl-md);display:flex;align-items:center;gap:10px;padding:0 12px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink);font-size:15px;text-align:left;white-space:nowrap}
  .popMenu button svg{width:16px;height:16px;flex:0 0 16px;display:block}
  .popMenu button:hover,.popMenu button:focus-visible{background:var(--panel2);outline:0}
  .popMenu button.danger{color:var(--danger)}
  /* Conversation task state: colour is paired with a title/aria label, so the history signal is not
     colour-only.  No neutral/grey dot: a conversation without a task status stays visually quiet. */
  .sessionTaskDot{width:7px;height:7px;border-radius:50%;flex:0 0 auto;box-shadow:0 0 0 2px rgba(15,23,42,.05)}
  .sessionTaskDot.running{background:#2383e2;animation:sessionTaskPulse 1.35s ease-in-out infinite}
  .sessionTaskDot.queued{background:#d99a12}
  .sessionTaskDot.completed{background:var(--green)}
  .sessionTaskDot.failed{background:var(--red)}
  .sessionTaskDot.waiting{background:var(--orange)}
  @keyframes sessionTaskPulse{0%,100%{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}
  /* the landscape build's journal under the stage line */
  .buildJournal{margin:0 0 6px;padding:6px 10px 6px 12px;border-left:1px solid var(--line);font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:4px}
  .buildJournalLine{display:flex;align-items:baseline;gap:8px;line-height:1.5}
  .buildJournalDot{flex:0 0 auto;width:5px;height:5px;border-radius:50%;background:var(--line);transform:translateY(-2px)}
  .buildJournalLine.live{color:var(--text)}.buildJournalLine.live .buildJournalDot{background:var(--accent);animation:sessionTaskPulse 1.35s ease-in-out infinite}
  .buildJournalLine.tick{color:var(--faint,var(--muted))}.buildJournalLine.tick .buildJournalDot{visibility:hidden}
  /* 展开全部 starts where the lines' text (and their ✓) starts: past the 5px dot and its 8px gap */
  .buildJournalMore{align-self:flex-start;border:0;background:none;padding:0;margin:4px 0 0 13px;font:inherit;font-size:12px;color:var(--faint);cursor:pointer}
  .buildJournalMore:hover{color:var(--accent-ink)}
  .buildJournalList{display:flex;flex-direction:column;gap:8px}
  .buildJournal.open .buildJournalList{max-height:220px;overflow-y:auto}   /* expanded, the list scrolls at a fixed height; the toggle under it stays put */
  #thread>.buildJournal:last-child{margin-bottom:24px}   /* the live line is not the bottom edge of the page */
  .conversationTaskLive{display:flex;align-items:center;gap:8px;margin:10px 0 2px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--panel2);font-size:12px;color:var(--muted)}
  .conversationTaskLive .sessionTaskDot{width:8px;height:8px}
  .conversationTaskLive>span:nth-child(2){min-width:0;flex:0 1 auto;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .conversationTaskLive>.sessionTaskDot,.conversationTaskLive button{flex-shrink:0}
  .conversationTaskClock{margin-left:auto;flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted)}
  .conversationTaskClock:empty{display:none}
  .conversationTaskClock:not(:empty)+button{margin-left:0}
  .conversationTaskLive button{white-space:nowrap;margin-left:auto;border:1px solid var(--line2);border-radius:var(--r-pill);background:var(--panel);color:var(--muted);font:inherit;padding:3px 9px;cursor:pointer}
  .conversationTaskLive button:hover{color:var(--ink);border-color:var(--accent)}
  .historyEmpty{font-size:12px;line-height:1.4;color:var(--faint);padding:8px 12px}
  .railBottom{position:relative;height:60px;flex:0 0 60px;display:flex;align-items:center;gap:12px;padding:0 12px;border-top:1px solid var(--line)}
  .userPanel{flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:4px;margin-left:-4px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink);text-align:left}
  .userPanel:hover,.userPanel[aria-expanded="true"]{background:var(--panel2)}
  .userAvatar{width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:grid;place-items:center;background:var(--avatar);color:var(--panel);font-size:14px;font-weight:500;text-transform:uppercase}
  .userIdentity{min-width:0;flex:1}
  .userIdentity strong,.userIdentity small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .userIdentity strong{font-size:15px;line-height:22px;font-weight:500}.userIdentity small{font-size:12px;line-height:18px;color:var(--muted)}
  .nav.railFootNav{width:auto;padding:0}
  .railFootNav button{width:var(--ctl-sm);height:var(--ctl-sm);padding:0;border:0;justify-content:center;color:var(--muted)}
  .railFootNav button b,.railFootNav button b svg{width:22px;height:22px;flex-basis:22px}
  .railFootNav button:hover,.railFootNav button.active{color:var(--ink)}
  .userMenu{position:absolute;left:12px;right:12px;bottom:calc(100% + 4px);z-index:60;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px}
  .userMenu[hidden]{display:none}
  .userMenuHead{display:flex;align-items:center;gap:10px;padding:4px 8px 12px;margin-bottom:4px;border-bottom:1px solid var(--line)}
  .userMenuItem{width:100%;height:var(--ctl-lg);display:flex;align-items:center;gap:10px;padding:0 10px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink);font-size:15px;text-align:left}
  .userMenuItem:hover,.userMenuItem:focus-visible,.userMenuItem[aria-expanded="true"]{background:var(--panel2);outline:0}
  .userMenuItem>svg,.userMenuItem>b,.userMenuItem>b svg{width:18px;height:18px;flex:0 0 18px;display:block}
  .userMenuItem>span{flex:1}
  .userMenuChev{width:14px;height:14px;color:var(--muted);display:grid}
  .userMenuChev svg{width:14px;height:14px}
  .userMenuLang{position:relative}
  .userLangMenu{position:absolute;left:calc(100% + 12px);top:0;width:140px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px}
  .userLangMenu[hidden]{display:none}
  .userLangMenu .userMenuItem[aria-checked="true"]{color:var(--accent-ink);font-weight:500}
  /* Collapsed: the 66px icon rail (Figma 1.9). The mark doubles as the expand control on hover/focus. */
  .app.sidebar-collapsed .rail{align-items:center}
  .app.sidebar-collapsed .railTop{width:100%;justify-content:center;padding:0}
  .app.sidebar-collapsed .railToggle{position:absolute;left:50%;top:14px;width:32px;height:32px;margin:0;transform:translateX(-50%);opacity:0;background:var(--bar)}
  .app.sidebar-collapsed .railTop:hover .railToggle,.app.sidebar-collapsed .railToggle:focus-visible{opacity:1}
  .app.sidebar-collapsed .nav{align-items:center;padding:0}
  .app.sidebar-collapsed .nav button{width:42px;height:var(--ctl-lg);padding:0;justify-content:center}
  .app.sidebar-collapsed .nav button span,.app.sidebar-collapsed .navKbd,.app.sidebar-collapsed .historyPanel,.app.sidebar-collapsed .railFootNav,.app.sidebar-collapsed .railBottom .userIdentity{display:none}
  .app.sidebar-collapsed .railBottom{width:100%;margin-top:auto;justify-content:center;padding:0}
  .app.sidebar-collapsed .userPanel{flex:0 0 auto;margin:0}
  .app.sidebar-collapsed .userMenu{right:auto;width:236px}
  .main{min-width:0;height:100vh;display:flex;flex-direction:column}
  .top{display:none}
  .navMenuBtn,.topLogo{display:none}
  .crumb{font-size:12px;color:var(--muted)}
  .status{display:flex;align-items:center;gap:8px}
  .pill{font-size:12px;border:1px solid var(--line);border-radius:var(--r-pill);padding:4px 9px;background:rgba(255,255,255,.62);color:var(--muted);white-space:nowrap}
  .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--line2);margin-right:5px}
  .dot.on{background:var(--green)} .dot.warn{background:var(--orange)} .dot.bad{background:var(--red)}

  /* Landing (Figma 1.): hero question + composer, then the feed — 全部监控 · 每日新闻摘要 · 今日论文简报 — in one
     870px column. The page scrolls as a whole; a faint teal wash sits behind the hero. */
  .start{flex:1;display:flex;flex-direction:column;align-items:center;overflow-y:auto;padding:120px 24px 48px;background:linear-gradient(180deg,var(--hero-tint) 0,var(--page) 372px) no-repeat,var(--page)}
  .startbox{width:min(var(--content-max),100%);text-align:center;display:flex;flex-direction:column;gap:32px}
  .startHero{display:flex;flex-direction:column;align-items:center;gap:8px}
  .brand{margin:0;font-family:var(--sans);font-size:24px;line-height:1.4;font-weight:600;letter-spacing:.5px;color:var(--ink);text-wrap:balance}
  .startSub{margin:0;font-size:14px;line-height:20px;color:var(--muted)}
  .briefing{text-align:left;width:100%}
  .hmFeed{display:flex;flex-direction:column;gap:16px}
  .hmSec{display:flex;flex-direction:column}
  .hmHd{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 6px}
  .hmHdL{min-width:0}
  .hmTitle{margin:0;font-size:15px;line-height:22px;font-weight:500;letter-spacing:.5px;color:var(--ink)}
  .hmSub{margin:0;font-size:12px;line-height:18px;color:var(--faint)}
  .hmHdR{display:flex;align-items:center;gap:16px;flex:0 0 auto}
  .hmMore{border:0;background:transparent;padding:0;font-size:14px;line-height:20px;letter-spacing:.5px;color:var(--muted)}
  .hmMore:hover{color:var(--ink)}
  .hmArrow{width:24px;height:24px;padding:0;border:1.2px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink);display:grid;place-items:center}
  .hmArrow svg{width:10px;height:10px}
  .hmArrow.prev svg{transform:scaleX(-1)}
  .hmArrow:hover{border-color:var(--line2)}
  .hmCards{display:flex;flex-direction:column;gap:16px}
  .hmCard{display:flex;flex-direction:column;gap:8px;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);text-align:left}
  .hmCard.hmClick{cursor:pointer}
  .hmCard.hmClick:hover{border-color:var(--line2)}
  .hmCardHd{display:flex;align-items:center;gap:10px;min-width:0}
  .hmCardHd h3{margin:0;font-size:15px;line-height:22px;font-weight:500;letter-spacing:.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .hmTag{flex:0 0 auto;height:22px;display:inline-flex;align-items:center;padding:0 8px;border-radius:6px;font-size:12px;line-height:20px;white-space:nowrap}
  .hmTag.teal{color:var(--tag-teal);background:var(--tag-teal-bg)}
  .hmLines{display:flex;flex-direction:column;gap:4px}
  .hmText{margin:0;font-size:15px;line-height:22px;letter-spacing:.5px;color:var(--text);overflow-wrap:anywhere}
  .hmImpact{color:var(--muted)}
  .hmSrc{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;font-size:12px;line-height:18px;color:var(--faint);text-decoration:none}
  .hmSrc svg{width:10px;height:10px}   /* the arrow reads smaller than its 12px label */
  .hmSrc:hover{color:var(--ink)}
  .hmFoot{margin-top:24px;padding-top:12px;border-top:1px solid var(--line);font-size:14px;line-height:20px;letter-spacing:.5px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .hmNote{flex-direction:row;align-items:center;justify-content:space-between;gap:16px}
  .hmNote p{margin:0;display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;color:var(--muted)}
  .hmBtn{flex:0 0 auto;height:var(--ctl-sm);padding:0 13px;border:0;border-radius:var(--r-sm);background:var(--accent-strong);color:var(--panel);font-size:14px}
  .hmBtn:hover{background:var(--accent-strong-hover)}
  .hmQuiet{margin:0;padding:0 6px;font-size:12px;color:var(--faint)}
  /* news / paper briefs as cards: news is a 3-up row the arrows page through, papers stack full width */
  .hmSec .bfSumT{font-size:14px;line-height:20px;color:var(--muted);padding:16px;border:1px solid var(--line);border-radius:var(--r-lg)}
  .hmSec .bfSumWait{display:flex;align-items:center;gap:6px}
  .hmSec .bfGoto2,.hmSec .bfPaperSource{display:none}   /* the header carries 查看全部 and the source line */
  .nsCards{display:flex;flex-direction:column;gap:16px}
  #bfNewsSum .nsCards{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 32px) / 3);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  #bfNewsSum .nsCards::-webkit-scrollbar{display:none}
  .nsCard{scroll-snap-align:start;display:flex;flex-direction:column;gap:16px;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);text-align:left;min-width:0}
  .nsCardK{margin:0;font-size:15px;line-height:22px;font-weight:500;letter-spacing:.5px;color:var(--ink)}
  .nsCard ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
  .nsCard li{font-size:15px;line-height:22px;letter-spacing:.5px;color:var(--text);min-width:0}
  #bfNewsSum .nsCard li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .nsCard .nsLink{text-decoration-color:var(--line);text-underline-offset:3px}
  .nsCard .nsLink:hover{color:var(--accent-ink);text-decoration-color:var(--accent)}
  .nsCard .bfPaperRow{display:flex;align-items:baseline;gap:8px;text-decoration:none;line-height:1.45}
  .nsCard .bfPaperRow:hover .bfPaperT{color:var(--accent-ink);text-decoration:underline}
  .nsCard .bfPaperT{font-size:15px;color:var(--text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .nsCard .bfPaperJ{flex:none;font-size:12px;color:var(--faint)}
  .nsCard .bfPaperRel{flex:none;font-size:12px;color:var(--accent-ink)}
  .bfNm small{display:block;font-weight:400;color:var(--faint);font-size:12px;margin-top:2px}   /* company·indication·phase on its OWN line (趋势看板 rows) */
  .briefing .bfRnpv{align-self:flex-start;display:inline-flex;gap:7px;align-items:baseline;font-size:12px;color:var(--muted);padding:2px 10px;background:var(--accent-weak);border-radius:var(--r-pill)}
  .briefing .bfRnpv b{color:var(--accent-ink);font-weight:600}
  .briefing .bfRnpv .up{color:var(--green);font-weight:600}
  .briefing .bfRnpv .dn{color:var(--red);font-weight:600}
  .briefing .bfRnpv .pend{color:var(--accent-strong)}
  @media(max-width:760px){
    .start{padding:40px 16px 32px}
    .startbox{gap:24px}
    #bfNewsSum .nsCards{grid-auto-columns:85%}
    .hmArrow{display:none}
  }
  /* "monitor this set" confirm modal — Noah resolves a drug set from NL, you confirm before the bulk-add */
  .msOverlay{position:fixed;inset:0;background:rgba(27,29,26,.34);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}
  .msCard{width:min(560px,100%);max-height:80vh;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);overflow:hidden}
  .msHead{display:flex;align-items:flex-start;justify-content:space-between;padding:16px 18px 12px;border-bottom:1px solid var(--line)}
  .msTitle{font-size:16px;font-weight:600;color:var(--ink)}
  .msSub{font-size:12.5px;color:var(--faint);margin-top:3px}
  .msX{border:0;background:transparent;color:var(--faint);font-size:15px;cursor:pointer;padding:2px 6px}
  .msBody{overflow-y:auto}
  .msTitle .msQ{color:var(--accent-ink);font-weight:600}
  /* editable criteria bar — see + correct what Noah extracted, then re-search */
  .msCrit{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;padding:10px 18px;border-bottom:1px solid var(--line);background:var(--bar);font-size:12px;color:var(--muted)}
  .msCrit:empty{display:none}
  .msCrit label{display:inline-flex;align-items:center;gap:5px}
  .msCrit input,.msCrit select{height:27px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--ink);font-size:12.5px;padding:0 7px}
  .msCrit input{max-width:104px}
  /* r11 UI review: dialog and card fields focus like the home composer — the border darkens to #CCCCCC, no teal, no halo */
  .msCrit input:focus,.msCrit select:focus{outline:0;border-color:var(--line2);box-shadow:none}
  .msReBtn{height:27px;border:1px solid var(--accent-strong);background:var(--accent-weak);color:var(--accent-ink);border-radius:var(--r-sm);font-size:12px;font-weight:600;padding:0 12px;margin-left:auto;cursor:pointer;white-space:nowrap}
  .msList{overflow-y:auto;padding:6px 10px}
  .msRow{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:var(--r-sm);cursor:pointer}
  .msRow:hover{background:var(--page)}
  .msRow input{width:15px;height:15px;accent-color:var(--accent-strong);flex:0 0 auto}
  .msNm{font-size:13.5px;font-weight:600;color:var(--ink);flex:0 0 auto;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .msNm .msHave{font-style:normal;font-size:11px;font-weight:600;color:var(--accent-strong);background:var(--accent-weak);border-radius:var(--r-pill);padding:1px 7px;margin-left:6px}
  .msMeta{font-size:12px;color:var(--faint);margin-left:auto;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .msRow.dis{opacity:.6;cursor:default}
  .msSpin{display:inline-block;width:14px;height:14px;border:2px solid var(--line2);border-top-color:var(--accent-strong);border-radius:50%;animation:msspin .7s linear infinite;vertical-align:-2px}
  @keyframes msspin{to{transform:rotate(360deg)}}
  .msLoading{padding:36px 16px;text-align:center;color:var(--muted);font-size:13.5px;display:flex;align-items:center;justify-content:center;gap:10px}
  .msEmpty{padding:30px 20px;text-align:center;color:var(--muted);font-size:13.5px;line-height:1.65}
  .msEmpty b{color:var(--ink)}
  .input{height:var(--ctl-md);padding:0 12px;border:1px solid var(--line);background:var(--panel);
         border-radius:var(--r-sm);color:var(--text);font-size:13.5px;font-family:var(--sans)}
  .input:focus{border-color:var(--line2);box-shadow:none;outline:0}   /* the composer's focus: 1px #CCCCCC, no teal, no halo */
  .fmFields{display:grid;gap:10px;margin-top:12px}
  .fmField{display:grid;gap:4px}
  .fmField span{font-size:12px;color:var(--muted)}
  .fmField .input{width:100%}
  .fmField .input.bad{border-color:var(--red)}
  .msFoot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--line)}
  .msFoot:empty{display:none}
  .msBtn{height:34px;border-radius:var(--r-md);padding:0 16px;font-size:13.5px;font-weight:600;border:1px solid var(--line2);cursor:pointer}
  .msBtn.ghost{background:var(--panel);color:var(--muted)}
  .msBtn.primary{background:var(--accent-strong);color:var(--panel);border-color:var(--accent-strong)}
  .msBtn.danger{background:var(--red);color:var(--panel);border-color:var(--red)}
  .msBtn.danger:hover{filter:brightness(.95)}
  .msBtn:disabled{opacity:.5;cursor:default}
  /* confirm dialog: a narrower card + a body block (no header divider) built on the .ms* modal language */
  .cmCard{width:min(420px,100%)}
  .cmBody{padding:18px 18px 14px}
  .cmBody .msTitle{line-height:1.45}
  .cmMsg{font-size:13.5px;line-height:1.6;color:var(--text);margin-top:8px}
  .question{font-family:var(--serif);font-size:25px;font-weight:500;letter-spacing:-.01em;color:var(--text);margin:0 0 26px}
  .composer{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-sm);text-align:left;transition:border-color .15s,box-shadow .15s}
  /* Keep the focus treatment on the same outer box as the visible composer. The old global focus-visible
     ring was drawn around the textarea itself, so its offset did not line up with the padded composer card. */
  .composer:focus-within{border-color:var(--line2);box-shadow:var(--shadow-sm)}   /* same #CCCCCC as a monitor card on hover; no halo */
  .composer textarea:focus,.composer textarea:focus-visible{outline:0!important}
  textarea{
    width:100%;min-height:92px;resize:none;border:0;outline:0;background:transparent;color:var(--ink);
    padding:18px 18px 56px;font-size:14px;line-height:1.55;overflow-wrap:anywhere;
  }
  textarea::placeholder{color:var(--placeholder)}
  .composer textarea{display:block;min-height:122px;padding:16px 16px 60px;font-size:15px;line-height:22px}
  /* composer textareas auto-grow with content (JS sets height off scrollHeight), then cap + scroll */
  #prompt,#followup{max-height:40vh;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
  #prompt::-webkit-scrollbar,#followup::-webkit-scrollbar{width:0;height:0}
  .composerbar{position:absolute;left:10px;right:10px;bottom:9px;display:flex;align-items:center;gap:8px}
  .iconbtn,.send,.smallbtn{
    border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);color:var(--muted);height:34px;min-width:34px;
    display:inline-flex;align-items:center;justify-content:center;padding:0 10px;
  }
  .iconbtn:hover,.smallbtn:hover{border-color:var(--line2);color:var(--ink)}
  .send{margin-left:auto;background:var(--accent-strong);border-color:var(--accent-strong);color:white;min-width:38px;font-weight:600}
  .send:disabled{background:var(--panel-warm);border-color:var(--panel-warm);color:var(--faint);cursor:default}
  .send svg{display:block}
  /* the landing composer's toolbar (Figma): + · 快速 ▾ | 牛眼图报告 … send — flat 32px controls, no borders */
  .composer .composerbar{left:16px;right:16px;bottom:12px;gap:12px}
  .composer .iconbtn{width:32px;min-width:32px;height:32px;padding:0;border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink)}
  .composer .iconbtn svg{width:15px;height:15px}
  .composer .iconbtn:hover{background:var(--panel2);color:var(--ink)}
  .composer .send{width:32px;min-width:32px;height:32px;padding:0;border:0;border-radius:var(--r-sm);color:var(--panel)}
  .composer .send svg{width:18px;height:18px}
  .composer .send:hover{background:var(--accent-strong-hover)}
  .composer:has(#prompt:placeholder-shown):has(.pendingRefs:empty) .send{opacity:.4}   /* nothing to send yet */
  .composerSep{width:1px;height:22px;flex:0 0 1px;background:var(--line)}
  .mode{font-size:12px;color:var(--muted);background:#f7f8fa}
  /* autonomy-mode chip in the composer (手动/半自动/自动) */
  .modeChip{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);color:var(--muted);font-size:12px;font-weight:600}
  .modeChip:hover,.modeChip[aria-expanded="true"]{border-color:var(--line2);color:var(--ink)}
  .modeChip .modeDot{width:7px;height:7px;border-radius:50%;background:var(--orange);flex:0 0 auto}
  .modeChip.manual .modeDot{background:var(--red)} .modeChip.semi .modeDot{background:var(--orange)} .modeChip.auto .modeDot{background:var(--green)}
  .modeChip svg{color:var(--faint)}
  .composer .modeChip{height:32px;padding:0 10px;border:0;border-radius:var(--r-sm);gap:10px;background:transparent;color:var(--ink);font-size:15px;font-weight:400}
  .composer .modeChip:hover,.composer .modeChip[aria-expanded="true"]{background:var(--panel2);color:var(--ink)}
  .modeChip .modeChev{width:14px;height:14px;transform:rotate(90deg);color:currentColor}
  .modeMenu{position:fixed;z-index:90;width:272px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);box-shadow:0 18px 50px rgba(40,30,20,.16);padding:6px;display:none}
  .modeMenu.open{display:flex;flex-direction:column;gap:4px}
  .modeMenu .mmHead{font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600;padding:6px 9px 4px}
  .modeOpt{width:100%;text-align:left;border:0;background:transparent;border-radius:var(--r-md);padding:8px 10px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:start}
  .modeOpt:hover{background:var(--panel2)}
  .modeOpt .od{width:7px;height:7px;border-radius:50%;margin-top:5px;flex:0 0 auto}
  .modeOpt.m .od{background:var(--red)} .modeOpt.s .od{background:var(--orange)} .modeOpt.a .od{background:var(--green)}
  .modeOpt b{display:block;font-size:13px;font-weight:500;color:var(--ink)}
  .modeOpt small{display:block;font-size:11.5px;line-height:1.42;color:var(--muted);margin-top:2px}
  /* The composer's two popovers (attach, Fast/Balanced) share one look: 12px card, 4px padding, 4px between items,
     grey only under the pointer (design feedback 2026-10-12). */
  .attachMenu{position:fixed;z-index:80;min-width:168px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);box-shadow:0 6px 22px rgba(20,30,45,.09);padding:4px;display:flex;flex-direction:column;gap:4px}
  .attachItem{width:100%;min-height:36px;border:0;background:transparent;border-radius:8px;color:var(--ink);text-align:left;padding:8px 10px;font-size:13px;line-height:20px;display:flex;align-items:center;gap:8px;white-space:nowrap}
  .attachItem:hover{background:var(--panel2)}
  .attachItem:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
  /* attached-file chips — pinned top-left INSIDE the composer (above the textarea); collapse when empty */
  .pendingRefs{display:flex;flex-wrap:wrap;gap:6px;padding:12px 12px 0}
  .pendingRefs:empty{display:none}
  .pendingChip{max-width:min(100%,300px);height:28px;border:0;background:var(--accent-strong);border-radius:var(--r-sm);color:var(--panel);font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:6px;padding:0 4px 0 9px}
  .pendingChip svg{flex:0 0 auto;width:14px;height:14px;opacity:.95}
  .pendingChip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pendingChip button{flex:0 0 auto;width:18px;height:18px;border:0;background:transparent;border-radius:50%;color:var(--panel);display:grid;place-items:center;font-size:14px;line-height:1;padding:0;cursor:pointer;opacity:.85}
  .pendingChip button:hover{opacity:1;background:rgba(255,255,255,.22)}
  .pickerOv{position:fixed;inset:0;z-index:90;background:rgba(16,20,26,.32);display:grid;place-items:center;padding:18px}
  .pickerBox{width:min(560px,100%);max-height:min(640px,86vh);border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);box-shadow:0 24px 70px rgba(15,23,35,.22);display:flex;flex-direction:column;overflow:hidden}
  .pickerHd{height:48px;flex:0 0 48px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 14px;font-weight:600;color:var(--ink)}
  .pickerList{min-height:120px;overflow:auto;padding:8px;display:grid;gap:6px}
  .pickerItem{border:1px solid var(--line);border-radius:var(--r-sm);padding:9px 10px;display:grid;grid-template-columns:18px minmax(0,1fr);gap:9px;align-items:start;cursor:pointer}
  .pickerItem:hover{border-color:#a3dbce;background:#f4fbf9}
  .pickerItem input{margin-top:3px}
  .pickerItem b{display:block;font-size:13px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pickerItem small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.35}
  .pickerEmpty{padding:16px;color:var(--muted);font-size:13px}
  .pickerFt{height:50px;flex:0 0 50px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;padding:8px 12px;background:var(--bar)}
  .pickerFt button{height:32px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:0 11px;color:var(--text)}
  .pickerFt .primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--panel);font-weight:600}
  .pickerFt button:disabled{opacity:.55;cursor:default}
  /* Branch chips inside the landing composer: click to bind the next run to one deliverable (toggle) */
  .branchChips{display:flex;gap:12px;flex-wrap:nowrap;min-width:0}
  .branchChip{position:relative;height:32px;display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;border-radius:var(--r-sm);padding:0 10px;color:var(--ink);font-size:14px;line-height:20px;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}
  .branchChip svg{width:16px;height:16px;flex:0 0 auto;color:currentColor}
  .branchChip:hover{background:var(--panel2)}
  .branchChip:focus-visible{outline:none;box-shadow:0 0 0 2px var(--accent-weak)}
  .branchChip[aria-pressed="true"]{background:var(--accent-weak);color:var(--accent-ink)}
  .branchChip[data-tip]:hover::after,.branchChip[data-tip]:focus-visible::after{content:attr(data-tip);position:absolute;left:0;top:calc(100% + 8px);white-space:nowrap;background:var(--ink);color:var(--panel);font-size:12px;font-weight:400;padding:6px 10px;border-radius:var(--r-sm);pointer-events:none;z-index:5}
  .chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:14px}
  .chipbtn{border:1px solid var(--line);background:rgba(255,255,255,.75);border-radius:var(--r-pill);padding:7px 12px;color:var(--text);font-size:13px}
  .chipbtn:hover{border-color:#bac5d1;background:var(--panel)}
  .hint{font-size:12px;color:var(--faint);margin-top:12px}
  .last{position:fixed;left:calc(var(--rail) + 20px);bottom:18px;font-size:12px;color:var(--faint)}
  .chips,.hint,.last{display:none}   /* start screen kept minimal: composer only */
  /* ...but `.hint` is ALSO the in-thread caption above an action-chip row (monitor detail, catalyst
     detail, the F2 判断台账 bar). The rule above is unscoped, so those captions — all written and
     localized — have never rendered: the chips appeared with no explanation of what they do. The
     start screen has no #thread, so re-enabling it there is exactly the intended scope. */
  #thread .hint{display:block;margin-top:0;color:var(--muted)}
  #thread .hint + .threadChips{margin-top:8px}
  .last button{border:0;background:transparent;color:var(--muted);padding:0;text-decoration:underline;text-underline-offset:3px}

  .palette{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 10px);background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:8px;display:none}
  .palette.open{display:block}
  .tpl{width:100%;border:0;background:transparent;border-radius:var(--r-lg);padding:10px 12px;text-align:left;display:grid;grid-template-columns:1fr auto;gap:12px}
  .tpl:hover,.tpl.active{background:#eef8f5}
  .tpl strong{display:block;font-size:13px}.tpl span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
  .tools{display:flex;gap:4px;align-items:center}.tool{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:var(--r-pill);padding:2px 6px;background:var(--inset)}

  /* user chose white-fill for the no-artifact runtime (round 1); white token, not the --page off-white canvas */
  .runtime{display:none;min-height:0;flex:1;border-top:1px solid var(--line);background:var(--panel)}
  .app.running .start{display:none}
  /* no-artifact: full-width scroller so the scrollbar sits at the window's right edge; content centered inside */
  .app.running .runtime{display:grid;grid-template-columns:minmax(0,1fr)}
  .app.running .runtime.has-artifact{grid-template-columns:var(--left) var(--runtime-gutter) minmax(420px,1fr) var(--runtime-gutter) var(--right);justify-content:stretch}
  /* Evidence column collapsed: drop the right pane + its gutter, give the artifact the room */
  .app.running .runtime.has-artifact.evidence-collapsed{grid-template-columns:var(--left) var(--runtime-gutter) minmax(420px,1fr)}
  .runtime.evidence-collapsed .pane.right,.runtime.evidence-collapsed #gutArtifactEvidence{display:none}
  /* Wide preview: the artifact alone (the interactive bullseye needs the width for its lists beside the wheel) */
  .app.running .runtime.has-artifact.artifact-wide{grid-template-columns:minmax(0,1fr)}
  .runtime.artifact-wide .pane.left,.runtime.artifact-wide .pane.right,.runtime.artifact-wide .runtimeGutter{display:none}
  .artWide{font-size:15px}.artWide[aria-pressed="true"]{color:var(--accent);border-color:var(--line)}
  .app.running .monitorPage{display:none}

  .monitorPage{display:none;flex:1;min-height:0;border-top:1px solid var(--line);background:var(--page);overflow:hidden}
  .app.monitoring .start,.app.monitoring .runtime,.app.monitoring .trendPage{display:none}
  .app.monitoring .monitorPage{display:flex}
  .app.calendar .start,.app.calendar .runtime,.app.calendar .monitorPage,.app.calendar .trendPage{display:none}
  .app.calendar .calendarPage{display:flex}
  .app.knowledge .start,.app.knowledge .runtime,.app.knowledge .monitorPage,.app.knowledge .calendarPage,.app.knowledge .trendPage{display:none}
  .app.knowledge .knowledgePage{display:flex}
  /* Settings is a dialog over the landing (Figma 1.10): the start view stays painted behind its backdrop */
  .app.settings .settingsPage{display:flex}
  .app.hotspot .start,.app.hotspot .runtime,.app.hotspot .monitorPage,.app.hotspot .calendarPage,.app.hotspot .knowledgePage,.app.hotspot .settingsPage,.app.hotspot .trendPage{display:none}
  .hotspotPage{display:none;flex:1;min-height:0;border-top:1px solid var(--line);background:var(--page);overflow:auto}
  .app.hotspot .hotspotPage{display:flex}
  /* Hotspot radar — lands on the full-corpus leaderboard with live search (content-first, no click-gate) */
  .hsWrap{max-width:var(--page-max);margin:0 auto;padding:24px 24px 48px;width:100%}
  .hsTop{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
  .hsPageTitle{font-size:20px;font-weight:600;color:var(--ink);margin:0}
  .hsPageSub{font-size:12px;color:var(--muted);margin-top:3px}
  .hsSearch{margin-left:auto;flex:1;min-width:220px;max-width:360px;height:var(--ctl-md);padding:0 12px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);color:var(--text);font-size:13px}
  .hsSearch:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak);outline:0}
  .hsRise{background:var(--green2);border:1px solid var(--line);border-radius:var(--r-md);padding:9px 13px;margin-bottom:12px;font-size:12.5px;color:var(--green)}
  .hsRise b{color:var(--ink)}
  .hsRise .hsRiseA{color:var(--ink);font-weight:600;cursor:pointer;text-decoration:none}
  .hsRise .hsRiseA:hover{color:var(--accent-ink);text-decoration:underline}
  .hbTable{width:100%;border-collapse:collapse;font-size:13px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
  .hbTable th{text-align:right;font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);padding:8px 12px;border-bottom:1px solid var(--line);font-weight:600}
  .hbTable th:first-child,.hbTable th.l{text-align:left}
  .hbTable td{padding:10px 12px;border-bottom:1px solid var(--line-soft);text-align:right;font-variant-numeric:tabular-nums}
  .hbTable td.l{text-align:left}
  .hbTable tr:last-child td{border-bottom:0}
  .hbTable tbody tr{cursor:pointer} .hbTable tbody tr:hover{background:var(--inset)}
  .hsLead{font-weight:600;color:var(--ink)}
  /* 上涨 (月环比排名变化) cell */
  .hsRiseUp{font-weight:600;color:var(--accent-ink)}
  .hsRiseNew{font-size:10px;padding:1px 6px;border-radius:var(--r-pill);background:var(--accent-weak);color:var(--accent-strong);letter-spacing:.02em}
  .hsRiseDn{font-weight:600;color:var(--muted)}
  .hsRiseFlat{color:var(--faint)}
  .hsSort{margin-left:8px}
  .hsSortLb{font-size:10px;color:var(--faint);font-weight:400;margin-left:2px;text-transform:none;letter-spacing:0}
  .hsMod{display:inline-block;font-size:10px;font-weight:600;padding:1px 7px;border-radius:var(--r-pill);margin-left:6px;background:var(--accent-weak);color:var(--accent-ink)}
  .hnum{color:var(--faint)}
  .hb{display:inline-block;font-size:10px;font-weight:600;padding:1px 7px;border-radius:var(--r-pill);margin-left:6px}
  .hb.early{background:var(--accent-weak);color:var(--accent-ink)} .hb.pre{background:var(--orange2);color:var(--orange)} .hb.late{background:var(--line-soft);color:var(--muted)}
  .hsWin{display:inline-flex;gap:2px;background:var(--page);border:1px solid var(--line);border-radius:var(--r-pill);padding:2px;margin-bottom:12px}
  .hsWin button{font-size:12px;font-weight:600;padding:4px 12px;border-radius:var(--r-pill);border:0;background:transparent;color:var(--muted);cursor:pointer}
  .hsWin button.on{background:var(--accent-weak);color:var(--accent-ink)}
  .hsPersona{margin-left:8px}
  .hsPLbl{font-size:11px;color:var(--muted);align-self:center;padding:0 6px 0 4px}
  .hsWeights{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);margin:0 0 12px}
  .hsChip{font-size:11px;font-weight:600;color:var(--accent-ink);background:var(--accent-weak);border-radius:var(--r-pill);padding:2px 8px}
  .hsChipNote{color:var(--muted);font-weight:400}
  .hsEdit{margin-left:6px;font-size:12px;font-weight:600;color:var(--accent-ink);background:transparent;border:1px dashed var(--line);border-radius:var(--r-pill);padding:4px 10px;cursor:pointer}
  .hsPrefsBox{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);padding:12px 14px;margin-bottom:14px}
  .hsPrefsHd{font-size:12px;color:var(--muted);margin-bottom:8px}
  .hsPrefsBox textarea{width:100%;box-sizing:border-box;font:inherit;font-size:13px;border:1px solid var(--line);border-radius:var(--r-sm);padding:8px 10px;resize:vertical;background:var(--page);color:var(--ink)}
  .hsPrefsAct{display:flex;align-items:center;gap:8px;margin-top:8px}
  .hsPrefsAct button{font-size:12px;font-weight:600;padding:5px 12px;border-radius:var(--r-pill);border:1px solid var(--line);background:var(--page);color:var(--ink);cursor:pointer}
  .hsPrefsAct button.primary{background:var(--accent-ink);color:var(--panel);border-color:var(--accent-ink)}
  .hsDims{font-variant-numeric:tabular-nums;color:var(--muted)}
  .hsDelta{color:var(--accent-ink);cursor:default}
  .hsWhy{line-height:1.4;max-width:44ch}
  .hsEarly{display:inline-block;font-size:10px;font-weight:600;padding:1px 7px;border-radius:var(--r-pill);margin-left:6px;background:var(--orange2);color:var(--orange)}
  .hsWatch{margin-left:8px;font-size:10.5px;font-weight:600;color:var(--accent-ink);background:var(--panel);border:1px solid var(--line2);border-radius:var(--r-pill);padding:1px 8px;cursor:pointer;vertical-align:middle}
  .hsWatch:hover{border-color:var(--accent-strong);background:var(--accent-weak)}
  .hsFoot{font-size:11px;color:var(--muted);line-height:1.5;margin-top:14px}
  /* 我的管线 (E4) full page: pipeline board + event→impact feed */
  .app.pipeline .start,.app.pipeline .runtime,.app.pipeline .monitorPage,.app.pipeline .calendarPage,.app.pipeline .knowledgePage,.app.pipeline .settingsPage,.app.pipeline .hotspotPage,.app.pipeline .trendPage{display:none}
  .pipelinePage{display:none;flex:1;min-height:0;background:var(--page);overflow:auto}
  .app.pipeline .pipelinePage{display:block}
  /* 专利悬崖 (patent cliff / LOE): reuses the hotspot board shell (.hsWrap/.hbTable); default-hidden page */
  .app.patentcliff .start,.app.patentcliff .runtime,.app.patentcliff .monitorPage,.app.patentcliff .calendarPage,.app.patentcliff .knowledgePage,.app.patentcliff .settingsPage,.app.patentcliff .hotspotPage,.app.patentcliff .pipelinePage,.app.patentcliff .trendPage{display:none}
  .patentcliffPage{display:none;flex:1;min-height:0;border-top:1px solid var(--line);background:var(--page);overflow:auto}
  .app.patentcliff .patentcliffPage{display:flex}
  /* 判断台账 (decision ledger) — docs/DECISION_LEDGER_PRD.md. Tokens only; sans headings per DESIGN_SYSTEM. */
  .app.ledger .start,.app.ledger .runtime,.app.ledger .monitorPage,.app.ledger .calendarPage,.app.ledger .knowledgePage,.app.ledger .settingsPage,.app.ledger .hotspotPage,.app.ledger .pipelinePage,.app.ledger .trendPage,.app.ledger .patentcliffPage{display:none}
  .ledgerPage{display:none;flex:1;min-height:0;border-top:1px solid var(--line);background:var(--page);overflow:auto}
  .app.ledger .ledgerPage{display:flex}
  .lgWrap{width:100%;max-width:var(--page-max);margin:0 auto;padding:14px;display:flex;flex-direction:column;gap:14px;align-self:flex-start}
  .lgTop h1{font-family:var(--sans);font-size:20px;font-weight:600;letter-spacing:-.01em;margin:0}
  .lgSub{font-size:12px;color:var(--muted);margin-top:3px}
  /* flex:none — .ledgerPage is a flex container, so a card would otherwise SHRINK to fit the
     viewport and `overflow:hidden` would clip its tail. That tail is the four anti-gaming
     numbers, which the spec requires to be always visible; the page scrolls instead. */
  .lgCard{flex:0 0 auto;border:1px solid var(--line);border-radius:var(--r-md);background:var(--panel);overflow:hidden}
  .lgHd{font-family:var(--sans);font-size:14px;font-weight:600;padding:11px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}
  .lgHd small{font-weight:400;font-size:12px;color:var(--muted)}
  .lgBody{padding:12px 14px}
  .lgScope{font-size:12px;color:var(--muted);background:var(--panel2);border-radius:var(--r-sm);padding:7px 10px;margin-bottom:10px}
  .lgTbl{width:100%;border-collapse:collapse;font-size:13px}
  .lgTbl th{text-align:left;font-weight:600;font-size:12px;color:var(--muted);padding:6px 8px;border-bottom:1px solid var(--line)}
  .lgTbl td{padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:top}
  .lgTbl tr:last-child td{border-bottom:0}
  .lgNum{font-variant-numeric:tabular-nums}
  /* 样本不足 must not look like a number — it is the honest refusal to score (invariant §6). */
  .lgInsuf{color:var(--muted);font-style:italic}
  /* The guard cells are meant to be read TOGETHER — a hit rate next to what could be flattering it.
     auto-fit kept orphaning the last one onto its own row, so the count is explicit: 5 up, 2 up when
     there is genuinely no room. */
  .lgGuard{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  @media (max-width:1000px){ .lgGuard{grid-template-columns:repeat(2,minmax(0,1fr))} }
  .lgGuardCell{border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel2);padding:9px 11px}
  .lgGuardK{font-size:11px;color:var(--muted)}
  .lgGuardV{font-family:var(--sans);font-size:17px;font-weight:600;margin-top:2px;font-variant-numeric:tabular-nums}
  .lgGuardNote{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.4}
  .lgClaim{border-bottom:1px solid var(--line);padding:11px 14px}
  .lgClaim:last-child{border-bottom:0}
  .lgStmt{font-size:13px;line-height:1.5}
  .lgMeta{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.6}
  .lgPill{display:inline-block;font-size:11px;border-radius:var(--r-pill);padding:1px 8px;border:1px solid var(--line2)}
  .lgPill.hit{color:var(--accent-ink);background:var(--accent-weak);border-color:transparent}
  .lgPill.miss{color:#9A3B33;background:#FBECEA;border-color:transparent}
  .lgPill.void{color:var(--muted);background:var(--panel2);border-color:transparent}
  .lgPill.overdue{color:#8A6A12;background:#FBF3DF;border-color:transparent}
  .lgBtn{height:28px;border:1px solid var(--line2);background:var(--panel);border-radius:var(--r-sm);padding:0 10px;font-size:12px;color:var(--text);cursor:pointer}
  .lgBtn:hover{border-color:var(--accent-strong);color:var(--accent-ink)}
  .lgFilters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
  .lgFilters button{height:26px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-pill);padding:0 11px;font-size:12px;color:var(--muted);cursor:pointer}
  .lgFilters button.on{border-color:var(--accent-strong);color:var(--accent-ink);background:var(--accent-weak)}
  .trendPage{display:none;flex-direction:column;flex:1;min-height:0;background:var(--page);overflow:auto}
  .app.trend .trendPage{display:flex}
  .app.trend .start,.app.trend .runtime,.app.trend .monitorPage,.app.trend .calendarPage,.app.trend .knowledgePage,.app.trend .settingsPage,.app.trend .hotspotPage,.app.trend .pipelinePage,.app.trend .patentcliffPage{display:none}
  .trendTop{height:60px;flex:0 0 60px;display:flex;align-items:center;gap:16px;padding:0 16px;border-bottom:1px solid var(--line);background:var(--panel)}
  .trendTop h1{font-family:var(--sans);font-size:16px;line-height:24px;font-weight:500;margin:0;color:var(--ink)}
  .trendGrid{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:0;overflow:auto}
  .trendCol{display:flex;flex-direction:column;gap:0;min-width:0;width:100%}   /* full-bleed feed (Figma 4.) */
  .trendCard{border:0;border-radius:0;background:var(--panel);overflow:hidden}
  .trendCardHd{display:none}   /* the tab names the feed */
  .trendNewsWrap{padding:0}
  .trendEmpty{padding:24px 16px;color:var(--faint);text-align:center;font-size:14px}
  /* 每日论文 */
  .trendSeg{height:60px;flex:0 0 60px;display:flex;gap:0;padding:0;border-bottom:1px solid var(--line);background:var(--panel)}
  .trendSegBtn{height:100%;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);border-radius:0;padding:0 24px;font-size:15px;font-weight:400;cursor:pointer}
  .trendSegBtn:hover{color:var(--ink)}
  .trendSegBtn.on{color:var(--accent-ink);border-bottom-color:var(--accent)}
  /* ── 季报分析 / Quarterly Intelligence ─────────────────────────────────────────────────────────── */
  .quarterlyPage{display:none;flex-direction:column;flex:1;min-height:0;background:var(--page);overflow:hidden;position:relative}
  .app.quarterly .quarterlyPage{display:flex}
  .app.quarterly .start,.app.quarterly .runtime,.app.quarterly .monitorPage,.app.quarterly .calendarPage,.app.quarterly .knowledgePage,.app.quarterly .settingsPage,.app.quarterly .hotspotPage,.app.quarterly .pipelinePage,.app.quarterly .patentcliffPage,.app.quarterly .trendPage,.app.quarterly .ledgerPage{display:none}
  .qiTop{height:60px;flex:0 0 60px;display:flex;align-items:center;padding:0 16px;border-bottom:1px solid var(--line);background:var(--panel)}
  .qiTop h1{font-family:var(--sans);font-size:16px;line-height:24px;font-weight:500;margin:0;color:var(--ink)}
  .qiSplit{flex:1;min-height:0;display:flex}
  .qiList{width:264px;flex:0 0 264px;display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:var(--panel)}
  .qiSearch{position:relative;padding:12px;border-bottom:1px solid var(--line-soft)}
  .qiSearch svg{position:absolute;left:24px;top:50%;width:14px;height:14px;transform:translateY(-50%);color:var(--faint);pointer-events:none}
  /* the 珠峰洞察 search box: 8px corners, no lift */
  .qiSearch input{width:100%;height:var(--ctl-md);padding:0 12px 0 32px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);box-shadow:none;color:var(--text);font:400 13px/20px var(--sans);transition:border-color .15s}
  .qiSearch input:focus{border-color:var(--line2);box-shadow:none;outline:0}   /* as .composer:focus-within: no teal halo */
  .qiListBody{flex:1;min-height:0;overflow-y:auto;padding:4px 0 12px}
  .qiGroupHd~.qiGroupHd{margin-top:12px;padding-top:16px;border-top:1px solid var(--line-soft)}   /* 已出报告 and 资料已归档 read as two groups */
  .qiGroupHd{display:flex;justify-content:space-between;gap:8px;padding:12px 16px 6px;color:var(--muted);font:600 11px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase}
  .qiCo{width:100%;min-height:36px;display:flex;align-items:center;gap:8px;padding:0 16px;border:0;border-radius:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}
  .qiCo+.qiCo{margin-top:4px}   /* 36px rows, 4px apart */
  .qiCo:hover{background:var(--inset)}
  .qiCo[aria-pressed="true"]{background:var(--panel2)}   /* the selected sidebar row's grey; the name keeps its colour */
  .qiCoName{flex:1;min-width:0;font:400 13px/20px var(--sans);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .qiCoTicker{flex:0 0 auto;color:var(--faint);font:400 11px/16px var(--mono)}
  .qiBadge{flex:0 0 auto;border:1px solid var(--line2);border-radius:var(--r-pill);padding:0 6px;color:var(--muted);font:600 11px/16px var(--sans);white-space:nowrap}
  .qiListMore{padding:6px 16px;color:var(--faint);font:400 12px/18px var(--sans)}
  .qiMain{flex:1;min-width:0;overflow-y:auto;padding:0 24px 32px}
  .qiMain>*{max-width:var(--page-max);margin-inline:auto}   /* centred: a wide screen left the report against the list with a blank band on its right */
  .qiBar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;min-height:calc(var(--ctl-sm) + 25px);padding:12px 0;background:var(--page);border-bottom:1px solid var(--line)}
  .qiCrumb{flex:1;min-width:0;color:var(--muted);font:400 12px/18px var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .qiCrumb b{color:var(--ink);font-weight:600}
  .qiBtn{height:var(--ctl-sm);padding:0 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--text);font:400 13px/20px var(--sans);white-space:nowrap;cursor:pointer}
  .qiBtn:hover{border-color:var(--line2)}
  .qiHero{padding:20px 0 0}
  .qiKicker{color:var(--accent-ink);font:600 11px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase}
  .qiTitle{margin:6px 0 0;color:var(--ink);font:600 20px/28px var(--sans)}
  .qiSub{margin-top:4px;color:var(--muted);font:400 12px/18px var(--sans)}
  .qiCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
  .qiCard{min-width:0;padding:14px 16px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md)}
  .qiCardTop{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
  .qiCardLabel{color:var(--muted);font:600 11px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase}
  .qiSignal{font:600 11px/16px var(--sans);white-space:nowrap;color:var(--accent-ink)}
  .qiSignal.green{color:var(--green)} .qiSignal.orange{color:var(--orange)} .qiSignal.red{color:var(--red)}
  .qiCardValue{margin-top:8px;color:var(--ink);font:600 18px/26px var(--sans);overflow-wrap:anywhere}
  .qiCardValue.text{font-size:15px;line-height:22px}
  .qiCardNote{margin:6px 0 0;color:var(--muted);font:400 12px/18px var(--sans)}
  .qiSection{margin-top:24px}
  .qiSectionHd{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
  .qiSectionHd h2{margin:0;color:var(--ink);font:600 15px/22px var(--sans)}
  .qiSectionHd small{display:block;margin-top:2px;color:var(--muted);font:400 12px/18px var(--sans)}
  .qiToggle{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;color:var(--muted);font:400 12px/18px var(--sans);cursor:pointer}
  .qiToggle input{margin:0;accent-color:var(--accent-strong)}
  .qiTableWrap{margin-top:10px;overflow-x:auto;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md)}
  .qiTable{width:100%;min-width:860px;border-collapse:collapse;table-layout:fixed;color:var(--text);font:400 13px/21px var(--sans)}
  .qiTable th{padding:10px 14px;background:var(--bar);border-bottom:1px solid var(--line);color:var(--muted);font:600 12px/18px var(--sans);text-align:left;white-space:nowrap}
  .qiTable td{padding:14px;vertical-align:top;border-bottom:1px solid var(--line-soft);overflow-wrap:anywhere}
  .qiTable tr:last-child td{border-bottom:0}
  .qiTable td.qiEmptyCell{padding:24px 14px;color:var(--muted);text-align:center}
  .qiType{display:inline-block;padding:2px 8px;border-radius:var(--r-pill);background:var(--accent-weak);color:var(--accent-ink);font:600 11px/16px var(--sans);white-space:nowrap}
  .qiType.commercial,.qiType.capital{background:var(--green2);color:var(--green)}
  .qiType.bd{background:var(--violet2);color:var(--violet)}
  .qiType.risk{background:var(--red2);color:var(--red)}
  .qiType.regulatory{background:var(--orange2);color:var(--orange)}
  .qiTopic{padding:0;border:0;background:none;color:var(--accent-ink);font:600 13px/21px var(--sans);text-align:left;cursor:pointer}
  .qiTopic:hover{text-decoration:underline}
  .qiWhy{color:var(--ink);font-weight:600}
  .qiWhen{display:block;margin-top:2px;color:var(--faint);font:400 12px/18px var(--sans)}
  .qiProofs,.qiLimits,.qiPeriod{margin-top:10px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md)}
  .qiProof{display:grid;grid-template-columns:96px 8px minmax(0,1fr);gap:0 12px;padding:12px 16px;border-bottom:1px solid var(--line-soft)}
  .qiProof:last-child{border-bottom:0}
  .qiProofWin{color:var(--muted);font:400 12px/20px var(--sans)}
  .qiDot{width:7px;height:7px;margin-top:7px;border-radius:50%;background:var(--accent)}
  .qiDot.orange{background:var(--orange)}
  .qiProofTitle{color:var(--ink);font:600 13px/20px var(--sans)}
  .qiProofNote{color:var(--muted);font:400 12px/18px var(--sans)}
  .qiLimits{padding:12px 16px 12px 32px;color:var(--text);font:400 13px/21px var(--sans)}
  .qiLimits li+li{margin-top:4px}
  .qiSources{margin-top:24px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font:400 12px/20px var(--sans)}
  .qiSources a,.qiLink{color:var(--accent-ink);text-decoration:none}
  .qiSources a:hover,.qiLink:hover{text-decoration:underline}
  .qiEmpty{padding:24px 16px;color:var(--muted);text-align:center;font:400 12px/18px var(--sans)}
  .qiLoading{display:flex;align-items:center;justify-content:center;gap:8px;padding:48px 16px;color:var(--muted);font:400 12px/18px var(--sans)}
  .qiPeriod{overflow:hidden}
  .qiPeriodHd{display:flex;justify-content:space-between;gap:8px;padding:10px 16px;background:var(--bar);border-bottom:1px solid var(--line-soft);color:var(--ink);font:600 13px/20px var(--sans)}
  .qiPeriodHd small{color:var(--muted);font:400 12px/20px var(--sans)}
  .qiGroup{padding:10px 16px;border-bottom:1px solid var(--line-soft)}
  .qiGroup:last-child{border-bottom:0}
  .qiGroupName{margin-bottom:4px;color:var(--muted);font:600 11px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase}
  .qiDoc{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:4px 0}
  .qiDoc .qiLink{font:400 13px/20px var(--sans)}
  .qiDocMeta{color:var(--faint);font:400 12px/18px var(--sans)}
  .qiLevel{padding:0 7px;border-radius:var(--r-pill);background:var(--panel-warm);color:var(--muted);font:600 11px/16px var(--sans);white-space:nowrap}
  .qiLevel.third{background:var(--orange2);color:var(--orange)}
  .qiGaps{margin-top:10px;color:var(--muted);font:400 12px/18px var(--sans)}
  .qiScrim{position:absolute;inset:0;z-index:20;background:var(--scrim)}
  .qiDrawer{position:absolute;top:0;right:0;bottom:0;z-index:21;width:min(520px,100%);display:flex;flex-direction:column;background:var(--panel);border-left:1px solid var(--line);box-shadow:var(--shadow)}
  .qiScrim[hidden],.qiDrawer[hidden]{display:none}
  .qiDrawerHd{height:56px;flex:0 0 56px;display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid var(--line)}
  .qiDrawerHd h2{flex:1;min-width:0;margin:0;color:var(--ink);font:600 15px/22px var(--sans);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .qiDrawerClose{width:var(--ctl-sm);height:var(--ctl-sm);flex:0 0 auto;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--muted);font-size:18px;line-height:1;cursor:pointer}
  .qiDrawerClose:hover{border-color:var(--line2);color:var(--ink)}
  .qiDrawerBody{flex:1;min-height:0;overflow-y:auto;padding:16px;color:var(--text);font:400 13px/21px var(--sans)}
  .qiDrawerBody h3{margin:6px 0 8px;color:var(--ink);font:600 15px/22px var(--sans)}
  .qiDrawerBody p{margin:0 0 10px}
  .qiDrawerBody .qiPeriod{margin-top:12px}
  .qiEvidence{margin:12px 0;padding:12px 14px;background:var(--inset);border:1px solid var(--line-soft);border-radius:var(--r-sm)}
  .qiEvidence b{display:block;margin-bottom:4px;color:var(--muted);font:600 11px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase}
  .qiPair{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px;margin:12px 0}
  .qiPair dt{color:var(--muted);font:600 12px/21px var(--sans)}
  .qiPair dd{margin:0}
  .qiDownloads{display:grid;gap:8px;margin-top:12px}
  .qiDownloads a{display:flex;align-items:center;justify-content:space-between;gap:12px;height:var(--ctl-md);padding:0 13px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--text);text-decoration:none}
  .qiDownloads a:hover{border-color:var(--line2)}
  .qiDownloads small{color:var(--faint);font:400 12px/18px var(--mono)}
  @media (max-width:980px){.qiCards{grid-template-columns:1fr}}
  @media (max-width:760px){
    .qiSplit{flex-direction:column;overflow-y:auto}
    .qiList{width:auto;flex:0 0 auto;max-height:38vh;border-right:0;border-bottom:1px solid var(--line)}
    .qiMain{flex:0 0 auto;overflow:visible;padding:0 16px 24px}
    .qiBar{position:static;flex-wrap:wrap}
    .qiCrumb{flex-basis:100%}
    .qiProof{grid-template-columns:72px 8px minmax(0,1fr)}
  }
  /* 每日论文 — shares the 新闻 card system (.tnSum brief, .tnRow/.tnKick/.tnTitle rows) so both tabs read identically */
  .tnScope{display:flex;gap:8px;padding:24px 16px 8px}
  .paperGroup{padding:2px 0}
  .paperGroupHd{font-size:14px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted);padding:8px 16px}
  .tnRow.paperCard{display:block;padding:24px 16px;border-bottom:1px solid var(--line)}
  .paperCard:last-child{border-bottom:0}
  .paperCard:hover{background:var(--inset)}
  .paperCard .tnKick{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:0;font-size:14px}
  .paperKick{color:var(--muted);font-weight:400}
  .paperTitle{display:block;font-size:15px;font-weight:500;color:var(--ink);line-height:22px;text-decoration:none;margin-top:8px}
  .paperTitle:hover{color:var(--accent-ink);text-decoration:underline}
  .paperTldr{font-size:15px;color:var(--text);margin-top:16px;line-height:22px}
  .paperDigest{margin-top:16px;display:flex;flex-direction:column;gap:14px;font-size:15px;line-height:22px}
  .pdRow{font-size:15px;color:var(--text);line-height:22px}
  .pdRow b{color:var(--accent-ink);font-weight:400;margin-right:6px}
  /* 全行业新闻简报 · news-only feed (flat design-system rows) */
  .tnMeta{font-size:14px;font-weight:400;color:var(--faint);padding:16px 16px 0;background:var(--inset)}
  .tnList{margin-top:6px;border-top:1px solid var(--line-soft)}   /* the shared news rows inside the 首页「全行业」card */
  /* 每日摘要 (Figma 4.): an open band on the page, teal theme labels, one theme per row */
  .tnSum{margin:0;padding:12px 16px 16px;background:var(--inset);border-bottom:1px solid var(--line);font-size:15px;line-height:22px;color:var(--text)}
  .tnSum .nsList{gap:18px}
  .tnSum .nsItem{font-size:15px;line-height:22px;color:var(--text);padding-left:24px}
  .tnSum .nsItem::before{left:8px;top:9px;width:5px;height:5px;opacity:1}
  .tnSum .nsK{font-weight:400;color:var(--accent-ink);margin-right:24px}
  .tnSum .nsV,.tnSum .nsProse{color:var(--text);font-size:15px}
  .tnSum .tnSumK{display:block;font-size:15px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--ink);margin-bottom:16px}
  .tnSumWait{color:var(--muted);display:flex;align-items:center;gap:6px;background:var(--inset)}
  /* daily-news summary as themed bullets (shared by 趋势看板 + 首页 全行业) — scannable, one theme per line */
  .nsList{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
  /* label | text as two columns, so a wrapped line stays under the text rather than under the label */
  .nsItem{position:relative;display:flex;align-items:baseline;padding-left:14px;font-size:13px;line-height:1.6;color:var(--text)}
  .nsItem::before{content:"";position:absolute;left:2px;top:8px;width:4px;height:4px;border-radius:50%;background:var(--accent-strong);opacity:.55}
  .nsK{flex:none;font-weight:600;color:var(--accent-strong);margin-right:6px}
  .nsV{flex:1;min-width:0;color:var(--text)}
  .nsProse{font-size:13px;line-height:1.65;color:var(--text)}
  .nsLink{color:inherit;text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:2px;text-decoration-thickness:1px;cursor:pointer;transition:color .12s,text-decoration-color .12s}
  .nsLink:hover{color:var(--accent-ink);text-decoration-color:var(--accent-strong)}
  .tnMore{width:100%;border:0;border-top:1px solid var(--line);background:var(--panel);color:var(--muted);font-size:14px;font-weight:400;padding:14px 16px;cursor:pointer;text-align:center}
  .tnMore:hover{background:var(--inset);color:var(--ink)}
  .tnRow{display:flex;align-items:center;gap:24px;padding:24px 16px;border-bottom:1px solid var(--line)}
  .tnMain{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
  .tnRow:last-child{border-bottom:0}
  .tnRow:hover{background:var(--inset)}
  .tnKick{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:12px;font-weight:400;color:var(--accent-ink)}
  .tnTitle{font-size:15px;font-weight:500;color:var(--ink);line-height:22px}
  .tnSrc{display:inline-flex;align-items:center;gap:8px;font-size:14px;line-height:20px;color:var(--muted);text-decoration:none}
  .tnSrc svg{width:14px;height:14px}
  a.tnSrc:hover{color:var(--ink)}
  .tnFt{flex:0 0 auto;display:flex;align-items:center;gap:16px}
  .tnCite{font-size:12px;color:var(--muted);text-decoration:none;border-bottom:1px dotted var(--line2)}
  .tnCite:hover{color:var(--ink)}
  .inlineCite{position:relative;display:inline-flex;vertical-align:super;margin:0 2px;line-height:1;outline:0}
  .inlineCiteHit{display:inline-flex;color:inherit;text-decoration:none;border:0;border-radius:6px;outline:0}
  .inlineCiteHit>sup,.inlineCite>sup{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:6px;background:#dff7f1;color:#088c7f;font-size:10px;font-weight:700;cursor:pointer}
  .inlineCiteHit:hover>sup,.inlineCiteHit:focus-visible>sup{background:#c8f0e7;color:#05756b;box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 24%,transparent)}
  /* The inline card is hidden; the visible tooltip is the body-level .citePortal (position:fixed), which
     escapes overflow:hidden / overflow:auto ancestors (e.g. .tableWrap td / .tableWrap) that previously
     clipped the card and cut off its links. */
  .inlineCiteCard{display:none}
  .citePortal{position:fixed;z-index:300;width:min(330px,72vw);padding:12px 13px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--panel);box-shadow:var(--shadow-lg);line-height:1.35;text-align:left;display:none}
  .citePortal small{display:block;margin-bottom:6px;color:var(--faint);font-size:10px;text-transform:uppercase}
  .citePortal a{display:block;color:var(--ink);font-size:12px;font-weight:650;text-decoration:none;overflow-wrap:anywhere}
  .citePortal a:hover{color:var(--accent-ink)}
  .citePortal span{display:block;margin-top:5px;color:var(--muted);font-size:10px;overflow-wrap:anywhere}
  /* Auto-linked bare URLs + trial ids (NCT…) inside answer text/tables. */
  .autoLink{color:var(--accent-ink);text-decoration:none;border-bottom:1px dotted var(--line2)}
  .autoLink:hover{color:var(--accent-strong);border-bottom-color:var(--accent)}
  /* Non-web / local-db citations (e.g. 本地 noah 数据库) render as plain footnote numbers: muted, no pill, no pointer, no hover card. */
  sup.citePlain{background:transparent;color:var(--faint);min-width:0;height:auto;padding:0 1px;border-radius:0;font-weight:600;cursor:default}
  /* Hover bridge: keeps the hover region alive while the cursor crosses from the pill toward the portal. */
  .inlineCite::before{content:"";position:absolute;left:50%;bottom:100%;transform:translateX(-50%);width:30px;height:20px;z-index:1}
  .citationFallback{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px;padding-top:9px;border-top:1px solid var(--line-soft)}
  .tnAsk{display:inline-flex;align-items:center;gap:6px;height:var(--ctl-md);font-size:15px;font-weight:400;color:var(--panel);background:var(--accent-strong);border:0;border-radius:var(--r-sm);padding:0 20px;cursor:pointer;white-space:nowrap}
  .tnAsk:hover{background:var(--accent-strong-hover)}
  /* 行业动态: per-row category chip (+ 中国 cross-cut), 关注 attribution, 加监控 button, and the filter bar */
  .tnTag{display:inline-flex;align-items:center;height:24px;font-size:14px;font-weight:400;letter-spacing:0;padding:0 16px;border-radius:4px;background:var(--accent-weak);color:var(--accent-ink);margin-right:0;vertical-align:middle}
  .tnTag.tnTagCn{background:var(--panel2);color:var(--muted)}
  .tnMine{font-size:13px;font-weight:400;color:var(--accent-ink);margin-left:0}
  .tnWatch{height:var(--ctl-md);font-size:15px;font-weight:400;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:var(--r-sm);padding:0 24px;cursor:pointer;white-space:nowrap}
  .tnWatch:hover{border-color:var(--line2);color:var(--ink)}
  @media(max-width:760px){.tnRow{flex-direction:column;align-items:stretch;gap:16px}.tnFt{justify-content:flex-start}}
  .tnTools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line)}
  .tnTools .tnScope{padding:0}
  .tnTagRow,.tnScope{display:flex;gap:8px;flex-wrap:wrap}
  /* filters: flat chips (the selected one on a gray fill); the scope lens is an outlined toggle */
  .tnTagBtn,.tnScopeBtn{height:var(--ctl-md);border:1px solid transparent;background:transparent;color:var(--ink);border-radius:var(--r-sm);padding:0 16px;font-size:15px;font-weight:400;cursor:pointer;white-space:nowrap}
  .tnScopeBtn{border-color:var(--line);color:var(--muted)}
  .tnTagBtn:hover{background:var(--inset)}.tnScopeBtn:hover{border-color:var(--line2);color:var(--ink)}
  .tnTagBtn.on{background:var(--panel2);color:var(--ink);font-weight:500}
  .tnScopeBtn.on{background:var(--panel2);color:var(--ink);border-color:var(--panel2);font-weight:500}
  .tnScopeBtn[data-newsscope="mine"].on{background:var(--accent-weak);color:var(--accent-ink);border-color:var(--accent-strong);font-weight:400}
  .pcBand{display:inline-block;font-size:10px;font-weight:600;padding:1px 7px;border-radius:var(--r-pill)}
  .pcBand.b0,.pcBand.b1{background:var(--orange2);color:var(--orange)}
  .pcBand.b2{background:var(--accent-weak);color:var(--accent-ink)} .pcBand.b3,.pcBand.b4{background:var(--line-soft);color:var(--muted)}
  .pcMod{color:var(--faint);font-size:11px} .pcPress{font-weight:600;color:var(--accent-ink)}
  .pcNear{color:var(--muted);font-size:11.5px}
  .plWrap{max-width:var(--page-max);margin:0 auto;padding:24px 24px 48px}
  .plHead{margin-bottom:16px}
  .plHead h1{font-size:20px;font-weight:600;margin:0;color:var(--ink)}
  .plHead .plCo{font-size:12px;color:var(--muted);margin-top:3px}
  /* one rNPV hero line — replaces the KPI-card row */
  .plHero{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);padding:14px 16px;margin-bottom:22px}
  .plHeroK{font-size:12px;color:var(--muted)}
  .plHeroV{font-size:26px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
  .plHeroD{font-size:13px;font-weight:600}
  .plConc{font-size:12px;color:var(--muted);margin-left:auto;align-self:center}
  .plSecTitle{font-family:var(--mono);font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin:0 0 9px}
  .plSec2{margin-top:24px}
  .plTable{width:100%;border-collapse:collapse;font-size:14px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
  .plTable td{padding:11px 14px;border-bottom:1px solid var(--line-soft);vertical-align:middle}
  .plTable tr:last-child td{border-bottom:0}
  .plTable td.r{text-align:right;font-variant-numeric:tabular-nums}
  .plTable th{padding:9px 14px;text-align:left;font-size:12px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--line);background:var(--panel)}
  .plTable th.r{text-align:right}
  .plSub{font-size:12px;color:var(--muted);margin-top:2px}
  .plCtr{text-align:center;padding:16px}
  .plTag{font-size:10px;font-weight:600;padding:1px 7px;border-radius:var(--r-pill);margin-left:6px}
  .plTag.mon{background:var(--accent-weak);color:var(--accent-ink)} .plTag.dec{background:var(--orange2);color:var(--orange)}
  .plHeadRow{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
  .plViewTog{display:inline-flex;border:1px solid var(--line);border-radius:var(--r-pill);overflow:hidden;background:var(--panel);flex:0 0 auto}
  .plViewTog button{border:0;background:transparent;padding:5px 13px;font-size:13px;color:var(--muted);cursor:pointer}
  .plViewTog button.on{background:var(--accent-weak);color:var(--accent-ink);font-weight:600}
  .scMeta{font-size:12px;color:var(--muted);margin:2px 0 12px}
  .scTable th.r,.scTable td.r{text-align:right}
  .scTable .sc-cell{font-variant-numeric:tabular-nums;color:var(--text)}
  .scTier{display:inline-block;min-width:20px;text-align:center;font-weight:700;font-size:12px;padding:1px 7px;border-radius:var(--r-pill)}
  .scTier.scA{background:var(--green2);color:var(--green)} .scTier.scB{background:var(--accent-weak);color:var(--accent-ink)} .scTier.scC{background:var(--orange2);color:var(--orange)}
  .scGen{padding:40px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}
  .scGenMsg{max-width:520px;color:var(--muted);font-size:14px;line-height:1.5}
  .scGenBtn{border:1px solid var(--accent-strong);background:var(--accent);color:var(--panel);border-radius:var(--r-md);padding:9px 20px;font-size:14px;font-weight:600;cursor:pointer}
  .scGenBtn:disabled{opacity:.7;cursor:default}
  .plUp{color:var(--green);font-weight:600} .plDown{color:var(--red);font-weight:600} .plMut{color:var(--faint)}
  /* event rows: fact · rNPV chip · implication, direction = a colored dot (no badges/labels) */
  .plEvents{display:flex;flex-direction:column;gap:2px}
  .plEv{padding:11px 2px;border-bottom:1px solid var(--line-soft)} .plEv:last-child{border-bottom:0}
  .plEvH{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .plDot{width:7px;height:7px;border-radius:var(--r-pill);flex:none}
  .plDot.up{background:var(--green)} .plDot.down{background:var(--red)} .plDot.warn{background:var(--orange)}
  .plFact{font-size:14px;font-weight:600;color:var(--ink)}
  .plWhen{font-size:11px;color:var(--faint);margin-left:auto}
  .plChip{font-size:11px;font-weight:600;padding:2px 8px;border-radius:var(--r-sm)}
  .plChip.up{background:var(--green2);color:var(--green)} .plChip.down{background:var(--red2);color:var(--red)} .plChip.warn{background:var(--orange2);color:var(--orange)} .plChip.mut{background:transparent;border:1px solid var(--line);color:var(--muted);font-weight:400}
  .plImp{font-size:13px;color:var(--text);line-height:1.55;margin:4px 0 0 15px}
  .plAff{font-size:11px;color:var(--muted)} .plAff::before{content:"· "}
  .plFoot{font-size:11px;color:var(--muted);line-height:1.5;margin-top:20px;border-top:1px solid var(--line-soft);padding-top:11px}
  .plMock{font-size:10px;font-weight:600;color:var(--orange);background:var(--orange2);border-radius:var(--r-pill);padding:1px 7px;margin-left:6px;letter-spacing:0}
  .plExa{font-size:10px;font-weight:600;color:var(--orange);background:var(--orange2);border-radius:var(--r-sm);padding:0 5px;flex:none}
  .monitorWrap{width:100%;height:100%;min-width:0;display:flex;flex-direction:column}
  /* Monitor status board */
  .mbControls{display:flex;align-items:stretch;gap:12px;height:60px;flex:0 0 60px;padding:0;border-bottom:1px solid var(--line);background:var(--panel)}
  .mbChips{display:flex;gap:0;min-width:0;overflow-x:auto;scrollbar-width:none}
  .mbChip{height:100%;border:0;border-bottom:2px solid transparent;background:transparent;border-radius:0;padding:0 24px;color:var(--muted);font-size:15px;white-space:nowrap}
  .mbChip:hover{color:var(--ink)}
  .mbChip.on{border-bottom-color:var(--ink);background:transparent;color:var(--ink);font-weight:500}
  .mbCtrlRight{display:none}   /* the 全部 (n) tab carries the count */
  .mbSearchWrap{position:relative;order:1;margin-left:auto}
  .mbSearchWrap svg{position:absolute;left:12px;top:50%;width:14px;height:14px;transform:translateY(-50%);color:var(--faint);pointer-events:none}
  .mbSearchWrap input{height:var(--ctl-md);width:204px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:0 12px 0 32px;outline:0;font:inherit;font-size:14px;color:var(--ink)}
  .mbSearchWrap input::placeholder{color:var(--placeholder)}
  .mbSearchWrap input:focus{border-color:var(--line2);box-shadow:0 0 0 3px var(--accent-weak)}
  .mbAction{height:32px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:0 11px;color:var(--text);font-size:12.5px}
  .mbAction:hover{border-color:var(--line2)}
  .mbCount{font-size:14px;color:var(--faint)}
  /* master-detail: list pane (left) + detail pane (right) */
  .mbSplit{flex:1;min-height:0;display:flex;overflow:hidden}
  .mbSplit.max .mbBoardWrap{display:none}
  .mbBoardWrap{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:auto;background:var(--panel)}
  .mbBoard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
  .mbSplit.detail .mbBoard{grid-template-columns:minmax(0,1fr)}
  .mbBoard>.mbEmpty{grid-column:1/-1}
  .mbSplit.detail .mbBoardWrap{flex:0 0 340px;border-right:1px solid var(--line)}
  .mbBoardHead{display:none}
  .mbRow{position:relative;display:flex;align-items:flex-start;gap:16px;width:100%;min-height:176px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--panel);padding:24px;text-align:left;cursor:pointer}
  .mbRow:hover{background:var(--inset)}
  /* badge · name (+ ticker) on top; the scope pills and the added-date share the bottom row */
  .mbRowL{flex:1;min-width:0;align-self:stretch;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 1fr;column-gap:16px;row-gap:12px}
  .mbRowL>:first-child,.mbRowL>.mbKw{grid-column:1/-1}
  .mbRowL>.mbScopeTags{grid-column:1;align-self:end}
  .mbRowL>.mbWhen{grid-column:2;align-self:end;justify-self:end}
  .mbMetric{flex:0 0 auto;text-align:right;min-width:90px;margin-right:28px}
  /* per-card delete (×): reserved slot (stable layout), revealed on row hover/focus */
  .mbDel{position:absolute;top:22px;right:16px;width:28px;height:28px;display:grid;place-items:center;border:0;background:transparent;color:var(--muted);font-size:22px;line-height:1;padding:0;border-radius:6px;cursor:pointer;opacity:0;transition:opacity .12s}
  .mbRow:hover .mbDel,.mbRow:focus-within .mbDel,.mbDel:focus-visible{opacity:1}
  .mbDel:hover{background:var(--panel2);color:var(--ink)}
  .mbDel svg{width:14px;height:14px;display:block}
  .mbMetric .rv{font-size:16px;font-weight:600;color:var(--accent-strong)}
  .mbMetric .rd{font-size:11.5px;font-weight:600;margin-left:6px}
  .mbMetric .rd.up{color:var(--green)} .mbMetric .rd.down{color:var(--red)}
  .mbMetric .rs{font-size:11px;color:var(--faint);margin-top:1px}
  .mbMetric .rc{font-size:11.5px;color:var(--accent-strong)}
  .mbDetailEmpty{margin:auto;color:var(--muted);font-size:13px;padding:40px;text-align:center}
  /* PRD v0.1 layer 1: one compact reading path — identity, metrics, priority events, Noah insight. */
  .mbOverview{container:monitorOverview / inline-size;margin:0 0 16px;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden}
  .mbOverviewIdentity{margin:0 0 12px}
  .mbOverviewTitleRow{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
  .mbOverviewType{display:inline-flex;align-items:center;min-height:24px;border-radius:4px;padding:0 16px;background:var(--tag-purple-bg);color:var(--tag-purple);font-size:14px;font-weight:400;white-space:nowrap}
  .mbOverviewName{font-size:20px;line-height:28px;font-weight:500;color:var(--ink);white-space:nowrap}
  .mbOverviewRename{flex:0 0 auto;margin-left:-2px;width:24px;height:24px}
  .mbOverviewChip{display:inline-flex;align-items:center;min-height:24px;border:1px solid var(--line);border-radius:6px;padding:0 16px;background:var(--inset);color:var(--muted);font-size:14px;white-space:nowrap}
  .mbOverviewChip.accent{border-color:color-mix(in srgb,var(--accent-strong) 32%,var(--line));background:var(--accent-weak);color:var(--accent-ink);font-weight:650}
  .mbOverviewSearchTerms{margin-top:8px;color:var(--faint);font-size:13px;line-height:1.5}
  .mbOverviewMetrics{min-width:0}
  .mbOverviewMeta{display:flex;align-items:center;gap:8px;min-width:0;color:var(--muted);font-size:15px;line-height:22px;flex-wrap:wrap}
  .mbOverviewMeta b{color:var(--ink);font-weight:500}.mbOverviewMeta i{color:var(--faint);font-style:normal}
  .mbOverviewStats{display:flex;align-items:stretch;gap:12px;margin-top:16px;overflow-x:auto;padding-bottom:1px;scrollbar-width:thin}
  .mbOverviewStat{display:flex;flex:1 0 88px;min-height:84px;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--inset)}
  .mbOverviewStat b{color:var(--ink);font-size:24px;font-weight:400;line-height:1.1;font-variant-numeric:tabular-nums}
  .mbOverviewStat span{margin-top:8px;color:var(--muted);font-size:14px;line-height:1.2;white-space:nowrap}
  .mbOverviewStat.pipeline b{color:var(--accent-strong)}
  .mbOverviewNote{margin-top:12px;color:var(--faint);font-size:15px;line-height:22px}
  .mbOverviewDivider{height:1px;margin:24px 0 0;background:var(--line)}
  .mbOverviewEventHead{display:flex;align-items:center;justify-content:space-between;padding:24px 0 16px}
  .mbOverview .mbOverviewEventHead h3{margin:0;color:var(--ink);font-size:18px;line-height:26px;font-weight:500}   /* beats the later .mbBody h3 */
  .mbOverview .mbNoahSummary{margin:16px 0 0;border:1px solid var(--line);border-radius:var(--r-sm);padding:16px 12px;background:var(--panel);color:var(--muted);font-size:15px;line-height:24px}
  .mbOverview .mbNoahSummary>b{margin-bottom:12px;color:var(--ink);font-size:15px;line-height:22px;font-weight:500;letter-spacing:0}
  .mbNoahCitations{display:grid;grid-template-columns:1fr;gap:4px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line-soft);font-size:13px;line-height:20px}
  .mbNoahCitations>span{color:var(--muted);font-weight:500;font-size:12px}.mbNoahCitations a{display:block;max-width:100%;overflow-wrap:anywhere;color:var(--accent-ink);text-decoration:none}.mbNoahCitations a:hover{text-decoration:underline}
  .mbInlineCitation{display:inline-flex;align-items:center;margin:0 2px;color:var(--accent-ink);font-size:10.5px;font-weight:750;text-decoration:none}
  .mbRawDetailToggle{display:inline-flex;align-items:center;gap:8px;margin:10px 16px 0 0;padding:0;border:0;background:transparent;color:var(--ink);font:400 13px/20px var(--sans);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;vertical-align:middle;cursor:pointer}.mbRawDetailToggle:hover{color:var(--accent-ink);text-decoration-color:currentColor}.mbRawDetailToggle.open{color:var(--muted)}
  .mbTopEvents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0}
  .mbTopEvent{display:flex;flex-direction:column;min-width:0;min-height:140px;padding:16px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel)}
  .mbTopEventMeta{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
  .mbTopEventCategory,.mbTopEventImportance{display:inline-flex;align-items:center;min-height:20px;border-radius:6px;padding:2px 7px;font-weight:650;white-space:nowrap}
  .mbTopEventCategory{color:var(--accent-ink);background:var(--accent-weak)}
  .mbTopEventCategory.regulatory_progress{color:var(--green);background:var(--green2)}
  .mbTopEventCategory.conference_progress{color:#6c5aa0;background:#efedf7}
  .mbTopEventCategory.literature_progress{color:#79538f;background:#f3ecf7}
  .mbTopEventImportance{font-variant-numeric:tabular-nums}.mbTopEventImportance.critical{color:var(--red);background:var(--red2)}.mbTopEventImportance.high{color:var(--orange);background:var(--orange2)}.mbTopEventImportance.medium{color:var(--accent-ink);background:var(--accent-weak)}
  .mbTopEventMeta time{margin-left:auto;color:var(--faint);font-variant-numeric:tabular-nums}
  .mbTopEvent h4{display:-webkit-box;margin:10px 0 0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:15px;line-height:22px;font-weight:500;color:var(--ink)}
  .mbTopEvent h4 a{color:var(--ink);text-decoration:none}.mbTopEvent h4 a:hover{color:var(--accent-ink);text-decoration:underline}
  .mbTopEvent p{display:-webkit-box;margin:8px 0 0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;color:var(--muted);font-size:14px;line-height:22px}
  .mbTopEventActions{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:8px;border-top:1px solid var(--line-soft)}.mbTopEventActions a{color:var(--muted);font-size:12px;font-weight:400;text-decoration:none}.mbTopEventActions a:hover{color:var(--ink);text-decoration:underline}
  .mbOverviewEmpty{display:flex;align-items:center;justify-content:flex-start;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:var(--r-sm);color:var(--faint);font-size:14px;text-align:left;background:var(--panel)}
  @container monitorOverview (max-width:520px){.mbTopEvents{grid-template-columns:1fr}.mbTopEvent{min-height:130px}.mbOverviewName{font-size:16px}.mbOverviewMeta span:last-child{flex-basis:100%}}
  @media(max-width:920px){.mbTopEvents{grid-template-columns:1fr}.mbTopEvent{min-height:130px}}
  @media(max-width:620px){.mbOverview{padding:10px}.mbOverviewName{font-size:16px}.mbOverviewStat{flex-basis:61px}.mbOverviewMeta{align-items:flex-start}.mbOverviewMeta span:last-child{flex-basis:100%}}
  .mbBadge{display:inline-block;height:24px;border-radius:6px;padding:0 16px;font-size:14px;line-height:24px;font-weight:400;white-space:nowrap}
  .mbBadge.drug{background:var(--tag-cyan-bg);color:var(--tag-cyan)} .mbBadge.company{background:var(--green2);color:var(--green)} .mbBadge.target{background:var(--orange2);color:var(--orange)} .mbBadge.modality{background:#e6f3f5;color:#127c8a} .mbBadge.disease{background:#efedf7;color:#6c5aa0} .mbBadge.trial{background:var(--red2);color:var(--red)} .mbBadge.topic{background:#e7edf2;color:#3f5c74} .mbBadge.field{display:inline-block;width:max-content;background:var(--accent-weak);color:var(--accent-ink)}
  .mbKw{font-size:15px;line-height:22px;font-weight:400;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mbKw small{display:block;margin-top:4px;font-size:14px;line-height:20px;font-weight:400;color:var(--faint)}
  /* Scope tags replace the old latest-headline subtitle.  They make the actual
     monitor query visible without mistaking a single news item for its scope. */
  .mbScopeTags{display:flex;flex-wrap:wrap;gap:12px}
  /* scope pills are outlined in their category colour (Figma): line = rust, region = cyan, cadence = amber */
  .mbScopeTag{display:inline-flex;align-items:center;height:22px;border:1px solid currentColor;border-radius:6px;padding:0 12px;background:transparent;font-size:13px;font-weight:400;line-height:1;white-space:nowrap}
  .mbScopeTag.phase{color:var(--tag-purple)}.mbScopeTag.line{color:var(--tag-rust)}.mbScopeTag.geo{color:var(--tag-cyan)}.mbScopeTag.frequency{color:var(--tag-amber)}.mbScopeTag.status{color:var(--tag-teal)}
  .mbChg{min-width:0;display:flex;align-items:center;gap:7px}
  .mbDir{font-size:11px;flex:0 0 auto} .mbDir.up{color:var(--green)} .mbDir.down{color:var(--red)} .mbDir.flat,.mbDir.upcoming{color:var(--muted)}
  .mbChgT{color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mbNone{color:var(--faint);font-size:13px}
  .mbWhen{font-size:14px;line-height:20px;color:var(--faint);white-space:nowrap}
  .mbEmpty{padding:40px 18px;text-align:center;color:var(--muted)}
  .mbScrim{position:fixed;inset:0;background:rgba(28,33,30,.28);opacity:0;pointer-events:none;transition:opacity .18s;z-index:60}
  .mbScrim.show{opacity:1;pointer-events:auto}
  .mbDrawer{display:none;flex:1;min-width:0;overflow-y:auto;overflow-x:hidden;background:var(--bar);flex-direction:column;overscroll-behavior-x:none}
  .mbSplit.detail .mbDrawer{display:flex}
  /* docked NL chat beside the detail (AI-native: ask the watched object in natural language) */
  .mbChat{display:none;flex:1.05;min-width:0;background:var(--panel);border-left:1px solid var(--line);flex-direction:column}
  .mbSplit.detail.chatopen .mbChat{display:flex}   /* docked chat: OFF by default, opened via the header 对话 toggle, and ONLY inside an open detail drawer */
  .mbChatFeed{flex:1;overflow:auto;padding:16px 16px 8px;display:flex;flex-direction:column;gap:13px}
  .mbCu{align-self:flex-end;max-width:86%;font-size:13px;color:var(--ink);background:var(--page);border:1px solid var(--line);border-radius:var(--r-lg);padding:7px 11px;white-space:pre-wrap;line-height:1.45}
  .mbCb{font-family:var(--serif);font-size:14px;line-height:1.62;color:var(--text)}
  .mbCb p{margin:0 0 8px} .mbCb p:last-child{margin-bottom:0}
  .mbCs{color:var(--faint);font-style:italic}
  .mbCf{margin-top:7px}
  .mbCbCur::after{content:"";display:inline-block;width:7px;height:15px;background:var(--accent-strong);vertical-align:-2px;margin-left:2px;animation:mbcblink 1s step-end infinite}
  @keyframes mbcblink{50%{opacity:0}}
  .mbChatBar{border-top:1px solid var(--line);padding:10px 12px;display:flex;align-items:flex-end;gap:8px}
  .mbChatBar textarea{flex:1;resize:none;border:1px solid var(--line2);border-radius:var(--r-lg);padding:9px 12px;font:inherit;font-size:13px;line-height:1.4;max-height:120px;outline:none;background:var(--panel);overflow-wrap:anywhere}
  .mbChatBar textarea:focus{border-color:var(--accent-strong);box-shadow:0 0 0 3px var(--accent-weak)}
  .mbChatSend{flex:0 0 auto;width:34px;height:34px;border:0;border-radius:var(--r-md);background:var(--accent-strong);color:var(--panel);font-size:16px;cursor:pointer}
  .mbChatSend:disabled,.mbChatBar textarea:disabled{opacity:.5}
  .mbChatHd{display:flex;align-items:center;justify-content:space-between;padding:9px 11px;border-bottom:1px solid var(--line-soft);font-size:12px;color:var(--muted);font-weight:600}
  .mbChatClose{border:0;background:none;color:var(--faint);font-size:14px;line-height:1;width:24px;height:24px;border-radius:6px;cursor:pointer}
  .mbChatClose:hover{background:var(--page);color:var(--muted)}
  /* judgment-first: Noah's take + metric strip lead the detail */
  .mbTake{margin:2px 0 15px}
  .mbTake .tkRow{display:flex;gap:10px}
  .mbTake .tkAv{width:26px;height:26px;border-radius:50%;background:var(--accent-weak);color:var(--accent-strong);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:12px;flex:0 0 auto;margin-top:1px}
  .mbTake .tkT{font-family:var(--sans);font-size:14px;line-height:1.6;color:var(--text)}
  .mbTake .tkMtr{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:13px}
  .mbTake .tkMtr>div{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);padding:9px 11px}
  .mbTake .tkMtr b{display:block;font-size:15px;font-weight:600;color:var(--ink)}
  .mbTake .tkMtr span{font-size:10.5px;color:var(--faint);text-transform:uppercase;letter-spacing:.04em}
  .tkD{font-size:11px;font-weight:600} .tkD.up{color:var(--green)} .tkD.down{color:var(--red)}
  .tkCalc{color:var(--accent-strong);cursor:pointer;font-size:13px}
  /* Secondary-section cards — ONE recipe for every watch-detail section (相关新闻 / rNPV / 药物事实 / 竞品格局 /
     临床试验 / 催化剂 / BD / 全景管线): white --panel, thin --line border, --r-md radius (matches the metric
     strip), a clean sans header with a subtle --line-soft divider, and a consistent ▸/▾ fold affordance —
     deep sections collapse, 相关新闻 opens by default. (Was a heavier --r-lg card with an off-system --panel2
     beige header strip that only some of the sections carried.) */
  .mbFacts{margin:4px 0 10px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--panel);overflow:hidden}
  .mbFacts>h3{margin:0;padding:10px 14px;font-size:12.5px;font-weight:600;letter-spacing:0;color:var(--ink);background:transparent;border-bottom:1px solid var(--line-soft);display:flex;align-items:center;justify-content:space-between;gap:8px}
  .mbFacts.fold>h3{cursor:pointer}
  .mbFacts.fold>h3::after{content:"▸";color:var(--faint);font-size:10px;font-weight:400}
  .mbFacts.fold.open>h3::after{content:"▾"}
  .mbFacts.fold:not(.open)>h3{border-bottom:0;margin-bottom:0}
  .mbFacts.fold:not(.open)>*:not(h3){display:none}
  /* 管线/临床研究 卡片用同样的 ▾/▸ 按钮折叠（复用 .mbFacts.fold 状态机与持久化） */
  .mbPanoTitle{display:flex;align-items:center;gap:5px;min-width:0}
  .mbPano.fold>h3::after{content:none}
  .mbFacts.fold .mbProgressToggle::after{content:"▸"}
  .mbFacts.fold.open .mbProgressToggle::after{content:"▾"}
  /* 管线/临床研究 cards (Figma 623:2512): a #FCFCFC card, a 15px title, the fold chevron at the right */
  .mbFacts.mbPano{background:var(--inset);border-radius:var(--r-sm)}
  .mbFacts.mbPano>h3{padding:14px 16px;font:500 15px/24px var(--sans);border-bottom-color:var(--line)}
  .mbFacts.mbPano.fold>h3::after,.mbFacts.mbPano.fold.open>h3::after{content:none}
  .mbFacts.mbPano h3 .mbProgressToggle{margin-left:auto;width:20px;height:20px;justify-content:center;padding:0;color:var(--muted)}
  .mbFacts.mbPano.fold .mbProgressToggle::after,.mbFacts.mbPano.fold.open .mbProgressToggle::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg)}
  .mbFacts.mbPano.fold:not(.open) .mbProgressToggle::after{transform:translateX(-2px) rotate(-45deg)}
  .mbSpin{display:inline-block;width:11px;height:11px;border-radius:50%;border:2px solid var(--line2);border-top-color:var(--accent-strong);animation:spin .85s linear infinite;vertical-align:-1px;margin-right:5px}
  .mbSrcWeb{margin-left:7px;font-size:10px;font-weight:600;letter-spacing:0;color:var(--muted);background:var(--line);border-radius:4px;padding:1px 5px;text-transform:none}
  .mbCompWeb{color:var(--faint);font-size:11px}
  .mbApproved{color:var(--green);font-weight:600}
  .mbFactRow{display:grid;grid-template-columns:104px 1fr;gap:10px;padding:7px 14px;border-bottom:1px solid var(--line-soft);font-size:13px;line-height:1.45}
  .mbFactRow:last-child{border-bottom:0}
  .mbDrugTbl{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12.5px;overflow-wrap:anywhere}
  .mbDrugTbl th{text-align:left;font-weight:600;color:var(--muted);padding:6px 14px;background:var(--panel2);border-bottom:1px solid var(--line);font-size:11px}
  .mbDrugTbl td{padding:6px 14px;border-bottom:1px solid var(--line-soft);vertical-align:top;overflow-wrap:anywhere;word-break:break-word}
  .mbDrugTbl tr:last-child td{border-bottom:0}
  .mbPano h3{display:flex;align-items:center;gap:8px}
  .mbPanoUpdating{margin-left:8px;font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--muted);background:var(--panel2);border:1px solid var(--line);border-radius:var(--r-pill);padding:2px 8px}
  .mbListSearch{display:flex;align-items:center;gap:7px;padding:9px 14px;border-bottom:1px solid var(--line-soft);background:var(--panel)}
  .mbListSearch input{flex:1;min-width:140px;border:1px solid var(--line2);border-radius:8px;padding:7px 9px;font:inherit;font-size:11.5px;background:var(--panel)}
  .mbListSearch button{border:1px solid var(--accent-strong);border-radius:8px;padding:7px 12px;color:var(--accent-ink);background:var(--panel);font:inherit;font-size:11.5px;font-weight:650;cursor:pointer}
  .mbListSearch span{color:var(--muted);font-size:11px}
  .mbListResultCount{padding:12px 16px 10px;color:var(--muted);font-size:13px;line-height:20px}
  .mbScopeSummary{margin:-2px 0 14px;border:0;background:transparent;overflow:visible}
  .mbScopeBody{padding:0 2px 2px}
  .mbScopeChips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
  .mbScopeChip{display:inline-flex;align-items:center;border:1px solid var(--line2);background:var(--panel2);border-radius:var(--r-pill);padding:4px 10px;font-size:12px;color:var(--text)}
  .mbScopeChip.phase{border-color:color-mix(in srgb,var(--accent-strong) 35%,var(--line2));background:var(--accent-weak);color:var(--accent-ink);font-weight:600}
  .mbScopeCount{margin-left:auto;font-size:12px;color:var(--muted)}
  .mbScopeNote{margin-top:8px;font-size:11.5px;line-height:1.55;color:var(--muted)}
  .mbNoahSummary{margin-top:10px;padding:9px 11px;border:1px solid color-mix(in srgb,var(--accent-strong) 24%,var(--line));border-radius:9px;background:color-mix(in srgb,var(--accent-weak) 55%,var(--panel));font-size:12px;line-height:1.55;color:var(--text)}
  .mbNoahSummary b{display:block;margin-bottom:2px;color:var(--accent-ink);font-size:11px;letter-spacing:.02em}
  .mbPanoTbl th.r,.mbPanoTbl td.r{text-align:right;font-variant-numeric:tabular-nums}
  /* per-molecule 加入监控 — same pill recipe as the 热点 .hsWatch discovery control. The action column is
     shrink-to-fit and 最高阶段 never wraps, so adding it can't squeeze "注册申报" into a one-character-per-line
     stack. 靶点 deliberately still WRAPS: a company panorama carries full protein descriptions there
     ("CD19 molecule CD3 epsilon subunit of T-cell receptor…"), and pinning it would overflow the table and
     push the stage + button columns out of view. */
  .mbPanoWrap{overflow-x:auto;overflow-y:clip;max-width:100%;overscroll-behavior-x:none}
  /* Pipeline and clinical tables share a real two-axis scrollport. The header sticks to this viewport,
     so it remains visible while the user scrolls either large table. */
  .mbPanoWrap.mbTallPano{max-height:min(62vh,620px);overflow:auto;overscroll-behavior:contain}
  .mbPanoTbl th.nw,.mbPanoTbl td.nw{white-space:nowrap}
  /* Pipeline uses the same stable-column model as Clinical studies: resizing the Thread changes only the
     scrollport width, never the cells themselves. This prevents company/target/type values from collapsing
     into one-character-per-line stacks in a narrow artifact pane. */
  .mbPanoTbl.mbPipelineTbl{width:100%;table-layout:fixed;min-width:1100px}
  .mbPanoTbl.mbPipelineTbl th:nth-child(1),.mbPanoTbl.mbPipelineTbl td:nth-child(1){width:240px}
  .mbPanoTbl.mbPipelineTbl th:nth-child(2),.mbPanoTbl.mbPipelineTbl td:nth-child(2){width:240px}
  .mbPanoTbl.mbPipelineTbl th:nth-child(3),.mbPanoTbl.mbPipelineTbl td:nth-child(3){width:250px}
  .mbPanoTbl.mbPipelineTbl th:nth-child(4),.mbPanoTbl.mbPipelineTbl td:nth-child(4){width:170px}
  .mbPanoTbl.mbPipelineTbl th:nth-child(5),.mbPanoTbl.mbPipelineTbl td:nth-child(5){width:110px}
  .mbPanoTbl.mbPipelineTbl th:nth-child(6),.mbPanoTbl.mbPipelineTbl td:nth-child(6){width:90px}
  /* Pipeline defaults to a target × highest-stage heatmap. The full roster remains available through the
     adjacent list tab, and selecting a populated cell opens that exact full-field table below the matrix. */
  .mbPipelineToolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;border-bottom:1px solid var(--line);background:var(--panel)}
  .mbPipelineStats{display:flex;align-items:center;gap:4px;min-width:0;color:var(--muted);font-size:11.5px;line-height:1.4;flex-wrap:wrap}
  .mbPipelineHiddenBtn{border:0;background:transparent;color:var(--accent-ink);font:inherit;font-weight:650;padding:1px 4px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
  .mbPipelineTabs{display:flex;flex:0 0 auto;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel)}
  .mbPipelineTab{border:0;border-right:1px solid var(--line);background:transparent;color:var(--muted);font-size:12px;font-weight:500;padding:5px 12px;cursor:pointer}
  .mbPipelineTab:last-child{border-right:0}
  .mbPipelineTab.active{color:var(--accent-ink);background:var(--accent-weak)}
  .mbObjectProfile{padding:12px 14px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,color-mix(in srgb,var(--accent-weak) 45%,var(--panel)),var(--panel))}.mbObjectProfile>b{display:block;margin-bottom:9px;color:var(--ink);font-size:14px}.mbObjectProfile>b a{color:var(--accent-ink)}
  .mbObjectProfile dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px;margin:0}.mbObjectProfile dl>div{min-width:0}.mbObjectProfile dt{color:var(--muted);font-size:10px}.mbObjectProfile dd{margin:2px 0 0;color:var(--ink);font-size:11.5px;line-height:1.4;overflow-wrap:anywhere}
  .mbHeatHint{padding:8px 14px 5px;color:var(--muted);font-size:11.5px;background:var(--panel)}
  .mbHeatWrap{margin:0 14px 12px;max-width:calc(100% - 28px);max-height:min(58vh,540px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
  .mbHeatTbl{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:3px;font-size:12px;padding:3px}
  .mbHeatTbl th{height:34px;padding:5px 8px;color:var(--muted);font-weight:650;text-align:center;background:var(--panel);white-space:nowrap}
  .mbHeatTbl thead th{position:sticky;top:0;z-index:4;box-shadow:0 1px 0 var(--line)}
  .mbHeatTbl thead th:first-child{left:0;z-index:6;width:260px;text-align:left}
  .mbHeatTbl tbody th{position:sticky;left:0;z-index:3;width:260px;text-align:left;color:var(--ink);box-shadow:1px 0 0 var(--line);background:var(--panel)}
  .mbHeatTbl td{height:44px;padding:0;text-align:center}
  .mbHeatTargetText{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;line-height:1.3}
  .mbHeatCell{width:100%;height:100%;min-height:42px;border:1px solid transparent;border-radius:8px;background:color-mix(in srgb,var(--heat-ink) calc(var(--heat-alpha) * 100%),transparent);color:var(--ink);font-size:12.5px;font-variant-numeric:tabular-nums;cursor:pointer}
  .mbHeatCell:hover:not(:disabled){border-color:var(--accent-strong);box-shadow:inset 0 0 0 1px var(--accent-strong)}
  .mbHeatCell.strong{color:#fff;font-weight:700}
  .mbHeatCell.selected{border-color:var(--accent-strong);box-shadow:inset 0 0 0 2px var(--accent-strong)}
  .mbHeatCell:disabled{color:var(--muted);background:var(--panel2);cursor:default;opacity:.7}
  .mbHeatDetail{margin:0 14px 12px;border:1px solid color-mix(in srgb,var(--accent-strong) 32%,var(--line));border-radius:9px;overflow:hidden;background:var(--panel)}
  .mbHeatDetailHead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;color:var(--accent-ink);font-size:12px;background:color-mix(in srgb,var(--accent-weak) 55%,var(--panel))}
  .mbHeatDetailHead span{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
  .mbHeatDetail .mbPanoWrap{border-top:1px solid var(--line)}
  .mbFacts.mbClinical{container:mbclinical/inline-size}
  .mbClinicalToolbar{display:flex;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
  .mbClinicalTab{height:var(--ctl-sm);padding:0 12px;border:1px solid var(--line);border-left-width:0;background:var(--panel);color:var(--muted);font:400 13px/20px var(--sans);white-space:nowrap;cursor:pointer}
  .mbClinicalTab:first-child{border-left-width:1px;border-radius:var(--r-sm) 0 0 var(--r-sm)}.mbClinicalTab:last-child{border-radius:0 var(--r-sm) var(--r-sm) 0}
  .mbClinicalTab:hover:not(.active){color:var(--ink)}
  .mbClinicalTab.active{color:var(--panel);background:var(--accent-strong);border-color:var(--accent-strong)}
  .mbClinicalFilters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px;padding:14px 16px;border-bottom:1px solid var(--line)}
  .mbClinicalFilters label{position:relative;display:grid;gap:8px;min-width:0}
  .mbClinicalFilters label:first-child{grid-column:1/-1}
  .mbClinicalFilters label>span{padding:0 2px;color:var(--faint);font-size:12px;line-height:18px}
  .mbClinicalFilters input,.mbClinicalFilters select{min-width:0;width:100%;height:var(--ctl-md);border:1px solid var(--line);border-radius:var(--r-sm);padding:0 12px;background:var(--panel);color:var(--ink);font:400 13px/20px var(--sans)}
  .mbClinicalFilters input::placeholder{color:var(--placeholder)}
  .mbClinicalFilters input:focus,.mbClinicalFilters select:focus{outline:none;border-color:var(--accent-strong)}
  .mbClinicalFilters select{appearance:none;-webkit-appearance:none;padding-right:32px;text-overflow:ellipsis;cursor:pointer}
  .mbClinicalFilters label:not(:first-child)::after{content:"";position:absolute;right:14px;bottom:15px;width:6px;height:6px;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);pointer-events:none}
  .mbClinicalFilters>button{grid-column:1/-1;justify-self:start;width:120px;height:var(--ctl-sm);margin-top:2px;border:1px solid var(--accent-strong);border-radius:var(--r-sm);background:var(--panel);color:var(--accent-strong);font:500 13px/20px var(--sans);cursor:pointer}
  .mbClinicalFilters>button:hover{background:var(--accent-weak)}
  @container mbclinical (max-width:600px){.mbClinicalFilters{grid-template-columns:repeat(2,minmax(0,1fr))}}
  @container mbclinical (max-width:380px){.mbClinicalFilters{grid-template-columns:1fr}.mbClinicalFilters>button{width:100%}}
  .mbReadoutCalendar{padding:4px 14px 12px;background:var(--panel)}
  .mbCalendarGroup{margin-top:10px;border:1px solid var(--line-soft);border-radius:9px;overflow:hidden}.mbCalendarGroup>h4{display:flex;align-items:center;justify-content:space-between;margin:0;padding:8px 10px;background:var(--panel2);font-size:12px}.mbCalendarGroup>h4 span{color:var(--muted);font-weight:500}.mbCalendarGroup.legacy{opacity:.92}
  .mbCalendarNote{margin:0;padding:8px 10px;color:var(--muted);font-size:11px}
  .mbCalendarGroup>:last-child{border-bottom:0}
  /* one colour: text and border of a secondary button (it was green text in a grey frame) */
  .mbLegacyToggle{display:block;margin:12px auto 2px;border:1px solid var(--line);border-radius:8px;padding:6px 12px;color:var(--text);background:var(--panel);font:inherit;font-size:12px;cursor:pointer}
  .mbLegacyToggle:hover{border-color:var(--line2)}
  .mbReadoutMonth{position:sticky;top:0;z-index:2;margin-top:8px;padding:6px 8px;color:var(--accent-ink);font-size:12px;font-weight:750;background:color-mix(in srgb,var(--accent-weak) 55%,var(--panel));border-radius:7px}
  .mbReadoutItem{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:10px 8px;border-bottom:1px solid var(--line-soft)}
  .mbReadoutItem time{color:var(--muted);font-size:11.5px;font-variant-numeric:tabular-nums}.mbReadoutItem b{font-size:12.5px;line-height:1.45}.mbReadoutItem b a{color:var(--accent-ink)}
  .mbReadoutItem p,.mbReadoutMeta{margin:4px 0;color:var(--muted);font-size:11.5px}
  .mbReadoutItem time small{display:block;margin-top:2px;color:var(--faint);font-size:11px}
  .mbReadoutEvent{margin:2px 0 4px;color:var(--muted);font-size:11.5px;line-height:1.45;overflow-wrap:anywhere}
  .mbHasData{display:inline-block;margin-left:4px;padding:0 7px;border-radius:var(--r-pill);background:var(--accent-weak);color:var(--accent-strong);font-size:11px;white-space:nowrap}
  .mbClinicalEmpty{padding:18px;color:var(--muted);text-align:center;font-size:12px}
  .mbClinicalMatrixWrap{margin:12px 14px;overflow:auto;border:1px solid var(--line);border-radius:9px}
  .mbClinicalMatrix{width:100%;min-width:720px;border-collapse:collapse;font-size:12px}.mbClinicalMatrix th,.mbClinicalMatrix td{padding:9px 12px;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);text-align:center}
  .mbClinicalMatrix thead th,.mbClinicalMatrix tbody th{background:var(--panel2);color:var(--muted);font-weight:700}.mbClinicalMatrix tbody th{text-align:left;white-space:nowrap}.mbClinicalMatrix td{font-variant-numeric:tabular-nums}
  .mbClinicalMatrixCell{width:100%;min-height:32px;border:0;border-radius:6px;color:var(--accent-ink);background:var(--accent-weak);font:inherit;font-weight:700;cursor:pointer}.mbClinicalMatrixCell:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--accent-strong)}.mbClinicalMatrixCell:disabled{color:var(--faint);background:transparent;cursor:default}
  /* 全部列表 (Figma 627:3469): a bordered 8px-radius table inset 16px in the card, head on #F1F1F1, #F0F0F0 row
     dividers — at the app's dense-table scale (13px, cells aligned to the top), which the user preferred to the
     frame's 14/15px. Column widths are the frame's, except 主要终点 (96px held a placeholder; the
     real value is prose) and 阶段 / 状态 (room for "Ⅱ/Ⅲ期" and English statuses). It scrolls sideways when narrower. */
  .mbClinicalListWrap{margin:0 16px 16px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel)}
  .mbPanoTbl.mbClinPrdTbl{width:100%;table-layout:fixed;min-width:1712px;font-size:13px;line-height:21px;color:var(--ink)}.mbPanoTbl.mbClinPrdTbl th:nth-child(1){width:248px}.mbPanoTbl.mbClinPrdTbl th:nth-child(2){width:142px}.mbPanoTbl.mbClinPrdTbl th:nth-child(3){width:216px}.mbPanoTbl.mbClinPrdTbl th:nth-child(4){width:72px}.mbPanoTbl.mbClinPrdTbl th:nth-child(5){width:88px}.mbPanoTbl.mbClinPrdTbl th:nth-child(6){width:218px}.mbPanoTbl.mbClinPrdTbl th:nth-child(7){width:96px}.mbPanoTbl.mbClinPrdTbl th:nth-child(8){width:248px}.mbPanoTbl.mbClinPrdTbl th:nth-child(9){width:136px}.mbPanoTbl.mbClinPrdTbl th:nth-child(10){width:248px}
  .mbPanoTbl.mbClinPrdTbl th{padding:10px 14px;background:var(--panel2);color:var(--ink);font:500 13px/20px var(--sans);border-bottom:1px solid var(--line-soft)}
  .mbPanoTbl.mbClinPrdTbl td{padding:14px 14px;white-space:normal;overflow-wrap:anywhere;vertical-align:top;border-bottom:1px solid var(--line-soft);background:var(--panel)}
  .mbPanoTbl.mbClinPrdTbl td small{display:block;color:var(--muted);font-size:12px;line-height:18px}
  .mbClinPrdTbl td.mbTrialTitle{font-weight:500}
  .mbClinPrdTbl .mbTrialName{margin:0}
  .mbClinPrdTbl .mbTrialName a{color:var(--ink);text-decoration:none}
  .mbClinPrdTbl .mbTrialName a:hover{color:var(--accent-ink);text-decoration:underline}
  .mbTrialExpand{display:inline;margin:0;padding:0;border:0;background:transparent;color:var(--accent-muted);font:inherit;cursor:pointer;white-space:nowrap}
  .mbTrialExpand:hover{color:var(--accent-ink);text-decoration:underline}
  .mbResultCell .mbTrialExpand{color:var(--accent-strong)}
  .mbTrialWatch{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:transparent;color:var(--accent-strong);font:inherit;line-height:22px;white-space:nowrap;cursor:pointer}
  .mbTrialWatch b{font-size:15px;font-weight:400;line-height:1}
  button.mbTrialWatch:hover:not([disabled]){color:var(--accent-strong-hover)}
  .mbTrialWatch[disabled]{opacity:.55;cursor:default}
  .mbTrialWatch.done{color:var(--muted);cursor:default}
  .mbClinPrdTbl .mbClampToggle,.mbTrialResults .mbClampToggle{font-size:12px;font-weight:400}
  /* the opened row: a flat #FBFCFC panel that keeps to the visible part of the scrolled table */
  .mbClinPrdTbl tr.open td{border-bottom:0}
  .mbTrialDetailRow td{padding:16px 0!important;background:var(--bar)!important;border-bottom:1px solid var(--line)!important}
  .mbTrialDetailRow dl{display:grid;grid-template-columns:repeat(6,auto);justify-content:start;gap:10px 48px;margin:0}
  .mbTrialDetailRow dl>div{display:grid;align-content:start;gap:4px;min-width:0;max-width:320px}
  @container (max-width:560px){.mbTrialDetailRow dl{grid-template-columns:repeat(3,auto);justify-content:start}}
  @container (max-width:360px){.mbTrialDetailRow dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
  .mbTrialDetailRow dt{color:var(--muted);font-size:12px;line-height:18px}
  .mbTrialDetailRow dd{margin:0;color:var(--ink);font-size:13px;line-height:20px;overflow-wrap:anywhere}
/* ---- trial results (2026-10-07): an outcome chip in the table; findings and disclosures in the detail row ---- */
.mbOutcomes{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.mbResultCell .mbOutcomes{margin:0 0 4px}
.mbResultSnippet{margin:0;font-size:13px;line-height:21px;color:var(--text)}
.mbResultSnippet.muted{color:var(--muted)}
.mbOutcomes.inline{display:inline-flex;margin:0 0 0 4px;vertical-align:middle}
.mbOutcome{display:inline-block;max-width:100%;padding:1px 7px;border-radius:999px;font-size:10.5px;font-weight:600;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.mbOutcome.pos{background:var(--green2);color:var(--green)}
.mbOutcome.neg{background:var(--red2);color:var(--red)}
.mbOutcome.term{background:var(--orange2);color:var(--orange)}
.mbOutcome.ind,.mbOutcome.unk,.mbOutcome.more{background:var(--panel2);color:var(--muted)}
.mbClinPrdTbl td small.mbReadDone{color:var(--accent-strong)}
.mbShowAll{white-space:normal!important;-webkit-line-clamp:unset!important;overflow:visible!important;text-overflow:clip!important;max-width:100%!important;height:auto!important}
.mbClamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--lines,3);overflow:hidden}
.mbClamp.open{display:block;-webkit-line-clamp:unset;overflow:visible}
.mbClampToggle{justify-self:start;border:0;background:none;padding:0 0 0 4px;color:var(--accent-ink);font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.mbClampToggle:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
/* the list table is 1600px wide and scrolls; an opened row's detail is part of the table and scrolls with it (a
   sticky detail floated over the moving columns: UI review 2026-10-14), one visible width wide from the left edge */
.mbClinicalListWrap{container-type:inline-size}
.mbTrialDetailInner{margin-left:16px;width:calc(100cqw - 32px);display:grid;gap:14px}
/* 临床结果 (Figma): heading · 结果公布 · 来源 · 收起, a rule, each disclosure (venue line, 15px title, 结论 tag + text),
   a rule, the source-language note; flat on the opened row's fill */
.mbTrialResults{display:grid;gap:14px}
.mbObjectProfile .mbTrialResults{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.mbTrialResults.empty{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;color:var(--faint);font-size:13px;line-height:20px}
.mbTrialResults.empty b,.mbResHead b{color:var(--ink);font:500 14px/20px var(--sans)}
.mbResHead{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line)}
.mbResMeta{color:var(--faint);font-size:13px;line-height:20px}
.mbResSrc{color:var(--muted);font-size:13px;line-height:20px;white-space:nowrap;text-decoration:none}
.mbResSrc:hover{color:var(--accent-ink);text-decoration:underline}
.mbResBlock{display:grid;gap:14px}
.mbResBlock h5,.mbTrialEndpoint h5{margin:0;color:var(--muted);font-size:12px;font-weight:400;line-height:18px}
.mbResNote{margin:0;font-size:13px;line-height:20px;color:var(--ink)}
.mbResNote time,.mbResItem time{margin-right:8px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.mbResNote .mbResSrc{margin-left:8px}
.mbResItem{display:grid;gap:4px}
.mbResItem+.mbResItem{padding-top:14px;border-top:1px solid var(--line-soft)}
.mbResItem header{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline;color:var(--muted);font-size:12px;line-height:18px}
.mbResVenue{min-width:0;overflow-wrap:anywhere}
.mbResTitle{color:var(--ink);font:500 14px/20px var(--sans)}
.mbResFinding{margin:8px 0 0;font-size:13px;line-height:22px;color:var(--ink)}
.mbResFinding.muted{color:var(--muted)}
.mbResKind{display:inline-flex;align-items:center;height:20px;margin-right:8px;padding:0 8px;border-radius:6px;background:color-mix(in srgb,var(--muted) 10%,transparent);color:var(--muted);font-size:12px;line-height:18px;vertical-align:1px}
.mbResFoot{margin:0;padding-top:12px;border-top:1px solid var(--line);color:var(--faint);font-size:12px;line-height:18px}
.mbTrialEndpoint{display:grid;gap:4px;font-size:13px;line-height:21px;color:var(--ink)}
  .mbSignalMeta{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 0}.mbSignalMeta span,.mbBaselineTag{display:inline-flex;align-items:center;height:22px;max-width:min(360px,100%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:6px;padding:0 8px;background:color-mix(in srgb,var(--muted) 10%,transparent);color:var(--muted);font-size:12px;font-weight:400}
  .mbBaselineTag{margin-left:5px;color:var(--accent-ink);background:var(--accent-weak)}
  .mbSignalChangeDetail{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:6px;color:var(--text);font-size:12px;line-height:18px}.mbSignalChangeDetail b{color:var(--muted);font-size:12px;font-weight:500}.mbSignalChangeDetail span{font-variant-numeric:tabular-nums}
  .mbRelevance{margin-top:10px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--muted);font-size:13px;line-height:21px}.mbRelevance b{margin-right:8px;color:var(--ink);font-weight:500}
  .mbRelevance.pending{display:flex;align-items:center;gap:8px}
  /* 临床研究 table only: FIXED layout with deliberate column widths so rows stay ~1-2 lines tall and the
     table scrolls horizontally inside .mbPanoWrap when the card is narrower (11 columns can't fit a narrow
     card any other way). Short columns are nowrap; long id/drug/sponsor/region values ellipsis-truncate
     via the JS trunc span; 适应症 is the one column that wraps at its fixed width. */
  .mbPanoTbl.mbClinTbl{width:100%;table-layout:fixed;min-width:1700px}
  /* Keep these widths in the same order as watchClinicalHtml. Adding Sites previously shifted
     all trailing rules left by one, letting a date paint underneath the Phase value. */
  .mbPanoTbl.mbClinTbl th:nth-child(1),.mbPanoTbl.mbClinTbl td:nth-child(1){width:280px}
  .mbPanoTbl.mbClinTbl th:nth-child(2),.mbPanoTbl.mbClinTbl td:nth-child(2){width:150px}
  .mbPanoTbl.mbClinTbl th:nth-child(3),.mbPanoTbl.mbClinTbl td:nth-child(3){width:156px}
  .mbPanoTbl.mbClinTbl th:nth-child(4),.mbPanoTbl.mbClinTbl td:nth-child(4){width:200px}
  .mbPanoTbl.mbClinTbl th:nth-child(5),.mbPanoTbl.mbClinTbl td:nth-child(5){width:164px}
  .mbPanoTbl.mbClinTbl th:nth-child(6),.mbPanoTbl.mbClinTbl td:nth-child(6){width:76px}
  .mbPanoTbl.mbClinTbl th:nth-child(7),.mbPanoTbl.mbClinTbl td:nth-child(7){width:58px}
  .mbPanoTbl.mbClinTbl th:nth-child(8),.mbPanoTbl.mbClinTbl td:nth-child(8){width:116px}
  .mbPanoTbl.mbClinTbl th:nth-child(9),.mbPanoTbl.mbClinTbl td:nth-child(9){width:106px}
  .mbPanoTbl.mbClinTbl th:nth-child(10),.mbPanoTbl.mbClinTbl td:nth-child(10){width:76px}
  .mbPanoTbl.mbClinTbl th:nth-child(11),.mbPanoTbl.mbClinTbl td:nth-child(11){width:92px}
  .mbPanoTbl.mbClinTbl th:nth-child(12),.mbPanoTbl.mbClinTbl td:nth-child(12){width:112px}
  .mbPanoTbl.mbClinTbl th:nth-child(13),.mbPanoTbl.mbClinTbl td:nth-child(13){width:86px}
  .mbPanoTbl.mbClinTbl th:nth-child(6),.mbPanoTbl.mbClinTbl td:nth-child(6),
  .mbPanoTbl.mbClinTbl th:nth-child(7),.mbPanoTbl.mbClinTbl td:nth-child(7),
  .mbPanoTbl.mbClinTbl th:nth-child(9),.mbPanoTbl.mbClinTbl td:nth-child(9),
  .mbPanoTbl.mbClinTbl th:nth-child(10),.mbPanoTbl.mbClinTbl td:nth-child(10),
  .mbPanoTbl.mbClinTbl th:nth-child(11),.mbPanoTbl.mbClinTbl td:nth-child(11),
  .mbPanoTbl.mbClinTbl th:nth-child(12),.mbPanoTbl.mbClinTbl td:nth-child(12),
  .mbPanoTbl.mbClinTbl th:nth-child(13),.mbPanoTbl.mbClinTbl td:nth-child(13){padding-left:8px;padding-right:8px}
  /* The card cannot clip a viewport-sticky header; horizontal scrolling remains table-local. */
  .mbFacts.mbClinical{overflow:visible}
  .mbPanoWrap.mbTallPano thead th{position:sticky;top:0;z-index:3;background:var(--panel2);box-shadow:0 1px 0 var(--line)}
  .mbPanoTbl.mbClinTbl td.mbInd{overflow-wrap:anywhere;word-break:break-word}
  /* 试验/药物/靶点/适应症/申办方 all WRAP so full values stay visible; the fixed column widths cap
     row height. The row <tr title> still carries the full record title for hover.
     地区 is nowrap + ellipsis — country lists break at comma boundaries and overlap adjacent cells. */
  .mbPanoTbl.mbClinTbl td.mbTrialTitle,.mbPanoTbl.mbClinTbl td.mbDrug,.mbPanoTbl.mbClinTbl td.mbTarget,
  .mbPanoTbl.mbClinTbl td.mbSponsor{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  .mbTrialInlineAct{margin-top:8px}
  .mbPanoTbl.mbClinTbl td.mbRegion{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mbPanoTbl.mbClinTbl td.mbStart,.mbPanoTbl.mbClinTbl td.mbStatus{white-space:nowrap}
  /* 结果 (✓ 原始来源) must never wrap into a per-character stack. */
  .mbPanoTbl.mbClinTbl td.mbRes{white-space:nowrap}
  /* The action column is PINNED to the right edge of the scroller. A company roster's 公司 cell can hold six
     partners and 靶点 a full protein name, so the table is routinely wider than the card — unpinned, the
     button is the column that gets clipped off, i.e. the feature disappears exactly on the widest rows. */
  .mbPanoTbl th.mbPanoAct,.mbPanoTbl td.mbPanoAct{position:static;width:80px;min-width:80px;box-sizing:border-box;text-align:right;white-space:nowrap;border-left:1px solid var(--line-soft)}
  .mbPanoTbl th.mbPanoAct{background:var(--panel2)}
  .mbPanoTbl td.mbPanoAct{background:var(--panel)}
  .mbPanoAdd{display:inline-flex;align-items:center;gap:4px;max-width:100%;font-size:10.5px;font-weight:600;color:var(--accent-ink);background:var(--panel);border:1px solid var(--line2);border-radius:var(--r-pill);padding:1px 6px;cursor:pointer;white-space:nowrap}
  button.mbPanoAdd:hover{border-color:var(--accent-strong);background:var(--accent-weak)}
  .mbPanoAdd[disabled]{opacity:.55;cursor:default}
  .mbPanoAdd.done{color:var(--muted);border-color:var(--line-soft);background:transparent;cursor:default}
  /* 管线/临床研究 panorama pagination bar under each table */
  .mbPanoPager{display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
  .mbPagerBtn,.mbHeatPagerBtn{border:1px solid var(--line);background:var(--panel2);color:var(--accent-ink);font-size:12px;padding:4px 14px;border-radius:4px;cursor:pointer}
  .mbPagerBtn:hover:not(:disabled),.mbHeatPagerBtn:hover:not(:disabled){background:var(--panel-warm)}
  .mbPagerBtn:disabled,.mbHeatPagerBtn:disabled{opacity:.45;cursor:default}
  .mbPagerInfo{font-size:12px;color:var(--muted)}
  .mbTrialMoreBtn{width:100%;border:0;border-top:1px solid var(--line);background:var(--panel2);color:var(--accent-ink);font-size:12px;padding:8px 14px;cursor:pointer;text-align:left}
  .mbTrialMoreBtn:hover{background:var(--panel-warm)}
  /* 相关新闻 rows in the monitor detail (reuse .tnKick/.tnTag/.tnCite chips) */
  .mbNewsRow{padding:9px 14px;border-bottom:1px solid var(--line-soft)}
  .mbNewsRow:last-child{border-bottom:0}
  .mbNewsT{font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.45;margin-top:2px}
  .mbNewsFt{margin-top:5px}
  .mbFactK{color:var(--muted)} .mbFactV{color:var(--ink)}
  .mbTrust{display:inline-block;font-size:10.5px;font-weight:600;border-radius:var(--r-pill);padding:1px 7px;margin-left:7px;color:var(--orange);background:var(--orange2)}
  .mbImpact{margin-top:6px;font-size:12.5px;line-height:1.5;color:var(--accent-ink);background:var(--accent-weak,#EAF0FF);border-radius:var(--r-sm);padding:7px 10px}
  /* 重要原因 → (Figma): an underlined text link with an arrow; the arrow is a mask so the underline skips it */
  .mbImpactBtn{display:inline-flex;align-items:center;gap:8px;margin:10px 16px 0 0;padding:0;border:0;background:transparent;color:var(--ink);font:400 13px/20px var(--sans);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;vertical-align:middle;cursor:pointer}
  .mbImpactBtn::after{content:"";width:12px;height:12px;background:var(--faint);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat}
  .mbImpactBtn:hover:not(:disabled){color:var(--accent-ink);text-decoration-color:currentColor}.mbImpactBtn:hover:not(:disabled)::after{background:var(--accent-ink)}
  .mbImpactBtn:disabled{color:var(--muted);cursor:wait}
  .mbHead{padding:15px 18px;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:flex-start;background:var(--panel)}
  .mbHeadCtl{margin-left:auto;display:flex;gap:6px;flex:0 0 auto;align-items:center}
  .mbCtlBtn{height:30px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);color:var(--muted);font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;padding:0;width:30px}
  .mbCtlBtn:hover{border-color:var(--line2);color:var(--text)}
  .mbChatToggle{width:auto;padding:0 11px;font-weight:600}
  .mbChatToggle.active{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--panel)}
  .mbTitle{font-size:20px;font-weight:600;margin:6px 0 2px;letter-spacing:-.01em}
  /* detail-header badge + title on ONE vertically-centered row (was: badge floating above the title).
     Sits on the page background like every other page title — NOT in a raised white bar (that --panel came
     from the base .mbHead built for the old drawer; the unified runtime header is flush on --page). */
  .mbHead.mbHeadInline{align-items:center;gap:9px;background:transparent;border-bottom:0;padding:0 0 12px}
  .mbHeadInline .mbTitle{margin:0}
  .mbTitleRow{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
  .mbTitleRow .mbTitle{margin:0}
  .mbTitleInline{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%}
  .mbTitleInline .mbTitle{min-width:0;overflow-wrap:anywhere}
  .mbRenameBtn{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:var(--r-sm);padding:3px 7px;font-size:12px;line-height:1;cursor:pointer;flex:0 0 auto}
  .mbRenameBtn:hover{border-color:var(--line2);color:var(--ink);background:var(--inset)}
  .mbSub{font-size:12.5px;color:var(--muted);margin:0}
  .mbBody{flex:1;min-width:0;overflow-y:auto;overflow-x:hidden;padding:16px 18px;overscroll-behavior-x:none}
  .mbHistoricalNotice{margin:0 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--inset);color:var(--muted);font-size:12px;line-height:1.55}
  .mbActs{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}
  .mbBtn{height:34px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:0 12px;color:var(--text);font-size:13px}
  .mbBtn.primary{border-color:var(--accent-strong);background:var(--accent-strong);color:var(--panel);font-weight:600}
  .mbFeed h3,.mbBody h3{font-size:12.5px;font-weight:600;color:var(--text);margin:0 0 11px}
  .mbFeedToolbar{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:0 2px;min-height:32px;flex-wrap:wrap}
  .mbEventModeTabs{display:inline-flex;gap:4px;border:0;border-radius:var(--r-sm);overflow:hidden;background:transparent}
  .mbEventModeTabs .mbTabN{margin-left:6px;font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}
  .mbEventModeTabs button{height:var(--ctl-md);padding:0 16px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--muted);font:400 14px var(--sans);cursor:pointer}.mbEventModeTabs button:hover{color:var(--ink)}.mbEventModeTabs button.active{background:var(--panel2);color:var(--ink);font-weight:500}
  .mbEventModeNote{order:3;flex-basis:100%;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;line-height:20px}.mbFeedToolbar .mbLastCk{float:none;margin-left:auto;font-size:13px;color:var(--faint)}
  .mbProgressGroups{display:grid;gap:14px;margin-bottom:14px;container:mbfeed/inline-size}
  /* a lane is a #FCFCFC card: 15px title (its count beside it), the fold chevron at the right, no rule under it;
     its rows use the dense scale (14px titles, 13px text, 12px tags) the user preferred to the frame's 15/14px */
  .mbProgressGroup{border:1px solid var(--line);border-radius:var(--r-sm);background:var(--inset);overflow:hidden}
  .mbProgressHead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px}
  .mbProgressTitle{display:flex;align-items:baseline;gap:8px;min-width:0}
  .mbProgressHead h4{font:500 15px/24px var(--sans);color:var(--ink);margin:0;cursor:pointer}
  .mbProgressToggle{border:0;background:transparent;cursor:pointer;padding:2px 3px;display:inline-flex;align-items:center;color:var(--muted);line-height:1}
  .mbProgressToggle::after{content:"▾";font-size:11px}
  .mbProgressToggle:hover{color:var(--accent-ink)}
  .mbProgressGroup.collapsed .mbProgressToggle::after{content:"▸"}
  .mbProgressGroup .mbProgressToggle{width:20px;height:20px;justify-content:center;padding:0}
  .mbProgressGroup .mbProgressToggle::after,.mbProgressGroup.collapsed .mbProgressToggle::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg)}
  .mbProgressGroup.collapsed .mbProgressToggle::after{transform:translateX(-2px) rotate(-45deg)}
  .mbProgressGroup.collapsed .mbProgressRows,.mbProgressGroup.collapsed .mbProgressEmpty{display:none}
  .mbProgressCount{font-size:13px;color:var(--faint)}
  .mbProgressCount.active,.mbProgressCount.partial{color:var(--orange)}
  .mbProgressCount.failed{color:var(--red)}
  .mbProgressCount.continuing{color:var(--accent-ink)}
  .mbProgressCount.skipped,.mbProgressCount.pending{color:var(--faint)}
  .mbProgressMeter{height:3px;margin:0 16px 12px;border-radius:999px;background:var(--line-soft);overflow:hidden}
  .mbProgressMeter>i{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .25s ease}
  .mbProgressRows{padding:6px 16px 0}
  .mbProgressEmpty{padding:0 16px 14px;font-size:13px;line-height:20px;color:var(--faint)}
  .mbProgressEmpty .tchip{margin-left:8px}   /* 重试 drawn as the 立即检查 chip */
  .mbProgressEmpty.partial{color:var(--orange)}
  .mbProgressEmpty.failed{color:var(--red)}
  .mbProgressEmpty.continuing{color:var(--muted)}
  .mbBaselineEmpty{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:10px;padding:15px 16px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--panel);color:var(--muted);font-size:12px}
  .mbBaselineEmpty b{color:var(--text)}.mbBaselineEmpty button{margin-left:auto;border:0;background:transparent;color:var(--accent-ink);font:inherit;font-weight:650;cursor:pointer}.mbBaselineEmpty button:hover{text-decoration:underline}
  .mbFtags{display:flex;flex-wrap:wrap;gap:6px 8px;margin-bottom:8px}
  .mbFtags .mbTrust,.mbLitTag,.mbConferenceTag{display:inline-block;height:22px;margin:0;padding:2px 10px;border-radius:6px;background:color-mix(in srgb,var(--accent-strong) 10%,transparent);color:var(--accent-strong);font-size:12px;font-weight:400;line-height:18px;white-space:nowrap}
  .mbConferenceTag{max-width:min(320px,100%);overflow:hidden;text-overflow:ellipsis}
  .mbConferenceAbstract{white-space:pre-wrap}
  .mbAbstractToggle{display:inline;margin:0 0 0 6px;padding:0;border:0;background:transparent;color:var(--accent-ink);font:600 11.5px/1.5 var(--sans);vertical-align:baseline;cursor:pointer}
  .mbAbstractToggle:hover,.mbAbstractToggle:focus-visible{text-decoration:underline}
  .mbActivity{margin-top:14px}
  .mbFi{display:grid;grid-template-columns:124px minmax(0,1fr);gap:12px}
  .mbFd{font-size:13px;line-height:20px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:normal;word-break:normal}
  .mbFb{border-left:1px solid var(--line);padding:0 0 26px 28px;margin-left:-1px;position:relative}
  .mbFi:last-child .mbFb{border-left-color:transparent;padding-bottom:14px}
  .mbFdot{position:absolute;left:-4px;top:6px;width:8px;height:8px;border-radius:50%;background:var(--accent-strong);border:0}
  .mbFt{font-weight:400;font-size:14px;line-height:22px;color:var(--ink)}.mbSignalTitleLink{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}.mbSignalTitleLink:hover,.mbSignalTitleLink:focus-visible{color:var(--accent-ink);text-decoration-color:currentColor} .mbFb p{margin:6px 0 0;font-size:13px;color:var(--muted);line-height:21px} .mbFs{margin-top:4px;font-size:12px;color:var(--faint)}
  .mbFdot.mark{background:var(--line2);border-color:var(--line2);width:7px;height:7px;top:4px}
  /* a narrow lane (phone, or a narrow pane) puts the date line above the row instead of beside it */
  @container mbfeed (max-width:520px){
    .mbProgressGroup .mbFi{grid-template-columns:minmax(0,1fr);gap:4px}
    .mbProgressGroup .mbFd{display:flex;flex-wrap:wrap;gap:0 8px;align-items:baseline;padding-left:17px;text-align:left}
    .mbProgressGroup .mbFd br{display:none}.mbProgressGroup .mbFd small{display:inline;margin:0}
    .mbProgressGroup .mbFb{padding:0 0 24px 16px}
    .mbProgressGroup .mbMoreBtn{margin-left:17px}
  }
  .mbCkT{font-size:12px;color:var(--faint)} .mbCk .mbFb{padding-bottom:9px}
  .mbFd b{font-weight:600} .mbLastCk{float:right;font-weight:400;font-size:11.5px;color:var(--muted)}
  @keyframes mbpulse{0%,100%{opacity:.5}50%{opacity:1}} .mbBtn.busy{animation:mbpulse 1s ease-in-out infinite}
  .mbFdot.dd{background:var(--accent-strong);border-color:var(--accent-strong)}
  .mbDd{border:1px solid var(--accent-weak);border-radius:var(--r-md);padding:10px 12px;background:var(--inset)}
  .mbDdH{font-size:12.5px;font-weight:600;color:var(--accent-ink)} .mbDdS{font-size:12.5px;color:var(--text);margin-top:4px;line-height:1.5}
  .mbDdLink{display:inline-block;margin-top:6px;font-size:12px;color:var(--accent-strong);text-decoration:none}
  .mbDlLink{font-size:12px;color:var(--accent-strong);text-decoration:none}
  .mbRnpv{padding:11px 14px}
  .mbRnpvTop{display:flex;align-items:baseline;gap:12px}
  .mbRnpvVal{font-size:22px;font-weight:600;color:var(--accent-strong)}
  .mbRnpvRange{font-size:12px;color:var(--muted)}
  .mbRnpvSum{font-size:12.5px;color:var(--text);margin-top:7px;line-height:1.5}
  .mbRnpvSwing{font-size:12px;color:var(--muted);margin-top:4px}
  .mbRnpvActs{display:flex;align-items:center;gap:12px;margin-top:9px;flex-wrap:wrap}
  .mbRnpvEmpty{font-size:12.5px;color:var(--muted);margin-bottom:8px}
  .mbMoreBtn{margin:0 0 14px 140px;border:0;background:transparent;color:var(--accent-ink);font-size:13px;line-height:20px;cursor:pointer;padding:0} .mbMore[hidden]{display:none}
  .mbRtabs{display:flex;gap:2px;background:var(--panel2);border:1px solid var(--line);border-radius:var(--r-md);padding:2px;margin:0 0 14px;width:max-content}
  .mbRtab{height:28px;border:0;background:transparent;border-radius:var(--r-sm);padding:0 14px;font-size:13px;color:var(--muted)}
  .mbRtab.on{background:var(--panel);color:var(--accent-ink);font-weight:600}
  .mbRhist{border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
  .mbRitem{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:var(--panel);text-align:left;cursor:pointer}
  .mbRitem:last-child{border-bottom:0} .mbRitem:hover:not(.building){background:#f7faf8}
  .mbRitem.building{cursor:default;opacity:.85} .mbRitem.building .mbRmeta{color:var(--accent-strong);animation:mbpulse 1s ease-in-out infinite}
  .mbRdate{font-weight:600;font-size:13.5px} .mbRmeta{font-size:12px;color:var(--text)} .mbRmeta.empty{color:var(--faint)}
  .mbIframe{width:100%;height:62vh;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel)}
  .monitorTop{height:60px;flex:0 0 60px;display:flex;align-items:center;gap:16px;padding:0 16px;border-bottom:1px solid var(--line);background:var(--panel)}
  .monitorHeading{order:-1;min-width:0}
  .monitorKicker{display:none}
  .monitorTitle{font-size:16px;line-height:24px;margin:0;color:var(--ink);font-weight:500}
  .monitorAddToggle,.monitorBack,.detailAction{height:32px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:0 11px;color:var(--text)}
  .monitorAddToggle{order:2;height:var(--ctl-md);padding:0 24px;background:var(--accent-strong);border-color:var(--accent-strong);color:var(--panel);font-size:15px;font-weight:500}
  .monitorAddToggle:hover{background:var(--accent-strong-hover);border-color:var(--accent-strong-hover)}
  .monitorBack:hover,.detailAction:hover{border-color:var(--line2);color:var(--ink)}
  .monitorBuilder,.monitorListPane,.monitorDetailPage{min-width:0}
  .monitorBuilder{display:none;margin:12px 14px 0;border:1px solid var(--line);background:#F8F9FA;border-radius:var(--r-md);padding:14px;box-shadow:none}
  .monitorBuilder .field input{background:var(--panel)}
  .monitorBuilder .field input:focus{border-color:var(--line2);box-shadow:none}
  .monitorBuilder.open{display:block}
  .monitorBuilder.open{max-height:calc(100dvh - 92px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
  .monitorBuilderHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
  .monitorBuilderHead h2{font-size:13px;margin:0;color:var(--text);font-weight:600}
  .monitorBuilderClose{border:0;background:transparent;width:30px;height:30px;border-radius:var(--r-sm);color:var(--muted);font-size:18px}
  .monitorBuilderClose:hover{background:#f5f7f9;color:var(--ink)}
  .monitorBuilderGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}
  .monitorBuilderGrid .wide{grid-column:1/-1}
  /* object-type selector: same pill chips (+ per-type colors) as the status-board filter below */
  .typeGrid{display:flex;flex-wrap:wrap;gap:6px;margin:0}
  .typeBtn{height:28px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-pill);padding:0 12px;text-align:center;color:var(--muted);font-size:12px}
  .typeBtn:hover{border-color:var(--line2)}
  .typeBtn.active{border-color:transparent;background:var(--accent-weak);color:var(--accent-ink);font-weight:600}
  .typeBtn.active.drug{background:var(--tag-cyan-bg);color:var(--tag-cyan)} .typeBtn.active.company{background:var(--green2);color:var(--green)} .typeBtn.active.target{background:var(--orange2);color:var(--orange)} .typeBtn.active.modality{background:#e6f3f5;color:#127c8a} .typeBtn.active.disease{background:#efedf7;color:#6c5aa0} .typeBtn.active.trial{background:var(--red2);color:var(--red)} .typeBtn.active.topic{background:#e7edf2;color:#3f5c74}
  .field{display:grid;gap:6px}
  .field label{font-size:12px;color:var(--muted)}
  .field input,.field select,.field textarea{width:100%;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:9px 11px;color:var(--ink);outline:0;font:inherit}
  .field textarea{min-height:64px;resize:vertical;line-height:1.4}
  .field input:focus,.field select:focus,.field textarea:focus{border-color:var(--line2);box-shadow:none}
  .primaryBtn{height:34px;border:1px solid var(--accent-strong);background:var(--accent-strong);color:var(--panel);border-radius:var(--r-md);padding:0 13px;font-weight:600;width:100%}
  .primaryBtn:hover{background:var(--accent-strong-hover);border-color:var(--accent-strong-hover)}
  .primaryBtn:disabled{cursor:wait;opacity:.68}
  .monitorAddRow{display:flex;gap:10px;align-items:stretch}
  .monitorAddRow>input{flex:1}
  .monitorAddRow>input{min-width:0}
  .monitorAddRow>.primaryBtn{width:auto;height:auto;flex:0 0 auto;padding:0 20px;white-space:nowrap}
  .monitorSuggestions{max-height:260px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--line2);border-radius:var(--r-md);background:var(--panel);padding:4px;box-shadow:0 5px 16px rgba(22,28,36,.06)}
  .monitorSuggestions[hidden]{display:none}
  .monitorSuggestion{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:var(--r-sm);cursor:pointer;font-size:13px;line-height:1.4;min-height:38px}
  .monitorSuggestion:hover,.monitorSuggestion[aria-selected="true"]{background:var(--panel2)}   /* the 上传文件 menu's grey */
  .monitorSuggestionText{min-width:0;overflow-wrap:anywhere;flex:1}
  .monitorSuggestionName{font-weight:550;color:var(--ink)}
  .monitorSuggestionAlias{margin-left:8px;font-size:12px;color:var(--muted)}
  .monitorSuggestionKind{flex:0 0 auto;font-size:11px;font-weight:400;color:var(--accent-ink);background:rgba(0,188,160,.1);border-radius:var(--r-pill);padding:2px 7px}
  .monitorSuggestionStatus{font-size:12px;line-height:1.4;color:var(--muted)}
  .monitorSuggestionStatus:empty{display:none}
  .primaryBtn.busy{opacity:.68}
  .monitorConfirm{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);padding:24px;margin-top:9px}
  .monitorConfirmTitle{font-size:16px;line-height:24px;font-weight:500;color:var(--ink);margin-bottom:16px}
  .monitorConfirmTitle:has(+.monitorConfirmSub){margin-bottom:4px}
  .monitorConfirmSub{font-size:14px;line-height:20px;color:var(--muted);margin-bottom:16px}
  .monitorConfirmGrid{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:20px 16px}
  .monitorConfirmField{display:grid;gap:5px;min-width:0}
  .monitorConfirmField[hidden]{display:none}
  .monitorConfirmField.wide{grid-column:1/-1}
  .monitorConfirmField label{font-size:14px;color:var(--muted)}
  .monitorConfirmField input,.monitorConfirmField select,.monitorConfirmField textarea{width:100%;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:8px 10px;color:var(--ink);outline:0;font:inherit}
  .monitorConfirmField textarea{min-height:58px;resize:vertical;line-height:1.45}
  .monitorConfirmField input:focus,.monitorConfirmField select:focus,.monitorConfirmField textarea:focus{border-color:var(--line2);box-shadow:none}
  /* drawn chevron 12px in from the edge (the native one sat on the border), as .settingsSelect */
  .monitorConfirmField select{-webkit-appearance:none;appearance:none;padding-right:36px;background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666666' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.25 8 10.25l4-4'/%3E%3C/svg%3E") right 12px center/16px 16px no-repeat;text-overflow:ellipsis;cursor:pointer}
  .monitorConfirmField select:disabled{cursor:default;color:var(--faint);opacity:1}
  fieldset.monitorConfirmField{border:0;padding:0;margin:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
  fieldset.monitorConfirmField legend{width:100%;padding:0 0 10px;font-size:14px;color:var(--muted)}
  fieldset.monitorConfirmField legend .legendHelp{margin-left:8px;font-size:13px;color:var(--faint)}
  fieldset.monitorConfirmField>label{display:inline-flex;align-items:center;gap:8px;height:var(--ctl-md);padding:0 16px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink);font-size:14px;cursor:pointer}
  fieldset.monitorConfirmField>label:has(input:checked){border-color:var(--accent);background:var(--accent-weak);color:var(--accent-ink)}
  fieldset.monitorConfirmField>label:has(input:disabled){cursor:default;border-color:var(--line);background:var(--inset);color:var(--muted)}
  fieldset.monitorConfirmField input[type="radio"],fieldset.monitorConfirmField input[type="checkbox"]{-webkit-appearance:none;appearance:none;width:16px;height:16px;flex:0 0 16px;margin:0;padding:0;border:1px solid var(--line2);border-radius:4px;background:var(--panel) center/12px 12px no-repeat;box-shadow:none;cursor:inherit;transition:background-color .12s,border-color .12s}
  fieldset.monitorConfirmField input[type="radio"]{border-radius:50%}
  fieldset.monitorConfirmField input[type="checkbox"]:checked{border-color:var(--accent);background-color:var(--accent);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.3 6.8 11 12 5.2'/%3E%3C/svg%3E")}
  fieldset.monitorConfirmField input[type="radio"]:checked{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 0 3.5px,var(--panel) 4px)}
  fieldset.monitorConfirmField input[type="checkbox"]:disabled:checked{border-color:var(--line2);background-color:var(--line2)}
  fieldset.monitorConfirmField input:disabled:not(:checked){background-color:var(--inset)}
  fieldset.monitorConfirmField input[type="radio"]:focus-visible,fieldset.monitorConfirmField input[type="checkbox"]:focus-visible{box-shadow:0 0 0 3px var(--accent-weak)}
  fieldset.monitorConfirmField #monitorGeographicOther{flex:1 0 100%;margin-top:2px}
  .monitorHqField [data-monitor-hq]{width:100%;min-width:0}
  .monitorHqRows{display:grid;gap:12px}
  .monitorHqRow{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,1.6fr) 32px;gap:12px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel)}
  .monitorHqRow label{display:grid;gap:6px;min-width:0;font-size:13px}
  .monitorHqRow select{font-size:14px;min-width:0;height:38px}
  .monitorHqSelected{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px;font-size:13px;color:var(--faint)}
  /* an unchosen country reads as a placeholder, the same grey as the disabled city select beside it */
  .monitorHqRow select:has(option[value=""]:checked){color:var(--faint)}
  .monitorHqRow select option{color:var(--ink)}
  .monitorHqSelected button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:var(--r-pill);background:var(--accent-weak);color:var(--accent-ink);font:inherit;padding:3px 8px;cursor:pointer}
  .monitorHqRemove{margin-top:24px;width:30px;height:32px;border:0;background:transparent;color:var(--muted);font-size:20px;cursor:pointer}
  .monitorHqAdd,.monitorHqRetry,.monitorHqError button{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);color:var(--accent);padding:7px 10px;font:inherit;font-size:13px;cursor:pointer;margin-top:8px}
  .monitorHqAdd:disabled{opacity:.55;cursor:default}
  .monitorHqError{font-size:13px;color:var(--muted);margin-top:8px}
  @media(max-width:640px){.monitorHqRow{grid-template-columns:minmax(0,1fr) 30px}.monitorHqCountry{grid-column:1}.monitorHqCities{grid-column:1;grid-row:2}.monitorHqRemove{grid-column:2;grid-row:1}}
  .monitorConfirmHelp{width:100%;font-size:13px;line-height:20px;color:var(--faint);margin-top:0}
  /* 对象类型 = 试验: matching trials to pick from */
  .monitorTrialResults{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-height:300px;overflow:auto}
  .monitorTrialOption{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);padding:8px 10px;cursor:pointer;font:inherit;color:var(--text)}
  .monitorTrialOption:hover{border-color:var(--accent-strong)}
  .monitorTrialOption.selected{border-color:var(--accent-strong);background:var(--accent-weak)}
  .monitorTrialId{font-size:13px;color:var(--ink)}.monitorTrialId em{font-style:normal;margin-left:8px;font-size:12px;color:var(--accent-ink)}
  .monitorTrialMeta{max-width:100%;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .monitorTrialTitle{font-size:12px;line-height:1.45;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .monitorConfirmCounts{grid-column:1/-1;border:1px solid color-mix(in srgb,var(--accent) 40%,var(--panel));background:color-mix(in srgb,var(--accent-weak) 70%,var(--panel));border-radius:var(--r-sm);padding:12px;font-size:14px;line-height:22px;color:var(--accent-ink)}
  .scopeTooNarrow{border:0;background:none;padding:0;color:var(--orange);margin-bottom:12px}   /* r13 UI review: warning-coloured text, no box */
  .monitorConfirmCounts:empty{display:none}
  /* researchBUG row 11 ("方框删除了吧"): while counts load, or when a hint stands in for them, the line is plain text */
  #monitorConfirmMatchCount:not(.hasCounts){border:0;background:none;padding:2px 0;color:var(--muted)}
  .monitorConfirmPlan{display:grid;gap:7px}
  .monitorTargetMapping{padding:12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);gap:10px}
  .monitorTargetMapping>b{font-size:12px;color:var(--ink)}
  .monitorTargetConditions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
  .monitorTargetCondition{flex:0 1 auto;min-width:0;max-width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--bg)}
  .monitorTargetInput{display:block;margin-bottom:3px;font-size:10.5px;color:var(--muted)}
  .monitorTargetPredicate{display:flex;align-items:baseline;gap:8px;min-width:0;font-size:12px;line-height:1.5}
  .monitorTargetField{flex:none;color:var(--muted);white-space:nowrap}
  .monitorTargetField>span{margin-left:5px}
  .monitorTargetValues{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;min-width:0;color:var(--ink)}
  .monitorTargetValue{overflow-wrap:anywhere}
  .monitorTargetJoin{font-size:10px;font-weight:650;color:var(--accent-ink);background:var(--accent-weak);padding:4px 7px;border-radius:4px;flex:none}
  .monitorTargetAliasOr{font-size:10px;color:var(--muted)}
  .monitorTargetRelations{display:flex;gap:8px 16px;flex-wrap:wrap;border:0;padding:0;margin:0}
  .monitorTargetRelations legend{font-size:11.5px;color:var(--text);margin-bottom:7px;padding:0}
  .monitorTargetRelations>label{display:flex;align-items:center;gap:6px;color:var(--text);font-size:12px;cursor:pointer}
  .monitorTargetRelations input[type="radio"]{width:15px;height:15px;flex:0 0 15px;margin:0;padding:0;accent-color:var(--accent-strong)}
  .monitorTargetRelations label:has(input:checked){color:var(--accent-ink)}
  .monitorTargetHelp{font-size:11.5px;line-height:1.5;color:var(--muted)}
  .monitorConfirmPlanRow{display:grid;grid-template-columns:92px minmax(0,1fr);gap:4px 9px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:8px 10px;min-width:0}
  .monitorConfirmPlanRow b{font-size:11.5px;color:var(--text)}
  .monitorConfirmPlanRow span{font-size:10.5px;color:var(--muted);overflow-wrap:anywhere}
  .monitorConfirmPlanRow code{grid-column:1/-1;display:block;font-size:11px;line-height:1.45;color:var(--accent-ink);white-space:pre-wrap;overflow-wrap:anywhere}
  .monitorConfirmActions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
  .monitorConfirmActions button{height:var(--ctl-md);border-radius:var(--r-sm);padding:0 20px;font-size:14px;font-weight:500;cursor:pointer}
  .monitorConfirmBack{border:1px solid var(--line);background:var(--panel);color:var(--text)}
  .monitorConfirmSubmit{border:1px solid var(--accent-strong);background:var(--accent-strong);color:white}
  /* disabled = blocked (unrecognised words, no matches, a relation to choose): it cannot be clicked. Only a
     refresh in flight (data-refreshing) is "wait"; the creating step replaces the form, so it needs no cursor. */
  .monitorConfirmSubmit:disabled{cursor:not-allowed;opacity:.68}
  .monitorConfirmSubmit:disabled[data-refreshing],.monitorConfirmSubmit:disabled[data-counting]{cursor:progress}
  .monitorFieldGroupEdit[aria-invalid="true"]{border-color:var(--red)}
.monitorKeptWord{display:inline-flex;align-items:center;gap:4px;padding:1px 4px 1px 8px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--panel)}
.monitorKeptWord button{width:18px;height:18px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:14px;line-height:1;cursor:pointer}
.monitorKeptWord button:hover{background:var(--line-soft);color:var(--ink)}
.monitorKeptWord button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.monitorFieldError{font-size:12px;color:var(--red);line-height:1.45}   /* an edited field the database cannot read */
  .monitorKeepText{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
  .monitorKeepText button{height:28px;border:1px solid var(--line2);border-radius:var(--r-pill);background:var(--panel);color:var(--text);padding:0 11px;font-size:12px;cursor:pointer}
  .monitorKeepText button:hover{border-color:var(--accent);color:var(--ink)}
  .monitorKeepText .monitorConfirmHelp{flex-basis:100%}
  .suggestions{display:flex;gap:6px;flex-wrap:wrap}
  .suggestions button{height:26px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-pill);padding:0 10px;font-size:12px;color:var(--muted)}
  .suggestions button:hover{border-color:var(--line2)}
  .monitorWorkspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(248px,.22fr) minmax(420px,1fr) minmax(360px,.78fr);overflow:hidden}
  .monitorListPane{min-height:0;display:flex;flex-direction:column;padding:14px;background:var(--page);overflow:hidden}
  .monitorListHead{height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
  .monitorListHead h3{font-size:13px;margin:0;color:var(--text);font-weight:600}
  .monitorListHead span{font-size:12px;color:var(--muted)}
  .monitorList{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:10px}
  .monitorItem{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:14px 16px;display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:start;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}
  .monitorItem:hover,.monitorItem.active{border-color:#bfc8d4;background:var(--panel);box-shadow:0 6px 18px rgba(22,28,36,.05)}
  .monitorItem.active{box-shadow:inset 3px 0 0 var(--accent),0 6px 18px rgba(22,28,36,.05)}
  .monitorCheck{width:14px;height:14px;border:1px solid #aab3bf;border-radius:3px;margin-top:3px;background:var(--panel)}
  .monitorMeta{min-width:0}
  .monitorTitleLine{display:flex;align-items:center;gap:7px;min-width:0;margin-bottom:4px}
  .monitorTitleLine strong{font-size:14px;line-height:1.35;color:var(--ink);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .monitorMeta p{margin:6px 0 0;color:var(--text);font-size:13px;line-height:1.68;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .monitorDate{display:block;color:var(--faint);font-size:12px;line-height:1.4}
  .monitorActions{display:flex;gap:7px;align-items:center;justify-content:flex-end}
  .monitorActions button{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:6px 10px;font-size:12px;color:var(--text)}
  .monitorActions button:hover{border-color:var(--line2);color:var(--ink)}
  .monitorActions .danger{color:var(--red)}
  .emptyMon{border:1px dashed var(--line2);border-radius:var(--r-lg);padding:26px;text-align:center;color:var(--muted);background:rgba(255,255,255,.55)}
  .monitorDetailPage{min-height:0;display:flex;flex-direction:column;background:var(--page);border-left:1px solid var(--line);overflow:hidden}
  .monitorArtifactBar{height:48px;flex:0 0 48px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 12px;gap:8px;background:var(--bar)}
  .monitorArtifactTabs{display:flex;gap:4px}
  .monitorArtifactTabs button{border:0;background:transparent;border-radius:var(--r-sm);padding:6px 10px;color:var(--muted);font-size:12px}
  .monitorArtifactTabs button.active,.monitorArtifactTabs button:hover{background:var(--panel);color:var(--ink)}
  .monitorArtifactTitle{margin-left:auto;font-size:12px;color:var(--muted);max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .monitorArtifactClose{width:30px;height:30px;border:1px solid transparent;background:transparent;border-radius:var(--r-md);color:var(--muted);font-size:18px;line-height:1;display:grid;place-items:center}
  .monitorArtifactClose:hover{background:var(--panel);border-color:var(--line);color:var(--ink)}
  .monitorArtifactBody{flex:1;min-height:0;padding:16px;overflow:hidden}
  .monitorDoc{height:100%;overflow:auto;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel);padding:24px 28px;color:var(--text);font-size:14px;line-height:1.72}
  .monitorDoc h1{font-size:24px;line-height:1.18;margin:0 0 10px;letter-spacing:-.02em}
  .monitorDoc h2{font-size:16px;margin:26px 0 10px;letter-spacing:-.01em}
  .monitorDoc p{margin:8px 0}
  .monitorDoc .docMeta{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 18px}
  .monitorDoc .docMeta span{border:1px solid var(--line);background:var(--inset);border-radius:var(--r-pill);padding:3px 8px;font-size:12px;color:var(--muted)}
  .monitorDoc table{width:100%;border-collapse:collapse;margin:10px 0 18px;font-size:13px;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
  .monitorDoc th{background:var(--inset);color:var(--muted);text-align:left;font-weight:600}
  .monitorDoc th,.monitorDoc td{padding:9px 10px;border-bottom:1px solid var(--line-soft);vertical-align:top}
  .monitorDoc tr:last-child td{border-bottom:0}
  .monitorDoc code{background:#f1f3f5;border:1px solid #e3e7eb;border-radius:5px;padding:1px 4px}
  .detailActions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
  .detailAction.primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--panel)}
  .detailAction.danger{color:var(--red)}
  .monitorDbLayout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:18px;margin-top:18px}
  .dbSection{border-top:1px solid var(--line);padding-top:14px;margin-bottom:18px}
  .dbSection h3{font-size:14px;margin:0 0 10px}
  .factGrid{display:grid;grid-template-columns:160px minmax(0,1fr);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:var(--panel)}
  .factGrid b,.factGrid span{padding:10px 12px;border-bottom:1px solid var(--line-soft);font-size:13px}
  .factGrid b{color:var(--muted);background:var(--inset);font-weight:600}
  .factGrid span{color:var(--text)}
  .factGrid b:nth-last-child(2),.factGrid span:last-child{border-bottom:0}
  /* Monitor signal inbox (M12) */
  .monitorSide{gap:0}
  .watchFilter{display:flex;flex-direction:column;gap:3px;overflow:auto;flex:0 0 auto;max-height:48%}
  .watchRow{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--r-md);cursor:pointer;border:1px solid transparent}
  .watchRow:hover{background:#eef1f4}
  .watchRow.active{background:var(--panel);border-color:#cfd8e3;box-shadow:inset 2px 0 0 var(--accent)}
  .watchRow .wType{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--faint);flex:0 0 auto}
  .watchRow .wLabel{font-size:13px;font-weight:600;color:#26303a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .watchRow.muted .wLabel{color:var(--faint)}
  .watchRow .wCount{margin-left:auto;font-size:11px;color:var(--muted);background:#eef1f4;border-radius:var(--r-pill);padding:1px 7px;flex:0 0 auto}
  .watchRow.active .wCount{background:var(--accent-weak);color:var(--accent-ink)}
  .watchRow .wDel{border:0;background:transparent;color:var(--muted);font-size:15px;line-height:1;padding:2px 5px;border-radius:6px;flex:0 0 auto}
  .watchRow .wDel:hover{background:var(--panel-warm);color:var(--red)}
  .thesisPanel{margin-top:12px;border-top:1px solid var(--line);padding-top:12px;flex:1;min-height:0;overflow:auto}
  .thesisPanel h4{margin:0 0 7px;font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em}
  .thesisPanel textarea{width:100%;box-sizing:border-box;min-height:96px;border:1px solid var(--line);border-radius:var(--r-md);padding:9px 10px;font:13px/1.55 inherit;color:#26303a;resize:vertical;background:var(--panel)}
  .thesisPanel textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak)}
  .thesisPanel .thesisSave{margin-top:8px;height:30px;border:1px solid var(--accent-strong);background:var(--accent-strong);color:var(--panel);border-radius:var(--r-sm);padding:0 13px;font-size:12px;font-weight:600}
  .thesisPanel .thesisSave:hover{filter:brightness(.96)}
  .thesisHint{color:var(--muted);font-size:12px;line-height:1.55}

  .signalInbox{min-width:0;display:flex;flex-direction:column;background:var(--page);border-left:1px solid var(--line);overflow:hidden}
  .inboxBar{height:50px;flex:0 0 50px;display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid var(--line);background:var(--bar)}
  .inboxBar h3{margin:0;font-size:14px;color:#26303a;font-weight:600}
  .inboxTitle{display:flex;align-items:baseline;gap:8px;min-width:0}
  .inboxTitle span{font-size:12px;color:var(--muted);white-space:nowrap}
  .inboxControls{margin-left:auto;display:flex;align-items:center;gap:10px}
  .sensWrap{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}
  .sensWrap select{height:30px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:0 8px;color:var(--text);outline:0}
  .inboxRun{height:30px;border:1px solid var(--accent-strong);background:var(--accent-strong);color:var(--panel);border-radius:var(--r-sm);padding:0 12px;font-size:12px;font-weight:600}
  .inboxRun:hover{filter:brightness(.96)}
  .inboxRun:disabled{opacity:.6;cursor:default}
  .inboxBody{flex:1;min-height:0;overflow:auto;padding:14px 16px}
  .reportTimeline{display:grid;gap:8px;margin-bottom:18px}
  .reportCard{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);padding:12px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
  .reportCard:hover,.reportCard.active{border-color:#c4cdd8;box-shadow:0 5px 16px rgba(22,28,36,.05)}
  .reportCard.active{box-shadow:inset 3px 0 0 var(--accent),0 5px 16px rgba(22,28,36,.05)}
  .reportTop{display:flex;align-items:center;gap:8px;min-width:0}
  .reportKind{font-family:var(--mono);font-size:10px;text-transform:uppercase;letter-spacing:.06em;border:1px solid var(--line);background:var(--inset);border-radius:var(--r-pill);padding:2px 7px;color:var(--muted);flex:0 0 auto}
  .reportKind.baseline{background:#e6f6f2;color:var(--accent-ink);border-color:#c2e7dd}
  .reportKind.daily{background:#edf8f3;color:#16875a;border-color:#cdeadc}
  .reportKind.manual{background:#fff6e8;color:#bd741d;border-color:#f0d7ad}
  .reportTitle{font-size:13.5px;font-weight:600;color:#20262d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .reportStatus{margin-left:auto;font-size:11px;border-radius:var(--r-pill);padding:2px 7px;color:var(--muted);background:#eef1f4;flex:0 0 auto}
  .reportStatus.done{background:#edf8f3;color:#16875a}
  .reportStatus.running,.reportStatus.queued{background:#e6f6f2;color:var(--accent-ink)}
  .reportStatus.failed{background:#fff1f1;color:#bd4242}
  .reportMeta{margin:7px 0 0;font-size:12px;color:var(--muted);display:flex;gap:7px;flex-wrap:wrap}
  .reportSummary{margin:7px 0 0;font-size:12.5px;color:var(--text);line-height:1.45}
  .signalBand{margin-bottom:18px}
  .bandHead{font-family:var(--mono);display:flex;align-items:center;gap:8px;margin:0 0 9px;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
  .bandHead .bandDot{width:7px;height:7px;border-radius:50%;flex:0 0 auto}
  .bandHead.now .bandDot{background:var(--red)}
  .bandHead.this_week .bandDot{background:#e0922f}
  .bandHead.upcoming .bandDot{background:#7c8794}
  .bandHead .bandN{color:var(--muted);font-weight:500}
  .signalList{display:grid;gap:8px}
  .signalItem{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);padding:11px 13px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
  .signalItem:hover{border-color:#c4cdd8;box-shadow:0 5px 16px rgba(22,28,36,.05)}
  .signalItem.unread{box-shadow:inset 3px 0 0 var(--accent)}
  .signalItem.snoozed{opacity:.55}
  .sigGlance{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:start}
  .sigUrg{font-size:11px;font-weight:600;border-radius:var(--r-sm);padding:4px 8px;white-space:nowrap;text-align:center;line-height:1.25;align-self:start}
  .sigUrg.now{background:#fdecec;color:#c0392b}
  .sigUrg.this_week{background:#fdf2e3;color:#b9722a}
  .sigUrg.upcoming{background:#eef1f4;color:var(--muted)}
  .sigMid{min-width:0}
  .sigHead{font-size:13.5px;font-weight:600;color:#20262d;line-height:1.4;margin:0}
  .sigSub{margin:3px 0 0;font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px;align-items:center}
  .sigSub .dot{color:#c4ccd4}
  .sigBadge{border:1px solid var(--line);background:var(--inset);border-radius:var(--r-pill);padding:1px 7px;font-size:11px;color:var(--muted)}
  .sigRight{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:0 0 auto}
  .sigImpact{font-size:11px;font-weight:600;border-radius:6px;padding:2px 7px;white-space:nowrap}
  .sigImpact.high{background:#fdecec;color:#c0392b}
  .sigImpact.med{background:#fdf2e3;color:#b9722a}
  .sigImpact.low{background:#eef1f4;color:var(--muted)}
  .sigAtt{font-size:11px;color:var(--faint)}
  .sigBrief{margin-top:11px;padding-top:11px;border-top:1px dashed #e3e7eb;display:none}
  .signalItem.open .sigBrief{display:block}
  .sigNums{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
  .sigNums .num{border:1px solid var(--line);background:var(--inset);border-radius:var(--r-sm);padding:4px 8px;font-size:11px;color:var(--muted)}
  .sigNums .num b{color:#26303a;font-weight:600}
  .sigTriage{display:flex;flex-wrap:wrap;gap:7px}
  .sigTriage button{height:30px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:0 12px;font-size:12px;color:var(--text)}
  .sigTriage button:hover{border-color:var(--line2);color:var(--ink)}
  .sigTriage .act{border-color:var(--accent-strong);background:var(--accent-strong);color:var(--panel);font-weight:600}
  .sigTriage .act:hover{filter:brightness(.96);color:var(--panel)}
  .sigTriage .dismiss:hover{border-color:#e0a3a3;color:var(--red)}
  .inboxEmpty{color:var(--muted);font-size:13px;text-align:center;padding:42px 16px;line-height:1.6}
  .monitorArtifactPanel{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--page);border-left:1px solid var(--line);overflow:hidden}
  .monitorArtifactPanel .monitorArtifactBar{height:50px;flex:0 0 50px}
  .monitorReportBody{flex:1;min-height:0;padding:14px;overflow:hidden}
  .monitorReportBody iframe{width:100%;height:100%;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel)}
  .monitorReportEmpty{height:100%;display:grid;place-items:center;text-align:center;color:var(--muted);border:1px dashed var(--line2);border-radius:var(--r-lg);background:var(--panel);padding:22px;line-height:1.6}

  .calendarPage{display:none;flex:1;min-height:0;border-top:1px solid var(--line);background:var(--page);overflow:hidden}
  .calWrap{width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr)}
  .calendarPage.detail-open .calWrap{grid-template-columns:minmax(0,1fr) min(var(--cal-detail-w,460px),calc(100% - 360px))}
  .calMain{min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--line)}
  .calTop{min-height:76px;display:flex;align-items:center;gap:14px;padding:10px 14px 6px;background:var(--bar)}
  .calMonthTitle{font-family:var(--sans);font-size:20px;line-height:1.05;margin:0;letter-spacing:-.01em;font-weight:600}
  .calTopCtl{margin-left:auto;display:flex;align-items:center;gap:10px}
  .calViewToggle{display:inline-flex;border:1px solid var(--line);border-radius:var(--r-pill);overflow:hidden;background:var(--panel)}
  .calViewToggle button{border:0;background:transparent;padding:5px 13px;font-size:13px;color:var(--muted);cursor:pointer}
  .calViewToggle button.on{background:var(--accent-weak);color:var(--accent-ink);font-weight:600}
  .calNav{display:inline-flex;align-items:center;gap:4px}
  .calNav[hidden]{display:none}   /* a CSS display value defeats the bare [hidden] UA rule — restore it */
  .calNav button{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);height:28px;min-width:28px;padding:0 8px;font-size:14px;color:var(--text);cursor:pointer}
  .calNav button:hover{border-color:var(--accent-strong);color:var(--accent-ink)}
  .calMonthGrid{padding:12px 14px}
  .calWeekHead{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:6px}
  .calWeekHead span{font-size:11px;font-weight:600;color:var(--muted);text-align:center;padding:2px 0}
  .calWeeks{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
  .calCell{min-height:96px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);padding:5px 6px;display:flex;flex-direction:column;gap:3px;overflow:hidden}
  .calCell.out{background:transparent;border-color:transparent}
  .calCellDay{font-size:11px;color:var(--muted);font-weight:600}
  .calCell.today .calCellDay{color:var(--accent-ink)}
  .calCell.today{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
  .calEvt{font-size:11px;line-height:1.25;padding:2px 5px;border-radius:var(--r-sm);background:var(--accent-weak);color:var(--accent-ink);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .calEvt:hover{background:var(--accent);color:var(--panel)}
  .calMore{font-size:10px;color:var(--muted);cursor:pointer;padding-left:3px}
  .calFilters{min-height:48px;display:flex;align-items:center;gap:8px;padding:4px 14px 12px;background:var(--bar);flex-wrap:wrap}
  .calFilters input{flex:1;min-width:220px;height:36px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:0 12px;color:var(--text);outline:0}
  .calFilters input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak)}
  .calScroller{flex:1;min-height:0;overflow:auto;background:var(--panel);border-top:1px solid var(--line)}
  .calBucketHead{position:sticky;top:0;background:rgba(255,255,255,.95);backdrop-filter:blur(4px);display:flex;align-items:baseline;gap:9px;padding:11px 18px 7px;border-bottom:1px solid var(--line);z-index:2}
  .calBucketHead b{font-family:var(--sans);font-size:15px;font-weight:600}
  .calBucketHead span{font-size:12px;color:var(--muted)}
  .calRow{display:grid;grid-template-columns:74px minmax(0,1fr) auto 40px;gap:14px;align-items:center;padding:11px 18px;border-bottom:1px solid var(--line-soft);cursor:pointer}
  .calRowPos{justify-self:end;display:flex;align-items:center;gap:7px}
  .calGapDot{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
  .calGapDot.gap-up{background:#2c8a63}
  .calGapDot.gap-down{background:#c1554a}
  .calRow:hover{background:#fafbf9}
  .calRow.active{background:var(--accent-weak)}
  .calRowDays{text-align:right}
  .calRowDays b{display:block;font-size:14px;font-weight:600;letter-spacing:-.01em}
  .calRowDays.soon b{color:var(--accent-ink)}
  .calRowDays span{display:block;font-size:11px;color:var(--faint);margin-top:1px}
  .calRowMid{min-width:0}
  .calRowMid strong{display:block;font-size:14px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .calRowMid span{display:block;margin-top:3px;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .calRowMid .calConflict{display:inline-block;margin-top:4px;padding:1px 6px;border:1px solid var(--orange);border-radius:var(--r-pill);background:var(--orange2);color:var(--orange);font-size:10px;line-height:1.35;vertical-align:middle}
  .calTrack{justify-self:end;width:28px;height:28px;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:var(--faint);font-size:16px;line-height:1;display:grid;place-items:center;transition:all .14s;opacity:.65}
  .calRow:hover .calTrack{opacity:1}
  .calTrack:hover{border-color:var(--accent-strong);color:var(--accent-ink);background:var(--accent-weak)}
  .calTrack.done{border-color:var(--accent-strong);background:var(--accent-strong);color:var(--panel);opacity:1;font-size:14px}
  .calMore{padding:9px 18px;font-size:12px;color:var(--muted)}
  .calSrc{flex:0 0 auto;padding:8px 18px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);background:var(--bar)}
  .calCountdown{display:flex;align-items:baseline;gap:8px;border:1px solid var(--line);background:var(--bar);border-radius:var(--r-md);padding:10px 12px;margin:0 0 12px}
  .calCountdown b{font-size:20px;font-weight:600}
  .calCountdown small{font-size:12px;color:var(--muted)}
  .calCountdown .cd-date{margin-left:auto;font-size:12px;color:var(--text)}
  .calField a{color:var(--accent-ink);text-decoration:none}
  .calField a:hover{text-decoration:underline}
  .calActions button,.calActions .exportBtn{height:36px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:0 13px;color:var(--text);display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font:inherit;cursor:pointer}
  .calActions button:hover,.calActions .exportBtn:hover{border-color:var(--line2)}
  .calActions .primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--panel);font-weight:600}
  .calActions .secondary{color:var(--accent-ink);border-color:var(--accent-strong)}
  .calDetail{min-width:0;min-height:0;background:var(--panel);display:none;flex-direction:column;position:relative}
  .calendarPage.detail-open .calDetail{display:flex}
  .calResizer{position:absolute;left:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:6}
  .calResizer::after{content:"";position:absolute;left:3px;top:0;bottom:0;width:1px;background:transparent;transition:background .12s}
  .calResizer:hover::after,.calResizer.dragging::after{background:var(--accent-strong)}
  .calDetailClose{position:absolute;top:10px;right:12px;z-index:7;width:30px;height:30px;border:1px solid transparent;background:var(--panel);border-radius:var(--r-md);color:var(--muted);font-size:18px;display:grid;place-items:center}
  .calDetailClose:hover{border-color:var(--line);background:#f7f8fa;color:var(--ink)}
  .calDetailBody{flex:1;min-height:0;overflow:auto;padding:14px}
  .calEmpty{height:100%;display:grid;place-items:center;text-align:center;color:var(--muted);border:1px dashed var(--line2);border-radius:var(--r-lg);background:var(--bar);padding:22px}
  /* loading skeleton: shimmer placeholder rows (top-tier "it is fetching" cue vs bare text) */
  .skel{position:relative;overflow:hidden;background:var(--line-soft);border-radius:var(--r-sm)}
  .skel::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent);animation:skelShim 1.3s ease-in-out infinite}
  @keyframes skelShim{100%{transform:translateX(100%)}}
  .calSkelRow{display:flex;align-items:center;gap:14px;padding:14px 6px;border-bottom:1px solid var(--line-soft)}
  .calSkelRow .skDate{width:52px;height:12px;flex:0 0 auto}
  .calSkelRow .skBody{flex:1;display:flex;flex-direction:column;gap:7px;min-width:0}
  .calSkelRow .skL1{width:46%;height:12px} .calSkelRow .skL2{width:64%;height:10px}
  .paperSkel{display:grid;gap:10px;padding:4px 0}   /* 每日论文 loading: three paper-card placeholders */
  .paperSkelRow{display:grid;gap:8px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--panel)}
  .paperSkelRow .skL1{width:58%;height:14px} .paperSkelRow .skL2{width:92%;height:10px} .paperSkelRow .skL3{width:74%;height:10px}
  .trendEmpty .tchip{margin-left:8px}
  .calSkelRow .skPill{width:52px;height:20px;border-radius:var(--r-pill);flex:0 0 auto}
  .calKicker{font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600;margin-bottom:8px}
  .calTitle{font-size:19px;line-height:1.2;margin:0 0 10px;letter-spacing:-.02em;padding-right:34px}
  .calMeta{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
  .calMeta span{border:1px solid var(--line);border-radius:var(--r-pill);padding:3px 8px;font-size:12px;color:var(--muted);background:var(--inset)}
  .calFields{display:grid;gap:9px;margin:12px 0}
  .calField{border-top:1px solid var(--line-soft);padding-top:9px}
  .calField b{display:block;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}
  .calField div{font-size:13px;color:var(--text)}
  /* PoS + market-expectation indicators */
  .posPill{display:inline-block;padding:1px 8px;border-radius:var(--r-sm);font-size:12px;font-weight:600;white-space:nowrap}
  .posPill.pos-high{background:#e3f3ea;color:#1f6b4c}
  .posPill.pos-mid{background:#f6ecd8;color:#8a5a16}
  .posPill.pos-low{background:#f7e6e3;color:#97352c}
  .posPill.pos-none{background:var(--panel2);color:var(--muted)}
  .sigStrip{border:1px solid var(--line);border-radius:var(--r-md);padding:12px;margin:0 0 12px}
  .sigCols{display:flex;gap:13px}
  .sigCol{flex:1;min-width:0}
  .sigDiv{width:1px;background:var(--line-soft)}
  .sigLbl{font-size:11px;color:var(--muted);letter-spacing:.04em;margin-bottom:5px}
  .sigLblBtn{display:inline-block;margin-bottom:6px;border:1px solid var(--accent-strong);background:var(--panel);color:var(--accent-ink);border-radius:var(--r-sm);padding:2px 9px;font-size:11px;font-weight:600;cursor:pointer;line-height:1.5}
  .sigLblBtn:hover{background:var(--accent-weak)}
  .sigLblBtn:disabled{opacity:.55;cursor:default}
  .sigLblBtn[data-running]{background:var(--accent-weak);border-style:dashed}
  .sigVal{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
  .sigVal b{font-size:16px;font-weight:600}
  .sigSub{font-size:12px;color:var(--muted);line-height:1.45;margin-top:3px}
  .sigSub a{color:var(--accent-ink);text-decoration:none}
  .sigSub a:hover{text-decoration:underline}
  .sigAt{font-size:11px;color:var(--faint);margin-top:3px}
  /* attention reuses .posPill but in a NEUTRAL ramp (intensity, not good/bad): darker = more attention */
  .posPill.attn-high{background:#d9ddd8;color:var(--text)}
  .posPill.attn-mid{background:var(--panel-warm);color:var(--muted)}
  .posPill.attn-low{background:var(--panel2);color:var(--muted)}
  .posPill.attn-none{background:var(--page);color:var(--faint)}
  .leanChip{font-size:11px;padding:1px 7px;border-radius:6px;background:var(--panel2);color:var(--muted)}
  /* PoS / market read as quiet labels now (the actions moved to the ask chips below).
     NOTE: unique name — .sigLbl already exists (line ~517); don't collide with it. */
  .sigColLbl{font-family:var(--mono);display:block;margin-bottom:5px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
  /* unified detail: thread action chips (Noah bubble) + the live/interactive artifact body */
  .threadChips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
  .tchip{position:relative;height:32px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:0 12px;font-size:13px;color:var(--text);cursor:pointer;transition:border-color .15s,color .15s}
  .tchip:hover:not(:disabled){border-color:var(--line2);color:var(--ink)}
  .tchip:disabled{cursor:default}
  .actBusy{position:relative;opacity:.8;padding-right:28px;pointer-events:none}   /* running: keep the label + a right-aligned spinner (never looks frozen) */
  /* border-box: the 2px ring sat outside a 12px box, so the spinner hung 2px below the label's centre */
  .actBusy::after{content:"";position:absolute;top:50%;right:9px;box-sizing:border-box;width:14px;height:14px;margin-top:-7px;border:2px solid var(--line2);border-top-color:var(--accent-strong);border-radius:50%;animation:tchipSpin .7s linear infinite}
  @keyframes tchipSpin{to{transform:rotate(360deg)}}
  .liveDetail{height:100%;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-y}
  /* ask zone: a persistent NL conversation (catalyst = implicit context) + the two action chips */
  .catAsk{border-top:1px solid var(--line-soft);margin-top:12px;padding-top:12px}
  .catChat{display:flex;flex-direction:column;gap:10px}
  .catChat:not(:empty){margin-bottom:11px}
  .catMsg.user{align-self:flex-end;max-width:88%;font-size:12px;color:var(--text);background:var(--inset);border:1px solid var(--line);border-radius:var(--r-lg);padding:5px 11px}
  .catMsg.noah{font-size:13px;color:var(--text);line-height:1.6}
  .catMsg.noah p{margin:0 0 8px}.catMsg.noah p:last-child{margin-bottom:0}
  .catMsg.noah b,.catMsg.noah strong{color:var(--ink);font-weight:600}
  .catThinking{color:var(--muted)}
  .catCur{display:inline-block;width:7px;height:14px;background:var(--accent-strong);vertical-align:-2px;margin-left:1px;border-radius:1px;animation:catbl 1s steps(1) infinite}
  @keyframes catbl{50%{opacity:0}}
  .catChips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}
  .catChips .sigLblBtn{margin-bottom:0;padding:5px 11px;font-size:12px}
  .catComposer{display:flex;align-items:flex-end;gap:8px;background:var(--panel);border:1px solid var(--line2);border-radius:18px;box-shadow:var(--shadow);padding:7px 7px 7px 14px;transition:border-color .15s}
  .catComposer:focus-within{border-color:var(--accent)}
  .catComposer textarea{flex:1;min-width:0;border:0;outline:0;resize:none;font:inherit;font-size:13px;line-height:1.5;max-height:120px;color:var(--ink);background:transparent;overflow-wrap:anywhere}
  .catComposer textarea::placeholder{color:var(--faint)}
  .catSend{flex:0 0 auto;width:32px;height:32px;border:0;border-radius:50%;background:var(--accent-strong);color:var(--panel);font-size:15px;display:flex;align-items:center;justify-content:center;cursor:pointer}
  .catSend:hover{background:var(--accent-strong-hover)}
  .catSend:disabled{background:var(--panel-warm);color:var(--faint);cursor:default}
  /* run-history timeline (per catalyst, newest first) */
  .histWrap{margin-top:11px;border-top:1px solid var(--line-soft);padding-top:9px}
  .histWrap>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;color:var(--muted)}
  .histWrap>summary::-webkit-details-marker{display:none}
  .histWrap>summary:focus-visible{outline:2px solid var(--accent-strong);outline-offset:2px;border-radius:6px}
  .histWrap .histCaret{font-size:13px;color:var(--faint);transition:transform .15s}
  .histWrap[open] .histCaret{transform:rotate(180deg)}
  .histRows{margin-top:8px;display:flex;flex-direction:column;gap:7px}
  .histRow{display:grid;grid-template-columns:78px 1fr 1px 1fr;gap:9px;align-items:center}
  .histDate{display:flex;flex-direction:column;gap:1px;font-size:11px;color:var(--faint);line-height:1.3}
  .histDate em{font-style:normal;color:var(--accent-ink)}
  .histDate .histClock{font-size:10px;color:var(--faint)}
  .histDate .histKind{font-size:10px;color:var(--faint);letter-spacing:.02em}
  .histDate.histLink{cursor:pointer}
  .histDate.histLink:hover .histDay{text-decoration:underline;color:var(--accent-ink)}
  .histGo{color:var(--accent-ink);font-weight:600}
  .histCell{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;color:var(--muted)}
  .histCell.histDim{opacity:.4}
  .histCell .leanChip{font-size:10px}
  .histDiv{background:var(--line-soft);height:14px}
  .hDelta{font-size:11px;font-weight:600}
  .hDelta.up{color:#1f6b4c}
  .hDelta.dn{color:#97352c}
  /* gap-read: demoted to a thin one-line note (actionable up/down keep colour) */
  .gapRead{display:flex;align-items:center;gap:7px;margin-top:10px;font-size:12px;color:var(--muted)}
  .gapRead .gapDot{width:8px;height:8px;border-radius:50%;background:var(--line2);flex:0 0 auto}
  .gapRead.gap-up{color:#1f5e44}
  .gapRead.gap-up .gapDot{background:#2c8a63}
  .gapRead.gap-down{color:#8f352c}
  .gapRead.gap-down .gapDot{background:#c1554a}
  .gapRead.gap-pending .gapDot{background:transparent;border:1px solid var(--line2)}
  .calActions{display:flex;gap:8px;margin-top:14px}

  .knowledgePage{display:none;flex:1;min-height:0;border-top:1px solid var(--line);background:var(--page);overflow:hidden}
  .kbWrap{width:100%;height:100%;min-width:0;display:flex;flex-direction:column}
  .kbTop{height:54px;flex:0 0 54px;display:flex;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid var(--line);background:var(--bar)}
  .kbTitle{font-size:14px;line-height:1;margin:0;color:var(--text);font-weight:600}
  .kbBack{margin-left:auto}
  .kbUpload,.kbAction,.kbGhost{height:32px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:0 11px;color:var(--text)}
  a.kbGhost{display:inline-flex;align-items:center;text-decoration:none}
  .kbUpload,.kbAction.primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--panel);font-weight:600}
  .kbUpload:hover,.kbAction.primary:hover{filter:brightness(.96)}
  .kbAction:hover,.kbGhost:hover{border-color:var(--line2);color:var(--ink)}
  /* --kb-left is set by the drag handle (and restored from localStorage); the fallback keeps the
     original proportional split for a first visit. */
  .kbShell{flex:1;min-height:0;display:grid;
           grid-template-columns:var(--kb-left,minmax(280px,.36fr)) var(--runtime-gutter) minmax(0,1fr);
           overflow:hidden}
  .knowledgePage.kbHome .kbShell{grid-template-columns:1fr}
  .knowledgePage.kbHome .kbGutter{display:none}   /* nothing on the right to size against */
  .kbShell.resizing iframe{pointer-events:none}   /* the drag must not be eaten by an artifact iframe */
  .knowledgePage.kbHome .kbListPane{border-right:0}
  .knowledgePage.kbHome .kbDetail{display:none}
  .kbListPane{min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--line);background:var(--page)}
  .kbListHead{height:42px;flex:0 0 42px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;color:var(--muted);font-size:12px}
  .kbSearch{padding:0 12px 10px;flex:0 0 auto}
  .kbSearch input{width:100%;height:34px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:0 10px;color:var(--ink);outline:0}
  .kbSearch input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak)}
  .kbList{flex:1;min-height:0;overflow:auto;padding:0 12px 14px;display:flex;flex-direction:column;gap:8px}
  .kbItem{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:11px;display:grid;gap:7px;transition:border-color .15s,box-shadow .15s}
  .kbItem:hover,.kbItem.active{border-color:#bdc7d3;box-shadow:0 6px 18px rgba(22,28,36,.05)}
  .kbItem.active{box-shadow:inset 3px 0 0 var(--accent),0 6px 18px rgba(22,28,36,.05)}
  .kbProjects{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px;border-bottom:1px solid var(--line)}
  .kbPrj{height:var(--ctl-sm);border:1px solid var(--line);background:var(--panel);border-radius:var(--r-pill);
         padding:0 11px;font-size:12px;color:var(--muted);cursor:pointer;white-space:nowrap}
  .kbPrj:hover{border-color:var(--line2);color:var(--ink)}
  .kbPrj.on{background:var(--accent-weak);border-color:var(--accent);color:var(--accent-ink);font-weight:600}
  /* the project you are IN is a heading, not another choice */
  .kbTab{height:var(--ctl-sm);border:0;background:transparent;border-bottom:2px solid transparent;
         padding:0 4px;margin-right:14px;font-size:13.5px;color:var(--muted);cursor:pointer}
  .kbTab:hover{color:var(--ink)}
  .kbTab.on{color:var(--ink);font-weight:600;border-bottom-color:var(--accent)}
  .kbPrjBar{display:flex;gap:6px;padding:8px 12px;border-bottom:1px solid var(--line);align-items:center}
  .kbPick{margin-right:8px}
  .kbItemTop{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:8px;min-width:0}
  .kbItemTop .badge{white-space:nowrap;min-width:max-content;line-height:1.2;padding:3px 8px}
  .kbItemName{border:0;background:transparent;padding:0;text-align:left;font:inherit;font-size:13px;font-weight:600;color:var(--ink);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}
  .kbItemMeta,.kbSummary,.kbVersions{font-size:12px;color:var(--muted);line-height:1.45}
  .kbSummary{color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .kbItemActions{display:flex;gap:6px;flex-wrap:wrap}
  .kbItemDetails{display:grid;gap:6px;min-width:0}
  .knowledgePage.kbHome .kbList{padding:10px 18px 22px;gap:12px}
  .knowledgePage.kbHome .kbItem{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:17px 20px}
  .knowledgePage.kbHome .kbItemTop{grid-column:1}
  .knowledgePage.kbHome .kbItemTop{display:flex;align-items:center;gap:10px}
  .knowledgePage.kbHome .kbItemTop .badge{font-size:13px;line-height:1.35;padding:4px 10px}
  .knowledgePage.kbHome .kbItemName{font-size:16px;line-height:1.45;-webkit-line-clamp:2}
  .knowledgePage.kbHome .kbItemDetails{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
  .knowledgePage.kbHome .kbItemMeta{font-size:13px;line-height:1.5}
  .knowledgePage.kbHome .kbTypeTag{font-size:13px;line-height:1.35;padding:4px 10px}
  .knowledgePage.kbHome .kbSummary{grid-column:1;font-size:14px;line-height:1.75;color:#26313d;-webkit-line-clamp:4;max-width:1280px}
  .knowledgePage.kbHome .kbItemActions{grid-column:1;justify-content:flex-start;gap:8px;margin-top:2px}
  .knowledgePage.kbHome .kbMini{height:34px;font-size:13px;padding:0 12px}
  .kbMini{height:28px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:0 9px;color:var(--text);font-size:12px}
  .kbMini.primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--panel)}
  .kbMini:disabled{opacity:.55;cursor:default}
  .kbTags{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
  .kbTypeTag{border:1px solid #d8e0ec;background:#f4fbf9;color:#2d4778;border-radius:var(--r-pill);padding:2px 7px;font-size:11px;line-height:1.35;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kbTypeTag.low{border-color:#edd09d;background:var(--orange2);color:#7a4a10}
  .kbTypeTag.user{border-color:#c3e7d5;background:var(--green2);color:#116b49}
  .kbDetail{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--page)}
  .kbDetailHead{height:54px;flex:0 0 54px;display:flex;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid var(--line);background:var(--bar)}
  .kbDetailName{min-width:0;flex:1}
  .kbDetailName strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kbDetailName span{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kbDetailActions{display:flex;gap:8px;align-items:center}
  .kbDetailBody{flex:1;min-height:0;display:grid;grid-template-columns:minmax(320px,.42fr) minmax(420px,1fr);gap:12px;padding:12px;overflow:hidden}
  .kbDetailBody.noArtifact{grid-template-columns:minmax(0,1fr)}
  .kbPane{min-width:0;min-height:0;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);display:flex;flex-direction:column;overflow:hidden}
  .kbPaneHead{height:38px;flex:0 0 38px;display:flex;align-items:center;gap:8px;padding:0 10px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
  .kbPaneHead strong{color:var(--text)}.kbPaneHead a{margin-left:auto;color:var(--accent-ink);text-decoration:none}
  .kbPaneHead #kbArtifactTitle{margin-left:auto;max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kbArtifactClose{width:28px;height:28px;border:1px solid transparent;background:transparent;border-radius:var(--r-sm);color:var(--muted);font-size:18px;line-height:1;display:grid;place-items:center}
  .kbArtifactClose:hover{border-color:var(--line);background:#f7f8fa;color:var(--ink)}
  .kbFrame,.kbAnalysisFrame{flex:1;width:100%;height:100%;border:0;background:var(--panel);min-height:0}
  .kbAnalysisEmpty{height:100%;display:grid;place-items:center;text-align:center;color:var(--muted);padding:22px}
  .kbChatPane{background:var(--bar)}
  .kbDetailBody.noArtifact .kbChatPane{background:var(--panel)}
  .kbChatMessages{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px}
  .kbChatMsg{display:grid;gap:4px;max-width:96%}
  .kbChatMsg.user{align-self:flex-end}
  .kbChatWho{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600}
  .kbChatBubble{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:9px 10px;font-size:13px;line-height:1.55;color:var(--text);overflow-wrap:anywhere}
  .kbChatMsg.user .kbChatBubble{background:var(--accent-weak);border-color:var(--accent-weak);color:var(--accent-ink)}
  .kbChatMsg.system .kbChatBubble{background:var(--panel2);color:var(--muted)}
  .kbChatComposer{border-top:1px solid var(--line);padding:10px;background:var(--panel);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
  .kbChatComposer textarea{min-height:46px;max-height:140px;resize:vertical;border:1px solid var(--line);border-radius:var(--r-md);padding:9px 10px;line-height:1.35;color:var(--ink);outline:0;overflow-wrap:anywhere}
  .kbChatComposer textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak)}
  .kbChatComposer button{height:36px;border:1px solid var(--accent-strong);background:var(--accent-strong);color:var(--panel);border-radius:var(--r-md);padding:0 13px;font-weight:600}
  .kbChatComposer button:disabled{opacity:.55;cursor:default}
  .kbArtifactBody{flex:1;min-height:0;overflow:hidden}
  .kbArtifactDoc{height:100%;overflow:auto;padding:18px 20px;color:var(--text);font-size:13px;line-height:1.7;text-align:left}
  .kbArtifactDoc h1{font-size:22px;line-height:1.2;margin:0 0 10px}
  .kbArtifactDoc h2{font-size:15px;margin:20px 0 8px}
  .kbArtifactDoc p{margin:8px 0}
  .kbAnalysisStart{width:min(480px,100%);text-align:left;color:var(--text);display:grid;gap:12px}
  .kbAnalysisStart h3{font-size:15px;line-height:1.25;margin:0;color:var(--ink)}
  .kbAnalysisStart p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
  .kbProgress{width:min(520px,100%);text-align:left;display:grid;gap:8px;color:var(--text)}
  .kbProgressTitle{font-size:13px;font-weight:600;color:var(--ink)}
  .kbProgressItem{border-left:2px solid #d8dee6;padding:2px 0 2px 9px;font-size:12px;line-height:1.45;color:var(--muted)}
  .kbProgressItem.latest{border-left-color:var(--accent);color:var(--text);font-weight:600}
  .kbRecActions{display:flex;gap:8px;flex-wrap:wrap}
  .kbRecActions button,.kbChoice button{height:32px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:0 11px;color:var(--text)}
  .kbRecActions .primary,.kbChoice .primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--panel);font-weight:600}
  .kbChoiceGrid{display:grid;gap:8px}
  .kbChoice{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
  .kbChoice strong{display:block;font-size:13px;color:var(--ink)}.kbChoice small{display:block;margin-top:2px;color:var(--muted);font-size:12px;line-height:1.35}
  .kbInfo{flex:0 0 auto;border-top:1px solid var(--line);background:var(--panel);padding:10px 14px;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.45fr);gap:16px}
  .kbInfo h3{font-size:12px;margin:0 0 5px;color:var(--text)}.kbInfo p,.kbInfoText{font-size:12px;color:var(--muted);margin:0;white-space:pre-line}
  .kbVersions a{color:var(--accent-ink);text-decoration:none}.kbVersions a:hover{text-decoration:underline}
  .kbEmpty{height:100%;display:grid;place-items:center;text-align:center;color:var(--muted);padding:26px}

  .settingsPage{display:none;position:fixed;inset:0;z-index:85;align-items:center;justify-content:center;padding:24px;background:rgba(25,25,25,.3)}
  .settingsWrap{width:min(920px,100%);height:min(660px,100%);display:flex;background:var(--panel);border-radius:var(--r-lg);box-shadow:var(--shadow);overflow:hidden}
  .settingsNav{flex:0 0 200px;display:flex;flex-direction:column;gap:4px;padding:24px 12px 20px;background:var(--bar);border-right:1px solid var(--line)}
  .settingsNavHd{padding:0 12px 8px;font-size:14px;color:var(--muted)}
  .settingsNavItem,.settingsLogout{height:var(--ctl-lg);display:flex;align-items:center;gap:10px;padding:0 12px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink);font-size:15px;text-align:left}
  .settingsNavItem b,.settingsNavItem b svg,.settingsLogout svg{width:20px;height:20px;flex:0 0 20px;display:block}
  .settingsNavItem.active,.settingsNavItem:hover{background:var(--panel2)}
  .settingsLogout{margin-top:auto;color:var(--danger)}.settingsLogout:hover{background:var(--panel2)}
  .settingsMain{flex:1;min-width:0;display:flex;flex-direction:column}
  .settingsBody{flex:1;min-height:0;overflow:auto;padding:24px}
  .settingsClose{margin-left:auto;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--ink);font-size:24px;line-height:1;display:grid;place-items:center}
  .settingsClose:hover{background:var(--panel2)}
  .settingsRow{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
  /* drawn, so the text keeps its padding on every platform (Safari's native control pressed it to the edge) */
  .settingsSelect{flex:0 0 auto;height:var(--ctl-md);min-width:140px;padding:0 36px 0 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666666' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.25 8 10.25l4-4'/%3E%3C/svg%3E") right 12px center/16px 16px no-repeat;color:var(--ink);font:inherit;font-size:15px;-webkit-appearance:none;appearance:none;cursor:pointer}
  .settingsSelect:focus{outline:0;border-color:var(--line2);box-shadow:0 0 0 3px var(--accent-weak)}
  .settingsTop{height:60px;flex:0 0 60px;display:flex;align-items:center;padding:0 16px 0 24px;border-bottom:1px solid var(--line)}.settingsTop h1{font-size:15px;line-height:22px;font-weight:500;margin:0}
  .settingsPanel{border:0;background:transparent;border-radius:0;padding:0;margin-bottom:28px}
  .settingsPanel h2{font-size:15px;line-height:22px;font-weight:500;margin:0 0 4px}.settingsPanel p{font-size:13px;line-height:20px;color:var(--muted);margin:0 0 12px}
  .settingChoices{display:grid;gap:8px}
  .profileText{width:100%;box-sizing:border-box;min-height:110px;resize:vertical;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--text);font:inherit;font-size:15px;line-height:1.55;padding:10px 12px}
  .profileText:focus{outline:none;border-color:var(--accent-strong)}
  .profileFiles{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
  .profileFile{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text);background:var(--inset);border:1px solid var(--line);border-radius:var(--r-pill);padding:3px 6px 3px 10px}
  .profileFileX{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:14px;line-height:1;padding:0 2px}
  .profileFileX:hover{color:var(--accent-ink)}
  .profileFocus{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px}
  .profileFocusHint{font-size:12px;color:var(--muted)}
  .profileFocusChip{font-size:12px;color:var(--accent-ink);background:var(--inset);border:1px solid var(--line);border-radius:var(--r-pill);padding:2px 9px}
  .profileBar{display:flex;align-items:center;gap:16px;margin-top:24px}
  .profileBar button{height:var(--ctl-md);padding:0 24px;font-size:15px;border-radius:var(--r-sm)}
  .profileSaved{font-size:12px;color:var(--accent-strong);font-weight:600}
  .settingChoice{border:1px solid var(--line);border-radius:var(--r-md);padding:10px 11px;display:flex;align-items:center;gap:9px;cursor:pointer;color:var(--text)}
  .settingChoice:hover{border-color:var(--line2);background:var(--inset)}.settingChoice input{margin:0}
  .settingChoice span{display:block}.settingChoice small{display:block;margin-top:2px;color:var(--muted);font-size:11px;line-height:1.35}

  .pane{min-width:0;min-height:0;background:var(--panel2);border-right:1px solid var(--line);display:flex;flex-direction:column}
  .pane.right{border-right:0;border-left:1px solid var(--line)}
  .runtime:not(.has-artifact) .artifactWrap,.runtime:not(.has-artifact) .pane.right,.runtime:not(.has-artifact) .runtimeGutter{display:none}
  /* 最终产物 card mode (Figma 2.3): a full-width answer with the conversation's files in a column on the right;
     the header's rule runs on across the column (the 1px line at 59px) so the card sits under one bar */
  .app.running .runtime.has-outputs:not(.has-artifact){grid-template-columns:minmax(0,1fr) 336px}
  .runtime.has-outputs:not(.has-artifact) .artifactWrap{display:flex;min-height:0;padding:76px 16px 16px 0;border:0;background:linear-gradient(var(--line),var(--line)) 0 59px/100% 1px no-repeat,var(--panel)}
  .runtime.has-outputs:not(.has-artifact) .artbar{display:none}
  .runtime.has-outputs:not(.has-artifact) .artbody{flex:0 1 auto;padding:0;overflow:auto}
  .runtime.has-outputs:not(.has-artifact) .fileGrid.outputs{max-width:none}
  @media(max-width:1100px){.app.running .runtime.has-outputs:not(.has-artifact){grid-template-columns:minmax(0,1fr)}.runtime.has-outputs:not(.has-artifact) .artifactWrap{display:none}}   /* narrow: the header toggle opens the files */
  .runtime:not(.has-artifact) .pane.left{border:0;background:transparent}
  /* keep the conversation column the SAME white as the no-artifact runtime (base .pane is --panel2 warm
     cream) — the thread background must not flip cream⇄white when the artifact opens/closes. */
  .runtime.has-artifact .pane.left{border-left:0;border-right:0;background:transparent}
  .runtime.has-artifact .pane.right{border-left:0}
  /* The column divider is a 1px line (design feedback 2026-10-12); the gutter column stays its hit area and the line
     turns accent and 2px wide under the pointer or while dragging. */
  .runtimeGutter{
    min-width:var(--runtime-gutter);width:var(--runtime-gutter);height:100%;background:transparent;
    cursor:col-resize;position:relative;touch-action:none;z-index:3;outline:0;
  }
  .runtimeGutter::after{
    content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;transform:translateX(-50%);
    background:var(--line);transition:background .12s, width .12s;
  }
  .runtimeGutter:hover::after,.runtimeGutter.dragging::after,.runtimeGutter:focus-visible::after{background:var(--accent);width:2px}
  .runtime.resizing iframe{pointer-events:none}
  .panehead{position:relative;height:60px;flex:0 0 60px;display:flex;align-items:center;gap:8px;padding:0 16px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
  .panehead strong{color:var(--ink);font-size:15px;font-weight:500;flex:0 0 auto}
  .panehead .threadTitle{flex:0 1 auto;min-width:0;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .runState,.phIcon .artToggleLabel{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}   /* read by screen readers; the thinking block shows the state */
  .phTools{margin-left:auto;display:flex;align-items:center;gap:8px;flex:0 0 auto}
  /* design feedback 2026-10-12: the header's tools are the page's, at its top right whether or not a file is open */
  .app.running .runtime{position:relative}
  .app.running .runtime .pane.left .panehead{position:static}
  .app.running .runtime .phTools{position:absolute;top:14px;right:16px;z-index:6}
  .app.running .runtime.has-artifact .artifactWrap{padding-top:60px;background:linear-gradient(var(--panel),var(--panel)) 0 0/100% 59px no-repeat,linear-gradient(var(--line),var(--line)) 0 59px/100% 1px no-repeat,var(--page)}
  .app.running .runtime.has-artifact #gutThreadArtifact::after{top:60px}
  .app.running .runtime.has-artifact #gutThreadArtifact{background:linear-gradient(var(--line),var(--line)) 0 59px/100% 1px no-repeat}
  .phIcon .atClose,.phIcon.open .atOpen{display:none}
  .phIcon.open .atClose{display:block}
  .phIcon{width:32px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ink);display:grid;place-items:center}
  .phIcon[hidden]{display:none}
  .phIcon svg{width:22px;height:22px;display:block}
  .phIcon:hover{background:var(--panel2)}

  /* ── ONE scrollbar recipe. It used to exist only on .thread and #briefing; every other scrolling
        surface showed the chunky platform default. Selector list is verified against classes that
        actually appear in the markup — a name that matches nothing is dead CSS that reads like
        coverage. A hairline track, an inset pill that darkens only on hover. ── */
  #briefing,.thread,.sessionList,.kbList,.kbChatMessages,.kbArtifactBody,.kbArtifactDoc,.artbody,.ledgerPage,.hotspotPage,.patentcliffPage,.pipelinePage,.trendPage,.settingsPage,.calScroller,.calDetailBody,.mbBody,.mbChatFeed,.mbBoardWrap,.pickerList,.tableWrap,.docPreview,.sidebody,.liveDetail{scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
  #briefing::-webkit-scrollbar,.thread::-webkit-scrollbar,.sessionList::-webkit-scrollbar,.kbList::-webkit-scrollbar,.kbChatMessages::-webkit-scrollbar,.kbArtifactBody::-webkit-scrollbar,.kbArtifactDoc::-webkit-scrollbar,.artbody::-webkit-scrollbar,.ledgerPage::-webkit-scrollbar,.hotspotPage::-webkit-scrollbar,.patentcliffPage::-webkit-scrollbar,.pipelinePage::-webkit-scrollbar,.trendPage::-webkit-scrollbar,.settingsPage::-webkit-scrollbar,.calScroller::-webkit-scrollbar,.calDetailBody::-webkit-scrollbar,.mbBody::-webkit-scrollbar,.mbChatFeed::-webkit-scrollbar,.mbBoardWrap::-webkit-scrollbar,.pickerList::-webkit-scrollbar,.tableWrap::-webkit-scrollbar,.docPreview::-webkit-scrollbar,.sidebody::-webkit-scrollbar,.liveDetail::-webkit-scrollbar{width:9px;height:9px}
  #briefing::-webkit-scrollbar-track,.thread::-webkit-scrollbar-track,.sessionList::-webkit-scrollbar-track,.kbList::-webkit-scrollbar-track,.kbChatMessages::-webkit-scrollbar-track,.kbArtifactBody::-webkit-scrollbar-track,.kbArtifactDoc::-webkit-scrollbar-track,.artbody::-webkit-scrollbar-track,.ledgerPage::-webkit-scrollbar-track,.hotspotPage::-webkit-scrollbar-track,.patentcliffPage::-webkit-scrollbar-track,.pipelinePage::-webkit-scrollbar-track,.trendPage::-webkit-scrollbar-track,.settingsPage::-webkit-scrollbar-track,.calScroller::-webkit-scrollbar-track,.calDetailBody::-webkit-scrollbar-track,.mbBody::-webkit-scrollbar-track,.mbChatFeed::-webkit-scrollbar-track,.mbBoardWrap::-webkit-scrollbar-track,.pickerList::-webkit-scrollbar-track,.tableWrap::-webkit-scrollbar-track,.docPreview::-webkit-scrollbar-track,.sidebody::-webkit-scrollbar-track,.liveDetail::-webkit-scrollbar-track{background:transparent}
  /* the 2px transparent border + background-clip floats the pill inside the gutter instead of
     filling it edge to edge */
  #briefing::-webkit-scrollbar-thumb,.thread::-webkit-scrollbar-thumb,.sessionList::-webkit-scrollbar-thumb,.kbList::-webkit-scrollbar-thumb,.kbChatMessages::-webkit-scrollbar-thumb,.kbArtifactBody::-webkit-scrollbar-thumb,.kbArtifactDoc::-webkit-scrollbar-thumb,.artbody::-webkit-scrollbar-thumb,.ledgerPage::-webkit-scrollbar-thumb,.hotspotPage::-webkit-scrollbar-thumb,.patentcliffPage::-webkit-scrollbar-thumb,.pipelinePage::-webkit-scrollbar-thumb,.trendPage::-webkit-scrollbar-thumb,.settingsPage::-webkit-scrollbar-thumb,.calScroller::-webkit-scrollbar-thumb,.calDetailBody::-webkit-scrollbar-thumb,.mbBody::-webkit-scrollbar-thumb,.mbChatFeed::-webkit-scrollbar-thumb,.mbBoardWrap::-webkit-scrollbar-thumb,.pickerList::-webkit-scrollbar-thumb,.tableWrap::-webkit-scrollbar-thumb,.docPreview::-webkit-scrollbar-thumb,.sidebody::-webkit-scrollbar-thumb,.liveDetail::-webkit-scrollbar-thumb{
    background:var(--line2);border-radius:var(--r-pill);border:2px solid transparent;background-clip:padding-box}
  #briefing::-webkit-scrollbar-thumb:hover,.thread::-webkit-scrollbar-thumb:hover,.sessionList::-webkit-scrollbar-thumb:hover,.kbList::-webkit-scrollbar-thumb:hover,.kbChatMessages::-webkit-scrollbar-thumb:hover,.kbArtifactBody::-webkit-scrollbar-thumb:hover,.kbArtifactDoc::-webkit-scrollbar-thumb:hover,.artbody::-webkit-scrollbar-thumb:hover,.ledgerPage::-webkit-scrollbar-thumb:hover,.hotspotPage::-webkit-scrollbar-thumb:hover,.patentcliffPage::-webkit-scrollbar-thumb:hover,.pipelinePage::-webkit-scrollbar-thumb:hover,.trendPage::-webkit-scrollbar-thumb:hover,.settingsPage::-webkit-scrollbar-thumb:hover,.calScroller::-webkit-scrollbar-thumb:hover,.calDetailBody::-webkit-scrollbar-thumb:hover,.mbBody::-webkit-scrollbar-thumb:hover,.mbChatFeed::-webkit-scrollbar-thumb:hover,.mbBoardWrap::-webkit-scrollbar-thumb:hover,.pickerList::-webkit-scrollbar-thumb:hover,.tableWrap::-webkit-scrollbar-thumb:hover,.docPreview::-webkit-scrollbar-thumb:hover,.sidebody::-webkit-scrollbar-thumb:hover,.liveDetail::-webkit-scrollbar-thumb:hover{
    background:var(--muted);border:2px solid transparent;background-clip:padding-box}
  .thread{flex:1;overflow:auto;padding:24px 16px}
  .runtime:not(.has-artifact) .thread{padding:24px}
  /* no-artifact: content fills the centered reading column (no inner cap → no left-pin) */
  .runtime:not(.has-artifact) .runFlow,.runtime:not(.has-artifact) .askcard{max-width:none}
  /* center the conversation within the full-width thread (the scrollbar stays at the far right) */
  .runtime:not(.has-artifact) .thread>*{max-width:var(--content-max);margin-inline:auto}
  /* the follow-up composer matches the centered column. .miniComposer is a FLEX item (.pane is a flex
     column), so it needs an explicit width — otherwise max-width + auto margins shrink it to its content. */
  .runtime:not(.has-artifact) .miniComposer{width:calc(100% - 48px);max-width:var(--content-max);margin:0 auto 24px}
  .msg{margin-bottom:32px}
  .msg .label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:5px}
  #thread .msg>.label{display:none}   /* Figma: no YOU / NOAH labels — the bubble's side says who is speaking */
  /* Noah's answer is plain text on the page; the user's turn is a right-aligned gray bubble */
  .bubble{border:0;background:transparent;border-radius:0;padding:0;color:var(--text);font-size:15px;line-height:1.6}
/* a finished answer is rendered as paragraphs: the bubble's padding is the only space at its edges */
.runCancelledNote{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--panel2);font-size:13px;line-height:18px;color:var(--muted)}
.runCancelledNote svg{width:14px;height:14px;flex:none;color:var(--faint)}   /* pause glyph */
/* 交付文件 list (r9 UI review): more room under the heading line, tighter rows between the files */
.deliverables{margin:12px 0}
.deliverablesHead{margin-bottom:8px}
.deliverablesList{display:flex;flex-direction:column;gap:2px;line-height:1.45}
.msg:has(>.bubble>.runCancelledNote:only-child) .bubble,.msg:has(>.runCancelledNote:only-child){padding-top:0;padding-bottom:0}
.bubble [data-run-result]>:first-child{margin-top:0}.bubble [data-run-result]>:last-child{margin-bottom:0}
  .msg:has(>.bubble.user){display:flex;flex-direction:column;align-items:flex-end}
  .bubble.user{max-width:min(80%,640px);background:var(--panel2);border-radius:var(--r-lg) var(--r-lg) 0 var(--r-lg);padding:12px 16px;line-height:22px;overflow-wrap:anywhere}
  #thread .bubble h1,#thread .bubble h2{font-size:18px;line-height:1.45;font-weight:600;color:var(--ink);margin:20px 0 8px}
  #thread .bubble h3{font-size:16px;line-height:1.45;font-weight:600;color:var(--ink);margin:16px 0 6px}
  /* the Markdown renderer puts a <br> between blocks; a heading, paragraph, list or table already carries its own
     margin, so the break doubled every gap (design feedback 2026-10-12) */
  #thread .bubble :is(h1,h2,h3,h4,p,ul,ol,blockquote,hr,.tableWrap)+br{display:none}
  #thread .bubble .tableWrap.markdownTable{margin:4px 0 12px}
  #thread .bubble hr{border:0;border-top:1px solid var(--line);margin:24px 0}
  #thread .bubble li{margin:6px 0}
  .steps{border-left:2px solid #d8dee6;padding-left:10px;margin:8px 0}
  .step{font-size:12px;color:var(--muted);padding:3px 0}
  .runMsg{margin:8px 0 12px}
  /* inline run flow (no card): the process streams straight into the conversation; quiet group-lines
     interleaved with serif narration, closed by a muted footer. Aligns with the message column. */
  .runFlow{display:flex;flex-direction:column;gap:12px;color:var(--faint)}
  .runSpinner{width:8px;height:8px;border-radius:50%;border:2px solid var(--line2);border-top-color:var(--accent);animation:spin .85s linear infinite;flex:0 0 auto}
  .runBody{padding:0;max-height:240px;overflow-y:auto}   /* the thinking block scrolls at a fixed height (design feedback 2026-10-12) */
  .runFlow.folded .runBody{display:none}
  .runBodyHd{font-size:14px;line-height:22px;color:var(--faint);margin-bottom:8px}
  .runLog{display:flex;flex-direction:column;gap:6px;margin-left:10px;padding-left:16px;border-left:1px solid var(--line)}
  .runLog:empty{display:none}
  /* status line: live label + elapsed + fold, a rule beneath it; Stop sits at its far end */
  .runFoot{order:-1;display:flex;align-items:center;gap:6px;padding:0 0 12px;border-bottom:1px solid var(--line);font-size:14px;line-height:22px;color:var(--faint)}
  .runNow{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--faint)}
  .runThink{font-size:14px;line-height:22px;color:var(--faint);padding:0 0 8px;overflow:hidden}
  .runThinkText{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;word-break:break-word}
  .runCount{display:none}   /* the status line shows the step and the elapsed time only (Figma) */
  .runCancel{order:4;margin-left:auto;border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:var(--r-sm);height:28px;padding:0 10px;font-size:12px;cursor:pointer;white-space:nowrap}
  .runCancel:hover{border-color:var(--line2);color:var(--ink)}
  .runCancel:disabled{opacity:.55;cursor:wait}
  .runFootMeta{order:2;display:flex;align-items:center;gap:8px;flex:0 0 auto}
  .runCount{white-space:nowrap}
  .runTime{white-space:nowrap;font-variant-numeric:tabular-nums}
  .runFold{order:3;width:22px;height:22px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--faint);display:grid;place-items:center;flex:0 0 auto}
  .runFold svg{width:14px;height:14px;transform:rotate(-90deg);transition:transform .15s}
  .runFold:hover{background:var(--panel2);color:var(--ink)}
  .runFlow.folded .runFold svg{transform:rotate(90deg)}
  .runStep{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:22px;color:var(--faint);padding:1px 0}
  /* narration is the agent's VOICE → body-size sans so it reads as prose, not a log line */
  .runStep.narr{font-size:15px;line-height:1.6;color:var(--text);padding:4px 0 6px 1px}
  .runStepTxt{flex:1;min-width:0}
  .runStepDot{width:6px;height:6px;border-radius:50%;background:var(--line2);flex:0 0 auto;margin-top:6px}
  .runStep.active .runStepDot{width:9px;height:9px;background:transparent;border:2px solid var(--line2);border-top-color:var(--accent);animation:spin .85s linear infinite;margin-top:4px}
  .runFlow.done .runStep.active .runStepDot,.runFlow.error .runStep.active .runStepDot{animation:none;border:0;width:6px;height:6px;background:#9fb1c4;margin-top:6px}
  /* grouped timeline rows: checkmark for done groups, spinner for the live one, count badge */
  .rgStep{align-items:center;padding:3.5px 0}
  .rgCheck{position:relative;width:14px;height:14px;flex:0 0 auto;border:1.2px solid var(--faint);border-radius:50%}
  .rgCheck::after{content:"";position:absolute;left:3.6px;top:1.4px;width:3px;height:6px;border:solid var(--faint);border-width:0 1.2px 1.2px 0;transform:rotate(45deg)}
  .runFlow.error .rgStep:last-child .rgCheck::after{border-color:var(--red)}
  .rgSpin{width:13px;height:13px;flex:0 0 auto;border-radius:50%;border:2px solid var(--line2);border-top-color:var(--accent);animation:spin .85s linear infinite}
  .runFlow.done .rgStep.active .rgSpin,.runFlow.error .rgStep.active .rgSpin{animation:none;border-color:#9fb1c4;border-top-color:#9fb1c4}
  .rgStep .runStepTxt{color:var(--faint)}
  /* expandable group: summary is the labeled step; opening reveals the underlying events */
  .rgGroup>summary{list-style:none;cursor:pointer}
  .rgGroup>summary::-webkit-details-marker{display:none}
  .rgGroup>summary:hover .runStepTxt{color:var(--accent-ink)}
  .rgCaret{margin-left:auto;flex:0 0 auto;color:var(--faint);font-size:13px;line-height:1;transition:transform .15s}
  .rgGroup[open]>summary .rgCaret{transform:rotate(90deg)}
  .rgItems{padding:1px 0 5px 23px;display:flex;flex-direction:column;gap:1px}
  .rgItem{font-size:11.5px;color:var(--faint);line-height:1.5;white-space:normal;word-break:break-word}
  /* source rows inside an expanded group: clickable title + domain */
  .rgSrc{display:flex;align-items:center;gap:7px;font-size:12px;padding:3px 0;text-decoration:none;color:inherit}
  .rgSrcIco{flex:0 0 auto;width:13px;height:13px;color:#aab2bc}
  a.rgSrc:hover .rgSrcIco{color:var(--accent-ink)}
  a.rgSrc:hover .rgSrcTitle{color:var(--accent-ink);text-decoration:underline;text-underline-offset:2px}
  .rgSrcTitle{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
  .rgSrcDom{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--faint)}
  .rgItemN{color:#b3bac3;font-variant-numeric:tabular-nums}
  /* persisted run-process replay (restored from history) — CSS-only collapsible */
  .runReplayMsg{margin:8px 0 12px}
  .runReplay{border:0;border-bottom:1px solid var(--line);background:transparent;border-radius:0}
  .runReplay>summary{list-style:none;display:flex;align-items:center;gap:6px;padding:0 0 12px;cursor:pointer;font-size:14px;line-height:22px;color:var(--faint)}
  .runReplay>summary::-webkit-details-marker{display:none}
  .runReplayDot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:0 0 auto}
  .runReplay.error .runReplayDot{background:var(--red)}
  .runReplayTitle{font-weight:400;color:var(--faint)}
  .runReplayMeta{color:var(--faint)}
  .runReplay>summary::after{content:"\203A";font-size:16px;color:var(--faint);transform:rotate(90deg);transition:transform .15s}
  .runReplay[open]>summary::after{transform:rotate(-90deg)}
  .runReplayBody{margin:0 0 12px 10px;padding:0 0 0 16px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:6px;max-height:320px;overflow:auto}
  .runFlow.done .runSpinner{animation:none;border-color:var(--green);background:var(--green)}
  .runFlow.error .runSpinner{animation:none;border-color:var(--red);background:var(--red)}
  /* paused segment (sealed when an ask_user card appears): neutral, not the green "done" state */
  .runFlow.sealed .runSpinner,.runFlow.sealed .runNow,.runFlow.sealed .runThink{display:none}
  .runFlow.sealed .runFoot::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--line2);flex:0 0 auto}
  .runReplay.sealed .runReplayDot{background:var(--line2)}
  @keyframes spin{to{transform:rotate(360deg)}}
  .reviewcard{border:1px solid #f0cf9e;background:var(--orange2);border-radius:var(--r-lg);padding:11px;margin:10px 0}
  .reviewcard strong{display:block;color:#5d3d0e;margin-bottom:4px}
  .reviewcard .actions{display:flex;gap:6px;margin-top:8px}
  .reviewcard button{border:1px solid #ecc68d;background:white;border-radius:var(--r-sm);padding:5px 8px;font-size:12px;color:#5d3d0e}
  /* confirmation gate card (analog basis / forecast assumptions) — structured rows, prominent confirm */
  .askcard{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);padding:20px 16px 16px;margin:10px 0;color:var(--text)}
  .askTop{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
  .askTop strong{font-size:13px;color:var(--ink);font-weight:600}
  /* status reads as an accent KICKER — the single restrained "Noah needs your input" cue (no pulsing dot) */
  .askTop span{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-ink);display:inline-flex;align-items:center;gap:5px}
  .askcard.submitted .askTop span{color:var(--faint)}
  .askcard p{margin:4px 0;color:var(--text);font-size:14px;line-height:1.55}
  .askBody{display:flex;flex-direction:column}
  .askRow{display:flex;align-items:flex-start;gap:10px;padding:8px 0;border-top:1px solid var(--line-soft)}
  .askRow:first-child,.askRowMore:first-child{border-top:0}
  .askRow:first-child{padding-top:1px}
  .askDot{width:5px;height:5px;border-radius:50%;background:var(--accent-strong);flex:0 0 auto;margin-top:7px}
  /* assumption row with an expandable "why" (native <details> — survives reload, no JS) */
  .askRowMore{border-top:1px solid var(--line-soft)}
  .askRowMore>summary{list-style:none;display:flex;align-items:flex-start;gap:10px;padding:8px 0;cursor:pointer}
  .askRowMore>summary::-webkit-details-marker{display:none}
  .askRowMore>summary .askRowText{flex:1}
  .askWhy{flex:0 0 auto;align-self:center;display:inline-flex;align-items:center;gap:3px;font-size:11px;color:var(--accent-ink);white-space:nowrap}
  .askWhyCaret{font-size:13px;line-height:1;transition:transform .15s ease}
  .askRowMore[open]>summary .askWhyCaret{transform:rotate(90deg)}
  .askRowMore>summary:hover .askWhy{text-decoration:underline;text-underline-offset:2px}
  .askRowDetail{font-size:12.5px;color:var(--muted);line-height:1.55;padding:0 0 9px 15px}
  .askRowText{display:flex;flex-direction:column;gap:1px;min-width:0}
  .askRowMain{font-size:13px;color:var(--ink);font-weight:600;line-height:1.4}
  .askRowSub{font-size:12px;color:var(--muted);line-height:1.45}
  .askLine{font-size:13px;color:var(--text);line-height:1.5;padding:3px 0}
  .askHint{font-size:12px;color:var(--muted);line-height:1.45;margin-top:8px;padding-top:8px;border-top:1px solid var(--line-soft)}
  .askOptions{display:flex;gap:8px;flex-wrap:wrap;margin:11px 0 2px}
  /* buttons follow the design-system secondary recipe; the primary chip keeps the accent fill */
  .askOptions button,.askActions button{height:var(--ctl-sm);padding:0 11px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);font-size:12px;color:var(--text)}
  .askOptions button:hover,.askActions button:hover{border-color:var(--line2);color:var(--ink)}
  .askOptions button.primary{border-color:var(--accent-strong);background:var(--accent-strong);color:var(--panel);font-weight:600}
  .askOptions button.primary:hover{background:var(--accent-strong-hover);color:var(--panel)}
  .askOptions button.selected{border-color:var(--accent-strong);background:var(--accent-weak);color:var(--accent-ink)}
  /* Decision cards use full-width radio rows. Long Chinese labels no longer make uneven chips or force
     the action button into a narrow leftover column. Approval cards intentionally keep the compact chips. */
  .askDecisionCard{padding:24px 16px 16px}
  .askDecisionCard .askTop{margin-bottom:6px}
  .askDecisionCard .askTop strong{font-size:16px;line-height:1.4}
  .askDecisionCard .askBody .askLine{font-size:14px;line-height:1.55;padding:2px 0;color:var(--muted)}
  .askChoiceList{display:grid;grid-template-columns:1fr;gap:4px;margin:16px -12px 0;counter-reset:askChoice}
  .askChoiceList button{
    position:relative;width:100%;height:auto;min-height:48px;padding:12px 44px 12px 48px;text-align:left;counter-increment:askChoice;
    white-space:normal;line-height:22px;border:0;border-radius:var(--r-sm);background:transparent;font-size:15px;color:var(--ink);
    transition:background .12s ease,color .12s ease;
  }
  .askChoiceList button::before{
    content:counter(askChoice);position:absolute;left:12px;top:50%;width:22px;height:22px;transform:translateY(-50%);
    border:0;border-radius:4px;background:var(--panel2);box-sizing:border-box;
    font-size:13px;line-height:22px;text-align:center;color:var(--ink);font-weight:400;
  }
  .askChoiceList button::after{content:"";position:absolute;right:16px;top:50%;width:16px;height:16px;transform:translateY(-50%);background:var(--muted);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E") center/16px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E") center/16px no-repeat;opacity:0}
  .askChoiceList button:hover,.askChoiceList button.selected{background:var(--panel2);color:var(--ink)}
  .askChoiceList button:hover::after,.askChoiceList button.selected::after{opacity:1}
  .askChoiceList button:hover::before,.askChoiceList button.selected::before{background:var(--panel)}
  /* the picked option stays marked when the pointer moves to another one: a hover alone looked like a choice (2026-10-15) */
  .askChoiceList button.selected::before{background:var(--accent);color:#fff}
  .askGrid{display:grid;gap:8px;margin-top:8px}
  .askField{display:grid;gap:4px}.askField label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.askField small{font-size:11px;color:var(--faint)}
  .askField input,.askField select,.askField textarea,.askAnswer{
    width:100%;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:7px 8px;color:var(--ink);outline:0;font-size:13px;
  }
  .askField input:focus,.askField select:focus,.askField textarea:focus,.askAnswer:focus{border-color:var(--line2);box-shadow:none}
  .askField textarea{min-height:58px;resize:vertical;line-height:1.4}
  .askMoney{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:6px}
  /* option-set picker: the "choose from the shown options" affordance (mirrors the analog picker) — every
     option is a chip with the documented default pre-selected; a hidden input mirrors the value so the
     round-trip (collectAskValues) is unchanged. Selected chip reuses the .askOptions accent recipe. */
  .askChips{display:flex;flex-wrap:wrap;gap:6px}
  .askChip{height:var(--ctl-sm);padding:0 11px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);font-size:12px;color:var(--text);cursor:pointer;transition:border-color .12s ease,background .12s ease,color .12s ease}
  .askChip:hover{border-color:var(--line2);color:var(--ink)}
  .askChip.selected{border-color:var(--accent-strong);background:var(--accent-weak);color:var(--accent-ink);font-weight:600}
  /* juncture section header inside a multi-assumption card (field.group) */
  .askGroupHd{font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--accent-ink);margin:10px 0 1px;padding-top:9px;border-top:1px solid var(--line-soft)}
  .askGroupHd:first-child{border-top:0;padding-top:0;margin-top:2px}
  /* free-text reply: a single-line composer with an inline ↑ send (Enter also submits) */
  .askReply{display:flex;align-items:flex-end;gap:8px;margin-top:10px}
  .askReply .askAnswer{flex:1;min-height:36px;max-height:160px;resize:vertical;line-height:1.4}
  .askSend{flex:0 0 auto;width:var(--ctl-sm);height:var(--ctl-sm);border:1px solid var(--accent-strong);background:var(--accent-strong);color:var(--panel);border-radius:var(--r-sm);font-size:15px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .12s ease,border-color .12s ease,color .12s ease}
  .askSend:hover:not(:disabled){background:var(--accent-strong-hover)}
  .askSend:disabled{background:var(--panel);border-color:var(--line);color:var(--faint);cursor:default}
  /* "or type your own" divider — only shown when chips offer a no-typing default, to keep the two paths distinct */
  .askOr{font-size:11px;color:var(--muted);margin:11px 0 -1px;display:flex;align-items:center;gap:8px}
  .askOr::before,.askOr::after{content:"";flex:1;height:1px;background:var(--line-soft)}
  .askActions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
  .askActions button.primary{min-width:90px;height:var(--ctl-md);padding:0 20px;border-color:var(--accent-strong);background:var(--accent-strong);color:var(--panel);font-weight:500;font-size:14px;white-space:nowrap}
  .askActions button.primary:hover:not(:disabled){background:var(--accent-strong-hover);border-color:var(--accent-strong-hover);color:var(--panel)}
  .askActions button:disabled{opacity:.46;cursor:default}
  .taskAskReply .askAnswer{min-height:40px;max-height:110px;padding:9px 11px;resize:vertical;line-height:1.45}
  .askDone{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin-top:7px}
  .askLink{border:0;background:transparent;color:var(--accent-ink);font-size:12px;padding:0;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
  .askToggle{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:0;cursor:pointer;color:var(--accent-ink)}
  .askToggle:disabled{cursor:default}
  .askToggleCaret{color:var(--muted);font-size:14px;line-height:1;transition:transform .15s ease}
  .askcard.expanded .askToggleCaret{transform:rotate(90deg)}
  .askChosen{color:var(--ink);font-weight:600;font-size:13px}
  /* re-expandable record of what was submitted (point 5): the question + each confirmed value */
  .askRecord{margin-top:8px;padding-top:9px;border-top:1px solid var(--line-soft)}
  .askRecord.hidden{display:none}
  .askRecordQ{margin-bottom:2px}
  /* one grid for all rows, so every value starts at the same x whatever its label's length */
  .askRecordVals{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);gap:4px 14px;margin-top:6px;font-size:12.5px;line-height:1.45}
  .askSumRow{display:contents}
  .askSumK{color:var(--muted);max-width:11em}
  .askSumV{color:var(--ink);min-width:0}
  /* with the preview pane open the card is ~300px: a side-by-side label squeezes the value to one name a line */
  .askRecord{container-type:inline-size}
  @container (max-width:380px){.askRecord .askRecordVals{grid-template-columns:minmax(0,1fr);row-gap:0}.askRecord .askSumRow+.askSumRow>.askSumK{margin-top:4px}}
  .askRecordList{margin-top:8px}
  /* two confirmation cards in a row sit 12px apart, not a full message gap (32px) */
  #thread .msg:has(>.askcard):has(+.msg>.askcard){margin-bottom:12px}
  .askRecordList>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:12.5px;color:var(--accent-ink);border-bottom:1px solid transparent}
  .askRecordList>summary::-webkit-details-marker{display:none}
  /* one line under label, count and caret: text-decoration broke at the flex gaps */
  .askRecordList>summary:hover{border-bottom-color:currentColor}
  .askRecordList[open]>summary .askWhyCaret{transform:rotate(90deg)}
  .askRecordCount{font-variant-numeric:tabular-nums}   /* the label's green and size */
  .askRecordTags{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
  .askRecordTags>span{font-size:11.5px;line-height:1.4;padding:1px 7px;border-radius:var(--r-pill);background:var(--panel2);color:var(--text)}
  /* after submit: collapse to the title + confirmed choice (re-expandable via the record), neutral surface */
  /* in-thread confirmation cards (design feedback 2026-10-12) */
  .askcard,.scopeForm{position:relative}
  .askcard .askTop,.scopeForm .monitorConfirmTitle{padding-right:36px}
  .cardChev{position:absolute;top:14px;right:12px;width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:var(--muted);display:grid;place-items:center;padding:0;cursor:pointer}
  .cardChev:hover{background:var(--panel2);color:var(--ink)}
  .cardChev svg{width:16px;height:16px;transition:transform .15s}
  .askcard:not(.submitted):not(.folded) .cardChev svg,.scopeForm:not(.folded) .cardChev svg,.askcard.submitted.expanded .cardChev svg{transform:rotate(180deg)}
  .askcard.folded>:not(.askTop):not(.cardChev),.scopeForm.folded>:not(.monitorConfirmTitle):not(.monitorConfirmSub):not(.cardChev){display:none}
  .askcard:not(.submitted) .askTop>span{display:none}
  .askTop strong{font-weight:600}
  .scopeForm .monitorConfirmSub{margin-bottom:12px}
  .cardWaitHint{display:flex;align-items:center;gap:8px;margin:8px 2px 0;font-size:13px;line-height:20px;color:var(--faint)}
  .cardWaitHint .waitDots{flex:0 0 auto;display:inline-flex;gap:3px}
  .cardWaitHint .waitDots i{width:4px;height:4px;border-radius:50%;background:var(--faint);animation:waitDot 1.4s ease-in-out infinite}
  .cardWaitHint .waitDots i:nth-child(2){animation-delay:.35s}
  @keyframes waitDot{0%,60%,100%{background:var(--faint)}25%{background:var(--muted)}}
  @media (prefers-reduced-motion:reduce){.cardWaitHint .waitDots i{animation:none}.cardWaitHint .waitDots i:first-child{background:var(--muted)}}
  .msg:has(.askcard.submitted)>.cardWaitHint{display:none}
  .askOr{display:none}
  .askcard .askReply{align-items:center;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft)}
  .askcard .askReply::before{content:"";flex:0 0 28px;height:28px;border-radius:6px;background:var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23999999' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.6 2.9a1.6 1.6 0 0 1 2.3 2.3L5.6 12.5 2.5 13.5l1-3.1z'/%3E%3C/svg%3E") center/14px 14px no-repeat}
  .askcard .askReply .askAnswer{flex:1;border:0;border-radius:0;box-shadow:none;background:transparent;padding:4px 0;min-height:28px;resize:none;font-size:14px}
  .askcard .askReply .askAnswer:focus{border:0;box-shadow:none}
  .askcard .askReply .askSend,.askcard .askReply .taskAskContinue{width:auto;height:32px;padding:0 16px;border:0;border-radius:var(--r-sm);background:var(--accent-strong);color:var(--panel);font-size:14px;font-weight:500;white-space:nowrap}
  .askcard .askReply .askSend:disabled,.askcard .askReply .taskAskContinue:disabled{background:var(--accent-strong);color:var(--panel);opacity:.45;cursor:default}
  .askcard.submitted{box-shadow:none;background:var(--panel);padding:16px 48px 16px 16px}
  .askcard.submitted.hasRecord{cursor:pointer}
  .askcard.submitted .askTop{margin-bottom:2px}
  .askcard.submitted .askTop strong{font-size:15px;font-weight:600}
  .askcard.submitted .askTop>span,.askcard.submitted .askToggleCaret,.askcard.submitted .askLink{display:none}
  .askcard.submitted .askDone{margin-top:0}
  .askcard.submitted .askToggle{color:var(--muted);cursor:inherit}
  .askcard.submitted .askChosen{font-size:13px;font-weight:400;color:var(--muted)}
  .askcard.submitted .askRecord{cursor:default}
  .askcard.submitted>.askBody,.askcard.submitted .askOptions,.askcard.submitted .askGrid,.askcard.submitted .askActions,.askcard.submitted .askReply,.askcard.submitted .askOr,.askcard.submitted>p{display:none}
  .askcard.submitted .askDone{margin-top:0}
  /* Follow-up composer: one unified card with the toolbar pinned inside the bottom edge (mirrors
     .composer / Claude Code's input). Mode chip = quiet ghost pill; send = compact circle, subdued
     when empty and accent only when there's text. All scoped under .miniComposer so the start
     .composer and shared .send/.modeChip/textarea rules are untouched. */
  .miniComposer{
    position:relative;margin:0 16px 16px;background:var(--panel);border:1px solid var(--line);
    border-radius:var(--r-lg);box-shadow:var(--shadow-sm);
    transition:border-color .15s ease, box-shadow .15s ease;
  }
  .miniComposer:focus-within{border-color:var(--line2);box-shadow:var(--shadow-sm)}
  .miniComposer textarea{
    display:block;min-height:96px;max-height:200px;overflow-y:auto;padding:16px 16px 56px;
    border:0;outline:0;background:transparent;border-radius:var(--r-lg);font-size:15px;line-height:22px;
  }
  .miniComposer .miniBar{position:absolute;left:16px;right:16px;bottom:12px;display:flex;align-items:center;gap:12px}
  .miniComposer .modeChip{
    height:32px;padding:0 10px;border:0;background:transparent;border-radius:var(--r-sm);gap:10px;
    color:var(--ink);font-size:15px;font-weight:400;max-width:62%;
  }
  .miniComposer .modeChip:hover,.miniComposer .modeChip[aria-expanded="true"]{background:var(--panel2);color:var(--ink)}
  .miniComposer .modeChip .modeLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .miniComposer .send{
    margin-left:auto;width:32px;height:32px;min-width:32px;padding:0;border:0;border-radius:var(--r-sm);
    background:var(--accent-strong);color:var(--panel);transition:opacity .15s ease, background .15s ease;
  }
  .miniComposer .send svg{width:18px;height:18px}
  /* while the run can be cancelled the send button is Stop; the in-thread cancel buttons stay as its targets */
  .miniComposer .send.stop{opacity:1!important;cursor:pointer!important;background:var(--panel2);display:grid;place-items:center}
  .miniComposer .send.stop:hover{background:var(--line)}
  .miniComposer .send.stop svg{display:none}
  .miniComposer .send.stop::before{content:"";width:10px;height:10px;border-radius:2px;background:var(--ink)}
  .runCancel,.conversationTaskLive [data-cancel-conversation-task]{display:none!important}
  .miniComposer .send:active{transform:translateY(.5px)}
  .miniComposer .iconbtn{width:32px;height:32px;min-width:32px;padding:0;border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink)}
  .miniComposer .iconbtn svg{width:16px;height:16px}
  .miniComposer .iconbtn:hover{background:var(--panel2)}
  /* `.hasAttach` (set by renderPendingKnowledgeFiles) keeps Send live for an attachment-only follow-up. */
  .miniComposer:has(#followup:placeholder-shown):not(.hasAttach) .send{opacity:.4;cursor:default}
  .miniComposer:has(#followup:not(:placeholder-shown)) .send:not(:disabled):hover,
  .miniComposer.hasAttach .send:not(:disabled):hover{background:var(--accent-strong-hover)}
  .miniComposer .send:disabled,.miniComposer .send[disabled]{opacity:.4;cursor:default}

  .artifactWrap{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--page)}
  .artbar{position:relative;height:48px;flex:0 0 48px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 12px 0 10px;gap:8px;background:var(--panel)}
  .artListBtn{width:32px;height:32px;flex:0 0 32px;border:0;border-radius:6px;background:transparent;color:var(--ink);display:grid;place-items:center;padding:0}
  .artListBtn svg{width:20px;height:20px}
  .artListBtn:hover,.artListBtn[aria-expanded="true"]{background:var(--panel2)}
  .artExport{flex:0 0 auto;height:32px;border:0;border-radius:6px;background:transparent;color:var(--ink);display:inline-flex;align-items:center;gap:6px;padding:0 8px;font-size:14px;white-space:nowrap}
  .artExport svg{width:18px;height:18px}
  .artExport:hover{background:var(--panel2)}
  .artExport[hidden],.artListBtn[hidden],.artbar .tabs[hidden],.artbar .artClose[hidden]{display:none}
  .artListMenu{position:absolute;top:106px;left:10px;z-index:30;width:min(340px,calc(100% - 20px));max-height:min(520px,calc(100% - 120px));overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:0 6px 22px rgba(20,30,45,.09)}
  .artListMenu .fileGrid.outputs{border:0;box-shadow:none;max-width:none;margin:0}
  .tabs{display:flex;gap:20px;align-self:stretch}
  .tab{border:0;border-bottom:2px solid transparent;background:transparent;border-radius:0;padding:0 2px;color:var(--muted);font-size:14px}
  .tab:hover{color:var(--ink)}
  .tab.active{color:var(--ink);border-bottom-color:var(--ink)}
  .arttitle{flex:1;min-width:0;margin-left:2px;font-size:15px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .artClose{width:32px;height:32px;border:0;background:transparent;border-radius:6px;color:var(--ink);font-size:18px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
  .artClose:hover{background:var(--panel2);color:var(--ink)}
  /* reopen-Evidence toggle: lives in the artifact toolbar, shows only while the column is collapsed */
  .artbody{flex:1;min-height:0;padding:24px;overflow:hidden}
  .emptyArt{height:100%;display:grid;place-items:center;color:var(--muted);text-align:center;border:1px dashed var(--line);border-radius:var(--r-lg);background:var(--inset)}
  iframe{width:100%;height:100%;border:1px solid var(--line);border-radius:var(--r-lg);background:white}
  pre.source{height:100%;overflow:auto;margin:0;background:#101418;color:#dfe7ef;border-radius:var(--r-lg);padding:16px;font:12px/1.5 var(--mono)}
  .docPreview{height:100%;overflow:auto;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel);padding:22px;color:var(--text)}
  /* text/markdown result rendered inline in the thread: panel's markdown+table styling, no panel chrome */
  .reportMsg{margin:10px 0}
  .reportInline{height:auto;max-height:none;border:0;background:transparent;padding:0;overflow:visible}
  /* inline result = the agent's prose → uniform SANS (was serif; Iowan styles Latin only, so CN/EN mixed
     lines broke — design system: serif = landing hero only). Tight heading scale at weight 600. */
  .reportInline{font-size:15px;line-height:1.6;color:var(--text)}
  .reportInline h1{font-size:20px;font-weight:600}.reportInline h2{font-size:16px;font-weight:600}.reportInline h3{font-size:14px;font-weight:600}
  /* tables, numbers, and code are data, not voice → sans/mono, unchanged from the panel */
  .reportInline .tableWrap,.reportInline table,.reportInline th,.reportInline td,.reportInline .sheetTable{font-family:var(--sans)}
  .reportInline code,.reportInline pre{font-family:var(--mono)}
  /* inline result download affordance — subtle, reveals on hover. (.dlCard, NOT .reportCard — the latter is
     the monitor's report-list card; sharing the class would bleed its border/padding onto inline results) */
  .dlCard{position:relative}
  .reportTools{display:flex;justify-content:flex-end;margin-bottom:2px;opacity:0;transition:opacity .15s}
  .dlCard:hover .reportTools,.dlCard:focus-within .reportTools{opacity:1}
  .reportDl{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:4px 10px;font-size:11.5px;color:var(--muted);cursor:pointer}
  .reportDl:hover{border-color:var(--line2);color:var(--ink)}
  .docPreview h1,.docPreview h2,.docPreview h3{letter-spacing:0;margin:1em 0 .35em;font-weight:600}.docPreview h1{font-size:20px}.docPreview h2{font-size:16px}.docPreview h3{font-size:15px}
  .docPreview p{margin:8px 0}.docPreview code{font-family:var(--mono);font-size:.92em;background:#f1f3f5;border:1px solid #e3e7eb;border-radius:5px;padding:1px 4px}
  .docPreview a,.msg .bubble a{color:var(--accent-ink);text-decoration:underline;text-decoration-color:var(--accent-weak);text-underline-offset:2px;overflow-wrap:anywhere}
  .docPreview a:hover,.msg .bubble a:hover{text-decoration-color:currentColor}
  .docPreview a.autoLink,.msg .bubble a.autoLink{border-bottom:0}   /* one line under a link: the dotted border doubled the underline */
  .docPreview .tableWrap{height:auto;max-height:none;margin:12px 0 18px}
  .tableWrap{height:100%;overflow:auto;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel)}
  .tableWrap table{width:100%;border-collapse:collapse;font-size:12px}.tableWrap th{position:sticky;top:0;background:var(--panel2);color:var(--muted);text-align:left;border-bottom:1px solid var(--line);padding:8px;white-space:nowrap;font-weight:500}.tableWrap td{border-bottom:1px solid var(--line-soft);padding:7px 8px;vertical-align:top;max-width:260px;overflow:hidden;text-overflow:ellipsis}
  .tableWrap tr:last-child>td{border-bottom:0}   /* the wrapper's border closes the table: a last-row rule doubled it to 2px */
  .sheetTable th,.sheetTable td{font-family:var(--mono)}.sheetTable .rowHead{position:sticky;left:0;background:var(--panel2);color:var(--faint);text-align:right;min-width:38px;max-width:38px;z-index:2}.sheetTable td{min-width:90px}
  .sheetPreview{height:100%;min-height:0;display:flex;flex-direction:column}
  .sheetTabs{flex:0 0 auto;display:flex;gap:5px;overflow:auto;padding:0 0 8px;margin:0 0 8px;border-bottom:1px solid var(--line)}
  .sheetTabs button{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-sm);padding:5px 9px;color:var(--muted);font-size:12px;white-space:nowrap}
  .sheetTabs button:hover{border-color:var(--line2);color:var(--ink)}
  .sheetTabs button.active{border-color:var(--accent);background:var(--accent-weak);color:var(--accent-ink)}
  .sheetPane{min-height:0;flex:1;display:none}.sheetPane.active{display:block}.sheetPane .tableWrap{height:100%}
  .fileGrid{height:100%;overflow:auto;display:grid;align-content:start;gap:9px}
  .fileItem{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);padding:11px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;text-align:left}
  .fileItem strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fileItem span{display:block;margin-top:3px;color:var(--muted);font-size:12px}
  .fileItem button,.fileCard a{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:6px 9px;color:var(--text);text-decoration:none;font-size:12px}
  .fileItem button:hover,.fileCard a:hover{border-color:var(--line2);color:var(--ink)}
  .fileItem.current{border-color:var(--accent-strong);background:var(--accent-weak)}
  .fileGrid.outputs{height:auto;max-height:100%;max-width:640px;display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel)}
  .fileGridHd{padding:14px 16px;font-size:15px;line-height:22px;color:var(--muted);border-bottom:1px solid var(--line)}
  .fileGroup{display:flex;flex-direction:column;gap:2px;padding:8px}
  .fileGroup+.fileGroup{padding-top:0}
  .fileGroupHd{padding:8px 8px 6px;font-size:14px;line-height:20px;color:var(--faint)}
  .fileGrid.outputs .fileItem{width:100%;height:40px;display:flex;align-items:center;gap:10px;padding:0 8px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink);text-align:left;cursor:pointer}
  .fileGrid.outputs .fileItem:hover,.fileGrid.outputs .fileItem.current{background:var(--panel2)}
  .fileIco{flex:0 0 16px;display:grid}.fileIco svg{width:16px;height:18px;display:block}
  .fileGrid.outputs .fileItem strong{flex:1;min-width:0;margin:0;font-size:15px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fileGrid.outputs .fileOpen{display:block;margin:0;font-size:12px;color:var(--faint);opacity:0}
  .fileGrid.outputs .fileItem:hover .fileOpen,.fileGrid.outputs .fileItem:focus-visible .fileOpen{opacity:1}
  .fileGrid.outputs .fileItem.current .fileOpen{display:none}   /* the open file: highlighted, no 打开 that would do nothing */
  /* In-thread "Generated files" attachment card — scoped; intentionally NOT .fileGrid/.fileItem
     (those carry height:100%/overflow:auto for the artifact panel and look wrong in a chat bubble). */
  .runFiles{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);padding:4px 12px;margin-top:4px}
  .runFilesHead{display:flex;align-items:center;gap:8px;padding:8px 0 7px;border-bottom:1px solid var(--line-soft)}
  .runFilesKicker{font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
  .runFilesCount{margin-left:auto;font-size:11px;font-weight:600;color:var(--accent-ink);background:var(--accent-weak);border-radius:var(--r-pill);padding:2px 8px}
  .runFile{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line-soft);min-width:0}
  .runFile:last-child{border-bottom:0}
  /* the whole badge+name area IS the preview affordance (the dedicated eye button is gone); the download button
     stays a separate control OUTSIDE this region so a click on it downloads instead of previewing */
  .runFileMain{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:10px;cursor:pointer;border-radius:var(--r-sm);margin:-4px -6px;padding:4px 6px}
  .runFileMain:hover{background:var(--inset)}
  .runFileMain:focus-visible{outline:0;box-shadow:0 0 0 3px var(--accent-weak)}
  .runFileKind{flex:0 0 auto;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--inset);border-radius:var(--r-sm);font-size:9px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}
  .runFileBody{flex:1 1 auto;min-width:0}
  .runFileName{display:block;font-size:13px;font-weight:600;color:var(--ink);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .runFileMeta{display:block;margin-top:2px;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .runFileActions{flex:0 0 auto;display:flex;align-items:center;gap:6px}
  .runFileKb{flex:0 0 auto;width:var(--ctl-sm);height:var(--ctl-sm);padding:0;display:inline-flex;align-items:center;
             justify-content:center;border-radius:var(--r-sm);cursor:pointer;border:1px solid var(--line);
             background:var(--panel);color:var(--muted)}
  .runFileKb svg{width:16px;height:16px;display:block}
  .runFileKb:hover{border-color:var(--line2);color:var(--ink)}
  .runFileKb.done{border-color:var(--accent);color:var(--accent-ink);background:var(--accent-weak)}
  .runFilesAll{margin-left:auto;height:var(--ctl-sm);border:1px solid var(--line);background:var(--panel);
               border-radius:var(--r-sm);padding:0 10px;font-size:12px;color:var(--muted);cursor:pointer}
  .runFilesAll:hover{border-color:var(--line2);color:var(--ink)}
  /* icon-only square download action — same --ctl-sm footprint; reclaims ~100px for the filename at every width */
  .runFileDownload{flex:0 0 auto;width:var(--ctl-sm);height:var(--ctl-sm);padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--r-sm);cursor:pointer;text-decoration:none;-webkit-appearance:none;appearance:none}
  .runFileDownload svg{width:16px;height:16px;display:block}
  /* Download is a secondary action beside the primary preview surface.  The previous solid-blue treatment
     hid the white SVG at a glance and read as a blank blue square, so keep the glyph blue on a light surface. */
  .runFileDownload{border:1px solid var(--line2);background:var(--panel);color:var(--accent-strong)}
  .runFileDownload:hover{background:var(--accent-weak);border-color:var(--accent-strong)}
  .runFileDownload:focus-visible{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak)}
  /* tencent-style file-export bundle rendered in the right artifact panel (任务结束打包) */
  .anote{font-size:12.5px;line-height:1.6;color:var(--muted);margin-bottom:10px}
  .attachBundle{display:flex;align-items:center;gap:8px;border:1px solid var(--accent-strong);background:var(--accent-weak);border-radius:var(--r-md);padding:9px 11px;margin-bottom:10px;font-size:12.5px}
  .attachBundle>span:first-child{color:var(--accent-strong);font-weight:700}
  .attachBundle a{color:var(--accent-strong);text-decoration:none;font-weight:700;word-break:break-all}
  .attachBundle a:hover{text-decoration:underline}
  .attachBundle .muted{color:var(--accent-ink);font-size:11.5px;margin-left:auto}
  .attachGrid{display:grid;gap:8px}
  .attach{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:8px 10px;font-size:12.5px;min-width:0}
  .attach>span:first-child{color:var(--accent-strong);font-weight:700;flex:0 0 auto}
  .attach a{color:var(--accent-strong);text-decoration:none;font-weight:600;word-break:break-all;min-width:0}
  .attach a:hover{text-decoration:underline}
  .attach .muted{color:var(--muted);font-size:11.5px;margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .fileCard{height:100%;display:grid;place-items:center;color:var(--muted);text-align:center;border:1px dashed var(--line2);border-radius:16px;background:var(--panel);padding:28px}
  .fileCard strong{display:block;color:var(--ink);font-size:16px;margin-bottom:6px}.fileCard p{margin:0 0 14px}
  .presentationPreview{height:100%;overflow:auto;background:var(--page);padding:14px;display:grid;gap:14px;align-content:start;grid-auto-rows:max-content}
  .presentationMeta{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:10px 12px;color:var(--muted);font-size:12px}
  .presentationMeta strong{display:block;color:var(--text);font-size:13px;margin-bottom:2px}
  .presentationMeta .exportActions{margin-top:0}   /* 下载或打开文件 centred on the card, not 12px low */
  .slideCard{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);overflow:hidden}   /* the header card's (and composer's) border */
  .slideCardHeader{height:32px;display:flex;align-items:center;padding:0 10px;border-bottom:1px solid var(--line-soft);color:var(--muted);font-size:12px}
  .slideCard img{display:block;width:100%;height:auto;background:var(--panel)}
  .exportActions{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:12px}
  .exportBtn{border:1px solid var(--accent-strong);background:var(--accent-strong);color:var(--panel);border-radius:var(--r-md);padding:8px 12px;font-size:12px;font-weight:600}
  .exportBtn.secondary{border-color:var(--line);background:var(--panel);color:var(--text);text-decoration:none}
  .exportBtn:hover{filter:brightness(.98)}
  /* Affordance keys off an in-HTML child (.artifactPointer), not a JS-added class, so it survives a
     history restore where openSession re-injects saved message HTML (handlers/classes added after the
     fact are lost). */
  .bubble:has(>.artifactPointer){border:1px solid var(--line);border-radius:var(--r-lg);padding:12px 16px;background:var(--panel);cursor:pointer;transition:border-color .15s, box-shadow .15s, background .15s}
  .bubble:has(>.artifactPointer):hover{border-color:var(--line2);background:var(--inset);box-shadow:none}
  .bubble:has(>.artifactPointer):focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-weak)}
  .artifactPointer{outline:none}
  .artifactPreviewMsg > .label{text-transform:none;letter-spacing:normal;line-height:1.6}
  .artifactPreviewHint{font-family:var(--sans);font-weight:400;font-size:12px}
  /* Generated files: one wrapping row of chips (type tag + short name), not a tall card per file */
  .bubble.artifactPreviewGrid,.bubble.artifactPreviewGrid:hover,.bubble.artifactPreviewGrid:focus-within{display:flex;flex-wrap:wrap;gap:6px 8px;padding:0;border:0;background:none;box-shadow:none;cursor:default;max-width:none}
  /* generated files as cards (design feedback 2026-10-12): tile, name over kind · extension, 打开 on the right */
  .bubble.artifactPreviewGrid,.bubble.artifactPreviewGrid:hover,.bubble.artifactPreviewGrid:focus-within{flex-direction:column;flex-wrap:nowrap;gap:8px}
  .artifactPreviewGrid > .artifactPointer{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel);cursor:pointer;font-size:14px}
  .artifactPreviewGrid > .artifactPointer:hover,.artifactPreviewGrid > .artifactPointer:focus-visible{border-color:var(--line2);background:var(--panel)}
  .artifactPointer .fileTile{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;background:#EEF3FD}
  .artifactPointer .fileTile.ppt{background:#FDEEEC}.artifactPointer .fileTile.xls{background:#EAF6EE}
  .artifactPointer .fileTile svg{width:16px;height:18px}
  .artifactPointer .fileText{min-width:0;display:flex;flex-direction:column;gap:2px}
  .artifactPointer .chipName{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:14px;line-height:20px;font-weight:500}
  .artifactPointer .chipMeta{font-size:12px;line-height:18px;color:var(--faint)}
  .artifactPointer .chipType{font:inherit;color:inherit;background:none;padding:0}
  .artifactPointer .chipOpen{height:28px;padding:0 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:26px;color:var(--ink);background:var(--panel)}
  .artifactPointer:hover .chipOpen{border-color:var(--line2)}

  .righttabs{margin-left:auto;display:flex;gap:2px}
  .righttabs button{border:0;background:transparent;border-radius:var(--r-sm);padding:5px 7px;font-size:12px;color:var(--muted)}
  .righttabs button.active,.righttabs button:hover{background:var(--panel);color:var(--ink)}
  .sidebody{flex:1;overflow:auto;padding:0}
  /* run-state rail: stacked sections (Progress / Outputs / Context) + collapsible Sources/Review */
  .railSec{padding:12px 14px;border-bottom:1px solid var(--line-soft)}
  .railHead{display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:.04em;color:var(--faint);text-transform:uppercase;margin-bottom:9px}
  .railCount{margin-left:auto;font-size:11px;color:var(--faint);font-weight:500}
  .railSteps{display:flex;flex-direction:column;gap:7px}
  .railStep{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
  .railStep.live{color:var(--accent-ink);font-weight:500}
  .railStepTxt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .railAt{font-size:11px;color:var(--faint);flex:0 0 auto}
  .railDot{width:6px;height:6px;border-radius:50%;background:var(--line2);flex:0 0 auto}
  .railSpin{width:9px;height:9px;border-radius:50%;border:2px solid var(--line2);border-top-color:var(--accent);animation:spin .85s linear infinite;flex:0 0 auto}
  .railFiles{display:flex;flex-direction:column;gap:7px}
  .railFile{display:flex;align-items:center;gap:8px;width:100%;border:1px solid var(--line);background:var(--panel);border-radius:var(--r-md);padding:8px 10px;text-align:left;cursor:pointer}
  .railFile:hover{border-color:var(--line2)}
  .railFileName{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;color:var(--text)}
  .railFileMeta{font-size:11px;color:var(--faint);flex:0 0 auto}
  .railSub{font-size:11px;color:var(--faint);margin:9px 0 5px}
  .railSub:first-of-type{margin-top:0}
  .railChips{display:flex;flex-wrap:wrap;gap:5px}
  .railChip{font-size:12px;background:var(--green2);color:var(--green);border-radius:var(--r-pill);padding:2px 9px}
  .railData{font-size:12.5px;color:var(--text);line-height:1.5}
  .railWarn{color:var(--orange)}
  .railDetails{border-bottom:1px solid var(--line-soft)}
  .railDetails>summary{list-style:none;display:flex;align-items:center;gap:7px;padding:12px 14px;font-size:11px;letter-spacing:.04em;color:var(--faint);text-transform:uppercase;cursor:pointer}
  .railDetails>summary::-webkit-details-marker{display:none}
  .railDetails>summary::before{content:"\203A";color:var(--faint);font-size:14px;transition:transform .15s}
  .railDetails[open]>summary::before{transform:rotate(90deg)}
  .railDetBody{padding:0 14px 12px}
  .card{border:1px solid var(--line);background:var(--panel);border-radius:var(--r-lg);padding:11px;margin-bottom:10px;transition:transform var(--dur-fast) var(--ease),box-shadow var(--dur-fast) var(--ease),border-color var(--dur-fast) var(--ease)}
  .card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:var(--line2)}
  .card h4{font-size:13px;margin:0 0 4px}.card p{margin:0;color:var(--muted);font-size:12px}
  .sourceLink{display:inline-flex;margin-top:8px;font-size:12px;color:var(--accent-ink);text-decoration:none}
  .sourceLink:hover{text-decoration:underline;text-underline-offset:3px}
  .statusline{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .badge{font-size:11px;border:1px solid var(--line);border-radius:var(--r-pill);padding:2px 7px;color:var(--muted)}
  .badge.Verified{color:var(--green);background:var(--green2);border-color:#c3e7d5}
  .badge.Sparse,.badge.Missing{color:var(--orange);background:var(--orange2);border-color:#edd09d}
  .badge.Error{color:var(--red);background:var(--red2);border-color:#efc3c3}
  .activity{font-size:12px;color:var(--muted);padding:7px 0;border-bottom:1px solid var(--line-soft)}
  .hidden{display:none!important}
  /* Centred on the VIEWPORT, above every overlay, and width-capped so a long message wraps instead of
     running under the pane divider. Was a raw #15171a pill at 12px with no cap. */
  .toast{position:fixed;left:50%;bottom:24px;z-index:1200;transform:translateX(-50%) translateY(6px);
         background:var(--ink);color:var(--panel);border:1px solid var(--ink);border-radius:var(--r-pill);
         padding:9px 16px;font-family:var(--sans);font-size:13px;line-height:1.45;font-weight:500;
         max-width:min(420px,calc(100vw - 32px));text-align:center;box-shadow:var(--shadow);
         opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}
  .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

  @media(max-width:1050px){
    .app.running .runtime.has-artifact{grid-template-columns:minmax(240px,min(34vw,var(--left))) var(--runtime-gutter) minmax(0,1fr)}.pane.right,#gutArtifactEvidence{display:none}
    .artifactWrap,.artifactPage,.artifactBody,.monitorDoc{min-width:0;max-width:100%}
    .mbObjectProfile dl{grid-template-columns:repeat(2,minmax(0,1fr))}
    .mbPipelineToolbar{align-items:flex-start;flex-direction:column}.mbPipelineTabs{align-self:stretch}.mbPipelineTab{flex:1}
    .monitorWorkspace{grid-template-columns:minmax(220px,.3fr) minmax(0,1fr)}
    .kbShell{grid-template-columns:var(--kb-left,300px) var(--runtime-gutter) minmax(0,1fr)}
    .knowledgePage.kbHome .kbItem{grid-template-columns:1fr;align-items:start}
    .knowledgePage.kbHome .kbItemTop,.knowledgePage.kbHome .kbTags,.knowledgePage.kbHome .kbItemMeta,.knowledgePage.kbHome .kbSummary,.knowledgePage.kbHome .kbItemActions{grid-column:1}
    .knowledgePage.kbHome .kbSummary{-webkit-line-clamp:2}
    .knowledgePage.kbHome .kbItemActions{justify-content:flex-start;flex-wrap:wrap}
    .kbDetailBody{grid-template-columns:1fr}
    .monitorDbLayout{grid-template-columns:1fr}.typeGrid{grid-template-columns:repeat(3,1fr)}
    .calWrap{grid-template-columns:1fr}.calDetail{display:none}
    .last{display:none}
  }
  /* Phones: the rail is a drawer behind a menu button in a slim top bar (it used to be hidden with no way to
     reach Monitors, history, settings or sign-out). */
  @media(max-width:760px){
    .top{display:flex;align-items:center;gap:10px;flex:0 0 auto;height:48px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--panel)}
    .top .status,.top .crumb{display:none}     /* every page has its own title; the bar is the app's, not the page's */
    .topLogo{display:block;height:20px;width:auto}
    .navMenuBtn{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:var(--r-md);background:var(--panel);color:var(--ink);cursor:pointer}
    .navMenuBtn svg{width:18px;height:18px}
    .navMenuBtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
    .rail{position:fixed;top:0;bottom:0;left:0;z-index:70;width:min(280px,84vw);transform:translateX(-105%);transition:transform .18s ease,visibility 0s linear .18s;visibility:hidden}
    .app.nav-open .rail{transform:none;visibility:visible;transition:transform .18s ease;box-shadow:0 10px 40px rgba(20,30,45,.18)}
    .navScrim{position:fixed;inset:0;z-index:69;background:rgba(26,29,33,.32)}
    .railToggle{display:none}
    .navKbd{display:none}                       /* no keyboard shortcut to advertise on a phone */
    .userLangMenu{left:auto;right:0;top:auto;bottom:calc(100% + 4px)}   /* the drawer's edge leaves no room to the right */
    /* the add form is the screen while it is open: the list and its filters sit under it with no room to show */
    .monitorWrap.building .mbControls,.monitorWrap.building .mbSplit{display:none}
    .monitorWrap.building .monitorBuilder.open{flex:1 1 auto;min-height:0;max-height:none;margin-bottom:10px}
    /* target conditions stack, the AND / OR between them centred */
    .monitorTargetConditions{flex-direction:column;align-items:stretch}
    .monitorTargetJoin{align-self:center}
    /* a watch's headline numbers wrap into rows instead of running off the edge of the card */
    .mbOverviewStats{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));overflow:visible}
  }
  @media(max-width:760px){
    .app{grid-template-columns:1fr}.app.running .runtime,.app.running .runtime.has-artifact,.app.running .runtime.has-artifact.evidence-collapsed,.app.running .runtime.has-artifact.artifact-wide{grid-template-columns:minmax(0,1fr)}.runtime.has-artifact .pane.left,.runtimeGutter{display:none}.start{padding:24px 14px 70px}
    .kbShell{grid-template-columns:1fr;overflow:auto}.kbGutter{display:none}.kbListPane{min-height:260px}.kbDetail{min-height:560px}.kbInfo{grid-template-columns:1fr}
    .settingsPage{padding:0}.settingsWrap{width:100%;height:100%;border-radius:0;flex-direction:column}.settingsNav{flex:0 0 auto;flex-direction:row;flex-wrap:wrap;padding:12px;border-right:0;border-bottom:1px solid var(--line)}.settingsNavHd{display:none}.settingsLogout{margin:0 0 0 auto}
    .monitorTop{height:auto;min-height:54px;padding:10px 12px}.monitorBuilder{margin:10px 10px 0}.monitorListPane{padding:10px}.monitorWorkspace{grid-template-columns:1fr;overflow:auto}.signalInbox{border-left:0;border-top:1px solid var(--line);min-height:480px}.monitorBuilderGrid,.monitorConfirmGrid{grid-template-columns:1fr}.monitorConfirmField.wide{grid-column:auto}.typeGrid{grid-template-columns:repeat(2,1fr)}.monitorItem{grid-template-columns:18px minmax(0,1fr)}.monitorActions{grid-column:2;justify-content:flex-start}.detailActions{justify-content:flex-start}.monitorArtifactBody{padding:8px}.monitorDoc{width:100%;padding:14px 10px}.factGrid{grid-template-columns:1fr}.factGrid b{border-bottom:0;padding-bottom:3px}.factGrid span{padding-top:0}
    .mbOverviewHead{align-items:flex-start;flex-direction:column}.mbPeriodStrip{align-items:flex-start;flex-direction:column;gap:8px}.mbPeriodChecked{margin-left:0}.mbTopEvents{grid-template-columns:1fr}.mbTopEvent{border-right:0;border-bottom:1px solid var(--line-soft)}.mbTopEvent:last-child{border-bottom:0}.mbScopeCount{width:100%;margin-left:0}.mbFeedToolbar .mbLastCk{width:100%;margin-left:0}
    .mbObjectProfile dl{grid-template-columns:1fr}
    .tpl{grid-template-columns:1fr;gap:6px}.tools{flex-wrap:wrap}   /* palette: source tags under the text, not squeezing it */
    /* 珠峰洞察 list: one card per row; the title and 添加监控 stay on one line and the search box takes what is left */
    .mbBoard{grid-template-columns:minmax(0,1fr)}.mbRow{min-height:0;padding:16px;border-right:0}
    .monitorTop{gap:10px}.monitorHeading{flex:none}.monitorTitle{white-space:nowrap}.monitorAddToggle{flex:none;padding:0 12px;white-space:nowrap}.mbSearchWrap{flex:1;min-width:0}.mbSearchWrap input{width:100%;min-width:0}
    .mbReadoutItem{grid-template-columns:1fr;gap:3px}.mbHeatTbl thead th:first-child,.mbHeatTbl tbody th{width:170px}.mbHeatTbl{font-size:11px}
    .mbListSearch{align-items:stretch;flex-wrap:wrap}.mbListSearch input{flex-basis:100%}
  }

  .mbBadge:is(.drug,.company,.target,.modality,.disease,.trial,.topic,.field){background:var(--tag-purple-bg);color:var(--tag-purple)}
  .mbBadge.custom{background:var(--panel2);color:var(--muted)}
  /* Compact model menu, anchored to the chip and clamped to the visible composer. */
  .modeMenu{width:224px;max-width:calc(100vw - 24px);padding:4px;border-radius:var(--r-lg);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 6px 22px rgba(20,30,45,.09)}
  .modeOpt{padding:8px 10px;border-radius:8px;grid-template-columns:minmax(0,1fr) 16px;align-items:center;gap:12px}
  .modeOpt::after{content:"";width:16px;height:16px;background:var(--accent);visibility:hidden;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.4 6.6 11.4 12.5 4.8'/%3E%3C/svg%3E") center/16px 16px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.4 6.6 11.4 12.5 4.8'/%3E%3C/svg%3E") center/16px 16px no-repeat}
  .modeOpt.active::after{visibility:visible}
  .modeOpt:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
  .modeOpt small{font-size:12px;line-height:1.4;margin-top:2px}
  .modeChip .modeDot{display:none}

/* ---- "确认牛眼图数据" curation panel (landscape builds) — tokens and recipes per docs/DESIGN_SYSTEM.md ---- */
.curActions{display:flex;gap:8px;flex-wrap:wrap}
.curActions button{height:var(--ctl-md);padding:0 13px;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:var(--r-sm);font:inherit;cursor:pointer}
.curActions button:hover{border-color:var(--line2)}
.curActions button.primary{background:var(--accent-strong);border-color:var(--accent-strong);color:#fff;font-weight:600}
.curModal{position:fixed;inset:0;z-index:80;background:rgba(25,25,25,.3);display:flex;align-items:center;justify-content:center;padding:24px}
.curDialog{width:min(1180px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow)}
.curHead{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 24px;border-bottom:1px solid var(--line)}
.curHead h2{margin:2px 0 4px;font:500 16px/24px var(--sans);color:var(--ink)}
.curKicker{font-size:13px;color:var(--faint)}
.curSteps{display:flex;gap:10px;font-size:14px;color:var(--faint)}.curSteps .on{color:var(--accent-ink)}
.curClose{width:32px;height:32px;border:0;background:transparent;border-radius:6px;font-size:24px;line-height:1;color:var(--ink);cursor:pointer}.curClose:hover{background:var(--panel2)}
.curBody{display:grid;grid-template-columns:minmax(0,1fr) 312px;gap:0;padding:0;overflow:auto;min-height:0}
.curMain{min-width:0;display:flex;flex-direction:column;gap:16px;padding:24px}
.curTools{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.curTools button,.curPager button,.curSideActions button,.curFoot button{height:var(--ctl-md);padding:0 16px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:var(--r-sm);font:inherit;font-size:14px;cursor:pointer}
.curTools button:hover,.curPager button:hover,.curSideActions button:hover,.curFoot button:hover{border-color:var(--line2)}
/* segments keep their hairline on hover (the darker hover border read as a thick divider); hover tints instead */
.curTools .curSeg button:hover{border-color:var(--line);border-left:0;border-top:0;border-bottom:0}.curTools .curSeg button:last-child:hover{border-right:0}
.curTools .curSeg button:not(.on):hover{background:var(--panel2)}
.curTools button:disabled,.curPager button:disabled,.curSideActions button:disabled,.curFoot button:disabled{opacity:.45;cursor:default}
.curFoot button.primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--panel);font-weight:500}
.curSideActions button.primary{background:var(--panel);border-color:var(--accent);color:var(--accent-ink);font-weight:500}
.curSeg{display:inline-flex;border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden}
.curSeg button{border:0;border-radius:0;border-right:1px solid var(--line)}.curSeg button:last-child{border-right:0}
.curSeg button.on{background:var(--accent-weak);color:var(--accent-ink)}   /* the same chosen look as the form chips */
.curSeg button:focus{outline:0;box-shadow:none}.curSeg button:focus-visible{box-shadow:inset 0 0 0 2px var(--accent-weak)}
.curAll{margin-left:auto}   /* select all / none sit at the right end of the toolbar */
.curPager .hmArrow{width:28px;height:28px;padding:0}
.curPager .hmArrow svg{width:10px;height:10px}
.curTable input[type=checkbox]{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin:0;border:1px solid var(--line2);border-radius:4px;background:var(--panel) center/12px 12px no-repeat;cursor:pointer;vertical-align:middle}
.curTable input[type=checkbox]:checked{border-color:var(--accent);background-color:var(--accent);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.3 6.8 11 12 5.2'/%3E%3C/svg%3E")}
.curSearch{height:var(--ctl-md);padding:0 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--text);font:inherit;font-size:14px;min-width:204px}
.curSearch:focus,.curText:focus{border-color:var(--line2);box-shadow:none;outline:0}
.curTableWrap{border:1px solid var(--line);border-radius:var(--r-sm);overflow:auto}
.curTable{width:100%;border-collapse:collapse;font-size:15px}
.curTable th{position:sticky;top:0;background:var(--panel2);text-align:left;font-weight:500;font-size:15px;color:var(--ink);padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.curTable td{padding:16px 12px;border-bottom:1px solid var(--line);color:var(--ink);vertical-align:middle;line-height:22px}
.curTable td b{color:var(--ink);font-weight:400}
.curTable tr.on td{background:var(--inset)}
.curTable tr.held td{color:var(--muted)}
.curPill{margin-left:6px;border-radius:4px;padding:1px 8px;font-size:12px;font-weight:400;background:var(--tag-teal-bg);color:var(--tag-teal);white-space:nowrap;display:inline-block}
.curReason{color:var(--orange)}
.curEmpty{text-align:center;color:var(--faint)}
.curPager{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--muted)}
.curPager span:last-child{display:flex;gap:6px}
.curSub{font-size:15px;color:var(--ink);margin-bottom:12px}
.curChips{display:flex;gap:6px;flex-wrap:wrap}
.curChip{height:32px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:6px;padding:0 16px;font:inherit;font-size:14px;cursor:pointer}
.curChip.on{background:var(--panel);border-color:var(--accent);color:var(--accent-ink)}
.curSide{border-left:1px solid var(--line);padding:24px;background:var(--inset);display:flex;flex-direction:column;gap:12px}
.curSideTitle{font:500 15px/22px var(--sans);color:var(--ink)}
.curHint{margin:0;font-size:13px;line-height:20px;color:var(--muted)}
.curText{width:100%;box-sizing:border-box;padding:8px 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--text);font:inherit;font-size:13px;resize:vertical}
.curExamples{display:flex;flex-direction:column;gap:6px}
.curEx{text-align:left;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:var(--r-sm);padding:8px 16px;font:inherit;font-size:14px;cursor:pointer}
.curEx:hover{border-color:var(--line2)}
.curSideActions{display:flex;gap:12px;justify-content:flex-end}
.curMsg{font-size:12px;color:var(--text);min-height:18px}
.curFoot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 24px;border-top:1px solid var(--line)}
.curFoot span:last-child{display:flex;gap:8px}
.curNote{font-size:14px;color:var(--muted)}
@media (max-width:860px){.curBody{grid-template-columns:1fr}.curSide{border-left:0;padding-left:0;border-top:1px solid var(--line-soft);padding-top:12px}}
/* History navigation responds immediately while the authoritative conversation is fetched. */
.main{position:relative}
.sessionLoading{position:absolute;inset:0;z-index:110;background:var(--bg,#f7f8fa);display:grid;place-items:center;padding:32px}
.sessionLoadingBody{width:min(480px,100%);text-align:center;color:var(--muted)}
.sessionLoadingBody h2{font-size:19px;line-height:1.5;color:var(--text);overflow-wrap:anywhere;margin:18px 0 8px}
.sessionLoadingBody p{font-size:14px}
.sessionLoadingBody button{border:1px solid var(--line,#dfe3eb);background:var(--panel,#fff);color:inherit;border-radius:10px;padding:8px 18px;margin:12px 5px;cursor:pointer;font:inherit}
.sessionSkeleton{display:grid;gap:12px;margin:28px auto;max-width:360px}
.sessionSkeleton i{display:block;height:12px;border-radius:6px;background:var(--line,#dfe3eb)}
.sessionSkeleton i:last-child{width:65%}

/* Cumulative baseline plus latest check; small deltas do not compete with totals. */
.mbMetricNumber{display:flex;align-items:baseline;justify-content:center;gap:4px;padding:0 6px}
.mbMetricDelta{font-size:11px;font-weight:650;color:var(--green);font-variant-numeric:tabular-nums}
.mbMetricDelta.negative{color:var(--red)}
.mbMetricLegend{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 4px;font-size:13px;color:var(--muted)}
.mbMetricLegend em{font-style:normal;color:var(--green);font-weight:600}.mbMetricLegend span{color:var(--faint)}
.mbChangeSummary{margin:8px 0 12px;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.mbTopEvent p.mbChangeSummary{display:block;-webkit-line-clamp:unset;margin-bottom:12px}
.mbFd small{display:block;font-size:12px;line-height:18px;color:var(--faint)}
.mbCollectedDate{margin-top:4px}

.mbReadoutMeta{overflow-wrap:anywhere}.mbClinicalDrugDetails{display:inline}.mbClinicalDrugDetails summary{cursor:pointer}.mbClinicalDrugDetails[open]{display:block}

/* a question queued in a tab that was reloaded before a run slot freed (resumeQueuedSession) */
.queuedLost{color:var(--muted);font-size:13px;line-height:1.6}
.queuedResend{margin-left:8px;padding:2px 10px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text);font-size:12px;cursor:pointer}
.queuedResend:hover{border-color:var(--accent)}
.queuedResend:disabled{opacity:.5;cursor:default}
