/* FinCopy trading surfaces (T632): the account's trading overview, the Trade sheet (FinQuest's FXS ticket, FinCopy's
   verbs) and the Symbols picker. Shared by the admin console and the member portal through FC.Com.
   Every colour is a FinCopy token from fincopy.css, so both themes follow; buy and sell are --fc-buy / --fc-sell. */

.fc-trade-panel *,.fc-sheet-backdrop *{box-sizing:border-box}
.fc-trade-panel{display:grid;gap:1rem;color:var(--fc-ink)}
.fc-trade-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem}
.fc-trade-head h3{margin:0;font-size:1.05rem}
.fc-trade-head p{margin:.15rem 0 0;color:var(--fc-muted);font-size:.85rem}
.fc-trade-head-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.fc-trade-note{margin:0;padding:.65rem .9rem;border-radius:.6rem;background:var(--fc-surface-soft);color:var(--fc-ink);font-size:.86rem}
.fc-trade-error,.fc-trade-message{margin:0;padding:.65rem .9rem;border-radius:.6rem;font-size:.86rem}
.fc-trade-error{background:color-mix(in srgb,var(--fc-sell) 12%,var(--fc-surface));color:var(--fc-ink);border:1px solid color-mix(in srgb,var(--fc-sell) 40%,transparent)}
.fc-trade-message{background:color-mix(in srgb,var(--fc-buy) 12%,var(--fc-surface));color:var(--fc-ink);border:1px solid color-mix(in srgb,var(--fc-buy) 40%,transparent)}

.fc-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:2.35rem;padding:.4rem .85rem;border:1px solid var(--fc-line);
  border-radius:.55rem;background:var(--fc-surface);color:var(--fc-ink);font:inherit;font-size:.86rem;font-weight:700;cursor:pointer;white-space:nowrap}
.fc-btn:hover:not(:disabled){border-color:var(--fc-accent)}
.fc-btn:disabled{opacity:.5;cursor:not-allowed}
/* TP434 - a button's icon (AIBot's Sparkles), on the admin and member sites alike. */
.fc-btn .fc-icon{flex:0 0 auto;width:1rem;height:1rem;color:var(--fc-accent-strong)}
.fc-btn--primary{border-color:var(--fc-accent);background:var(--fc-accent);color:var(--fc-accent-ink)}
.fc-btn--primary:hover:not(:disabled){background:var(--fc-accent-hover)}
.fc-btn--buy{border-color:var(--fc-buy);background:var(--fc-buy);color:var(--fc-side-ink)}
.fc-btn--sell{border-color:var(--fc-sell);background:var(--fc-sell);color:var(--fc-side-ink)}
.fc-btn--ghost-sell{color:var(--fc-sell)}
.fc-btn--sm{min-height:1.9rem;padding:.2rem .55rem;font-size:.78rem}

.fc-chips{display:flex;flex-wrap:wrap;gap:.45rem}
.fc-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.35rem .65rem;border:1px solid var(--fc-line);border-radius:999px;background:var(--fc-surface);color:var(--fc-ink);font:inherit;font-size:.8rem;cursor:pointer}
.fc-chip:hover{border-color:var(--fc-accent)}
.fc-chip b{font-weight:800}
.fc-chip small{color:var(--fc-muted);font-variant-numeric:tabular-nums}

.fc-card{min-width:0;border:1px solid var(--fc-line);border-radius:.8rem;background:var(--fc-surface);overflow:hidden}
.fc-card-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.6rem .85rem;border-bottom:1px solid var(--fc-line);background:var(--fc-surface-soft);font-size:.78rem;font-weight:800;letter-spacing:.05em}
.fc-card-head span{color:var(--fc-muted);font-weight:700;letter-spacing:0}
.fc-card-empty{padding:.9rem;color:var(--fc-muted);font-size:.85rem;text-align:center}
.fc-table-wrap{overflow:auto}
.fc-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.82rem}
.fc-table th{padding:.5rem .7rem;text-align:left;color:var(--fc-muted);font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;border-bottom:1px solid var(--fc-line)}
.fc-table td{padding:.5rem .7rem;border-bottom:1px solid var(--fc-line);white-space:nowrap;font-variant-numeric:tabular-nums}
.fc-table tr:last-child td{border-bottom:0}
.fc-table .fc-actions{display:flex;gap:.3rem;justify-content:flex-end}
/* Frozen columns: Symbol and Side lead every table and stay in view while the rest of the row scrolls under them. The
   first takes a fixed width and the second starts where it ends; both sit on the card's surface, headers above cells. */
.fc-trade-panel{--fc-freeze-a:7.5rem}
.fc-table .fc-freeze-a,.fc-table .fc-freeze-b{position:sticky;z-index:1;background:var(--fc-surface)}
.fc-table th.fc-freeze-a,.fc-table th.fc-freeze-b{z-index:2}
.fc-table .fc-freeze-a{left:0;width:var(--fc-freeze-a);min-width:var(--fc-freeze-a);max-width:var(--fc-freeze-a);overflow:hidden;text-overflow:ellipsis}
.fc-table .fc-freeze-b{left:var(--fc-freeze-a);box-shadow:inset -1px 0 0 var(--fc-line)}
.fc-buy-ink{color:var(--fc-buy);font-weight:800}
.fc-sell-ink{color:var(--fc-sell);font-weight:800}
.fc-gain{color:var(--fc-buy)}
.fc-loss{color:var(--fc-sell)}
.fc-price-ink{color:var(--fc-accent-strong);font-weight:700}
.fc-number{font-weight:700;white-space:nowrap}
/* The Order records card; a row's own detail toggle (fc-row-detail) keeps its fincopy.css look. */
.fc-trade-panel > details{border:1px solid var(--fc-line);border-radius:.8rem;background:var(--fc-surface);overflow:hidden}
.fc-trade-panel > details > summary{padding:.65rem .85rem;cursor:pointer;font-weight:800;font-size:.85rem}

/* ---- the Trade sheet: FinQuest's UsrModal and FxsTradeSheet (TP430 §5), in px on a 14px / 1.5 base ---------------- */
.fc-sheet-backdrop{position:fixed;inset:0;z-index:1400;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--fc-scrim);backdrop-filter:blur(2px);overflow:auto}
.fc-sheet{position:relative;display:flex;flex-direction:column;width:min(100%,760px);max-height:calc(100vh - 32px);border:1px solid var(--fc-line);border-radius:16px;
  background:var(--fc-surface);color:var(--fc-ink);box-shadow:var(--fc-shadow);outline:none;font-size:14px;line-height:1.5}
.fc-sheet--wide{width:min(100%,58rem)}
.fc-sheet--fill{height:min(92vh,48rem)}
.fc-sheet--fill .fc-sheet-body{display:flex;flex-direction:column;overflow:hidden}
.fc-sheet--fill .fc-transfer{flex:1;min-height:0}
/* Account settings also live inside the accounts drawer; keep the sheet's own body and footer there. */
.mem-drawer-panel > .mem-stg-embedded{flex:1 1 auto;width:100%;max-width:none;max-height:none;min-height:0;border:0;border-radius:0;box-shadow:none}
.fc-sheet-header{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--fc-line)}
.fc-sheet-tile{display:grid;place-items:center;flex:0 0 auto;width:32px;height:32px;border-radius:9px;background:color-mix(in srgb,var(--fc-accent) 14%,transparent);color:var(--fc-accent-strong);font-size:16px;font-weight:800;line-height:1}
.fc-sheet-tile--sell{background:color-mix(in srgb,var(--fc-sell) 14%,transparent);color:var(--fc-sell)}
.fc-sheet-title{min-width:0;flex:1}
.fc-sheet-title h3{margin:0;font-size:14px;font-weight:700;line-height:1.5}
.fc-sheet-title p{margin:2px 0 0;overflow:hidden;color:color-mix(in srgb,var(--fc-ink) 70%,transparent);font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}
.fc-trade-sheet .fc-sheet-header .fc-btn{min-height:32px;padding:0 12px;border-radius:8px;font-size:12.5px}
/* The refresh chip (BizMemRefreshChip): the countdown button, a divider, the interval. */
.fc-refresh{display:inline-flex;flex:0 0 auto;align-items:center;gap:2px;padding:2px;border:1px solid var(--fc-line);border-radius:8px;font-size:12px;white-space:nowrap}
.fc-refresh button,.fc-refresh select{display:inline-flex;align-items:center;gap:5px;min-width:0;height:22px;min-height:22px;padding:0 8px;border:0;border-radius:6px;background:transparent;
  color:var(--fc-ink);font:inherit;font-size:12px;font-variant-numeric:tabular-nums;cursor:pointer}
.fc-refresh select{border-left:1px solid var(--fc-line);border-radius:0 6px 6px 0}
.fc-refresh select option{background:var(--fc-surface);color:var(--fc-ink)}
.fc-refresh-glyph{color:var(--fc-accent-strong)}
.fc-icon-btn{display:grid;place-items:center;flex:0 0 auto;width:32px;height:32px;padding:0;border:1px solid var(--fc-line);border-radius:9px;background:var(--fc-surface-soft);color:var(--fc-muted);font-size:16px;line-height:1;cursor:pointer}
.fc-icon-btn:disabled{opacity:.5;cursor:not-allowed}
.fc-icon-btn .fc-icon{width:16px;height:16px;stroke-width:2}
.fc-sheet-body{flex:1;min-height:0;overflow:auto;padding:16px;container:fc-trade / inline-size}
.fc-sheet-body > .fc-trade-error,.fc-sheet-body > .fc-trade-message{margin-bottom:12px}
.fc-sheet-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--fc-line)}
.fc-sheet-footer p{margin:0;color:var(--fc-muted);font-size:11.5px}
.fc-send{display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:0;padding:9px 22px;border:0;border-radius:8px;color:var(--fc-side-ink);
  font:inherit;font-size:13.5px;font-weight:700;line-height:1.5;white-space:nowrap;cursor:pointer}
.fc-send--buy{background:var(--fc-buy)}
.fc-send--sell{background:var(--fc-sell)}
.fc-send--hedge{background:var(--fc-accent)}
.fc-send:disabled{opacity:.45;cursor:not-allowed}

/* Book cards (FinQuest BookPanel): BUY left, SELL right; only the accent moves. */
.fc-books{display:flex;gap:8px;margin-bottom:12px}
.fc-book{display:block;flex:1 1 0;min-width:0;padding:9px 11px;border:1px solid var(--fc-line);border-radius:8px;background:var(--fc-surface-soft);color:inherit;font:inherit;text-align:left;cursor:pointer}
.fc-book.is-active{border-color:var(--fc-accent)}
.fc-book:focus-visible{outline:2px solid var(--fc-accent);outline-offset:2px}
.fc-book-title{display:flex;align-items:center;gap:6px;margin-bottom:5px;font-size:11px;font-weight:700;letter-spacing:.05em}
.fc-book--buy .fc-book-title{color:var(--fc-buy)}
.fc-book--sell .fc-book-title{color:var(--fc-sell)}
.fc-book-chip{padding:2px 7px;border-radius:8px;color:var(--fc-side-ink);font-size:9.5px;font-weight:700;letter-spacing:.04em}
.fc-book--buy .fc-book-chip{background:var(--fc-buy)}
.fc-book--sell .fc-book-chip{background:var(--fc-sell)}
.fc-book-row{display:flex;justify-content:space-between;gap:8px;padding:2px 0;font-size:12px}
.fc-book-row span{color:inherit;opacity:.6}
.fc-book-row b{font-weight:600;font-variant-numeric:tabular-nums}
.fc-book-row b.is-lead{font-weight:800}
.fc-book-row b.is-profit{font-weight:700}
.fc-quote-line{margin:-6px 0 10px;color:color-mix(in srgb,var(--fc-ink) 62%,transparent);font-size:10.5px;text-align:right;font-variant-numeric:tabular-nums}
.fc-quote-line b{color:inherit;font-weight:600}

/* A row (FinQuest DRow): the label and its line on the left, one control on the right. */
.fc-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--fc-line)}
.fc-row--first{padding-top:0}
.fc-row-label{min-width:0}
.fc-row-label strong{font-size:13px;font-weight:500}
.fc-row-label p{margin:1px 0 0;color:color-mix(in srgb,var(--fc-ink) 55%,transparent);font-size:11px;font-weight:400}
/* A wire name beside its label, on the admin only (TP423 Q188-A); a setting row's code sits closer. */
.fc-badge{display:inline-block;margin-left:5px;padding:1px 5px;border:1px solid var(--fc-line);border-radius:4px;color:inherit;font-size:9.5px;font-weight:700;
  letter-spacing:.04em;line-height:1.5;opacity:.65;vertical-align:middle}
.fc-badge--code{margin-left:3px}
.fc-setting-save-tag{margin-left:6px;color:var(--fc-warn);font-size:10.5px;font-weight:700}

/* Two fields in one row (FinQuest DPair / DCell): each label over its box, the boxes level; a caption runs full width. */
.fc-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end;padding:11px 0;border-bottom:1px solid var(--fc-line)}
.fc-pair>div,.fc-pair-cells>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.fc-pair>div>strong,.fc-pair-cells>div>strong{margin:0;font-size:13px;font-weight:500}
.fc-pair.fc-pair--subs{display:block}
.fc-pair.fc-pair--subs>.fc-pair-cells{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}
.fc-pair.fc-pair--subs>.fc-pair-sub{display:block;margin-top:6px;color:color-mix(in srgb,var(--fc-ink) 55%,transparent);font-size:11px;line-height:1.3}

/* Direction (FinQuest FxsDirSwitch): the selected side is filled; the others stay muted on the line. */
/* TP535: prototype 3.3, shared by direction and hedge-action switches. */
.fc-seg,.fc-hedge-action-seg{display:inline-flex;align-items:stretch;flex-wrap:wrap;gap:3px;padding:3px;min-width:0;max-width:100%;border:0;border-radius:8px;background:var(--fc-surface-soft)}
.fc-seg{flex:0 0 auto}
.fc-hedge-action-seg{align-self:flex-start}
.fc-seg button,.fc-hedge-action-seg button{position:static;flex:1 1 auto;min-width:0;min-height:0;margin:0;padding:6px 14px;border:0;border-radius:6px;background:transparent;color:var(--fc-muted);font:inherit;font-size:12.5px;font-weight:700;line-height:1.4;white-space:nowrap;box-shadow:none;cursor:pointer}
.fc-seg button:disabled,.fc-hedge-action-seg button:disabled{opacity:.5;cursor:not-allowed}
.fc-seg button[aria-pressed=true],.fc-hedge-action-seg button[aria-pressed=true]{background:var(--fc-accent);color:var(--fc-accent-ink)}
.fc-seg button:focus-visible,.fc-hedge-action-seg button:focus-visible{outline:2px solid var(--fc-accent);outline-offset:2px}

/* The boxed picker (FinQuest SheetPicker box): the choice and the caret on one line, its sentence under it. */
.fc-picker{position:relative;width:100%;min-width:0}
.fc-picker--row,.fc-picker--mode{width:260px;max-width:100%}
.fc-picker-box{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:1px;width:100%;min-width:0;min-height:44px;padding:6px 10px;
  border:1px solid var(--fc-line);border-radius:9px;background:var(--fc-surface-soft);color:var(--fc-ink);font:inherit;text-align:left;cursor:pointer}
.fc-picker-box:hover,.fc-picker-box[aria-expanded="true"]{border-color:var(--fc-accent)}
.fc-picker-box:focus-visible{outline:2px solid var(--fc-accent);outline-offset:2px}
.fc-picker-box:disabled{opacity:.6;cursor:not-allowed}
.fc-picker-box:disabled:hover{border-color:var(--fc-line)}
.fc-picker-box:disabled .fc-chev{display:none}
.fc-picker-title{display:flex;align-items:center;gap:6px;min-width:0}
.fc-picker-title b{flex:1 1 auto;min-width:0;overflow:hidden;color:var(--fc-accent-strong);font-size:13px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.fc-picker-title .fc-chev{flex:none;width:16px;height:16px;color:var(--fc-accent-strong)}
.fc-picker-desc{display:block;overflow:hidden;color:var(--fc-muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.fc-picker-code{margin-left:5px;font-size:11.5px;font-weight:500;opacity:.45}
.fc-picker-menu{position:absolute;z-index:5;top:calc(100% + 4px);left:0;right:0;max-height:320px;overflow:auto;border:1px solid var(--fc-line);border-radius:10px;background:var(--fc-surface);box-shadow:var(--fc-shadow)}
.fc-picker-menu--right{left:auto;min-width:100%}
.fc-picker-menu h4{margin:0;padding:11px 14px 4px;color:var(--fc-ink);font-size:13.5px;font-weight:650}
.fc-picker-search{position:sticky;top:0;padding:8px;background:var(--fc-surface);border-bottom:1px solid var(--fc-line)}
.fc-picker-group{padding:6px 14px 3px;color:var(--fc-muted);font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.fc-picker-option{display:flex;align-items:flex-start;justify-content:space-between;gap:11px;width:100%;padding:10px 14px;border:0;border-radius:0;background:transparent;
  color:var(--fc-ink);font:inherit;font-size:13px;font-weight:650;text-align:left;cursor:pointer}
.fc-picker-option:hover,.fc-picker-option.is-active{background:var(--fc-surface-soft)}
.fc-picker-option:disabled{opacity:.5;cursor:not-allowed}
.fc-picker-option small{display:block;color:color-mix(in srgb,var(--fc-ink) 60%,transparent);font-size:11.5px;font-weight:400;line-height:1.45}
.fc-picker-option .fc-tick{flex:none;color:var(--fc-buy);font-size:18px;font-weight:900;line-height:1}
.fc-picker-more{padding:8px 14px;color:var(--fc-muted);font-size:11.5px}

/* Number boxes (FinQuest Adorned): the unit inside the box, the number right-aligned; Off and refused shown on the box. */
.fc-field{width:100%;min-height:2.6rem;padding:.45rem .7rem;border:1px solid var(--fc-line);border-radius:.55rem;background:var(--fc-surface);color:var(--fc-ink);font:inherit;font-size:.92rem}
.fc-field:focus{outline:2px solid color-mix(in srgb,var(--fc-accent) 60%,transparent);outline-offset:1px}
.fc-field.is-bad{border-color:var(--fc-sell)}
.fc-trade-sheet .fc-field{min-height:37px;padding:7px 11px;border-radius:7px;font-size:14px;line-height:1.5}
.fc-trade-sheet .fc-field--expiry{width:auto;max-width:100%}
.fc-adorn{display:inline-flex;align-items:stretch;width:100%;overflow:hidden;border:1px solid var(--fc-line);border-radius:7px;background:var(--fc-surface)}
.fc-adorn>span:first-child{display:flex;align-items:center;padding:7px 9px;border-right:1px solid var(--fc-line);background:var(--fc-surface-soft);color:var(--fc-ink);
  font-size:11px;font-weight:700;letter-spacing:.03em;white-space:nowrap;opacity:.8}
.fc-adorn input{flex:1 1 auto;width:auto;min-width:0;min-height:0;padding:7px 11px;border:0;background:transparent;color:var(--fc-ink);font:inherit;font-size:14px;font-weight:400;
  line-height:1.5;font-variant-numeric:tabular-nums;text-align:right}
.fc-adorn input:focus{outline:none}
.fc-adorn input::placeholder{color:var(--fc-muted)}
.fc-adorn:focus-within{border-color:var(--fc-accent)}
.fc-adorn.is-bad{border-color:var(--fc-sell)}
.fc-adorn.is-off{opacity:.5}
.fc-adorn-suffix{align-self:center;margin-left:-6px;padding-right:11px;font-size:12px;font-weight:600;opacity:.55;white-space:nowrap}
.fc-adorn--lot,.fc-adorn--setting{width:260px;max-width:100%}
.fc-adorn--exit{width:172px;max-width:100%}
.fc-adorn--price{width:auto;max-width:100%}
.fc-adorn--price input{flex:0 1 110px;width:110px}
.fc-adorn--pin{width:auto;flex:0 0 auto}
.fc-adorn--pin input{flex:0 0 92px;width:92px;letter-spacing:3px}
.fc-help{margin:.3rem 0 0;color:var(--fc-muted);font-size:.76rem;font-variant-numeric:tabular-nums}
.fc-help.is-bad{color:var(--fc-sell)}
.fc-trade-sheet .fc-help{margin:6px 0 0;color:color-mix(in srgb,var(--fc-ink) 55%,transparent);font-size:11px;line-height:1.3}
.fc-trade-sheet .fc-help.is-bad{color:var(--fc-sell)}
.fc-lands{font-size:12.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.fc-lot-fixed{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--fc-line);border-radius:8px;font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums;opacity:.85}
.fc-lot-fixed>span{font-size:10px;font-weight:700;opacity:.6}

/* The exit mode and the EXITS / LADDER cards (FinQuest FxsTicketKnobs): one row per setting, its line under label and box. */
.fc-setting-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:14px;row-gap:0;padding:11px 0;border-bottom:1px solid var(--fc-line)}
.fc-setting-row:last-child{border-bottom:0}
.fc-setting-label{display:block;min-width:0}
.fc-setting-label>strong{font-size:13px;font-weight:500}
.fc-setting-help{display:block;margin-top:1px;color:color-mix(in srgb,var(--fc-ink) 55%,transparent);font-size:11px;font-weight:400}
.fc-setting-control{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.fc-exit-ctl{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:6px;min-width:0}
.fc-setting-sub{grid-column:1/-1;margin-top:1px;color:color-mix(in srgb,var(--fc-ink) 55%,transparent);font-size:11px;font-weight:400;line-height:1.3;font-variant-numeric:tabular-nums}
.fc-setting-sub .fc-price-ink,.fc-setting-sub .fc-gain,.fc-setting-sub .fc-loss{font-weight:700;white-space:nowrap}
.fc-setting-hint{color:var(--fc-muted)}
.fc-knobs{margin-top:10px;border:1px solid var(--fc-line);border-radius:8px;overflow:hidden;background:none}
.fc-knobs>summary{display:flex;align-items:center;gap:10px;padding:8px 11px;background:var(--fc-surface-soft);list-style:none;cursor:pointer;font-variant-numeric:tabular-nums}
.fc-knobs>summary::-webkit-details-marker{display:none}
.fc-knobs>summary:focus-visible{outline:2px solid var(--fc-accent);outline-offset:-2px}
.fc-knobs[open]>summary{border-bottom:1px solid var(--fc-line)}
.fc-knobs>summary>b{flex:0 0 auto;margin:0;font-size:11px;font-weight:800;letter-spacing:.05em}
.fc-knobs>summary>span{flex:1 1 auto;min-width:0;overflow:hidden;color:color-mix(in srgb,var(--fc-ink) 62%,transparent);font-size:11px;text-align:left;text-overflow:ellipsis;white-space:nowrap}
.fc-knobs>summary>.fc-chev{flex:0 0 auto;width:14px;height:14px;transition:transform .15s}
.fc-knobs[open]>summary>.fc-chev{transform:rotate(180deg)}
.fc-setting-section{display:block;margin:0;padding:0 11px}

/* Hedge (FinQuest FxsHedgeRows): each leg's action and lot as pairs, the notes, then the legs side by side with no card. */
.fc-hedge-cell--buy>strong{color:var(--fc-buy)}
.fc-hedge-cell--sell>strong{color:var(--fc-sell)}
.fc-hedge-open{padding:7px 0;font-size:12.5px;font-weight:700}
.fc-hedge-notes{padding:6px 0 2px;color:color-mix(in srgb,var(--fc-ink) 62%,transparent);font-size:11.5px;line-height:1.5}
.fc-hedge-notes .is-bad{color:var(--fc-sell)}
.fc-hedge-legs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;row-gap:12px;margin-top:6px}
.fc-hedge-leg{min-width:0}
.fc-hedge-leg-title{display:block;margin-top:6px;font-size:11px;font-weight:800;letter-spacing:.05em}
/* Inside a leg each row stacks (FinQuest DRow stack): the label, the control under it, then the line. */
.fc-hedge-leg .fc-setting-row{display:block}
.fc-hedge-leg .fc-setting-control{justify-content:flex-start;margin-top:6px}
.fc-hedge-leg .fc-exit-ctl{flex:1 1 auto}
.fc-hedge-leg .fc-adorn--exit{flex:1 1 96px;width:auto}
.fc-hedge-leg .fc-setting-sub{margin-top:5px}

/* The side's orders (FinQuest's BUY ORDERS card). */
.fc-orders{margin-top:12px;border:1px solid var(--fc-line);border-radius:8px;overflow:hidden}
.fc-orders--buy{border-color:color-mix(in srgb,var(--fc-buy) 40%,transparent)}
.fc-orders--sell{border-color:color-mix(in srgb,var(--fc-sell) 40%,transparent)}
.fc-orders-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border-bottom:1px solid var(--fc-line);background:var(--fc-surface-soft)}
.fc-orders-head b{font-size:11px;font-weight:700;letter-spacing:.05em}
.fc-orders--buy .fc-orders-head b{color:var(--fc-buy)}
.fc-orders--sell .fc-orders-head b{color:var(--fc-sell)}
.fc-orders-head span{font-size:10.5px;font-weight:700;opacity:.6}
.fc-orders .fc-card-empty{padding:12px 10px;color:inherit;font-size:12px;opacity:.6;text-align:center}
.fc-orders-sub{padding:6px 10px;border-top:1px solid var(--fc-line);background:var(--fc-surface-soft);font-size:10px;font-weight:700;letter-spacing:.04em;opacity:.7}
.fc-order{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:7px 10px;border-top:1px solid var(--fc-line);font-size:12px;font-variant-numeric:tabular-nums}
.fc-order input[type=radio],.fc-order input[type=checkbox]{flex:0 0 auto;margin:0;accent-color:var(--fc-accent)}
.fc-orders--buy .fc-order input{accent-color:var(--fc-buy)}
.fc-orders--sell .fc-order input{accent-color:var(--fc-sell)}
/* T709 rule 18, member app: Close all / Close group mark their tickets with MemCheck (fc-mem.css .mem-check), filled in the
   book's side colour and ticked in the side ink; its wrapper draws no box. */
.fc-order-pick{display:contents}
.fc-orders--buy .fc-order .mem-check:is(:checked,:indeterminate){background:var(--fc-buy);border-color:var(--fc-buy)}
.fc-orders--sell .fc-order .mem-check:is(:checked,:indeterminate){background:var(--fc-sell);border-color:var(--fc-sell)}
.fc-order .mem-check:checked::after{border-color:var(--fc-side-ink)}
.fc-gl{padding:1px 5px;border:1px solid var(--fc-line);border-radius:4px;font-size:10px;font-weight:700;opacity:.7;white-space:nowrap}
.fc-order-tid{opacity:.55;white-space:nowrap}
.fc-order .fc-order-type{font-size:10px;font-weight:700;white-space:nowrap}
.fc-order-lots{margin-left:auto;white-space:nowrap}
.fc-order-px{min-width:64px;opacity:.75;text-align:right;white-space:nowrap}
.fc-order-pl{min-width:62px;font-weight:600;text-align:right;white-space:nowrap}
.fc-order .fc-grow{margin-left:auto}
.fc-order .fc-dim{color:var(--fc-muted)}
.fc-order-edit{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%;padding-top:6px}
.fc-trade-sheet .fc-order-edit input{width:110px;min-height:30px;padding:4px 8px}
.fc-orders--buy .fc-order.is-marked{background:color-mix(in srgb,var(--fc-buy) 9%,transparent)}
.fc-orders--sell .fc-order.is-marked{background:color-mix(in srgb,var(--fc-sell) 9%,transparent)}
.fc-order--refused{color:var(--fc-muted)}
.fc-orders-foot{padding:7px 10px;border-top:1px solid var(--fc-line);color:color-mix(in srgb,var(--fc-ink) 60%,transparent);font-size:11px}
/* Status chips (FinQuest OrdChip): the colour, a 40 % edge and a 10 % fill; a waiting chip takes the warn ink to stay legible. */
.fc-status{display:inline-block;padding:1px 5px;border:1px solid var(--fc-line);border-radius:4px;font-size:9.5px;font-weight:700;letter-spacing:.04em;white-space:nowrap}
.fc-status--ok{color:var(--fc-buy);border-color:color-mix(in srgb,var(--fc-buy) 40%,transparent);background:color-mix(in srgb,var(--fc-buy) 10%,transparent)}
.fc-status--bad{color:var(--fc-sell);border-color:color-mix(in srgb,var(--fc-sell) 40%,transparent);background:color-mix(in srgb,var(--fc-sell) 10%,transparent)}
.fc-status--wait{color:var(--fc-warn-ink);border-color:color-mix(in srgb,var(--fc-warn) 40%,transparent);background:color-mix(in srgb,var(--fc-warn) 10%,transparent)}

/* Warning and acknowledgement boxes (an add that clears the SL %, Clear SL, Close and disable). */
.fc-ack{margin:12px 0 0;padding:10px 12px;border:1px solid var(--fc-line);border-radius:8px;background:var(--fc-surface-soft);font-size:12.5px;line-height:1.55}
.fc-ack p{margin:0}
.fc-ack label{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:12px;cursor:pointer}
.fc-ack input{flex:0 0 auto;margin:0;accent-color:var(--fc-accent)}
.fc-ack > .mem-check{vertical-align:middle}
.fc-ack--warn{border-color:color-mix(in srgb,var(--fc-warn) 40%,transparent);background:color-mix(in srgb,var(--fc-warn) 9%,transparent)}
.fc-ack--sell{border-color:color-mix(in srgb,var(--fc-sell) 35%,transparent);background:color-mix(in srgb,var(--fc-sell) 8%,transparent)}
.fc-ack-row{display:flex;gap:8px}
.fc-ack-icon{flex:0 0 auto;width:15px;height:15px;margin-top:2px;color:var(--fc-sell)}
.fc-ack-title{color:var(--fc-sell)}
.fc-ack-body{margin-top:3px;opacity:.8}

/* The pre-trade line (FinQuest PreTradeLine): the headline in the side's colour, the detail under it. */
.fc-pretrade{margin:12px 0 2px;padding:9px 12px;border:1px solid color-mix(in srgb,var(--fc-buy) 27%,transparent);border-radius:8px;background:color-mix(in srgb,var(--fc-buy) 8%,transparent);
  color:var(--fc-buy);font-size:12.5px;line-height:1.5}
.fc-pretrade.is-sell{border-color:color-mix(in srgb,var(--fc-sell) 27%,transparent);background:color-mix(in srgb,var(--fc-sell) 8%,transparent);color:var(--fc-sell)}
.fc-pretrade.is-hedge{border-color:color-mix(in srgb,var(--fc-accent) 27%,transparent);background:color-mix(in srgb,var(--fc-accent) 8%,transparent);color:var(--fc-accent-strong)}
.fc-pretrade strong{display:inline;font-size:inherit;font-weight:700}
.fc-pretrade p{margin:2px 0 0;color:color-mix(in srgb,var(--fc-ink) 75%,transparent);font-size:11.5px;font-variant-numeric:tabular-nums}
.fc-pretrade p.is-bad{color:var(--fc-sell)}

/* The review (FinQuest MemOrderSummary): 420 wide, label and value rows, the changes box, the notice. */
.fc-review-backdrop{position:fixed;inset:0;z-index:1420;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--fc-scrim);backdrop-filter:blur(2px)}
.fc-review-dialog{position:relative;display:flex;flex-direction:column;width:min(100%,420px);max-height:calc(100vh - 32px);overflow:hidden;border:1px solid var(--fc-line);border-radius:16px;
  background:var(--fc-surface);color:var(--fc-ink);box-shadow:var(--fc-shadow);outline:none;font-size:14px;line-height:1.5}
.fc-resize-grip{position:absolute;z-index:2;touch-action:none;user-select:none}
.fc-resize-grip--n,.fc-resize-grip--s{left:10px;right:10px;height:8px;cursor:ns-resize}
.fc-resize-grip--n{top:0}.fc-resize-grip--s{bottom:0}
.fc-resize-grip--e,.fc-resize-grip--w{top:10px;bottom:10px;width:8px;cursor:ew-resize}
.fc-resize-grip--e{right:0}.fc-resize-grip--w{left:0}
.fc-resize-grip--ne,.fc-resize-grip--nw,.fc-resize-grip--se,.fc-resize-grip--sw{width:12px;height:12px}
.fc-resize-grip--ne,.fc-resize-grip--sw{cursor:nesw-resize}.fc-resize-grip--nw,.fc-resize-grip--se{cursor:nwse-resize}
.fc-resize-grip--ne{right:0;top:0}.fc-resize-grip--nw{left:0;top:0}.fc-resize-grip--se{right:0;bottom:0}.fc-resize-grip--sw{left:0;bottom:0}
.fc-review-header{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--fc-line)}
.fc-review-header>div{min-width:0;flex:1}
.fc-review-header h3{margin:0;font-size:14px;font-weight:700;line-height:1.5}
.fc-review-header p{margin:2px 0 0;color:color-mix(in srgb,var(--fc-ink) 70%,transparent);font-size:11.5px}
.fc-review-body{flex:1 1 auto;min-height:0;overflow:auto;padding:16px}
.fc-review-lead{margin:0 0 10px;color:color-mix(in srgb,var(--fc-ink) 72%,transparent);font-size:12px;line-height:1.5}
.fc-review-grid{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);column-gap:14px;row-gap:0}
.fc-review-label{padding:6px 0;border-bottom:1px solid var(--fc-line);font-size:12px;opacity:.6}
.fc-review-value{min-width:0;padding:6px 0;border-bottom:1px solid var(--fc-line)}
.fc-review-value>b{display:block;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fc-review-sub{display:block;margin-top:1px;color:color-mix(in srgb,var(--fc-ink) 72%,transparent);font-size:11.5px;line-height:1.45}
.fc-review-changes{margin-top:12px;padding:8px 11px;border:1px solid color-mix(in srgb,var(--fc-warn) 40%,transparent);border-radius:8px;background:color-mix(in srgb,var(--fc-warn) 9%,transparent);font-size:12px;line-height:1.55}
.fc-review-changes>div{font-variant-numeric:tabular-nums}
.fc-review-notice{margin:10px 0 0;font-size:11.5px;line-height:1.5;opacity:.7}
.fc-review-error{margin:10px 0 0;color:var(--fc-sell);font-size:12.5px}
.fc-review-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--fc-line)}
.fc-review-footer .fc-adorn--pin{margin-right:auto}
.fc-review-cancel{display:inline-flex;align-items:center;justify-content:center;min-width:0;padding:7px 14px;border:1px solid var(--fc-line);border-radius:8px;background:transparent;color:var(--fc-ink);
  font:inherit;font-size:12.5px;font-weight:600;line-height:1.5;cursor:pointer}
.fc-review-cancel:disabled{opacity:.5;cursor:not-allowed}
.fc-review-footer .fc-send{padding:7px 16px;font-size:12.5px}
.fc-review-footer .fc-send:disabled{opacity:.5}

/* The admin settings editor's exit cell (TP430 C6). */
.fc-admin-exit-setting{display:flex;flex-direction:column;gap:4px;min-width:0}
.fc-admin-exit-control{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:6px;min-width:0}
.fc-admin-exit-input{flex:1 1 72px;min-width:72px}
.fc-admin-exit-hint{color:var(--fc-muted);font-size:11px;line-height:1.35}
.fc-admin-exit-hint.is-warn{color:var(--fc-warn-ink)}

/* ---- the Symbols picker ------------------------------------------------------------------------------------------ */
.fc-transfer{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:minmax(0,1fr);gap:.8rem;align-items:stretch}
.fc-transfer-list{display:flex;flex-direction:column;min-width:0;border:1px solid var(--fc-line);border-radius:.7rem;overflow:hidden}
.fc-transfer-head{display:flex;align-items:center;gap:.5rem;padding:.6rem .75rem;border-bottom:1px solid var(--fc-line);background:var(--fc-surface-soft);font-size:.74rem;font-weight:800;letter-spacing:.05em}
.fc-transfer-head b{color:var(--fc-accent-strong)}
.fc-transfer-filter{padding:.45rem;border-bottom:1px solid var(--fc-line)}
.fc-transfer-scroll{flex:1;min-height:0;overflow:auto}
.fc-transfer-item{display:flex;align-items:center;gap:.6rem;height:2.1rem;padding:0 .75rem;font-size:.86rem;cursor:pointer}
.fc-transfer-item:hover{background:var(--fc-surface-soft)}
.fc-transfer-item input{accent-color:var(--fc-accent)}
.fc-transfer-move{display:flex;flex-direction:column;justify-content:center;gap:.5rem}
.fc-transfer-move .fc-btn,.fc-transfer-move .mem-btn{min-width:2.8rem;height:calc(1em + 1rem + 2px);font-size:1.25rem;line-height:1}
.fc-transfer-empty{padding:1rem;color:var(--fc-muted);font-size:.82rem;text-align:center}

@media(max-width:640px){
  .fc-trade-panel{--fc-freeze-a:6rem}
  .fc-resize-grip{display:none}
  .fc-sheet-backdrop{padding:0}
  .fc-sheet{max-height:100vh;height:100vh;border-radius:0}
  .fc-books{flex-direction:column}
  .fc-transfer{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto minmax(0,1fr)}
  .fc-transfer-move{flex-direction:row;justify-content:center}
  .fc-sheet-footer{flex-direction:column;align-items:stretch}
  .fc-send{width:100%}
}

/* A narrow sheet stacks each row: the label over its control, pairs one under the other. */
@container fc-trade (max-width:560px){
  .fc-row{flex-direction:column;align-items:stretch}
  .fc-row .fc-seg{display:flex}
  .fc-row .fc-seg button{flex:1}
  .fc-picker--row{width:100%}
  .fc-pair,.fc-pair.fc-pair--subs>.fc-pair-cells,.fc-setting-row{grid-template-columns:minmax(0,1fr)}
  .fc-setting-control{justify-content:flex-start;margin-top:6px}
  .fc-adorn--lot,.fc-adorn--setting,.fc-picker--mode{width:100%;max-width:none}
}
/* The member account page: an Orders button in place of the Order records section (TP451 §2). */
.fc-trade-orders-link{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem .75rem;padding:.65rem .9rem;border:1px solid var(--fc-line);border-radius:.6rem;background:var(--fc-surface);color:var(--fc-muted);font-size:.86rem}
.fc-trade-panel--modal-only{display:contents}.fc-trade-panel--modal-only>:not(.fc-overlay):not(.fc-sheet-backdrop):not(.fc-review-backdrop){display:none}
