.composer:focus-within{border-color:rgba(216,174,94,.5);box-shadow:0 0 0 4px rgba(216,174,94,.08)}.composer textarea{display:block;width:100%;min-height:26px;max-height:220px;padding:2px 6px 10px 0;border:0;outline:0;resize:none;background:transparent;color:var(--text);font:15.5px/1.55 var(--sans)}.c-row{display:flex;align-items:center;gap:6px}.c-row .grow{flex:1}.toggle{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--soft);font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap}.toggle[aria-pressed="true"]{color:var(--text);border-color:rgba(216,174,94,.42);background:rgba(216,174,94,.09)}.toggle .ld{width:6px;height:6px;border-radius:50%;background:var(--mute)}.toggle[aria-pressed="true"] .ld{background:var(--up);box-shadow:0 0 8px var(--up)}.send{flex:none;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--brass);color:var(--brass-ink);cursor:pointer}.send:disabled{background:var(--raise2);color:var(--mute);cursor:default}.thread{display:none;max-width:800px;margin:0 auto;padding:30px 22px 20px}.started .thread{display:block}.started .empty{display:none}.msg{margin:0 0 32px}.msg.user{display:flex;justify-content:flex-end}.bubble{max-width:min(82%,560px);padding:11px 16px;border-radius:18px 18px 6px 18px;background:var(--raise);border:1px solid var(--line);font-size:15px;line-height:1.55;white-space:pre-wrap}.msg.ai{display:grid;grid-template-columns:32px minmax(0,1fr);gap:14px}.ai-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;color:var(--brass);background:rgba(216,174,94,.08);border:1px solid rgba(216,174,94,.26)}.ai-body{min-width:0;padding-top:4px;color:var(--soft);font-size:15.5px;line-height:1.7}.ai-body>p{margin:0 0 14px}.ai-body strong{color:var(--text);font-weight:600}.ai-body h3{margin:26px 0 8px;font:400 26px/1.2 var(--serif);color:var(--text)}.thinking{display:flex;align-items:center;gap:12px;height:30px}.shimmer{font-size:14.5px;color:var(--mute);animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{50%{opacity:.45}}.actions{display:flex;gap:2px;margin-top:12px}.card{margin:8px 0 20px;border-radius:16px;overflow:hidden;border:1px solid var(--line2);background:linear-gradient(180deg,rgba(24,38,57,.9),rgba(13,23,36,.94));color:var(--soft)}.card-title{display:flex;justify-content:space-between;gap:10px;padding:16px 18px 6px}.card-title b{color:var(--text)}.card-foot{padding:10px 18px;border-top:1px solid var(--line);font-size:12px;color:var(--mute)}.footer{position:relative;z-index:3;flex:none;padding:6px 20px 12px}.dock-bottom{max-width:800px;margin:0 auto}.fine{margin:9px 0 0;text-align:center;font-size:11.5px;color:var(--mute)}.scrim{display:none}@media(max-width:900px){.app{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;top:0;bottom:0;left:0;z-index:60;width:min(86vw,320px);transform:translateX(-102%);transition:.3s}.nav-open .sidebar{transform:none}.scrim{display:block;position:fixed;inset:0;z-index:50;background:rgba(3,7,12,.6);opacity:0;pointer-events:none}.nav-open .scrim{opacity:1;pointer-events:auto}.only-mobile{display:grid}}@media(max-width:640px){.topbar{padding:0 8px;height:54px}.status .long{display:none}.empty{justify-content:flex-start;padding-top:48px}.hero-chart{height:300px}.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tile{min-height:98px}.composer{padding:12px 10px 8px 14px;border-radius:20px}.toggle .opt{display:none}.thread{padding:22px 14px 16px}.msg.ai{grid-template-columns:minmax(0,1fr)}.footer{padding:4px 10px 10px}}

/* Bellwether 1.2 — professional response system */
.answer-copy{margin-top:18px;color:var(--soft);font-size:15.5px;line-height:1.72}
.answer-copy>p{margin:0 0 14px}
.answer-copy h2{margin:26px 0 10px;padding-top:2px;font:400 25px/1.2 var(--serif);color:var(--text);letter-spacing:-.01em}
.answer-copy h3{margin:22px 0 9px;font:600 15px/1.3 var(--sans);color:var(--text);letter-spacing:0}
.answer-copy h4{margin:18px 0 8px;font:600 14px var(--sans);color:var(--text)}
.answer-copy code{padding:2px 6px;border-radius:6px;background:rgba(255,255,255,.055);border:1px solid var(--line);font:12.5px var(--mono);color:var(--brass2)}
.answer-copy a{color:var(--brass2);text-decoration:none;border-bottom:1px solid rgba(216,174,94,.3)}
.answer-copy blockquote{margin:14px 0 18px;padding:13px 15px;border-left:2px solid var(--brass);background:linear-gradient(90deg,rgba(216,174,94,.08),transparent);color:var(--text);border-radius:0 10px 10px 0}
.answer-copy .bull-head,.answer-copy .bear-head,.answer-copy .risk-head,.answer-copy .watch-head{display:flex;align-items:center;gap:8px}
.answer-copy .bull-head::before,.answer-copy .bear-head::before,.answer-copy .risk-head::before,.answer-copy .watch-head::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--brass)}
.answer-copy .bull-head::before{background:var(--up)}.answer-copy .bear-head::before,.answer-copy .risk-head::before{background:var(--down)}
.md-table-wrap{overflow:auto;margin:12px 0 20px;border:1px solid var(--line2);border-radius:13px;background:rgba(10,18,29,.45)}
.answer-copy table{width:100%;border-collapse:collapse;min-width:480px;font-size:13.5px}
.answer-copy th,.answer-copy td{padding:10px 13px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.answer-copy th{font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--mute);background:rgba(255,255,255,.025)}
.answer-copy td{color:var(--soft)}.answer-copy tr:last-child td{border-bottom:0}
.market-pro{margin-top:0;margin-bottom:24px;box-shadow:0 24px 70px -42px rgba(0,0,0,.8)}
.market-pro .chart-wrap{padding:8px 8px 0 14px;min-height:220px}
.pro-chart{min-height:230px}
.gridline{stroke:rgba(124,140,163,.12);stroke-width:1}
.chart-empty{display:grid;place-items:center;min-height:180px;color:var(--mute);font-size:13px}
.trend{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font:600 11.5px var(--sans);text-transform:capitalize}
.trend.good{color:var(--up);background:rgba(58,212,139,.10)}.trend.bad{color:var(--down);background:rgba(242,92,110,.10)}.trend.neutral{color:var(--brass2);background:rgba(216,174,94,.10)}
.good{color:var(--up)!important}.bad{color:var(--down)!important}.neutral{color:var(--brass2)!important}
.tf-strip{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);background:rgba(0,0,0,.08)}
.tf-strip>div{padding:10px 14px;border-right:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px}
.tf-strip>div:last-child{border-right:0}.tf-strip span{font-size:11.5px;color:var(--mute)}.tf-strip b{font:600 12px var(--sans);text-transform:capitalize}
.source-card{margin-top:22px;padding:14px;border:1px solid var(--line);border-radius:14px;background:rgba(10,18,29,.45)}
.source-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.source-title b{font-size:13px;color:var(--text)}.source-title span{font-size:11.5px;color:var(--mute)}
.source-list{display:grid;gap:7px}.source-list a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 10px;border:1px solid transparent;border-radius:9px;color:var(--soft);text-decoration:none;background:rgba(255,255,255,.018)}
.source-list a:hover{border-color:rgba(216,174,94,.25);background:rgba(216,174,94,.04)}.source-list small{font-size:10.5px;color:var(--mute);white-space:nowrap}
.activity-card{margin-top:0;margin-bottom:24px}.activity-head,.activity-row{display:grid;grid-template-columns:minmax(140px,1.2fr) minmax(180px,1.6fr) 80px;gap:14px;align-items:center;padding:9px 16px;border-top:1px solid var(--line)}
.activity-head{padding-top:8px;padding-bottom:8px;font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--mute)}
.activity-row>div:first-child b{display:block;color:var(--text);font-size:13.5px}.activity-row small{display:block;color:var(--mute);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.activity-meter{display:grid;grid-template-columns:minmax(60px,1fr) 48px;gap:8px;align-items:center;position:relative}
.activity-meter::before{content:"";height:6px;background:rgba(124,140,163,.12);border-radius:99px;grid-column:1}
.activity-meter>span{height:6px;background:linear-gradient(90deg,var(--brass),var(--brass2));border-radius:99px;grid-column:1;grid-row:1;min-width:4px}
.activity-meter b{grid-column:2;grid-row:1;font:500 12px var(--mono);color:var(--text);text-align:right}
.activity-row>div:last-child{text-align:right;font:600 12.5px var(--mono)}
@media(max-width:640px){
  .answer-copy{font-size:14.5px}.answer-copy h2{font-size:22px}
  .market-pro .chart-wrap{padding-left:6px}.pro-chart{min-height:195px}
  .tf-strip{grid-template-columns:1fr}.tf-strip>div{border-right:0;border-bottom:1px solid var(--line)}.tf-strip>div:last-child{border-bottom:0}
  .activity-head,.activity-row{grid-template-columns:1fr 1fr 65px;padding-left:12px;padding-right:12px}.activity-row small{max-width:120px}
}

/* NIR responsive hardening — Bellwether */
@media(max-width:900px){
  html,body{width:100%;max-width:100%;overflow:hidden}
  body{overscroll-behavior:none}
  .app{width:100%;max-width:100%;min-width:0;height:100dvh}
  .main,.scroll,.empty,.thread,.footer,.dock-home,.dock-bottom,.composer{width:100%;min-width:0;max-width:100%}
  .main{overflow:hidden}
  .thread,.ai-body,.card,.answer-copy{overflow-wrap:anywhere}
  .sidebar{max-width:86vw;padding-left:max(12px,env(safe-area-inset-left));padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .topbar{min-width:0;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
  .topbar>*{min-width:0}
  .status{min-width:0;flex:0 1 auto}
  .menu{max-width:calc(100vw - 20px)}
  .card,.card-title,.sc-head,.sc-bar,.stats,.stat,.cases,.m-row,.tf-strip,.activity-head,.activity-row,.source-list,.source-list a{min-width:0;max-width:100%}
  .source-list a>*{min-width:0}
}
@media(max-width:640px){
  .model{min-width:0;flex:1 1 auto}
  .model-btn{max-width:100%;padding-left:7px;padding-right:7px;gap:6px;font-size:14px}
  .model-btn>svg{display:none}
  .tier{font-size:10px;padding:2px 6px}
  .status{margin-left:0;padding:0 9px;gap:6px;max-width:122px}
  .status .short{overflow:hidden;text-overflow:ellipsis}
  .empty{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:26px}
  .hello{max-width:100%}
  .hello h1{font-size:clamp(34px,11vw,52px);text-wrap:balance}
  .dock-home{max-width:100%}
  .composer textarea{font-size:16px}
  .c-row{min-width:0;gap:4px}
  .c-row .grow{min-width:0}
  .toggle{padding:0 9px;gap:5px;min-width:0}
  .thread{max-width:100%;overflow-x:hidden}
  .bubble{max-width:94%}
  .ai-body{font-size:15px;line-height:1.65}
  .card-title{align-items:flex-start}
  .sc-head{gap:9px}
  .sc-head>*{min-width:0}
  .sc-px{flex:none}
  .sc-name,.sc-sym{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sc-bar{align-items:flex-start}
  .tabs{max-width:100%;overflow-x:auto;scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .tabs button{flex:none}
  .readout{max-width:100%;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
  .readout::-webkit-scrollbar{display:none}
  .md-table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
  .source-list a{align-items:flex-start}
  .source-list small{white-space:normal;text-align:right}
  .activity-head,.activity-row{gap:8px}
  .activity-meter{min-width:0}
  .footer{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
@media(max-width:480px){
  .topbar{gap:3px;height:52px;padding-left:max(5px,env(safe-area-inset-left));padding-right:max(5px,env(safe-area-inset-right))}
  .topbar>.icon-btn{width:34px;height:34px}
  .model-btn{font-size:13px;gap:4px;padding-left:5px;padding-right:5px}
  .tier{font-size:9.5px}
  .status{height:30px;max-width:92px;padding:0 7px;font-size:11.5px}
  .status .dot{flex:none}
  .empty{padding-top:34px}
  .hero-chart{height:255px}
  .hello-kicker{font-size:13px}
  .hello h1{font-size:clamp(31px,10vw,44px);margin-bottom:10px}
  .hello p{font-size:14.5px;line-height:1.45;margin-bottom:18px}
  .tiles{grid-template-columns:1fr;gap:8px}
  .tile{min-height:76px;gap:8px;padding:12px}
  .composer{padding:10px 7px 7px 11px}
  .composer textarea{padding-right:3px}
  .c-row{gap:2px}
  .c-row .icon-btn.sm{width:32px;height:32px}
  .toggle{height:32px;padding:0 7px;font-size:12px}
  #deepToggle svg{display:none}
  .send{width:38px;height:38px}
  .thread{padding-left:10px;padding-right:10px}
  .msg{margin-bottom:26px}
  .ai-body h2{font-size:22px}
  .ai-body h3{font-size:22px}
  .chips{display:grid;grid-template-columns:1fr}
  .chips button{width:100%;white-space:normal}
  .sc-head{flex-wrap:wrap}
  .sc-px{width:100%;margin-left:0;text-align:left}
  .stats{grid-template-columns:1fr 1fr}
  .m-row{grid-template-columns:minmax(0,1fr) auto!important;gap:8px}
  .m-row>*:nth-child(n+3){display:none}
  .activity-head,.activity-row{grid-template-columns:minmax(0,1fr) 74px}
  .activity-head>*:nth-child(2),.activity-row>*:nth-child(2){display:none}
  .source-title{align-items:flex-start;flex-wrap:wrap}
}
@media(max-width:360px){
  .topbar>.icon-btn{width:32px;height:32px}
  .model-btn{font-size:12.5px}
  .status{max-width:78px;font-size:11px}
  .hello h1{font-size:30px}
  .toggle{padding:0 6px;font-size:11.5px}
  .toggle .ld{display:none}
  .send{width:36px;height:36px}
}
@media(max-width:900px) and (max-height:520px){
  .topbar{height:48px}
  .empty{padding-top:18px}
  .hero-chart{height:180px}
  .tiles{margin-top:8px}
}
@media(hover:none) and (pointer:coarse){
  .icon-btn,.new-chat,.hist,.wl-row,.tile,.chips button,.tabs button,.toggle{min-height:44px}
  .send{min-width:42px;min-height:42px}
}
