/* Кабинет покупателя (ПРМ-080): токены дизайна, оболочка, компоненты. Не зависит от shop.css и style.css. */

/* ---------- токены: светлая тема по умолчанию ---------- */
:root {
  --c-surface: #ffffff;
  --c-block: #f6f8f6;
  --c-text: #24303d;
  --c-text2: #4b5866;
  --c-muted: #5f6b77;
  --c-faint: #8a97a3;
  --c-line: #e3e8ec;
  --c-line2: #eef1f3;
  --c-line3: #cfd7dd;
  --c-green: #4a9b2f;
  --c-green-d: #3b7d25;
  --c-gtint: #eaf5e4;
  --c-gink: #2f6a1d;
  --c-accent: #f07d1a;
  --c-red: #c0392b;
  --c-rtint: #fdecea;
  --c-rline: #f3c4bf;
  --c-atint: #fbf1dc;
  --c-aink: #7a5410;
  --c-aline: #f0dcae;
  --c-stop: #5b1f1a;
  --c-stint: #f3e9e8;
  --c-skel: #eef1f3;
  --c-logo-ink: #24303d;
  --c-tabbar: #ffffff;
  color-scheme: light;
}

/* тёмная тема: явный выбор */
[data-theme="dark"] {
  --c-surface: #1b232b;
  --c-block: #141a20;
  --c-text: #e7ecef;
  --c-text2: #b4bec7;
  --c-muted: #9aa6b1;
  --c-faint: #7d8995;
  --c-line: #2c3741;
  --c-line2: #232d36;
  --c-line3: #3a4652;
  --c-green: #5aa83b;
  --c-green-d: #5aa83b;
  --c-gtint: #1e3320;
  --c-gink: #9fd987;
  --c-accent: #f07d1a;
  --c-red: #ef6b5d;
  --c-rtint: #3a1d1b;
  --c-rline: #6b302b;
  --c-atint: #352a14;
  --c-aink: #f0c76d;
  --c-aline: #5e4a1f;
  --c-stop: #c25a50;
  --c-stint: #2e1f1e;
  --c-skel: #232d36;
  --c-logo-ink: #e7ecef;
  --c-tabbar: #1b232b;
  color-scheme: dark;
}

/* тёмная тема: «авто» — по настройке устройства, те же токены */
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --c-surface: #1b232b;
    --c-block: #141a20;
    --c-text: #e7ecef;
    --c-text2: #b4bec7;
    --c-muted: #9aa6b1;
    --c-faint: #7d8995;
    --c-line: #2c3741;
    --c-line2: #232d36;
    --c-line3: #3a4652;
    --c-green: #5aa83b;
    --c-green-d: #5aa83b;
    --c-gtint: #1e3320;
    --c-gink: #9fd987;
    --c-accent: #f07d1a;
    --c-red: #ef6b5d;
    --c-rtint: #3a1d1b;
    --c-rline: #6b302b;
    --c-atint: #352a14;
    --c-aink: #f0c76d;
    --c-aline: #5e4a1f;
    --c-stop: #c25a50;
    --c-stint: #2e1f1e;
    --c-skel: #232d36;
    --c-logo-ink: #e7ecef;
    --c-tabbar: #1b232b;
    color-scheme: dark;
  }
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-block);
  color: var(--c-text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: var(--c-green-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
.pt-ic { flex: none; display: block; }
.pt-muted { color: var(--c-muted); }
.pt-small { font-size: 12.5px; }
.pt-missing-key { color: var(--c-red); font-family: monospace; }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-field input.pt-sr, input.pt-sr { width: 1px; height: 1px; padding: 0; border: 0; margin: 0; }

/* ---------- кнопки, поля, карточки ---------- */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--c-green); color: #ffffff; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.pt-btn:hover { text-decoration: none; filter: brightness(.96); }
.pt-btn-ghost { background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-line); font-size: 14px; font-weight: 600; min-height: 46px; }
.pt-btn-block { width: 100%; }
.pt-btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.pt-link-btn { background: transparent; border: 0; color: var(--c-green-d); font-size: 13px; font-weight: 600; min-height: 44px; padding: 0; cursor: pointer; text-align: left; }
.pt-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: 16px; }
.pt-card + .pt-card { margin-top: 12px; }
.pt-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.pt-field > span.pt-hint { font-weight: 400; color: var(--c-muted); font-size: 12px; }
.pt-input, .pt-field input, .pt-field select {
  width: 100%; height: 46px; border: 1px solid var(--c-line3); border-radius: 10px; padding: 0 12px;
  background: var(--c-surface); font-size: 14px; font-weight: 400; color: var(--c-text);
}
.pt-input:focus, .pt-field input:focus, .pt-field select:focus { outline: 2px solid var(--c-green); outline-offset: 1px; }
.pt-field input[readonly] { background: var(--c-block); color: var(--c-text2); }
.pt-alert { background: var(--c-rtint); border: 1px solid var(--c-rline); color: var(--c-red); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.pt-alert ul { margin: 0; padding-left: 18px; }
.pt-note { background: var(--c-atint); border: 1px solid var(--c-aline); color: var(--c-aink); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.pt-ok { background: var(--c-gtint); border: 1px solid var(--c-gtint); color: var(--c-gink); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }

/* переключатели: язык, тема, вход/регистрация (тень — только у активного сегмента) */
.pt-seg { display: flex; gap: 3px; padding: 3px; background: var(--c-block); border-radius: 11px; }
.pt-seg form { flex: 1; display: flex; }
.pt-seg button, .pt-seg a {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 8px; padding: 0 10px;
  background: transparent; color: var(--c-muted); font-size: 14px; cursor: pointer; text-decoration: none; text-align: center;
}
.pt-seg .on { background: var(--c-surface); color: var(--c-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .16); font-weight: 600; }
.pt-seg-lang { max-width: 200px; margin-left: auto; }
.pt-prefs .pt-seg-lang { max-width: none; margin-left: 0; }
.pt-orders td .pt-row { flex-wrap: nowrap; }

/* ---------- страницы без оболочки (вход, регистрация) ---------- */
.pt-bare { max-width: 480px; margin: 0 auto; padding: 18px 12px 40px; }
.pt-bare-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pt-bare h1 { margin: 0; }
.pt-bare .pt-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pt-cat {
  display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 12px;
  background: var(--c-surface); color: var(--c-text); text-decoration: none; text-align: left;
}
.pt-cat:hover { text-decoration: none; border-color: var(--c-green); }
.pt-cat b { font-size: 14.5px; }
.pt-cat span { font-size: 12.5px; color: var(--c-text2); }
.pt-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; min-height: 44px; }
.pt-consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--c-green); }

/* ---------- логотип ---------- */
.pt-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-logo-ink); font-size: 20px; font-weight: 700; text-decoration: none; }
.pt-logo:hover { text-decoration: none; }
.pt-logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--c-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; }

/* ---------- оболочка ---------- */
.pt-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.pt-top .pt-spacer { flex: 1; }
.pt-search { display: none; flex: 1; position: relative; }
.pt-search input { width: 100%; height: 44px; border: 1px solid var(--c-line3); border-radius: 12px; padding: 0 12px 0 40px; background: var(--c-surface); font-size: 14px; }
.pt-search .pt-ic { position: absolute; left: 12px; top: 12px; color: var(--c-muted); }
.pt-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c-gtint); color: var(--c-gink); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; text-decoration: none; flex: none; }
.pt-avatar:hover { text-decoration: none; }
.pt-user { display: none; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; }
.pt-user:hover { text-decoration: none; }
.pt-user b { display: block; font-size: 13.5px; line-height: 1.2; }
.pt-cartbtn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); color: var(--c-text); font-weight: 600; text-decoration: none; }
.pt-cartbtn:hover { text-decoration: none; }
.pt-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--c-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; padding: 0 6px; }

.pt-body { display: block; }
.pt-side { display: none; }
.pt-main { padding: 12px 12px 96px; max-width: 980px; margin: 0 auto; }
.pt-page-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pt-page-title h1 { margin: 0; }

/* меню: группы, строки (боковое на ПК и «Ещё» на телефоне — одна разметка) */
.pt-menu-group-name { margin: 16px 4px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text); }
.pt-menu-group { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; overflow: hidden; }
.pt-menu-row { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; color: var(--c-text); font-size: 14px; text-decoration: none; border-top: 1px solid var(--c-line2); }
.pt-menu-row:first-child { border-top: 0; }
.pt-menu-row:hover { text-decoration: none; background: var(--c-block); }
.pt-menu-row .pt-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--c-block); color: var(--c-green-d); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pt-menu-row .pt-meta { margin-left: auto; font-size: 11.5px; color: var(--c-muted); }
.pt-menu-row .pt-chev { color: var(--c-faint); }
.pt-menu-row.on { background: var(--c-gtint); color: var(--c-gink); font-weight: 600; }
.pt-menu-row.on .pt-ico { background: var(--c-surface); }
.pt-menu-home { margin-bottom: 4px; }

.pt-profile-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; color: var(--c-text); text-decoration: none; }
.pt-profile-card:hover { text-decoration: none; }
.pt-profile-card .pt-avatar { width: 56px; height: 56px; font-size: 18px; }
.pt-profile-card b { display: block; font-size: 17px; }
.pt-profile-card span { color: var(--c-muted); font-size: 13px; }
.pt-prefs { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.pt-prefs .pt-label { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; color: var(--c-text2); }
.pt-logout { margin-top: 16px; }

/* нижняя панель телефона */
.pt-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--c-tabbar); border-top: 1px solid var(--c-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); min-height: 64px; }
.pt-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--c-muted); font-size: 12px; text-decoration: none; position: relative; }
.pt-tab:hover { text-decoration: none; }
.pt-tab.on { color: var(--c-green-d); }
.pt-tab .pt-count { position: absolute; top: 2px; left: 55%; }

/* ---------- страницы кабинета ---------- */
.pt-orders { width: 100%; border-collapse: collapse; }
.pt-orders th { text-align: left; font-size: 12px; font-weight: 600; color: var(--c-muted); padding: 6px 8px; border-bottom: 1px solid var(--c-line); }
.pt-orders td { padding: 10px 8px; border-bottom: 1px solid var(--c-line2); vertical-align: top; }
.pt-orders .pt-sum { white-space: nowrap; font-weight: 600; }
.pt-order-card { display: none; }
.pt-two { display: grid; gap: 12px; }
.pt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; }
.pt-kv dt { color: var(--c-muted); }
.pt-kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.pt-history a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--c-line2); color: var(--c-text); text-decoration: none; }
.pt-history a:first-child { border-top: 0; }
.pt-chat-line { max-width: 90%; padding: 8px 12px; border-radius: 12px; margin: 6px 0; background: var(--c-block); }
.pt-chat-line.me { margin-left: auto; background: var(--c-gtint); }
.pt-chat-line small { display: block; color: var(--c-muted); font-size: 11.5px; }

/* чат (кнопка и окно) */
.pt-chat-btn { position: fixed; right: 14px; bottom: 82px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--c-green); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pt-chat-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pt-chat-dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-red); border: 2px solid var(--c-surface); }
.pt-chat { position: fixed; right: 12px; bottom: 148px; z-index: 40; width: min(360px, calc(100vw - 24px)); max-height: 70vh; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; }
.pt-chat[hidden], .pt-chat-btn[hidden] { display: none; }
.pt-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--c-line); font-weight: 700; }
.pt-chat-close { border: 0; background: transparent; font-size: 18px; cursor: pointer; min-width: 44px; min-height: 44px; }
.pt-chat > div, .pt-chat > form { padding: 12px 14px; }
.pt-chat-lines { overflow-y: auto; flex: 1; max-height: 40vh; }
.pt-chat-say { display: flex; gap: 8px; border-top: 1px solid var(--c-line); }
.pt-chat-say input { flex: 1; min-width: 0; }
.pt-chat-error { color: var(--c-red); font-size: 12.5px; }
.pt-chat form input { width: 100%; height: 44px; border: 1px solid var(--c-line3); border-radius: 10px; padding: 0 12px; background: var(--c-surface); margin-bottom: 8px; }

/* ---------- ПК ---------- */
@media (min-width: 901px) {
  .pt-top { height: 68px; padding: 0 20px; }
  .pt-search { display: block; }
  .pt-top .pt-spacer { display: none; }
  .pt-cartbtn { display: inline-flex; }
  .pt-user { display: inline-flex; }
  .pt-top .pt-avatar-only { display: none; }
  .pt-body { display: flex; align-items: flex-start; }
  .pt-side { display: block; width: 280px; flex: none; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; background: var(--c-block); border-right: 1px solid var(--c-line); padding: 12px 12px 24px; }
  .pt-main { flex: 1; min-width: 0; max-width: none; padding: 22px 24px 40px; }
  .pt-tabs { display: none; }
  .pt-chat-btn { bottom: 24px; right: 24px; }
  .pt-chat { bottom: 92px; right: 24px; }
  .pt-two { grid-template-columns: 1fr 1fr; align-items: start; }
  .pt-page-title h1 { font-size: 24px; }
  .pt-bare h1 { font-size: 24px; }
  .pt-side .pt-menu-row { min-height: 46px; }
  .pt-more-page { display: none; }
}
@media (max-width: 900px) {
  .pt-orders { display: none; }
  .pt-order-card { display: block; padding: 12px 0; border-top: 1px solid var(--c-line2); }
  .pt-order-card:first-child { border-top: 0; }
  .pt-kv { grid-template-columns: 110px 1fr; }
}
@media (max-width: 380px) {
  .pt-main { padding-left: 10px; padding-right: 10px; }
  .pt-kv { grid-template-columns: 1fr; }
}

/* ---------- ПРМ-082: пользователи организации ---------- */
.pt-add { padding: 0; margin-bottom: 12px; }
.pt-add > summary, .pt-edit > summary { list-style: none; cursor: pointer; }
.pt-add > summary::-webkit-details-marker, .pt-edit > summary::-webkit-details-marker { display: none; }
.pt-add > summary { margin: 12px; width: calc(100% - 24px); }
.pt-addform { display: flex; flex-direction: column; padding: 0 16px 16px; }
.pt-edit .pt-addform { padding: 12px 0 0; }
.pt-edit[open] { flex-basis: 100%; }
.pt-perms { display: grid; gap: 2px; margin-top: 4px; }
.pt-perm { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 500; cursor: pointer; }
.pt-perm input { flex: none; width: 22px; height: 22px; accent-color: var(--c-green); }
.pt-member { margin-bottom: 12px; }
.pt-member + .pt-member { margin-top: 0; }
.pt-perm-line { margin: 8px 0 10px; color: var(--c-text2); font-size: 13px; line-height: 1.45; }
.pt-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--c-line3); color: var(--c-text2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pt-chip-ok { background: var(--c-gtint); border-color: var(--c-gtint); color: var(--c-gink); }
.pt-chip-stop { background: var(--c-stint); border-color: var(--c-stint); color: var(--c-stop); }
.pt-linkcard { margin-bottom: 12px; border-color: var(--c-green); }
.pt-copy { display: flex; gap: 8px; align-items: stretch; }
.pt-copy input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--c-line3); border-radius: 12px; background: var(--c-block); color: var(--c-text); padding: 0 12px; font-size: 13px; }

/* ---------- ПРМ-082, часть 9: кнопка «назад» на страницах без шапки ---------- */
.pt-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 2px; margin: 0 0 4px -2px; background: none; border: 0;
  color: var(--c-text2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; border-radius: 10px; }
.pt-back:hover { color: var(--c-text); text-decoration: none; }
.pt-back:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }

/* ---------- ПРМ-083: документы и статусы ---------- */
.pt-chip-warn { background: var(--c-atint); border-color: var(--c-aline); color: var(--c-aink); }
.pt-doc { margin-bottom: 12px; }
.pt-dropzone { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 10px; border: 1.5px dashed var(--c-line3); border-radius: 12px;
  color: var(--c-text2); font-size: 14px; cursor: pointer; word-break: break-word; }
.pt-dropzone.over, .pt-dropzone:hover { border-color: var(--c-green); color: var(--c-text); }
.pt-dropzone:focus-within { outline: 2px solid var(--c-green); outline-offset: 2px; }

.pt-page-title a { white-space: nowrap; }

/* ПРМ-089 (К3-1): значок статуса и колокольчик в шапке, красная плашка, плитки, уведомления */
.pt-fin-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 32px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap; color: var(--c-gink); border: 1px solid transparent; }
.pt-fin-badge:hover { text-decoration: none; }
.pt-fin-badge-overdue { color: var(--c-red); background: var(--c-rtint); border-color: var(--c-rline); }
.pt-fin-badge-stop { color: var(--c-stop); background: var(--c-stint); border-color: var(--c-line3); }
.pt-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--c-text); text-decoration: none; flex: none; }
.pt-bell:hover { text-decoration: none; }
.pt-bell-count { position: absolute; top: 3px; right: 0; min-width: 18px; height: 18px; font-size: 11px; padding: 0 4px; }
.pt-fin-alert { border: 1px solid; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.pt-fin-alert-overdue { background: var(--c-rtint); border-color: var(--c-rline); color: var(--c-red); }
.pt-fin-alert-stop { background: var(--c-stint); border-color: var(--c-line3); color: var(--c-stop); }
.pt-fin-alert-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pt-fin-alert p { margin: 6px 0 10px; color: var(--c-text); font-size: 13.5px; }
.pt-fin-explain summary { list-style: none; cursor: pointer; }
.pt-fin-explain summary::-webkit-details-marker { display: none; }
.pt-fin-explain-body { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text); font-size: 13px; max-width: 520px; }
.pt-fin-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 6px; }
.pt-fin-tile { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-fin-tile-main { grid-column: 1 / -1; background: var(--c-gtint); border-color: var(--c-gtint); }
.pt-fin-tile-main .pt-fin-tile-sum { font-size: 26px; }
.pt-fin-tile-label { font-size: 12.5px; color: var(--c-muted); }
.pt-fin-tile-sum { font-size: 20px; color: var(--c-text); overflow-wrap: anywhere; }
.pt-fin-tile-red .pt-fin-tile-sum { color: var(--c-red); }
.pt-fin-tile-note { font-size: 12px; color: var(--c-muted); }
.pt-fin-data { margin: 4px 0 14px; }
.pt-fin-stale { color: var(--c-aink); }
@media (min-width: 900px) { .pt-fin-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pt-fin-tile-main { grid-column: auto; } }
@media (max-width: 520px) { .pt-top .pt-logo > span:not(.pt-logo-mark) { display: none; } .pt-fin-badge { padding: 4px 8px; font-size: 12px; } .pt-fin-badge-overdue span, .pt-fin-badge-stop span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; } }
.pt-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pt-note-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 12px 14px; }
.pt-note-item p { margin: 6px 0 10px; font-size: 13.5px; }
.pt-note-unread { border-color: var(--c-green); }
.pt-note-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pt-note-head .pt-muted { margin-left: auto; }
.pt-note-new { background: var(--c-gtint); color: var(--c-gink); border-radius: 8px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.pt-notes-tools { margin: 0 0 10px; }
