/* v4 refresh — projects screens. Tokens only (tokens/*.css): no bare hex, weights 400/500. */

/* ══ PROJECTS LIST (design p05; docs/ui-refresh/01-home-workspace.md §2) ════ */
.pj4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 31px; align-items: start; }
.pj4.has-panel { grid-template-columns: minmax(0, 1fr) 350px; }
.pj4-main { min-width: 0; }

.pj4-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pj4-head-acts { display: flex; gap: 10px; }

/* The live stages as one proportional bar; each label sits under its segment's left edge. */
.pj4-bar { display: flex; gap: 4px; margin-top: 16px; }
.pj4-bar-seg { flex: 1 1 0; min-width: max-content; display: flex; flex-direction: column; gap: 8px; }
.pj4-bar-fill { display: block; height: 6px; border-radius: 3px; }
.pj4-bar-fill.prog { background: var(--brand-blue); }
.pj4-bar-fill.review { background: var(--time-review); }
.pj4-bar-fill.ready { background: var(--anchor); }
.pj4-bar-fill.part { background: var(--time-practice); }
.pj4-bar-seg:nth-child(2) .pj4-bar-fill { animation-delay: 80ms; }
.pj4-bar-seg:nth-child(3) .pj4-bar-fill { animation-delay: 160ms; }
.pj4-bar-seg:nth-child(4) .pj4-bar-fill { animation-delay: 240ms; }
.pj4-bar-l { font-size: var(--text-meta-r); color: var(--ink-3); white-space: nowrap; padding-right: 10px; }
.pj4-bar-n { font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--ink); margin-right: 3px; font-variant-numeric: tabular-nums; }

/* One row of controls: segmented, Group, Filter, then the search filling the rest. */
.pj4-controls { display: flex; align-items: center; gap: 10px; margin: 22px 0 18px; flex-wrap: wrap; }
.pj4-seg button { padding: 0 11px; }
.pj4-drop { font-weight: var(--weight-regular); gap: 8px; color: var(--ink); }
.pj4-drop svg { color: var(--ink-3); }
.pj4-drop.on { border-color: var(--link); color: var(--link); }
.pj4-search { flex: 1 1 120px; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--hair); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-3); cursor: text; }
.pj4-search:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px var(--halo); }
.pj4-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; min-height: 34px;
  font-family: var(--font-sans); font-size: var(--text-body); color: var(--ink); }
.pj4-search input:focus-visible { outline: none; }
.pj4-search input::placeholder { color: var(--ink-3); }

/* The table: a grid, not cards. Selected tints blue; late text turns orange. */
.pj4-row { display: grid; grid-template-columns: 70px minmax(0, 1.5fr) 128px minmax(0, 1.5fr) 44px 56px 24px; gap: 12px;
  align-items: center; min-height: 58px; padding: 0 10px; border-bottom: 1px solid var(--hair); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out); }
.pj4-row:not(.pj4-thead):hover { background: var(--row-hover); }
.pj4-row.sel, .pj4-row.sel:hover { background: var(--blue-tint); border-radius: var(--radius-6); border-bottom-color: transparent; }
.pj4-thead { min-height: 34px; cursor: default; border-bottom: 1px solid var(--rule-head);
  font-size: var(--text-table-head); letter-spacing: var(--tracking-table); text-transform: uppercase; color: var(--ink-3); }
.pj4-thead .r, .pj4-due { text-align: right; }
.pj4-no { font-size: var(--text-row); font-weight: var(--weight-medium); color: var(--ink); font-variant-numeric: tabular-nums; }
.pj4-proj { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pj4-client { display: flex; align-items: center; gap: 6px; font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj4-desc { font-size: var(--text-label); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj4-stage-cell { min-width: 0; }
.pj4-stage { height: 24px; padding: 0 10px; gap: 4px; display: inline-flex; align-items: center; max-width: 100%;
  font-family: var(--font-sans); cursor: default; }
button.pj4-stage { cursor: pointer; }
button.pj4-stage svg { opacity: 0.7; flex: none; }
button.pj4-stage:hover { filter: brightness(0.97); }
.pj4-next { font-size: var(--text-meta-r); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pj4-lead { display: inline-flex; padding: 0; border: 0; background: none; border-radius: 50%; }
button.pj4-lead { cursor: pointer; }
.pj4-av { width: 24px; height: 24px; font-size: 9.5px; }
.pj4-none { color: var(--ink-3); font-size: var(--text-meta-r); }
.pj4-due { font-size: var(--text-body); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pj4-next.late-text, .pj4-due.late-text { color: var(--late); }
.pj4-group { display: flex; align-items: baseline; gap: 8px; padding: 18px 10px 8px; border-bottom: 1px solid var(--hair);
  font-size: var(--text-meta-r); font-weight: var(--weight-medium); color: var(--ink-2); }
.pj4-group-n { color: var(--ink-3); font-weight: var(--weight-regular); font-family: var(--font-technical); }
.pj4-table .empty-state { margin-top: 14px; }
.pj4-foot { margin: 16px 0 0; font-size: var(--text-meta-r); color: var(--ink-3); }
.pj4-foot kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border: 1px solid var(--hair); border-radius: 4px; background: var(--surface); font-family: var(--font-sans); font-size: 11px; color: var(--ink-2); }

/* The row's ⋯ (§12): quiet until the row is hovered, focused or selected. */
.pj4-dots { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 28px; padding: 0; border: 0;
  border-radius: var(--radius-6); background: none; color: var(--ink-3); cursor: pointer; opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out); }
.pj4-row:hover .pj4-dots, .pj4-row.sel .pj4-dots, .pj4-dots:focus-visible { opacity: 1; }
.pj4-dots:hover { color: var(--link); background: var(--surface); }
@media (hover: none) { .pj4-dots { opacity: 1; } }

/* Group and Filter menus. */
.pj4-menu { position: fixed; z-index: 1000; max-height: min(70vh, 520px); overflow-y: auto; min-width: 220px; }
.pj4-menu button { justify-content: space-between; gap: 16px; }
.pj4-menu button.on { font-weight: var(--weight-medium); }
.pj4-menu button.on::after { content: '✓'; color: var(--link); }
.pj4-menu-h { padding: 6px 12px 2px; font-size: var(--text-label); color: var(--ink-3); }

/* The preview: the selected project, on the Ground colour, full height on the right. */
.pj4-panel { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  margin: 0 -56px -130px 0; padding: 4px 26px 40px; background: var(--rail-bg); border-left: 1px solid var(--hair); }   /* starts under the search/bell row (23/10) */
.pj4-panel[hidden] { display: none; }
.pj4-pv { animation: v4-fade var(--dur-fast) var(--ease-out) both; }
.pj4-pv-top { display: flex; align-items: center; justify-content: space-between; }
.pj4-pv-no { font-size: var(--text-meta-r); font-weight: var(--weight-medium); color: var(--anchor); }
.pj4-pv-x { width: 30px; min-height: 30px; border-color: transparent; background: transparent; color: var(--ink-3); margin-right: -6px; }
.pj4-pv-client { margin: 4px 0 0; font-size: calc(var(--text-section) + 2px); font-weight: var(--weight-medium); letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.pj4-pv-sub { margin-top: 6px; font-size: var(--text-meta-r); color: var(--ink-3); }
.pj4-pv-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.pj4-pv-alert { margin-bottom: 18px; }
.pj4-kv { margin: 0; border-bottom: 1px solid var(--hair); }
.pj4-kv > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-top: 1px solid var(--hair); }
.pj4-kv dt { font-size: var(--text-meta-r); color: var(--ink-3); }
.pj4-kv dd { margin: 0; font-size: var(--text-body); color: var(--ink); line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.pj4-kv dd.pj4-wait { color: var(--ink-3); }

@media (min-width: 761px) and (max-width: 1180px) {
  .pj4-panel { margin: 0 -30px -112px 0; padding-top: 4px; }
}
@media (max-width: 1180px) and (min-width: 761px) {
  .pj4.has-panel { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
}
@media (max-width: 900px) {
  .pj4-row { grid-template-columns: 60px minmax(0, 1.5fr) 128px minmax(0, 1.3fr) 56px 24px; }
  .pj4-row > :nth-child(5) { display: none; }
}
/* A phone: two lines a row — number, client and stage; then what is next and when. */
@media (max-width: 760px) {
  .pj4-head-acts #meeting { display: none; }
  .pj4-bar-l { font-size: var(--text-label); }
  .pj4-seg { width: 100%; overflow-x: auto; }
  .pj4-seg button { flex: 1 0 auto; min-height: 36px; }
  .pj4-drop, .pj4-search { min-height: 44px; }
  .pj4-search { flex-basis: 100%; }
  .pj4-thead { display: none !important; }
  .pj4-row { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "no proj stage" "no next due";
    gap: 4px 10px; padding: 10px 6px; min-height: 64px; }
  .pj4-row > :nth-child(5), .pj4-dots { display: none; }
  .pj4-no { grid-area: no; align-self: start; padding-top: 1px; }
  .pj4-proj { grid-area: proj; }
  .pj4-stage-cell { grid-area: stage; justify-self: end; }
  .pj4-next { grid-area: next; color: var(--ink-2); }
  .pj4-due { grid-area: due; font-size: var(--text-meta-r); }
  .pj4-foot .pj4-keys { display: none; }
}

/* ══ THE PROJECT MENUS (p47–p48; 03-help-menus-dialogs.md §11–§13) ═════════ */
.pmenu { position: fixed; z-index: 100000; min-width: 0; max-width: calc(100vw - 16px); }
.pmenu button { gap: 10px; min-height: 33px; padding: 0 10px; }
.pmenu button.is-off { color: var(--ink-3); cursor: default; }
.pmenu button.is-off:hover { background: none; }
.pmenu button.is-now, .pmenu button.is-now:hover { background: var(--blue-tint); font-weight: var(--weight-medium); color: var(--ink); }
.pmenu button.is-end { color: var(--ink); }
.pmenu .pmenu-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmenu .pmenu-hint { flex: none; font-size: var(--text-label); font-weight: var(--weight-regular); color: var(--ink-3); }
.pmenu .pmenu-ico { flex: none; display: inline-flex; color: var(--ink-2); }
.pmenu .pmenu-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.pmenu .pmenu-dot.past { background: var(--hair-strong); }
.pmenu .pmenu-dot.now { background: var(--link); }
.pmenu .pmenu-dot.soft { background: var(--time-practice); }
.pmenu-h { padding: 4px 10px 6px; font-size: var(--text-label); color: var(--ink-3); }
.pmenu-f { margin: 6px -6px 0; padding: 8px 16px 4px; border-top: 1px solid var(--hair); font-size: var(--text-label); line-height: 1.4; color: var(--ink-3); }
.pmenu hr { margin: 6px 0; }

/* ══ THE PROJECT RECORD (design p07; 01-home-workspace.md §3) ═══════════════ */
.pd4 { display: flex; flex-direction: column; gap: 0; }
.pd4-crumbs { margin-bottom: 14px; }
.pd4-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--hair); }
.pd4-head-l { min-width: 0; flex: 1 1 420px; }
.pd4-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin: 0;
  font-size: calc(var(--text-page) + 4px); font-weight: var(--weight-medium); letter-spacing: var(--tracking-title); line-height: 1.15; color: var(--ink); }
.pd4-no { color: var(--anchor); font-variant-numeric: tabular-nums; }
.pd4-client { min-width: 0; }
.pd4-stage { height: 26px; padding: 0 10px; gap: 4px; display: inline-flex; align-items: center; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: var(--text-meta-r); letter-spacing: 0; align-self: center; }
button.pd4-stage { cursor: pointer; }
button.pd4-stage svg { opacity: 0.7; }
.pd4-meta { margin-top: 10px; font-size: var(--text-body); color: var(--ink-2); line-height: 1.45; }
.pd4-sep { color: var(--ink-3); }
.pd4-lead { padding: 0; border: 0; background: none; font: inherit; font-weight: var(--weight-medium); color: var(--ink); cursor: pointer; }
.pd4-lead:hover { color: var(--link); }
.pd4-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd4-more { color: var(--ink); font-size: 16px; letter-spacing: 0.04em; }
.pd4-link { padding: 0; border: 0; background: none; font: inherit; font-size: inherit; color: var(--link); cursor: pointer; }
.pd4-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The four figures: a ruled strip with no inner borders (p07). */
.pd4-figs { border-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 0 18px; border-bottom: 1px solid var(--hair); }
.pd4-figs > .fig { border-left: 0; padding: 14px 16px 0 0; }
.pd4-figs .fig-value { font-variant-numeric: tabular-nums; }
.pd4-figs .fig-value.pd4-muted { color: var(--ink-3); }
.pd4-figs .fig-note { font-size: var(--text-label); }
.pd4-fig[role="button"] { cursor: pointer; }
.pd4-fig[role="button"]:hover .fig-value { color: var(--link); }
.pd4-figs .secret-dots { letter-spacing: 0.1em; color: var(--ink-3); }

.pd4-alert { margin-top: 18px; align-items: center; }
.pd4-alert .alert-text { min-width: 0; }
.pd4-alert::before { margin-top: 0; align-self: flex-start; margin-top: 7px; }
.pd4-alert-acts { display: flex; gap: 8px; flex: none; }

.pd4-tabs { margin-top: 26px; }
.pd4-tabs .pd-tab .n { margin-left: 4px; color: var(--ink-3); font-weight: var(--weight-regular); }

/* Overview: two columns (~64/36). */
.pd4-ov { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); gap: 36px; align-items: start; padding-top: 24px; }
.pd4-ov[hidden] { display: none; }
.pd4-ov-l, .pd4-ov-r { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.pd4-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.pd4-sec-h h2, .pd4-sec-h h3 { margin: 0; font-size: var(--text-row); font-weight: var(--weight-medium); color: var(--ink); letter-spacing: -0.005em; }
.pd4-sec-h .pd4-link { font-size: var(--text-meta-r); }
.pd4-sec-meta { margin-left: 8px; font-size: var(--text-meta-r); font-weight: var(--weight-regular); color: var(--ink-3); }
.pd4-none { margin: 10px 0 0; font-size: var(--text-meta-r); color: var(--ink-3); }
.pd4-note-line { margin: 0; font-size: var(--text-meta-r); color: var(--ink-2); }
.pd4-note-line b { font-weight: var(--weight-medium); color: var(--ink); }

/* Instructions table. */
.pd4-it { display: grid; grid-template-columns: 40px minmax(0, 1fr) 120px 110px; gap: 12px; align-items: center; }
.pd4-it.money { grid-template-columns: 40px minmax(0, 1fr) 116px 76px 110px 84px; }
.pd4-it .r { text-align: right; }
.pd4-it-h { padding-bottom: 8px; border-bottom: 1px solid var(--rule-head);
  font-size: var(--text-table-head); letter-spacing: var(--tracking-table); text-transform: uppercase; color: var(--ink-3); }
.pd4-it-row { min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: var(--text-body); color: var(--ink); }
.pd4-it-row.is-edit { cursor: pointer; }
.pd4-it-row.is-edit:hover { background: var(--row-hover); }
.pd4-it-n { font-weight: var(--weight-medium); color: var(--anchor); font-variant-numeric: tabular-nums; }
.pd4-it-scope { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd4-it-scope > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd4-it-sub { font-size: var(--text-label); color: var(--ink-3); }
.pd4-it-of { color: var(--ink-3); }
.pd4-it-row .r { font-variant-numeric: tabular-nums; }
.pd4-it-empty { padding: 14px 0 16px; border-bottom: 1px solid var(--hair); }
.pd4-it-empty-t { font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--ink); }
.pd4-it-empty-s { margin-top: 3px; font-size: var(--text-meta-r); color: var(--ink-3); }

/* Golden thread: seven links, a 3px bar over each. */
.pd4-gt { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pd4-gt-seg { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0 0 4px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.pd4-gt-bar { display: block; height: 3px; border-radius: 2px; margin-bottom: 6px; background: var(--hair); }
.pd4-gt-bar.on { background: var(--brand-blue); }
.pd4-gt-bar.brk { background: var(--brand-orange); }
.pd4-gt-seg:nth-child(2) .pd4-gt-bar { animation-delay: 60ms; }
.pd4-gt-seg:nth-child(3) .pd4-gt-bar { animation-delay: 120ms; }
.pd4-gt-seg:nth-child(4) .pd4-gt-bar { animation-delay: 180ms; }
.pd4-gt-seg:nth-child(5) .pd4-gt-bar { animation-delay: 240ms; }
.pd4-gt-seg:nth-child(6) .pd4-gt-bar { animation-delay: 300ms; }
.pd4-gt-seg:nth-child(7) .pd4-gt-bar { animation-delay: 360ms; }
.pd4-gt-l { font-size: var(--text-meta-r); font-weight: var(--weight-medium); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd4-gt-v { font-size: var(--text-meta-r); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd4-gt-v.off { color: var(--ink-3); }
.pd4-gt-v.brk { color: var(--late); }
.pd4-gt-seg:hover .pd4-gt-l { color: var(--link); }

/* Activity. */
.pd4-acts-list { border-top: 1px solid var(--hair); }
.pd4-act { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 6px; align-items: center; min-height: 42px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.pd4-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hair-strong); }
.pd4-dot.ok { background: var(--status-ok-ui); }
.pd4-dot.attn { background: var(--brand-orange); }
.pd4-act-t { font-size: var(--text-body); color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.pd4-act-d { font-size: var(--text-meta-r); color: var(--ink-3); white-space: nowrap; }
.pd4-note-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pd4-note-form[hidden] { display: none; }
.pd4-note-form textarea { width: 100%; resize: vertical; font-family: var(--font-sans); }
.pd4-note-acts { display: flex; gap: 8px; }

/* Site visits. */
.pd4-visit { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 42px;
  padding: 8px 0; border: 0; border-bottom: 1px solid var(--hair); background: none; text-align: left; cursor: pointer; font: inherit; }
.pd4-visit:hover { background: var(--row-hover); }
.pd4-visit-d { font-size: var(--text-meta-r); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pd4-visit-t { font-size: var(--text-body); color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd4-visit-s { font-size: var(--text-label); color: var(--ink-3); }
.pd4-blue { color: var(--link); }

/* Next up. */
#pd-next { border-top: 1px solid var(--hair); }
.pd4-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.pd4-next-t { min-width: 0; }
.pd4-next-title { font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--ink); }
.pd4-next-sub { margin-top: 2px; font-size: var(--text-meta-r); color: var(--ink-2); }
.pd4-next-btn { flex: none; min-height: 32px; }

/* Details. */
.pd4-kv { margin: 0; border-top: 1px solid var(--hair); }
.pd4-kv > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.pd4-kv dt { font-size: var(--text-meta-r); color: var(--ink-3); padding-top: 1px; }
.pd4-kv dd { margin: 0; font-size: var(--text-body); color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.pd4-dd-sub { margin-top: 2px; font-size: var(--text-label); color: var(--ink-3); }
.pd4-dd-links { display: flex; gap: 14px; margin-top: 6px; font-size: var(--text-meta-r); }

/* Documents tab. */
.pd4-docs { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.pd4-docs[hidden] { display: none; }
.pd4-instr-filter { align-self: flex-start; }
.pd4-instr-filter .instr-chip.active { background: var(--surface); color: var(--ink); font-weight: var(--weight-medium); box-shadow: 0 1px 2px rgba(12, 17, 57, 0.10); }
.pd4-regs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px; }
.pd4-reg-h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--rule-head); }
.pd4-reg-h h3 { margin: 0; font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--ink); }
.pd4-changes { margin-top: 30px; }

@media (max-width: 1100px) {
  .pd4-ov { grid-template-columns: minmax(0, 1fr); }
  .pd4-ov-r { order: -1; }
}
@media (max-width: 760px) {
  .pd4-title { font-size: var(--text-page); }
  .pd4-acts { width: 100%; }
  .pd4-acts .btn { min-height: 44px; }
  .pd4-acts #act-time { flex: 1; }
  .pd4-alert { flex-wrap: wrap; }
  .pd4-gt { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
  .pd4-it, .pd4-it.money { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .pd4-it > :nth-child(n+4) { display: none; }
  .pd4-regs { grid-template-columns: minmax(0, 1fr); }
  .pd4-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
