:root {
  --bg: #FAF8FF;
  --card: #FFFFFF;
  --surface: #FFFFFF;
  --tint: var(--tint);
  --tint-2: var(--tint-2);
  --tint-3: var(--tint-3);
  --off: var(--off);
  --gray-chip: var(--gray-chip);
  --tool: var(--tool);
  --glass: var(--glass);
  --glass-2: var(--glass-2);
  --inv: #1F1B2E;
  --inv-fg: #FFFFFF;
  --alert-soft: var(--alert-soft);
  --pop: 0 8px 26px rgba(31,27,46,.22);
  --media: #131722;
  --ink: #1F1B2E;
  --muted: #6B6780;
  --faint: #A29DB8;
  --line: #ECE8F5;
  --acc: #7C5CFF;
  --acc-2: #9B83FF;
  --acc-soft: #EFEBFF;
  --up: #16A37A;
  --up-soft: #E3F6EF;
  --down: #E5484D;
  --down-soft: #FDECEC;
  --warn: #E8912D;
  --warn-soft: #FDF1E3;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 27, 46, .04), 0 6px 20px rgba(124, 92, 255, .07);
  --font: "Manrope", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); }
body { padding-bottom: calc(76px + var(--safe-b)); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--up); } .neg { color: var(--down); } .muted { color: var(--muted); } .warn { color: var(--warn); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--safe-t)) 16px 12px; background: var(--glass); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { display: grid; filter: drop-shadow(0 3px 8px rgba(124,92,255,.35)); }
.logo .pulse { stroke-dasharray: 48; animation: pulse-draw 2.4s ease-in-out infinite; }
@keyframes pulse-draw { 0% { stroke-dashoffset: 48; } 45%, 100% { stroke-dashoffset: 0; } }
.bname { font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1; display: flex; flex-direction: column; }
.bname b { font-weight: 800; background: linear-gradient(90deg, #7C5CFF, #B18CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bname small { font-size: 10px; font-weight: 600; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.pnl-spark { width: 100%; height: 56px; display: block; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.up { background: var(--up-soft); color: var(--up); } .chip.down { background: var(--down-soft); color: var(--down); }
.chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.gray { background: var(--gray-chip); color: var(--muted); }

main { padding: 4px 14px 16px; max-width: 980px; margin: 0 auto; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* карточки */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 10px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px) { .g-auto { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; } }
.tile { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.tile .k { font-size: 12px; color: var(--muted); } .tile .v { font: 700 19px/1.25 var(--mono); margin-top: 2px; }
.big { font: 800 38px/1.1 var(--mono); letter-spacing: -.02em; }
.sub { color: var(--muted); font-size: 13px; }
.sep { height: 1px; background: var(--line); margin: 12px 0; }

/* сегменты, чипы-кнопки, формы */
.seg { display: flex; background: var(--tint); border-radius: 12px; padding: 3px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1; border: 0; background: transparent; padding: 7px 10px; border-radius: 9px; font: 600 13px var(--font);
  color: var(--muted); white-space: nowrap; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 27, 46, .1); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 6px 12px; border-radius: 999px;
  font: 600 13px var(--font); cursor: pointer; transition: .12s; }
.pill.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.pill:active { transform: scale(.96); }
.btn { white-space: nowrap; border: 0; background: var(--acc); color: #fff; padding: 11px 16px; border-radius: 13px; font: 700 14px var(--font);
  cursor: pointer; transition: .12s; }
.btn:active { transform: scale(.98); } .btn.ghost { background: var(--acc-soft); color: var(--acc); }
.btn.block { width: 100%; }
/* 16px — иначе iOS увеличивает страницу при вводе и поле уезжает за край */
input, select, textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 12px;
  font: 500 16px/1.35 var(--font); color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--acc-2); box-shadow: 0 0 0 3px var(--acc-soft); }
input.mono { font-family: var(--mono); }
label.f { display: block; font-size: 12px; color: var(--muted); margin: 0 0 4px 2px; font-weight: 600; }
textarea { min-height: 70px; resize: vertical; }

/* переключатель */
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; background: var(--off); border-radius: 99px; transition: .18s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); transition: .18s; }
.switch input:checked + span { background: var(--acc); }
.switch input:checked + span::after { transform: translateX(18px); }

/* списки */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item .side { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.side.L { background: var(--up-soft); color: var(--up); } .side.S { background: var(--down-soft); color: var(--down); }
.item .main { flex: 1; min-width: 0; } .item .t { font-weight: 700; } .item .s { font-size: 12px; color: var(--muted); }
.item .r { text-align: right; font-family: var(--mono); font-weight: 700; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; } .setting .l { flex: 1; font-weight: 600; font-size: 14px; }
.setting input.small { width: 96px; text-align: right; font-family: var(--mono); padding: 8px 10px; min-height: 40px; font-size: 16px; }

/* таблицы */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: var(--muted); font-weight: 600; text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); }
td { text-align: right; padding: 7px 4px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
th:first-child, td:first-child { text-align: left; font-family: var(--font); }
tr:last-child td { border-bottom: 0; }

/* медиа */
.media { border-radius: 14px; overflow: hidden; background: var(--media); }
.media img, .media video { width: 100%; display: block; }
#lchart { width: 100%; }
.bar { height: 8px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc-2)); border-radius: 99px; }

/* тепловая карта */
.heat { display: grid; grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 9px; }
.heat div { aspect-ratio: 1; border-radius: 4px; display: grid; place-items: center; color: var(--muted); }
.heat .c { color: #fff; font-family: var(--mono); font-size: 8px; }

/* отчёт */
.report h2 { font-size: 16px; color: var(--ink); text-transform: none; letter-spacing: 0; margin: 18px 0 8px; }
.report p, .report li { font-size: 14px; } .report table { margin: 8px 0; }
.report td { font-family: var(--font); text-align: left; }

/* нижние вкладки */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--glass-2); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + var(--safe-b)); }
.tabs button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--faint); font: 600 10.5px var(--font); padding: 4px 0; cursor: pointer; }
.tabs button i { display: grid; place-items: center; width: 46px; height: 28px; border-radius: 99px; transition: background .15s; }
.tabs button i svg { display: block; }
.tabs button.on { color: var(--acc); }
.tabs button.on i { background: var(--acc-soft); }
.tabs button.on i svg { stroke-width: 2.3; }
/* во время ввода меню прячется, а снизу появляется запас, чтобы поле можно было прокрутить в центр */
body.typing .tabs { display: none; }
body.typing { padding-bottom: 45vh; }
body.typing .toast { bottom: 20px; }

/* прочее */
.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--inv); color: var(--inv-fg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  transition: .2s; pointer-events: none; z-index: 50; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.skeleton { height: 120px; border-radius: var(--radius); margin: 12px 0;
  background: linear-gradient(90deg, var(--tint) 25%, var(--tint-3) 50%, var(--tint) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty .ico { font-size: 34px; color: var(--acc-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: bl 1.2s infinite; }
@keyframes bl { 50% { opacity: .25; } }
.light { font-size: 26px; }
.stars button { border: 0; background: transparent; font-size: 22px; color: var(--off); cursor: pointer; padding: 0 2px; }
.stars button.on { color: #F5B83D; }
.rule { display: flex; gap: 8px; padding: 6px 0; font-size: 14px; } .rule b { font-weight: 600; }

.small-tiles .tile .v { font-size: 14.5px; overflow-wrap: anywhere; }
.tile .v.txt { font: 700 13.5px/1.3 var(--font); overflow-wrap: normal; }
.zoom { position: fixed; inset: 0; z-index: 60; background: var(--media); display: flex; flex-direction: column; animation: fade .15s; }
.zoom-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: #8a91a0; font-size: 13px; }
.zoom-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; align-items: center; }
.zoom-body img { height: min(78vh, 900px); width: auto; max-width: none; }
select { font-size: 16px; padding: 10px 22px 10px 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6780' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center; }

/* индекс тильта */
.gauge { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--up-soft), var(--warn-soft), var(--down-soft)); overflow: hidden; margin-top: 10px; }
.gauge > div { height: 100%; border-radius: 99px; transition: width .4s; }
.gauge .up { background: var(--up); } .gauge .warn { background: var(--warn); } .gauge .down { background: var(--down); }
.part { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; gap: 10px; }
.part:last-child { border-bottom: 0; }

/* челленджи */
.badge { background: var(--bg); border-radius: 14px; padding: 12px; min-width: 0; }
.badge .bt { font-weight: 800; margin-top: 6px; }
.badge .bi { color: var(--faint); display: grid; }
.badge.done { background: linear-gradient(135deg, var(--acc-soft), var(--warn-soft)); }
.badge.done .bi { color: #E0A21B; }
.bi { color: var(--acc); display: grid; place-items: center; }

/* календарь */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-w { text-align: center; font-size: 11px; color: var(--faint); font-weight: 700; padding-bottom: 2px; }
.cal-d { position: relative; aspect-ratio: 1 / 1.08; border: 0; border-radius: 11px; background: var(--tint-2); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; cursor: pointer; font-family: var(--font); }
.cal-d:disabled { opacity: .4; cursor: default; }
.cal-d .dn { font-size: 13px; font-weight: 700; }
.cal-d .dv { font: 600 9.5px var(--mono); letter-spacing: -.02em; }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--acc); }
.cal-d .dd { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
.pill:disabled { opacity: .35; }

/* галерея и сравнение */
.gallery { display: grid; gap: 12px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gcard { cursor: pointer; margin-bottom: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.cmp-h { cursor: pointer; min-width: 0; }
.cmp-h .side { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
table.cmp td { vertical-align: top; width: 36%; text-align: left; font-family: var(--font); font-variant-numeric: tabular-nums; font-weight: 600; }
table.cmp td:first-child { width: 28%; color: var(--muted); font-weight: 500; }
.tscroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.zoom-foot { padding: 12px 16px calc(12px + var(--safe-b)); }

/* состояние */
.link-card { cursor: pointer; }
.hrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hrow:last-child { border-bottom: 0; }
.hdot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); }
.hdot.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.hdot.bad { background: var(--down); box-shadow: 0 0 0 4px var(--down-soft); }
a.chip { text-decoration: none; }
.tile .v .sub { font: 500 12px/1.3 var(--font); color: var(--muted); margin-top: 2px; }
.seg button { padding: 7px 9px; }
.setting input[type=time] { width: 128px; text-align: center; }

/* ===== ProChart ===== */
.pc { background: var(--surface); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px; border-bottom: 1px solid var(--line); }
.pc-tfs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.pc-tfs::-webkit-scrollbar { display: none; }
.pc-tfs button, .pc-acts button { border: 0; background: transparent; color: var(--muted); font: 700 12.5px var(--mono); padding: 6px 7px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.pc-tfs button.on { background: var(--acc-soft); color: var(--acc); }
.pc-acts { display: flex; gap: 2px; flex: none; }
.pc-acts button { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font); }
.pc-acts button.on { background: var(--acc-soft); color: var(--acc); }
.pc-acts button span { font-size: 12px; }
.pc-main { display: flex; height: var(--pc-h, 420px); position: relative; }
.pc-tools { flex: none; width: 38px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0;
  border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; }
.pc-tools::-webkit-scrollbar { display: none; }
.pc-tools button { width: 32px; height: 30px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--tool); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pc-tools button.on { background: var(--acc-soft); color: var(--acc); }
.pc-tools button.danger { background: var(--down); color: #fff; }
.pc-sep { width: 20px; height: 1px; background: var(--line); margin: 3px 0; flex: none; }
.pc-wrap { flex: 1; min-width: 0; position: relative; touch-action: manipulation; }
.pc-chart { position: absolute; inset: 0; }
.pc-legend { position: absolute; left: 8px; top: 6px; right: 70px; z-index: 3; pointer-events: none; font: 500 10.5px/1.5 var(--mono);
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-legend b { color: var(--ink); font-family: var(--font); } .pc-legend i { font-style: normal; color: var(--ink); margin-right: 2px; }
.pc-legend i.pos { color: var(--up); } .pc-legend i.neg { color: var(--down); }
.pc-hint { position: absolute; left: 6px; right: 6px; top: 26px; z-index: 5; background: var(--inv); color: var(--inv-fg); pointer-events: none;
  padding: 6px 6px 6px 10px; border-radius: 10px; font-size: 12px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.pc-hint .ht { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-hint button { pointer-events: auto; flex: none; }
.pc-hint span { opacity: .6; }
.pc-hint button { border: 0; background: rgba(255,255,255,.16); color: #fff; border-radius: 7px; padding: 4px 8px; font: 600 12px var(--font); cursor: pointer; }
.pc-hint[hidden], .pc-edit[hidden], .pc-ask[hidden], .pc-book[hidden] { display: none; }
.pc-edit { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 5; background: var(--surface); border-radius: 12px;
  padding: 6px; display: flex; gap: 6px; align-items: center; box-shadow: 0 4px 18px rgba(31,27,46,.18); }
.pc-edit .dotc { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.pc-edit .dotc.on { box-shadow: 0 0 0 2px var(--ink); }
.pc-edit .txtb { border: 0; background: var(--acc-soft); color: var(--acc); border-radius: 8px; padding: 5px 9px; font: 600 12px var(--font); cursor: pointer; display: grid; place-items: center; }
.pc-edit .txtb.danger { background: var(--down-soft); color: var(--down); }
.pc-ask { position: absolute; left: 10px; right: 10px; top: 40px; z-index: 6; background: var(--surface); border-radius: 12px; padding: 8px; display: flex; gap: 8px;
  box-shadow: 0 6px 22px rgba(31,27,46,.2); }
.pc-status { font-size: 11px; color: var(--faint); padding: 5px 10px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc.pc-fs { position: fixed; inset: 0; z-index: 80; border-radius: 0; border: 0; padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
.pc.pc-fs .pc-main { height: auto; flex: 1; }
body.pc-lock { overflow: hidden; }
body.pc-lock .tabs { display: none; }

/* стакан (скальперский) */
.pc-book { flex: none; width: 250px; border-left: 1px solid var(--line); display: flex; flex-direction: column; position: relative; background: var(--surface); }
@media (max-width: 699px) {
  .pc.pc-with-book:not(.pc-fs) .pc-main { flex-direction: column; height: auto; }
  .pc.pc-with-book:not(.pc-fs) .pc-wrap { height: var(--pc-h, 420px); flex: none; }
  .pc.pc-with-book:not(.pc-fs) .pc-tools { position: absolute; left: 0; top: 0; height: var(--pc-h, 420px); background: var(--surface); z-index: 4; }
  .pc.pc-with-book:not(.pc-fs) .pc-wrap { margin-left: 38px; }
  .pc.pc-with-book:not(.pc-fs) .pc-book { width: auto; height: 420px; border-left: 0; border-top: 1px solid var(--line); }
  .pc.pc-fs.pc-with-book .pc-book { width: 44%; }
  .pc.pc-fs.pc-with-book .ld-tape { display: none; }
}
.ld-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 6px; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.ld-grp { display: flex; flex: none; align-items: center; gap: 2px; background: var(--tint-2); border-radius: 9px; padding: 2px; }
.ld-grp button { border: 0; background: transparent; color: var(--tool); width: 28px; height: 26px; border-radius: 7px; display: grid; place-items: center; cursor: pointer; padding: 0; font: 700 12px var(--font); }
.ld-grp button.on { background: var(--surface); color: var(--acc); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ld-step { font: 700 11.5px var(--mono); min-width: 58px; text-align: center; color: var(--ink); }
.ld-main { flex: 1; min-height: 0; display: flex; }
.ld-body { flex: 1; min-width: 0; position: relative; overflow: hidden; cursor: ns-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.ld-rows { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.ld-row { position: relative; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 4px; padding: 0 6px;
  font: 500 11px/1 var(--mono); border-bottom: 1px solid rgba(236,232,245,.55); }
.ld-row .ld-bar { position: absolute; left: 0; top: 1px; bottom: 1px; border-radius: 0 3px 3px 0; }
.ld-row.ask .ld-bar { background: rgba(229,72,77,.17); } .ld-row.bid .ld-bar { background: rgba(22,163,122,.17); }
.ld-row span { position: relative; white-space: nowrap; }
.ld-row .ld-v { text-align: left; color: var(--ink); }
.ld-row .ld-p { text-align: right; font-weight: 600; }
.ld-row.ask .ld-p { color: #C9383D; } .ld-row.bid .ld-p { color: #12866A; }
.ld-row .ld-tr { font-size: 9.5px; color: var(--faint); }
.ld-row .ld-tr.b { color: #12866A; } .ld-row .ld-tr.s { color: #C9383D; }
.ld-row.best-a { background: rgba(229,72,77,.08); } .ld-row.best-b { background: rgba(22,163,122,.08); }
.ld-row.lastp .ld-p { background: var(--inv); color: var(--inv-fg); border-radius: 4px; padding: 1px 4px; margin-right: -4px; }
.ld-row.dens .ld-v { font-weight: 800; }
.ld-row.ask.dens .ld-bar { background: rgba(229,72,77,.42); } .ld-row.bid.dens .ld-bar { background: rgba(22,163,122,.42); }
.ld-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 12px; background: var(--surface); }
.ld-wait[hidden] { display: none; }
.ld-tape { flex: none; width: 64px; border-left: 1px solid var(--line); position: relative; background: var(--tint-3); }
.ld-tape canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-foot { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.ld-bal { flex: 1; height: 5px; border-radius: 9px; background: rgba(229,72,77,.55); overflow: hidden; }
.ld-bal div { height: 100%; background: rgba(22,163,122,.85); transition: width .3s; }
.ld-pick { position: absolute; left: 6px; right: 6px; bottom: 34px; z-index: 5; background: var(--surface); border-radius: 12px; padding: 8px; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 22px rgba(31,27,46,.22); font-size: 12.5px; }
.ld-pick[hidden] { display: none; }
.ld-pick span { flex: 1; display: flex; align-items: center; gap: 4px; }
.ld-pick .btn { padding: 7px 10px; font-size: 12.5px; }
.pc-edit .ed-t { display: inline-flex; align-items: center; gap: 4px; font: 700 12px var(--mono); color: #F08C00; padding: 0 4px; }
.pc-edit .txtb.on { background: #F08C00; color: #fff; }

/* рынок */
.mk-row { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mk-row:last-child { border-bottom: 0; }
.mk-star { border: 0; background: transparent; color: var(--off); padding: 0; cursor: pointer; display: grid; place-items: center; }
.mk-star.on { color: #F5B83D; }
.mk-star.on svg { fill: currentColor; }
.mk-name b { font-weight: 800; } .mk-name .sub { font-size: 11.5px; }
.mk-price { font: 600 13.5px var(--mono); text-align: right; }
.mk-price.up { animation: flup 1s ease-out; } .mk-price.dn { animation: fldn 1s ease-out; }
@keyframes flup { from { color: var(--up); } to { color: var(--ink); } }
@keyframes fldn { from { color: var(--down); } to { color: var(--ink); } }
.mk-ch { min-width: 70px; text-align: center; padding: 5px 6px; border-radius: 8px; font: 700 12.5px var(--mono); color: #fff; }
.mk-ch.pos { background: var(--up); color: #fff; } .mk-ch.neg { background: var(--down); color: #fff; } .mk-ch.zero { background: #B9B4C8; }
.tabs { grid-template-columns: repeat(6, 1fr); }
.tabs button { font-size: 10px; }
.tabs button i { width: 40px; }
.media.media-live { background: transparent; border-radius: 14px; overflow: visible; }
.rp-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; }
.rp-bar .pill { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.searchbox { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--faint); background: var(--surface); }
.searchbox input { border: 0; box-shadow: none !important; padding-left: 0; min-height: 42px; }
.searchbox:focus-within { border-color: var(--acc-2); box-shadow: 0 0 0 3px var(--acc-soft); }
#sy_chart .pc { border-radius: var(--radius); box-shadow: var(--shadow); border: 0; }
@media (max-width: 420px) { .pc-bl { display: none; } .pc-tfs button { padding: 6px 6px; } }

/* рынок: переключатель вида, фильтры, сетка */
.vtoggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: 14px; padding: 3px; min-width: 210px; }
.vtoggle .knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 11px; background: var(--surface);
  box-shadow: 0 2px 8px rgba(124,92,255,.18), 0 1px 2px rgba(31,27,46,.08); transition: transform .28s cubic-bezier(.3,1.4,.5,1); }
.vtoggle.right .knob { transform: translateX(100%); }
.vtoggle button { position: relative; z-index: 1; border: 0; background: transparent; padding: 8px 10px; font: 700 13px var(--font); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: color .2s; }
.vtoggle:not(.right) button:first-of-type, .vtoggle.right button:last-of-type { color: var(--acc); }
.bell-btn { position: relative; border: 0; background: var(--acc-soft); color: var(--acc); width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; cursor: pointer; }
.bell-btn b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F08C00; color: #fff; font: 800 10.5px/18px var(--font); }
.fchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 0 16px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 12px; border-radius: 999px; font: 600 13px var(--font); cursor: pointer; white-space: nowrap; }
.fchip.on { background: var(--inv); border-color: var(--inv); color: var(--inv-fg); }
.fchip.custom:not(.on) { border-color: #D9CFFF; color: var(--acc); }
.fchip.add { border-style: dashed; color: var(--acc); border-color: #CBBEFF; }
.fchip .ed { opacity: .7; margin-left: 2px; }
.linkbtn { border: 0; background: transparent; color: var(--acc); font: 600 12px var(--font); cursor: pointer; padding: 4px 2px; }
.mini-seg { display: inline-flex; background: var(--tint); border-radius: 9px; padding: 2px; }
.mini-seg button { border: 0; background: transparent; font: 700 11.5px var(--mono); color: var(--muted); padding: 4px 8px; border-radius: 7px; cursor: pointer; }
.mini-seg button.on { background: var(--surface); color: var(--acc); }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mcard { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 10px 10px 8px; cursor: pointer; min-width: 0; transition: transform .12s; }
.mcard:active { transform: scale(.98); }
.mcard b { font-weight: 800; font-size: 14px; }
.mc-p { font: 700 13px var(--mono); }
.mc-p.up { animation: flup 1s ease-out; } .mc-p.dn { animation: fldn 1s ease-out; }
.mc-ch { font: 700 11.5px var(--mono); padding: 2px 6px; border-radius: 6px; }
.mc-ch.pos { color: var(--up); background: var(--up-soft); } .mc-ch.neg { color: var(--down); background: var(--down-soft); } .mc-ch.zero { color: var(--muted); background: var(--gray-chip); }
.mc-cv { display: block; width: 100%; height: 78px; margin-top: 6px; }
.mc-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin-top: 4px; }
.mk-top { position: relative; }

/* нижние листы */
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(31,27,46,.38); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 16px 16px calc(18px + var(--safe-b)); max-height: 88vh; overflow-y: auto;
  animation: sheetup .22s cubic-bezier(.2,.9,.3,1); }
.sheet h3 { font-size: 18px; display: flex; align-items: center; gap: 6px; }
.sheet label.f { margin-top: 10px; }
@keyframes sheetup { from { transform: translateY(40px); opacity: .4; } }
.danger-t { color: var(--down) !important; background: var(--down-soft) !important; }

/* алерты */
.al-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.al-row:last-child { border-bottom: 0; }
.al-row .main { flex: 1; min-width: 0; cursor: pointer; }
.al-row.off { opacity: .6; }
.al-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; flex: none; }
.al-ic.up { background: var(--up-soft); color: var(--up); } .al-ic.down { background: var(--down-soft); color: var(--down); }
.al-row .pill { padding: 6px 9px; display: inline-flex; align-items: center; }

/* группы инструментов и список алертов на графике */
.pc-tools button { position: relative; }
.pc-tools button.grp::after { content: ""; position: absolute; right: 3px; bottom: 3px; border: 3px solid transparent; border-right-color: currentColor; border-bottom-color: currentColor; opacity: .55; }
.pc-tools button.t-alert { color: #F08C00; }
.pc-tools button.t-alert.on { background: var(--alert-soft); color: #F08C00; }
.pc-badge { position: absolute; top: 1px; right: 1px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: #F08C00; color: #fff;
  font: 800 9px/14px var(--font); font-style: normal; }
.pc-badge[hidden] { display: none; }
.pc-fly { position: absolute; left: 4px; z-index: 7; background: var(--surface); border-radius: 12px; padding: 4px; box-shadow: var(--pop);
  display: flex; flex-direction: column; min-width: 190px; }
.pc-fly[hidden], .pc-alist[hidden] { display: none; }
.pc-fly button { border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font: 600 13px var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.pc-fly button.on { background: var(--acc-soft); color: var(--acc); }
.pc-alist { position: absolute; left: 6px; top: 6px; z-index: 7; width: min(290px, calc(100% - 12px)); max-height: calc(100% - 12px); overflow-y: auto;
  background: var(--surface); border-radius: 14px; box-shadow: 0 10px 30px rgba(31,27,46,.24); padding: 6px; }
.al-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 6px; }
.al-head b { display: flex; align-items: center; gap: 5px; font-size: 13.5px; }
.al-head button, .al-it button { border: 0; background: var(--tint-2); border-radius: 8px; width: 28px; height: 28px; cursor: pointer; display: grid; place-items: center; color: var(--muted); padding: 0; }
.al-it { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 10px; }
.al-it:nth-child(odd) { background: var(--bg); }
.al-dir { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.al-dir.up { background: var(--up-soft); color: var(--up); } .al-dir.down { background: var(--down-soft); color: var(--down); }
.al-p { font: 700 13px var(--mono); flex: 1; }
.al-d { font: 500 11px var(--mono); color: var(--muted); }
.al-empty { font-size: 12.5px; color: var(--muted); padding: 6px; margin: 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.al-foot { display: flex; gap: 6px; padding: 6px 2px 2px; }
.al-foot button { flex: 1; border: 0; border-radius: 9px; padding: 8px; font: 700 12.5px var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  background: var(--alert-soft); color: #D47800; }
.al-foot button + button { background: var(--acc-soft); color: var(--acc); }

/* лента графиков */
.feed { display: flex; flex-direction: column; gap: 14px; }
.fcard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 10px 10px; }
.fc-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 10px; }
.fc-name { flex: 1; min-width: 0; } .fc-name b { font-weight: 800; font-size: 17px; }
.fc-px { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fc-px .mono { font-weight: 800; font-size: 16px; }
.fc-px .mono.up { animation: flup 1s ease-out; } .fc-px .mono.dn { animation: fldn 1s ease-out; }
.fc-px .mk-ch { min-width: 0; padding: 3px 7px; font-size: 11.5px; }
.fc-chart { position: relative; }
.fc-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--off); background: var(--tint-3); border-radius: 14px; }
.fc-open { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
/* в ленте вертикальный свайп листает страницу, горизонтальный — график */
.pc.feed .pc-chart, .pc.feed .pc-chart * { touch-action: pan-y !important; }
/* шкала цены в ленте — тянуть пальцем вверх-вниз, чтобы растянуть или сжать график */
.pc.feed .pc-chart table tr:first-child > td:last-child, .pc.feed .pc-chart table tr:first-child > td:last-child * { touch-action: none !important; }
.feed .fcard { margin: 0 6px; }

/* план на день */
.plan-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.plan-it { display: flex; align-items: center; gap: 10px; border: 0; background: var(--bg); border-radius: 12px; padding: 10px 12px; text-align: left;
  font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.plan-it .tick { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--off); background: var(--surface); color: #fff; display: grid; place-items: center; }
.plan-it.done .tick { background: var(--up); border-color: var(--up); }
.plan-it.done span:last-child { color: var(--muted); text-decoration: line-through; }
.pe-row { display: flex; gap: 6px; margin-bottom: 6px; }
#balance.bal-up { animation: balup 1.6s ease-out; } #balance.bal-dn { animation: baldn 1.6s ease-out; }
@keyframes balup { 0%, 30% { background: var(--up); color: #fff; transform: scale(1.08); } }
@keyframes baldn { 0%, 30% { background: var(--down); color: #fff; transform: scale(1.08); } }

/* ===== тёмная тема ===== */
:root[data-theme="dark"] {
  --bg: #0E0C15;
  --card: #18151F;
  --surface: #1E1A29;
  --ink: #ECEAF4;
  --muted: #A5A0BA;
  --faint: #6E6987;
  --line: #2A2638;
  --acc: #9B83FF;
  --acc-2: #B7A6FF;
  --acc-soft: #2A2347;
  --up: #2FC393;
  --up-soft: #12302A;
  --down: #F2575C;
  --down-soft: #3A1B21;
  --warn: #F2A24C;
  --warn-soft: #36270F;
  --tint: #221E30;
  --tint-2: #221E30;
  --tint-3: #16131E;
  --off: #3A3550;
  --gray-chip: #262234;
  --tool: #C9C4DB;
  --glass: rgba(14, 12, 21, .82);
  --glass-2: rgba(24, 21, 31, .92);
  --inv: #ECEAF4;
  --inv-fg: #14111C;
  --alert-soft: #3A2A12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --pop: 0 10px 30px rgba(0, 0, 0, .55);
  --media: #0B0A10;
  color-scheme: dark;
}
:root[data-theme="dark"] .ld-row { border-bottom-color: rgba(42, 38, 56, .7); }
:root[data-theme="dark"] .ld-row.ask .ld-p { color: #FF7A7F; } :root[data-theme="dark"] .ld-row.bid .ld-p { color: #45D6A4; }
:root[data-theme="dark"] .mk-ch.zero { background: #3A3550; }
:root[data-theme="dark"] .sheet-bg { background: rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .logo { filter: drop-shadow(0 3px 10px rgba(155,131,255,.45)); }
:root[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #1E1A29 25%, #272236 50%, #1E1A29 75%); background-size: 200% 100%; }
.theme-seg { display: flex; gap: 6px; }
.theme-seg button { flex: 1; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 6px;
  font: 600 13px var(--font); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.theme-seg button.on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-soft); color: var(--acc); }
.theme-seg .sw { width: 34px; height: 22px; border-radius: 6px; border: 1px solid var(--line); }
.theme-seg .sw.l { background: linear-gradient(135deg, #FAF8FF 50%, #7C5CFF 50%); }
.theme-seg .sw.d { background: linear-gradient(135deg, #0E0C15 50%, #9B83FF 50%); }
.theme-seg .sw.a { background: linear-gradient(135deg, #FAF8FF 50%, #0E0C15 50%); }
/* толщина линий рисунка */
.pc-edit .ed-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 2px; }
.pc-edit .wbtn { border: 0; background: var(--tint-2); color: var(--ink); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.pc-edit .wbtn:disabled { opacity: .35; cursor: default; }
.pc-edit .wprev { width: 30px; height: 26px; display: grid; place-items: center; }
.pc-edit .wprev i { display: block; width: 26px; border-radius: 3px; background: var(--ink); }
.pc-status[hidden] { display: none; }
.pc-edit { flex-wrap: wrap; justify-content: center; max-width: calc(100% - 12px); width: max-content; }
/* свайп по сделке: архив и возврат */
.swipe { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.swipe:last-child { border-bottom: 0; }
.swipe .item { background: var(--card); border-bottom: 0; transition: transform .18s; position: relative; z-index: 1; touch-action: pan-y; }
.swipe .sw-act { position: absolute; inset: 0 0 0 auto; width: 120px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; background: var(--down-soft); color: var(--down); font: 600 11px var(--font); }
.swipe.arch .sw-act { background: var(--acc-soft); color: var(--acc); }
.swipe.ready .sw-act { background: var(--down); color: #fff; }
.swipe.arch.ready .sw-act { background: var(--acc); color: #fff; }
.btn.danger-b { background: var(--down); }
/* стратегии */
.sg-card { cursor: pointer; }
.sg-spark { width: 100%; height: 34px; margin-top: 8px; display: block; }
.sg-sec { margin-top: 12px; }
.sg-sec .f { margin-bottom: 4px; }
.sg-ul { margin: 2px 0 0; padding-left: 18px; }
.sg-ul li { margin: 3px 0; }
.sg-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-ver { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sg-ver:last-of-type { border-bottom: 0; }
.sg-sheet { max-height: 88vh; overflow-y: auto; }
.sg-list { max-height: 50vh; overflow-y: auto; }
.sg-pick { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sg-pick .side { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.sg-pick .main { flex: 1; min-width: 0; } .sg-pick .main .sub { display: block; }
.sg-pick input[type=checkbox] { width: 20px; height: 20px; min-height: 0; flex: none; padding: 0; accent-color: var(--acc); }
.sg-pick .main b { font-weight: 700; } .sg-pick .main .sub { font-size: 12px; }
.sg-pick .mono { flex: none; font-weight: 700; }

/* раскрывающиеся разделы настроек */
.card.fold > h2 { cursor: pointer; margin: 0; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.card.fold > h2::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.card.fold.open > h2::after { transform: rotate(-135deg); }
.card.fold.open > h2 { margin-bottom: 10px; }
.card.fold:not(.open) > :not(h2) { display: none; }
.card.fold.opening > :not(h2) { animation: fold-in .22s ease-out; }
@keyframes fold-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* вкладки как одно полотно: соседняя страница едет рядом с текущей */
.tab-ghost { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; overflow: hidden; background: var(--bg);
  pointer-events: none; will-change: transform; }
.tab-ghost > main { animation: none; }
.theme-seg.two { grid-template-columns: 1fr 1fr; }

/* просмотр снимка: вписан в экран, кнопка ниже «чёлки» */
.zoom { background: rgba(0,0,0,.92); padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
.zoom-bar { position: relative; z-index: 2; padding: 10px 14px; gap: 10px; }
.zoom-bar span { font-size: 12px; color: #9aa3b5; }
.zoom-bar .pill { flex: none; }
.zoom-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.zoom-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: center center;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; will-change: transform; }

/* смена вкладок: новая въезжает с той стороны, куда свайпнули */
@keyframes slide-l { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes slide-r { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
.brand, #balance { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#balance:active, .brand:active { transform: scale(.96); }
/* фото сделки: рамка держит высоту, пока картинка грузится */
.media-photo .ph-skel { margin: 0; height: auto; aspect-ratio: 2000 / 825; border-radius: 0; }
.media-photo img { cursor: zoom-in; }
/* настройка пушей */
.steps { margin: 0 0 8px; padding-left: 20px; } .steps li { margin: 4px 0; }
.steps a { color: var(--acc); font-weight: 600; }
.copyrow { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.copyrow code { font-size: 12px; word-break: break-all; }
