/* Личный кабинет абонента (2026-10-24, утвержденный макет tools/_stats_mockup4_tmp.html, вариант А) */
:root {
	--brand: #0a84c6;
	--brand-dark: #066a9f;
	--brand-soft: #e8f4fb;
	--brand-2: #7cc4ea;
	--bg: #f4f7fa;
	--ink: #1d2733;
	--ink-2: #5b6b7b;
	--ink-3: #8a97a5;
	--line: #e6ebf0;
	--card: #ffffff;
	--ok: #1f9d55;
	--ok-soft: #e7f6ee;
	--bad: #d64545;
	--bad-soft: #fdecec;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(16, 32, 48, 0.04), 0 4px 16px rgba(16, 32, 48, 0.06);
}
/* Цвет оформления: выбирает абонент кружками, браузер помнит (localStorage stats_theme) */
html[data-pal="emerald"] { --brand: #0f9b6c; --brand-dark: #0b7853; --brand-soft: #e3f5ee; --brand-2: #7fd3b4; --bg: #f3f7f5; }
html[data-pal="forest"] { --brand: #2f7d4f; --brand-dark: #225c3a; --brand-soft: #e6f1ea; --brand-2: #98c9a9; --bg: #f4f6f3; }
html[data-pal="teal"] { --brand: #0e8f8a; --brand-dark: #0a6d69; --brand-soft: #e0f3f2; --brand-2: #7fcfcb; --bg: #f2f7f7; }
html[data-pal="mint"] { --brand: #16a37f; --brand-dark: #0f7d61; --brand-soft: #e3f7f0; --brand-2: #8fe0c5; --bg: #f5f9f8; }
html[data-pal="olive"] { --brand: #5e8c2a; --brand-dark: #46691f; --brand-soft: #eef4e3; --brand-2: #b5d38c; --bg: #f6f7f2; }
html[data-pal="indigo"] { --brand: #4f5bd5; --brand-dark: #3a44a8; --brand-soft: #eceefc; --brand-2: #a9b0f0; --bg: #f5f6fa; }
html[data-pal="red"] { --brand: #c62828; --brand-dark: #9e1f1f; --brand-soft: #fbe9e9; --brand-2: #ef9a9a; --bg: #f9f5f5; }
html[data-pal="graphite"] { --brand: #2f3b48; --brand-dark: #1f2832; --brand-soft: #e9edf1; --brand-2: #9aa8b6; --bg: #f4f5f7; }

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Без полупрозрачного квадрата при нажатии на телефоне (заказчик 25.10) */
html { -webkit-tap-highlight-color: transparent; }
body { font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
svg { flex: 0 0 auto; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.muted { color: var(--ink-3); }

.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.app > div { min-width: 0; display: flex; flex-direction: column; }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: 4px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; }
.side .logo img { width: 160px; display: block; }
.side .logo span { display: block; margin-top: 8px; font-size: 13px; color: var(--brand); font-weight: 600; letter-spacing: 0.02em; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a svg { width: 19px; height: 19px; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.on { background: var(--brand-soft); color: var(--brand-dark); }
.side .grow { flex: 1; }
.side .who { padding: 12px; border-radius: 10px; background: var(--bg); font-size: 13px; }
.side .who b { display: block; }
.side .who small { color: var(--ink-3); }
.support { padding: 12px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.support small { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.support .phones { flex-direction: column; gap: 6px; }
.main { padding: 26px 30px 40px; min-width: 0; flex: 1; width: 100%; max-width: 1140px; }
.mainbar { display: flex; justify-content: flex-end; margin: -10px 0 6px; }
/* Компьютер: кабинет - блок по центру на сером фоне, как в утвержденном макете (заказчик 25.10: "панель по середине, в своем блоке") */
@media (min-width: 761px) {
	body:has(> .app) { background: #dfe5eb; padding: 24px 16px 40px; }
	.app { max-width: 1280px; margin: 0 auto; min-height: 760px; border-radius: 12px; overflow: hidden; background: var(--bg); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); }
	.side { position: static; height: auto; overflow: visible; }
	.main { max-width: none; }
}
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.head .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #ffffff; }
.btn.ghost-danger { color: var(--bad); border-color: #f1c6c6; }
.btn.block { width: 100%; height: 44px; }
.btn.back { height: 34px; padding: 0 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, .nav a:focus-visible, .phones a:focus-visible, .dots button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Переход к соседнему месяцу / дню: "< Октябрь 2026 >" (LkTrafficPager()), серая стрелка - перехода нет */
.hright { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pager { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 2px; }
.pager a, .pager .off { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px; border-radius: 8px; color: var(--ink-2); }
.pager a:hover { background: var(--bg); }
.pager .off { color: #c9d1d9; }
.pager b { padding: 0 8px; font-weight: 600; min-width: 112px; text-align: center; }
.pager svg { width: 17px; height: 17px; }
.segm { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.segm a { padding: 8px 14px; color: var(--ink-2); text-decoration: none; }
.segm a.on { background: var(--brand); color: #ffffff; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; min-width: 0; }
.card h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h3 .chip { text-transform: none; letter-spacing: 0; font-size: 12px; padding: 3px 10px; }
.card h3 a { text-transform: none; letter-spacing: 0; text-decoration: none; font-weight: 500; font-size: 13px; }
.c5 { grid-column: span 5; } .c7 { grid-column: span 7; } .c12 { grid-column: span 12; }
/* Компьютер с узким окном (меню слева остается): две колонки карточек помещаются с ~1100px, уже - одна колонка (заказчик 25.10: "при определенных размерах все очень плохо") */
@media (min-width: 761px) and (max-width: 1099px) { .c5, .c7 { grid-column: span 12; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad, .chip.red { background: var(--bad-soft); color: var(--bad); }
.chip.pend { background: var(--brand-soft); color: var(--brand-dark); }

.acc2 .num { display: flex; align-items: center; gap: 8px; font-size: 28px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.1; }
.acc2 .lg { color: var(--ink-2); margin-top: 2px; }
.acc2 .balrow { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.acc2 .balrow span { color: var(--ink-2); font-size: 13px; }
.acc2 .balrow b { font-size: 22px; font-weight: 750; }
.acc2 .balrow b small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.acc2 .balrow.neg { background: var(--bad-soft); }
.acc2 .balrow.neg b { color: var(--bad); }
.svc { margin-top: 10px; display: grid; }
.svc div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.svc div:last-child { border-bottom: 0; }
.svc span { color: var(--ink-2); }

.tn { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.tt { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tt .price { font-size: 22px; font-weight: 750; white-space: nowrap; text-align: right; }
.tt .price small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.sp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sp2 > div { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--brand-soft); min-width: 0; }
.sp2 .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #ffffff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sp2 .ico svg { width: 20px; height: 20px; }
.sp2 span { display: block; font-size: 12px; color: var(--ink-2); }
.sp2 b { font-size: 20px; font-weight: 750; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.sp2 b small { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sip { margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; border: 1px dashed var(--line); }
.sip .ico { width: 32px; height: 32px; border-radius: 10px; background: var(--bg); color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: 0 0 auto; }
.sip .tx { flex: 1; min-width: 0; font-weight: 600; }
.sip .tx small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
/* Метка и подпись - две строки вровень со строками слева (название и "адрес закреплен за вами"), правые края текста совпадают:
   у подключенной метка на фоне блока, ее отступы не нужны (заказчик 25.10: "криво получилось") */
.sip .sipst { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.sip .sipst small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sip.on .sipst .chip { padding: 0; background: none; line-height: inherit; }
.sip.on { border-style: solid; border-color: var(--ok-soft); background: var(--ok-soft); }
.sip.on .ico { background: var(--ok); color: #ffffff; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.kv dt { color: var(--ink-3); white-space: nowrap; }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Адрес не рвется посередине; узкая карточка (меньше 420px) - подпись над значением, как на телефоне (заказчик 25.10: "ip-адреса переносятся плохо") */
.kv dd .mono { white-space: nowrap; }
.card { container-type: inline-size; }
@container (max-width: 420px) {
	.kv { grid-template-columns: 1fr; gap: 2px; }
	.kv dt { font-size: 12px; }
	.kv dd { margin-bottom: 10px; flex-wrap: nowrap; }
	.kv dd:last-child { margin-bottom: 0; }
}
.dyn { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--bg); padding: 2px 8px; border-radius: 999px; }
.copy { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 2px; display: inline-flex; }
.copy svg { width: 15px; height: 15px; }
.copy.done { color: var(--ok); }

.tstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.tstat { padding: 12px 14px; border-radius: 12px; background: var(--bg); min-width: 0; }
.tstat span { display: block; font-size: 12px; color: var(--ink-3); }
.tstat b { font-size: 19px; font-weight: 700; white-space: nowrap; }
.chart { position: relative; min-height: 60px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: inherit; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .hit { cursor: pointer; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #ffffff; font-size: 12px; padding: 5px 8px; border-radius: 7px; white-space: nowrap; transform: translate(-50%, -110%); display: none; z-index: 3; }
.empty { text-align: center; padding: 26px 16px; color: var(--ink-2); }
.empty .ei { width: 46px; height: 46px; border-radius: 14px; background: var(--bg); color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.empty .ei svg { width: 22px; height: 22px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.r, .table th.r { text-align: right; }
.table tbody tr:hover td { background: #f8fafc; }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.table a { text-decoration: none; font-weight: 600; }

.alert, .msg { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink-2); flex-wrap: wrap; }
.alert { margin-bottom: 18px; }
.alert .ai, .msg .ai { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.alert .ai svg, .msg .ai svg { width: 20px; height: 20px; }
.alert .at, .msg .at { flex: 1; min-width: 200px; }
.alert b, .msg b { display: block; color: var(--ink); margin-bottom: 2px; }
.alert, .msg.err { border-color: #f1c6c6; }
.alert .ai, .msg.err .ai { background: var(--bad-soft); color: var(--bad); }
.msg.info { border-color: color-mix(in srgb, var(--brand) 30%, #ffffff); }
.msg.info .ai { background: var(--brand-soft); color: var(--brand); }
.msg .phones { margin-top: 8px; }

.phones { display: flex; flex-wrap: wrap; gap: 8px; }
.phones a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phones a svg { width: 15px; height: 15px; }

.dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; }
.dots button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px currentColor; }
.palbtn { display: none; }
.palpop { display: none; }

.srv { display: grid; gap: 18px; }
.srv .card { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; }
.srv .sico { width: 52px; height: 52px; border-radius: 15px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; grid-row: span 3; font-weight: 800; font-size: 15px; }
.srv .sico svg { width: 26px; height: 26px; }
.srv .shead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.srv .shead h2 { margin: 0; font-size: 18px; font-weight: 700; }
.srv .sdesc { color: var(--ink-2); max-width: 60ch; }
.srv .stiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.srv .stiles div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.srv .stiles span { display: block; font-size: 12px; color: var(--ink-3); }
.srv .stiles b { font-size: 17px; color: var(--ink); }
.srv .stiles b small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.srv .sfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.srv .sfoot .meta { font-size: 13px; color: var(--ink-2); }
.srv .sfoot .meta b { color: var(--ink); }

.modal-back { position: fixed; inset: 0; background: rgba(20, 30, 40, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 30; }
.modal-back[hidden] { display: none; }
.modal { width: 100%; max-width: 440px; background: var(--card); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); padding: 24px; }
.modal .mi { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--brand-soft); color: var(--brand); }
.modal .mi svg { width: 22px; height: 22px; }
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p { margin: 0 0 10px; color: var(--ink-2); }
.modal .phones { justify-content: center; margin: 4px 0 12px; }
.modal .mact { display: flex; gap: 10px; justify-content: flex-end; }

.tabbar, .topbar, .support-m { display: none; }

/* Вход и подтверждение оплаты */
.login-wrap, .paywrap { box-sizing: border-box; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; background: radial-gradient(1200px 500px at 10% -10%, var(--brand-soft) 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, var(--brand-soft) 0%, transparent 60%), var(--bg); }
.paywrap { align-items: flex-start; padding-top: 40px; }
/* Высота страниц входа и оплаты - по видимой части окна (100% от html и body), а не 100dvh: в установленном приложении на
   Android 100dvh включал полосу системных кнопок, и страница входа прокручивалась (заказчик 25.10) */
html:has(.login-wrap), html:has(.paywrap), html:has(.login-wrap) body, html:has(.paywrap) body { height: 100%; }
html:has(.login-wrap) .login-wrap, html:has(.paywrap) .paywrap { min-height: 100%; }
.login, .pay { width: 100%; max-width: 400px; background: var(--card); border-radius: 18px; box-shadow: 0 10px 40px rgba(16, 32, 48, 0.12); padding: 32px 30px 28px; }
.pay { max-width: 520px; padding: 30px; }
.login .logo, .pay .logo { text-align: center; }
.login .logo img { width: 190px; }
.pay .logo img { width: 170px; }
.login h2 { text-align: center; margin: 4px 0 24px; font-size: 15px; font-weight: 600; color: var(--brand); }
.pay h1 { margin: 14px 0 6px; font-size: 21px; text-align: center; }
.pay .lead { text-align: center; color: var(--ink-2); margin: 0 0 22px; }
.form { display: grid; gap: 16px; }
/* "Запомнить меня" на форме входа - только в установленном приложении (lk.js) */
.remember { display: flex; align-items: center; gap: 9px; margin: -2px 0 16px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.remember[hidden] { display: none; }
.remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--ink-3); }
.input { width: 100%; height: 44px; border: 1px solid #d4dce4; border-radius: 10px; padding: 0 14px; font: inherit; background: #ffffff; color: var(--ink); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input.bad { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.input[disabled] { background: var(--bg); }
textarea.input { height: 90px; padding: 10px 14px; resize: vertical; }
.ferr { font-size: 12.5px; color: var(--bad); margin-top: 6px; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.pw { position: relative; }
.pw .input { padding-right: 44px; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); cursor: pointer; display: flex; padding: 6px; }
.pw button svg { width: 19px; height: 19px; }
.cap { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: center; }
.cap img { width: 140px; height: 44px; border-radius: 10px; border: 1px solid #d4dce4; cursor: pointer; display: block; object-fit: cover; background: #ffffff; }
.login .foot, .pay .pfoot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.pay .pfoot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.login .foot .phones, .pay .pfoot .phones { justify-content: center; margin-top: 8px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed #cdd7e1; border-radius: 12px; padding: 20px; text-align: center; color: var(--ink-2); background: #fafcfe; cursor: pointer; position: relative; }
.field .drop { display: flex; font-weight: 400; margin-bottom: 0; }
.drop b { color: var(--brand); }
.drop.bad { border-color: var(--bad); background: #fffafa; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .dz { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.drop .dz svg { width: 20px; height: 20px; }
.files { display: grid; gap: 8px; margin-top: 10px; }
.files div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.files div span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files div small { color: var(--ink-3); }
.files .fi { flex: 0 0 auto !important; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.done2 .dh { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin: 18px 0; }
.done2 .dh .di { width: 48px; height: 48px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.done2 .dh .di svg { width: 26px; height: 26px; }
.done2 .dh h2 { margin: 0; font-size: 20px; }
.done2 .dh p { margin: 2px 0 0; color: var(--ink-2); }
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps li i { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-style: normal; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.steps li b { display: block; }
.steps li span { color: var(--ink-2); font-size: 13px; }
.done2 .sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 13px; margin: 0; }
.done2 .sum dt { color: var(--ink-3); }
.done2 .sum dd { margin: 0; font-weight: 600; }

@media (max-width: 760px) {
	.app { grid-template-columns: 1fr; min-height: 0; }
	.side { display: none; }
	.main { padding: 16px 14px 92px; }
	.mainbar { display: none; }
	.head h1 { font-size: 20px; }
	.grid { gap: 12px; }
	.c5, .c7, .c12 { grid-column: span 12; }
	.card { padding: 16px; }
	.tstats { gap: 8px; }
	.tstat { padding: 10px; }
	.tstat b { font-size: 14px; }
	.table th, .table td { padding-left: 8px; padding-right: 8px; }
	.table .hide-m { display: none; }
	.sp2 { grid-template-columns: 1fr; }
	.kv { grid-template-columns: 1fr; gap: 2px; }
	.kv dt { font-size: 12px; }
	.kv dd { margin-bottom: 10px; flex-wrap: nowrap; }
	.kv dd:last-child { margin-bottom: 0; }
	.kv dd .mono { white-space: nowrap; }
	.tx-full { display: none; }
	.sip { gap: 10px; padding: 10px 12px; }
	.sip .tx { white-space: nowrap; }
	.sip .tx small { overflow: hidden; text-overflow: ellipsis; }
	.sip .chip { padding: 4px 9px; font-size: 12px; }
	.alert .btn { width: 100%; }
	.support-m { display: block; margin-top: 12px; }
	.support-m .phones a { flex: 1; justify-content: center; }
	.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: relative; }
	.topbar img { width: 140px; display: block; }
	.topbar .right { display: flex; align-items: center; gap: 12px; }
	.topbar .acc { font-size: 12px; color: var(--ink-2); text-align: right; }
	.topbar .acc b { display: block; color: var(--ink); font-size: 13px; }
	.palbtn { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); align-items: center; justify-content: center; cursor: pointer; padding: 0; color: var(--brand); }
	.palbtn svg { width: 18px; height: 18px; }
	.palpop.open { display: block; position: absolute; right: 20px; top: 62px; background: var(--card); border-radius: 14px; box-shadow: 0 10px 30px rgba(16, 32, 48, 0.18); padding: 14px; z-index: 8; width: 210px; }
	.palpop .dots { gap: 12px; }
	.palpop .dots button { width: 28px; height: 28px; }
	.palpop .dots button.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px currentColor; }
	.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(10px + env(safe-area-inset-bottom, 0px)); }
	.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-3); text-decoration: none; padding: 4px 0; }
	.tabbar a svg { width: 22px; height: 22px; }
	.tabbar a.on { color: var(--brand); }
	.cap { grid-template-columns: 124px 1fr; }
	.cap img { width: 124px; }
	.login { padding: 26px 20px 22px; }
	.login-wrap { padding-top: 24px; padding-bottom: 24px; }
	.pay { padding: 22px 18px; }
	.paywrap { padding-top: 24px; }
}
@media (max-width: 560px) { .srv .stiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Загрузка раздела без перезагрузки страницы (lk.js, lkGo): тонкая полоса сверху, появляется, если ответ дольше 0.25 с */
.lk-load { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%); background-size: 50% 100%; background-repeat: no-repeat; animation: lk-load 1s linear infinite; }
.lk-load[hidden] { display: none; }
@keyframes lk-load { from { background-position: -50% 0; } to { background-position: 150% 0; } }
