/* FlagShip: local system fonts, no remote assets or runtime style injection. */
:root {
  color-scheme: light;
  --canvas: #f7f8f4;
  --surface: #fff;
  --navy: #182f3d;
  --muted: #61747a;
  --line: #e2e8e3;
  --teal: #087c70;
  --teal-dark: #056257;
  --teal-light: #eaf5ef;
  --amber: #835614;
  --amber-light: #fff6e3;
  --red: #a23d35;
  --red-light: #fff0ed;
  --blue: #365d8a;
  --blue-light: #edf3fb;
  --radius: 12px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--teal); }
button, input, select, textarea { border-radius: 7px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -1.1px; font-weight: 650; margin-bottom: 10px; }
h2 { font-size: 18px; letter-spacing: -.4px; font-weight: 650; margin-bottom: 0; }
h3 { font-size: 15px; font-weight: 650; }
p { line-height: 1.65; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
code { font-family: Consolas, "SFMono-Regular", monospace; font-size: .9em; color: #26594f; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 20px; background: var(--navy); color: white; z-index: 100; }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 32px 20px 20px; border-right: 1px solid var(--line); background: #fcfdf9; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); font-size: 25px; font-weight: 720; letter-spacing: -.9px; }
.brand small { display: block; font-size: 8px; font-weight: 600; letter-spacing: 1.2px; color: var(--muted); margin-top: 4px; }
.brand-mark { display: grid; place-items: center; background: var(--teal); color: white; width: 39px; height: 44px; border-radius: 10px 10px 10px 2px; }
.brand-mark svg { width: 31px; height: 31px; stroke-width: 1.8; }
.workspace-label, .eyebrow { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: var(--muted); }
.workspace-label { margin: 49px 12px 15px; }
.main-nav { display: grid; gap: 7px; }
.nav-item { min-height: 47px; display: flex; align-items: center; gap: 12px; border: 0; text-align: left; padding: 12px 14px; color: var(--muted); background: transparent; font-weight: 550; }
.nav-item:hover { color: var(--teal); background: #f0f4ed; }
.nav-item.selected { color: var(--teal-dark); background: #e8f1e9; font-weight: 650; }
.nav-count { margin-left: auto; border-radius: 5px; padding: 1px 6px; font-size: 11px; background: #d9e9dc; color: #2b6558; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.strategy-note { padding: 18px 14px; background: #f2f5ed; border: 1px solid #e7edde; border-radius: var(--radius); }
.strategy-note strong { display: block; font-size: 13px; margin: 12px 0 8px; }
.strategy-note p { font-size: 11px; color: var(--muted); line-height: 1.9; }
.mini-tag { display: inline-grid; place-items: center; width: 23px; height: 23px; border: 1px solid #d4dfd0; color: #54735f; font-size: 10px; border-radius: 5px; }
.safety-lock { display: flex; align-items: center; gap: 10px; margin: 25px 9px 0; font-size: 11px; }
.safety-lock > span { font-size: 25px; color: var(--teal); }
.safety-lock small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.workspace { min-width: 0; }
.topbar { min-height: 86px; border-bottom: 1px solid var(--line); padding: 18px 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fcfdf9; }
.breadcrumb { color: var(--muted); font-size: 12px; white-space: nowrap; }
.breadcrumb > span { margin: 0 12px; color: #a4afa9; }
.breadcrumb strong { color: var(--navy); font-weight: 550; }
.topbar-tools { display: flex; align-items: center; gap: 20px; }
.clock { text-align: right; font-variant-numeric: tabular-nums; }
.clock time { font-weight: 650; font-size: 13px; }
.clock > span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; font-weight: 600; font-size: 12px; text-decoration: none; transition: background .15s, border-color .15s; }
.primary { color: white; background: var(--teal); border-color: var(--teal); }
.primary:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.secondary { background: white; border-color: #dce4df; color: var(--navy); }
.secondary:hover:not(:disabled) { background: #f1f5ef; border-color: #bacdc2; }
.text-button { color: var(--teal-dark); background: transparent; }
.text-button:hover:not(:disabled) { background: var(--teal-light); }
.danger-button { background: var(--red); color: white; border-color: var(--red); }
.danger-button:hover:not(:disabled) { background: #812c26; }
.small { padding: 8px 12px; font-size: 11px; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--muted); background: white; font-size: 25px; flex-shrink: 0; }
.icon-button:hover { background: var(--canvas); color: var(--navy); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 10px; line-height: 1.3; font-weight: 650; border-radius: 5px; width: fit-content; }
.neutral { background: #f0f3f0; color: #586965; }
.demo { color: #735428; background: #f5ecd8; }
.warning { color: var(--amber); background: var(--amber-light); }
.success, .status-active { color: var(--teal-dark); background: var(--teal-light); }
.danger { color: var(--red); background: var(--red-light); }
.status-open { background: var(--blue-light); color: var(--blue); }
.status-triggered { background: var(--amber-light); color: var(--amber); }
.status-closed { background: #eff1ef; color: #626e69; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; flex-shrink: 0; }
.open-dot { background: #739bc3; }.triggered-dot { background: #c2903d; }.active-dot { background: var(--teal); }.closed-dot { background: #8d9b92; }
main { max-width: 1860px; margin: 0 auto; padding: 34px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.heading-dot { color: var(--teal); }
.sync-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; text-align: right; }
.sync-note .status-dot { color: var(--teal); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid currentColor; border-radius: 8px; padding: 13px 17px; margin-bottom: 22px; font-size: 12px; overflow-wrap: anywhere; }
.notice p { margin-bottom: 0; }
.notice strong + p { margin-top: 5px; }
.notice .button { flex-shrink: 0; }
.notice.danger { border-color: #ebcbc4; }.notice.success { border-color: #c9e2d5; }.notice.warning { border-color: #e9dbb8; }
.mode-notice { border-color: #e3dfce; background: #f5f1e6; color: #706443; justify-content: flex-start; }
.mode-notice.live-mode { background: #eff5ee; border-color: #d9e3d4; color: #466854; }
.notice-symbol { display: inline-grid; place-items: center; flex-shrink: 0; border: 1px solid currentColor; border-radius: 50%; width: 18px; height: 18px; font-family: Georgia, serif; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { background: var(--surface); padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; color: var(--navy); transition: border-color .15s, transform .15s; }
.stat-card:hover { border-color: #9ebaae; transform: translateY(-2px); }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.stat-label > span:last-child { margin-left: auto; color: #728479; font-size: 15px; }
.stat-card > strong { display: block; font-size: 38px; line-height: 1.35; letter-spacing: -1.5px; margin: 13px 0 6px; font-weight: 550; font-variant-numeric: tabular-nums; }
.stat-card > span:last-child { color: var(--muted); font-size: 10px; }
.stat-card.accent-card { background: #edf5ee; border-color: #d6e6d8; }
.accent-card > strong { color: var(--teal-dark); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 23px 19px; }
.panel-heading .eyebrow { display: block; margin-bottom: 7px; font-size: 9px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr); gap: 20px; margin-bottom: 26px; }
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2px 23px 23px; }
.pipeline > div { padding: 0 14px; border-right: 1px solid var(--line); }
.pipeline > div:first-child { padding-left: 0; }.pipeline > div:last-child { border: 0; padding-right: 0; }
.step-number { display: block; color: #9eaea1; font-size: 11px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.pipeline strong { font-size: 11px; font-weight: 650; }
.pipeline p { font-size: 10px; color: var(--muted); margin: 8px 0 0; line-height: 1.8; }
.panel-foot { padding: 13px 23px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; line-height: 1.6; flex-wrap: wrap; background: #fdfefb; }
.breakdown { padding: 0 23px 23px; display: grid; gap: 15px; }
.breakdown-line { display: grid; grid-template-columns: 61px minmax(30px, 1fr) 32px; align-items: center; gap: 12px; font-size: 11px; }
.breakdown-line button { border: 0; background: transparent; color: var(--navy); padding: 0; min-height: 30px; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.breakdown-line strong { text-align: right; font-weight: 600; }
progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 3px; overflow: hidden; background: #eef2ed; color: var(--teal); }
progress::-webkit-progress-bar { background: #eef2ed; border-radius: 3px; }progress::-webkit-progress-value { background: #74a999; border-radius: 3px; }progress::-moz-progress-bar { background: #74a999; border-radius: 3px; }
.signals-panel { margin-bottom: 24px; }
.heading-count { background: #f0f3ed; color: #627569; padding: 3px 7px; font-size: 11px; border-radius: 5px; vertical-align: middle; margin-left: 6px; letter-spacing: 0; }
.timeframe-tabs { display: flex; padding: 0 23px; border-bottom: 1px solid var(--line); gap: 24px; overflow-x: auto; }
.timeframe-tabs button { color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 14px 2px; min-height: 47px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.timeframe-tabs button[aria-selected="true"] { color: var(--teal-dark); border-bottom-color: var(--teal); }
.timeframe-tabs button span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; font-size: 9px; margin-left: 4px; background: #f0f3ed; border-radius: 4px; }
.filter-bar { padding: 17px 23px; display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filter-bar > div { flex: 1 1 120px; }.filter-bar .search-field { flex: 1.8 1 185px; }
label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 7px; }
input, select, textarea { border: 1px solid #dce3df; background: #fff; color: var(--navy); padding: 10px 11px; min-height: 44px; width: 100%; font-size: 12px; }
input::placeholder, textarea::placeholder { color: #77847e; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--teal); flex-shrink: 0; }
select { padding-right: 22px; }
textarea { resize: vertical; min-height: 85px; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #bccfc3 #f2f5ee; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
.signal-table { min-width: 1100px; }.instrument-table { min-width: 850px; }
/* Empty/error states must stay in the mobile viewport, not at the centre of a wide table. */
.table-scroll table:has(td[colspan]) { min-width: 0; }
.table-scroll table:has(td[colspan]) thead { display: none; }
th { color: #6a7d72; font-size: 9px; font-weight: 650; letter-spacing: .35px; background: #f6f8f3; padding: 13px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 16px; border-bottom: 1px solid #edf0ea; vertical-align: middle; line-height: 1.5; }
th:first-child, td:first-child { padding-left: 23px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcf8; }
.instrument-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.symbol-monogram { width: 33px; height: 35px; display: grid; place-items: center; background: #edf2e8; color: #5c775c; font-weight: 700; font-size: 10px; border: 1px solid #e2e9dd; border-radius: 7px; flex-shrink: 0; }
.symbol-button { color: var(--navy); background: transparent; border: 0; padding: 0; min-height: 24px; font-size: 11px; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-color: #b9ccc1; text-underline-offset: 3px; }
.cell-sub { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; max-width: 220px; overflow-wrap: anywhere; }
.instrument-name { max-width: 165px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.row-tags { display: inline-flex; gap: 4px; margin-left: 5px; }
.row-tags .badge { font-size: 8px; padding: 2px 4px; }
.timeframe-chip { font-size: 10px; padding: 4px 7px; background: #f1f4ee; border: 1px solid #e5ebe2; border-radius: 4px; display: inline-block; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rsi-value { color: var(--teal-dark); background: #eef5eb; border-radius: 5px; padding: 5px 7px; font-weight: 650; }
.market-panel { margin-bottom: 26px; }
.market-panel > .panel-heading { flex-wrap: wrap; padding-bottom: 12px; }
.market-intro { margin: 0; padding: 0 23px 15px; color: var(--muted); font-size: 11px; }
.market-toolbar { display: flex; align-items: flex-end; gap: 14px; padding: 0 23px 15px; }
.market-toolbar .search-field { flex: 1; max-width: 380px; min-width: 0; }
.market-toolbar > .button { margin-left: auto; flex-shrink: 0; }
.market-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0 23px 17px; color: var(--muted); font-size: 11px; }
.market-summary-note { flex-basis: 100%; padding-top: 5px; font-size: 10px; line-height: 1.6; }
.market-refresh-warning { margin: 0; padding: 12px 23px; color: var(--amber); background: var(--amber-light); border-top: 1px solid #e9dbb8; font-size: 11px; }
.market-scroll:focus-visible { outline-offset: -3px; }
.market-table { min-width: 1120px; }
.market-table th { padding: 12px; }
.market-table td { padding: 13px 12px; vertical-align: top; }
.market-table th:first-child, .market-table td:first-child { padding-left: 23px; }
.market-table .th-sub { display: block; margin-top: 4px; font-weight: 400; font-size: 9px; letter-spacing: 0; }
.market-table .instrument-cell { min-width: 180px; }
.market-table .instrument-name { max-width: 165px; }
.market-table .market-close { min-width: 142px; }
.market-table .market-close .cell-sub { max-width: 150px; white-space: normal; }
.market-table .market-rsi { min-width: 94px; }
.market-rsi-value { display: inline-block; padding: 5px 7px; font-weight: 650; }
.market-table .rsi-value { display: inline-block; }
.market-table .qualifying-label { color: var(--teal-dark); font-size: 9px; }
.market-table .market-counts { min-width: 162px; font-variant-numeric: tabular-nums; }
.market-counts .cell-sub { max-width: 185px; }
.market-table .market-status { min-width: 238px; width: 255px; }
.market-status .cell-sub { max-width: none; }
.market-warning-row td:first-child { box-shadow: inset 3px 0 0 #bd8d3d; }
.market-scan-error { color: var(--amber); font-size: 10px; line-height: 1.6; margin: 7px 0; max-width: 250px; overflow-wrap: anywhere; }
.market-period-details { margin-top: 5px; white-space: normal; }
.market-period-details > summary { color: var(--teal-dark); cursor: pointer; min-height: 36px; padding: 9px 0; font-weight: 600; font-size: 10px; }
.market-period-list { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8faf5; }
.market-period + .market-period { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.market-period > strong { font-size: 11px; }
.market-period dl { display: grid; gap: 3px; margin: 8px 0; font-size: 10px; }
.market-period dt { color: var(--muted); }
.market-period dd { margin: 0 0 5px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.market-period p { color: var(--muted); font-size: 10px; margin: 6px 0 0; }
.market-help { border-top: 1px solid var(--line); padding: 0 23px; background: #fcfdf9; }
.market-help > summary { min-height: 44px; padding: 14px 0; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; }
.market-help > div { max-width: 980px; padding-bottom: 15px; color: var(--muted); font-size: 11px; }
.market-help p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .market-intro, .market-toolbar, .market-summary { padding-left: 17px; padding-right: 17px; }
  .market-toolbar { flex-wrap: wrap; gap: 8px; }
  .market-toolbar .search-field { flex-basis: 100%; max-width: none; }
  .market-refresh-warning, .market-help { padding-left: 17px; padding-right: 17px; }
  .market-panel .heading-count { display: inline-block; margin-top: 5px; }
  .market-period-details > summary { min-height: 44px; padding-top: 13px; padding-bottom: 13px; }
}
.targets { display: flex; gap: 7px; }.target { font-size: 10px; color: #6b7e73; }.target.hit { color: var(--teal-dark); font-weight: 700; }.target + .target { border-left: 1px solid var(--line); padding-left: 7px; }
.row-actions { display: flex; gap: 4px; align-items: center; }.row-actions .button { min-height: 36px; padding: 7px 8px; font-size: 10px; white-space: nowrap; }
.close-link { color: #875c51; }
.empty-state { text-align: center; padding: 38px 16px; white-space: normal; }.empty-state h3 { margin: 12px 0 7px; }.empty-state p { color: var(--muted); font-size: 12px; margin-bottom: 14px; }.empty-state .empty-symbol { font-size: 28px; color: #8ba796; }
.empty-cell { padding: 27px; text-align: center; color: var(--muted); font-size: 12px; }
.loader { display: inline-block; width: 24px; height: 24px; border: 2px solid #d7e8dd; border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.view-switch { display: flex; gap: 5px; padding: 5px; background: #eaf0e6; border: 1px solid #dfe7db; border-radius: 8px; width: fit-content; margin-bottom: 20px; }
.view-switch button { border: 0; background: transparent; padding: 11px 15px; min-height: 44px; color: var(--muted); font-size: 12px; }.view-switch .selected { background: white; color: var(--teal-dark); font-weight: 600; }
.instruments-toolbar { display: flex; gap: 25px; align-items: center; padding: 0 23px 20px; }.instruments-toolbar .search-field { flex: 1; min-width: 230px; }.instruments-toolbar p { flex: 1; margin: 0; }
.toggle-button { display: flex; gap: 8px; align-items: center; background: transparent; border: 0; color: var(--muted); min-height: 44px; padding: 4px; font-size: 11px; }.toggle-track { width: 30px; height: 18px; border-radius: 12px; background: #99a69c; padding: 3px; display: block; }.toggle-track::after { content: ""; width: 12px; height: 12px; display: block; background: white; border-radius: 50%; }.toggle-button[aria-checked="true"] .toggle-track { background: var(--teal); }.toggle-button[aria-checked="true"] .toggle-track::after { transform: translateX(12px); }.toggle-button[aria-checked="true"] { color: var(--teal-dark); }
.activity-preview { margin-top: 24px; }.event-list { list-style: none; padding: 0; margin: 0; }.event-row { padding: 17px 23px; display: flex; gap: 15px; align-items: flex-start; border-top: 1px solid #edf0e9; }.event-marker { color: var(--teal); background: var(--teal-light); width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; flex-shrink: 0; }.event-copy { flex: 1; min-width: 0; }.event-copy strong { font-size: 11px; }.event-copy p { font-size: 11px; color: var(--muted); margin: 5px 0 0; overflow-wrap: anywhere; }.event-row time { color: var(--muted); font-size: 10px; flex-shrink: 0; padding-top: 4px; }.event-row .button { min-height: 28px; padding: 3px 8px; font-size: 10px; }
.notification-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }.notification-card { padding: 20px; }.notification-card strong { display: block; font-size: 25px; font-weight: 550; margin-top: 8px; }.notification-card > span { font-size: 11px; color: var(--muted); }.notification-card p { font-size: 10px; color: var(--muted); margin: 7px 0 0; }
.activity-filter { max-width: 450px; padding: 0 23px 20px; }
.setup-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-bottom: 22px; }.setup-card { padding: 26px; margin-bottom: 22px; }.setup-grid .setup-card { margin-bottom: 0; }.setup-card h2 { margin: 12px 0 15px; }.setup-card > p { color: var(--muted); font-size: 12px; }.stack-form { display: grid; gap: 10px; margin-top: 20px; }.stack-form label { margin-bottom: 0; }.stack-form p { margin-bottom: 4px; }.button-row { display: flex; gap: 10px; flex-wrap: wrap; }.facts-list { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px 16px; font-size: 12px; margin: 22px 0; }.facts-list dt { color: var(--muted); }.facts-list dd { margin: 0; overflow-wrap: anywhere; }.feed-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 25px; gap: 22px; }.feed-options article { border-top: 2px solid #dce8de; padding: 20px 0 6px; }.feed-options h3 { margin: 14px 0 9px; font-size: 18px; }.feed-options p { color: var(--muted); font-size: 12px; margin-top: 12px; }.config-details { border-top: 1px solid var(--line); margin-top: 14px; }.config-details summary { padding: 20px 0 6px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 12px; }.config-content { font-size: 12px; }.config-list { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 15px 22px; margin: 24px 0; }.config-list dd { margin: 0; color: var(--muted); line-height: 1.6; }
.workspace-footer { display: flex; justify-content: space-between; gap: 20px; font-size: 9px; color: #728275; border-top: 1px solid var(--line); padding: 22px 0 5px; margin-top: 32px; line-height: 1.8; }.workspace-footer > span { max-width: 50%; }.workspace-footer strong { font-weight: 600; }
.muted { color: var(--muted); }.small-text { font-size: 11px; }.error-text { color: var(--red); overflow-wrap: anywhere; }.auth-panel { max-width: 520px; padding: 32px; margin: 45px auto; }.auth-panel h1 { margin-top: 15px; }.auth-panel > p { color: var(--muted); }.auth-panel > .button-row { margin: 16px 0; }
dialog { color: var(--navy); border: 1px solid var(--line); padding: 0; background: white; box-shadow: -12px 0 70px #15382824; max-height: 100vh; max-height: 100dvh; }
dialog::backdrop { background: #18352866; backdrop-filter: blur(3px); }
.drawer { margin: 0 0 0 auto; width: min(660px, 100%); max-width: 100%; height: 100vh; height: 100dvh; border-radius: 16px 0 0 16px; }
.form-dialog { width: min(590px, calc(100% - 24px)); border-radius: 14px; }
.dialog-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dialog-header { padding: 23px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: #fbfcf8; flex-shrink: 0; }
.dialog-header h2 { margin-top: 7px; font-size: 23px; overflow-wrap: anywhere; }
.dialog-content { padding: 26px; overflow-y: auto; min-height: 0; overscroll-behavior-y: contain; }
body.modal-open { overflow: hidden; }
.detail-intro { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }.detail-intro p { flex-basis: 100%; color: var(--muted); font-size: 12px; margin: 4px 0; }
.detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 9px; overflow: hidden; margin: 20px 0; }.detail-facts > div { background: #fbfcf9; padding: 15px; }.detail-facts dt { font-size: 10px; color: var(--muted); margin-bottom: 8px; }.detail-facts dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.detail-section { margin-top: 27px; border-top: 1px solid var(--line); padding-top: 20px; }.detail-section h3 { margin-bottom: 15px; }.detail-section .event-row { padding-left: 0; padding-right: 0; flex-wrap: wrap; }.detail-section .event-row time { flex-basis: 100%; margin-left: 44px; }.detail-section .facts-list { font-size: 11px; }.notification-item { background: #f8faf5; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-top: 10px; font-size: 11px; }.notification-item p { margin: 8px 0 0; }.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 15px 0 22px; }.full-width { grid-column: 1 / -1; }.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 400; line-height: 1.6; min-height: 44px; margin: 10px 0; }.confirm-form { background: #f6f9f2; border: 1px solid #dfe8d8; padding: 20px; border-radius: 10px; margin-top: 20px; }.confirm-form h3 { margin: 0 0 13px; }.confirm-form p { font-size: 12px; }.confirm-form .notice { margin-bottom: 15px; }.entry-preview { color: var(--teal-dark); display: block; font-size: 11px; line-height: 1.7; margin-top: 10px; }
@media (min-width: 1600px) { .sidebar { padding: 36px 25px 24px; }.app-shell { grid-template-columns: 250px minmax(0, 1fr); } main { padding: 40px 44px; }.topbar { padding-left: 44px; padding-right: 44px; } td { padding-top: 20px; padding-bottom: 20px; } }
@media (max-width: 1200px) { .app-shell { grid-template-columns: 200px minmax(0, 1fr); }.sidebar { padding: 28px 13px 18px; }.brand { font-size: 23px; gap: 8px; }.brand small { font-size: 7px; }.topbar { padding: 16px 24px; }.topbar-tools { gap: 12px; }main { padding: 27px 24px; }.stat-card { padding: 17px; }.stat-card > span:last-child { font-size: 9px; }.overview-grid { grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); }.pipeline { padding-left: 18px; padding-right: 18px; }.pipeline > div { padding: 0 10px; }.page-heading { align-items: flex-start; }.sync-note { max-width: 160px; padding-top: 8px; } }
@media (max-width: 1000px) { .app-shell { grid-template-columns: 178px minmax(0, 1fr); }.brand-mark { width: 30px; height: 36px; }.brand { font-size: 21px; }.brand small { letter-spacing: .6px; }.nav-item { padding: 12px 9px; }.breadcrumb { display: none; }.topbar { justify-content: flex-end; }.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.stat-card > strong { margin-top: 7px; }.overview-grid { grid-template-columns: 1fr; }.breakdown { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }.breakdown-line { grid-template-columns: 1fr 25px; gap: 5px; }.breakdown-line progress { grid-column: 1 / -1; grid-row: 2; }.breakdown-line strong { grid-row: 1; grid-column: 2; }.setup-grid { grid-template-columns: 1fr; }.feed-options { grid-template-columns: 1fr; gap: 6px; }.notification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.event-row { flex-wrap: wrap; }.event-row time { margin-left: 44px; }.instruments-toolbar { flex-direction: column; align-items: stretch; gap: 15px; } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { position: static; height: auto; padding: 18px 18px 0; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }.brand { font-size: 25px; }.brand-mark { width: 35px; height: 39px; }.brand small { font-size: 8px; letter-spacing: 1px; }.workspace-label, .sidebar-bottom { display: none; }.main-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 20px; }.nav-item { justify-content: center; padding: 11px 7px; font-size: 11px; border-radius: 7px 7px 0 0; gap: 7px; min-height: 47px; }.nav-item svg { width: 16px; height: 16px; }.nav-count { display: none; }.topbar { padding: 13px 18px; min-height: 73px; justify-content: space-between; }.topbar-tools { width: 100%; justify-content: space-between; gap: 10px; }.clock { text-align: left; }.clock time { font-size: 12px; }.clock > span { font-size: 9px; }.topbar .button { padding: 10px 12px; }.topbar .badge { font-size: 9px; }main { padding: 26px 18px; }.page-heading { display: block; margin-bottom: 18px; }.page-heading h1 { font-size: 30px; }.page-heading p { font-size: 12px; }.sync-note { max-width: none; text-align: left; padding-top: 13px; }.notice { font-size: 11px; padding: 12px 14px; gap: 10px; }.stat-grid { gap: 12px; }.stat-card { padding: 17px; }.stat-card > strong { font-size: 34px; }.stat-card > span:last-child { font-size: 10px; }.panel-heading { padding: 20px 17px 17px; gap: 10px; }.panel-heading h2 { font-size: 17px; }.panel-heading .button { padding-left: 8px; padding-right: 8px; font-size: 10px; }.pipeline { padding: 0 17px 20px; }.panel-foot { padding: 12px 17px; font-size: 9px; }.breakdown { padding: 0 17px 23px; gap: 15px; }.timeframe-tabs { padding: 0 17px; gap: 20px; }.filter-bar { padding: 17px; gap: 12px; }.filter-bar .search-field { flex-basis: 100%; }.filter-bar > div { flex-basis: calc(50% - 12px); }.filter-bar .button { margin-left: auto; }.event-row { padding: 16px 17px; gap: 12px; }.event-row time { margin-left: 41px; }.workspace-footer { display: block; }.workspace-footer > span { display: block; max-width: none; margin-bottom: 8px; }.setup-card { padding: 22px; }.config-list { grid-template-columns: 1fr; gap: 8px; }.config-list dd { margin-bottom: 10px; }.auth-panel { padding: 24px; margin-top: 20px; }.instruments-toolbar { padding-left: 17px; padding-right: 17px; }.row-actions .button, .symbol-button { min-height: 44px; }.breakdown-line button { min-height: 44px; } }
@media (max-width: 400px) { .nav-item { font-size: 10px; gap: 5px; }.nav-item svg { width: 14px; } main { padding: 22px 12px; }.sidebar, .topbar { padding-left: 12px; padding-right: 12px; }.topbar-tools { flex-wrap: wrap; }.stat-card { padding: 14px; }.stat-card > span:last-child { font-size: 9px; }.pipeline { grid-template-columns: 1fr; gap: 15px; }.pipeline > div { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 13px; }.pipeline > div:first-child { padding-bottom: 13px; }.step-number { float: left; margin-right: 14px; margin-top: 3px; }.pipeline p { margin-left: 28px; }.timeframe-tabs { gap: 15px; }.timeframe-tabs button { font-size: 10px; }.dialog-content, .dialog-header { padding: 20px; }.detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }.form-grid { grid-template-columns: 1fr; }.view-switch { width: 100%; }.view-switch button { flex: 1; padding: 9px; font-size: 11px; }.notice { flex-wrap: wrap; }.mode-notice { flex-wrap: nowrap; } }
.telegram-card .panel-heading { padding: 0; flex-wrap: wrap; }
.telegram-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.telegram-card .form-grid > div { min-width: 0; }
.telegram-card .notice { display: block; }
.telegram-card input[type="checkbox"] { flex-shrink: 0; }
.telegram-card .button-row { margin: 18px 0 8px; }
.telegram-card .badge { white-space: normal; }
@media (max-width: 760px) { .telegram-card .form-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }