/* ============================================================
   МОЙ ПРОФИЛЬ (portal-v415)
   Свой слой, подключается последним. Классы с приставкой pf-,
   поэтому старые правила профиля из styles/ui сюда не дотягиваются.
   ============================================================ */

.pf-page {
  --pf-work-bg: #e4f6ef; --pf-work-ink: #0f7a5f;
  --pf-off-bg: #fdf3e0; --pf-off-ink: #8a5d0a;
  --pf-vac-bg: #f0eafe; --pf-vac-ink: #6541b8;
  --pf-sick-bg: #fdeaed; --pf-sick-ink: #b02a3d;
  --pf-study-bg: #e8f2fc; --pf-study-ink: #1a6fb5;
  --pf-duty: #d99a00;
  --pf-soft: var(--surface-card-2, #f8fafc);
  display: grid;
  gap: 16px;
  max-width: 1320px;
}
[data-theme=dark] .pf-page {
  --pf-work-bg: rgba(76, 191, 156, .16); --pf-work-ink: #74d6b6;
  --pf-off-bg: rgba(216, 163, 63, .16); --pf-off-ink: #e9bd66;
  --pf-vac-bg: rgba(139, 92, 246, .2); --pf-vac-ink: #c6b4ff;
  --pf-sick-bg: rgba(224, 116, 138, .16); --pf-sick-ink: #f193a8;
  --pf-study-bg: rgba(106, 176, 238, .16); --pf-study-ink: #93c7f6;
  --pf-duty: #f0c04a;
}

.pf-ico { display: inline-flex; flex: none; width: 16px; height: 16px; }
.pf-ico svg, .pf-channel-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf-muted { color: var(--muted); font-size: 12px; font-weight: 500; }
.pf-page .card { margin: 0; }

/* ---- Шапка ---- */
.pf-head { display: flex; align-items: center; gap: 20px; padding: 20px 22px; }
.pf-head .profile-avatar { width: 92px; height: 92px; margin: 0; flex: none; border-radius: 50%; overflow: hidden; }
.pf-head .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-head .profile-avatar span { width: 100%; height: 100%; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.pf-head-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.pf-head-main h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.pf-head-role { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-soft, var(--muted)); font-size: 13px; font-weight: 600; }
.pf-badge { padding: 2px 8px; border-radius: var(--r-pill, 999px); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.pf-head-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pf-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill, 999px); background: var(--pf-soft); color: var(--text-soft, var(--muted)); font-size: 12px; font-weight: 700; }
.pf-status.is-live { background: var(--pf-work-bg); color: var(--pf-work-ink); }
.pf-status.is-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pfPulse 1.8s ease-in-out infinite; }
.pf-status.is-vac { background: var(--pf-vac-bg); color: var(--pf-vac-ink); }
.pf-status.is-idle { color: var(--muted); }
@keyframes pfPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pf-head-contacts { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12px; }
.pf-head-contacts span { display: inline-flex; align-items: center; gap: 6px; }
.pf-head-contacts .pf-ico { width: 14px; height: 14px; }
.pf-edit { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--r-control, 10px); border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; font-size: 12px; }
.pf-edit:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Вкладки ---- */
.pf-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-control, 10px); border: 1px solid var(--line); background: var(--panel); color: var(--text-soft, var(--muted)); font-weight: 700; font-size: 13px; }
.pf-tabs button:hover { color: var(--text); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.pf-tabs button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(127, 20, 56, .2); }
.pf-tabs em { font-style: normal; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #e24a5b; color: #fff; font-size: 11px; text-align: center; }
.pf-tabs button.is-on em { background: #fff; color: var(--brand); }

/* ---- Карточки ---- */
.pf-card { padding: 16px 18px; }
.pf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pf-card-head h2 { margin: 0; font-size: 15px; }
.pf-count { min-width: 22px; padding: 2px 8px; border-radius: 999px; background: var(--surface-selected); color: var(--brand); font-size: 11px; font-weight: 800; text-align: center; }
.pf-empty { margin: 4px 0; color: var(--muted); font-size: 12.5px; }
.pf-done { margin: 2px 0; display: flex; align-items: center; gap: 8px; color: var(--pf-work-ink); font-weight: 700; font-size: 13px; }

/* ---- «Мой график» ---- */
.pf-overview { display: grid; gap: 16px; }
.pf-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pf-fact { position: relative; display: grid; gap: 3px; padding: 13px 15px 13px 18px; border-radius: var(--r-card, 14px); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.pf-fact::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pf-work-ink); }
.pf-fact.is-off::before { background: var(--pf-off-ink); }
.pf-fact.is-vac::before { background: var(--pf-vac-ink); }
.pf-fact.is-duty::before { background: var(--pf-duty); }
.pf-fact.is-live { background: var(--pf-work-bg); border-color: transparent; }
.pf-fact span { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.pf-fact b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.pf-fact small { color: var(--text-soft, var(--muted)); font-size: 12px; }
.pf-overview-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }

.pf-cal-nav { display: flex; align-items: center; gap: 6px; }
.pf-cal-nav button { min-width: 34px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 800; font-size: 15px; }
.pf-cal-nav button:hover { border-color: var(--brand); color: var(--brand); }
.pf-cal-nav .pf-cal-today { font-size: 12px; }
.pf-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pf-cal-wd { text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; padding-bottom: 2px; }
.pf-cal-cell { position: relative; height: 38px; border-radius: 9px; font-size: 12.5px; font-weight: 800; color: var(--muted); background: transparent; border: 1px dashed var(--line); }
.pf-cal-cell.is-blank { border: 0; }
.pf-cal-cell.is-work { background: var(--pf-work-bg); color: var(--pf-work-ink); border: 0; }
.pf-cal-cell.is-off { background: var(--pf-off-bg); color: var(--pf-off-ink); border: 0; }
.pf-cal-cell.is-vac { background: var(--pf-vac-bg); color: var(--pf-vac-ink); border: 0; }
.pf-cal-cell.is-sick { background: var(--pf-sick-bg); color: var(--pf-sick-ink); border: 0; }
.pf-cal-cell.is-study { background: var(--pf-study-bg); color: var(--pf-study-ink); border: 0; }
.pf-cal-cell:hover { filter: brightness(.96); }
.pf-cal-cell.is-today { outline: 2px solid var(--brand); outline-offset: -2px; }
.pf-cal-cell.is-selected { box-shadow: 0 0 0 2px var(--text) inset; }
.pf-cal-cell.is-today.is-selected { box-shadow: 0 0 0 4px var(--panel) inset; }
.pf-cal-duty { position: absolute; top: 4px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--pf-duty); }
.pf-cal-detail { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--pf-soft); font-size: 12.5px; color: var(--text); }
.pf-cal-sum { margin: 10px 0 0; font-size: 12.5px; color: var(--text-soft, var(--muted)); }
.pf-cal-sum b { color: var(--text); }
.pf-cal-sum .pf-muted { font-size: inherit; font-weight: inherit; }
.pf-row-main small .is-warn { color: var(--state-warn, #96660d); }
.pf-row-main small .is-crit { color: var(--state-crit, #b02a3d); }
.pf-cal-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 11.5px; }
.pf-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pf-cal-legend i { width: 12px; height: 12px; border-radius: 4px; }
.pf-cal-legend i.is-work { background: var(--pf-work-bg); box-shadow: inset 0 0 0 1px var(--pf-work-ink); }
.pf-cal-legend i.is-off { background: var(--pf-off-bg); box-shadow: inset 0 0 0 1px var(--pf-off-ink); }
.pf-cal-legend i.is-vac { background: var(--pf-vac-bg); box-shadow: inset 0 0 0 1px var(--pf-vac-ink); }
.pf-cal-legend i.is-sick { background: var(--pf-sick-bg); box-shadow: inset 0 0 0 1px var(--pf-sick-ink); }
.pf-cal-legend i.is-study { background: var(--pf-study-bg); box-shadow: inset 0 0 0 1px var(--pf-study-ink); }
.pf-cal-legend i.is-duty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pf-duty); }

.pf-ahead { list-style: none; margin: 0; padding: 0; display: grid; }
.pf-ahead li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft, var(--line)); }
.pf-ahead li:first-child { border-top: 0; padding-top: 2px; }
.pf-ahead-when { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: var(--pf-soft); color: var(--muted); }
.pf-ahead-when.is-work { background: var(--pf-work-bg); color: var(--pf-work-ink); }
.pf-ahead-when.is-off { background: var(--pf-off-bg); color: var(--pf-off-ink); }
.pf-ahead-when.is-vac { background: var(--pf-vac-bg); color: var(--pf-vac-ink); }
.pf-ahead-when.is-sick { background: var(--pf-sick-bg); color: var(--pf-sick-ink); }
.pf-ahead-when.is-study { background: var(--pf-study-bg); color: var(--pf-study-ink); }
.pf-ahead-when.is-duty { background: color-mix(in srgb, var(--pf-duty) 22%, transparent); color: color-mix(in srgb, var(--pf-duty) 70%, var(--text)); }
.pf-ahead-what { display: grid; gap: 2px; min-width: 0; }
.pf-ahead-what b { font-size: 13px; }
.pf-ahead-what small { color: var(--muted); font-size: 11.5px; }

/* ---- «Мои дела» ---- */
.pf-work { display: grid; gap: 16px; max-width: 980px; }
.pf-rows { display: grid; }
.pf-row { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 6px; border-top: 1px solid var(--line-soft, var(--line)); text-align: left; color: var(--text); border-radius: 0; background: transparent; }
.pf-rows .pf-row:first-child { border-top: 0; }
button.pf-row:hover { background: var(--surface-hover); }
.pf-row > .pf-ico { width: 18px; height: 18px; color: var(--brand); }
.pf-row-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pf-row-main b { font-size: 13px; overflow-wrap: anywhere; }
.pf-row-main small { color: var(--muted); font-size: 11.5px; }
.pf-row-side { flex: none; color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.pf-row-side.is-warn, .pf-row-main small.is-warn { color: var(--state-warn, #96660d); }
.pf-row-side.is-crit, .pf-row-main small.is-crit { color: var(--state-crit, #b02a3d); }
.pf-progress { flex: none; width: 150px; display: grid; gap: 5px; text-align: right; }
.pf-progress small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.pf-progress i { display: block; height: 6px; border-radius: 3px; background: var(--pf-soft); overflow: hidden; }
.pf-progress u { display: block; height: 100%; border-radius: 3px; background: var(--pf-work-ink); text-decoration: none; }
.pf-history summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pf-history summary::-webkit-details-marker { display: none; }
.pf-history summary::after { content: "›"; margin-left: auto; font-size: 18px; color: var(--muted); transition: transform .15s; }
.pf-history[open] summary::after { transform: rotate(90deg); }
.pf-history summary > .pf-ico { width: 18px; height: 18px; color: var(--muted); }
.pf-history summary span { display: grid; gap: 2px; }
.pf-history summary small { color: var(--muted); font-size: 12px; }
.pf-history[open] .pf-rows { margin-top: 10px; }
.pf-totals { margin: 0; padding: 0 4px; color: var(--muted); font-size: 12.5px; }
.pf-totals b { color: var(--text-soft, var(--text)); }

/* ---- «Настройки» ---- */
.pf-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pf-settings > .pf-channels { grid-row: span 2; }
.pf-lead { margin: -4px 0 8px; color: var(--muted); font-size: 12.5px; }
.pf-channel { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line-soft, var(--line)); }
.pf-channel-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; padding: 10px; background: var(--pf-soft); color: var(--muted); }
.pf-channel.is-on .pf-channel-ico.is-portal { background: var(--surface-selected); color: var(--brand); }
.pf-channel.is-on .pf-channel-ico.is-max { background: #ece6ff; color: #5b3fd6; }
.pf-channel.is-on .pf-channel-ico.is-telegram { background: #e3f1fc; color: #1f8ad8; }
[data-theme=dark] .pf-channel.is-on .pf-channel-ico.is-max { background: rgba(124, 92, 246, .22); color: #bda9ff; }
[data-theme=dark] .pf-channel.is-on .pf-channel-ico.is-telegram { background: rgba(56, 160, 232, .2); color: #8ccaf6; }
.pf-channel-body { display: grid; gap: 2px; min-width: 0; }
.pf-channel-body > b { font-size: 14px; }
.pf-channel-body > small { color: var(--muted); font-size: 12px; }
.pf-channel-extra { display: grid; gap: 8px; justify-items: start; margin-top: 8px; }
.pf-channel-extra:empty { display: none; }
.pf-note { margin: 0; font-size: 12px; color: var(--muted); }
.pf-note.is-ok { color: var(--pf-work-ink); font-weight: 700; }
.pf-note.is-warn { color: var(--state-warn, #96660d); font-weight: 600; }
.pf-devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.pf-devices li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--pf-soft); }
.pf-devices li > .pf-ico { width: 18px; height: 18px; color: var(--muted); }
.pf-devices li > span { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pf-devices b { font-size: 12.5px; }
.pf-devices small { color: var(--muted); font-size: 11px; }
.pf-tag { justify-self: start; margin-top: 2px; padding: 1px 7px; border-radius: 999px; background: var(--pf-work-bg); color: var(--pf-work-ink); font-style: normal; font-size: 10.5px; font-weight: 800; }
.pf-small-btn { padding: 8px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; font-size: 12px; white-space: nowrap; }
.pf-small-btn:hover { border-color: var(--brand); color: var(--brand); }
.pf-small-btn.is-accent { border-color: var(--brand); color: var(--brand); }
.pf-small-btn.is-accent:hover { background: var(--brand); color: #fff; }
.pf-link-btn { padding: 4px 2px; color: var(--brand); font-weight: 700; font-size: 12px; }
[data-theme=dark] .pf-link-btn, [data-theme=dark] .pf-small-btn.is-accent { color: #f09bba; border-color: #a01c4c; }
.pf-link-btn:hover { text-decoration: underline; }
.pf-switch { flex: none; position: relative; width: 40px; height: 23px; border-radius: 12px; background: #c9d2de; transition: background .15s; }
.pf-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .15s; }
.pf-switch.is-on { background: #1f9a74; }
.pf-switch.is-on::after { left: 20px; }
[data-theme=dark] .pf-switch { background: #3a4a61; }
[data-theme=dark] .pf-switch.is-on { background: #2fae86; }
.pf-set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft, var(--line)); }
.pf-card-head + .pf-set-row { border-top: 0; padding-top: 0; }
.pf-set-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.pf-set-row b { font-size: 13px; }
.pf-set-row small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.pf-time { width: 110px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; background: var(--panel); color: var(--text); font-weight: 700; }
.pf-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--line-soft, var(--line)); }
.pf-card-foot small { color: var(--muted); font-size: 11.5px; }
.pf-cat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 24px; }
.pf-cat-group h3 { margin: 6px 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pf-cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; }
.pf-cat > span { display: grid; gap: 1px; min-width: 0; }
.pf-cat b { font-size: 13px; font-weight: 600; }
.pf-cat small { color: var(--muted); font-size: 11px; }
.pf-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--pf-soft); border: 1px solid var(--line); }
.pf-seg button { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 12px; }
.pf-seg button.is-on { background: var(--panel); color: var(--text); box-shadow: 0 1px 4px rgba(20, 35, 60, .12); }
.pf-set-block { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft, var(--line)); }
.pf-set-block > b { font-size: 13px; }
.pf-layouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-layout { display: grid; gap: 3px; justify-items: start; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-align: left; color: var(--text); }
.pf-layout b { font-size: 13px; }
.pf-layout small { color: var(--muted); font-size: 11.5px; }
.pf-layout.is-on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.pf-layout-pic { display: grid; gap: 4px; width: 100%; height: 58px; margin-bottom: 6px; padding: 6px; border-radius: 8px; background: var(--pf-soft); }
.pf-layout-pic i { border-radius: 4px; background: color-mix(in srgb, var(--brand) 26%, transparent); }
.pf-layout-pic.is-google { grid-template-rows: 1fr 1.6fr .8fr 1fr; }
.pf-layout-pic.is-google i:nth-child(2) { background: color-mix(in srgb, #1a6fb5 30%, transparent); width: 80%; }
.pf-layout-pic.is-google i:nth-child(4) { width: 60%; }
.pf-layout-pic.is-rows { grid-template-columns: repeat(4, 1fr); }
.pf-layout-pic.is-rows i:nth-child(1) { height: 60%; }
.pf-layout-pic.is-rows i:nth-child(2) { height: 90%; align-self: end; background: color-mix(in srgb, #1a6fb5 30%, transparent); }
.pf-layout-pic.is-rows i:nth-child(3) { height: 45%; align-self: center; }
.pf-layout-pic.is-rows i:nth-child(4) { height: 70%; background: color-mix(in srgb, #0f7a5f 30%, transparent); }

/* ---- Окна ---- */
.pf-dialog { padding: 22px; display: grid; gap: 12px; }
.pf-dialog h2 { margin: 0; font-size: 18px; }
.pf-dialog label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.pf-dialog input { border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: var(--panel); color: var(--text); font: inherit; }
.pf-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; }
.pf-link-open { justify-self: start; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 11px 18px; }
.pf-link-code { margin: 0; font-size: 13px; }
.pf-link-code b { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 8px; background: var(--surface-selected); color: var(--brand); font-size: 17px; letter-spacing: .08em; }
[data-theme=dark] .pf-link-code b { color: #f09bba; }
.pf-form-error { margin: 0; color: var(--state-crit, #b02a3d); font-size: 12.5px; font-weight: 700; }

/* ---- Узкие экраны ---- */
@media (max-width: 1100px) {
  .pf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-settings { grid-template-columns: 1fr; }
  .pf-settings > .pf-channels { grid-row: auto; }
}
@media (max-width: 900px) {
  .pf-overview-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pf-page { gap: 12px; }
  .pf-head { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px; }
  .pf-head .profile-avatar { width: 60px; height: 60px; grid-row: 1 / span 2; }
  .pf-head .profile-avatar span { font-size: 20px; }
  .pf-head-main { display: contents; }
  .pf-head-main h2 { grid-column: 2; align-self: end; font-size: 17px; padding-right: 40px; }
  .pf-head-role { grid-column: 2; align-self: start; font-size: 12px; }
  .pf-head-chips, .pf-head-contacts { grid-column: 1 / -1; }
  .pf-head-chips { margin-top: 8px; }
  .pf-edit { position: absolute; top: 12px; right: 12px; padding: 8px; }
  .pf-edit span { display: none; }
  .pf-head-contacts { flex-direction: column; gap: 4px; }
  .pf-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pf-tabs button { justify-content: center; padding: 9px 6px; font-size: 12px; gap: 6px; }
  .pf-tabs button .pf-ico { display: none; }
  .pf-facts { gap: 8px; }
  .pf-fact { padding: 11px 12px 11px 15px; }
  .pf-fact b { font-size: 14px; }
  .pf-card { padding: 14px; }
  .pf-cal { gap: 4px; }
  .pf-cal-cell { height: 36px; font-size: 12px; }
  .pf-ahead li { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .pf-row { align-items: flex-start; }
  .pf-issued { flex-wrap: wrap; }
  .pf-issued .pf-progress { width: 100%; text-align: left; padding-left: 30px; }
  .pf-cat-grid { grid-template-columns: 1fr; }
  .pf-layouts { grid-template-columns: 1fr 1fr; }
  .pf-set-row { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .pf-facts { grid-template-columns: 1fr; }
}
