/* Small additions to or.css (the mockups' stylesheet, copied unchanged) for the live pages. */
.linkbtn { all: unset; cursor: pointer; padding: 0 2px; }
.linkbtn:hover { color: var(--blue); }
.crumb a { color: inherit; }
.crumb a:hover { color: var(--blue); }
.possum { align-items: baseline; }
a.acct { color: var(--text); } a.acct:hover { color: var(--blue); }

/* Accounts & Rules: a wider account list with balance, today's P&L and the status (owner, 2026-11-24) */
@media (min-width: 901px) { .arwrap { grid-template-columns: 300px minmax(0, 1fr); } }
.alist a .l1, .alist a .l3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.alist a .l1 .ac { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alist a .l3 { font-family: var(--mono); font-size: 12px; margin-top: 3px; }
.alist a .l3 .bal { color: var(--text); }
.alist .pill { font-size: 10.5px; padding: 0 6px; line-height: 16px; flex: none; }
.alist.b a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; }
.alist.b a .money2 { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-family: var(--mono); font-size: 12px; align-self: center; }
.alist.b a .money2 .bal { color: var(--text); display: block; }
.pill.daypause { color: var(--amber); border-color: var(--amber-bd); background: var(--amber-bg); }
.pill.failed { color: var(--red); border-color: var(--red-bd); background: var(--red-bg); }
.arcols .seg { gap: 4px; }
.arcols .seg button { padding: 4px 8px; }
.alist .openmark { color: var(--blue); font-size: 11.5px; }
/* Overview accounts table: fits 1440 px without sideways scrolling */
table.accts th, table.accts td { padding-left: 9px; padding-right: 9px; }
table.accts .bar { width: 44px; }
/* integration: Overview's Signals · last 24h */
.sigs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sigs .sigc { display: grid; gap: 2px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.sigs .sigc:hover { border-color: var(--blue); }
.sigs .sigc b { font-size: 16px; }
/* slice 3: webhooks pages */
.ftabs .count.bad { color: var(--red); background: var(--red-bg); border: 1px solid var(--red-bd); border-radius: 9px; padding: 0 6px; }
.bstep.live { opacity: 1; pointer-events: auto; }
.tl .d.fixline { color: var(--text2); }
.gl > div.hit.red { background: var(--red-bg); }
.gl .no.red { color: var(--red); }
.gl .cut { color: #E8D27A; }
.reasons { display: grid; gap: 6px; }
.reasons > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13px; }
.reasons .n { font-family: var(--mono); text-align: right; }
.reasons .f { font-size: 12px; color: var(--muted); }
.signals-pill { font-weight: 600; }
.keyrow .in { font-family: var(--mono); }
.newkey { border: 1px solid var(--amber-bd); background: var(--amber-bg); border-radius: 8px; padding: 10px 12px; }
pre.raw.callsjson { max-height: 260px; overflow: auto; }
.ah td.msg { max-width: 460px; }
button.check { background: transparent; padding: 0; cursor: pointer; font-size: 11px; }
button.check.on { background: var(--blue); }
.filters select.in { width: auto; min-width: 130px; font-family: var(--sans); }

/* Accounts & Rules in Trade Scout's layout: three columns of cards (Account + Drawdown · Daily loss + Profit rules +
   Session and status · Guards), stacking on narrower screens; a helper line under each setting. */
.sc3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.sccol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sc3 .box { margin-bottom: 0; }
.sc3 .rr { grid-template-columns: 118px minmax(0, 1fr); align-items: start; }
.sc3 .rr > label { padding-top: 6px; }
.hl { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.hl .tag { font-size: 10px; }
#pos-box .box { margin-bottom: 12px; }
@media (max-width: 1340px) { .sc3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sc3 > .sccol:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .sc3 { grid-template-columns: minmax(0, 1fr); } .sc3 .rr { grid-template-columns: 1fr; } }
.sc3 .rr { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.sc3 .seg { gap: 4px; }
.sc3 .seg button { padding: 3px 7px; font-size: 12px; }
.sc3 .in.sm, .sc3 .money .in { width: 118px; }
.sc3 #guards-box .gr { grid-template-columns: 34px minmax(0, 1fr) minmax(64px, auto); gap: 8px; }
.sc3 #guards-box .rd { white-space: normal; max-width: 120px; text-align: right; }
.sc3 #guards-box .gr b { margin-right: 4px; }

/* Account Guards: the shield on the tab and the title; the template bar keeps its buttons together on the right;
   Discard / Save next to Activity (owner, 2026-11-25) */
.shield { width: 13px; height: 13px; vertical-align: -2px; margin-right: 6px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.shield path:first-child { fill: rgba(76, 158, 255, .16); stroke: var(--blue); }
.shield .tick { stroke: var(--green); }
h1.withshield .shield { width: 22px; height: 22px; vertical-align: -3px; margin-right: 8px; }
.tplbar > div:first-child { flex: 1 1 260px; min-width: 0; }
.tplacts { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.phead .topsave { display: inline-flex; gap: 8px; }
.phead .topsave:empty { display: none; }
/* Overview filtered to one account */
.focuschip { font-weight: 600; }
.focuschip .x { margin-left: 8px; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 17px; line-height: 22px; cursor: pointer; vertical-align: 3px; }
.focuschip .x:hover { color: var(--text, #E6EDF3); border-color: var(--blue); }
.storyhead { gap: 26px; flex-wrap: wrap; margin-bottom: 14px; }
.storyhead .mfig { display: flex; flex-direction: column; gap: 2px; }

/* ATM lists: a small chart per ATM; click it or "See it in action" to watch it play (owner, 2026-11-25) */
.sparkcell { width: 132px; }
.spark { display: inline-block; width: 120px; height: 40px; cursor: pointer; border-radius: 6px; }
.spark:hover { background: rgba(76, 158, 255, .08); }
/* the filtered account stands out from "Trade Desk" (owner, 2026-11-25) */
.focuschip .ac { color: var(--blue); background: rgba(76, 158, 255, .12); border: 1px solid rgba(76, 158, 255, .35);
  border-radius: 7px; padding: 1px 9px; }
/* the member's master switches (master.js): compact under the account list on Account Guards */
.mcompact .ch { padding: 10px 14px; } .mcompact .cb { padding-left: 14px; padding-right: 14px; }
.mcompact .mnote { padding: 8px 14px 0; line-height: 1.4; }
.mcompact .swrow { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; }
.mcompact .seg { gap: 3px; flex-wrap: nowrap; } .mcompact .seg button { padding: 3px 5px; font-size: 11.5px; }
.mcompact .in.sm { width: 74px; } .mcompact .in.xs { width: 44px; }
.arleft { min-width: 0; }
/* My Account › Connected apps (D22) */
.opt-line { padding: 4px 0; } .opt-line label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.opt-field { display: flex; flex-direction: column; gap: 6px; } .opt-field .in { width: 100%; }
