/* «Деливеренот Бизнес · YOI» — кабинет партнёра и регистрация: шапка без левой панели, вкладки, переписка по заявке. */
/* Левой панели кабинета ресторанов здесь нет — без отступа под неё (business-shell.css задаёт его body.biz). */
body.biz.pt-page { padding-left: 0 !important; }
.pt-top { display:flex; align-items:center; gap:14px; padding:14px 24px; border-bottom:1px solid var(--yoi-border); background:var(--yoi-surface); position:sticky; top:0; z-index:5; }
.pt-top img { height:36px; width:auto; }
.pt-brand { font-weight:700; font-size:17px; letter-spacing:-.01em; white-space:nowrap; }
.pt-brand small { color:var(--yoi-muted); font-weight:600; }
.pt-top .pt-spacer { flex:1; }
.pt-top a.pt-link { color:var(--yoi-muted); text-decoration:none; font-size:14px; }
.pt-top a.pt-link:hover { color:var(--yoi-text); }
.pt-tabs { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 20px; }
.pt-tabs a { padding:9px 16px; border-radius:999px; border:1px solid var(--yoi-border); color:var(--yoi-text); text-decoration:none; font-weight:600; font-size:14px; background:var(--yoi-surface); }
.pt-tabs a[aria-current="page"] { background:var(--yoi-green); border-color:var(--yoi-green); color:#fff; }
.pt-note { border:1px solid var(--yoi-border); border-left:4px solid var(--yoi-amber); background:#fffbeb; border-radius:12px; padding:12px 16px; margin:0 0 20px; font-size:14px; }
.pt-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.pt-field { min-width:0; }
.pt-field textarea { min-height:96px; resize:vertical; }
.pt-check { display:flex; gap:10px; align-items:flex-start; margin:10px 0; font-size:14px; }
.pt-check input { margin-top:3px; width:18px; height:18px; flex:none; }
.pt-legend { font-size:16px; font-weight:700; margin:22px 0 8px; }
.pt-legend:first-child { margin-top:0; }
[data-ip] > .pt-legend:first-child { margin-top:22px; }
.pt-dl { display:grid; grid-template-columns:minmax(140px,220px) 1fr; gap:6px 16px; margin:0; font-size:15px; }
.pt-dl dt { color:var(--yoi-muted); }
.pt-dl dd { margin:0; overflow-wrap:anywhere; }
.pt-span { grid-column:1/-1; }
.pt-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ── Заявка: шапка, поля, переписка (Partner.chat в partner-form.js) ── */
.pt-request-title { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pt-request-title h2 { margin:0; }
.pt-request-foot { margin-top:14px; }
.pt-fields { margin:4px 0 16px; }
.pt-fields summary { cursor:pointer; font-weight:600; font-size:14px; color:var(--brand-green-strong, #1f5a28); padding:6px 0; width:max-content; }
.pt-fields summary:focus-visible { outline:none; box-shadow:var(--yoi-focus); border-radius:6px; }
.pt-fields .pt-dl { margin-top:8px; }

.pt-conv { position:relative; border:1px solid var(--yoi-border); border-radius:16px; overflow:hidden; background:var(--yoi-surface); margin-top:6px; }
.pt-thread { display:flex; flex-direction:column; gap:2px; padding:14px 16px 18px; max-height:min(62vh,640px); min-height:180px; overflow-y:auto;
  background:var(--brand-field, #faf8f3); overscroll-behavior:contain; }
.pt-thread:focus-visible { outline:none; box-shadow:inset var(--yoi-focus); }
.pt-thread-empty { margin:auto; color:var(--yoi-muted); font-size:14px; text-align:center; max-width:320px; }
.pt-day { display:flex; justify-content:center; margin:14px 0 8px; }
.pt-day span { font-size:12px; font-weight:600; color:var(--yoi-muted); background:var(--brand-soft, #f0eae0); padding:3px 10px; border-radius:999px; }
.pt-sys { align-self:center; max-width:min(560px,100%); margin:6px 0; color:var(--yoi-muted); font-size:13px; line-height:1.45; text-align:center; text-wrap:pretty; }
.pt-sys time { font-variant-numeric:tabular-nums; opacity:.8; margin-left:2px; }

.pt-bubble { align-self:flex-start; max-width:min(72%,560px); margin-top:10px; padding:8px 12px 6px; border-radius:6px 16px 16px 16px;
  background:var(--yoi-surface); border:1px solid var(--yoi-border); display:flex; flex-direction:column; gap:6px; }
.pt-bubble.pt-own { align-self:flex-end; border-radius:16px 6px 16px 16px; background:var(--brand-green-wash, #e5f1dc); border-color:transparent; }
.pt-bubble.pt-cont { margin-top:3px; border-radius:16px; }
.pt-who { font-size:12px; font-weight:700; color:var(--yoi-muted); }
.pt-own .pt-who { color:var(--brand-green-strong, #1f5a28); }
.pt-text { margin:0; font-size:15px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; }
.pt-at { align-self:flex-end; font-size:11px; color:var(--yoi-muted); font-variant-numeric:tabular-nums; line-height:1; margin-top:-2px; }

.pt-att-img { display:block; padding:0; border:0; background:var(--brand-soft, #f0eae0); border-radius:12px; overflow:hidden; cursor:zoom-in; width:260px; max-width:100%; aspect-ratio:4/3; }
.pt-att-img img { display:block; width:100%; height:100%; object-fit:cover; }
.pt-att-img:focus-visible, .pt-att-file:focus-visible { outline:none; box-shadow:var(--yoi-focus); }
.pt-att-file { display:flex; align-items:center; gap:10px; min-width:min(260px,100%); max-width:100%; padding:8px 10px; border-radius:12px; text-decoration:none; color:inherit;
  background:var(--yoi-surface); border:1px solid var(--yoi-border); }
.pt-own .pt-att-file { border-color:rgba(45,128,58,.22); }
.pt-att-file:hover { border-color:var(--yoi-green); }
.pt-att-ext { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:var(--brand-soft, #f0eae0); color:var(--yoi-text);
  font-size:11px; font-weight:800; text-transform:uppercase; }
.pt-att-meta { display:flex; flex-direction:column; min-width:0; flex:1; }
.pt-att-meta b { font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-att-meta small { font-size:12px; color:var(--yoi-muted); }
.pt-att-down { flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; color:var(--brand-green-strong, #1f5a28); }
.pt-att-down svg, .pt-icon-btn svg, .pt-send svg, .pt-chip button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

.pt-composer { padding:10px 12px 8px; border-top:1px solid var(--yoi-border); background:var(--yoi-surface); }
.pt-compose-row { display:flex; align-items:flex-end; gap:6px; padding:4px; border:1px solid var(--yoi-border); border-radius:14px; background:var(--yoi-surface); }
.pt-compose-row:focus-within { border-color:var(--yoi-green); box-shadow:var(--yoi-focus); }
.pt-compose-row textarea { flex:1; min-width:0; border:0; outline:none; resize:none; background:none; font:inherit; font-size:15px; line-height:1.4; padding:9px 4px; max-height:168px; color:var(--yoi-text); }
.pt-icon-btn, .pt-send { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:11px; border:0; cursor:pointer; touch-action:manipulation; }
.pt-icon-btn { background:none; color:var(--yoi-muted); }
.pt-icon-btn:hover { background:var(--brand-soft, #f0eae0); color:var(--yoi-text); }
.pt-send { background:var(--brand-green, #2d803a); color:#fff; transition:background-color .15s, opacity .15s; }
.pt-send:hover:not(:disabled) { background:var(--brand-green-strong, #1f5a28); }
.pt-send:disabled { background:var(--brand-soft, #f0eae0); color:var(--yoi-muted); cursor:default; }
.pt-send[aria-busy="true"] { opacity:.7; cursor:progress; }
.pt-icon-btn:focus-visible, .pt-send:focus-visible, .pt-chip button:focus-visible { outline:none; box-shadow:var(--yoi-focus); }
.pt-compose-hint { margin:6px 4px 0; font-size:12px; color:var(--yoi-muted); }
.pt-compose-err:empty { display:none; }
.pt-compose-err { margin:6px 4px 0; font-size:13px; color:var(--yoi-red); }
.pt-queue { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 8px; }
.pt-chip { display:flex; align-items:center; gap:8px; max-width:100%; padding:4px 4px 4px 4px; border:1px solid var(--yoi-border); border-radius:12px; background:var(--brand-field, #faf8f3); font-size:13px; }
.pt-chip img, .pt-chip .pt-att-ext { width:32px; height:32px; border-radius:8px; object-fit:cover; }
.pt-chip-name { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.pt-chip small { color:var(--yoi-muted); }
.pt-chip button { display:grid; place-items:center; width:28px; height:28px; border:0; border-radius:8px; background:none; color:var(--yoi-muted); cursor:pointer; }
.pt-chip button:hover { background:var(--brand-soft, #f0eae0); color:var(--yoi-text); }
.pt-sending .pt-compose-row { opacity:.75; }
.pt-conv.pt-drop::after { content:"Отпустите, чтобы прикрепить"; position:absolute; inset:0; display:grid; place-items:center; font-weight:700; color:var(--brand-green-strong, #1f5a28);
  background:rgba(229,241,220,.86); border:2px dashed var(--brand-green, #2d803a); border-radius:16px; pointer-events:none; }

.pt-lightbox { padding:0; border:0; border-radius:16px; max-width:min(92vw,1100px); background:var(--yoi-surface); color:var(--yoi-text); }
.pt-lightbox::backdrop { background:rgba(41,37,31,.72); }
.pt-lightbox img { display:block; max-width:min(92vw,1100px); max-height:calc(88vh - 60px); margin:auto; }
.pt-lightbox-bar { display:flex; align-items:center; gap:8px; padding:10px 12px; border-top:1px solid var(--yoi-border); }
.pt-lightbox-bar span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:600; }

/* ── Выплаты: график ── */
.pt-sched { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; border:0; padding:0; margin:12px 0 4px; }
.pt-sched[disabled] .pt-sched-opt:not(:has(input:checked)) { opacity:.6; }
.pt-sched-opt { display:flex; gap:10px; align-items:flex-start; padding:14px 16px; border:1.5px solid var(--yoi-border); border-radius:14px; background:var(--yoi-surface); cursor:pointer; }
.pt-sched-opt:has(input:checked) { border-color:var(--brand-green, #2d803a); background:var(--brand-green-wash, #e5f1dc); }
.pt-sched-opt:has(input:focus-visible) { box-shadow:var(--yoi-focus); }
.pt-sched[disabled] .pt-sched-opt { cursor:not-allowed; }
.pt-sched-opt input { accent-color:var(--brand-green, #2d803a); width:18px; height:18px; margin:2px 0 0; flex:none; }
.pt-sched-body { display:flex; flex-direction:column; gap:2px; }
.pt-sched-body b { font-size:16px; }
.pt-sched-n { font-size:13px; color:var(--yoi-muted); }
.pt-sched-fee { font-size:13px; font-variant-numeric:tabular-nums; }
.pt-points { margin:6px 0 4px; padding-left:20px; font-size:15px; line-height:1.5; }
.pt-points li + li { margin-top:6px; }
.pt-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.pt-kind { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
.pt-kind button { text-align:left; padding:16px; border-radius:14px; border:1px solid var(--yoi-border); background:var(--yoi-surface); cursor:pointer; font:inherit; color:inherit; }
.pt-kind button:hover:not([disabled]) { border-color:var(--yoi-green); }
.pt-kind button[disabled] { opacity:.55; cursor:not-allowed; }
.pt-kind b { display:block; margin-bottom:4px; }
.pt-kind small { color:var(--yoi-muted); font-size:13px; }
.pt-qr { display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.pt-qr-box { width:132px; height:132px; border:2px dashed var(--yoi-border); border-radius:14px; display:grid; place-items:center; color:var(--yoi-muted); font-size:12px; text-align:center; padding:8px; }
@media(max-width:600px){ .pt-top { padding:10px 16px; gap:10px; } .pt-top a.pt-link.pt-wide { display:none; } .pt-top img { height:30px; } .pt-brand small { display:none; } .pt-dl { grid-template-columns:1fr; } .pt-dl dt { margin-top:6px; } .pt-bubble { max-width:88%; } .pt-thread { padding:12px 10px 14px; max-height:64vh; } .pt-composer { padding:8px; } .pt-chip-name { max-width:120px; } }

/* Ближайшая выплата (п. 10.4 оферты): дата — главное на карточке, рядом — куда и почему перенесено. */
.pt-next { display:grid; grid-template-columns:1fr auto; gap:8px 24px; align-items:end; border-left:4px solid var(--yoi-green); }
.pt-next-main { display:flex; flex-direction:column; gap:2px; min-width:0; }
.pt-next-label { font-size:14px; color:var(--yoi-muted); }
.pt-next-date { font-size:28px; line-height:1.15; font-weight:700; color:var(--yoi-text); font-variant-numeric:tabular-nums; }
.pt-next-date::first-letter { text-transform:uppercase; }
.pt-next-sub { font-size:14px; color:var(--yoi-muted); }
.pt-next-meta { display:grid; grid-template-columns:auto auto; gap:2px 12px; margin:0; font-size:14px; }
.pt-next-meta dt { color:var(--yoi-muted); }
.pt-next-meta dd { margin:0; font-weight:600; }
.pt-next .biz-hint { grid-column:1 / -1; margin:4px 0 0; }
@media (max-width: 640px) { .pt-next { grid-template-columns:1fr; } .pt-next-date { font-size:24px; } }
/* Шаги смены счёта: последовательность — поэтому нумерованный список. */
.pt-steps { margin:0 0 16px; padding-left:22px; display:grid; gap:6px; color:var(--yoi-text); }
.pt-steps li::marker { color:var(--yoi-green); font-weight:700; }

/* «Личный кабинет» (/business/me): профиль слева, договор и помощь справа; переписка «Сообщить о проблеме». */
.me-grid { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr); gap:20px; align-items:start; }
.me-side { display:grid; gap:20px; }
.me-profile { display:grid; gap:10px; }
.me-profile h2, .me-partner h2 { margin:0; }
.me-profile h3, .me-partner h3 { margin:12px 0 4px; font-size:15px; }
.me-avatar { width:64px; height:64px; border-radius:50%; display:grid; place-items:center; background:var(--yoi-green-light); color:var(--yoi-green-dark); font-size:26px; font-weight:800; }
.me-places, .me-requests { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.me-places a, .me-requests a { display:flex; flex-direction:column; gap:2px; padding:12px 14px; border:1px solid var(--yoi-border); border-radius:12px; text-decoration:none; color:var(--yoi-text); background:var(--yoi-surface); }
.me-places a:hover, .me-requests a:hover { border-color:var(--yoi-green); }
.me-places span, .me-requests span { color:var(--yoi-muted); font-size:13.5px; }
.me-theme { justify-self:start; display:inline-flex; gap:8px; align-items:center; }
.me-theme svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; }
.me-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.me-payout { display:grid; gap:2px; margin:12px 0 4px; padding:12px 14px; border-left:4px solid var(--yoi-green); background:var(--yoi-surface-2); border-radius:0 12px 12px 0; }
.me-payout span, .me-payout small { color:var(--yoi-muted); font-size:13.5px; }
.me-payout b { font-size:22px; }
.me-chat { display:grid; gap:12px; }
.me-thread { display:flex; flex-direction:column; gap:8px; max-height:min(60vh, 560px); overflow-y:auto; padding:4px; }
.me-msg { align-self:flex-start; max-width:min(560px, 88%); padding:10px 12px; border-radius:6px 16px 16px 16px; background:var(--yoi-surface); border:1px solid var(--yoi-border); }
.me-msg p { margin:0; white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
.me-msg b { display:block; font-size:12.5px; color:var(--yoi-green-dark); margin-bottom:2px; }
.me-msg time { display:block; text-align:right; font-size:11.5px; color:var(--yoi-muted); margin-top:4px; }
.me-mine { align-self:flex-end; border-radius:16px 6px 16px 16px; background:var(--yoi-green-light); border-color:transparent; }
.me-sys { align-self:center; background:var(--yoi-surface-2); border-color:transparent; color:var(--yoi-muted); font-size:13.5px; text-align:center; }
.me-form { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:end; }
.me-form textarea { min-height:72px; resize:vertical; }
@media (max-width: 900px) { .me-grid { grid-template-columns:1fr; } }
@media (max-width: 560px) { .me-form { grid-template-columns:1fr; } }
:root[data-yoi-shell="desktop"] .me-theme, :root[data-yoi-shell="desktop"] .me-theme + * { display:none; }

/* Заявки партнёров у платформы — как мессенджер: слева заявки, справа переписка выбранной (с 03.11.2026). */
.pq-layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
.pq-side { position: sticky; top: 12px; max-height: calc(100vh - 120px); overflow-y: auto; }
.pq-main { min-width: 0; }
.pq-pick { display: grid; place-items: center; min-height: 220px; }
.pq-pick[hidden] { display: none; }
#pq-list { display: grid; gap: 4px; margin-top: 10px; }
.pq-item {
  display: grid; gap: 4px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.pq-item:hover { background: var(--yoi-surface-2, #f3eee6); }
.pq-item:focus-visible { outline: 2px solid var(--yoi-green, #34784a); outline-offset: 2px; }
.pq-item.is-selected { border-color: var(--yoi-green, #34784a); background: var(--yoi-green-light, #eaf3e8); }
.pq-item-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.pq-item-when { color: var(--yoi-muted, #6d655a); font-size: 12px; white-space: nowrap; }
.pq-item-title { font-size: 13.5px; line-height: 1.35; }
.pq-item-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1099px) {
  .pq-layout { grid-template-columns: 1fr; }
  .pq-side { position: static; max-height: none; }
  .pq-pick { display: none; }
}

/* Личный кабинет → «Вход и безопасность» (13.11.2026): пароль, Google Authenticator, резервные коды. */
.sec-grid { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:20px; align-items:start; }
.sec-col { display:grid; gap:20px; }
.sec-panel h2 { margin:0 0 4px; }
.sec-off { opacity:.75; }
.sec-form { display:grid; gap:8px; margin-top:12px; }
.sec-form .yoi-btn { justify-self:start; }
.sec-pass-row { display:flex; gap:8px; }
.sec-pass-row .yoi-input { flex:1; min-width:0; }
.sec-meter { min-height:1.2em; color:var(--yoi-muted); font-size:13px; }
.sec-meter.sec-weak { color:var(--brand-danger); }
.sec-meter.sec-mid { color:var(--brand-warning); }
.sec-meter.sec-ok { color:var(--yoi-green); }
.sec-warn { margin:10px 0 0; padding:10px 12px; border-radius:10px; background:var(--yoi-surface-2); border-left:4px solid var(--brand-warning); font-size:14px; }
.sec-steps { margin:8px 0; padding-left:20px; display:grid; gap:4px; }
.sec-qr { display:grid; grid-template-columns:200px minmax(0, 1fr); gap:16px; align-items:center; margin:8px 0; }
.sec-qr svg { width:200px; height:200px; background:#fff; border-radius:12px; padding:6px; box-sizing:border-box; }
.sec-secret { display:block; padding:10px 12px; border-radius:10px; background:var(--yoi-surface-2); font-size:15px; letter-spacing:.06em; overflow-wrap:anywhere; user-select:all; }
.sec-code { max-width:180px; font-size:20px; letter-spacing:.2em; text-align:center; }
.sec-codes { margin:12px 0; padding:12px 14px; border:1px dashed var(--yoi-green); border-radius:12px; }
.sec-codes ol { columns:2; margin:8px 0 12px; padding-left:22px; }
.sec-codes code { font-size:15px; letter-spacing:.04em; }
.sec-danger { color:var(--brand-danger); }
@media (max-width: 900px) {
  .sec-grid { grid-template-columns:1fr; }
  .sec-qr { grid-template-columns:1fr; justify-items:start; }
}
