/* TradeGridz owns content; network-header-v2 owns responsive rails and controls. */
.tg-shell-body{display:grid;min-width:0;align-items:stretch;background:var(--bg)}
.tg-left-rail,.tg-agents-rail{min-width:0;padding:12px 8px;background:#07101a;border:1px solid var(--line)}
.tg-rail-title,.tg-module-heading{margin:0 0 12px;padding:6px 4px 10px;border-bottom:1px solid var(--line);color:var(--cyan);font:900 10px/1.2 Arial,sans-serif;letter-spacing:1px}
.tg-module-pane{min-width:0;overflow-wrap:anywhere}
.tg-tool-link[aria-disabled="true"]{cursor:default}
.tg-tool-link:focus-visible,.tg-shell-body button:focus-visible,.tg-module-heading:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
.tg-agents-rail .panel.chat{padding:0;border:0;background:transparent;min-height:0}
.tg-agents-rail .chat-log{min-height:140px;max-height:240px;padding:7px;overflow-wrap:anywhere}
.tg-agents-rail .message{padding:7px;font-size:11px}
.tg-agents-rail .chat-form{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:stretch}
.tg-agents-rail .chat-form textarea{width:100%;min-width:0;padding:8px;font-size:12px}
.tg-agents-rail .chat-form button{min-width:0;padding:0 4px;font-size:9px}
.tg-agents-rail .tg-chat-actions{margin-top:9px}
/* Leave room to scroll the composer above TradeGridz's 42px ticker + 38px footer. */
.tg-agents-rail{padding-bottom:96px}
@media(max-width:900px){
  .tg-agents-rail .chat-form textarea{font-size:16px}
  .tg-agents-rail .tg-chat-action{min-height:44px}
}
@media(min-width:901px){
  /* Desktop regional scrollers; mobile geometry remains entirely shared. */
  .tg-shell-body{height:calc(100dvh - 162px);min-height:0}
  .tg-shell-body>.workspace,.tg-left-rail,.tg-agents-rail{min-height:0;overflow-y:auto}
  .tg-agents-rail{padding-bottom:16px}
}
