/* Основные стили журнала (вынесены из index.html в 27.5): цвета светлой и тёмной темы через CSS-переменные, раскладка экранов,
   общие элементы. Стили модулей лежат рядом с их файлами (settings.css, filters.css...). Грузится после них, как раньше встроенный блок. */
:root {
  color-scheme: light;
  --bg: #F3F3F2; --panel: #FFFFFF; --line: #E3E3E1; --line2: #EEEEEC; --ink: #0E0E0E; --ink2: #45454A; --muted: #75757A; --muted2: #A6A6AA;
  --ctl: #D6D6D4; --soft: #F4F4F3; --soft2: #FAFAF9; --accent: #004EFC; --accent-text: #004EFC; --accent-soft: rgba(0, 78, 252, 0.08); --on-accent: #FFFFFF; --on-accent-sub: #D9DFFE;
  --pos: #0A8A74; --neg: #D63A5A; --pos-soft: rgba(10, 138, 116, 0.10); --neg-soft: rgba(214, 58, 90, 0.09); --pos-strong: #0A8A74; --neg-strong: #D63A5A; --amber: #F0B43C; --amber-soft: #FBF0D9; --amber-text: #8F5E00;
  --ok-fg: #0A8A74; --ok-bg: rgba(10, 138, 116, 0.10); --warn-fg: #8F5E00; --warn-fg2: #8F5E00; --warn-bg: #FBF0D9;
  --feature: #004EFC; --tab-line: #0E0E0E;
  --r-lg: 4px; --r-md: 3px; --r-sm: 2px;
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}
:root[data-theme="dark"], :root[data-theme="auto"][data-tg-theme="dark"] {
  color-scheme: dark;
  --bg: #17181A; --panel: #1F2023; --line: #2F3034; --line2: #27282B; --ink: #ECECEA; --ink2: #B4B4B1; --muted: #8A8A88; --muted2: #5C5C5E;
  --ctl: #3D3E42; --soft: #27282B; --soft2: #1B1C1E; --accent: #2F6BFF; --accent-text: #9DAEFF; --accent-soft: rgba(157, 174, 255, 0.12); --on-accent: #FFFFFF; --on-accent-sub: #D9DFFE;
  --pos: #34A99E; --neg: #E06A7E; --pos-soft: rgba(52, 169, 158, 0.13); --neg-soft: rgba(224, 106, 126, 0.13); --pos-strong: #237A70; --neg-strong: #A4475A; --amber: #E6BE80; --amber-soft: rgba(230, 190, 128, 0.12); --amber-text: #E6BE80;
  --ok-fg: #34A99E; --ok-bg: rgba(52, 169, 158, 0.13); --warn-fg: #E6BE80; --warn-fg2: #E6BE80; --warn-bg: #2E2717;
  --feature: #2F45C8; --tab-line: #ECECEA;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"]:not([data-tg-theme="light"]) {
    color-scheme: dark;
    --bg: #17181A; --panel: #1F2023; --line: #2F3034; --line2: #27282B; --ink: #ECECEA; --ink2: #B4B4B1; --muted: #8A8A88; --muted2: #5C5C5E;
    --ctl: #3D3E42; --soft: #27282B; --soft2: #1B1C1E; --accent: #2F6BFF; --accent-text: #9DAEFF; --accent-soft: rgba(157, 174, 255, 0.12); --on-accent: #FFFFFF; --on-accent-sub: #D9DFFE;
    --pos: #34A99E; --neg: #E06A7E; --pos-soft: rgba(52, 169, 158, 0.13); --neg-soft: rgba(224, 106, 126, 0.13); --pos-strong: #237A70; --neg-strong: #A4475A; --amber: #E6BE80; --amber-soft: rgba(230, 190, 128, 0.12); --amber-text: #E6BE80;
    --ok-fg: #34A99E; --ok-bg: rgba(52, 169, 158, 0.13); --warn-fg: #E6BE80; --warn-fg2: #E6BE80; --warn-bg: #2E2717;
    --feature: #2F45C8; --tab-line: #ECECEA;
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  }
}
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Geist', system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
input, textarea, select { background: var(--panel); color: var(--ink); }
h1, h2, h3 { letter-spacing: -0.015em; }
.feature { background: var(--feature); color: #FFFFFF; border-color: var(--feature) !important; }
.tone-feature { --panel: var(--feature); --ink: #FFFFFF; --ink2: rgba(255, 255, 255, 0.86); --muted: rgba(255, 255, 255, 0.72); --muted2: rgba(255, 255, 255, 0.5); --line: rgba(255, 255, 255, 0.22); --line2: rgba(255, 255, 255, 0.18); --soft: rgba(255, 255, 255, 0.12); --ctl: rgba(255, 255, 255, 0.4);
  --pos: #FFFFFF; --neg: #FFC2CD; --pos-soft: rgba(255, 255, 255, 0.16); --neg-soft: rgba(255, 194, 205, 0.2); --ok-bg: rgba(255, 255, 255, 0.18); --ok-fg: #FFFFFF; --warn-bg: rgba(255, 255, 255, 0.18); --warn-fg: #FFFFFF; --accent-text: #FFFFFF; color: #FFFFFF; }
.tone-ink { --panel: #111113; --ink: #F2F2F0; --ink2: #C8C8C5; --muted: #8F8F8C; --muted2: #5E5E5E; --line: #111113; --line2: #29292C; --soft: #1E1E21; --ctl: #3A3A3D;
  --pos: #34A99E; --neg: #E06A7E; --pos-soft: rgba(52, 169, 158, 0.14); --neg-soft: rgba(224, 106, 126, 0.15); --ok-bg: rgba(52, 169, 158, 0.14); --ok-fg: #34A99E; --warn-bg: rgba(230, 190, 128, 0.14); --warn-fg: #E6BE80; --accent-text: #8EA1FF; color: var(--ink); }
:root[data-theme="dark"] .tone-ink { --panel: #2B2C30; --line: #2B2C30; --line2: #36373B; --soft: #333438; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .tone-ink { --panel: #2B2C30; --line: #2B2C30; --line2: #36373B; --soft: #333438; } }
.seg { display: inline-flex; border: 1px solid var(--ctl); border-radius: var(--r-md); overflow: hidden; }
.seg > button { font-family: inherit; font-size: 13px; padding: 0 12px; height: 30px; border: 0; background: var(--panel); color: var(--ink2); cursor: pointer; }
.seg > button + button { border-left: 1px solid var(--ctl); }
.seg > button[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 32px !important;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%) !important;
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52% !important; background-size: 5px 5px, 5px 5px !important; background-repeat: no-repeat !important; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
button[aria-busy="true"] { opacity: 0.7; cursor: progress; }
@media (max-width: 1100px) { .tb-hide { display: none !important; } }
@media (max-width: 759px) { .rc-x { display: none !important; } }
/* телефон: всё ниже действует только при ширине до 759 px (класс .ph на корне) */
.ph { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
.ph button, .ph a, .ph select, .ph input { touch-action: manipulation; }
.ph main section[style*="padding: 20px 22px"], .ph main section[style*="padding: 22px 24px"], .ph main section[style*="padding: 18px 20px"] { padding: 16px !important; }
.ph main h2 { font-size: 15px !important; }
.ph .num-lg { font-size: 28px !important; }
.ph .num-md { font-size: 22px !important; }
.ph .met-v { font-size: 17px !important; }
.ph .mc-lv { display: none; }
.ph .mc-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.ph .mc-top > .feature { grid-column: 1 / -1; padding: 16px !important; }
.ph .mc-tr { grid-column: 3; text-align: left !important; margin-top: -6px; }
.ph .add-btn { flex: 0 0 auto; width: 40px; padding: 0 !important; font-size: 22px !important; font-weight: 400 !important; margin-left: 0 !important; }
.ph .card-res { flex-direction: row !important; align-items: baseline !important; gap: 10px; }
.ph .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ph .seg::-webkit-scrollbar { display: none; }
.ph main [style*="overflow-x: auto"] { scrollbar-width: none; }
.ph main [style*="overflow-x: auto"]::-webkit-scrollbar { display: none; }
.ph .seg > button { white-space: nowrap; flex-shrink: 0; height: 34px; }
.ph input, .ph select { font-size: 16px !important; }
@keyframes tj-spin { to { transform: rotate(360deg); } }
.spin svg { animation: tj-spin 0.9s linear infinite; }
/* skeleton: grey blocks in the shape of the screen with a light wave; the phase is shared (--skd), so a redraw does not restart it */
@keyframes tj-wave { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.sk { display: block; border-radius: var(--r-md); background: var(--line2) linear-gradient(90deg, transparent 0%, var(--soft2) 45%, var(--panel) 50%, var(--soft2) 55%, transparent 100%) no-repeat; background-size: 60% 100%;
  animation: tj-wave 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: var(--skd, 0ms); }  /* медленная мягкая волна (29.1) */
:root[data-theme="dark"] .sk { background-color: #26272A; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .sk { background-color: #26272A; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
#boot { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); position: fixed; inset: 0; z-index: 60; overflow: hidden; transition: opacity 0.4s ease; }
#boot.gone { opacity: 0; pointer-events: none; }
#boot .b-main[class*=" s-"] { display: flex; flex-direction: column; gap: 16px; }  /* форма экрана из skeleton.js */
.sk-in { animation: tj-fadein 0.3s ease both; display: flex; flex-direction: column; gap: 16px; }
.sk-in .b-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.axc-msg .sk-candles { width: 100%; }
#boot .b-head { height: 60px; display: flex; align-items: center; gap: 24px; padding: 0 32px; background: var(--panel); border-bottom: 1px solid var(--line); }
#boot .b-main { padding: 28px 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; max-width: 1400px; width: 100%; box-sizing: border-box; }
#boot .b-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
#boot .b-wide { grid-column: 1 / -1; }
#boot .b-hero { background: var(--feature); border-color: var(--feature); }
#boot .b-dark { background: #141416; border-color: #141416; }
#boot .b-hero .sk, #boot .b-dark .sk { background-color: rgba(255, 255, 255, 0.16); background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent); }
#boot .b-head.b-ph { background: transparent; border-bottom: 0; height: 56px; }
#boot .b-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; display: flex; justify-content: space-around; align-items: center; background: var(--panel); border-top: 1px solid var(--line); }
#boot .b-tabs span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
@media (max-width: 759px) { #boot .b-head { padding: 0 16px; } #boot .b-nav { display: none; } #boot .b-main { grid-template-columns: 1fr; padding: 16px; } #boot .b-main[class*=" s-"] { padding-bottom: 80px; } }
/* screen change and theme change: soft cross-fade (View Transitions, where the browser has them) */
::view-transition-old(root) { animation: 160ms ease both tj-out; }
::view-transition-new(root) { animation: 260ms ease both tj-in; }
@keyframes tj-out { to { opacity: 0; } }
@keyframes tj-in { from { opacity: 0; transform: translateY(6px); } }
html.tj-theme::view-transition-old(root) { animation: 320ms ease both tj-out; }
html.tj-theme::view-transition-new(root) { animation: 320ms ease both tj-fadein; }
@keyframes tj-fadein { from { opacity: 0; } }
.live { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px 0 7px; border-radius: 10px; background: var(--ok-bg); color: var(--ok-fg); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.live i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: livepulse 2s ease-out infinite; }
@keyframes livepulse { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live i::after { animation: none; } }
/* список сделок: дата и время в своих колонках, метка «открыта» ровно той же длины */
/* «Пример»: полоса над экраном и пустая главная */
.ex-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r-md); font-size: 13px; color: var(--ink); }
.ex-txt { min-width: 0; flex: 1 1 320px; line-height: 1.45; }
.ex-act { display: flex; gap: 8px; flex: 0 0 auto; }
.ex-btn, .ob-btn { display: inline-flex; align-items: center; justify-content: center; font-family: inherit; font-size: 13px; font-weight: 600; height: 32px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--ctl); background: var(--panel); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.ex-pri, .ob-pri { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.ph .ex-bar { position: static; margin: 0 0 12px; }
.ph .ex-btn, .ph .ob-btn { height: 40px; flex: 1 1 auto; }
.ph .ex-act { flex: 1 1 100%; }
.ob { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); max-width: 720px; }
.ob-step { font-size: 12px; color: var(--accent-text); font-weight: 600; }
.ob-step:empty { display: none; }
.ob h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.ob p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.ob-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ob .ob-hint { font-size: 13px; color: var(--muted); }
.axc { position: absolute; inset: 0; }
.axc-plot { position: absolute; inset: 0; }
.axc-legend { position: absolute; left: 8px; top: 6px; z-index: 3; pointer-events: none; font-size: 12px; line-height: 1.45; color: var(--ink2); background: color-mix(in srgb, var(--panel) 82%, transparent); padding: 4px 8px; border-radius: var(--r-sm); max-width: calc(100% - 90px); }
.axc-legend b { color: var(--ink); font-weight: 600; }
.axc-note { color: var(--warn-fg); }
.axc-sess { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--muted); }
.axc-ses { display: inline-flex; align-items: center; gap: 4px; }
.axc-ses i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.axc-ohlc { color: var(--muted); font-variant-numeric: tabular-nums; }
.axc-tip { position: absolute; z-index: 4; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 9px; font-size: 12px; line-height: 1.45; color: var(--ink2); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); white-space: nowrap; display: flex; flex-direction: column; gap: 3px; }
.axc-tip[hidden] { display: none; }
.axc-tip b { font-weight: 600; }
.axc-tip span { display: block; font-variant-numeric: tabular-nums; color: var(--muted); }  /* 29.5: подсказка у значка исполнения */
.axc-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); font-size: 13px; pointer-events: none; }
.axc-msg:empty { display: none; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 4px 0; border: 0; background: transparent; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer; }
.sw { position: relative; flex: 0 0 auto; width: 52px; height: 30px; border-radius: 15px; background: var(--ctl); transition: background .18s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform .18s; }
.sw-row[aria-checked="true"] .sw { background: var(--accent); }
.sw-row[aria-checked="true"] .sw i { transform: translateX(22px); }
@media (prefers-reduced-motion: reduce) { .sw, .sw i { transition: none; } }
.shot-pop { position: absolute; right: 2px; top: 38px; z-index: 20; width: 280px; max-width: calc(100vw - 48px); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); font-size: 13px; }
.axc-mini .axc-legend { font-size: 11px; padding: 2px 6px; }
.ph .axc-legend .axc-sess, .axc-mini .axc-legend .axc-sess { display: none; }  /* 04.11.2026: на телефоне подписи сессий закрывали свечи */
.ph .axc-legend { font-size: 11px; padding: 2px 6px; max-width: calc(100% - 80px); }
.axc-mini .axc-logo { width: 46px; height: 29px; left: 8px; bottom: 30px; }
.axc-logo { position: absolute; left: 12px; bottom: 36px; z-index: 3; pointer-events: none; width: 95px; height: 59px; background: var(--accent); -webkit-mask: url(arcadian-mark.svg) center / contain no-repeat; mask: url(arcadian-mark.svg) center / contain no-repeat; }
:root[data-theme="dark"] .axc-logo { background: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .axc-logo { background: #FFFFFF; } }
@media (max-width: 759px) { .axc-logo { width: 52px; height: 32px; left: 8px; bottom: 32px; } }
[data-chart-slot^="wk-"] .axc-logo { width: 28px; height: 17px; left: 8px; bottom: 30px; }
.vw-note { font-size: 13px; color: var(--ink2); background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; }
.vw-note a { color: inherit; font-weight: 600; }
.ph .ob { padding: 20px 18px; }
/* макро: прошедшие недели свёрнуты */
.mc-past { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; font-family: inherit; font-size: 14px; color: var(--ink2); text-align: left; padding: 14px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; }
.mc-past:hover { color: var(--ink); }
/* календарь P&L: макро-события дня рядом с датой */
.cal-mc { display: inline-flex; gap: 3px; min-width: 0; overflow: hidden; }
.cal-mc > span { font-size: 10px; font-weight: 600; line-height: 15px; padding: 0 4px; border-radius: 3px; white-space: nowrap; letter-spacing: 0.01em; }
.cal-mc .mc-hi { background: var(--amber); color: #1A1405; }
.cal-mc .mc-key { background: var(--panel); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
.cal-mc .mc-more { color: inherit; opacity: 0.7; padding: 0 1px; }
.ph .cal-mc > span { font-size: 0; width: 6px; height: 6px; padding: 0; border-radius: 50%; line-height: 0; }
.ph .cal-mc .mc-more { display: none; }
.ph .cal-mc { gap: 2px; flex: 0 0 auto; overflow: visible; }
.ph .cal-mc > span { flex: 0 0 6px; }
.ph .cal-mc .mc-key { background: currentColor; box-shadow: none; opacity: 0.5; }
/* неделя: в ячейке хватает места, метки текстом и на телефоне */
.ph .cal-mc.wk > span { font-size: 10px; width: auto; height: auto; padding: 0 4px; border-radius: 3px; line-height: 15px; flex: 0 0 auto; }
.ph .cal-mc.wk .mc-key { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); opacity: 1; }
.ph .cal-mc.wk .mc-more { display: inline; }
.wd { display: inline-block; min-width: 38px; font-weight: 500; }
.wt { display: inline-block; min-width: 36px; margin-left: 8px; font-size: 12px; color: var(--muted); }
.live.live-lg { height: 36px; padding: 0 16px 0 14px; border-radius: 18px; font-size: 17px; gap: 10px; }
.live.live-lg i { width: 9px; height: 9px; }
.live.live-lg i::after { inset: -4px; border-width: 2px; }
.live.when-open { width: 82px; box-sizing: border-box; justify-content: center; padding: 0 6px; vertical-align: middle; }
/* 29.2 значок «не заполнена» в «Сделках»: стеклянный кружок, подпись только при наведении (на телефоне по нажатию, класс on из needTap).
   Что заполнить, видно в карточке. На широком экране значок висит справа за краем таблицы, на узком (таблица прокручивается) у правого края строки. */
.need { --g-hi: rgba(255, 255, 255, 0.85); --g-lo: rgba(255, 255, 255, 0.2); --g-edge: rgba(255, 255, 255, 0.75);
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; flex: none; box-sizing: border-box;
  color: var(--warn-fg2); font-size: 12px; font-weight: 700; line-height: 1; cursor: default;
  background: linear-gradient(150deg, var(--g-hi), var(--g-lo) 60%), color-mix(in srgb, var(--warn-bg) 75%, transparent);
  border: 1px solid var(--g-edge);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--warn-fg2) 20%, transparent), inset 0 1px 1px var(--g-hi), inset 0 -2px 3px color-mix(in srgb, var(--warn-fg2) 12%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%); }
:root[data-theme="dark"] .need { --g-hi: rgba(255, 255, 255, 0.22); --g-lo: rgba(255, 255, 255, 0.03); --g-edge: rgba(255, 255, 255, 0.16); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .need { --g-hi: rgba(255, 255, 255, 0.22); --g-lo: rgba(255, 255, 255, 0.03); --g-edge: rgba(255, 255, 255, 0.16); } }
.need::after { content: 'не заполнена'; position: absolute; right: -4px; bottom: calc(100% + 8px); white-space: nowrap; padding: 4px 11px; border-radius: 999px;
  background: linear-gradient(150deg, var(--g-hi), var(--g-lo) 70%), color-mix(in srgb, var(--warn-bg) 70%, transparent); border: 1px solid var(--g-edge);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--warn-fg2) 16%, transparent); -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%);
  color: var(--warn-fg2); font-size: 11px; font-weight: 500; pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity 0.15s ease, transform 0.15s ease; z-index: 6; }
.need:hover::after, .need:focus-visible::after, .need.on::after { opacity: 1; transform: none; }
/* ячейка нулевой ширины в конце строки: на узком экране прилипает к правому краю видимой части таблицы,
   на широком (таблица не прокручивается) значок выносится за край карточки */
.need-cell { position: sticky; right: 8px; width: 0; height: 22px; }
.need-cell .need { position: absolute; right: 0; top: 0; }
@media (min-width: 1240px) { .tr-tbl { overflow: visible !important; }  /* у секции overflow-x в разметке */ .need-cell .need { right: -46px; } }

/* загрузка после подключения биржи (30.10.2026): кольцо, полоса на «Главной», окно после подключения */
.ax-loadring { display: inline-flex; width: 44px; height: 44px; margin: 6px 0; }
.ax-loadring > span { flex: 1; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--accent, #3B82F6); animation: tj-spin 0.9s linear infinite; }
.ax-loadring.sm { width: 16px; height: 16px; margin: 0; flex: none; }
/* 12.11: бегущая полоса под текстом «Загружаю сделки» (простая «Главная»): видно, что загрузка идёт */
.ax-loadline { height: 4px; margin: 16px auto 2px; max-width: 260px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.ax-loadline > span { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--accent, #3B82F6); animation: ax-loadline 1.4s ease-in-out infinite; }
@keyframes ax-loadline { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .ax-loadline > span { animation-duration: 4s; } }
.ax-loadring.sm > span { border-width: 2px; }
.ax-loadbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--panel); color: var(--ink); font-size: 13px; margin-bottom: 12px; }
.ax-modal-bg { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, 0.45); animation: tj-fadein 0.15s ease-out; }
.ax-modal { width: 100%; max-width: 420px; background: var(--panel); color: var(--ink); border-radius: var(--r-lg); padding: 22px;
  border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ax-modal h3 { margin: 0; font-size: 18px; }
.ax-modal p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.ax-modal .ax-modal-st { color: var(--ink); font-weight: 500; }
.ax-chip.load { display: inline-flex; align-items: center; gap: 6px; }
.ax-modal .ax-btn { align-self: center; min-width: 140px; }
.tg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--panel); font-size: 14px; line-height: 1.4; }
.tg-bar > div { flex: 1 1 240px; }
/* 05.11 «Простой Arcadian»: на телефоне три пункта меню (Сделки, Главная, Профиль); порядок: Сделки первыми */
.ax-simple .ph-nav { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.ax-simple .ph-nav > button:nth-child(2), .ax-simple .ph-nav > button:nth-child(4) { display: none !important; }
.ax-simple .ph-nav > button:nth-child(3) { order: -1; }
.card-more { align-self: flex-start; min-height: 44px; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-text); background: transparent; border: 0; padding: 8px 0; cursor: pointer; text-align: left; }
