/* Pulse — кабинет, вкладка «Партнёрам» (PT.8; принятый макет PT.14 — demo/cabinet-partners.html и его стили). Оболочка,
   карточки, поля, окна, плашки, меню и тосты — из cabinet.css: вкладка — часть того же кабинета. Здесь только своё: поле
   ссылки со «Скопировать», крупная сумма к выводу, полосы переходов, строки приведённых клиентов, новые условия «сейчас →
   новые», заявки на вывод и окно «Вывести» (PT.13), история участия. Вкладка «Пригласить друга» (PT.9,
   cabinet-invite.js) — из тех же частей, своё у неё — второй ряд чисел. Цвета — только роли tokens.css, site.css и
   cabinet.css: обе темы — сами. */

.pt-view > .card { margin-bottom: 16px; }
.pt-mono { font-family: var(--font-mono); font-size: .94em; }
.pt-fine { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.pt-fine a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.pt-fine a:hover { color: var(--text); }
.pt-sub { margin-top: 8px; max-width: 72ch; font-size: 14px; line-height: 1.5; }
.pt-view h2[tabindex="-1"]:focus { outline: none; }

/* ---- оферта для партнёров и новые условия: согласие отметкой ------------------------------------------------ */
.pt-consent { background: var(--hero-card); overflow: hidden; }
.pt-consent .field, .pt-hero .field { --cell: 22px; --field-r: 60% 90%; --field-at: 100% 0%; opacity: .9; }
.pt-consent > * { position: relative; }
.pt-consent > .field { position: absolute; }
.pt-consent .label { display: block; margin-bottom: 12px; }
.pt-consent h2 { max-width: 22ch; font: 800 clamp(28px, 3.4vw, 44px)/1.05 var(--font-display); letter-spacing: -.04em; color: var(--text); }
.pt-worse h2 { max-width: 26ch; font-size: clamp(24px, 2.6vw, 34px); }
.pt-lead { max-width: 62ch; margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.pt-terms-meta { max-width: 760px; }
.pt-terms-meta dd { white-space: normal; }
.pt-consent-form { max-width: 640px; margin-top: 26px; }
.pt-consent-form .check { margin-bottom: 8px; }
.pt-consent-form .check a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.pt-consent-form .actions { margin-top: 18px; }
.pt-diff-wrap { max-width: 760px; margin-top: 22px; overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.pt-diff { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pt-diff th, .pt-diff td { padding: 12px 16px; text-align: left; vertical-align: top; }
.pt-diff thead th { font: 500 10.5px/1 var(--font-mono); font-stretch: 112.5%; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.pt-diff tbody tr { box-shadow: inset 0 1px 0 var(--line); }
.pt-diff tbody th { font-weight: 500; color: var(--text-3); }
.pt-diff tbody td { color: var(--text-2); }
.pt-diff tbody td:last-child { font-weight: 500; color: var(--text); }
.pt-diff .badge { margin-left: 6px; vertical-align: 1px; }
/* Окно согласия: все условия одной колонкой, без «сейчас» и шапки — первой строке линия сверху не нужна. */
.pt-one tbody tr:first-child { box-shadow: none; }
.pt-one tbody th { width: 40%; }

/* ---- точка на пункте «Партнёрам»: ждёт отметка партнёра — оферта или ухудшение условий -------------------------- */
.island .nav-links a.pt-due { position: relative; }
.island .nav-links a.pt-due::before { content: ""; position: absolute; top: 7px; right: 6px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) {
  /* Панель меню (site.css): точка — у правого края строки перед стрелкой; на закрытом меню — на его кнопке. */
  .island.has-menu .nav-links a.pt-due::before { position: static; order: 1; margin-left: auto; }
  .island.has-menu .nav-links a.pt-due::after { order: 2; }
  .island:has(.nav-links a.pt-due) .nav-btn { position: relative; }
  .island:has(.nav-links a.pt-due) .nav-btn::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px;
    border-radius: 50%; background: var(--accent); }
}

/* ---- ссылка и промокод -------------------------------------------------------------------------------------- */
.pt-hero { background: var(--hero-card); overflow: hidden; }
.pt-hero > *:not(.field) { position: relative; }
.pt-copies { display: grid; gap: 10px; }
.pt-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l b" "c b"; align-items: center; gap: 6px 14px;
  padding: 14px 14px 14px 18px; border-radius: 18px; background: var(--input-bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pt-copy .label { grid-area: l; font-size: 10.5px; letter-spacing: .16em; }
.pt-code { grid-area: c; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 clamp(17px, 1.7vw, 21px)/1.2 var(--font-mono); color: var(--text); }
.pt-code.big { letter-spacing: .14em; }
.pt-copy-btn { grid-area: b; }
.pt-copy-btn.is-done, .pt-copy-btn.is-done:hover { color: var(--up); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--up) 45%, transparent); background: color-mix(in srgb, var(--up) 8%, transparent); }
.pt-how { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.pt-how li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.pt-how .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-text); }
.pt-how b { color: var(--text); font-weight: 600; }
.pt-hero .lic-note { margin: 0 0 16px; }
.pt-hero .pt-terms-meta { margin-top: 24px; }

/* ---- к выводу ------------------------------------------------------------------------------------------------- */
.pt-bal { display: flex; flex-direction: column; }
.pt-big { margin-top: 2px; }
.pt-num { font: 800 clamp(44px, 4.6vw, 64px)/1 var(--font-display); letter-spacing: -.05em; color: var(--text); font-variant-numeric: tabular-nums; }
.pt-num span { color: var(--text-3); }
.pt-bal-sub { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-3); }
.pt-dl { margin: 18px 0 0; }
.pt-dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pt-dl dt { color: var(--text-3); }
.pt-dl dd { margin: 0; text-align: right; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-dl dd small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.pt-out-btn { margin-top: 18px; }
.pt-bal .lic-note { margin-top: 14px; font-size: 14px; }

/* ---- переходы и оплаты ------------------------------------------------------------------------------------------ */
.pt-stats-head { flex-wrap: wrap; }
/* Период — радиогруппа: выбранный — как вкладка кабинета (cabinet.css, .seg aria-selected). */
.pt-period button[aria-checked="true"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 18px -10px rgba(5, 6, 13, .5); }
.pt-period { min-width: 320px; }
.pt-period button { padding: 0 14px; font-size: 14px; white-space: nowrap; }
.pt-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.pt-kpi { display: grid; gap: 8px; align-content: start; padding: 16px 18px; min-width: 0; }
.pt-kpi + .pt-kpi { box-shadow: inset 1px 0 0 var(--line); }
.pt-kpi .label { font-size: 10.5px; letter-spacing: .16em; }
.pt-kpi b { font: 800 34px/1 var(--font-display); letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.pt-kpi small { font-size: 13px; line-height: 1.4; color: var(--text-3); }
.pt-chart { margin: 22px 0 0; }
.pt-chart-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13px; color: var(--text-3); }
.pt-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-bottom: 1px; box-shadow: inset 0 -1px 0 var(--line); }
.pt-bars.dense { gap: 2px; }
.pt-bars i { flex: 1 1 0; min-width: 2px; height: max(var(--h), 3px); border-radius: 4px 4px 1px 1px;
  background: color-mix(in srgb, var(--accent) 52%, transparent); transition: background .15s var(--ease-ui); }
.pt-bars i.zero { height: 2px; background: var(--line-strong); }
.pt-bars i.now { background: var(--accent-text); }
.pt-bars i:hover { background: var(--accent-text); }
.pt-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 500 12px var(--font-mono); color: var(--text-3); }

/* ---- приведённые клиенты ------------------------------------------------------------------------------------------ */
#pt-refs .card-head { align-items: flex-start; }
.pt-refs { margin: 0; padding: 0; list-style: none; }
.pt-ref { padding: 14px 0; }
.pt-ref + .pt-ref { border-top: 1px solid var(--line); }
.pt-ref-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.pt-who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.pt-who b { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.pt-who small, .pt-left { font-size: 13px; color: var(--text-3); }
.pt-pays { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.pt-pays li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 176px; gap: 14px; align-items: center; padding: 6px 10px; margin: 0 -10px;
  border-radius: 10px; font-size: 14px; color: var(--text-2); }
.pt-pays li:hover { background: var(--row-hover); }
.pt-pays time { font: 500 12.5px var(--font-mono); color: var(--text-3); white-space: nowrap; }
.pt-acc { font: 600 14px var(--font-mono); color: var(--text); text-align: right; white-space: nowrap; }
.pt-acc s, .pt-acc small { color: var(--text-3); font-weight: 500; }
.pt-acc small { font-size: 12.5px; }
.pt-pays .badge { justify-self: end; white-space: nowrap; }
.pt-none { margin-top: 6px; font-size: 13.5px; color: var(--text-3); }
.pt-more { margin-top: 12px; font-size: 14.5px; }
.pt-more .ic { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.is-all .pt-more .ic { transform: rotate(180deg); }
.pt-empty { display: grid; justify-items: center; gap: 10px; padding: 32px 16px 24px; text-align: center; color: var(--text-3); }
.pt-empty > .ic { width: 32px; height: 32px; color: var(--accent-text); }
.pt-empty b { font: 700 18px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.pt-empty p { max-width: 50ch; font-size: 14.5px; line-height: 1.5; }

/* ---- заявки на вывод (PT.13, по макету PT.14) ----------------------------------------------------------------------------- */
.pt-outs { margin: 0; padding: 0; list-style: none; }
.pt-outs li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; }
.pt-outs li + li { border-top: 1px solid var(--line); }
.pt-outs time { padding-top: 2px; font: 500 13px var(--font-mono); color: var(--text-3); }
.pt-out-main { min-width: 0; }
.pt-out-main b { display: block; font: 600 15px var(--font-mono); color: var(--text); }
.pt-out-main small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.pt-out-main small.bad { color: var(--down); }
.pt-hash code { font: 500 12.5px var(--font-mono); color: var(--text-2); }
.pt-icon { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -6px 0; border-radius: 8px; cursor: pointer; color: var(--text-3); }
.pt-icon:hover { color: var(--text); background: var(--accent-soft); }
.pt-icon:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.pt-icon .ic { width: 15px; height: 15px; }
.pt-outs-empty { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* ---- окно «Вывести» ---------------------------------------------------------------------------------------------- */
/* Сеть — радиогруппа: выбранная — как период «Переходов» (.pt-period). */
.pt-nets button[aria-checked="true"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 18px -10px rgba(5, 6, 13, .5); }
#pt-out-net button { display: flex; align-items: center; justify-content: center; gap: 8px; }
#pt-out-net small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.pt-opt { font-weight: 400; color: var(--text-3); }
.pt-affix { position: relative; }
.pt-affix .input { padding-right: 70px; font-variant-numeric: tabular-nums; }
.pt-affix > i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 12.5px var(--font-mono); font-style: normal; color: var(--text-3); pointer-events: none; }
.input.pt-mono { font-family: var(--font-mono); font-size: 15px; }
#pt-dlg-out .lic-note { margin-top: 4px; font-size: 14px; }
.pt-sumline { margin-top: 16px; padding: 14px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong); overflow-wrap: anywhere; }
.pt-sumline b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-sumline small { display: block; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.pt-sumline > small:only-child { margin-top: 0; color: var(--text-3); }
.pt-out-err { margin-top: 12px; }

/* ---- история участия ------------------------------------------------------------------------------------------------ */
.pt-hist { margin: 0; padding: 0; list-style: none; }
.pt-hist li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 10px 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.pt-hist li + li { border-top: 1px solid var(--line); }
.pt-hist time { padding-top: 1px; font: 500 12.5px/1.6 var(--font-mono); color: var(--text-3); }

/* ---- окно удаления аккаунта: предупреждение партнёру (п. 10.5) ------------------------------------------------------- */
#del-view .lic-note { margin-top: 16px; font-size: 14px; }

/* ---- «Пригласить друга»: люди — тремя числами, дни — вторым рядом из двух ---------------------------------------- */
.pt-kpis.iv-two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }

/* ---- адаптив ---------------------------------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .pt-period { min-width: 0; flex: 1 1 100%; }
  .pt-kpis, .pt-kpis.iv-two { grid-template-columns: minmax(0, 1fr); }
  .pt-kpi { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 14px 16px; }
  .pt-kpi b { grid-row: span 2; font-size: 28px; }
  .pt-kpi + .pt-kpi { box-shadow: inset 0 1px 0 var(--line); }
  .pt-bars { height: 96px; gap: 2px; }
  .pt-pays li { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 10px; }
  .pt-pays .badge { grid-column: 2 / -1; justify-self: start; }
  .pt-hist li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pt-outs li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .pt-outs time { grid-column: 1 / -1; padding: 0; }
  /* Подпись справа — под заголовком, а не узкой колонкой рядом (как у «Устройств» боевого кабинета). */
  #pt-refs .card-head, #pt-outs .card-head { flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; }
  #pt-refs .card-head > div { flex: 1 1 280px; }
  #pt-refs .card-head > .card-sub, #pt-outs .card-head > .card-sub { flex: 1 1 100%; }
  .pt-diff th, .pt-diff td { padding: 10px 12px; }
}
@media (max-width: 560px) {
  .pt-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "l" "c" "b"; padding: 14px; }
  .pt-copy-btn { width: 100%; margin-top: 6px; }
}
