/* The same reading rhythm runs through signal cards, market reports, and trade forms. */
.tw-workspace {
  --ws-panel: #111d29;
  --ws-raised: #172633;
  --ws-field: #0c1721;
  --ws-line: #2a3d4a;
  --ws-text: #edf4f5;
  --ws-muted: #a1b4bd;
  --ws-mint: #83e6cf;
  --ws-amber: #f3c781;
  container: workspace / inline-size;
  color: var(--ws-text);
  font-variant-numeric: tabular-nums;
}
.tw-workspace *, .tw-workspace *::before, .tw-workspace *::after { box-sizing: border-box; }
.tw-workspace > * { min-inline-size: 0; }
.tw-workspace .page-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 2px 0 25px;
  padding: 0 0 21px;
  border-block-end: 1px solid var(--ws-line);
  min-height: 0;
  background: none;
}
.tw-workspace .ws-page-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 52px;
  block-size: 52px;
  border: 1px solid #345c60;
  border-radius: 14px;
  background: #133036;
  color: var(--ws-mint);
}
.tw-workspace .ws-title-glyph { width: 25px; height: 25px; }
.tw-workspace .ws-title-copy { flex: 1; min-inline-size: 0; }
.tw-workspace .page-heading h1 {
  color: var(--ws-text); font-size: clamp(26px, 4.8cqi, 37px);
  font-weight: 650; line-height: 1.22; letter-spacing: -.035em; margin: 0;
}
[dir=rtl] .tw-workspace .page-heading h1 { letter-spacing: normal; line-height: 1.45; }
.tw-workspace .page-heading p { font-size: 14px; max-inline-size: 72ch; color: var(--ws-muted); margin: 5px 0 0; line-height: 1.65; }
.tw-workspace .section-heading { margin-block: 26px 12px; }
.tw-workspace .section-heading h2, .tw-workspace .doc-tool-title { color: var(--ws-text); font-size: 19px; line-height: 1.5; }
.tw-workspace :is(.card,.term,.lesson,.stat-box,.signal-card,.menu-item,.svc-tile,.sub-step) {
  background: var(--ws-panel); border: 1px solid var(--ws-line);
  border-radius: 14px; box-shadow: none; min-inline-size: 0;
}
.tw-workspace :is(.card,.sub-step):not(details) { padding: clamp(16px, 2.6cqi, 24px); }
.tw-workspace .archived { display: block; font-size: 12px; color: var(--ws-amber); line-height: 1.7; margin: 2px 0 0; }
.tw-workspace .page-heading .archived { margin-block-start: 4px; }
.tw-workspace :is(.risk-note,.note,.gc-note) { color: var(--ws-muted); font-size: 13px; line-height: 1.8; }
.tw-workspace :is(.small.muted,.muted) { color: var(--ws-muted); }
.tw-workspace .badge-accent { color: var(--ws-mint); border-color: #2a5753; background: #163632; }
.tw-workspace :is(.btn,.chip,.doc-tab,.cal-day-btn,.pill-toggle,.gc-seg button,.tabs button) {
  border-radius: 9px; font-weight: 600; font-size: 13px; box-shadow: none;
}
.tw-workspace :is(.btn,.chip,.doc-tab,.cal-day-btn,.pill-toggle) { background: var(--ws-field); border-color: var(--ws-line); color: #d0dce0; }
.tw-workspace :is(.btn,.doc-tab,.cal-day-btn) { min-height: 40px; }
.tw-workspace :is(.btn-primary,.btn-pay) { color: #082823; background: var(--ws-mint); border: 1px solid var(--ws-mint); }
.tw-workspace :is(button,a,input,select,textarea,summary):focus-visible, #popup :is(button,input,select,textarea):focus-visible {
  outline: 2px solid #8cebd8; outline-offset: 3px;
}
.tw-workspace :is(.tabs,.gc-seg) { background: #0b161e; padding: 4px; border: 1px solid var(--ws-line); border-radius: 11px; box-shadow: none; }
.tw-workspace .tabs button { padding-inline: 15px; }
.tw-workspace :is(.chip,.doc-tab,.gc-seg button,.tabs button,.cal-day-btn,.pill-toggle)[aria-pressed=true] {
  background: #1a393b; color: var(--ws-mint); border-color: #37615f; box-shadow: none;
}
.tw-workspace .tabs [aria-selected=true] { background: #1a393b; color: var(--ws-mint); }
.tw-workspace .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 12px 18px; overflow: visible; }
.tw-workspace .chip { padding: 6px 12px; min-height: 32px; }
.tw-workspace :is(.field,.form-stack .field) { color: #ccdbdf; font-size: 13px; font-weight: 550; }
.tw-workspace :is(input:not([type=checkbox]):not([type=range]):not([type=file]),select,textarea),
#popup :is(input:not([type=checkbox]):not([type=range]),select,textarea) {
  min-width: 0; max-width: 100%; background-color: #0c1721; color: #edf4f5;
  border-color: #344952; border-radius: 8px; font-size: 15px;
}
.tw-workspace :is(input,select,textarea)::placeholder { color: #92a6b1; }
.tw-workspace .form-stack { gap: 16px; }
.tw-workspace .form-grid { gap: 13px; }
.tw-workspace :is(.an-table-wrap,.doc-trades) { max-width: 100%; overflow-x: auto; }
.tw-workspace table.an-table { width: 100%; border-collapse: collapse; }
.tw-workspace .an-table :is(th,td) { padding: 10px 12px; white-space: nowrap; border-color: var(--ws-line); }
.tw-workspace .an-table th { background: #142430; color: #bfd0d5; font-weight: 600; }
.tw-workspace .an-table td { font-size: 13px; }
.tw-workspace .an-table tbody tr:nth-child(even) { background: #ffffff03; }
.tw-workspace .result-list { gap: 10px; padding: 0; }
.tw-workspace .result-list > div { border-color: #30434f; background: var(--ws-field); padding: 14px 15px; border-radius: 10px; }
.tw-workspace .result-list small { color: var(--ws-muted); font-size: 12px; }
.tw-workspace .result-list strong { color: var(--ws-mint); font-size: clamp(17px, 3cqi, 24px); overflow-wrap: anywhere; }

/* Feed cards keep prices, result, and available actions separately scannable. */
.tw-workspace #signal-feed { display: grid; gap: 15px; align-items: start; }
.tw-workspace #signal-feed > :not(.signal-card) { grid-column: 1 / -1; }
.tw-workspace .signal-card { margin: 0; padding: clamp(15px, 2.8cqi, 23px); overflow: hidden; }
.tw-workspace .sig-v2 .sig-head { align-items: center; gap: 11px; }
.tw-workspace .sig-v2 .pair { color: var(--ws-text); font-size: 19px; }
.tw-workspace .sig-v2 .asset-icon { border-radius: 10px; background: #242c2d; border-color: #575044; width: 43px; height: 43px; }
.tw-workspace .sig-prices { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.tw-workspace .sig-price { padding: 11px; background: var(--ws-field); border: 1px solid var(--ws-line); border-radius: 8px; }
.tw-workspace .sig-price > span,.tw-workspace .sig-time { color: var(--ws-muted); }
.tw-workspace .sig-price > strong { font-size: clamp(15px,2.6cqi,19px); }
.tw-workspace .sig-price.is-entry > strong { color: var(--ws-mint); }
.tw-workspace .sig-ladder { margin-block: 18px 16px; }
.tw-workspace .sig-ladder i { background: var(--ws-raised); color: var(--ws-muted); border-color: #3a4c58; }
.tw-workspace .signal-tools { gap: 8px; }
.tw-workspace .sig-chart { background: #1a393b; border-color: #34615c; color: var(--ws-mint); }
.tw-workspace .reaction { background: transparent; border-color: transparent; color: var(--ws-muted); }
.tw-workspace .reaction[aria-pressed=true] { border-color: #62727c; background: #24333d; color: var(--ws-text); }

/* Tool collections use small line icons. The selected briefing keeps its larger artwork. */
.tw-workspace :is(.svc-feature,.sub-more-card) {
  background: linear-gradient(110deg,#183e41,#132c35 60%,#14242f);
  border: 1px solid #325759; padding: 19px 22px; border-radius: 14px; box-shadow: none;
}
.tw-workspace :is(.svc-feature,.sub-more-card) strong { font-size: 18px; color: #f0f8f6; }
.tw-workspace :is(.svc-feature,.sub-more-card) small { color: #b6cbcc; font-size: 13px; }
.tw-workspace .an-feature .pill { background: #244747; border-color: #3c6665; color: var(--ws-mint); }
.tw-workspace :is(.an-grid,.more-feature,.menu-grid,.glossary-list) {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,194px),1fr)); gap: 12px; align-items: stretch;
}
.tw-workspace :is(.an-tile,.more-feature .svc-tile) {
  display: grid; grid-template-columns: auto 1fr; align-content: center;
  justify-content: start; justify-items: start; text-align: start; gap: 2px 14px; padding: 18px; min-height: 92px;
}
.tw-workspace .an-tile .art-slot,.tw-workspace .more-feature .art-slot {
  grid-row: span 2; margin: 0; width: 40px; height: 40px; padding: 0; align-self: center;
}
.tw-workspace .more-feature .art-slot { grid-row: auto; }
.tw-workspace :is(.an-tile,.more-feature .svc-tile) .art-slot img { display: none; }
.tw-workspace :is(.an-tile,.more-feature .svc-tile) .ico-tile {
  display: grid; width: 40px; height: 40px; margin: 0; opacity: 1; visibility: visible;
  background: #192e38; border: 1px solid #304953; color: var(--ws-mint); border-radius: 10px; box-shadow: none;
}
.tw-workspace :is(.an-tile,.more-feature .svc-tile) .ico-tile .icon { opacity: 1; width: 20px; height: 20px; }
.tw-workspace :is(.an-tile,.more-feature .svc-tile) strong { align-self: end; text-align: start; font-size: 15px; line-height: 1.45; }
.tw-workspace :is(.an-tile,.more-feature .svc-tile) small { text-align: start; color: var(--ws-muted); font-size: 12px; line-height: 1.6; }
.tw-workspace .menu-grid { margin-block-start: 16px; }
.tw-workspace .menu-item { align-items: center; gap: 12px; }
.tw-workspace :is(.an-calcs,.lesson-list) { display: grid; gap: 10px; }
.tw-workspace :is(.an-calc,.lesson) { margin: 0; overflow: clip; }
.tw-workspace :is(.an-calc,.lesson)[open] { border-color: #365958; }
.tw-workspace :is(.an-calc,.lesson) summary { padding: 16px 18px; color: var(--ws-text); }
.tw-workspace :is(.an-calc,.lesson) summary small { color: var(--ws-muted); }
.tw-workspace .an-calc-form,.tw-workspace .lesson-body { border-block-start: 1px solid var(--ws-line); padding: 18px; }
.tw-workspace .lesson-body { color: #cbd9df; line-height: 1.85; font-size: 15px; }
.tw-workspace .glossary-search { max-width: 560px; margin-block-end: 18px; }
.tw-workspace .term { padding: 16px 18px; animation: none; }
.tw-workspace .term p { color: #b7c8cf; line-height: 1.75; }
.tw-workspace .term-alt { color: var(--ws-mint); }
.tw-workspace :is(.doc-tab,.stat-box) { min-width: 0; }
.tw-workspace .stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-block: 0 16px; }
.tw-workspace .stat-box { text-align: start; padding: 17px 18px; }
.tw-workspace .stat-box small { color: var(--ws-muted); font-size: 12px; }
.tw-workspace .stat-box strong { color: var(--ws-text); font-size: clamp(22px,3.6cqi,33px); font-weight: 650; }
.tw-workspace .ws-journal-body { display: grid; gap: 16px; align-items: start; }
.tw-workspace .ws-journal-body :is(.card,.journal-list) { margin-block: 0; min-width: 0; }
.tw-workspace .journal-list { display: grid; gap: 12px; }
.tw-workspace .weekly-chart { width: 100%; height: clamp(150px,22cqi,215px); margin-block: 8px; }
.tw-workspace .journal-entry p { overflow-wrap: anywhere; }
.tw-workspace .journal-list .empty,.tw-workspace #notification-list .empty { border: 1px dashed #3b505d; background: #101d26; border-radius: 14px; padding: 26px 18px; }
.tw-workspace .journal-list .empty-img,.tw-workspace #notification-list .empty-img { width: 82px; height: 82px; }
.tw-workspace :is(.gc-wrap,.tv-markets,#cal-body) { min-width: 0; border: 1px solid var(--ws-line); border-radius: 14px; background: var(--ws-panel); overflow: hidden; }
.tw-workspace #cal-body > p { padding: 12px 18px; }
.tw-workspace .gc-toolbar { flex-wrap: wrap; }
.tw-workspace .gc-select { min-width: 0; }
.tw-workspace .gc-layers,.tw-workspace .cal-filters { flex-wrap: wrap; }
.tw-workspace .cal-days { gap: 5px; }
.tw-workspace .cal-day-btn { font-size: 12px; }
.tw-workspace #gpl-body,.tw-workspace #an-brief { min-width: 0; }
.tw-workspace .an-sum,.tw-workspace .an-brief,.tw-workspace .an-head { border-color: #375453; }
.tw-workspace .gc-level,.tw-workspace .an-row { background: var(--ws-field); border-color: var(--ws-line); }
.tw-workspace .an-comp .an-balance { display: block; color: var(--ws-mint); font-size: clamp(24px,4.6cqi,36px); }
.tw-workspace .ws-compound-layout { display: grid; gap: 14px; align-items: start; margin-block-end: 16px; }
.tw-workspace .ws-compound-layout > * { margin: 0; min-width: 0; }
.tw-workspace .ws-news-columns { display: grid; gap: 20px; align-items: start; }
.tw-workspace .ws-news-columns > div { min-width: 0; }
.tw-workspace .ws-news-columns .section-heading { margin-block: 0 14px; }
.tw-workspace .ws-news-columns .chips { margin-block-start: 0; }
.tw-workspace .feed-post h2 { color: var(--ws-text); font-size: 18px; line-height: 1.65; }
.tw-workspace .feed-post .preline { color: #bbcad1; font-size: 14px; line-height: 1.85; }
.tw-workspace .news-row { text-align: start; color: #dae4e8; padding: 13px 16px; margin: 0 0 8px; font-size: 14px; line-height: 1.65; }
.tw-workspace .news-row .hl-tag { display: inline-flex; margin-inline-end: 8px; }
.tw-workspace .news-row .hl-tag bdi { color: var(--ws-mint); }
.tw-workspace .sub-status,.tw-workspace .sub-more-card { background: linear-gradient(120deg,#332d24,#252a2b); border-color: #544b3c; }
.tw-workspace .sub-plans .active { border-color: var(--ws-amber); background: #312e29; }
.tw-workspace .push-enable-card { border-color: #325759; }
#popup.modal { max-width: min(520px,calc(100vw - 24px)); background: #101c27; color: #edf4f5; border: 1px solid #344a57; border-radius: 17px; }
#popup .modal-head { border-color: #2b404d; }
#popup .btn-primary { background: #83e6cf; border-color: #83e6cf; color: #082823; }
#popup .modal-body .modal-body { padding: 0; }
@container workspace (min-width: 690px) {
  .tw-workspace #signal-feed { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tw-workspace .sig-tabs,.tw-workspace .channel-tabs,.tw-workspace .chart-mode,.tw-workspace .sub-seg { max-width: 500px; }
  .tw-workspace .ws-journal-body,.tw-workspace .ws-news-columns { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); }
  .tw-workspace .ws-compound-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .tw-workspace .an-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tw-workspace .an-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tw-workspace .doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .tw-workspace .doc-tab { flex: 1; }
  .tw-workspace #doc-panel { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 14px; align-items: start; }
  .tw-workspace #doc-panel > * { grid-column: 1/-1; margin: 0; min-width: 0; }
  .tw-workspace #doc-panel > form { grid-column: 1; }
  .tw-workspace #doc-panel > :is(#risk-out,#be-out,#so-out,#rc-out) { grid-column: 2; }
  .tw-workspace .glossary-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tw-workspace .an-calcs,.tw-workspace .lesson-list { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .tw-workspace .lesson-list { gap: 14px; }
  .tw-workspace .push-enable-card,.tw-workspace #feedback-form,.tw-workspace #profile-form { max-width: 670px; }
}
@container workspace (max-width: 560px) {
  .tw-workspace .page-heading { gap: 12px; margin-block-end: 18px; padding-block-end: 17px; }
  .tw-workspace .ws-page-icon { width: 42px; height: 42px; border-radius: 11px; }
  .tw-workspace .ws-title-glyph { width: 21px; height: 21px; }
  .tw-workspace .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .tw-workspace .stat-box { padding: 12px 14px; }
  .tw-workspace .an-grid,.tw-workspace .menu-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .tw-workspace .an-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 5px; padding: 14px; }
  .tw-workspace .an-tile :is(strong,.art-slot) { align-self: start; }
  .tw-workspace .an-tile .art-slot { margin-block-end: 4px; }
  .tw-workspace .more-feature { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .tw-workspace .more-feature .svc-tile { grid-template-columns: 1fr; gap: 7px; padding: 13px; }
  .tw-workspace .result-list { gap: 7px; }
  .tw-workspace .result-list > div { padding: 11px; }
  .tw-workspace .cal-days { display: flex; flex-wrap: wrap; }
  .tw-workspace .cal-day-btn { flex: 1 0 auto; padding-inline: 9px; }
}
@container workspace (max-width: 380px) {
  .tw-workspace .ws-page-icon { display: none; }
  .tw-workspace .page-heading p { font-size: 13px; }
  .tw-workspace .sig-sub .badge { font-size: 11px; }
  .tw-workspace .chip { padding-inline: 10px; }
  .tw-workspace .svc-feature { padding: 14px; }
  .tw-workspace .form-grid { gap: 9px; }
  .tw-workspace .menu-grid { grid-template-columns: 1fr; }
}
@media (hover:hover) {
  .tw-workspace :is(.svc-tile,.menu-item,.news-row,.svc-feature,.lesson summary,.an-calc summary):hover {
    background-color: #172a35; border-color: #42605d;
  }
  .tw-workspace .btn-primary:hover { background: #a1f0dd; }
}
