.ds { margin: 0; background: var(--shell); }
.ds button svg[aria-hidden="true"], .ds a svg[aria-hidden="true"], .ds .task-row svg[aria-hidden="true"] { pointer-events: none; }
.ds [hidden] { display: none; }
.ds #entry-lifecycle-actions[hidden] { display: none; }
.ds .delegation-workflow__foot { position: sticky; z-index: 3; bottom: calc(-1 * var(--s-6)); margin: 0 calc(-1 * var(--s-6)) calc(-1 * var(--s-6)); padding-right: var(--s-6); padding-left: var(--s-6); }
.ds .delegation-workflow__foot > .save-state { min-width: 0; }
/* Форма контакта из слоя встаёт в саму панель над её кнопками: тело слоя
   прокручивается вместе с карточкой, и там панель закрыла бы поля. */
.ds .delegation-workflow__contact { flex: 1 1 100%; min-width: 0; padding: 4px 0 8px; }
.ds .delegation-workflow__contact:empty { display: none; }
.ds .delegation-handoff { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; padding-bottom: calc(var(--s-10) + var(--s-10)); }
.ds .delegation-handoff[hidden] { display: none; }
.ds #delegation-handoff-recipient-guidance[hidden] { display: none; }
.ds .delegation-handoff__head { display: flex; flex-direction: column; gap: var(--s-3); }
.ds .delegation-handoff__head > .btn { align-self: flex-start; }
.ds .delegation-handoff__states { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ds .delegation-handoff__state { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); align-items: baseline; padding: var(--s-3); border: 1px dashed var(--line-2); border-radius: var(--r-s); color: var(--ink-3); }
.ds .delegation-handoff__state--done { border-style: solid; border-color: var(--done-line); background: var(--done-soft); color: var(--ink); }
.ds .delegation-handoff__known, .ds .delegation-handoff__next, .ds .delegation-handoff__preview { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); }
.ds .delegation-handoff__facts, .ds .delegation-handoff__conditions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); margin: 0; }
.ds .delegation-handoff__facts > div { display: contents; }
.ds .delegation-handoff__facts dt, .ds .delegation-handoff__conditions dt { color: var(--ink-3); font-size: 13px; }
.ds .delegation-handoff__facts dd, .ds .delegation-handoff__conditions dd { margin: 0; overflow-wrap: anywhere; }
.ds .delegation-handoff__preview-body, .ds .delegation-handoff__instruction { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.ds .delegation-handoff__form-container { min-width: 0; }
.ds .delegation-handoff__form { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.ds .delegation-handoff__form .btn { align-self: flex-start; }
.ds .delegation-handoff__history { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ds .delegation-handoff__history-items { display: flex; flex-direction: column; gap: var(--s-3); }
.ds .delegation-handoff__history-item { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3) 0; }
.ds .delegation-handoff__foot { position: sticky; z-index: 3; bottom: calc(-1 * var(--s-6)); margin: 0 calc(-1 * var(--s-6)) calc(-1 * var(--s-6)); padding-right: var(--s-6); padding-left: var(--s-6); }
.ds button, .ds input, .ds textarea, .ds select { font: inherit; }
.ds button { cursor: pointer; }
.ds button:disabled { cursor: wait; }
.ds h1, .ds h2, .ds h3, .ds p, .ds blockquote { margin: 0; }
.ds label:not(.outcome__item):not(.seg__item):not(.check):not(.check--row):not(.checklist__check):not(.file-add__label), .ds fieldset { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; line-height: 18px; font-weight: 600; }
.ds label:not(.outcome__item):not(.seg__item):not(.check):not(.check--row):not(.checklist__check):not(.file-add__label)[hidden], .ds fieldset[hidden] { display: none; }
.ds form { min-width: 0; }
.ds fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m); }
.ds legend { font-weight: 600; padding: 0 4px; }
.ds input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(:where(.input__control)), .ds textarea, .ds select { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-control); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 400; }
.ds textarea { resize: vertical; }
.ds input[type=checkbox], .ds input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.ds label:has(> input[type=checkbox]), .ds label:has(> input[type=radio]) { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.ds .field-help, .ds .field__help { display: block; color: var(--ink-3); font-size: 13px; line-height: 18px; font-weight: 400; }
.ds .field-help[hidden], .ds .field__help[hidden] { display: none; }
.ds .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ds .people { display: flex; flex-direction: column; gap: 4px; }
.ds .people label { padding: 5px 8px; border-radius: var(--r-s); }
.ds .people label:has(:checked) { background: var(--accent-soft); }
.ds .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.ds .sidebar { overflow-y: auto; }
.ds .sidebar button.nav-item { width: 100%; border: 0; background: transparent; font: inherit; }
.ds .sidebar__search { width: 100%; cursor: pointer; font: inherit; }
.ds .sidebar__label { margin: 0; }
.ds .sidebar .filters { display: grid; gap: 2px; }
.ds .sidebar .nav-item { min-width: 0; }
.ds .sidebar .nav-item__label { overflow: hidden; text-overflow: ellipsis; }
.ds .nav-item[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ds .nav-item[aria-pressed=true] .nav-item__count { color: var(--accent); }
.ds .tabbar__item[aria-pressed=true] { color: var(--accent); }
.ds .page-head { flex: 0 0 auto; }
.ds .desk-capture { padding: 24px; }
.ds .desk-capture form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.ds dialog .desk-capture { padding: 24px 24px 0; }
.ds dialog .desk-capture .dialog__foot { margin: 0 -24px; padding: 16px 24px; }
.ds .capture-tools { display: flex; align-items: center; gap: 12px; margin-top: -8px; }
.ds .capture-tools__text { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds .capture-tools__mic { flex: 0 0 auto; width: var(--h-touch); height: var(--h-touch); padding: 0; }
.ds .capture-tools__mic[hidden] { display: none; }
.ds .capture-tools__mic.is-recording { color: var(--risk); background: var(--risk-soft); border-color: var(--risk-line); }
.ds .capture-where { min-width: 0; margin: 0; padding: 0; border: 0; }
.ds .capture-where[hidden], .ds .capture-where__project[hidden] { display: none; }
.ds .capture-where__legend { margin: 0 0 var(--s-2); padding: 0; }
.ds .capture-where__seg { display: flex; flex-wrap: wrap; width: max-content; max-width: 100%; }
.ds .capture-where__project { margin-top: var(--s-3); }
.ds .capture-hint { margin: 0; }
.ds .capture-hint:empty { display: none; }
.ds #status a { pointer-events: auto; color: inherit; font-weight: 600; text-decoration: underline; }
@media (max-width: 767.98px) {
  .ds .capture-tools__mic { width: calc(var(--h-touch) + 4px); height: calc(var(--h-touch) + 4px); }
}
html:not(.js) #filter-toolbar, html:not(.js) #quick-filters { display: none; }
html:not(.js) .pinned-note { display: none; }
.ds .desk-queue-hint { color: var(--ink-3); padding: 14px 20px; font-size: 12px; border-bottom: 1px solid var(--line); }
.ds .lens[hidden] { display: none; }
.ds #filter-off { color: var(--ink-2); }
.ds .desk-list-foot { padding: 20px; color: var(--ink-3); }
.ds .workspace__list { background: var(--surface); }
.ds #entries { min-width: 0; }
.ds #entries .task-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; background: var(--surface); color: var(--ink); cursor: pointer; }
.ds #entries .task-row[aria-current=true] { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.ds #entries .task-row:hover { background: var(--surface-2); }
.ds #entries .task-row--closed, .ds #entries .task-row--deferred { display: block; padding: 0; }
.ds #entries .task-row--closed .task-row__open, .ds #entries .task-row--deferred .task-row__open { grid-template-columns: 16px minmax(0, 1fr); padding: 12px 20px 13px; text-decoration: none; }
.ds #entries .task-row--closed .task-row__title, .ds #entries .task-row--deferred .task-row__title { grid-column: 2; min-width: 0; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.ds #entries .task-row--closed .task-row__source, .ds #entries .task-row--deferred .task-row__source { grid-column: 2 / -1; min-width: 0; margin: -2px 0 0; overflow-wrap: anywhere; color: var(--ink-3); font-size: 12px; line-height: 18px; }
.ds #entries .task-row--closed .task-row__meta, .ds #entries .task-row--deferred .task-row__meta { grid-column: 2 / -1; display: flex; justify-content: space-between; gap: 12px; }
.ds #entries .task-row--deferred .task-row__open { grid-template-columns: 16px minmax(0, 1fr) auto; }
.ds #entries .task-row--deferred .task-row__do-by { grid-column: 3; grid-row: 1; white-space: nowrap; }
.ds #entries :is(.task-row--closed, .task-row--deferred) :is(.task-row__due, .task-row__do-by) { font-size: 13px; line-height: 18px; }
.ds #entries .task-row--deferred .task-row__meta { flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 2px 12px; }
.ds #entries .task-row--deferred .task-row__meta > .task-row__due { margin-left: auto; }
.ds .closed-return { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: end; gap: 8px; grid-column: 2 / -1; padding: 4px 0 0; }
.ds .closed-return input[type=text] { flex: 1 1 180px; }
.ds .closed-return__status { flex-basis: 100%; color: var(--risk); font-size: 13px; }
.ds .closed-detail { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); }
.ds .closed-return-panel { width: min(380px, calc(100vw - 32px)); }
.ds .more-actions { min-width: 220px; }
.ds .closed-return-panel .sheet__handle { display: none; }
.ds .property-picker .sheet__handle { display: none; }
.ds .property-picker .popover__head .text-head { margin: 0; font-size: 15px; line-height: 20px; }
.ds .who-pick { width: 320px; }
.ds .who-pick__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ds .who-pick__list li[hidden], .ds .who-pick__list[hidden] { display: none; }
.ds .who-pick__body { flex: 1 1 auto; min-height: 0; }
.ds .who-pick__main { display: flex; flex-direction: column; min-height: 0; }
.ds .who-pick__main > li { flex: 0 0 auto; }
.ds .who-pick__sep { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.ds .who-pick__item { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 6px 8px; font: inherit; color: var(--ink); text-align: left; background: none; border: 0; border-radius: var(--r-s); cursor: pointer; }
.ds .who-pick__item:hover { background: var(--surface-2); }
.ds .who-pick__item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ds .who-pick__item:disabled { cursor: default; opacity: .6; }
.ds .who-pick__mark { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; font-size: 13px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-control); border-radius: 50%; }
.ds .who-pick__mark--none { border-style: dashed; }
.ds .who-pick__name { font-size: 14px; line-height: 20px; }
.ds .who-pick__hint { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ds .who-pick__state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 8px; font-size: 13px; color: var(--ink-2); }
.ds .who-pick__state .btn[hidden] { display: none; }
.ds .who-pick__confirm { display: grid; gap: 12px; padding: 4px 8px 8px; }
.ds .who-pick__confirm[hidden] { display: none; }
.ds .who-pick__question { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); }
.ds .who-pick__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ds .who-pick__acts .btn { min-height: 44px; }
.ds .date-pick { width: 320px; }
.ds .date-pick .popover__body { display: grid; gap: 6px; }
.ds .date-pick button:disabled { cursor: default; opacity: .6; }
.ds .wait-pick__form { display: contents; }
.ds .bulk-sheet__form { display: contents; }
.ds .bulk-sheet__list { margin: var(--s-3) 0 0; padding-left: var(--s-5); }
.ds .due-event__tabs:not([hidden]) { margin-bottom: 8px; }
.ds .due-event__tabs .tabs__item { min-height: 44px; padding-top: 0; padding-bottom: 0; }
.ds .due-event__form { display: grid; gap: 6px; }
.ds .due-event__form[hidden] { display: none; }
.ds .due-event__foot { display: flex; justify-content: flex-end; gap: 8px; margin: 0; padding: 8px 0 0; border: 0; background: none; }
.ds .field-pick { width: 420px; }
.ds .field-pick__form { display: contents; }
.ds .field-pick .popover__body { display: grid; gap: 6px; }
.ds .field-pick__text { width: 100%; min-height: 96px; resize: vertical; font-size: 15px; line-height: 22px; color: var(--ink); }
.ds .field-pick .popover__foot { display: flex; justify-content: flex-end; gap: 8px; }
.ds .field-pick .people-list__list { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.ds .field-pick button:disabled, .ds .field-pick textarea:disabled { cursor: default; opacity: .6; }
.ds .wait-pick__date { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.ds .wait-pick__date[hidden] { display: none; }
.ds .wait-pick__date legend { padding: 0; margin-bottom: 6px; }
.ds .wait-pick__body { display: grid; gap: 10px; }
.ds .wait-pick__kind, .ds .wait-pick__reopen { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ds .wait-pick__kind legend, .ds .wait-pick__reopen legend { padding: 0; margin-bottom: 6px; }
.ds .wait-pick__seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds .wait-pick__kind-item { justify-content: center; }
.ds .wait-pick__words, .ds .wait-pick__case { display: grid; gap: 10px; min-width: 0; }
.ds .wait-pick__words[hidden], .ds .wait-pick__case[hidden], .ds .wait-pick__links-box[hidden] { display: none; }
.ds .wait-pick__links-box { display: grid; gap: 4px; }
.ds .wait-pick__links-box h3 { margin: 0; }
.ds .wait-pick__links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ds .wait-pick__link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 44px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.ds .wait-pick__link-name { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
.ds .wait-pick__link-remove { flex: none; }
.ds .wait-pick__link-mode { flex: none; min-height: 44px; }
.ds .wait-pick__cases { display: grid; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.ds .wait-pick__cases[aria-busy=true] { opacity: .6; }
.ds .wait-pick__chosen { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 4px 4px 4px 8px; border-radius: var(--r-s); background: var(--accent-soft); }
.ds .wait-pick__chosen[hidden] { display: none; }
.ds .wait-pick__chosen-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ds .wait-pick input:disabled { opacity: .6; }
.ds .wait-pick__from { display: grid; gap: 6px; }
.ds .wait-pick__value { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ds .wait-pick__value:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds .wait-pick__value--empty .wait-pick__name { color: var(--ink-3); }
.ds .wait-pick__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ds .wait-pick__hint { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ds .wait-pick__hint[hidden], .ds .wait-pick__people[hidden] { display: none; }
.ds .wait-pick__people .people-list__list { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.ds .wait-pick button:disabled { cursor: default; opacity: .6; }
.ds .seg--state .seg__item--draft::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 4px; vertical-align: middle; border-radius: 50%; background: var(--accent); }
.ds .closed-return-panel .sheet__head, .ds .closed-return-panel .sheet__body, .ds .closed-return-panel .sheet__foot { padding: inherit; }
.ds .closed-return-panel .sheet__head { padding: 12px 14px 8px; }
.ds .closed-return-panel .sheet__body { padding: 0 14px 14px; }
.ds .closed-return-panel .sheet__foot { padding: 10px 12px; }
.ds .closed-return-panel .closed-return__status { margin: 0; }
.ds .closed-return-trigger { display: none; }
.js .closed-return-trigger:not([hidden]) { display: inline-flex; }
.js .closed-native-return { display: none; }
.ds .task-row__meta { min-width: 0; }
.ds .task-row__next { overflow-wrap: anywhere; white-space: normal; }
.ds .child-breadcrumb { position: relative; z-index: 1; grid-column: 2 / -1; min-width: 0; margin: -4px 0 0; color: var(--ink-3); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.ds .drawer__head .child-breadcrumb { margin: 0; }
.ds .child-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.ds .task-row--child { display: block; padding: 0; cursor: default; }
.ds .task-row__open { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: start; width: 100%; padding: 12px 20px 8px; border: 0; background: transparent; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.ds .task-row__open:hover { background: var(--surface-2); }
.ds .task-row__open:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ds .task-row--child .child-breadcrumb { display: block; margin: 0; padding: 0 20px 13px 46px; }
.ds .task-row--hierarchy { --hierarchy-indent: 0px; display: grid; grid-template-columns: var(--hierarchy-indent) 44px minmax(0, 1fr); column-gap: 0; align-items: start; min-width: 0; padding: 8px 16px 12px; cursor: default; }
.ds .task-row--hierarchy[hidden] { display: none; }
.ds .task-row--hierarchy-depth-1 { --hierarchy-indent: 12px; }
.ds .task-row--hierarchy-depth-2 { --hierarchy-indent: 24px; }
.ds .task-row--hierarchy-depth-3, .ds .task-row--hierarchy-depth-capped { --hierarchy-indent: 36px; }
.ds .task-row__hierarchy-toggle, .ds .task-row__hierarchy-toggle-spacer { position: relative; z-index: 2; grid-column: 2; grid-row: 1; width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
.ds .task-row__hierarchy-toggle { padding: 0; border: 0; border-radius: var(--r-s); background: transparent; color: var(--accent); cursor: pointer; }
.ds .task-row__hierarchy-toggle::before { content: none; }
.ds .task-row__hierarchy-toggle::after { content: ""; position: absolute; top: 18px; left: 18px; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.ds .task-row__hierarchy-toggle[aria-expanded="false"]::after { top: 17px; left: 16px; transform: rotate(-45deg); }
.ds .task-row__hierarchy-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ds .task-row__hierarchy-indent { grid-column: 1; grid-row: 1; height: 1px; min-width: 0; }
.ds .task-row__hierarchy-connector { position: relative; z-index: 0; grid-column: 1 / 3; grid-row: 1; min-width: 44px; min-height: 44px; pointer-events: none; }
.ds .task-row--hierarchy:not(.task-row--hierarchy-root) .task-row__hierarchy-connector::before { content: " "; position: absolute; top: 16px; right: 21px; width: 1px; height: 12px; border-left: 1px solid var(--accent); transform: translateX(50%); }
.ds .task-row--hierarchy:not(.task-row--hierarchy-root) .task-row__hierarchy-connector::after { content: ""; position: absolute; top: 0; right: 21px; bottom: -12px; width: 1px; border-left: 1px solid var(--line-strong, var(--line)); transform: translateX(50%); }
.ds .task-row--hierarchy .task-row__open { grid-column: 3; grid-row: 1; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 4px; min-width: 0; padding: 0; }
.ds .task-row--hierarchy .task-row__title { grid-column: 2; }
.ds .task-row--hierarchy .task-row__due { grid-column: 3; padding-top: 2px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-3); }
.ds .task-row--hierarchy .task-row__due.due--today { color: var(--accent); }
.ds .task-row--hierarchy .task-row__due.due--over { color: var(--risk); font-weight: 500; }
.ds .task-row--hierarchy .task-row__open .task-row__meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.ds .task-row--hierarchy .task-row__open .task-row__next { flex: 1 1 10em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) {
  .ds .task-row__tags .tag[data-tag-id] { cursor: pointer; }
  .ds .task-row__tags .tag[data-tag-id]:hover { border-color: var(--line-control); }
}
.ds [data-hierarchy-flat="true"] > .task-row--hierarchy { grid-template-columns: 0 0 minmax(0, 1fr); padding-left: 20px; }
.ds .task-row--picking .task-row__open { grid-template-columns: 22px minmax(0, 1fr) auto; cursor: pointer; }
.ds .task-row--picking .task-row__open:hover { background: transparent; }
.ds #entries .task-row--picking[aria-current=true] { background: var(--surface); box-shadow: none; }
.ds #entries .task-row--picking:has(.task-row__pick input:checked) { background: var(--accent-soft); }
.ds #entries .task-row--picking .task-row.task-row__open { background: transparent; box-shadow: none; }
.ds .task-row--picking .task-row__pick { grid-column: 1; grid-row: 1; align-self: start; min-width: 0; min-height: 0; margin-top: 1px; }
.ds .task-row--hierarchy > .row-actions { position: absolute; top: var(--s-1); right: var(--s-3); margin: 0; }
.ds .task-row--hierarchy > .task-row__pick--hover { grid-column: 3; grid-row: 1; justify-self: start; align-self: start; min-width: 0; min-height: 0; height: 20px; position: relative; z-index: 1; visibility: hidden; }
@media (hover: none), (max-width: 767.98px) {
  .ds .task-row--hierarchy > .task-row__pick--hover { display: none; }
}
@media (hover: hover) and (min-width: 768px) {
  .ds .task-row--hierarchy:is(:hover, :focus-within) > .task-row__pick--hover { visibility: visible; }
  .ds .task-row--hierarchy:has(> .task-row__pick--hover):is(:hover, :focus-within) .task-row__mark { visibility: hidden; }
}
.ds .task-row--hierarchy:is(:hover, :focus-within) > .row-actions { visibility: visible; }
@media (hover: hover) {
  .ds .task-row--hierarchy:has(> .row-actions):is(:hover, :focus-within) .task-row__due { visibility: hidden; }
}
.ds [data-hierarchy-flat="true"] > .task-row--hierarchy > :is(.task-row__hierarchy-toggle-spacer, .task-row__hierarchy-connector) { display: none; }
.ds .task-row--hierarchy .child-breadcrumb { grid-column: 3; margin: 2px 0 0; }
.ds #entries .assignment-queue { margin: 0; padding: 0; list-style: none; }
.ds #entries .task-row--assignment { display: block; padding: 0; }
/* Строка поручения — не строка дела: раскладка дела расставляет свои части
   по колонкам сетки (`grid-column` у подписей), а здесь колонок нет. */
.ds #entries .task-row--assignment .task-row__open { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 13px; }
.ds #entries .task-row--assignment .task-row__title { min-width: 0; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; font-weight: 600; }
.ds #entries .task-row--assignment .task-row__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.ds #entries .task-row--assignment .task-row__kind { min-width: 0; overflow-wrap: anywhere; }
.ds .task-row__due--overdue { color: var(--risk); font-weight: 600; }
.ds .assignment-card__body { display: flex; flex-direction: column; gap: 12px; }
.ds .assignment-card__text, .ds .assignment-card__mark { margin: 0; overflow-wrap: anywhere; }
.ds .assignment-card__case { margin: 0; overflow-wrap: anywhere; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.ds .assignment-card__head { font-size: 15px; font-weight: 600; }
.ds .assignment-card__terms { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); }
.ds .assignment-card__term-label { color: var(--ink-3); font-size: 12px; }
.ds .assignment-card__term-text { margin: 0; overflow-wrap: anywhere; }
.ds .assignment-card__term--unknown .assignment-card__term-text { color: var(--ink-3); }
.ds .assignment-card__section { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ds .assignment-card__count { margin-left: 8px; color: var(--ink-3); font-size: 13px; font-weight: 400; }
.ds .assignment-card__empty { margin: 0; color: var(--ink-3); font-size: 13px; }
.ds .assignment-card__rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ds .assignment-card__plus, .ds .card-plus { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; padding: 0 4px 0 0; font: inherit; color: var(--accent); background: none; border: 0; cursor: pointer; }
.ds .assignment-card__plus:hover, .ds .card-plus:hover { text-decoration: underline; }
.ds .assignment-card__plus:disabled, .ds .card-plus:disabled { color: var(--ink-3); cursor: default; text-decoration: none; }
.ds .assignment-card__plus[hidden] { display: none; }
.ds .assignment-card__plus-mark, .ds .card-plus__mark { display: inline-grid; place-items: center; width: 18px; height: 18px; font-weight: 600; border-radius: var(--r-s); background: var(--accent-soft); }
.ds .assignment-card__point-host:empty { display: none; }
.ds .assignment-card__point-host .assignment-act { margin-top: 0; }
.ds .assignment-act__hint { margin: 0 auto 0 0; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.ds .assignment-act__hint[hidden] { display: none; }
.ds .assignment-card__row { display: grid; grid-template-columns: minmax(72px, 30%) minmax(0, 1fr); gap: 12px; padding: 6px 0; }
.ds .assignment-card__row-when { color: var(--ink-3); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.ds .assignment-card__row--overdue .assignment-card__row-when { color: var(--risk); }
.ds .assignment-card__row-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds .assignment-card__row-text { overflow-wrap: anywhere; }
.ds .assignment-card__row-note { color: var(--ink-3); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.ds .assignment-card__message-host .assignment-act { margin-top: 0; }
.ds .assignment-act .assignment-act__asks { flex-direction: row; align-items: center; align-self: flex-start; min-height: 44px; }
.ds .assignment-act .assignment-act__asks[hidden] { display: none; }
.ds .assignment-act__asks-box { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.ds .task-row__flag--asked { color: var(--accent); font-weight: 600; }
.ds .assignment-card__details { padding-top: 12px; border-top: 1px solid var(--line); }
.ds .assignment-card__details-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: 44px; padding: 10px 0; cursor: pointer; list-style: none; }
.ds .assignment-card__details-summary::-webkit-details-marker { display: none; }
.ds .assignment-card__details-summary::after { content: "показать"; margin-left: auto; color: var(--accent); font-size: 13px; }
.ds .assignment-card__details[open] .assignment-card__details-summary::after { content: "скрыть"; transform: none; }
.ds .assignment-card__details-hint { color: var(--ink-3); font-size: 12px; line-height: 16px; }
.ds .assignment-card__details-body { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.ds .assignment-card__fallback { align-self: flex-start; color: var(--accent); font-size: 13px; }
.ds .assignment-card__strip { margin: 0 0 12px; }
.ds .assignment-card__fact dd { margin: 0; }
.ds .assignment-card__fact-sub { color: var(--ink-3); font-size: 12px; line-height: 16px; }
.ds .assignment-card__fact--overdue .facts__value, .ds .assignment-card__fact--overdue .assignment-card__fact-sub { color: var(--risk); }
.ds .assignment-card__fact--none .facts__value { color: var(--ink-3); font-weight: 400; }
.ds .assignment-card__move { position: relative; gap: 12px; margin: 0 0 16px; padding: 12px; }
.ds .assignment-card__move-body { display: flex; flex-direction: column; gap: 10px; }
.ds .assignment-card__quote { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 8px 12px; background: var(--surface); border-left: 3px solid var(--accent-line); border-radius: var(--r-s); }
.ds .move--wait .assignment-card__quote { border-left-color: var(--wait-line); }
.ds .move--plain .assignment-card__quote { border-left-color: var(--line-2); }
.ds .assignment-card__quote-head { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.ds .assignment-card__quote .assignment-card__text { white-space: pre-wrap; }
.ds .assignment-card__actions { display: flex; flex-direction: column; gap: 10px; }
.ds .assignment-card__actions[hidden], .ds .assignment-card__move[hidden] { display: none; }
.ds .assignment-card__say, .ds .assignment-act__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ds .assignment-card__done { margin-left: auto; }
.ds .assignment-card__return { margin-left: auto; }
.ds .assignment-card__return + .assignment-card__done { margin-left: 0; }
/* Три кнопки на телефоне в строку не входят: «Вернуть…» и «Готово…» переносятся парой, а не по одной. */
@media (max-width: 767px) {
 .ds .assignment-card__say:has(.assignment-card__return) > .assignment-card__say-button { flex-basis: 100%; }
}
.ds .assignment-card__hint { margin: 0 0 0 auto; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.ds .assignment-card__ask:empty { display: none; }
.ds .assignment-card__ask .assignment-act { margin-top: 0; background: var(--surface); }
.ds .assignment-pop { position: absolute; z-index: 30; top: var(--pop-top, 100%); left: var(--pop-left, 0); width: min(360px, calc(100% - 24px)); }
.ds .assignment-pop[hidden] { display: none; }
.ds .assignment-pop .assignment-act, .ds .assignment-done__body .assignment-act { margin: 0; border: 0; border-radius: 0; }
.ds .assignment-done { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 72px 16px 16px; background: rgba(22, 27, 38, 0.38); }
.ds .assignment-done[hidden] { display: none; }
.ds .assignment-done__window { width: min(520px, 100%); max-height: calc(100dvh - 144px); }
.ds .assignment-done__head { padding: 16px 16px 0; }
.ds .assignment-done__case { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .assignment-done__points { margin: 4px 0 0; color: var(--wait); font-size: 13px; line-height: 18px; }
.ds .assignment-done__points[hidden] { display: none; }
@media (max-width: 767.98px) {
  .ds .assignment-pop { position: fixed; z-index: 45; top: auto; right: 0; bottom: 0; left: 0; width: auto; max-height: 85dvh; overflow: auto; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px -12px rgba(22, 27, 38, 0.35); }
  .ds .assignment-done { align-items: flex-end; padding: 0; }
  .ds .assignment-done__window { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; }
  .ds .assignment-pop .assignment-act__buttons, .ds .assignment-done__body .assignment-act__buttons { padding-bottom: var(--safe-bottom); }
}
.ds .assignment-act[hidden] { display: none; }
.ds .decision-block { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3); border: 1px solid var(--done-line); border-left: 4px solid var(--done); border-radius: var(--r-m); background: var(--done-soft); color: var(--ink); }
.ds .decision-block--rework { border-color: var(--wait-line); border-left-color: var(--wait); background: var(--wait-soft); }
.ds .decision-block__head { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.ds .decision-block__note { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.ds .decision-block__date { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.ds .assignment-act { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); }
.ds .assignment-act label { display: flex; flex-direction: column; gap: 4px; }
.ds .assignment-act textarea { width: 100%; }
.ds .aside-panel { padding: 20px; border-top: 1px solid var(--line); }
.ds .aside-panel h2 { margin-bottom: 16px; }
.ds #upcoming .contact { grid-template-columns: 80px minmax(0, 1fr); width: 100%; min-width: 0; text-align: left; background: var(--surface); color: var(--ink); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.ds #upcoming .contact__date { width: 80px; min-width: 80px; }
.ds #upcoming .contact__day { max-width: 100%; font-size: 12px; line-height: 15px; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.ds #upcoming .contact__text { min-width: 0; }
.ds #upcoming .contact__title, .ds #upcoming .contact__meta { white-space: normal; overflow-wrap: anywhere; }
.ds .drawer__title, .ds .source__text { overflow-wrap: anywhere; }
.ds .drawer__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ds .source__text { white-space: pre-wrap; }
.ds .source { flex-shrink: 0; }
.ds .source__details { grid-column: 2; min-width: 0; }
.ds .source__details > summary { display: block; min-height: 0; cursor: pointer; list-style: none; }
.ds .source__details > summary::after { content: none; }
.ds .source__details .source__meta, .ds .source__details .source__text { display: block; }
.ds .source__details .source__meta { margin-bottom: 4px; }
.ds .source.card-source { padding: 0; column-gap: 8px; background: none; border: 0; border-radius: 0; }
.ds .card-source .source__mark { color: var(--ink-3); }
.ds .card-source .source__details .source__meta { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ds .card-source .source__text { color: var(--ink-2); font-size: 14px; line-height: 20px; }
.ds .card-source .source__details:not([open]) .source__text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ds .card-source .source__toggle { display: block; margin-top: 2px; color: var(--accent); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .card-source .source__toggle-less, .ds .card-source .source__details[open] .source__toggle-more { display: none; }
.ds .card-source .source__details[open] .source__toggle-less { display: inline; }
.ds .source__toggle { display: none; }
.ds .drawer__head { flex-shrink: 0; }
.ds .pinned-note { align-items: flex-start; gap: 8px; min-width: 0; }
.ds .pinned-note[hidden] { display: none; }
/* ФП: подсказка — про поле, а не про файлы под ним: фокус на «+ Файл» или «…» файла её не показывает, иначе она
   сдвигает список между нажатием и отпусканием и нажатие уходит мимо. */
.ds .card-section__hint { margin: 0; }
.ds .context-picker { position: fixed; z-index: 55; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 32px)); }
.ds .context-picker .popover__body { min-height: 0; overflow-y: auto; }
.ds .context-picker .people label[hidden] { display: none; }
.ds .context-picker .popover__foot { flex: 0 0 auto; }
/* У меток в теле окошка — подсказка «Меток пока нет…» в две строки: сжимается длинный список, а не она. */
.ds #property-tags .popover__body { flex-shrink: 0; }
.ds .new-case { display: flex; flex-direction: column; gap: 10px; }
.ds .new-case[hidden], .ds .new-case__later[hidden] { display: none; }
.ds .new-case:not(:has(> :not([hidden]))) { display: none; }
.ds .new-case__later { margin: 0; color: var(--ink-2); }
.ds #do-not-do-blocked[hidden] { display: none; }
.ds #do-not-do-closure { display: flex; flex-direction: column; gap: 12px; }
.ds #do-not-do-closure[hidden] { display: none; }
.ds #do-not-do-closure p { margin: 0; }
.ds .drawer__body > * { flex-shrink: 0; }
.ds .disclosure { display: block; }
.ds .card-section { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds .card-section[hidden] { display: none; }
/* ЕМ5: пункты, контакты и «Что было» делят одно место под переключателем;
   имя раздела говорит вкладка, заголовок панели остаётся для диктора. Где
   переключателя нет (подготовка поручения, страница без скрипта), разделы
   стоят подряд и называют себя заголовками. */
.ds .card-sections { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ds #entry-card .card-sections { margin-top: 18px; }
.ds #entry-card .card-sections > .card-section { margin-top: 0; }
html.js .ds .card-sections:has(> #entry-sections:not([hidden])) .card-section__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
html.js .ds .card-sections:has(> #entry-sections:not([hidden])) > :is(#contacts-panel, #records-panel) > .card-section__head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
html:not(.js) .ds #entry-sections { display: none; }
.ds .record-note__form { display: flex; flex-direction: column; gap: 4px; }
.ds .record-note__row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.ds .record-note__text { flex: 1 1 0%; width: 100%; min-width: 0; min-height: var(--h-touch); resize: vertical; field-sizing: content; max-height: 40vh; }
.ds .record-note__kind, .ds .record-note__add { flex: none; min-height: var(--h-touch); }
.ds .record-note__kind { min-width: var(--h-touch); }
.ds .record-note__help { margin: 0; }
/* Ф2: файлы дела — строка «+ Файл» того же вида, что «+ Пункт», и список под ней (ФП: в «Под рукой»). */
/* ПРu: записи «Под рукой» — строки списка пунктов без отметки; перенос строк в записи — часть смысла. */
.ds .pinned-note > :is(.handy__list, .handy__lost-list, .handy__add, .handy__empty, .handy__status) { align-self: stretch; min-width: 0; margin: 0; }
.ds .handy__empty[hidden], .ds .handy__list:empty, .ds .handy__status:empty, .ds .handy__add-body[hidden], .ds .handy__add-open[hidden] { display: none; }
.ds .handy__empty { color: var(--ink-2); }
.ds .handy__lost-list { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; }
.ds .handy__lost-list[hidden] { display: none; }
.ds .handy__lost { display: flex; flex-direction: column; gap: 8px; }
.ds .handy__lost-reason { margin: 0; color: var(--risk); }
.ds .checklist__item.checklist__item--plain { grid-template-columns: minmax(0, 1fr) auto; }
.ds .checklist__item--plain > .checklist__text { white-space: pre-wrap; }
.ds .checklist__item.checklist__item--plain > .checklist__edit-wrap { grid-column: 1 / -1; padding: 4px 0; }
.ds .handy__edit, .ds .handy__input { flex: 1 1 100%; min-height: 44px; resize: vertical; field-sizing: content; }
.ds .handy__add-body { display: flex; flex-direction: column; gap: 8px; }
.ds .handy__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ds .handy__actions .btn, .ds .checklist__item--plain .checklist__edit-wrap .btn { min-height: var(--h-touch); }
.ds .handy__add-open { display: inline-flex; align-items: center; gap: 10px; min-height: var(--h-touch); padding: 0 8px; border: 0; border-radius: var(--r-s); background: transparent; font: inherit; color: var(--accent); cursor: pointer; }
.ds .handy__add-open:hover { background: var(--surface-2); }
.ds .handy__add-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds .handy__status.error { color: var(--risk); }
.ds .entry-files { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
/* ФП: в «Под рукой» раздел ставит детей по левому краю без растяжки; список файлов — во всю ширину. */
.ds .pinned-note > .entry-files { align-self: stretch; min-width: 0; margin-top: 4px; }
.ds .entry-files[hidden], .ds .entry-files__add[hidden], .ds .entry-files__note[hidden] { display: none; }
.ds .entry-files__add { position: relative; display: flex; }
.ds .entry-files__input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
/* Общее правило подписей полей (.ds label:not(…)) ставит их столбцом жирным 13 px; строка «+» — не подпись поля,
   поэтому вид задан по id: так он сильнее общего правила без !important. */
.ds #entry-file-add { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; min-height: var(--h-touch); padding: 0 8px; border-radius: var(--r-s); font: inherit; color: var(--accent); cursor: pointer; }
.ds .entry-files__add-label:hover { background: var(--surface-2); }
.ds .entry-files__add:focus-within .entry-files__add-label { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds .entry-files__input:disabled + #entry-file-add { color: var(--ink-3); cursor: default; }
.ds .entry-files__status { margin: 0; }
.ds .entry-files__status.error { color: var(--risk); }
.ds .entry-files__status:empty { display: none; }
.ds .entry-files__note { margin: 0; }
.ds .entry-files__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ds .entry-file { display: flex; align-items: center; gap: 10px; min-height: var(--h-touch); padding: 4px 0 4px 8px; min-width: 0; }
.ds .entry-file + .entry-file { border-top: 1px solid var(--line); }
.ds .entry-file__thumb, .ds .entry-file__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); background: var(--surface-2); color: var(--ink-2); overflow: hidden; }
.ds .entry-file__thumb img { width: 40px; height: 40px; object-fit: cover; }
.ds .entry-file__thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds .entry-file__body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ds .entry-file__name { overflow-wrap: anywhere; color: var(--ink); }
.ds .entry-file__meta, .ds .entry-file__to { font: var(--t-meta); color: var(--ink-2); }
.ds .entry-file__more { flex: none; }
.ds .file-remove-sheet__name { margin: 0 0 8px; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .ds .file-remove-sheet.sheet--modal[data-ds-sheet] { top: 50%; translate: -50% -50%; }
}
.ds .record-kinds { width: min(440px, calc(100vw - 16px)); }
.ds .record-kinds__intro { margin: 0; padding: 0 12px 8px; }
.ds .record-kinds__item { align-items: flex-start; height: auto; min-height: var(--h-touch); padding-top: 8px; padding-bottom: 8px; white-space: normal; }
.ds .record-kinds__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.ds .record-kinds__label { font-weight: 600; }
.ds .record-kinds__item[aria-checked="true"] .record-kinds__label::after { content: " ✓"; color: var(--accent); }
/* Ритм v5: 30 px между разделами на широкой карточке и 26 px на телефоне — это margin плюс зазор
   drawer__body (12 px от 768, 8 px на телефоне). */
.ds #entry-card .card-section { margin-top: 18px; }
.ds .card-section__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ds .card-section__title { display: flex; align-items: baseline; gap: 8px; margin: 0; font: var(--t-head); letter-spacing: var(--t-head-track); }
.ds .card-section__title:focus { outline: none; }
.ds .card-section__title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds .card-section__count { font: var(--t-meta); letter-spacing: normal; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ds .card-section__count:empty { display: none; }
.ds .card-section__dirty:not([hidden]) { width: 7px; height: 7px; flex: 0 0 7px; align-self: center; border-radius: 50%; background: var(--a-11); }
.ds .card-section__act { margin-left: auto; min-height: 44px; }
.ds summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: 44px; gap: 8px; }
.ds summary::after { content: '⌄'; color: var(--ink-3); margin-left: auto; }
.ds details[open] > summary::after { transform: rotate(180deg); }
.ds details[open] > :not(summary) { margin-top: 16px; }
.ds .desk-lifecycle-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ds .cabinet-issue:not([hidden]) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ds .cabinet-issue__hint:not([hidden]) { display: block; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.ds #cabinet-issue-error { color: var(--risk); overflow-wrap: anywhere; }
.ds .cabinet-issue__people { margin: 0; padding: 0; border: 0; }
.ds .cabinet-issue__people:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-s); }
.ds .cabinet-issue__people > legend { padding: 0; font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .cabinet-issue__more-body { display: flex; flex-direction: column; gap: 12px; }
.ds #cabinet-issue-error[hidden] { display: none; }
.ds .cabinet-issue__title { margin: 0; }
.ds .cabinet-issue__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; width: 100%; }
.ds .cabinet-issue__row { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-m); }
.ds .cabinet-issue__row--revoked { opacity: 0.62; }
.ds .cabinet-issue__head { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ds .cabinet-issue__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ds .cabinet-issue__state { margin: 0; }
.ds .cabinet-issue__revoke { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ds .cabinet-issue__summary { display: inline-flex; align-items: center; cursor: pointer; }
.ds .cabinet-issue__summary::-webkit-details-marker { display: none; }
.ds .cabinet-issue__mark { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.ds .talk-sections { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds .talk-sections[hidden] { display: none; }
.ds .talk__count { color: var(--ink-3); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.ds .talk__feed { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ds .talk__feed::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 14px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--n-4); }
.ds .talk__feed > [hidden] { display: none; }
.ds .talk__feed > li { scroll-margin-bottom: var(--talk-compose-h, 0px); }
.ds .talk__item, .ds .talk__day, .ds .talk__earlier { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; min-width: 0; }
.ds .talk__item { align-items: start; padding: 10px 0; }
.ds .talk__item--fact { align-items: center; min-height: 26px; padding: 2px 0; }
.ds .talk__item--mark { padding: 8px 0; }
.ds .talk__item--event { margin-left: -12px; padding-left: 12px; border-radius: var(--r-m); background: var(--accent-soft); }
.ds .talk__item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .talk__dot { justify-self: center; width: 8px; height: 8px; border: 2px solid var(--n-7); border-radius: 50%; background: var(--surface); box-sizing: border-box; }
.ds .talk__icon { justify-self: center; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--done-soft); color: var(--done); box-shadow: 0 0 0 4px var(--surface); }
.ds .talk__icon .icon { stroke-width: 2; }
.ds .talk__item--back .talk__icon { background: var(--wait-soft); color: var(--wait); }
.ds .talk__ava { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-3); color: var(--c-11); font: 600 12px/1 var(--font); box-shadow: 0 0 0 4px var(--surface); }
.ds .talk__ava--me { background: var(--accent); color: var(--ink-inv); }
.ds .talk__body { display: flex; flex-direction: column; min-width: 0; }
.ds .talk__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; min-width: 0; font-size: 14px; line-height: 20px; }
.ds .talk__item--fact .talk__meta { gap: 2px 6px; }
.ds .talk__line { color: var(--ink-3); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .talk__line b { color: var(--ink-2); font-weight: 500; }
.ds .talk__title { color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.ds .talk__why { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ds .talk__who { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ds .talk__remind { color: var(--ink-2); font-size: 12px; line-height: 16px; }
.ds .talk__when, .ds .talk__carried, .ds .talk__asked { color: var(--ink-3); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.ds .talk__tag { padding: 1px 6px; border-radius: var(--r-xs); background: var(--wait-soft); color: var(--wait); font-size: 12px; line-height: 16px; font-weight: 500; }
.ds .talk__tag--ask { background: var(--accent-soft); color: var(--c-11); }
.ds .talk__item--hl { margin-left: -12px; padding-left: 12px; border-radius: var(--r-m); background: linear-gradient(90deg, var(--accent-wash), transparent); }
.ds .talk__item--hl .talk__text { display: inline-block; justify-self: start; padding: 8px 12px; background: var(--accent-wash); border: 1px solid var(--accent-soft); border-radius: 4px var(--r-m) var(--r-m) var(--r-m); }
.ds .talk__new { padding: 1px 6px; border-radius: var(--r-xs); background: var(--accent-soft); color: var(--c-11); font-size: 12px; line-height: 16px; font-weight: 600; }
.ds .talk__quote { display: block; max-width: 60ch; margin: 4px 0; padding: 1px 0 1px 8px; border-left: 2px solid var(--n-6); color: var(--ink-2); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .talk__text { max-width: 60ch; margin: 2px 0 0; color: var(--ink); font-size: 15px; line-height: 23px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ds .talk__day { padding: 12px 0 4px; }
.ds .talk__day-label { grid-column: 2; color: var(--ink-3); font-size: 12px; line-height: 16px; font-weight: 500; }
.ds .talk__earlier { align-items: center; }
.ds .talk__earlier-mark { justify-self: center; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-3); box-sizing: border-box; }
.ds .talk__earlier-button { justify-self: start; min-height: 44px; margin-left: -6px; padding: 0 6px; border: 0; border-radius: var(--r-xs); background: none; color: var(--ink-2); font: inherit; font-size: 13px; line-height: 18px; cursor: pointer; }
.ds .talk__earlier-button:hover { background: var(--n-3); color: var(--ink); }
.ds .talk__earlier-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .talk__compose { min-width: 0; }
.ds .talk__compose[hidden] { display: none; }
/* Липкость считается от края прокрутки за вычетом padding тела карточки (22 px):
   с bottom: 0 под полем оставалась полоса, где просвечивала лента (PL11). */
.ds .talk__compose--pinned { position: sticky; bottom: -22px; z-index: 2; margin-top: -6px; padding: 14px 0 12px; background: linear-gradient(transparent, var(--surface) 14px); }
.ds .talk__form { display: block; max-width: 640px; }
.ds .talk__box { display: flex; align-items: flex-end; gap: 8px; min-height: 50px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: none; }
.ds .talk__compose--pinned .talk__box { box-shadow: var(--e-raised); }
.ds .talk__box:focus-within { border-color: var(--accent); }
.ds .talk__field { flex: 1 1 auto; min-width: 0; height: 36px; margin: 0; padding: 6px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; line-height: 23px; resize: none; overflow-y: hidden; }
.ds .talk__field::placeholder { color: var(--ink-3); opacity: 1; }
.ds .talk__field:focus, .ds .talk__field:focus-visible { outline: none; }
.ds .talk__asks { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 8px; border: 1px solid transparent; border-radius: var(--r-s); background: none; color: var(--ink-2); font: inherit; font-size: 13px; line-height: 18px; white-space: nowrap; cursor: pointer; }
.ds .talk__asks:hover { background: var(--n-3); }
.ds .talk__asks-box { display: grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--line-control); border-radius: 4px; box-sizing: border-box; }
.ds .talk__asks[aria-pressed="true"] { background: var(--wait-soft); color: var(--wait); }
.ds .talk__asks[aria-pressed="true"] .talk__asks-box { background: var(--wait); border-color: var(--wait); color: var(--ink-inv); }
.ds .talk__send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: var(--accent); color: var(--ink-inv); cursor: pointer; }
.ds .talk__send:hover { background: var(--accent-hover); }
.ds .talk__send:disabled { background: var(--accent-line); cursor: default; }
.ds .talk__mic { flex: none; width: 36px; height: 36px; padding: 0; color: var(--ink-2); }
.ds .talk__mic[hidden] { display: none; }
.ds .talk__mic.is-recording { color: var(--risk); background: var(--risk-soft); border-color: var(--risk-line); }
.ds .talk__voice { margin: 6px 0 0 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds .talk__voice:empty { display: none; }
.ds .talk__error { margin: 6px 0 0 14px; color: var(--risk); font-size: 13px; line-height: 18px; }
.ds .talk__error[hidden] { display: none; }
.ds .talk__blocked { margin: 6px 0 0 14px; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.ds .talk__blocked[hidden] { display: none; }
.ds .talk__field[readonly] { cursor: not-allowed; }
.ds .talk__box:has(.talk__field[readonly]) { background: var(--surface-2); }
.ds .talk__box:has(.talk__field[readonly]):focus-within { border-color: var(--line-2); }
.ds .talk__help { margin: 6px 0 0 14px; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.ds .talk__compose:not(:focus-within) .talk__help { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Подсказка под полем «ИИ» не прячется, пока идёт запись или в поле есть
   текст: иначе первое нажатие на «Отправить» после диктовки сдвигало композер
   между mousedown и mouseup, и щелчок уходил мимо кнопки. */
.ds .ai-conv__dock:has(.talk__mic.is-recording, .talk__field:not(:placeholder-shown)) .talk__help { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
@media (max-width: 767.98px) {
  .ds .talk__asks, .ds .talk__send { height: 44px; }
  .ds .talk__send { width: 44px; border-radius: 12px; }
  .ds .talk__mic { width: 44px; height: 44px; }
  .ds .talk__box { min-height: 56px; padding-left: 12px; }
}
.ds .cabinet-issue__archive { width: 100%; }
.ds .cabinet-issue__archive[hidden] { display: none; }
.ds .cabinet-issue__row--archived { border-style: dashed; background: var(--surface-2); color: var(--ink-2); }
.ds .person-work { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ds .person-work__name { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.ds .person-work__handle, .ds .person-work__account { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .person-work__account { color: var(--wait); }
.ds .person-work__list { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 8px 0 0; padding: 0; list-style: none; }
.ds .person-work__row { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); }
.ds .person-work__kind, .ds .person-work__date { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.ds .person-work__mark { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .person-work__questions { margin: 0; color: var(--wait); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .person-work__link { display: inline-flex; align-items: center; align-self: flex-start; max-width: 100%; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.ds .person-work__own { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 8px 0 0; }
.ds .person-work__own-title { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .person-work__own-list { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 0; padding: 0; list-style: none; }
.ds .person-work__own-row { display: flex; min-width: 0; }
.ds .person-work__access { align-self: flex-start; margin: 16px 20px 0; }
.ds .person-work__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.ds .person-work__silent { color: var(--wait); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .person-work__counts { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.ds .person-work__count { white-space: nowrap; cursor: auto; }
.ds .person-work__count--risk { color: var(--risk); font-weight: 600; }
.ds .person-work__count--wait { color: var(--wait); font-weight: 600; }
.ds .person-work__count--mine { color: var(--accent); font-weight: 600; }
.ds .person-work__moved, .ds .person-work__elsewhere, .ds .person-work__foreign { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.ds .person-work__link { min-height: var(--h-touch); }
.ds .person-work__name-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-touch); margin: -10px 0 -10px -8px; padding: 0 8px; border-radius: var(--r-s); font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.ds .person-work__name-link .icon { width: 16px; height: 16px; color: var(--ink-2); }
.ds .person-work__name-link:hover { background: var(--surface-2); color: var(--accent); }
.ds .person-work__name-link:hover .icon { color: var(--accent); }
.ds .person-work__away { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.ds .person-work__away .icon { width: 14px; height: 14px; }
.ds .person-work-group { margin: 0; padding: 12px 20px 4px; color: var(--ink-2); font-size: 13px; line-height: 18px; font-weight: 400; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ds .person-idle__list { margin: 0; padding: 0; list-style: none; }
.ds .person-idle__row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 6px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ds .person-idle__row--away .avatar { background: var(--surface-3); color: var(--ink-2); }
.ds .person-idle__main { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; flex: 1; min-width: 0; }
.ds .person-idle__name { margin-block: 0; font-size: 15px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.ds .person-idle__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0; min-width: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .person-work--short { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-block: 6px; }
.ds .person-work--short .person-work__counts { display: flex; flex-wrap: wrap; flex: 1; justify-content: flex-end; gap: 2px 12px; margin: 0; font-size: 13px; }
@media (max-width: 767.98px) {
  .ds .person-work--short .person-work__counts { justify-content: flex-start; flex-basis: 100%; }
}
.ds .person-work__state { display: none; }
@media (min-width: 1024px) {
  .ds .person-work { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 16px; padding: 12px 20px; }
  .ds .person-work__head { order: -2; flex: 1 1 0; flex-wrap: nowrap; align-items: center; min-width: 0; }
  .ds .person-work__head > * { flex: none; }
  .ds .person-work__head > .person-work__name { flex: 0 1 auto; min-width: 0; }
  .ds .person-work__name-link { max-width: calc(100% + 8px); }
  .ds .person-work__name-link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ds .person-work__name-link > .icon { flex: none; }
  .ds .person-work__counts { order: -1; flex: none; flex-wrap: nowrap; gap: 2px 12px; margin: 0; font-size: 13px; line-height: 18px; }
  .ds .person-work--short .person-work__counts { flex: none; }
  .ds .person-work::before { content: ""; flex-basis: 100%; height: 0; }
  .ds .person-work__handle, .ds .person-work__account, .ds .person-work__moved, .ds .person-work__elsewhere { order: 1; font-size: 12px; line-height: 16px; }
  .ds .person-work__list, .ds .person-work__own { order: 2; }
  .ds .person-work__list, .ds .person-work__own { flex-basis: 100%; }
  .ds .person-work__list { gap: 0; margin: 4px 0 0; }
  .ds .person-work__row { flex-direction: row; align-items: center; gap: 12px; padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
  .ds .person-work__row:first-child { border-top: 0; }
  .ds .person-work__row > :not(.person-work__link, .person-work__state) { display: none; }
  .ds .person-work__row .person-work__link { display: block; flex: 1 1 auto; min-width: 0; min-height: 36px; font-size: 14px; line-height: 36px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ds .person-work__state { display: block; flex: none; margin: 0; color: var(--ink-3); font-size: 12px; line-height: 16px; white-space: nowrap; }
}
@media (min-width: 1024px) {
  .ds:has(.nav-item[data-filter=people][aria-pressed=true]) #entries:has(> .person-work) { container: people-list / inline-size; }
}
/* Узкий список (1024 с колонкой «Без дел»): счётчикам не хватает места рядом
   с именем — они встают второй строкой и переносятся внутри карточки. */
@container people-list (max-width: 599.98px) {
  .ds .person-work__head { flex-basis: 100%; }
  .ds .person-work__counts, .ds .person-work--short .person-work__counts { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
}
.ds .week-screen { display: flex; flex-direction: column; min-width: 0; }
.ds .week-screen__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ds .week-screen__range { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.ds .week-screen__pager { display: flex; flex-wrap: wrap; gap: 8px; }
.ds .week-screen__page { min-height: 44px; }
.ds .week-screen__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds .week-screen__review { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.ds .week-screen__review--done { color: var(--done); }
.ds .week-review { display: flex; padding: 16px 20px; background: var(--surface); }
.ds .week-review__toggle { min-height: var(--h-touch); }
.ds .week-review__toggle::before { content: ""; width: 16px; height: 16px; margin-right: 8px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); background: var(--surface) center / 12px no-repeat; }
.ds .week-review__toggle[aria-pressed="true"] { color: var(--done); background: var(--done-soft); border-color: var(--done-line); }
.ds .week-review__toggle[aria-pressed="true"]::before { border-color: var(--done); background-color: var(--done); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ds .week-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ds .week-row__name { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.ds .week-row__list { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 8px 0 0; padding: 0; list-style: none; }
.ds .week-point, .ds .week-ready { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); }
.ds .week-point--overdue { border-color: var(--risk); }
.ds .week-point__date { color: var(--ink-3); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.ds .week-point__link { display: inline-flex; align-items: center; align-self: flex-start; max-width: 100%; min-height: 24px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.ds .week-point__subject, .ds .week-ready__state { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .week-ready__state { color: var(--wait); font-weight: 600; }
.ds .week-point__overdue { margin: 0; color: var(--risk); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .week-row__counts { margin: 8px 0 0; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.ds .week-row__done { display: grid; gap: 2px; margin-top: 2px; }
.ds .week-row__points-title { margin: 12px 0 0; color: var(--ink-3); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .week-row--open { box-shadow: inset 3px 0 0 var(--done); }
.ds .week-digest { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ds .week-digest__title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.ds .week-digest__group { --digest-tone: var(--ink-2); --digest-line: var(--line-2); display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-left: 12px; border-left: 3px solid var(--digest-line); }
.ds .week-digest__group--risk { --digest-tone: var(--risk); --digest-line: var(--risk-line); }
.ds .week-digest__group--wait { --digest-tone: var(--wait); --digest-line: var(--wait-line); }
.ds .week-digest__group--mine { --digest-tone: var(--accent); --digest-line: var(--accent-line); }
.ds .week-digest__name { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--digest-tone); font-size: 14px; line-height: 20px; font-weight: 600; }
.ds .week-digest__count { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.ds .week-digest__rows { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ds .week-digest__open, .ds .week-digest__person { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: var(--h-touch); padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--ink); text-decoration: none; }
.ds .week-digest__open:hover, .ds .week-digest__person:hover { background: var(--surface-2); }
.ds .week-digest__open:focus-visible, .ds .week-digest__person:focus-visible, .ds .week-digest__more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .week-digest__case { overflow: hidden; font-size: 15px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.ds .week-digest__person { font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.ds .week-digest__what { color: var(--ink-2); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .week-digest__more { display: inline-flex; align-items: center; align-self: flex-start; min-height: var(--h-touch); color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
.ds .week-digest__calm { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.ds .fire-screen { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 16px 20px; }
.ds .fire-group { --fire-tone: var(--ink-2); --fire-line: var(--line-2); display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-left: 12px; border-left: 3px solid var(--fire-line); }
.ds .fire-group--risk { --fire-tone: var(--risk); --fire-line: var(--risk-line); }
.ds .fire-group--wait { --fire-tone: var(--wait); --fire-line: var(--wait-line); }
.ds .fire-group--mine { --fire-tone: var(--accent); --fire-line: var(--accent-line); }
.ds .fire-group__title { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--fire-tone); font-size: 15px; line-height: 20px; font-weight: 600; }
.ds .fire-group__count { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.ds .fire-group__rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ds .fire-row__open { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: var(--h-touch); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--ink); text-decoration: none; }
.ds .fire-row__open:hover { background: var(--surface-2); }
.ds .fire-row__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .fire-row__title { display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ds .fire-row__labels { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.ds .fire-row__also { color: var(--ink-3); }
.ds .fire-row__what { color: var(--ink-2); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .inbox-screen { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 20px; }
.ds .inbox-screen__rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ds .inbox-screen__more { align-self: flex-start; min-height: var(--h-touch); }
.ds .inbox-row__open { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: var(--h-touch); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--ink); text-decoration: none; }
.ds .inbox-row__open:hover { background: var(--surface-2); }
.ds .inbox-row__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .inbox-row--unread .inbox-row__open { border-left: 3px solid var(--accent); }
.ds .inbox-row__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ds .inbox-row__what { font-size: 15px; line-height: 20px; font-weight: 400; overflow-wrap: anywhere; }
.ds .inbox-row--unread .inbox-row__what, .ds .inbox-row--unread .inbox-row__preview { font-weight: 600; }
.ds .inbox-row__when { color: var(--ink-3); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds .inbox-row__preview { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ds .inbox-row__title { color: var(--ink-2); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .people-access { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 20px; }
.ds .people-access__new { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds .people-access__new > [data-access-open] { align-self: flex-start; }
.ds .people-access__title { margin: 8px 0 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.ds .people-access__list { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.ds .people-access__row { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.ds .people-access__name { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.ds .people-access__name-link { display: inline-flex; align-items: center; min-height: var(--h-touch); margin: -11px 0 -11px -8px; padding: 0 8px; border-radius: var(--r-s); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ds .people-access__name-link:hover { background: var(--surface-2); color: var(--accent); }
.ds .people-access__name-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.ds .people-access__handle, .ds .people-access__login { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .people-access__state { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.ds .people-access__manager { margin: 0; color: var(--wait); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .people-access__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.ds .people-access__confirm { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ds .people-access__summary { list-style: none; cursor: pointer; }
.ds .people-access__summary::-webkit-details-marker { display: none; }
.ds .people-access__summary[aria-disabled="true"] { opacity: .5; cursor: default; }
.ds .people-access__form { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 4px; }
.ds .people-access__form[hidden] { display: none; }
.ds .people-access__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ds .people-access__label { color: var(--ink-2); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .people-access__foot { display: flex; flex-wrap: wrap; gap: 8px; }
.ds .people-access__code { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--accent); border-radius: var(--r-m); background: var(--surface-2); }
.ds .people-access__code[hidden] { display: none; }
.ds .people-access__code-title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.ds .people-access__code-login, .ds .people-access__code-until, .ds .people-access__code-note { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .people-access__code-value { margin: 0; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: .12em; overflow-wrap: anywhere; }
.ds .people-access__code [data-access-code-hide] { align-self: flex-start; }
.ds .people-access__grants { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-top: 8px; }
.ds .people-access__grants > [data-access-open] { align-self: flex-start; }
.ds .people-access__subtitle { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .people-access__grant-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ds .people-access__grant { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-width: 0; }
.ds .people-access__grant-name { flex: 1 1 200px; margin: 0; min-width: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
/* Дело, открытое разрешением на справочник (E5 §3): у ответа нет ни исходной
   записи, ни контактов, ни ленты событий, поэтому части карточки владельца
   снимает один класс карточки, а не отдельные флаги. */
.ds .entry-card--granted [data-card-panel],
.ds .entry-card--granted #entry-sections,
.ds .entry-card--granted #record-history,
.ds .entry-card--granted #entry-source,
.ds .entry-card--granted #delegation-preparation,
.ds .entry-card--granted #delegation-handoff-flow,
.ds .entry-card--granted #cabinet-issue-panel,
.ds .entry-card--granted #entry-state,
.ds .entry-card--granted #my-state,
.ds .entry-card--granted #parent-breadcrumb,
.ds .entry-card--granted #facts-strip { display: none; }
.ds .project-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ds .project-card[hidden] { display: none; }
.ds .project-card__title { margin: 0; color: var(--ink-2); font-weight: 600; }
.ds .project-card__scope { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ds .project-card__state { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.ds .project-card__head { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.ds .project-card__notes { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ds .project-card__note { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 12px; border-left: 2px solid var(--line); }
.ds .project-card__note-head { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .project-card__note-text { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ds .project-card__empty { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.ds .project-card__form { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds .project-card__form[hidden] { display: none; }
.ds .project-card__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ds .project-card__label { color: var(--ink-2); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .project-card__form .btn { align-self: flex-start; }
/* Имя получателя в плашке строки — человеческое имя любой длины, поэтому подпись
   сжимается вместе со строкой: `flex-shrink: 0` держал бы её на ширине
   max-content, и длинное имя вынесло бы строку за экран телефона (K4 §6). */
.ds .task-row__my-state { flex: 0 1 auto; min-width: 0; color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.ds .task-row__owner { flex: 0 0 auto; color: var(--ink-2); }
.ds .task-row__handed, .ds .task-row__label > .task-row__tag { flex: 0 1 auto; min-width: 0; }
.ds .task-row__note { color: var(--ink-2); font-size: 13px; line-height: 18px; font-weight: 500; overflow-wrap: anywhere; }
.ds .task-row__turn { flex: 0 1 auto; min-width: 0; color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.ds .task-row__stale { flex: 0 0 auto; color: var(--wait); font-weight: 600; }
.ds .task-row__label { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; flex: 0 1 auto; min-width: 0; }
.ds .task-row__label > .task-row__stale, .ds .task-row__label > .task-row__owner { flex-shrink: 1; min-width: 0; }
.ds .task-row__sep { color: var(--ink-3); }
.ds .task-row__mark { display: flex; grid-column: 1; grid-row: 1; align-self: start; width: 16px; height: 20px; align-items: center; margin: 0; }
.ds .task-row__mark .icon { width: 16px; height: 16px; }
/* Значок и полоска строки — цвет состояния дела (model.md §7); просрочка не
   состояние: красный флажок стоит вместе с красной плашкой срока. */
.ds .task-row__mark { color: var(--state); }
.ds .task-row__mark[data-state="late"] { color: var(--risk); }
.ds .task-row--hierarchy, .ds #entries .task-row { position: relative; }
.ds .task-row__tag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; max-width: 100%; min-height: 20px; padding: 0 7px; border-radius: var(--r-xs); font-size: 13px; line-height: 18px; font-weight: 500; overflow-wrap: anywhere; }
.ds .task-row__tag--state { color: var(--state); background: var(--state-soft); }
/* TOKENS «Цвет состояния»: у «Разобрать» и «Отложено» фона нет, «Разобрать» пишется --n-11. */
.ds .task-row__tag--state.state-mark--new { color: var(--n-11); background: transparent; box-shadow: inset 0 0 0 1px var(--st-new); }
.ds .task-row__tag--state.state-mark--later { background: transparent; box-shadow: inset 0 0 0 1px var(--st-later); }
.ds .task-row__tag--late { color: var(--risk); background: var(--risk-soft); }
.ds .task-row__label { align-items: center; gap: 4px 6px; }
.ds .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--e-1); overflow: hidden; }
.ds .facts[hidden] { display: none; }
.ds .facts--fact { border-width: 0; box-shadow: none; }
.ds .facts__item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; min-height: 56px; margin: 0; padding: 8px 12px; font: inherit; text-align: left; color: var(--ink); background: none; border: 0; border-radius: 0; }
.ds .facts__item:nth-child(odd) { border-right: 1px solid var(--line); }
.ds .facts__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.ds .facts__item--button { cursor: pointer; }
.ds .facts__item--button:hover { background: var(--surface-2); }
.ds .facts__item--button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ds .facts__item--button:disabled { cursor: default; }
.ds .facts__item--button:disabled:hover { background: none; }
.ds .facts__label { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ds .facts__value { max-width: 100%; font-size: 15px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ds .facts__sub { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ds .facts__sub:empty { display: none; }
.ds .facts__when { font-size: 13px; line-height: 18px; }
.ds .facts__label { display: inline-flex; align-items: center; gap: 7px; }
.ds .facts__icon { color: var(--ink-3); }
.ds .facts__value[data-initial] { display: inline-flex; align-items: center; gap: 6px; }
.ds .facts__value[data-initial]::before { content: attr(data-initial) / ""; display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; line-height: 1; font-weight: 600; color: var(--accent); background: var(--accent-soft); }
.ds .card-side__title { display: none; }
.ds .card-keys { display: none; }
@media (min-width: 768px) {
  html.js .ds .card-keys { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding-top: 8px; font-size: 13px; line-height: 20px; color: var(--ink-2); }
  .ds .card-keys__item { display: inline-flex; align-items: center; gap: 6px; }
}
.ds .facts__item--none .facts__value { font-weight: 400; color: var(--ink-3); }
.ds .facts__item--unset .facts__value { font-weight: 400; color: var(--ink-3); text-decoration: underline dashed var(--line-control); text-underline-offset: 4px; }
.ds .facts__item--wait { background: var(--wait-soft); }
.ds .facts__item--wait .facts__value { color: var(--wait); }
.ds .facts__item--late { background: var(--risk-soft); }
.ds .facts__item--late .facts__label, .ds .facts__item--late .facts__value, .ds .facts__item--late .facts__sub { color: var(--risk); }
@media (min-width: 768px) {
  .ds .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ds .facts__item, .ds .facts__item:nth-child(-n+2) { border-right: 1px solid var(--line); border-bottom: 0; }
  .ds .facts__item:last-child { border-right: 0; }
}
/* V2c: на узкой карточке свойства дела — строки «ярлык — значение» под
   пунктами (макет Own-390): ярлык слева, значение справа, строки разделены
   линией. Полосы поручения и кабинета (те же .facts) остаются клетками. */
.ds #facts-strip { display: flex; flex-direction: column; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.ds #facts-strip[hidden] { display: none; }
.ds #facts-strip .facts__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 48px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); }
.ds #facts-strip .facts__item[hidden], .ds .facts__item[hidden] { display: none; }
.ds #facts-strip .facts__item:first-child { border-top: 1px solid var(--line); }
.ds #facts-strip:not(.facts--fact) .facts__item--button:not([data-permanent-disabled])::after { content: ""; grid-column: 3; grid-row: 1; width: 7px; height: 7px; margin-right: 4px; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg); }
.ds #facts-strip .facts__label { grid-column: 1; font-size: 15px; line-height: 20px; color: var(--ink-2); }
.ds #facts-strip .facts__value { grid-column: 2; justify-self: end; text-align: right; }
.ds #facts-strip .facts__sub { grid-column: 2; justify-self: end; text-align: right; }
/* Метки дела (TAG8) — чипы tag в ряд; лишнее скрыто, все имена — в имени кнопки и в title. */
.ds #facts-strip .facts__value:has(> .tag) { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s-1); min-width: 0; overflow: hidden; }
.ds .facts__field { display: contents; }
/* V2b/V2c: в разметке свойства (#card-side) стоят под пунктами — так их
   видно на узкой карточке, и по этому порядку идут Tab и диктор. На широкой
   карточке сетка ставит их правой колонкой с первой строки (grid-row: 1),
   а «Под рукой» скрипт переносит в колонку под них (V4d), на узкой — над
   переключателем разделов (ЕМ5). Узкая карточка и телефон — одна колонка:
   обёртка свойств растворяется (display: contents). Делит сама ширина
   карточки (container query), а не окно: наложение 720 px на 1024–1279
   остаётся одной колонкой. Колонка охватывает несколько строк центра (span):
   так она не раздувает строку, рядом с которой стоит. Отрицательный нижний
   отступ снимает её вклад в высоту строк: под переключателем центр бывает
   короче колонки, и лишняя высота иначе раздаётся строкам центра — шапка и
   блок поручения сдвигаются, когда меняется высота соседней строки. Итог выдачи стоит в
   разметке сразу под блоком поручения (#move): на телефоне у строк свойств
   он уходил за низ экрана, а под блоком поручения виден без прокрутки; на
   широкой карточке он — второй строкой центра, рядом с колонкой. */
.ds #entry-card { container: card / inline-size; }
.ds .card-side { display: contents; }
.ds .card-side > * { flex-shrink: 0; }
.ds .workspace--focused > #entry-card > .drawer__body > .card-side > * { width: min(100%, 1120px); }
@container card (min-width: 760px) {
  html.js .ds #entry-card:not(.entry-card--granted) > .drawer__body:has(> .card-side > #facts-strip:not([hidden])) {
    display: grid; grid-template-columns: minmax(0, 1fr) 312px; column-gap: 24px; align-items: start; align-content: start; padding-right: 0;
  }
  html.js .ds .workspace--focused > #entry-card:not(.entry-card--granted) > .drawer__body:has(> .card-side > #facts-strip:not([hidden])) {
    grid-template-columns: minmax(0, 640px) 312px; justify-content: center;
  }
  html.js .ds #entry-card:not(.entry-card--granted) > .drawer__body:has(> .card-side > #facts-strip:not([hidden])) > * { grid-column: 1; width: auto; min-width: 0; max-width: 640px; }
  html.js .ds #entry-card:not(.entry-card--granted) > .drawer__body:has(> .card-side > #facts-strip:not([hidden])) > #entry-issue-result { grid-row: 2; }
  html.js .ds #entry-card:not(.entry-card--granted) > .drawer__body:has(> .card-side > #facts-strip:not([hidden])) > .card-side { grid-column: 2; grid-row: 1 / span 5; align-self: start; max-width: none; display: flex; flex-direction: column; padding: 0 20px; border-left: 1px solid var(--line); margin-bottom: -100vh; }
  html.js .ds #entry-card .card-side > * { width: auto; }
  .ds #entry-card .card-side .facts { display: flex; flex-direction: column; gap: 0; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .ds #entry-card .card-side .facts[hidden] { display: none; }
  .ds #entry-card:not(.entry-card--granted) .card-side:has(> #facts-strip:not([hidden])) > .card-side__title { display: block; margin: 0 0 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); }
  .ds #entry-card .card-side .facts__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 4px 10px; min-height: 44px; padding: 4px 0; border: 0; border-radius: var(--r-s); }
  .ds #entry-card .card-side .facts__item[hidden] { display: none; }
  .ds #entry-card .card-side #facts-strip .facts__item::after { content: none; }
  .ds #entry-card .card-side .facts__item--button:hover { background: none; }
  .ds #entry-card .card-side .facts__label { grid-column: 1; font-size: 13px; line-height: 18px; color: var(--ink-2); white-space: nowrap; }
  /* V5d: значение — поле одной ширины и высоты; пояснение даты или приписка
     к имени — серым справа внутри поля, хозяин срока — строкой под полем.
     Строка-кнопка остаётся 44 px (цель нажатия), поле 34 px — по центру. */
  .ds #entry-card .card-side .facts__field { grid-column: 2; display: flex; align-items: center; gap: 8px; min-width: 0; height: 34px; padding: 0 8px 0 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-s); transition: border-color .12s ease; }
  .ds #entry-card .card-side .facts__item--button:hover .facts__field { border-color: var(--line-control); }
  .ds #entry-card .card-side .facts__value { display: block; flex: 0 1 auto; min-width: 0; max-width: none; padding: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; line-height: 20px; font-weight: 500; text-align: left; color: var(--ink); background: none; border: 0; text-decoration: none; }
  .ds #entry-card .card-side .facts__value:has(> .tag) { display: flex; align-items: center; gap: var(--s-1); text-overflow: clip; }
  .ds #entry-card .card-side .facts__value[data-initial]::before { display: inline-grid; width: 20px; height: 20px; margin-right: 6px; vertical-align: top; font-size: 12px; }
  /* Значение главнее пояснения: дата и слово пустоты не сжимаются, пояснение
     берёт остаток и режется многоточием (полное — в title и имени кнопки).
     Имя человека режется само, но не короче пяти букв после кружка с буквой:
     пояснение при нехватке места уступает первым. */
  .ds #entry-card .card-side .facts__field:has(> .facts__when:not(:empty)) > .facts__value:not([data-initial]) { flex-shrink: 0; }
  .ds #entry-card .card-side .facts__when { flex: 0 1 auto; min-width: 0; margin-left: auto; padding: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .ds #entry-card .card-side .facts__value[data-initial] { min-width: 80px; }
  .ds #entry-card .card-side .facts__value[data-initial] + .facts__when { flex: none; max-width: calc(100% - 88px); }
  .ds #entry-card .card-side .facts__when.facts__when--wait { color: var(--wait); }
  .ds #entry-card .card-side .facts__when.facts__when--risk { color: var(--risk); }
  .ds #entry-card .card-side .facts__sub:not(.facts__when) { grid-column: 2; justify-self: stretch; min-width: 0; padding-left: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 16px; color: var(--ink-3); text-align: left; }
  .ds #entry-card .card-side .facts__item--none .facts__value { font-weight: 400; color: var(--ink-3); }
  .ds #entry-card .card-side .facts__item--unset .facts__field { background: transparent; border-style: dashed; border-color: var(--line-control); }
  .ds #entry-card .card-side .facts__item--unset .facts__value { font-weight: 400; color: var(--ink-2); }
  .ds #entry-card .card-side .pinned-note { margin-top: 16px; padding-top: 0; border-top: 0; gap: 6px; }
  .ds #entry-card .card-side #pinned-note-title { font-size: 13px; line-height: 18px; color: var(--ink-2); }
  .ds #entry-card .card-side .facts__item--wait, .ds #entry-card .card-side .facts__item--late { background: none; }
  .ds #entry-card .card-side :is(.facts--fact .facts__field, .facts__item[data-permanent-disabled] .facts__field) { background: none; border-color: transparent; }
}
.ds .move { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-m); }
.ds .move[hidden] { display: none; }
.ds .move--wait, .ds .move--review { background: var(--wait-soft); border-color: var(--wait-line); }
.ds .move--accepted { background: var(--done-soft); border-color: var(--done-line); }
.ds .move--plain { background: var(--surface-2); border-color: var(--line); }
/* Блок поручения (V5b, COMPONENTS «Блок поручения»): белая панель, цвет
   несёт только шапка — заливка всего блока кричала громче названия. */
.ds .move--handoff { gap: 10px; padding: 0 0 14px; background: var(--surface); }
.ds .move--handoff > :not(.move__head) { margin-inline: 16px; }
.ds .move--handoff:has(> .move__head.state-mark--wait) { border-color: var(--wait-line); }
.ds .move--handoff:has(> .move__head.state-mark--doing) { border-color: var(--accent-line); }
.ds .move--handoff.move--plain { border-color: var(--line); }
/* Зона хода своего дела (V4b, COMPONENTS «Зона хода своего дела»): ход ваш,
   поэтому без панели — отметки серым переключателем, ниже строка «Дальше». */
.ds .move--own { gap: 12px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.ds .move__head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 8px 8px 14px; background: var(--surface-2); border-radius: calc(var(--r-m) - 1px) calc(var(--r-m) - 1px) 0 0; }
.ds .move__head[hidden], .ds .move__task[hidden] { display: none; }
.ds .move--wait .move__head { background: var(--wait-soft); }
.ds .move--mine .move__head { background: var(--accent-soft); }
.ds :is(.move--review, .move--accepted) .move__head { background: var(--done-soft); }
/* Шапка блока поручения — цвет состояния дела (model.md §7): сданное — синее. */
.ds .move--handoff > .move__head { background: var(--state-soft, var(--surface-2)); }
.ds .move__avatar { width: 26px; height: 26px; font-size: 12px; color: var(--c-11); background: var(--surface); border-color: transparent; }
.ds .move__who { font-weight: 600; white-space: nowrap; }
.ds .move__since { font-size: 13px; line-height: 18px; color: var(--ink-2); white-space: nowrap; }
.ds .move--wait .move__since { color: var(--wait); }
.ds .move--mine .move__since { color: var(--accent); }
.ds :is(.move--review, .move--accepted) .move__since { color: var(--done); }
.ds .move--handoff .move__since { color: var(--state, var(--ink-2)); }
.ds .move__head-acts { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.ds .move__head-act, .ds .move__terms .cabinet-issue__summary { min-height: 44px; padding: 0 10px; font-size: 13px; color: var(--ink-2); background: transparent; border-color: transparent; }
.ds .move--wait :is(.move__head-act, .move__terms .cabinet-issue__summary) { color: var(--wait); }
.ds .move--mine :is(.move__head-act, .move__terms .cabinet-issue__summary) { color: var(--accent); }
.ds :is(.move--review, .move--accepted) :is(.move__head-act, .move__terms .cabinet-issue__summary) { color: var(--done); }
.ds .move__head-act:hover, .ds .move__terms .cabinet-issue__summary:hover { background: var(--surface); }
.ds .move__head-act[hidden] { display: none; }
.ds .move__terms:empty { display: none; }
.ds .move__terms .cabinet-issue__summary { height: auto; }
.ds .move__terms .cabinet-issue__summary::after { content: none; }
.ds .move__terms .cabinet-issue__terms-form { width: auto; }
.ds .move__terms .cabinet-issue__terms-fields { position: absolute; top: 100%; left: 8px; right: 8px; z-index: 5; width: auto; margin-top: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--e-pop); }
.ds .move__reminded { font-size: 13px; line-height: 18px; color: var(--ink-2); white-space: nowrap; }
.ds .move__reminded[hidden] { display: none; }
.ds .cabinet-issue__terms-fields.remind__fields { flex-direction: column; align-items: stretch; }
.ds .remind__label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.ds .remind__text { width: 100%; min-height: 72px; resize: vertical; font-size: 15px; line-height: 22px; color: var(--ink); }
.ds .remind__note { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.ds .remind__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ds .remind__asks { align-self: flex-start; height: auto; min-height: 44px; }
.ds .remind-sheet__form { display: contents; }
.ds .remind__asks[hidden] { display: none; }
.ds .move__points { gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.ds .move__points-title { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .move__task { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin-block: 4px 0; }
.ds .move__task dt { font-size: 13px; line-height: 20px; color: var(--ink-2); }
.ds .move__task dd { margin: 0 0 6px; font-size: 15px; line-height: 22px; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
@media (min-width: 768px) {
  .ds .move__head-act, .ds .move__terms .cabinet-issue__summary { min-height: 32px; }
  .ds .move__task { grid-template-columns: 112px 1fr; gap: 8px 16px; }
  .ds .move__task dd { margin: 0; }
}
.ds .move__say { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ds .move__say[hidden] { display: none; }
.ds .move__waits { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; min-width: 0; }
.ds .move__waits[hidden] { display: none; }
.ds .move__waits-text { min-width: 0; overflow-wrap: anywhere; }
.ds .move__step { display: block; width: 100%; min-height: 44px; margin: 0; padding: 8px 12px; font: inherit; font-weight: 400; color: var(--ink); text-align: left; white-space: normal; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; cursor: text; transition: border-color .12s ease; }
.ds .move__step:hover { border-color: var(--line-control); }
.ds .move__step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .move__step-l { display: inline-block; margin-right: 12px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
/* Двоеточие нужно только в тексте строки («Дальше: шаг» читалкой и в копии
   текста); строчный блок, а не .sr-only — абсолютное положение рвёт строку. */
.ds .move__step-colon { display: inline-block; width: 1px; height: 1px; margin-right: -1px; overflow: hidden; clip-path: inset(50%); }
.ds .move__step-v { font-weight: 500; overflow-wrap: anywhere; }
.ds .move__step--empty .move__step-v { font-weight: 400; color: var(--ink-3); }
.ds .move__step[hidden], .ds .move__edit[hidden] { display: none; }
.ds .move__edit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ds .move__edit-label { font-weight: 600; }
.ds .move__edit-field { flex: 1 1 12rem; min-width: 0; min-height: 44px; padding: 8px 10px; font: inherit; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--focus); border-radius: var(--r-s); }
.ds .move__edit-field:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.ds .move__edit-help { flex: 1 1 100%; margin: 0; color: var(--ink-2); }
.ds .move__edit-help:empty { display: none; }
.ds .drawer__title-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ds .drawer__title-edit[hidden], .ds .drawer__title[hidden] { display: none; }
.ds .drawer__title-edit > input.drawer__title-field[type=text] { flex: 1 1 12rem; min-width: 0; min-height: 44px; padding: 6px 10px; font: var(--t-case); letter-spacing: var(--t-case-track); color: var(--ink); background: var(--surface); border: 1px solid var(--focus); border-radius: var(--r-s); }
.ds .drawer__title-field:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.ds .drawer__title-help, .ds .drawer__title-status { flex: 1 1 100%; margin: 0; color: var(--ink-2); }
.ds .drawer__title-status { color: var(--risk); }
.ds .drawer__title-status:empty { display: none; }
.ds .ask { display: flex; flex-direction: column; margin: 0; padding: 16px; background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: var(--r-m); }
.ds .ask[hidden] { display: none; }
.ds .ask__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ds .ask__avatar { width: 22px; height: 22px; font-size: 11px; color: var(--c-11); background: var(--c-4); border-color: transparent; }
.ds .ask__who { margin: 0; min-width: 0; color: var(--c-11); font-size: 13px; line-height: 18px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ds .ask__more { margin-left: auto; padding: 1px 6px; border-radius: var(--r-xs); background: var(--accent-soft); color: var(--c-11); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.ds .ask__more[hidden] { display: none; }
.ds .ask__q { max-width: 56ch; margin: 10px 0 14px; color: var(--ink); font: 500 18px/26px var(--font); letter-spacing: var(--t-tight); white-space: pre-wrap; overflow-wrap: anywhere; }
.ds .move__accept { display: flex; flex-direction: column; gap: 8px; }
.ds .move__accept[hidden] { display: none; }
.ds .move__accept-when { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); overflow-wrap: anywhere; }
.ds .move__accept-label { color: var(--ink-2); }
.ds .move__accept-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ds .move__accept-main { flex: 1 1 100%; min-height: 44px; }
@media (min-width: 768px) {
  .ds .move__accept-main { flex: 0 0 auto; }
}
.ds .move__more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.ds .move__more[hidden], .ds .move__link[hidden], .ds .move__action[hidden] { display: none; }
.ds .move__link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.ds .move__fact { overflow-wrap: anywhere; }
.ds .move__action { min-height: 44px; min-width: 44px; white-space: normal; text-align: left; }
.ds .state-row { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds .state-row[hidden] { display: none; }
.ds .state-row__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.ds .state-row__acts[hidden] { display: none; }
.ds .state-row__line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 100%; min-width: 0; }
.ds .state-row__handed { margin: 0; min-width: 0; color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.ds .state-row__handed[hidden] { display: none; }
/* Скрытые ступени (чужое или выданное дело) не оставляют пустых ячеек:
   видимые делят ширину линейки поровну. */
.ds .seg--state { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .ds .seg--state { flex: 0 1 auto; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .ds .seg--state .seg__item { padding: 0 14px; }
}
.ds .seg--state:not(:has(.seg__item:not([hidden]))) { display: none; }
.ds .seg--state .seg__item { justify-content: center; min-height: 44px; height: auto; padding: 2px 4px; font-size: 14px; line-height: 16px; white-space: normal; text-align: center; border: 0; background: transparent; font-family: inherit; }
.ds .seg--state .seg__item[hidden] { display: none; }
.ds .seg--state .seg__item--on { background: var(--surface); color: var(--state); font-weight: 600; box-shadow: 0 1px 2px rgba(22, 27, 38, 0.12), 0 0 0 1px rgba(22, 27, 38, 0.04); }
.ds .seg--state .seg__item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 1024px) {
  .ds .state-row__line { flex: 1 1 auto; }
  .ds .seg--state .seg__item { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .ds .move--own .seg--state .seg__item { min-height: 30px; }
}
/* Шапка карточки держит только «…» (ЕМ4b1); решения дела — в полосе
   action-bar--card внизу. «…» без пунктов (закрытое дело) не рисуется. */
.ds .card-acts { display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: auto; }
.ds .card-acts__more { font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
/* Полоса прячется вместе с линейкой отметки, когда её прячет подготовка
   поручения (#entry-lifecycle-actions), — как прежде группа в шапке. */
.ds #entry-card:has(#entry-lifecycle-actions[hidden]) #card-bar { display: none; }
.ds .card-due-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font: var(--t-meta); color: var(--ink-2); }
.ds .card-due-line[hidden], .ds .card-due[hidden], .ds .card-due-line__turn[hidden] { display: none; }
.ds .card-due { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: var(--r-s); font-weight: 600; color: var(--ink-2); background: var(--surface-3); }
.ds .card-due--soon { color: var(--wait); background: var(--wait-soft); }
.ds .card-due--over { color: var(--risk); background: var(--risk-soft); }
.ds .card-state { margin: 0; color: var(--ink-3); }
.ds .card-state[hidden] { display: none; }
.ds .card-state.state-mark { align-self: flex-start; max-width: 100%; color: var(--state); white-space: normal; overflow-wrap: anywhere; }
/* Причина в шапке бывает в две строки («Дело у сотрудника: …»): скруглённая пилюля
   с нулевым вертикальным отступом её не вмещала, поэтому плашка — блок с отступами. */
.ds .card-state.state-mark--plate { align-items: flex-start; padding-block: 6px; border-radius: var(--r-s); }
.ds .card-state.state-mark--plate .state-mark__dot { margin-top: 4px; }
.ds .card-state.state-mark--new { color: var(--n-11); }
.ds .card-state.state-mark--later { background: var(--surface); }
/* Телефон (ЕМ4b1, model.md §1): «‹ Назад», ↑↓ и «…» — наверху карточки, в
   строке drawer__bar; внизу одна полоса действий — отметка и решения. Полоса —
   последний ребёнок карточки-колонки, поэтому тело карточки кончается над ней
   и ничего не уходит под неё. У дела с закреплённым полем разговора поле стоит
   над полосой (prototype.html, поручение). */
.ds .ptiles, .ds .prow { display: none; }
@media (max-width: 767.98px) {
  .ds #card-bar { z-index: 5; }
  .ds #entry-card:has(.talk__compose--pinned) .talk__compose--pinned { margin: -6px -16px 0; padding: 8px 10px 12px; background: var(--surface); border-top: 1px solid var(--line); }
  .ds #entry-card:has(.talk__compose--pinned) .talk__compose--pinned .talk__box { box-shadow: none; }
  .ds #entry-card:has(.talk__compose--pinned) .talk__form { max-width: none; }
  .ds #entry-card:has(.talk__compose--pinned) .talk__compose--pinned { bottom: 0; }
  /* M1: подсказке с именем нужна целая строка — отметка «жду ответа» встаёт
     в две короткие строки, промежутки уже. */
  .ds #entry-card .talk__compose--pinned .talk__box { gap: 4px; padding-left: 10px; }
  .ds #entry-card .talk__compose--pinned .talk__asks { gap: 5px; padding: 0 6px; font-size: 12px; line-height: 14px; white-space: normal; text-align: left; }
  .ds #entry-card .talk__compose--pinned .talk__asks > span:last-child { width: min-content; }
}
/* Плитки карточки на телефоне (V5h, COMPONENTS «Плитки карточки на телефоне»):
   у выданного дела с разговором блок поручения свёрнут в плитку .pturn, под
   ней ряд .prow — «Пункты» и «Вернуться»; раскрытое показывается на месте —
   блок поручения между плитками, пункты под рядом, до разговора (узел пунктов
   переносит placeChecklist: порядок Tab совпадает с видом, CSS order нет). */
@media (max-width: 767.98px) {
  .ds #entry-card:has(.talk__compose--pinned):has(#move.move--handoff:not([hidden])) .ptiles { display: block; }
  .ds #entry-card:has(.talk__compose--pinned):has(#move.move--handoff:not([hidden])) .prow { display: flex; gap: 8px; }
  .ds #entry-card:has(.talk__compose--pinned):has(#move.move--handoff:not([hidden])):has(#ptile-turn[aria-expanded="false"]) #move,
  .ds #entry-card:has(.talk__compose--pinned):has(#move.move--handoff:not([hidden])):has(#ptile-points[aria-expanded="false"]) #card-sections { display: none; }
  .ds #entry-card:has(.talk__compose--pinned):has(#move.move--handoff:not([hidden])) :is(#move-handoff-avatar, #move-handoff-who) { display: none; }
  .ds .pturn { display: grid; grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 10px; align-items: center; width: 100%; min-height: 60px; margin: 0; padding: 10px 12px; border: 1px solid var(--wait-line); border-radius: var(--r-m); background: var(--a-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
  .ds #entry-card:has(#move.move--mine) .pturn { border-color: var(--accent-line); background: var(--c-2); }
  .ds #entry-card:has(#move:is(.move--review, .move--accepted)) .pturn { border-color: var(--done-line); background: var(--g-2); }
  .ds .pturn__avatar { width: 26px; height: 26px; font-size: 12px; color: var(--c-11); background: var(--surface); border-color: transparent; }
  .ds .pturn__text { display: block; min-width: 0; }
  .ds .pturn__who { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
  .ds .pturn__task { display: block; overflow: hidden; color: var(--ink-2); font-size: 13px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
  .ds .pturn__chevron { color: var(--wait); transition: transform 0.15s ease; }
  .ds #entry-card:has(#move.move--mine) .pturn__chevron { color: var(--accent); }
  .ds #entry-card:has(#move:is(.move--review, .move--accepted)) .pturn__chevron { color: var(--done); }
  .ds .pturn[aria-expanded="true"] .pturn__chevron { transform: rotate(90deg); }
  .ds .prow__tile { flex: 1 1 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: var(--h-touch); margin: 0; padding: 0 12px; border: 0; border-radius: 10px; background: var(--surface-3); color: var(--ink); font: inherit; font-size: 13px; line-height: 18px; cursor: pointer; }
  .ds .prow__label { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .ds .prow__value { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
  .ds .prow__tile[aria-expanded="true"] { background: var(--n-4); }
  .ds :is(.pturn, .prow__tile):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .ds .prow__tile:disabled { color: var(--ink-2); cursor: default; }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .ds .pturn__chevron { transition: none; }
}
.ds #close-reason { margin: 0; }
.ds .desk-transition { position: fixed; z-index: 60; max-width: calc(100vw - 32px); width: 480px; max-height: 80vh; overflow: auto; padding: 20px; }
.ds .desk-transition form, .ds #contact-form, .ds #event-form, .ds #contacts form { display: flex; flex-direction: column; gap: 16px; }
.ds #close-resolution-section { display: flex; flex-direction: column; gap: 12px; }
.ds #close-resolution-section[hidden] { display: none; }
.ds .form-message { margin: 0; }
.ds #close-resolutions { display: flex; flex-direction: column; gap: 12px; }
.ds #contacts .contact { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ds #contacts form > button, .ds #contact-form > button, .ds #event-form > button { align-self: flex-start; }
.ds #contact-form[hidden], .ds #contacts form[hidden], .ds #event-form[hidden] { display: none; }
.ds .card-plus[hidden] { display: none; }
.ds #checkpoint-form { display: flex; flex-direction: column; gap: 16px; }
.ds #checkpoint-form[hidden], .ds #checkpoint-form .field__error[hidden] { display: none; }
.ds #checkpoint-form .field__error, .ds .checkpoint-form__for { margin: 0; }
.ds .checkpoint-side { align-self: flex-start; flex-direction: row; flex-wrap: nowrap; gap: 2px; max-width: 100%; margin: 0; padding: 3px; border: 0; }
.ds .checkpoint-side .seg__item { flex: 0 1 auto; min-height: 44px; }
.ds .contact-plan__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ds .contact-plan__actions .btn { min-height: 44px; }
.ds .contact-plan__form .field-help { margin: 0; }
.ds #record-compose { position: sticky; bottom: 0; z-index: 1; background: var(--surface); padding: 16px 0 12px; }
/* Предел §5.1.1: закреплённый блок с открытой формой не занимает больше
   половины экрана, иначе лента перестаёт читаться. Уменьшаются высоты полей и
   промежутки — состав формы и цели касания 44 px прежние. */
@media (max-width: 767px) {
 .ds #record-compose { padding: 8px 0 6px; }
 .ds #record-compose #event-form { gap: 8px; }
 .ds #record-compose #event-form .field-help { font-size: 12px; line-height: 16px; }
}
.ds #contacts .contact > button, .ds #contacts .note > button { align-self: flex-start; }
.ds #contacts .contact__text { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ds #contacts .contact__text > p { margin: 0; }
.ds #contacts .contact__outcome { min-height: 44px; margin: 0; padding: 8px 10px; font: inherit; color: var(--ink); text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); cursor: pointer; }
.ds #contacts .contact__outcome:hover:not(:disabled) { border-color: var(--line-control); }
.ds #contacts .contact__outcome--due { font-weight: 600; color: var(--wait); background: var(--wait-soft); border: 1px dashed var(--wait); }
.ds #contacts .contact__outcome--due:hover:not(:disabled) { border-color: var(--wait); }
.ds #contacts .contact__outcome:disabled { cursor: default; border-color: transparent; background: transparent; }
.ds #contacts .contact__outcome-form { display: flex; flex-direction: column; gap: 8px; }
.ds #contacts .contact__when { min-height: 44px; margin: 0; padding: 8px 10px; font: inherit; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); cursor: pointer; }
.ds #contacts .contact__when:hover:not(:disabled) { border-color: var(--line-control); }
.ds #contacts .contact__when--empty { font-weight: 400; color: var(--ink-2); border-style: dashed; }
.ds #contacts .contact__when:disabled { cursor: default; border-color: transparent; background: transparent; }
.ds #contacts .contact__outcome-form .field__error { margin: 0; }
.ds #contacts .contact__outcome-form .field__error[hidden] { display: none; }
.ds #contacts .contact__outcome-form .check { min-height: 44px; align-self: flex-start; }
.ds #contacts .contact__subject { flex-basis: 100%; overflow-wrap: anywhere; }
.ds #contacts .contact__side { font-size: 13px; color: var(--ink-2); }
.ds #contacts .contact__overdue { font-size: 13px; font-weight: 600; color: var(--risk); }
.ds #contacts .note { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ds #events .fact { margin-bottom: 12px; }
/* Человек вставляет в запись идентификатор без пробелов: без этого правила
   у такой строки нет ни одной возможности переноса и вбок едет вся панель. */
.ds #events .fact__text { overflow-wrap: anywhere; }
.ds .text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; word-break: break-word; }
.ds .text-link:hover { color: var(--accent-hover); }
.ds .text-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-s); }
.ds #history-items > .event { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ds .assistant { min-width: 0; }
.ds .assistant__body { min-width: 0; }
.ds .assistant__foot { background: var(--surface); padding-top: 16px; }
.ds .assistant .composer { margin-top: 8px; align-items: flex-end; }
.ds .assistant .composer__input { border: 0; background: transparent; padding: 4px; }
.ds .assistant .field__help { margin-top: 8px; }
.ds .proposal { overflow-wrap: anywhere; margin-bottom: 16px; }
.ds .proposal__actions { flex-wrap: wrap; }
.ds .proposal .text-meta { margin-top: 8px; }
.ds #status:empty { display: none; }
.ds .catalog-screen { display: flex; flex-direction: column; width: 100%; max-width: 760px; min-width: 0; padding-top: var(--s-2); }
.ds .catalog-screen__tabs { padding: 0 var(--s-6); }
.ds .catalog-screen__tools { display: flex; gap: var(--s-2); padding: var(--s-4) var(--s-6) var(--s-2); }
.ds .catalog-screen__tools .input { flex: 1; min-width: 0; }
.ds .catalog-screen__create .field-help { padding: var(--s-3) var(--s-6) 0; }
.ds .catalog-screen__archive { padding: var(--s-4) var(--s-6); }
.ds .catalog-screen__archive > .disclosure { display: flex; }
.ds .catalog-screen__archive > summary::after { content: none; }
.ds .catalog-screen__archive > .disclosure__body { margin: var(--s-2) calc(-1 * var(--s-6)) 0; padding: 0; }
.ds #catalog-ask-choice .radio { flex-direction: row; align-items: center; font-size: 14px; font-weight: 500; }
.ds .catalog-ask__choice { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; padding: 0; border: 0; }
/* Плашка «… отправлено» всплывает поверх страницы и не сдвигает карточку со
   списком (PL13): в потоке она опускала всё на свою высоту, и прокрутка к
   последнему сообщению уезжала под поле «Написать…». В ней только текст,
   поэтому нажатия проходят сквозь неё; встаёт под шапками (--status-top
   ставит notice), чтобы не закрывать их кнопки. */
.ds #status:not(:empty) { position: fixed; z-index: 58; top: calc(var(--status-top, 0px) + var(--s-2)); left: 50%; width: max-content; max-width: min(560px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; font-size: 13px; line-height: 18px; padding: 10px 16px; background: var(--done-soft); color: var(--done); border: 1px solid var(--done-line); border-radius: var(--r-m); box-shadow: var(--e-pop); overflow-wrap: anywhere; }
/* Угасшая плашка только прозрачна: текст остаётся в innerText для тех, кто
   читает сказанное после угасания. */
.ds #status.status--gone { opacity: 0; transition: opacity 0.2s ease; }
.ds #status.error { background: var(--risk-soft); color: var(--risk); border-color: var(--risk-line); }
.ds #today-summary[hidden] { display: none; }
.ds .desk-transition { inset: 50% auto auto 50%; width: min(480px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); padding: 0; transform: translate(-50%, -50%); }
.ds .desk-transition[data-ds-popover-panel]:not([hidden]) { animation: none; }
.ds .desk-transition[hidden] { display: none; }
.ds .desk-transition__title { margin: 0; font-size: 18px; font-weight: 600; }
.ds .desk-transition__head { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.ds .desk-transition__head .field-help { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.ds .desk-transition__head .field-help:empty { display: none; }
.ds .desk-transition__top { display: flex; align-items: center; gap: 8px; }
.ds .desk-transition__top .desk-transition__title { flex: 1 1 auto; }
.ds #lifecycle-close[hidden], .ds .desk-transition__send[hidden] { display: none; }
.ds .desk-transition--issue .desk-transition__head { border-bottom: 0; }
.ds .desk-transition--issue .desk-transition__foot { align-items: center; background: var(--surface-2); }
.ds .desk-transition--issue .desk-transition__foot button[type=submit] { order: 0; }
.ds .desk-transition > form { position: relative; z-index: 1; gap: 0; }
.ds .desk-transition__body { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; }
.ds .desk-transition__foot { position: relative; z-index: 1; flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.ds .desk-transition__foot button[type=submit] { order: -1; }
.ds .desk-transition__foot button { min-height: 44px; }
.ds #defer-focus { display: flex; flex-direction: column; gap: 12px; }
.ds #defer-focus[hidden] { display: none; }
.ds #defer-focus p { margin: 0; }
.ds .defer-window__field { display: flex; flex-direction: column; gap: 4px; }
.ds .defer-window__field[hidden] { display: none; }
.ds .defer-window__event-toggle { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--accent); cursor: pointer; }
.ds .defer-window__event-toggle::after { content: " ▾"; }
.ds .defer-window__event-toggle[aria-expanded="true"]::after { content: " ▴"; }
.ds #defer-reason-field[hidden],
.ds #defer-event-field[hidden],
.ds #defer-person-field[hidden],
.ds #defer-previous-trigger[hidden],
.ds #defer-owner-note[hidden],
.ds #defer-error[hidden],
.ds #defer-conflict-continue[hidden] { display: none; }
.ds #defer-checker, .ds #defer-reason, .ds #defer-event-text, .ds #defer-person { min-height: 44px; }
.ds #close-closure, .ds #return-closure { display: flex; flex-direction: column; gap: 12px; }
.ds #close-closure[hidden], .ds #return-closure[hidden] { display: none; }
.ds #close-closure p, .ds #return-closure p { margin: 0; }
.ds #close-closure label, .ds #return-closure label { display: flex; flex-direction: column; gap: 4px; }
.ds #return-reason { min-height: 44px; }
/* Поле растёт по тексту, как заметка на полях: с галочкой «Повторить» окно с
   точками на 1440×900 иначе не помещается без прокрутки (P1, c5-close). */
.ds .close-window__field textarea { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 400; line-height: 22px; resize: vertical; field-sizing: content; max-height: 160px; }
/* На телефоне textarea карточки прячут прокрутку (#entry-card textarea); здесь
   поле упирается в max-height, и без прокрутки хвост текста недоступен. */
.ds #entry-card .close-window__field textarea { overflow-y: auto; }
.ds #accept-closure, .ds #rework-closure { display: flex; flex-direction: column; gap: 12px; }
.ds #accept-closure[hidden], .ds #rework-closure[hidden] { display: none; }
.ds #accept-closure p, .ds #rework-closure p { margin: 0; }
.ds #rework-closure .date-chips { margin-top: -6px; }
.ds .accept-window__facts { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ds .accept-window__fact { display: flex; flex-direction: column; gap: 2px; }
.ds .accept-window__fact dt { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.ds .accept-window__fact dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.ds .accept-window__field { display: flex; flex-direction: column; gap: 4px; }
.ds .accept-window__field textarea { width: 100%; min-height: 60px; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 400; line-height: 22px; resize: vertical; }
.ds .accept-window .error { color: var(--risk); }
.ds .accept-window [aria-invalid="true"] { border-color: var(--risk); }
.ds .accept-window__close { min-height: 44px; align-items: center; }
.ds .close-window__blocked { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid var(--risk-line); border-radius: var(--r-m); background: var(--risk-soft); color: var(--risk); font-size: 14px; line-height: 20px; }
.ds .close-window__blocked[hidden] { display: none; }
.ds .close-window__blocked p { margin: 0; }
.ds .close-window__blocked .btn { min-height: 44px; }
.ds .close-window__agreement { display: flex; flex-direction: column; gap: 8px; align-self: stretch; color: var(--ink); }
.ds .close-window__agreement[hidden] { display: none; }
.ds .close-window__agreement-field { display: flex; flex-direction: column; gap: 4px; }
.ds .close-window__agreement-field textarea { width: 100%; }
.ds .close-window__agreement-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ds .child-cases { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-height: 44px; margin: 0; padding: 10px 0; font-size: 14px; line-height: 20px; color: var(--ink); }
.ds .child-cases[hidden] { display: none; }
.ds .child-cases__count { font-weight: 600; }
.ds .child-cases__state { color: var(--ink-2); }
.ds .close-children { display: flex; flex-direction: column; gap: 12px; }
.ds .close-children[hidden] { display: none; }
.ds .close-children__lead, .ds .close-children__why { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.ds .close-children__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-m); }
.ds .close-children__item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.ds .close-children__item:last-child { border-bottom: 0; }
.ds .close-children__link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; font-size: 14px; line-height: 20px; color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
.ds .close-children__state { font-size: 14px; line-height: 20px; color: var(--ink); overflow-wrap: anywhere; }
.ds .close-children__item--closed .close-children__link,
.ds .close-children__item--closed .close-children__state { color: var(--ink-2); }
.ds .close-repeat { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ds .close-repeat[hidden], .ds .close-repeat__when[hidden], .ds .close-repeat__date[hidden], .ds #close-repeat-summary[hidden] { display: none; }
.ds #close-closure .close-repeat label.check { flex-direction: row; align-items: center; min-height: 44px; }
.ds #close-closure .close-repeat__date[hidden] { display: none; }
.ds .close-repeat__toggle { font-size: 15px; line-height: 22px; font-weight: 600; }
.ds .close-repeat__when { display: flex; flex-direction: column; gap: 8px; padding-left: 26px; }
.ds .close-repeat__choices { display: flex; flex-wrap: wrap; column-gap: 16px; }
.ds #close-closure .close-repeat__when .date-chips { margin-top: -4px; }
.ds .card-repeat-link { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.ds .card-repeat-link[hidden] { display: none; }
.ds .card-repeat-link__line { display: block; }
.ds .card-repeat-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
.ds #lifecycle[data-close-children-blocked] #lifecycle-help,
.ds #lifecycle[data-close-children-blocked] .close-window__field,
.ds #lifecycle[data-close-children-blocked] #close-repeat,
.ds #lifecycle[data-close-children-blocked] #close-resolution-section,
.ds #lifecycle[data-close-children-blocked] #close-checklist-note { display: none; }
.ds .close-points { display: flex; flex-direction: column; gap: 8px; }
.ds .close-points[hidden] { display: none; }
.ds .close-points__head { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.ds .close-points__list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-m); }
.ds .close-points__list:empty { display: none; }
.ds .close-point { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 12px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ds .close-point:last-child { border-bottom: 0; }
.ds .close-point__title { padding: 0; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.ds .close-point__choice { align-self: flex-start; }
.ds .close-point .seg__item { min-height: 44px; }
.ds .close-points p, .ds #close-checklist-note, .ds #close-error { margin: 0; }
.ds #close-checklist-note[hidden], .ds #close-error[hidden], .ds #transition-note[hidden] { display: none; }
.ds #defer-conflict-continue { min-height: 44px; }
.ds .desk-transition__foot #close-transition { min-height: 44px; }
.ds #command-results { display: flex; flex-direction: column; margin-top: 12px; max-height: 50vh; overflow: auto; }
.ds #command-results button { text-align: left; justify-content: flex-start; min-height: 44px; }
.ds #command-results .command-fact { min-height: 44px; color: var(--ink); text-decoration: none; }
.ds .command-fact__name, .ds .command-fact .nav-item__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds .date-chips[hidden] { display: none; }
.ds .date-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ds .form-grid > .date-chips { grid-column: 1 / -1; }
.ds .date-chips .chip:disabled { opacity: 0.55; cursor: not-allowed; }
.ds select:has(option[value=unspecified]:checked), .ds select:has(option[value='']:checked) { border-style: dashed; }
.ds #entries.desk-today { display: flex; flex-direction: column; gap: 20px; padding: 20px; }
.ds #entries.desk-today .empty { padding: 4px 0; }
@media (max-width: 767.98px) {
  .ds #entries.desk-today:has(> .queue--view) { gap: var(--s-2); padding-top: 0; }
}
.ds #entries.desk-today .queue__body { margin: 0; padding: 0; list-style: none; }
.ds #entries.desk-today .desk-today__item.task-row--hierarchy { position: relative; left: -8px; width: calc(100% + 8px); padding-right: var(--s-4); padding-left: 0; }
.ds #entries.desk-today .desk-today__item:not(:last-child) .task-row { border-bottom: 1px solid var(--line); }
.ds #entries.desk-today .task-row { width: 100%; border-bottom: 0; text-align: left; }
/* Экраны групп строки линиями не делят, но граница «важные сверху» (task-row--imp-last) видна и здесь. */
.ds #entries.desk-today .task-row.task-row--imp-last, .ds #entries.desk-today .desk-today__item.task-row--imp-last .task-row { border-bottom: 1px solid var(--line-control); }
.ds #today-summary { display: block; margin: 20px 20px 0; }
.ds .task-row .mark { align-self: center; }
.ds .checklist { display: flex; flex-direction: column; gap: 6px; }
.ds .checklist[hidden] { display: none; }
.ds .checklist__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ds .checklist__head h2 { margin: 0; }
.ds .checklist__count { flex-shrink: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds .checklist__progress { display: block; flex: 0 0 84px; height: 5px; overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); }
.ds .checklist__progress[hidden] { display: none; }
.ds .checklist__progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width var(--dur-panel) var(--ease-out); }
.ds .checklist__status { margin: 0; color: var(--done); font-size: 13px; }
.ds .checklist__status.error { color: var(--risk); }
.ds .checklist__items { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ds .checklist__items[hidden] { display: none; }
.ds .checklist__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; min-height: 36px; padding: 0 8px; border-radius: var(--r-s); transition: background-color var(--dur-fast) var(--ease-out); }
.ds .checklist__item:hover, .ds .checklist__item:focus-within { background: var(--surface-2); }
.ds .checklist__check { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 36px; cursor: pointer; }
.ds .checklist__check .checklist__mark { appearance: none; width: 18px; height: 18px; min-width: 18px; min-height: 18px; margin: 0; border-radius: 50%; background: var(--surface) center / 12px no-repeat; box-shadow: inset 0 0 0 1.5px var(--line-control); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.ds .checklist__check .checklist__mark:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ds .checklist__check .checklist__mark:checked { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); box-shadow: none; }
.ds .checklist__check .checklist__mark:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .checklist__check .checklist__mark:disabled { cursor: default; }
.ds form.checklist__check { margin: 0; }
/* Страница кабинета без JS: галочка — кнопка формы, и под палец мерится она
   сама, а не её подпись (цель 44×44); кружок той же галочки рисует ::before. */
.ds .checklist__check button.checklist__mark, .ds .checklist__check button.checklist__mark:checked { position: relative; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--r-s); background: none; box-shadow: none; }
.ds .checklist__check button.checklist__mark:hover { box-shadow: none; }
.ds .checklist__check button.checklist__mark::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--surface) center / 12px no-repeat; box-shadow: inset 0 0 0 1.5px var(--line-control); transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.ds .checklist__check button.checklist__mark:hover:not(:disabled)::before { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ds .checklist__check button.checklist__mark[aria-pressed=true]::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); box-shadow: none; }
.ds .checklist__meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.ds .checklist__meta[hidden] { display: none; }
.ds .checklist__child-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; margin: 0; }
.ds .checklist__child-state .chip { flex: 0 1 auto; max-width: 240px; height: 24px; min-height: 24px; padding: 0 8px; border: 0; border-radius: 12px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds .checklist__child-state .checklist__child-action { height: auto; padding: 3px 8px; line-height: 18px; white-space: normal; overflow-wrap: anywhere; }
.ds .checklist__text { min-width: 0; padding: 8px 0; color: var(--ink); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.ds .checklist__item[data-completed=true] .checklist__text { color: var(--ink-2); }
.ds .checklist__child { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-width: 0; padding: 8px 0; }
.ds .checklist__item--child { grid-template-columns: auto minmax(min(14em, 100%), 1fr) minmax(0, auto); }
.ds .checklist__child-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 36px; color: var(--ink-2); }
.ds .checklist__child-kind { color: var(--ink-2); font-size: 12px; line-height: 16px; }
.ds .checklist__child-link { min-width: 0; padding: 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ds .checklist__child-link:hover { color: var(--accent); text-decoration: underline; }
.ds .checklist__child-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .checklist__edit-wrap, .ds .checklist__add-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ds .checklist__more { flex: none; width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; border-radius: var(--r-xs); color: var(--ink-2); }
.ds .checklist__more:hover, .ds .checklist__more[aria-expanded=true] { background: var(--surface-3); color: var(--ink); }
.ds .checklist__menu { min-width: 240px; }
.ds .checklist__tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.ds .checklist__pill { display: inline-flex; align-items: center; gap: 5px; max-width: 180px; height: 24px; min-height: 24px; padding: 0 8px; border: 0; border-radius: 12px; background: var(--surface-3); color: var(--ink-2); font: 500 12px/16px var(--font); white-space: nowrap; }
.ds button.checklist__pill { cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.ds button.checklist__pill:hover, .ds button.checklist__pill[aria-expanded=true] { background: var(--n-4); color: var(--ink); }
.ds button.checklist__pill:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .checklist__pill--who { padding-left: 3px; }
.ds .checklist__pill-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ds .checklist__ava { width: 18px; height: 18px; }
.ds .checklist__by { flex: none; color: var(--ink-2); font-size: 12px; line-height: 16px; white-space: nowrap; }
.ds .checklist__pill--soon, .ds button.checklist__pill--soon:hover { color: var(--wait); background: var(--wait-soft); }
.ds .checklist__pill--over, .ds button.checklist__pill--over:hover { color: var(--risk); background: var(--risk-soft); }
.ds .checklist__item[data-completed=true] .checklist__pill { color: var(--ink-2); background: var(--surface-3); }
.ds .checklist__add { display: block; }
.ds .checklist__add[hidden] { display: none; }
.ds .checklist__add-row { flex-wrap: nowrap; gap: 10px; min-height: 36px; padding: 0 8px; border-radius: var(--r-s); }
.ds .checklist__add-icon { flex: none; color: var(--accent); }
.ds #checklist-new-text, .ds #move-handoff-points-new { flex: 1 1 auto; width: auto; min-height: 36px; padding: 0; border: 0; border-radius: var(--r-s); background: transparent; box-shadow: none; min-width: 0; text-overflow: ellipsis; cursor: text; }
.ds #checklist-new-text::placeholder, .ds #move-handoff-points-new::placeholder { color: var(--ink-2); opacity: 1; }
.ds #checklist-new-text:focus, .ds #checklist-new-text:not(:placeholder-shown), .ds #move-handoff-points-new:focus, .ds #move-handoff-points-new:not(:placeholder-shown) { padding: 7px 10px; border: 1px solid var(--line-control); background: var(--surface); }
.ds #checklist-new-text:focus, .ds #move-handoff-points-new:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.ds #checklist-new-text:focus::placeholder, .ds #move-handoff-points-new:focus::placeholder { color: var(--ink-2); }
.ds .checklist__add-submit { flex: none; }
.ds .checklist__add-row:has(.checklist__add-input:placeholder-shown) .checklist__add-submit { display: none; }
.ds .checklist__fold { display: flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 32px; padding: 0 8px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink-2); font-size: 13px; line-height: 18px; cursor: pointer; }
.ds .checklist__fold[hidden] { display: none; }
.ds .checklist__fold:hover { background: var(--surface-2); color: var(--ink); }
.ds .checklist__fold:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .checklist__fold-icon { transition: transform var(--dur-fast) var(--ease-out); }
.ds .checklist__fold[aria-expanded=true] .checklist__fold-icon { transform: rotate(90deg); }
@media (max-width: 767px) { .ds .checklist__fold { min-height: 44px; } }
@media (hover: hover) and (min-width: 768px) {
 .ds .checklist__more { opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
 .ds .checklist__item:hover .checklist__more, .ds .checklist__item:focus-within .checklist__more, .ds .checklist__more[aria-expanded=true] { opacity: 1; }
}
.ds #checklist-promotion-dialog { width: min(480px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 32px)); }
.ds #checklist-promotion-dialog .dialog__body { overflow: auto; }
.ds #checklist-promotion-text { margin: 0; }
@media (min-width: 1480px) { .ds .workspace--assistant { grid-template-columns: minmax(320px,1fr) minmax(480px,830px) 340px; } }
@media (min-width: 1024px) {
 .ds .delegation-handoff__states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .ds:has([data-filter=today][aria-pressed=true]) .workspace__list:has(#entries.desk-today) { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-content: start; overflow: auto; }
 .ds:has([data-filter=today][aria-pressed=true]) .workspace__list:has(#entries.desk-today) > * { grid-column: 1 / -1; }
 @container (min-width: 760px) {
  .ds:has([data-filter=today][aria-pressed=true]) .workspace__list:has(#entries.desk-today) > :not(#today-aside) { grid-column: 1; }
  .ds:has([data-filter=today][aria-pressed=true]) .workspace__list:has(#entries.desk-today) > #today-aside { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 20px 16px; border-top: 0; border-left: 1px solid var(--line); }
 }
}
@media (max-width: 1279px) { .ds .workspace--assistant > .drawer { display: none; } .ds .workspace--assistant > .assistant { position: absolute; inset: 0 0 0 auto; width: min(720px, 86%); } .ds .form-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 767px) {
 .ds #contacts .contact { padding: 12px 0; gap: 8px; }
 .ds .app__main { flex: 1; }
 .ds .drawer__body { gap: 8px; }
 .ds .desk-view { display: none; }
 .ds .source { padding: 8px 10px; }
 .ds .source__text { font-size: 14px; line-height: 20px; }
 .ds .source__details:not([open]) .source__text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
 .ds .source__toggle { display: block; margin-top: 4px; color: var(--accent); font-size: 13px; line-height: 18px; font-weight: 600; }
 .ds .source__details[open] .source__toggle-more, .ds .source__toggle-less { display: none; }
 .ds .source__details[open] .source__toggle-less { display: inline; }
 .ds .drawer__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 23px; line-height: 29px; }
 .ds .context-picker { left: var(--safe-left); right: var(--safe-right); top: auto; bottom: 0; width: auto; max-width: none; max-height: min(85dvh, 620px); border-radius: 18px 18px 0 0; }
 .ds .context-picker .popover__foot { padding-bottom: 10px; }
 .ds .context-picker .popover__foot .btn { flex: 1; min-height: 44px; }
 .ds .toolbar { gap: 8px; }
 .ds .drawer__bar { padding: 8px; gap: 4px; }
 .ds .drawer__pos { font-size: 12px; }
 .ds #back-to-list { padding: 0 8px; }
 .ds #assistant-toggle { margin-left: auto; }
 .ds .workspace--assistant > .assistant { position: fixed; inset: 0; width: auto; z-index: 45; }
 .ds button, .ds a[href], .ds input:not([type=hidden]), .ds textarea, .ds select, .ds summary { min-height: 44px; min-width: 44px; }
 .ds .qf .qf__chip, .ds .qf .qf__more { min-height: 34px; min-width: 0; }
 .ds input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .ds textarea, .ds select { min-height: 44px; min-width: 44px; font-size: 16px; }
 .ds .drawer__title-edit > input.drawer__title-field[type=text] { font-size: 23px; line-height: 29px; }
 .ds input[type=checkbox], .ds input[type=radio] { width: 18px; height: 18px; min-width: 18px; min-height: 18px; }
 .ds .outcome__input { position: absolute; width: 44px; height: 44px; }
 .ds .outcome__item { min-height: 56px; }
 .ds .outcome__item .kbd { display: none; }
 .ds .outcome__item { grid-template-columns: 20px minmax(0,1fr); }
 .ds .outcome__hint { display: none; }
 .ds .outcome__item:has(:checked) .outcome__hint { display: block; }
 .ds .task-row__title { align-self: center; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
 /* Закрытые, отложенные и поручения держат заголовок целиком (overflow: visible
    в их правилах): кламп сжал бы рамку, а текст лёг бы поверх подписей. */
 .ds #entries :is(.task-row--closed, .task-row--deferred, .task-row--assignment) .task-row__title { min-height: 44px; display: flex; align-items: center; align-self: auto; -webkit-line-clamp: none; }
 .ds .task-row__mark { height: 44px; }
 .ds .closed-return .btn { min-height: 44px; }
 .ds .tabbar { grid-auto-columns: minmax(min-content, 1fr); }
 .ds .closed-return-panel { right: 0; bottom: 0; left: 0; width: auto; max-width: none; }
 .ds .closed-return-panel .sheet__handle { display: block; }
 .ds .property-picker .sheet__handle { display: block; }
 .ds #row-menu .kbd { display: none; }
 .ds .task-row--picking .task-row__pick { margin-top: 11px; }
 .ds .date-pick, .ds .who-pick, .ds .field-pick { width: auto; }
 .ds .closed-return-panel .sheet__head { padding: 6px 16px 10px; }
 .ds .closed-return-panel .sheet__body { padding: 0 16px 16px; }
 .ds .closed-return-panel .sheet__foot { padding: 10px 16px 28px; }
 .ds .desk-transition { left: var(--safe-left); right: var(--safe-right); bottom: 0; top: auto; width: auto; max-width: none; height: auto; max-height: calc(100dvh - 24px); transform: none; border-radius: 18px 18px 0 0; }
 .ds .desk-transition__head { padding: 18px 16px 4px; border-bottom: 0; }
 .ds .desk-transition__body { padding: 14px 16px 18px; }
 .ds .desk-transition__foot { padding: 12px 16px 16px; }
 .ds .desk-transition__foot button[type=submit] { flex: 1 1 auto; }
 .ds .workspace__list:has(#entries.desk-today) { display: flex; }
 .ds .workspace__list:has(#entries.desk-today) > #today-aside { margin: 0; padding: 20px; border-top: 1px solid var(--line); border-left: 0; }
 .ds .action-bar { gap: 8px; }
 .ds .action-bar .save-state { flex-basis: 100%; }
 .ds .task-row__due, .ds .task-row__do-by { font-size: 13px; }
 .ds .checklist__item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0 4px; padding: 0 4px 0 0; }
 .ds .checklist__check { min-width: 44px; min-height: 44px; }
 .ds .checklist__item > .checklist__text { align-self: center; }
 .ds .checklist__item > .checklist__edit-wrap { grid-column: 2 / -1; }
 .ds .checklist__child-icon { min-width: 44px; min-height: 44px; }
 .ds .checklist__item--child { grid-template-columns: 44px minmax(0, 1fr) auto; }
 .ds .checklist__item--child .checklist__meta:not([hidden]) { display: contents; }
 .ds .checklist__item--child .checklist__child-state { grid-column: 2 / -1; grid-row: 2; flex-wrap: wrap; justify-content: flex-start; padding-bottom: 8px; }
 .ds .checklist__item--child .checklist__more { grid-column: 3; grid-row: 1; }
 .ds .checklist__item--tagged .checklist__meta:not([hidden]) { display: contents; }
 .ds .checklist__item--tagged .checklist__tags { grid-column: 2 / -1; grid-row: 2; justify-content: flex-start; padding-bottom: 10px; }
 .ds .checklist__item--tagged .checklist__more { grid-column: 3; grid-row: 1; }
 .ds .checklist__pill { position: relative; }
 .ds .checklist__pill::after { content: ""; position: absolute; inset: -10px -3px; }
 .ds .checklist__add-row { padding: 0 4px 0 12px; }
 .ds #checklist-new-text { min-height: 44px; }
 .ds .task-row__open { padding: 13px 16px 8px; }
 .ds .task-row--child .child-breadcrumb { padding: 0 16px 14px 42px; }
 .ds .task-row--hierarchy { --hierarchy-indent: 0px; grid-template-columns: var(--hierarchy-indent) 44px minmax(0, 1fr); padding: 8px 16px 12px 12px; }
 .ds [data-hierarchy-flat="true"] > .task-row--hierarchy { padding-left: 16px; }
 .ds .task-row--hierarchy-depth-1 { --hierarchy-indent: 10px; }
 .ds .task-row--hierarchy-depth-2 { --hierarchy-indent: 20px; }
 .ds .task-row--hierarchy-depth-3, .ds .task-row--hierarchy-depth-capped { --hierarchy-indent: 30px; }
 .ds .child-breadcrumb a { display: inline-flex; align-items: center; min-width: var(--h-touch); min-height: var(--h-touch); max-width: 100%; }
 .ds #entry-card textarea:not(:where(.action-bar__field)) { overflow-y: hidden; }
 .ds .checklist__edit-wrap { grid-column: 2 / -1; }
 .ds .checklist__more { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
 .ds .checklist__edit-wrap .btn { flex: 1 1 150px; min-height: 44px; }
 .ds .delegation-workflow__step { padding-bottom: calc(var(--s-10) + var(--s-10) + var(--s-6)); }
 .ds .delegation-workflow__foot { position: fixed; right: 0; bottom: 0; left: 0; margin: 0; padding-right: var(--s-4); padding-left: var(--s-4); box-shadow: var(--e-pop); }
 .ds .delegation-workflow__foot > .save-state { order: 3; }
 .ds .delegation-workflow__foot > .btn { flex: 1 1 150px; }
 .ds .delegation-handoff { padding-bottom: calc(var(--s-10) + var(--s-10) + var(--s-6)); }
 .ds .delegation-handoff__foot { position: fixed; right: 0; bottom: 0; left: 0; margin: 0; padding-right: var(--s-4); padding-left: var(--s-4); box-shadow: var(--e-pop); }
 .ds .delegation-handoff__foot .btn { flex: 1 1 150px; }
}
@media (min-width: 768px) {
 .ds #entry-card .drawer__body { gap: 12px; }
 /* Решения карточки («Сделано…», «Отложить…», «Вернуть в разбор…», выдача,
    «Не делать…») — одно модальное окно по макету: сверху по центру, поверх
    затемнения. positionPopover (ds.js) ставит инлайновые left/top от кнопки,
    их перебивает только !important; затемнение — тень окна, отдельного
    элемента нет. */
 .ds .desk-transition[data-ds-popover-panel][data-transition-mode] { position: fixed; inset: auto; left: 50% !important; top: 72px !important; bottom: auto; transform: translateX(-50%); width: 560px; max-width: none; height: auto; max-height: calc(100dvh - 144px); border-radius: var(--r-l); box-shadow: 0 0 0 100vmax rgba(22, 27, 38, 0.38); }
 .ds .desk-transition__foot { flex-direction: row; }
}
@media (max-width: 239px) {
 .ds .tabs { gap: 0; }
 .ds .tabs__item { flex: 1 1 0; min-width: 0; padding-right: 2px; padding-left: 2px; white-space: normal; overflow-wrap: anywhere; }
 .ds .tabbar { grid-auto-columns: minmax(0, 1fr); min-width: 0; }
 .ds a.tabbar__item { min-width: 0; min-height: 44px; width: 100%; max-width: 100%; padding-right: 0; padding-left: 0; white-space: normal; overflow-wrap: anywhere; }
 .ds .tabbar__item > span { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
}
.ds.auth { display: flex; align-items: flex-start; justify-content: center; min-height: 100dvh; padding: var(--s-6) var(--s-4) var(--s-10); }
.ds .auth__panel { display: flex; flex-direction: column; gap: var(--s-4); width: min(420px, 100%); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--e-1); }
.ds .auth__brand { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-3); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .auth__logo { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--ink-inv); }
.ds .auth__title, .ds .auth__lead, .ds .auth__error { overflow-wrap: anywhere; }
.ds .auth__lead { color: var(--ink-2); }
.ds .auth__form { display: flex; flex-direction: column; gap: var(--s-4); margin: 0; }
.ds .auth__form input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { min-height: var(--h-touch); }
.ds .auth__link a { display: inline-flex; align-items: center; min-height: var(--h-touch); }
.ds .account { position: relative; flex: 0 0 auto; }
.ds .account__toggle { min-width: var(--h-touch); max-width: 200px; }
.ds .account__login { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ds .account__menu { position: absolute; z-index: 40; top: calc(100% + var(--s-2)); right: 0; width: min(280px, calc(100vw - var(--s-8))); }
.ds .account__who { display: block; overflow-wrap: anywhere; }
.ds .account__item { justify-content: flex-start; gap: var(--s-2); min-height: var(--h-touch); }
@media (max-width: 767px) {
 .ds .account__login { display: none; }
}

/* Сообщение об отказе границы доступа. Своё правило нужно потому, что на узком
   экране карточка дела лежит фиксированным слоем поверх всей страницы: в
   обычном потоке сообщение со ссылкой на вход и кнопкой «Повторить» оказалось
   бы под ней и до них нельзя было бы дотянуться. Внутри модального окна тот же
   узел возвращается в поток — окно и так лежит в верхнем слое. */
.ds .session-notice { position: fixed; z-index: 61; top: var(--s-3); right: var(--s-3); left: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2); margin: 0 auto; max-width: 640px; padding: var(--s-3); font-size: 14px; color: var(--risk); background: var(--risk-soft); border: 1px solid var(--risk-line); border-radius: var(--r-m); box-shadow: var(--e-pop); }
.ds dialog .session-notice { position: static; max-width: none; margin-top: var(--s-3); box-shadow: none; }
.ds .session-notice__text { flex: 1 1 100%; text-align: center; }
.ds .session-notice .btn { min-height: var(--h-touch); }

.ds.cabinet { display: flex; justify-content: center; min-height: 100dvh; padding: var(--s-4) var(--s-4) var(--s-10); background: var(--bg); }
.ds .cabinet__panel { display: flex; flex-direction: column; gap: var(--s-5); width: min(640px, 100%); min-width: 0; }
.ds .cabinet__brand { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-3); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .cabinet__logo { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--ink-inv); }
.ds .cabinet__title { overflow-wrap: anywhere; text-wrap: pretty; }
.ds .cabinet__lead, .ds .cabinet__error { overflow-wrap: anywhere; }
.ds .cabinet-nav { display: flex; }
.ds .cabinet-back { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--h-touch); padding-right: var(--s-2); color: var(--accent); font-weight: 500; }
.ds .cabinet-back:hover { color: var(--accent-hover); }
.ds .cabinet-list { gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.ds .cabinet-list__row { min-width: 0; }
.ds .cabinet-item { gap: var(--s-2); padding: var(--s-4); color: inherit; text-decoration: none; }
.ds .cabinet-item:hover { border-color: var(--line-2); box-shadow: var(--e-pop); }
.ds .cabinet-item__title { font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; text-wrap: pretty; }
.ds .cabinet-item__meta { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.ds .cabinet-item__mark { display: block; padding: var(--s-2) var(--s-3); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.ds .cabinet-item__mark--none { padding: 0; color: var(--ink-3); }
.ds .cabinet-sheet { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--e-1); }
.ds .cabinet-sheet__given { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.ds .cabinet-sheet__waits { color: var(--ink-2); }
.ds .cabinet-sheet__text { font-size: 15px; line-height: 23px; white-space: pre-line; overflow-wrap: anywhere; text-wrap: pretty; }
.ds .cabinet-sheet__case { font-size: 13px; line-height: 18px; color: var(--ink-2); overflow-wrap: anywhere; }
.ds .cabinet-strip__item--overdue { background: var(--risk-soft); border-color: var(--risk-line); }
.ds .cabinet-strip__item--overdue .facts__value { color: var(--risk); }
.ds .cabinet-strip__value--caution { color: var(--wait); }
.ds .cabinet-quote { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; margin: 0; padding: var(--s-3); background: var(--surface-2); border-left: 3px solid var(--accent-line); border-radius: var(--r-s); }
.ds .cabinet-quote__head { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ds .cabinet-terms { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; }
.ds .cabinet-terms__item { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: var(--s-3); border-left: 2px solid var(--line-2); }
.ds .cabinet-terms__label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); }
.ds .cabinet-terms__text { margin: 0; font-size: 15px; line-height: 23px; white-space: pre-line; overflow-wrap: anywhere; text-wrap: pretty; }
.ds .cabinet-terms__item--unknown { border-left-style: dashed; }
.ds .cabinet-terms__item--unknown .cabinet-terms__text { color: var(--ink-3); }
.ds .cabinet-now { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.ds .cabinet-now__mark { row-gap: var(--s-1); padding: var(--s-3) var(--s-4); }
.ds .cabinet-now__label { font-size: 18px; line-height: 24px; font-weight: 600; }
.ds .cabinet-now__note { font-size: 15px; line-height: 22px; color: var(--ink-2); overflow-wrap: anywhere; }
.ds .cabinet-now__when { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.ds .cabinet-pop__form, .ds .cabinet-ask__form { display: flex; flex-direction: column; gap: var(--s-3); }
.ds .cabinet-say__hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.ds .cabinet-said { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
/* C3b: «Разговор» страницы поручения без JS — та же сетка, что у прежней ленты;
   написанное другой стороной выделено, как прежний ответ; новое — словом «новое». */
.ds .cabinet-talk { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ds .cabinet-talk__item { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.ds .cabinet-talk__item:first-child:not(.cabinet-talk__item--theirs) { border-top: 0; padding-top: 0; }
.ds .cabinet-talk__item--theirs { padding: var(--s-3); border-top: 0; border-left: 3px solid var(--accent); border-radius: 0 var(--r-s) var(--r-s) 0; background: var(--accent-soft); }
.ds .cabinet-talk__item--theirs + .cabinet-talk__item { border-top: 0; }
.ds .cabinet-talk__item--new { border-left-width: 5px; }
.ds .cabinet-talk__new { font-weight: 700; }
.ds .cabinet-talk__carried { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ds .cabinet-talk__head { margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.ds .cabinet-talk__who { color: var(--ink); }
.ds .cabinet-talk__asks-mark, .ds .cabinet-talk__new { color: var(--accent); }
.ds .cabinet-talk__when { font-weight: 400; color: var(--ink-3); }
.ds .cabinet-talk__text { margin: 0; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; text-wrap: pretty; }
/* Цитата вопроса у ответа (контракт разговора §3.2): ответ стоит по времени, цитата говорит, к чему он. */
.ds .cabinet-talk__quote { margin: 2px 0; padding-left: var(--s-2); border-left: 2px solid var(--line); font-size: 13px; line-height: 18px; color: var(--ink-2); overflow-wrap: anywhere; }
.ds .cabinet-talk__quote > p { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* Галочка «Жду ответа»: настоящий input покрывает всю строку (≥44px), рамка — ds check__box. */
.ds label.cabinet-talk__asks { position: relative; align-self: flex-start; min-height: 44px; padding: 0 var(--s-2) 0 var(--s-1); border-radius: var(--r-s); font-size: 14px; font-weight: 400; }
.ds .cabinet-talk__asks > input[type=checkbox] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ds .cabinet-talk__asks:has(> input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .cabinet-retry { gap: var(--s-4); }
.ds .cabinet-foot { margin: 0; }
/* ЕМ8: полоса действий кабинета — та же .action-bar--card, что у карточки руководителя.
   Низ страницы без отступа, иначе в конце прокрутки полоса отрывается от края экрана. */
.ds.cabinet:has(.cabinet-bar) { padding-bottom: 0; }
/* Прокрутка к полю и фокус с клавиатуры не прячут цель под липкой полосой (WCAG 2.4.11). */
html:has(.cabinet-bar) { scroll-padding-bottom: 152px; }
.ds .cabinet-bar { margin: 0 calc(-1 * var(--s-4)); }
.ds .cabinet-bar__seg { flex: 1 1 auto; max-width: 100%; }
.ds .cabinet-bar__seg > .seg__item { flex: 1 1 0; justify-content: center; min-width: 0; min-height: var(--h-touch); height: auto; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; }
.ds .cabinet-bar__seg > .seg__item--on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(22, 27, 38, 0.12), 0 0 0 1px rgba(22, 27, 38, 0.04); }
.ds .cabinet-pop__form { gap: 0; }
.ds .cabinet-pop__lead { margin: 0; color: var(--ink-2); }
/* Окна кабинета — HTML popover: открываются и без JavaScript. Без поддержки popover
   правила ниже не действуют, и формы остаются в потоке страницы. */
@supports selector(:popover-open) {
  .ds .cabinet-pop { position: fixed; inset: auto 0 0 0; z-index: 50; display: none; width: auto; max-width: none; height: auto; max-height: 92dvh; margin: 0; padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left); border: 0; border-radius: 18px 18px 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--e-dialog); overflow-y: auto; overscroll-behavior: contain; }
  .ds .cabinet-pop:popover-open { display: block; }
  .ds .cabinet-pop::backdrop { background: var(--scrim); }
  .ds .cabinet-pop .sheet__foot { padding: var(--s-2) var(--s-4) var(--s-3); }
}
@supports not selector(:popover-open) {
  .ds .cabinet-pop .sheet__handle, .ds .cabinet-pop .sheet__close { display: none; }
  .ds .cabinet-pop { border-radius: var(--r-m); background: var(--surface); }
}
@media (min-width: 768px) {
 .ds.cabinet { padding: var(--s-8) var(--s-6) var(--s-10); }
 .ds .cabinet-bar { margin: 0; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-l) var(--r-l) 0 0; }
 .ds .cabinet-sheet { padding: var(--s-5); }
}
@media (min-width: 1024px) {
 html:has(.cabinet-bar) { scroll-padding-bottom: 96px; }
 @supports selector(:popover-open) {
  .ds .cabinet-pop { inset: 12vh auto auto 50%; width: min(480px, calc(100vw - 32px)); max-height: 76vh; padding: 0; border-radius: var(--r-l); translate: -50% 0; }
  .ds .cabinet-pop .sheet__handle { display: none; }
  .ds .cabinet-pop .sheet__head { padding-top: var(--s-4); }
  .ds .cabinet-pop .sheet__foot { justify-content: flex-end; padding: var(--s-3) var(--s-4); background: var(--surface-2); }
  .ds .cabinet-pop--side:popover-open { display: flex; }
  .ds .cabinet-pop--side { inset: 8px 8px 8px auto; width: min(480px, calc(100vw - 16px)); max-height: none; translate: none; flex-direction: column; }
  .ds .cabinet-pop--side .cabinet-pop__form { flex: 1 1 auto; min-height: 0; }
  .ds .cabinet-pop--side .sheet__body { flex: 1 1 auto; overflow-y: auto; }
 }
}
.ds .cabinet-me { gap: 6px; margin-left: var(--s-3); padding: 0 var(--s-3); border: 0; border-radius: var(--r-s); background: none; font: inherit; }
.ds .cabinet-me:hover { background: var(--accent-wash); }
.ds .cabinet-me:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .cabinet-me[hidden], .ds .cabinet-me-sheet[hidden] { display: none; }
.ds .cabinet-me-sheet .sheet__body { padding-block: var(--s-3) var(--s-5); }
/* Ф3u: файлы кабинета. Строка «+ Файл» работает без JavaScript: выбор файла — подпись
   поля, «Приложить файл» появляется, когда файл выбран (без :has — видна всегда). */
.ds .cabinet-files { gap: var(--s-2); }
/* Ссылки кабинета не ниже 44 px; имя прижато к низу этой высоты, чтобы стоять вплотную к размеру. */
.ds .cabinet-file .entry-file__name { display: flex; align-items: flex-end; }
.ds .cabinet-file__remove { flex: none; min-height: var(--h-touch); padding: 0 var(--s-2); color: var(--risk); }
.ds .file-add__form { margin: 0; }
.ds .file-add { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; }
/* Без скрипта имя выбранного файла показывает только само поле, поэтому оно видно;
   cabinet.js ставит имя подписью и прячет поле (.file-add--named). */
.ds .file-add__input { max-width: 100%; min-height: var(--h-touch); font: inherit; font-size: 13px; }
.ds .file-add--named .file-add__input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; min-height: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.ds .file-add__name { min-width: 0; overflow-wrap: anywhere; font-size: 13px; color: var(--ink-2); }
.ds .file-add__name:empty { display: none; }
.ds .file-add__label { display: inline-flex; order: -1; flex-direction: row; align-items: center; gap: 10px; min-height: var(--h-touch); padding: 0 8px; border-radius: var(--r-s); font: inherit; font-weight: 400; color: var(--accent); cursor: pointer; }
.ds .file-add__label:hover { background: var(--surface-2); }
.ds .file-add__input:focus-visible + .file-add__label { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds .file-add__send { min-height: var(--h-touch); }
.ds .file-add:has(.file-add__input:invalid) .file-add__send { display: none; }
/* 5B-2 кабинет */
.ds .cabinet-views__list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ds .cabinet-views__item { min-width: 0; }
.ds .cabinet-views__link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--h-touch); max-width: 100%; padding: 0 var(--s-4); font-size: 14px; line-height: 18px; font-weight: 500; color: var(--ink-2); text-decoration: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.ds .cabinet-views__link:hover { color: var(--ink); border-color: var(--ink-3); }
.ds .cabinet-views__link--current { color: var(--ink-inv); background: var(--ink); border-color: var(--ink); }
.ds .cabinet-views__count { font-weight: 600; font-variant-numeric: tabular-nums; }
.ds .cabinet-item__flags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); min-width: 0; font-size: 13px; line-height: 18px; }
.ds .cabinet-item__due { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ds .cabinet-item__due--overdue { color: var(--risk); }
.ds .cabinet-item__important { padding: 0 var(--s-2); font-weight: 600; color: var(--wait); background: var(--wait-soft); border-radius: var(--r-pill); }
.ds .cabinet-item__points { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ds .cabinet-points__list { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ds .cabinet-points__item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-width: 0; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); }
.ds .cabinet-points__text { flex: 1 1 100%; min-width: 0; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; text-wrap: pretty; }
.ds .cabinet-points__whose { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ds .cabinet-points__empty { font-size: 14px; line-height: 20px; color: var(--ink-3); text-wrap: pretty; }
.ds .cabinet-points__add { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }

/* 5B-3 рабочее место */
.ds .cabinet-issue__terms, .ds .person-work__terms { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .cabinet-issue__terms--overdue, .ds .person-work__terms--overdue { color: var(--risk); }
.ds .person-work__points { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.ds .cabinet-issue__points { width: 100%; }
.ds .cabinet-issue__terms-form { width: 100%; }
.ds .cabinet-issue__terms-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; width: 100%; padding-top: 8px; }
.ds .cabinet-issue__terms-field { flex: 1 1 160px; min-width: 0; }

/* Телефон (M1): у карточки поручения сотрудника «‹ Назад» стоит внизу слева,
   на полосе, которую рисует ::after карточки. У карточки дела «Назад» —
   наверху (ЕМ4b1, model.md §1), там только подпись короче. */
.ds .card-back__phone { display: none; }
@media (max-width: 767.98px) {
  .ds #assignment-card { --card-back-w: 84px; --card-dock-h: calc(56px + var(--safe-bottom)); }
  .ds #assignment-card::after { content: ""; position: fixed; right: 0; bottom: 0; left: 0; z-index: 4; height: var(--card-dock-h); background: var(--surface); border-top: 1px solid var(--line); pointer-events: none; }
  .ds #assignment-card .card-back { position: fixed; bottom: calc(6px + var(--safe-bottom)); left: 8px; z-index: 6; width: var(--card-back-w); min-height: var(--h-touch); padding: 0 10px; justify-content: flex-start; font-size: 15px; font-weight: 600; }
  .ds .card-back__phone { display: inline; }
  .ds .card-back__wide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .ds #assignment-card > .drawer__body { padding-bottom: calc(var(--card-dock-h) + 16px); scroll-padding-bottom: calc(var(--card-dock-h) + 16px); }
  .ds #assignment-card > .drawer__bar { min-height: 0; padding: 0; border: 0; }
}
@media (max-width: 767.98px) {
  .ds .catalog-screen__tabs { gap: var(--s-4); padding: 0 var(--s-4); }
  .ds .catalog-screen__tabs .tabs__item { min-height: var(--h-touch); }
  .ds .catalog-screen__tools { padding: var(--s-3) var(--s-4) var(--s-2); }
  .ds .catalog-screen__tools .input { min-height: var(--h-touch); }
  .ds .catalog-screen__create .field-help { padding: var(--s-3) var(--s-4) 0; }
  .ds .catalog-screen__archive { padding: var(--s-4); }
  .ds .catalog-screen__archive > .disclosure__body { margin-inline: calc(-1 * var(--s-4)); }
  .ds .catalog-screen .cat-row .btn--icon { width: var(--h-touch); height: var(--h-touch); }
}
/* Длинный список значений прокручивается внутри окна «Фильтр», а подвал со «Сбросить» и «Показать» остаётся на экране. */
.ds #filter-window .people-list { flex: 1 1 auto; min-height: 0; }
.ds #filter-window .people-list__list { min-height: 0; }
/* seg «Любая из / Все сразу» (TAG10) — fieldset: общее правило .ds fieldset
   (колонка, рамка, поля 16px) иначе раскладывает его столбиком. */
.ds .people-list__match .seg { display: inline-flex; flex-direction: row; gap: 2px; padding: 3px; border: 0; border-radius: 9px; font-size: inherit; line-height: inherit; font-weight: inherit; }
/* Группы окна «Вид» (VW1) — тоже fieldset: без поправки общее правило рисует
   каждую группу отдельной карточкой с полями 16px. */
.ds .vw-set { display: block; gap: 0; margin: 0; padding: var(--s-1) 0 var(--s-2); border: 0; border-radius: 0; }
.ds .vw-set + .vw-set { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.ds .vw-set legend { padding: var(--s-2) var(--s-4) var(--s-1); font: var(--t-meta); color: var(--ink-2); }
/* «Вернуть как обычно» стоит внутри строки текста: высоту 44 px общего правила
   телефона ей не даём — цель касания рисует ::after из ds.css. */
@media (max-width: 767.98px) { .ds .qf-sum--view .qf-sum__reset { min-height: 0; min-width: 0; } }
.ds .task-row--hierarchy > .task-row__star { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
.ds .task-row--hierarchy:is(.task-row--star, .task-row--star-none) > .task-row__open { padding-right: 32px; }
.ds .task-row--hierarchy:is(.task-row--star, .task-row--star-none) > .row-actions { right: calc(var(--s-3) + 32px); }
.ds .task-row--hierarchy:is(:hover, :focus-within) > .star--off { visibility: visible; }
/* «Отложенные» (IMP2b): строка — блок со ссылкой внутри, поэтому звезда стоит
   поверх правого края ссылки, а ссылка отдаёт ей место отступом. */
.ds #entries .task-row--deferred.task-row--star { position: relative; }
.ds #entries .task-row--deferred.task-row--star > .task-row__open { padding-right: 52px; }
.ds #entries .task-row--deferred > .task-row__star { position: absolute; top: 12px; right: 20px; margin: -2px 0 0; }
.ds #entries .task-row--deferred:is(:hover, :focus-within) > .star--off { visibility: visible; }
.ds .people-list__row[data-kind="important"] .people-list__icon .icon, .ds .lens__star { color: var(--ink); fill: currentColor; }
@media (max-width: 767.98px) {
  .ds #entries .task-row--deferred > .task-row__star { top: 0; right: 4px; margin: 0; }
}
@media (hover: none) {
  .ds .star--off { visibility: visible; color: var(--line-control); }
}
.ds .drawer__title-row { display: flex; align-items: flex-start; gap: var(--s-3); }
.ds .drawer__title-row > .drawer__title { flex: 1; min-width: 0; }
.ds .drawer__title-row > .star-btn { flex: none; }
.ds .drawer__title-row > .star-btn[hidden], .ds .drawer__title-row:has(> .drawer__title[hidden]) > .star-btn { display: none; }
.ds .vw-lists { padding: var(--s-1) 0 var(--s-2); border-bottom: 1px solid var(--line); }
.ds .vw-lists[hidden] { display: none; }
.ds .vw-lists__title { margin: 0; padding: var(--s-2) var(--s-4) var(--s-1); font: var(--t-meta); color: var(--ink-2); }
.ds .vw-lists__link { min-height: 52px; color: var(--ink); text-decoration: none; font-size: 15px; }
.ds .vw-lists__link[aria-current="page"] .vw-opt__name { color: var(--accent); font-weight: 600; }
.ds .vw-lists__go { color: var(--ink-3); }
.ds.ai-on .page-head, .ds.ai-on #quick-filters, .ds.ai-on #filter-toolbar, .ds.ai-on #view-summary, .ds.ai-on #all-sections, .ds.ai-on #all-foot, .ds.ai-on #filter-help, .ds.ai-on #today-summary, .ds.ai-on #empty-state, .ds.ai-on #today-aside { display: none; }
.ds .ai-head { display: flex; align-items: center; gap: var(--s-2); min-height: 64px; padding: var(--s-3) var(--s-4) var(--s-2); border-bottom: 1px solid var(--line); }
.ds .ai-head__title { flex: 1; margin: 0; font: var(--t-screen); letter-spacing: -0.01em; }
.ds.ai-on .workspace__list { overflow: hidden; }
.ds.ai-on #entries { display: flex; flex: 1; min-height: 0; }
.ds .ai-screen { flex: 1; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); min-height: 0; min-width: 0; }
.ds .ai-screen__folders { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); }
.ds .ai-screen__conv { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface); }
.ds .ai-screen__conv--empty { align-items: center; justify-content: center; color: var(--ink-2); }
.ds .ai-screen__error { margin: var(--s-4); color: var(--risk); }
.ds .fold-list { margin: 0; padding: 0; list-style: none; }
.ds .fold { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: var(--s-3); align-items: start; min-height: 76px; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.ds .fold:hover { background: var(--surface-2); }
.ds .fold--on, .ds .fold--on:hover { background: var(--c-3); }
.ds .fold__icon { position: relative; width: 40px; height: 34px; margin-top: 2px; color: var(--n-8); }
.ds .fold__icon svg { display: block; width: 40px; height: 34px; }
.ds .fold__icon .fold__tab { fill: currentColor; }
.ds .fold__icon .fold__body { fill: var(--surface); stroke: currentColor; stroke-width: 1.6; }
.ds .fold--off .fold__icon .fold__body { stroke-dasharray: 3 2.4; }
.ds .fold--main { background: var(--v-2); }
.ds .fold--main.fold--on { background: var(--v-4); }
.ds .fold--main .fold__icon { color: var(--v-9); }
.ds .fold--main .fold__icon .fold__body { fill: var(--v-3); }
.ds .fold__main { display: grid; gap: 2px; min-width: 0; }
.ds .fold__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); min-width: 0; }
.ds .fold__name { color: var(--ink); font: 600 16px/24px var(--font); letter-spacing: -0.005em; text-decoration: none; overflow-wrap: anywhere; }
.ds .fold__name::after { content: ""; position: absolute; inset: 0; }
.ds .fold__name:focus-visible { outline: none; }
.ds .fold:has(.fold__name:focus-visible) { box-shadow: inset 0 0 0 2px var(--accent); }
.ds .fold__pin { display: inline-flex; align-items: center; gap: 2px; color: var(--v-11); font: var(--t-small); }
.ds .fold__state { color: var(--ink-2); font: var(--t-small); }
.ds .fold__go { overflow: hidden; color: var(--ink); font: var(--t-body); white-space: nowrap; text-overflow: ellipsis; }
.ds .fold__go[hidden] { display: none; }
.ds .fold__crew { color: var(--ink-2); font: var(--t-small); }
.ds .fold__side { display: flex; align-items: flex-start; gap: var(--s-1); }
/* Кнопка 44 px стоит в строке названия (24 px) и выступает поровну вверх и вниз: строка папки не растёт. */
.ds .fold__more { position: relative; z-index: 1; min-width: var(--h-touch, 44px); min-height: var(--h-touch, 44px); margin: calc((24px - var(--h-touch, 44px)) / 2) calc(-1 * var(--s-2)) calc((24px - var(--h-touch, 44px)) / 2) 0; }
.ds .ai-access__state { margin: 0; color: var(--ink); font: var(--t-strong); }
.ds .ai-access__note { margin: 0; color: var(--ink-2); font: var(--t-small); }
.ds .ai-access__error { margin: 0; color: var(--r-11); font: var(--t-body); }
.ds .ai-access__hint { display: grid; gap: var(--s-2); }
.ds .ai-access__path { margin: 0; color: var(--ink); font: var(--t-body); overflow-wrap: anywhere; }
.ds .ai-access__command { margin: 0; padding: var(--s-3); overflow-x: auto; border-radius: 8px; background: var(--surface-2); color: var(--ink); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.ds .ai-access__copy { justify-self: start; min-height: var(--h-touch, 44px); }
.ds .ai-access__runs-title { margin: var(--s-2) 0 0; color: var(--ink-2); font: var(--t-small); }
.ds .ai-access__runs { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ds .ai-access__run { display: flex; flex-wrap: wrap; gap: 2px var(--s-2); color: var(--ink); font: var(--t-body); font-variant-numeric: tabular-nums; }
.ds .ai-access__run-state--on { color: var(--a-11); }
.ds .ai-access__run-state--off, .ds .ai-access__run-state--old, .ds .ai-access__run-used { color: var(--ink-2); }
.ds .ai-access .sheet__foot .btn { min-height: var(--h-touch, 44px); }
.ds .fold__time { padding-top: 4px; color: var(--ink-2); font: var(--t-small); font-variant-numeric: tabular-nums; }
.ds .fold__state--ask { color: var(--c-11); font: var(--t-strong); }
.ds .fold__state--work { color: var(--a-11); font: var(--t-strong); }
.ds .fold__state--fail { color: var(--r-11); font: var(--t-strong); }
.ds .fold__state--quiet { color: var(--ink-2); }
.ds .fold--ask .fold__icon { color: var(--c-9); }
.ds .fold--ask .fold__icon .fold__body { fill: var(--c-3); }
.ds .fold--work .fold__icon { color: var(--a-11); }
.ds .fold--fail .fold__icon { color: var(--r-11); }
.ds .fold--fail .fold__icon .fold__body { fill: var(--r-3); }
.ds .fold--quiet .fold__icon { color: var(--n-8); }
.ds .fold--quiet .fold__icon .fold__body { stroke-dasharray: 3 2.4; }
.ds .fold__n { position: absolute; right: 4px; bottom: 4px; color: var(--c-11); font: 600 11px/1 var(--font); font-variant-numeric: tabular-nums; }
.ds .fold__go-label { color: var(--ink-2); }
.ds .fold__crew { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ds .fold__crew-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ds .fold__crew .ai-ava { width: 20px; height: 20px; font-size: 9px; }
.ds .fold__crew-text { margin-left: 2px; }
/* Кнопка лежит поверх растянутой ссылки папки (::after на всю строку) — иначе нажатие открыло бы разговор. */
.ds .fold__crew--btn { position: relative; z-index: 1; justify-self: start; max-width: 100%; min-height: 44px; margin: -10px 0 -12px -6px; padding: 0 6px; border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left; }
.ds .fold__crew--btn:hover { background: var(--surface-3); color: var(--ink); }
.ds .fold__crew--btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ds .conv-menu { position: relative; flex: none; }
.ds .conv-head__more { width: 44px; height: 44px; }
.ds .conv-menu__list { position: absolute; top: calc(100% + 4px); right: 0; z-index: 20; min-width: 200px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.ds .conv-menu__list[hidden] { display: none; }
.ds .conv-menu__item { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: 44px; padding: 0 var(--s-3); border: 0; border-radius: 6px; background: none; color: var(--ink); font: var(--t-body); text-align: left; cursor: pointer; }
.ds .conv-menu__item:hover, .ds .conv-menu__item:focus-visible { background: var(--surface-2); outline: none; }
.ds .conv-head__back.conv-head__back--always { display: inline-grid; place-items: center; }
.ds .ai-work-host:not(:empty) { padding: var(--s-4) var(--s-6) 0; }
.ds .ai-work { max-width: 680px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.ds .ai-work__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); padding: var(--s-4); border-bottom: 1px solid var(--line); }
.ds .ai-work__title { margin: 0; font: 600 16px/24px var(--font); }
.ds .ai-work__at { flex: 1 1 160px; color: var(--ink-2); font: var(--t-meta); }
.ds .ai-work__tell { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; }
.ds .ai-work__list { margin: 0; padding: 0; list-style: none; }
.ds .ai-work__row { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.ds .ai-work__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin: 0; }
.ds .ai-work__name { min-width: 0; overflow: hidden; color: var(--ink); font: var(--t-read); white-space: nowrap; text-overflow: ellipsis; }
.ds .ai-work__top .fold__state { flex: none; }
.ds .ai-work__line { margin: 0; overflow: hidden; color: var(--ink); font: var(--t-body); white-space: nowrap; text-overflow: ellipsis; }
.ds .ai-work__label { color: var(--ink-2); }
.ds .ai-work__note { margin: 0; padding: var(--s-3) var(--s-4); color: var(--ink-2); font: var(--t-meta); }
.ds .ai-crew__body { padding-bottom: var(--s-6); }
.ds .ai-crew__group { max-width: 760px; }
.ds .ai-crew__title { margin: 0; padding: var(--s-5) var(--s-6) var(--s-3); border-bottom: 1px solid var(--line); font: 600 16px/24px var(--font); }
.ds .ai-crew__n { color: var(--ink-2); font-weight: 400; }
.ds .crew-list { margin: 0; padding: 0; list-style: none; }
.ds .crew-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-6); border-bottom: 1px solid var(--line); }
.ds .crew-row__face { width: 24px; height: 24px; }
.ds .crew-row__ico { display: inline-grid; place-items: center; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.ds .crew-row__text { min-width: 0; overflow: hidden; color: var(--ink-2); font: var(--t-body); white-space: nowrap; text-overflow: ellipsis; }
.ds .crew-row__role { color: var(--ink); font-weight: 600; }
.ds .crew-row__end { color: var(--ink-2); font: var(--t-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds .crew-row__end--ok { color: var(--g-11); }
.ds .crew-row__end--bad { color: var(--r-11); }
.ds .crew-row__end--wait { color: var(--a-11); }
.ds .ai-crew__quiet { display: grid; justify-items: start; gap: 4px; max-width: 560px; padding: var(--s-5) var(--s-6) var(--s-4); }
.ds .ai-crew__quiet p { margin: 0; color: var(--ink-2); font: var(--t-body); }
.ds .ai-crew__quiet-title { margin: 0 0 var(--s-1); font: 600 16px/24px var(--font); }
.ds .ai-crew__talk { min-height: 44px; margin-top: var(--s-3); }
.ds .ai-crew__note { margin: 0; padding: var(--s-5) var(--s-6); color: var(--ink-2); font: var(--t-body); }
.ds .ai-screen__aside { display: none; }
@media (min-width: 1280px) {
 .ds .ai-screen--aside { grid-template-columns: minmax(0, 340px) minmax(480px, 1fr) 340px; }
 .ds .ai-screen__aside { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow-y: auto; border-left: 1px solid var(--line); background: var(--surface); }
 .ds .ai-screen__aside .ai-work-host:not(:empty) { padding: var(--s-4) var(--s-4) 0; }
 .ds .ai-screen__aside .conv-head { padding-left: var(--s-4); }
 .ds .ai-screen__aside .ai-crew__title, .ds .ai-screen__aside .crew-row, .ds .ai-screen__aside .ai-crew__quiet, .ds .ai-screen__aside .ai-crew__note { padding-left: var(--s-4); padding-right: var(--s-4); }
 .ds .ai-crew--aside, .ds .ai-crew-all { position: relative; }
 .ds .ai-crew-all { padding-bottom: var(--s-4); }
 .ds .ai-crew--aside::after, .ds .ai-crew-all::after { content: ""; position: absolute; inset: 0; background: var(--accent-wash); opacity: 0; pointer-events: none; }
 .ds .ai-crew--aside.is-lit::after, .ds .ai-crew-all.is-lit::after { animation: ai-aside-lit 1.2s var(--ease-out); }
 .ds .crew-row__open { padding: 0; border: 0; background: none; text-align: left; white-space: normal; cursor: pointer; min-height: 44px; }
 .ds .crew-row__open:hover .crew-row__title { color: var(--ink); text-decoration: underline; }
 .ds .crew-row .fold__state { white-space: nowrap; }
}
@media (min-width: 1480px) { .ds .ai-screen--aside { grid-template-columns: minmax(0, 340px) minmax(480px, 1fr) 380px; } }
@media (prefers-reduced-motion: reduce) { .ds .ai-crew--aside.is-lit::after, .ds .ai-crew-all.is-lit::after { animation: none; } }
@keyframes ai-aside-lit { from { opacity: 1; } to { opacity: 0; } }
.ds .conv-head { display: flex; align-items: center; gap: var(--s-2); min-height: 64px; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-6); border-bottom: 1px solid var(--line); }
.ds .conv-head__back { display: none; width: 44px; height: 44px; }
.ds .conv-head__who { display: grid; flex: 1; min-width: 0; }
.ds .conv-head__name { margin: 0; overflow: hidden; font: 600 18px/24px var(--font); letter-spacing: -0.01em; white-space: nowrap; text-overflow: ellipsis; }
.ds .conv-head__sub { overflow: hidden; color: var(--ink-2); font: var(--t-meta); white-space: nowrap; text-overflow: ellipsis; }
.ds .ai-conv__scroll { flex: 1; min-height: 0; overflow-y: auto; }
.ds .conv-feed { padding: var(--s-2) var(--s-6) var(--s-6); }
.ds .conv-feed .talk__feed { max-width: 680px; }
.ds .talk__ava--ai { border-radius: 9px; background: var(--v-3); color: var(--v-11); font-size: 11px; box-shadow: inset 0 0 0 1px var(--v-6), 0 0 0 4px var(--surface); }
.ds .deliv { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); margin: 6px 0 0; color: var(--ink-2); font: var(--t-small); }
.ds .deliv--bad { color: var(--wait); font-weight: 500; }
.ds .deliv .btn { min-height: 32px; }
.ds .ai-conv__dock { padding: var(--s-3) var(--s-6) var(--s-4); border-top: 1px solid var(--line); background: var(--surface); }
.ds .ai-conv__dock .talk__form { max-width: 680px; }
.ds .ai-conv__empty { display: grid; gap: var(--s-3); max-width: 560px; padding: var(--s-6) 0; }
.ds .ai-conv__empty-title { margin: 0; color: var(--ink); font: var(--t-read); }
.ds .ai-conv__help summary { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); font: var(--t-strong); cursor: pointer; }
.ds .ai-conv__help p { margin: 0; color: var(--ink-2); font: var(--t-body); }
.ds .ai-head__add { flex: none; min-height: var(--h-touch); }
.ds .fold-add { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: var(--h-touch); padding: var(--s-2) var(--s-4); color: var(--accent); font: var(--t-strong); text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ds .fold-add:hover { background: var(--surface-2); }
.ds .fold-add:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ds .ai-pending__retry { justify-self: start; min-height: var(--h-touch); }
.ds .ai-new__body { display: grid; gap: var(--s-4); align-content: start; }
.ds .ai-new__autonomy { margin: 0; padding: 0; border: 0; min-width: 0; }
.ds .ai-new__autonomy > legend { padding: 0; }
.ds .ai-new__folder { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.ds .ai-new__folder-word { flex: none; color: var(--ink-2); font: var(--t-meta); }
.ds .ai-new__slug { flex: 1; min-width: 0; }
.ds .ai-new .input { min-height: var(--h-touch); }
.ds .ai-new__first { min-height: 88px; }
.ds .ai-new__seg { display: flex; width: 100%; }
.ds .ai-new__seg .seg__item { flex: 1 1 0; justify-content: center; min-height: var(--h-touch); }
.ds .ai-new .sheet__cancel { display: inline-flex; }
.ds .ai-new .sheet__foot { align-items: center; }
.ds .ai-new .sheet__foot .btn { min-height: var(--h-touch); }
@media (min-width: 1024px) {
  .ds .ai-new.sheet--modal[data-ds-sheet] { width: min(520px, calc(100vw - 32px)); }
  .ds .ai-new .sheet__main { flex: none; }
}
.ds .ai-ava { display: inline-grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--v-3); color: var(--v-11); font: 600 10px/1 var(--font); letter-spacing: 0.02em; box-shadow: inset 0 0 0 1px var(--v-6); }
.ds .ai-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink); font-weight: 500; }
.ds .you-strip { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--c-5); background: var(--accent-wash); color: var(--c-12); text-decoration: none; }
.ds .you-strip:hover, .ds .you-strip--on { background: var(--c-4); }
.ds .you-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ds .you-strip__n { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--r-pill); background: var(--accent); color: var(--ink-inv); font: 600 14px/1 var(--font); font-variant-numeric: tabular-nums; }
.ds .you-strip__text { flex: 1; min-width: 0; font: var(--t-strong); }
.ds .you-strip__text small { display: block; overflow: hidden; color: var(--c-11); font: var(--t-meta); white-space: nowrap; text-overflow: ellipsis; }
.ds .ai-you__empty { max-width: 560px; margin: 0; padding: var(--s-6); color: var(--ink-2); font: var(--t-read); }
.ds .ask-q { margin: 0; padding: 0; list-style: none; }
.ds .ask-item { display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--line); }
.ds .ask-item__from { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; color: var(--ink-2); font: var(--t-meta); }
.ds .ask-item__from .icon { color: var(--accent); }
.ds .ask-item__from b { color: var(--ink); font-weight: 600; }
.ds .ask-item__time { margin-left: auto; color: var(--ink-2); font: var(--t-meta); font-variant-numeric: tabular-nums; }
.ds .ask-item__q { max-width: 62ch; margin: 0; font: var(--t-read); overflow-wrap: anywhere; }
.ds .ask-item__dflt { max-width: 62ch; margin: 0; color: var(--ink-2); font: var(--t-body); }
.ds .ask-item__card { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s-2); margin: 0; color: var(--ink-2); font: var(--t-meta); }
.ds .ask-item__card .icon { color: var(--g-11); }
.ds .ask-item__card:focus { outline: none; }
.ds .ask-item__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.ds .ask-item__reply { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--s-2); max-width: 620px; }
.ds .ask-item__reply .input { flex: 1 1 200px; min-width: 0; min-height: 44px; }
.ds .ask-item__reply .btn, .ds .ask-item__acts .btn, .ds .prop__acts .btn { min-height: 44px; }
.ds .ai-answer__error { flex-basis: 100%; margin: 0; }
.ds .ask-item__go { color: var(--accent); }
.ds .ask-item--done { background: var(--g-2); }
.ds .ask-item--done .ask-item__q { color: var(--ink-2); }
.ds .ask-item--prop { padding-left: calc(var(--s-6) - 3px); border-left: 3px solid var(--v-7); }
.ds .prop { display: grid; gap: var(--s-2); }
.ds .prop__what { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; color: var(--v-11); font: var(--t-meta); font-weight: 500; }
.ds .prop__what b { color: var(--ink); font-weight: 600; }
.ds .prop__card { max-width: 62ch; margin: 0; color: var(--ink); font: var(--t-read); overflow-wrap: anywhere; }
.ds .prop__diff { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s-2); margin: 0; font: var(--t-body); }
.ds .prop__now { padding: 0 6px; border-radius: var(--r-xs); background: var(--v-3); color: var(--ink); font-weight: 600; }
.ds .prop__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ds .prop__key { color: var(--ink-2); }
.ds .prop__was { color: var(--ink-2); overflow-wrap: anywhere; }
.ds .prop__arrow { color: var(--ink-2); }
.ds .prop__now { overflow-wrap: anywhere; }
.ds .prop__source { max-width: 62ch; margin: 0; color: var(--ink-2); font: var(--t-body); font-style: italic; overflow-wrap: anywhere; }
.ds .prop__entry { min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.ds .prop__changed { max-width: 62ch; margin: 0; color: var(--a-11); font: var(--t-body); font-weight: 500; overflow-wrap: anywhere; }
.ds .prop__error { margin: 0; }
.ds .prop__edit { display: grid; gap: var(--s-3); max-width: 620px; min-width: 0; padding: var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); }
.ds .prop__sheet { display: contents; }
.ds .prop__field { min-width: 0; }
.ds .prop__field .input { width: 100%; min-height: 44px; }
.ds .prop__choices { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; }
.ds .prop__choices legend { margin-bottom: 6px; padding: 0; }
.ds .prop__outcome { margin: 0; color: var(--ink-2); font: var(--t-meta); }
.ds .prop__outcome b { color: var(--ink); font-weight: 600; }
.ds .ai-you__foot { display: grid; justify-items: start; gap: var(--s-2); padding: var(--s-4) var(--s-6) var(--s-6); }
.ds .ai-you__stats { margin: 0; color: var(--ink-2); font: var(--t-body); }
.ds .ai-you__archive { min-height: 44px; padding-left: 0; padding-right: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ds .ai-archive { justify-self: stretch; min-width: 0; border-top: 1px solid var(--line); }
.ds .ai-archive .ask-item { padding-left: 0; padding-right: 0; border-left: 0; }
.ds .ai-archive__empty { margin: 0; padding: var(--s-3) 0; color: var(--ink-2); font: var(--t-body); }
.ds .ask-group { border-bottom: 1px solid var(--line); }
.ds .ask-group__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) var(--s-6); background: var(--v-2); }
.ds .ask-group__title { margin: 0; color: var(--v-11); font: var(--t-strong); }
.ds .ask-group__head .btn { min-height: 44px; }
.ds .ask-group__list .ask-item:last-child { border-bottom: 0; }
.ds .task-row__meta .ai-who { gap: 4px; }
.ds .task-row__meta .ai-who b { font-weight: 500; }
.ds .task-row__meta .ai-ava { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; }
.ds .task-row__meta .ai-task-mark { font: var(--t-meta); font-weight: 500; }
.ds .ai-task { display: grid; justify-items: start; gap: var(--s-2); margin: var(--s-2) 0 var(--s-3); }
.ds .ai-task[hidden] { display: none; }
.ds .ai-task__who, .ds .ai-task__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: var(--s-3); min-height: 44px; margin: 0; }
.ds .ai-task__label { color: var(--ink-2); font: var(--t-meta); }
.ds #move.move--ai { display: none; }
.ds .ai-task__link { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; color: var(--accent); font-weight: 500; text-decoration: none; }
.ds .ai-task__link:hover { text-decoration: underline; }
.ds .ai-task__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-s); }
.ds .ai-task__value { color: var(--ink-2); }
.ds .ai-task__due { width: 100%; }
.ds .ai-task__due .facts__item { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 0 var(--s-3); width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: var(--r-s); }
.ds .ai-task__due .facts__label { grid-column: 1; grid-row: 1; color: var(--ink-2); font: var(--t-meta); }
.ds .ai-task__due .facts__icon { display: none; }
.ds .ai-task__due .facts__value, .ds .ai-task__due .facts__sub { grid-column: 2; justify-self: start; text-align: left; }
.ds .ai-task__due .facts__sub:empty { display: none; }
.ds .ai-task__result, .ds .ai-task__brief { display: grid; gap: var(--s-2); width: 100%; max-width: 640px; margin-top: var(--s-3); }
.ds .ai-task__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); }
.ds .ai-task__title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.ds .ai-task__sub { color: var(--ink-2); font: var(--t-meta); }
.ds .ai-task__done { padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface-2); white-space: pre-line; overflow-wrap: anywhere; }
.ds .ai-task__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.ds .ai-task__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ds .ai-task__acts .btn { min-height: 44px; }
.ds .ai-ask { display: grid; gap: var(--s-2); width: 100%; max-width: 640px; padding: var(--s-3) var(--s-4); border: 1px solid var(--c-5); border-radius: var(--r-m); background: var(--accent-wash); }
.ds .ai-ask__who { display: flex; align-items: center; gap: var(--s-2); margin: 0; color: var(--c-11); font: var(--t-meta); font-weight: 500; }
.ds .ai-ask__q { margin: 0; font: var(--t-read); overflow-wrap: anywhere; }
.ds .ai-ask__reply .input { background: var(--surface); }
.ds .offer { max-width: 520px; margin-top: var(--s-2); overflow: hidden; border: 1px solid var(--v-6); border-radius: var(--r-m); background: var(--surface); }
.ds .offer__head { display: flex; align-items: center; gap: var(--s-2); margin: 0; padding: var(--s-2) var(--s-3); background: var(--v-2); font: var(--t-strong); }
.ds .offer__chip { margin-left: auto; }
.ds .offer__row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-2); margin: 0; padding: 6px var(--s-3); font: var(--t-body); overflow-wrap: anywhere; }
.ds .offer__row > span:first-child { padding-top: 1px; color: var(--ink-2); font: var(--t-meta); }
.ds .offer__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2) var(--s-3) var(--s-3); }
.ds .offer__acts .btn { min-height: 44px; }
.ds .offer--done { border-color: var(--g-7); }
.ds .offer--done .offer__head { background: var(--g-2); }
.ds .offer--done .offer__head .icon { color: var(--g-11); }
@media (max-width: 767.98px) {
  .ds .ai-screen { grid-template-columns: minmax(0, 1fr); }
  .ds .ai-screen__folders { border-right: 0; }
  .ds .ai-screen--conv .ai-screen__folders, .ds .ai-screen:not(.ai-screen--conv) .ai-screen__conv { display: none; }
  .ds .conv-head { padding-left: var(--s-1); }
  .ds .conv-head__back { display: inline-grid; place-items: center; }
  .ds .conv-feed { padding: var(--s-2) var(--s-4) var(--s-4); }
  .ds .ai-work-host:not(:empty) { padding: var(--s-3) var(--s-4) 0; }
  .ds .ai-crew__title, .ds .crew-row, .ds .ai-crew__quiet, .ds .ai-crew__note { padding-left: var(--s-4); padding-right: var(--s-4); }
  .ds .ask-item { padding: var(--s-4); }
  .ds .ask-item--prop { padding-left: calc(var(--s-4) - 3px); }
  .ds .ask-group__head { padding: var(--s-3) var(--s-4); }
  .ds .ai-you__foot { padding: var(--s-4); }
  .ds .prop__acts .btn, .ds .ask-item__reply .btn, .ds .ai-task__acts .btn { flex: 1 1 auto; }
  .ds .prop__sheet { position: fixed; left: var(--safe-left); right: var(--safe-right); bottom: 0; z-index: 40; display: flex; flex-direction: column; max-height: 85vh; max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 18px 18px 0 0; background: var(--surface); box-shadow: 0 -12px 40px -12px rgba(22, 27, 38, 0.35); }
  .ds .prop__sheet .prop__edit { max-width: none; padding: var(--s-4); border: 0; border-radius: 0; }
  .ds .prop__sheet .prop__acts { position: sticky; bottom: 0; flex-wrap: nowrap; padding: 10px var(--s-4) max(10px, var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--surface-2); }
  .ds .ai-task__acts { width: 100%; }
  .ds .offer__acts .btn { flex: 1; }
  .ds .offer__row { grid-template-columns: 96px minmax(0, 1fr); }
  .ds .ai-task__who, .ds .ai-task__row { grid-template-columns: 96px minmax(0, 1fr); }
  .ds .ai-task__due .facts__item { grid-template-columns: 96px minmax(0, 1fr); }
  .ds .ai-conv__dock { padding: var(--s-2) var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom)); }
  .ds.ai-conv-on .tabbar { display: none; }
}
.ds:has(.nav-item:is([data-filter=people], [data-filter=assigned])[aria-pressed=true]) .workspace__list > :is(#empty-state, #today-aside) { display: none; }
.ds .people-rail { display: none; }
.ds .people-rail__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ds :is(.people-rail__title, .people-rail__title-waiting) { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.ds .people-rail__new { color: var(--ink-3); font-size: 13px; line-height: 18px; }
.ds .people-rail__new:has(> :empty) { display: none; }
.ds .people-rail__all { display: inline-flex; align-items: center; min-height: var(--h-touch); margin-left: auto; color: var(--accent); font-size: 13px; text-decoration: none; }
.ds .people-rail__all:hover { text-decoration: underline; }
.ds .people-rail__all:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-s); }
.ds .people-rail__inbox { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds .people-rail__rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ds .people-rail .inbox-row__what { font-size: 14px; }
.ds .people-rail > section[hidden] { display: none; }
.ds .people-rail__waiting { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds .people-rail__count { color: var(--ink-3); font-size: 13px; line-height: 18px; }
.ds .rail-assignment { display: flex; flex-direction: column; gap: 2px; min-height: var(--h-touch); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--ink); text-decoration: none; }
.ds .rail-assignment:hover { background: var(--surface-2); }
.ds .rail-assignment:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .rail-assignment[aria-current=true] { border-color: var(--accent); background: var(--accent-soft); }
.ds .rail-assignment__why { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-3); }
.ds .rail-assignment--asked .rail-assignment__why { color: var(--accent); }
.ds .rail-assignment--overdue .rail-assignment__why { color: var(--risk); }
.ds .rail-assignment__title { font-size: 14px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.ds .rail-assignment__who { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.ds .people-rail .inbox-row__preview { font-size: 13px; line-height: 18px; }
.ds .people-rail__idle { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ds :is(.people-rail__inbox, .people-rail__idle)[hidden] { display: none; }
.ds .people-rail__subtitle { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.ds .people-rail__idle-list { margin: 0; padding: 0; list-style: none; }
.ds .people-rail__person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ds .people-rail__person-link { display: inline-flex; align-items: center; flex: 1; min-width: 0; min-height: var(--h-touch); color: var(--ink); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.ds .people-rail__person-link:hover { color: var(--accent); text-decoration: underline; }
.ds .people-rail__person-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-s); }
.ds .people-rail__away { flex: none; color: var(--ink-2); font-size: 12px; line-height: 16px; white-space: nowrap; }
/* Колонка — по правилу workspace--assistant: без открытого дела — рядом со
   списком; на 1024–1479 дело занимает её место; от 1480 она третья. */
@media (min-width: 1024px) {
  .ds .workspace.workspace--rail:not(.workspace--assistant):not(:has(> .drawer:not([hidden]))) { grid-template-columns: minmax(0, 1fr) 340px; }
  .ds .workspace--rail:not(.workspace--assistant):not(:has(> .drawer:not([hidden]))) > .people-rail:not([hidden]) { display: flex; }
  .ds .workspace--rail:not(.workspace--assistant):not(:has(> .drawer:not([hidden]))):has(> .people-rail:not([hidden]) > .people-rail__idle:not([hidden])) #entries > .person-idle { display: none; }
}
@media (min-width: 1480px) {
  .ds .workspace.workspace--rail:not(.workspace--assistant):not(.workspace--focused):has(> .drawer:not([hidden])) { grid-template-columns: minmax(320px, 1fr) minmax(480px, 560px) 340px; }
  .ds .workspace--rail:not(.workspace--assistant):not(.workspace--focused):has(> .drawer:not([hidden])) > .people-rail:not([hidden]) { display: flex; }
  .ds .workspace--rail:not(.workspace--assistant):not(.workspace--focused):has(> .drawer:not([hidden])):has(> .people-rail:not([hidden]) > .people-rail__idle:not([hidden])) #entries > .person-idle { display: none; }
}
@media (min-width: 768px) {
  .ds:has(.nav-item[data-filter=people][aria-pressed=true]) #entries:has(> .person-work) { max-width: 820px; margin: 16px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
  .ds:has(.nav-item[data-filter=people][aria-pressed=true]) #entries > .person-work:last-child { border-bottom: 0; }
}

.ds .pp { display: flex; flex-direction: column; min-width: 0; container: pp / inline-size; }
.ds .pp-top { display: flex; align-items: center; min-height: 48px; padding: var(--s-2) var(--s-6) 0; }
.ds .pp-crumb, .ds .pt-sheet__back { display: inline-flex; align-items: center; gap: 4px; min-height: var(--h-touch); padding: 0 8px 0 4px; margin-left: -4px; border-radius: var(--r-s); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.ds .pp-crumb:hover, .ds .pt-sheet__back:hover { background: var(--surface-2); color: var(--ink); }
.ds .pp-crumb:focus-visible, .ds .pt-sheet__back:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .pp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-1) var(--s-4); padding: var(--s-2) var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); container: pp-head / inline-size; }
.ds .pp-face { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 600; }
.ds .pp-face--away { background: var(--surface-3); color: var(--ink-2); }
.ds .person-away__explain { margin: var(--s-4) 0 0; padding-left: var(--s-5); color: var(--ink-2); max-width: 52ch; }
.ds .person-away__explain li + li { margin-top: 4px; }
.ds .person-away__clear { margin-right: auto; }
.ds .pp-who { min-width: 0; }
.ds .pp-name { margin: 0; font: 600 34px/40px var(--font); letter-spacing: -0.028em; overflow-wrap: anywhere; }
.ds .pp-name:focus { outline: none; }
.ds .pp-role { margin: 2px 0 0; color: var(--ink-2); font: var(--t-body); }
.ds .pp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 2px 0 0; color: var(--ink-2); font: var(--t-meta); }
.ds .pp-sub__account { color: var(--wait); }
.ds .pp-acts { display: flex; gap: var(--s-2); align-items: center; }
.ds .pp-acts .btn--primary { min-height: 40px; padding-inline: var(--s-4); }
/* Узкая шапка (рядом открыта карточка или боковая панель): действия уходят
   строкой под имя, иначе колонка имени сжимается до буквы (PL3). */
@container pp-head (max-width: 760px) {
  .ds .pp-acts { grid-column: 2 / -1; flex-wrap: wrap; }
  .ds .pp-name { font-size: 28px; line-height: 34px; }
}
.ds .pp-counts { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; font: 500 15px/22px var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ds .pp-counts b { font-weight: 600; color: var(--ink); }
.ds .pp-counts .pp-n--risk, .ds .pp-counts .pp-n--risk b { color: var(--risk); }
.ds .pp-counts .pp-n--wait, .ds .pp-counts .pp-n--wait b { color: var(--wait); }
.ds .pp-counts .pp-n--mine, .ds .pp-counts .pp-n--mine b { color: var(--accent); }
.ds .pp-counts .pp-n--none, .ds .pp-counts .pp-n--none b { color: var(--ink-3); }
.ds .pp-call { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); }
.ds .pp-call:hover { background: var(--accent-wash); border-color: var(--accent-line); }
.ds .pp-call .icon { width: 20px; height: 20px; color: var(--accent); }
.ds .pp-call:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .pp-edit-value { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: var(--h-touch); margin: 0 -6px; padding: 0 6px; border: 0; border-radius: var(--r-s); background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; overflow-wrap: anywhere; cursor: text; }
.ds .pp-edit-value:hover { background: var(--surface-2); }
.ds .pp-edit-value:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.ds .pp-edit-value--empty { color: var(--ink-2); font: var(--t-meta); }
.ds .pp-edit-value--empty:hover { color: var(--ink); }
.ds .pp-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); margin: 0; font-variant-numeric: tabular-nums; }
.ds .pp-fact { display: inline-flex; flex: none; align-items: center; gap: 2px; }
.ds .pp-facts .pp-edit-value { flex: none; white-space: nowrap; }
/* display у значения и факта перебивает [hidden] браузера; пока поле открыто, значение убрано. */
.ds .pp-head [hidden] { display: none; }
.ds .pp-fact__copy { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-s); background: none; color: var(--ink-2); cursor: pointer; }
.ds .pp-fact__copy:hover { background: var(--surface-2); color: var(--ink); }
.ds .pp-fact__copy:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.ds .pp-edit { width: 100%; min-width: 0; margin: 4px 0; }
.ds .pp-facts > .pp-edit { flex: 1 1 100%; }
.ds .pp-edit > input.pp-edit__field { flex: 1 1 12rem; min-width: 0; min-height: 44px; padding: 6px 10px; font: var(--t-body); color: var(--ink); background: var(--surface); border: 1px solid var(--focus); border-radius: var(--r-s); }
.ds .pp-edit--name > input.pp-edit__field[type=text] { font: 600 26px/32px var(--font); letter-spacing: -0.02em; }

.ds .pd-title { min-width: 0; }
.ds .menu__sub { display: block; color: var(--ink-2); font: var(--t-meta); }
.ds .pd-sub { margin: 2px 0 0; color: var(--ink-2); font: var(--t-meta); }
.ds .pd-form { display: grid; gap: var(--s-5); align-content: start; }
.ds .pd-form--erase { gap: var(--s-4); }
.ds .pd-who { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--r-s); background: var(--surface-2); color: var(--ink-2); font: var(--t-meta); }
.ds .pd-who .icon { flex: none; margin-top: 1px; }
.ds .pd-tg { display: flex; align-items: center; gap: var(--s-2); }
.ds .pd-tg .input { flex: 1; min-width: 0; }
.ds .pd-state { white-space: nowrap; }
.ds .pd-pronoun { margin: 0; padding: 0; border: 0; min-width: 0; }
.ds .pd-pronoun legend { margin-bottom: 6px; padding: 0; }
.ds .pd-pronoun .seg { align-self: start; }
.ds .pd-erase:not([hidden]) { display: grid; gap: 2px; justify-items: start; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.ds .pd-erase button { min-height: var(--h-touch); padding: 0; border: 0; background: none; color: var(--risk); font: 500 14px/20px var(--font); cursor: pointer; }
.ds .pd-erase button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .pd-erase small, .ds .pd-ro small { color: var(--ink-2); font: var(--t-meta); }
.ds .pd-ro { display: grid; gap: 2px; }
.ds .pd-ro[hidden] { display: none; }
.ds .pd-ro p { margin: 0; }
.ds .pd-h { margin: 0 0 var(--s-1); font: 600 13px/18px var(--font); }
.ds .pd-list { display: grid; gap: 4px; margin: 0; padding: 0 0 0 18px; list-style: disc; }
.ds .pd-list--keep { color: var(--ink-2); }
.ds .pd-sheet .btn--danger.sheet__main { color: var(--ink-inv); background: var(--risk); border-color: var(--risk); }
.ds .pd-sheet .sheet__foot { align-items: center; }
.ds .pd-sheet--confirm .sheet__cancel { display: inline-flex; }
.ds .pp-body { display: grid; grid-template-columns: minmax(0, 1fr); padding: var(--s-5) var(--s-6) var(--s-10); }
.ds .pp-col { display: grid; gap: var(--s-6); min-width: 0; max-width: 720px; }
.ds .pp-sec__head { display: flex; align-items: baseline; gap: var(--s-2); margin: 0 0 var(--s-2); }
.ds .pp-sec__head h2 { margin: 0; font: var(--t-head); letter-spacing: var(--t-head-track); }
.ds .pp-sec__n { color: var(--ink-2); font: var(--t-meta); font-variant-numeric: tabular-nums; }
.ds .pp-sec__hint { margin-left: auto; color: var(--ink-2); font: var(--t-meta); text-align: right; }
.ds .pp-list { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.ds .pp-sec--ask .pp-list { border-color: var(--wait-line); }
.ds .pp-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 2px 12px; align-items: start; padding: 11px 14px 12px; border-bottom: 1px solid var(--line); }
.ds .pp-row:last-child { border-bottom: 0; }
.ds .pp-row > .icon { width: 16px; height: 16px; margin-top: 2px; }
.ds .pp-row__title { min-width: 0; color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.ds .pp-row__title:hover { text-decoration: underline; text-underline-offset: 2px; }
.ds .pp-row__meta { grid-column: 2; color: var(--ink-2); font: var(--t-meta); overflow-wrap: anywhere; }
.ds .pp-row__meta q { quotes: "«" "»"; color: var(--ink); }
.ds .pp-row__side { grid-row: 1 / span 2; grid-column: 3; display: flex; align-items: center; gap: var(--s-2); align-self: center; }
.ds .pp-row__due { color: var(--ink-2); font: var(--t-meta); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds .pp-row__due--over { color: var(--risk); font-weight: 600; }
.ds .pp-empty { margin: 0; padding: 12px 14px; color: var(--ink-2); }
.ds .pp .i-wait { color: var(--wait); }
.ds .pp .i-mine { color: var(--accent); }
.ds .pp .i-risk { color: var(--risk); }
.ds .pp .i-dim { color: var(--ink-3); }
.ds .pp .i-done { color: var(--done); }
.ds .pp-bottom { display: none; }
.ds:has(.pp) .workspace__list > :is(#empty-state, #today-aside) { display: none; }
.ds .pp-sec[data-person-section="done"] .pp-list { padding: 12px 14px 4px; }

.ds .dp-person { display: grid; gap: 2px; }
.ds .dp-none { margin: 0; color: var(--ink-2); padding-bottom: 8px; }
.ds .dp-tally { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; font: 500 14px/20px var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ds .dp-tally__n { white-space: nowrap; }
.ds .dp-tally__n + .dp-tally__n::before { content: "·"; margin: 0 8px; color: var(--ink-3); }
.ds .dp-tally b { font-weight: 600; color: var(--ink); }
.ds .dp-tally__n--acc b { color: var(--done); }
.ds .dp-tally__n--ret b { color: var(--wait); }
.ds .dp-tally__n--zero b { color: var(--ink-3); font-weight: 500; }
.ds .dp-tally--lg { font-size: 16px; line-height: 24px; }
.ds .dp-more { display: inline-flex; align-items: center; justify-self: start; gap: 6px; min-height: var(--h-touch); margin: 0 0 0 -10px; padding: 0 10px; border: 0; border-radius: var(--r-s); background: none; color: var(--accent); font-weight: 500; cursor: pointer; }
.ds .dp-more:hover { background: var(--accent-wash); }
.ds .dp-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .dp-list { display: grid; gap: var(--s-3); }
.ds .dp-list--inset { margin-top: var(--s-2); }
.ds .dp-list[hidden] { display: none; }
.ds .dp-day__title { display: flex; align-items: baseline; gap: var(--s-2); margin: 0 0 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
.ds .dp-day__n { color: var(--ink-2); font: var(--t-meta); }
.ds .dp-day__rows { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-s); }
.ds .dp-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ds .dp-row:last-child { border-bottom: 0; }
.ds .dp-row > .icon { margin-top: 2px; }
.ds .dp-row__title { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ds .dp-row__title:hover { text-decoration: underline; }
.ds .dp-row__kind { color: var(--ink-2); font: var(--t-meta); white-space: nowrap; }
.ds .dp-row[data-done-kind="accepted"] .dp-row__kind { color: var(--done); }
.ds .dp-row[data-done-kind="rework"] .dp-row__kind { color: var(--wait); }

.ds .pn-band { padding: var(--s-4) var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ds .pn-band__head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.ds .pn-band__head h2 { margin: 0; font: var(--t-head); letter-spacing: var(--t-head-track); }
.ds .pn-private { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font: var(--t-meta); }
.ds .pn-private .icon { width: 14px; height: 14px; }
.ds .pn-band__form { display: flex; align-items: center; gap: var(--s-2); flex: 1 1 260px; max-width: 420px; margin-left: auto; }
.ds .pn-band__input { flex: 1; min-width: 0; min-height: 40px; background: var(--surface); }
.ds .pn-all { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 var(--s-2); border: 0; border-radius: var(--r-s); background: none; color: var(--accent); font: 500 14px/20px var(--font); white-space: nowrap; cursor: pointer; }
.ds .pn-all[hidden] { display: none; }
.ds .pn-all:hover { background: var(--accent-wash); }
.ds .pn-pins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.ds .pn-pins[hidden] { display: none; }
.ds .pn-slip { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-content: start; gap: 2px 8px; width: 100%; height: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; cursor: pointer; }
.ds .pn-slip:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.ds .pn-slip > .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--ink-2); }
.ds .pn-slip__text { font: var(--t-read); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ds .pn-slip small { grid-column: 2; color: var(--ink-2); font: var(--t-meta); }
.ds .pn-empty { margin: var(--s-2) 0 0; color: var(--ink-2); font: var(--t-meta); }
.ds .pn-empty[hidden] { display: none; }
.ds .pn-last { display: grid; gap: 2px; width: 100%; max-width: 72ch; margin: var(--s-3) 0 0; padding: 10px 12px; border: 0; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; cursor: pointer; }
.ds .pn-last:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.ds .pn-last[hidden] { display: none; }
.ds .pn-last__text { font: var(--t-read); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
.ds .pn-last small { color: var(--ink-2); font: var(--t-meta); }
.ds .pn-last:focus-visible, .ds .pn-slip:focus-visible, .ds .pn-all:focus-visible, .ds .pn-item__whole:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .pn-feed { display: grid; gap: var(--s-4); align-content: start; }
.ds .pn-compose { display: grid; gap: 6px; }
.ds .pn-compose__text { min-height: 64px; resize: vertical; }
.ds .pn-compose__row { display: flex; align-items: flex-start; gap: var(--s-2); }
.ds .pn-compose__row small { flex: 1; color: var(--ink-2); font: var(--t-meta); }
.ds .pn-help--phone { display: none; }
.ds .pn-find[hidden], .ds .pn-band__save[hidden], .ds #person-notes-save[hidden] { display: none; }
.ds .pn-find .input { width: 100%; min-height: 40px; }
.ds .pn-groups { display: grid; gap: var(--s-4); }
.ds .pn-group { display: flex; align-items: baseline; gap: var(--s-2); margin: 0 0 var(--s-1); color: var(--ink-2); font: 600 13px/18px var(--font); }
.ds .pn-group b { font-weight: 400; }
.ds .pn-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ds .pn-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s-2); padding: 12px 0; border-bottom: 1px solid var(--line); }
.ds .pn-item > :not(.pn-item__more) { grid-column: 1; }
.ds .pn-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0; color: var(--ink-2); font: var(--t-meta); font-variant-numeric: tabular-nums; }
.ds .pn-item__pin { display: inline-flex; color: var(--ink); }
.ds .pn-item__pin .icon { width: 14px; height: 14px; }
.ds .pn-item__text { margin: 0; font: var(--t-read); white-space: pre-line; overflow-wrap: anywhere; }
.ds .pn-item__text--clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ds .pn-item__whole { justify-self: start; min-height: 32px; padding: 0; border: 0; background: none; color: var(--accent); font: 500 13px/18px var(--font); cursor: pointer; }
.ds .pn-item__case { display: inline-flex; align-items: center; gap: 6px; justify-self: start; max-width: 100%; color: var(--accent); font: var(--t-meta); text-decoration: none; }
.ds .pn-item__case .icon { width: 14px; height: 14px; flex: none; }
.ds .pn-item__more { grid-column: 2; grid-row: 1 / span 2; margin: -6px -6px 0 0; color: var(--ink-2); }
.ds .pn-item--hl { background: var(--accent-wash); box-shadow: -12px 0 0 var(--accent-wash), 12px 0 0 var(--accent-wash); }
.ds .pn-item__error { margin: 0; }
.ds .pn-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ds .pn-layer__veil { display: none; }
.ds .pn-menu { position: absolute; width: min(300px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow-y: auto; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--e-pop, 0 8px 24px rgb(0 0 0 / 0.12)), 0 0 0 1px var(--line); pointer-events: auto; }
.ds .pn-menu__head { display: none; }
.ds .pn-menu__dim { color: var(--ink-3); }
.ds .pn-edit { display: grid; gap: var(--s-2); }
.ds .pn-edit .input { width: 100%; }
.ds .pn-edit__row { display: flex; justify-content: flex-end; gap: var(--s-2); }
.ds .pn-drop__q { margin: 0; color: var(--risk); font-weight: 500; }
.ds .pn-more { border-top: 0; padding: 0; }
.ds .pn-more[hidden] { display: none; }

.ds .pp-body:has(.pp-talk) { grid-template-columns: minmax(0, 1fr) minmax(300px, 392px); gap: var(--s-6); align-items: start; }
.ds .pp-talk { position: sticky; top: var(--s-4); min-width: 0; }
@container pp (max-width: 760px) {
  .ds .pp-body:has(.pp-talk) { grid-template-columns: minmax(0, 1fr); }
  .ds .pp-talk { position: static; }
  .ds .pp-row { grid-template-columns: 16px minmax(0, 1fr); }
  .ds .pp-row__side { grid-row: auto; grid-column: 2; align-self: start; flex-wrap: wrap; margin-top: 6px; }
}
.ds .talk { display: flex; flex-direction: column; border-radius: var(--r-m); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ds .talk__head { padding: var(--s-4) var(--s-4) var(--s-2); }
.ds .talk__head h2 { margin: 0; font: var(--t-title); letter-spacing: -0.012em; }
.ds .talk__last { margin: 2px 0 0; color: var(--ink-2); font: var(--t-meta); }
.ds .talk__last--done { color: var(--done); font-weight: 500; }
.ds .talk__group { margin: 0; padding: var(--s-2) var(--s-4) var(--s-1); color: var(--ink-2); font: var(--t-meta); }
.ds .talk__list { display: grid; gap: 2px; margin: 0; padding: 0 var(--s-2); list-style: none; }
.ds .talk-auto { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 0 10px; padding: 8px; border-radius: var(--r-s); }
.ds .talk-auto > .icon { width: 16px; height: 16px; margin-top: 2px; }
.ds .talk-auto__text, .ds .talk-item__words { min-width: 0; overflow-wrap: anywhere; }
.ds .talk__case { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 2px; }
.ds .talk__case:focus-visible, .ds .talk-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .talk-auto small, .ds .talk-item small { display: block; color: var(--ink-2); font: var(--t-meta); }
.ds .talk-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 0 10px; padding: 8px; border-radius: var(--r-s); }
.ds .talk-item__check { margin-top: 1px; }
.ds .talk-item__check::after { content: ""; position: absolute; inset: -13px; }
.ds .talk-item__check:has(input:focus-visible) .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .talk-item--on .talk-item__text { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.ds .talk-item .talk-item__carry { color: var(--wait); }
.ds .talk-item__drop { margin: -6px -4px 0 0; color: var(--ink-2); }
.ds .talk__add { display: grid; gap: 6px; margin: var(--s-2) var(--s-4) 0; }
.ds .talk__field { min-height: 40px; padding: 0 var(--s-3); border: 1px dashed var(--accent-line); color: var(--ink-2); cursor: text; }
.ds .talk__field > .icon { flex: none; color: var(--accent); }
.ds .talk__field:focus-within { border: 1px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--ink); }
.ds .talk__input { flex: 1; min-width: 0; min-height: 38px; padding: 0; border: 0; background: none; color: var(--ink); font: var(--t-read); outline: none; }
.ds .talk__input::placeholder { color: var(--ink-2); }
.ds .talk__note { visibility: hidden; margin: 0; color: var(--ink-2); font: var(--t-meta); }
.ds .talk__add:focus-within .talk__note { visibility: visible; }
.ds .talk__foot { display: grid; gap: var(--s-2); margin-top: var(--s-3); padding: var(--s-4); border-top: 1px solid var(--accent-line); }
.ds .talk__foot .btn { justify-self: start; background: var(--surface); }
.ds .talk__foot .btn[aria-pressed="true"] { background: var(--done-soft); }
.ds .talk__hist { margin: 0; color: var(--ink-2); font: var(--t-meta); }
.ds .talk-link { display: none; }
.ds .pt-sheet__bar { padding: var(--s-1) var(--s-2) 0; }
.ds .pt-sheet__back { border: 0; background: none; font: inherit; font-weight: 500; cursor: pointer; }

@media (max-width: 767.98px) {
  .ds .pp-top { padding: var(--s-1) var(--s-2) 0; }
  .ds .pp-body:has(.pp-talk) { grid-template-columns: minmax(0, 1fr); }
  .ds .pp-talk { display: none; }
  .ds .talk-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px var(--s-2); width: calc(100% - 2 * var(--s-4)); min-height: 56px; margin: var(--s-3) var(--s-4) 0; padding: var(--s-3) var(--s-4); border: 0; border-radius: var(--r-m); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--ink); text-align: left; cursor: pointer; }
  .ds .talk-link b { font: var(--t-head); }
  .ds .talk-link small { grid-column: 1; color: var(--ink-2); font: var(--t-meta); }
  .ds .talk-link > .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--accent); }
  .ds .pt-sheet[data-ds-sheet] { top: var(--safe-top); max-height: none; border-radius: 0; }
  .ds .pt-sheet .sheet__body { padding: 0; }
  .ds .pt-sheet .talk { border-radius: 0; background: none; box-shadow: none; }
  .ds .pt-sheet .talk__head h2 { font: 600 24px/30px var(--font); }
  .ds .pt-sheet .talk__foot { border-top-color: var(--line); }
  /* Лист «К разговору» во весь экран: сообщение встаёт под строкой «‹ Имя», а не на неё. */
  body:has(#person-talk:not([hidden])) .toast-region { top: calc(56px + var(--safe-top)); bottom: auto; }
  .ds .talk-item { min-height: var(--h-touch); }
  .ds .talk-item__drop { width: 44px; height: 44px; margin: -12px -10px 0 0; }
  .ds .talk__field { min-height: var(--h-touch); }
  .ds .talk__foot .btn { justify-self: stretch; }
  .ds .pp-head { gap: 2px var(--s-3); padding: var(--s-1) var(--s-4) var(--s-4); }
  .ds .pn-band { padding: var(--s-4); }
  .ds .pn-band__form { order: 9; flex-basis: 100%; max-width: none; margin-left: 0; }
  .ds .pn-band__input { min-height: var(--h-touch); }
  .ds .pn-all { margin-left: auto; min-height: var(--h-touch); }
  .ds .pn-all__tail, .ds .pn-help--desk { display: none; }
  .ds .pn-help--phone { display: inline; }
  .ds .pn-pins { grid-template-columns: 1fr; gap: var(--s-2); }
  .ds .pn-item__more { width: 44px; height: 44px; margin: -10px -10px 0 0; }
  .ds .pn-item__whole { min-height: var(--h-touch); }
  .ds .pn-sheet[data-ds-sheet] { top: var(--safe-top); max-height: none; }
  .ds .pn-layer { pointer-events: auto; }
  .ds .pn-layer__veil { display: block; position: absolute; inset: 0; background: var(--scrim); }
  .ds .pn-menu { left: 0; right: 0; bottom: 0; width: auto; max-height: 85%; padding: 0 var(--s-2) calc(var(--s-3) + var(--safe-bottom)); border-radius: 18px 18px 0 0; box-shadow: var(--e-dialog); }
  .ds .pn-menu__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 0 0 var(--s-2) var(--s-2); }
  .ds .pn-menu__grip { grid-column: 1 / -1; justify-self: center; width: 40px; height: 5px; margin: var(--s-2) 0; border-radius: var(--r-pill); background: var(--line-2); }
  .ds .pn-menu__title { margin: 0; font: 600 20px/26px var(--font); }
  .ds .pn-menu__close { width: 44px; height: 44px; }
  .ds .pn-menu .menu__item { min-height: var(--h-touch); }
  .ds .pp-face { width: 44px; height: 44px; font-size: 18px; }
  .ds .pp-who { display: contents; }
  .ds .pp-name { grid-column: 2; grid-row: 1; align-self: center; font-size: 26px; line-height: 32px; }
  .ds .pp-acts { grid-column: 3; grid-row: 1; gap: 6px; }
  .ds .pp-acts .pp-give { display: none; }
  .ds .pp-facts, .ds .pp-edit { grid-column: 1 / -1; }
  .ds .pp-role { grid-column: 1 / -1; grid-row: 2; margin-top: var(--s-2); color: var(--ink); }
  .ds .pp-sub { grid-column: 1 / -1; }
  .ds .pp-counts { grid-column: 1 / -1; gap: 2px 14px; margin-top: var(--s-2); font-size: 14px; }
  .ds .pp-body { padding: var(--s-4) 0 var(--s-8); }
  .ds .pp-sec__head { padding: 0 var(--s-4); }
  .ds .pp-list { border-radius: 0; border-inline: 0; }
  .ds .pp-row { grid-template-columns: 16px minmax(0, 1fr); padding: 12px 16px; }
  .ds .pp-row__side { grid-row: auto; grid-column: 2; align-self: start; flex-wrap: wrap; margin-top: 6px; }
  .ds .dp-row__title { display: flex; align-items: center; margin: -11px 0; }
  /* Поле касания 44px растягиваем псевдоэлементом: отрицательный отступ у самой ссылки
     съедал высоту, и строка мета под длинным названием наезжала на него. */
  .ds a.pp-row__title { position: relative; min-height: 0; }
  .ds a.pp-row__title::after { content: ""; position: absolute; inset: -11px 0; }
  .ds .pp-row__side { position: relative; }
  .ds .pp-row__side .btn { min-height: var(--h-touch); }
  .ds .pp-row__side .btn:first-child { flex: 1; }
  .ds .pp-bottom { position: sticky; bottom: 0; z-index: 3; display: flex; padding: var(--s-2) var(--s-4) max(var(--s-2), var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .ds .pp-bottom__give { flex: 1; min-height: var(--h-touch); }
  body:has(.pp-bottom) .toast-region { bottom: calc(156px + var(--safe-bottom)); }
}
.ds .dp-tally__link { margin-left: var(--s-4); color: var(--accent); font: var(--t-meta); font-weight: 500; text-decoration: none; white-space: nowrap; }
.ds .dp-tally__link:hover { text-decoration: underline; }
.ds .dp-head { display: grid; gap: var(--s-3); padding: var(--s-1) 0 var(--s-4); border-bottom: 1px solid var(--line); }
.ds .dp-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.ds .dp-period { gap: 6px; min-height: 40px; font-weight: 600; }
.ds .dp-period__dates { color: var(--ink-2); font-weight: 500; }
.ds .dp-period[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.ds .dp-strip { display: grid; grid-template-columns: repeat(var(--dp-days, 5), minmax(0, 1fr)); gap: 4px; max-width: calc(var(--dp-days, 5) * 112px); margin: 0; padding: 0; list-style: none; }
.ds .dp-strip__day { display: grid; align-content: start; gap: 6px; min-height: 56px; padding: 6px 8px 8px; border-radius: var(--r-s); color: var(--ink-2); font: var(--t-meta); text-decoration: none; }
.ds .dp-strip__day:hover { background: var(--surface-2); }
.ds .dp-strip__day:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .dp-strip__name { display: flex; justify-content: space-between; gap: 4px; }
.ds .dp-strip__name b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ds .dp-strip__day--today { background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--ink); }
.ds .dp-strip__day--today .dp-strip__name { color: var(--ink); font-weight: 600; }
.ds .dp-strip__day--zero b { color: var(--ink-3); font-weight: 500; }
.ds .dp-beads { display: flex; flex-wrap: wrap; gap: 4px; }
.ds .dp-bead { display: inline-block; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--done); }
.ds .dp-bead--acc { background: var(--done); }
.ds .dp-bead--drop { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ds .dp-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--ink-2); font: var(--t-meta); }
.ds .dp-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.ds .dp-who { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 500; }
.ds .dp-ret { display: inline-flex; align-items: center; gap: 4px; color: var(--wait); font-weight: 500; white-space: nowrap; }
.ds .dp-q { quotes: "«" "»"; }
.ds .dp-chip { display: inline-flex; align-items: center; gap: 4px; }
.ds .dp-row-open__state { color: var(--wait); font-weight: 500; }
.ds .dp-pick { display: grid; margin: 0; padding: var(--s-1) 0; list-style: none; }
.ds .dp-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); width: 100%; min-height: 44px; padding: 0 var(--s-4); border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.ds .dp-opt:hover { background: var(--surface-2); }
.ds .dp-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ds .dp-opt__mark { color: var(--accent); visibility: hidden; }
.ds .dp-opt__name { font-weight: 500; }
.ds .dp-opt__dates { color: var(--ink-2); font: var(--t-meta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds .dp-opt[aria-pressed="true"] { background: var(--accent-wash); }
.ds .dp-opt[aria-pressed="true"] .dp-opt__name { font-weight: 600; }
.ds .dp-opt[aria-pressed="true"] .dp-opt__mark { visibility: visible; }
.ds .dp-own { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4) var(--s-4); border-top: 1px solid var(--line); }
.ds .dp-own__title { margin: 0; font: var(--t-meta); font-weight: 600; color: var(--ink); }
.ds .dp-own__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--s-2); align-items: end; }
.ds .dp-own__error { margin: 0; color: var(--risk); font: var(--t-meta); }
.ds .dp-pop:not(.sheet) { width: 400px; }
.ds .dp-pop .popover__body { padding: 0; }
.ds .dp-empty { max-width: 520px; }
@media (max-width: 767.98px) {
  .ds .dp-head { gap: var(--s-2); }
  .ds .dp-period { width: 100%; justify-content: flex-start; min-height: var(--h-touch); }
  .ds .dp-period .dp-caret { margin-left: auto; }
  .ds .dp-tally--lg { font-size: 15px; line-height: 22px; }
  .ds .dp-tally__link { margin-left: 0; flex-basis: 100%; min-height: 32px; line-height: 32px; }
  .ds .dp-strip { gap: 2px; }
  .ds .dp-strip__day { padding: 6px 4px 8px; min-height: var(--h-touch); }
  .ds .dp-strip__name { flex-direction: column; gap: 0; }
  .ds .dp-bead { width: 8px; height: 8px; }
  .ds .dp-beads { gap: 3px; }
  .ds .dp-own__row { grid-template-columns: 1fr 1fr; }
  .ds .dp-own__row .btn { grid-column: 1 / -1; min-height: 48px; }
  .ds .dp-opt { min-height: 52px; }
}
.ds #entries .task-row--closed .dp-meta { flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px 10px; }
.ds #entries .task-row--closed .dp-meta > .task-row__due { margin-left: auto; font-variant-numeric: tabular-nums; }
.ds .dp-pop:not(.sheet) .sheet__handle { display: none; }
.ds .dp-pop:not(.sheet) .sheet__head { padding: 12px 8px 4px 16px; }
.ds .issue-dialog { --dialog-w: min(560px, calc(100vw - 32px)); margin-top: 64px; }
.ds .issue-dialog__form { display: flex; flex-direction: column; min-height: 0; }
.ds .issue-dialog__title { flex: 1 1 auto; margin: 0; }
.ds .issue-dialog__where { flex: 1 1 200px; color: var(--ink-3); }
/* Окно прокручивается целиком; низ с «Поручить» прилипает к его краю, чтобы
   кнопка была видна сразу, а не после прокрутки длинной формы. */
.ds .issue-dialog .dialog__foot { position: sticky; bottom: 0; z-index: 1; }
@media (max-width: 767.98px) {
  .ds .issue-dialog { margin-top: auto; }
  .ds .issue-dialog__where { flex-basis: 100%; }
  .ds .issue-dialog .dialog__foot .btn--primary { flex: 1 1 auto; }
}
.ds .issue-form:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }
.ds .issue-form__field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.ds .issue-form__label { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; }
.ds .issue-form__req { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-3); }
.ds .issue-form__area { width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong, var(--line)); border-radius: var(--r-m); resize: vertical; }
.ds .issue-form__area:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ds .issue-form__field--error .issue-form__area { border-color: var(--risk); box-shadow: 0 0 0 3px var(--risk-soft); }
.ds .issue-form__error:not([hidden]) { display: block; margin: 0; padding: 8px 12px; color: var(--risk); background: var(--risk-soft); border: 1px solid var(--risk-line, var(--risk)); border-radius: var(--r-m); font-size: 13px; line-height: 18px; }
.ds .issue-form .field__error[hidden] { display: none; }
.ds .issue-form__to { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); }
.ds .issue-form__to-field[hidden] { display: none; }
.ds .issue-form__to-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.ds .issue-form__to-name { font-weight: 600; overflow-wrap: anywhere; }
.ds .issue-form__to-sub { color: var(--ink-3); font-size: 13px; line-height: 18px; }
.ds .issue-form__to .btn { min-height: 44px; }
.ds .issue-form__people[hidden] { display: none; }
.ds .issue-form__more-hint { margin-left: 6px; font-weight: 400; color: var(--ink-3); font-size: 13px; }
.ds .issue-form .field__help[hidden] { display: none; }
.ds .sections-open { display: none; }
@media (max-width: 767.98px) {
  .ds .page-head > #pick-start { gap: var(--s-1); padding-inline: var(--s-2); }
  .ds .sections-open { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 16px; height: 24px; height: var(--h-touch); padding: 0; border: 0; background: none; color: var(--ink-3); cursor: pointer; }
  /* Кнопка растянута на весь заголовок: нажатие на имя экрана открывает лист, а h1 остаётся заголовком страницы. */
  .ds .sections-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-s); }
  .ds .sections-open:focus-visible { outline: 0; }
  .ds .sections-open:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
}
.ds .sections-sheet .sheet__body { display: grid; gap: var(--s-1); padding: 0 var(--s-3) var(--s-3); }
.ds .sections-sheet .filters, .ds .sections-sheet #sidebar-people, .ds .sections-sheet #sidebar-projects, .ds .sections-sheet .sidebar__foot { display: grid; gap: 2px; }
.ds .sections-sheet .nav-item { justify-content: flex-start; height: auto; min-height: var(--h-touch); padding: 0 var(--s-3); }
.ds .sections-sheet .nav-item__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Страница проекта (PJF1): шапка с «Как оцениваем» справа, полоска блоков, дела и люди третьей колонкой. */
.ds:has(.pj, .pj-missing) .workspace__list > :is(#empty-state, #today-aside) { display: none; }
.ds .pj-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-2) var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); }
.ds .pj-head__main { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.ds .pj-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.ds .pj-about { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.ds .pj-purpose { display: grid; gap: 2px; }
.ds .pj-purpose__label { margin: 0; color: var(--ink-2); font: var(--t-meta); font-weight: 600; }
.ds .pj-purpose__text { margin: 0; font-size: 18px; line-height: 28px; overflow-wrap: anywhere; }
.ds .pj-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.ds .pj-acts .btn { min-height: var(--h-touch); }
.ds .pj-metrics { align-self: start; min-width: 0; padding: var(--s-3) var(--s-4) var(--s-2); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.ds .pj-metrics__head { display: flex; align-items: center; gap: var(--s-2); justify-content: space-between; }
.ds .pj-metrics__head h2 { margin: 0; font: var(--t-head); letter-spacing: var(--t-head-track); }
.ds .pj-metrics__head h2:focus, .ds .pj-sec h2:focus { outline: none; }
.ds .pj-metrics__table { width: 100%; border-collapse: collapse; table-layout: auto; }
.ds .pj-metrics__table th, .ds .pj-metrics__table td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: right; vertical-align: top; overflow-wrap: anywhere; }
.ds .pj-metrics__table thead th { white-space: nowrap; overflow-wrap: normal; border-top: 0; color: var(--ink-2); font: var(--t-meta); font-weight: 500; }
.ds .pj-metrics__table :is(th, td):first-child { padding-left: 0; text-align: left; }
.ds .pj-metrics__table :is(th, td):last-child { padding-right: 0; }
.ds .pj-metrics__name { display: table-cell; font-weight: 400; }
.ds .pj-metrics__name > span { display: block; }
.ds .pj-metrics__note { display: block; color: var(--ink-2); font: var(--t-meta); }
.ds .pj-metrics__num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds .pj-metrics__now { font-weight: 600; }
.ds .pj-metrics__act { width: 1%; }
.ds .pj-jumps { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); padding: var(--s-2) var(--s-5); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ds .pj-jumps__item { display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-touch); padding: 0 var(--s-2); border: 0; border-radius: var(--r-s); background: none; color: var(--ink); font: 500 14px/20px var(--font); cursor: pointer; }
.ds .pj-jumps__item:hover { background: var(--surface-3); }
.ds .pj-jumps__item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .pj-jumps__n { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ds .pj-jumps__signal { color: var(--risk); font-weight: 600; }
.ds .pj-body { gap: var(--s-6); align-items: start; }
.ds .pj-body .pp-col { max-width: none; }
.ds .pj-aside { display: grid; gap: var(--s-6); min-width: 0; }
.ds.project-on .desk-view { display: none; }
.ds .pj-add { color: var(--accent); }
.ds .pp-sec__head > .pj-add { margin-left: auto; align-self: center; }
.ds .pj-meet, .ds .pj-dec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 14px; }
.ds .pj-meet--next { background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); }
.ds .pj-meet__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-2); }
.ds .pj-meet__when, .ds .pj-dec__when { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ds .pj-meet__kind, .ds .pj-meet__who, .ds .pj-dec__meta { margin: 0; color: var(--ink-2); font: var(--t-meta); overflow-wrap: anywhere; }
.ds .pj-meet__agenda { margin: 0; padding-left: 18px; list-style: disc; overflow-wrap: anywhere; }
.ds .pj-meet__summary, .ds .pj-dec__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.ds .pj-meet__label { color: var(--ink-2); font-weight: 600; }
.ds .pj-dec__meeting { padding: 0; border: 0; background: none; font: inherit; text-align: start; cursor: pointer; }
.ds .pj-meet:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ds .pj-dec__entry { justify-self: start; color: var(--accent); overflow-wrap: anywhere; }
.ds .pj-rec__acts { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.ds .pj-rec__acts .btn { min-height: var(--h-touch); }
.ds [data-project-section="notes"] .pp-list { display: grid; gap: var(--s-2); padding: var(--s-2); }
.ds .pj-note { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 2px 8px; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.ds .pj-note--pinned { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ds .pj-note > .icon { width: 16px; height: 16px; margin-top: 3px; }
.ds .pj-note__text { margin: 0; font: var(--t-read); white-space: pre-line; overflow-wrap: anywhere; }
.ds .pj-note__meta, .ds .pj-note .pj-rec__acts { grid-column: 2; }
.ds .pj-note__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s-2); margin: 0; color: var(--ink-2); font: var(--t-meta); }
.ds .pj-note__private { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; }
.ds .pj-edit__radios, .ds .pj-edit__people { gap: var(--s-1); }
.ds .pj-edit__people { max-height: 240px; overflow-y: auto; }
.ds .pj-edit__radio, .ds .pj-edit__check { display: flex; align-items: center; gap: var(--s-2); min-height: var(--h-touch); cursor: pointer; }
.ds .pj-person { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; }
.ds .pj-person .avatar { grid-row: 1 / span 2; align-self: start; }
.ds .pj-start { display: grid; gap: var(--s-3); max-width: 640px; padding: var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r-m); }
.ds .pj-start__title { margin: 0; font: var(--t-head); }
.ds .pj-start__text { margin: 0; color: var(--ink-2); }
.ds .pj-start__list { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ds .pj-start__btn { display: flex; align-items: flex-start; gap: var(--s-3); width: 100%; min-height: var(--h-touch); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ds .pj-start__btn:hover { background: var(--surface-2); }
.ds .pj-start__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .pj-start__words { display: grid; gap: 2px; }
.ds .pj-start__label { font-weight: 600; }
.ds .pj-start__sub { color: var(--ink-2); font: var(--t-meta); }
.ds .pj-list__head { display: flex; align-items: baseline; gap: var(--s-2); padding: var(--s-4) var(--s-6) var(--s-3); }
.ds .pj-list__rows { margin: 0 var(--s-6) var(--s-8); padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.ds .pj-list__row + .pj-list__row { border-top: 1px solid var(--line); }
.ds .pj-list__link { display: flex; align-items: center; gap: var(--s-2); min-height: 52px; padding: var(--s-2) var(--s-4); color: var(--ink); text-decoration: none; }
.ds .pj-list__link:hover { background: var(--surface-2); }
.ds .pj-list__link:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ds .pj-list__name { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ds .pj-list__row--archived .pj-list__name { color: var(--ink-2); font-weight: 500; }
.ds .pj-list__signal { font: var(--t-meta); font-weight: 600; white-space: nowrap; }
.ds .pj-list__signal--risk { color: var(--risk); }
.ds .pj-edit { display: grid; gap: var(--s-4); }
.ds .pj-edit__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.ds .pj-edit__group { display: grid; gap: var(--s-3); margin: 0; padding: var(--s-3) 0 0; border: 0; border-top: 1px solid var(--line); }
.ds .pj-edit textarea.input { min-height: 72px; resize: vertical; }
.ds [data-project-section="money"] .pp-list { display: grid; }
.ds .pj-money { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4) var(--s-4); border-bottom: 1px solid var(--line); }
.ds .pj-money__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--s-3); }
.ds .pj-money__contract { margin: 0; font: var(--t-head); font-size: 22px; line-height: 28px; font-variant-numeric: tabular-nums; }
.ds .pj-money__open { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ds .pj-money__open strong { color: var(--ink); }
.ds .pj-money__over { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ds .pj-money__note, .ds .pj-money__budget { margin: 0; color: var(--ink-2); font: var(--t-meta); overflow-wrap: anywhere; }
.ds .pj-money__bar { display: flex; gap: 2px; height: 12px; margin-top: var(--s-1); border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.ds .pj-money__part { flex: 0 1 0; min-width: 4px; }
.ds .pj-money__part--paid { background: var(--done); }
.ds .pj-money__part--debt { background: var(--risk); }
.ds .pj-money__part--waiting { background: repeating-linear-gradient(135deg, var(--wait) 0 4px, var(--wait-soft) 4px 8px); }
.ds .pj-money__part--not_invoiced { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.ds .pj-money__legend { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ds .pj-money__key { display: inline-flex; align-items: center; gap: 6px; }
.ds .pj-money__key strong { color: var(--ink); }
.ds .pj-money__swatch { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.ds .pj-charge { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 11px 14px 12px; border-bottom: 1px solid var(--line); }
.ds .pj-charge > .icon { align-self: start; margin-top: 3px; }
.ds .pj-charge__main { display: grid; gap: 2px; min-width: 0; }
.ds .pj-charge__title { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: start; overflow-wrap: anywhere; text-decoration: none; cursor: pointer; }
.ds [data-project-section="tasks"] .pp-sec__head { flex-wrap: wrap; }
.ds .pj-charge__title:hover { text-decoration: underline; text-underline-offset: 2px; }
.ds .pj-charge__title:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .pj-charge__meta { margin: 0; color: var(--ink-2); font: var(--t-meta); overflow-wrap: anywhere; }
.ds .pj-charge__meta--risk { color: var(--risk); font-weight: 600; }
.ds .pj-charge__progress { height: 4px; margin-top: 4px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.ds .pj-charge__progress > span { display: block; height: 100%; background: var(--done); }
.ds .pj-charge__pay { min-height: var(--h-touch); }
.ds .pj-charge--paid .pj-charge__title { font-weight: 500; }
.ds .pj-money__paid { border-bottom: 1px solid var(--line); }
.ds .pj-money__paid-head { display: flex; align-items: center; gap: var(--s-2); min-height: var(--h-touch); padding: 0 14px; cursor: pointer; list-style: none; }
.ds .pj-money__paid-head::-webkit-details-marker { display: none; }
.ds .pj-money__paid-head::after { content: none; }
.ds .pj-money__paid-head:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ds .pj-money__paid-label { color: var(--accent); font-weight: 500; }
.ds .pj-money__paid-sum { flex: 1 1 auto; min-width: 0; color: var(--ink-2); font: var(--t-meta); }
.ds .pj-money__paid[open] .pj-money__paid-head > .icon { transform: rotate(180deg); }
.ds .pj-money__paid .pj-charge:last-child { border-bottom: 0; }
.ds .pj-money__foot { padding: var(--s-1) var(--s-2); }
.ds .pj-money__foot .pj-add { min-height: var(--h-touch); }
.ds .pj-edit__payment { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: var(--h-touch); font-variant-numeric: tabular-nums; }
.ds .pj-edit__about { margin: 0; }
.ds .pj-task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--line-2); }
.ds .pj-task:last-child { border-bottom: 0; }
.ds .pj-task__main { display: grid; gap: 2px; min-width: 0; }
.ds .pj-task__title { margin: 0; overflow-wrap: anywhere; }
.ds .pj-task__meta { display: flex; flex-wrap: wrap; gap: 2px var(--s-2); margin: 0; color: var(--ink-2); font: var(--t-meta); }
.ds .pj-task__who { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ds .pj-task__who--none { color: var(--ink-2); font-weight: 400; }
.ds .pj-task__state--done { color: var(--done); font-weight: 600; }
.ds .pj-task__state--dropped { color: var(--ink-2); }
.ds .pj-task--done .pj-task__title, .ds .pj-task--dropped .pj-task__title { color: var(--ink-2); text-decoration: line-through; }
.ds .pj-task--done { border-left-color: var(--done-line); }
.ds .pj-task__acts { grid-column: 1 / -1; }
/* Раскладка страницы проекта — по ширине самой страницы (контейнер pp), а не окна: рядом с открытой карточкой страница узкая и на широком окне. */
@container pp (max-width: 859.98px) {
  /* Деньги на узкой странице — выше «Как оцениваем» (§6), а метрики живут в шапке: шапку и тело раскрываем в общий поток и расставляем порядком. */
  .ds .pj:has(#pj-sec-money) :is(.pj-head, .pj-body, .pj-body > .pp-col, .pj-aside) { display: contents; }
  .ds .pj:has(#pj-sec-money) .pj-head__main { padding: var(--s-2) var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); }
  .ds .pj:has(#pj-sec-money) :is(.pj-metrics, .pj-body .pj-sec) { order: 2; margin: var(--s-6) var(--s-6) 0; }
  .ds .pj:has(#pj-sec-money) .pj-metrics { order: 1; }
  .ds .pj:has(#pj-sec-money) #pj-sec-money { order: 0; }
  /* Сам контейнер своим запросом не стилизуется, поэтому нижний отступ — у последнего блока потока. */
  .ds .pj:has(#pj-sec-money) .pj-body > :last-child > :last-child { margin-bottom: var(--s-10); }
}
@container pp (max-width: 767.98px) {
  .ds .pj:has(#pj-sec-money) .pj-head__main { padding: var(--s-1) var(--s-4) var(--s-4); }
  .ds .pj:has(#pj-sec-money) .pj-body .pj-sec { margin: var(--s-4) 0 0; }
  .ds .pj:has(#pj-sec-money) .pj-metrics { margin: var(--s-4) var(--s-4) 0; }
  .ds .pj-charge { grid-template-columns: 16px minmax(0, 1fr); padding: 12px 16px; }
  .ds .pj-charge__pay { grid-column: 2; justify-self: start; margin-top: 6px; }
  .ds .pj-money { padding: var(--s-3) var(--s-4); }
  .ds .pj-task { padding: 12px 16px; }
}
.ds .pj-mat .pp-row__title, .ds .pj-src__address { overflow-wrap: anywhere; }
.ds a.pj-mat__title, .ds a.pj-src__address { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.ds .pj-handy { border-top: 1px solid var(--line); }
.ds .pj-sec > .pj-handy:nth-child(2) { border-top: 0; }
.ds .pj-handy__toggle { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: var(--h-touch); padding: var(--s-3) 14px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ds .pj-handy__toggle:hover { background: var(--surface-2); }
.ds .pj-handy__toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.ds .pj-handy__words { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ds .pj-handy__label { font-weight: 600; }
.ds .pj-handy__sub { color: var(--ink-2); font: var(--t-meta); }
.ds .pj-handy__chev { flex: none; transition: transform 0.15s ease; }
.ds .pj-handy__toggle[aria-expanded="true"] .pj-handy__chev { transform: rotate(180deg); }
.ds .pj-handy__body { display: grid; gap: var(--s-3); padding: 0 14px var(--s-3); }
.ds .pj-handy__body[hidden] { display: none; }
.ds .pj-handy__case { display: grid; gap: var(--s-1); min-width: 0; }
.ds .pj-handy__case-title { margin: 0; font: var(--t-meta); color: var(--ink-2); }
.ds .pj-handy__case-link { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ds .pj-handy__note { margin: 0; color: var(--ink-2); font: var(--t-meta); }
.ds .pj-handy__note--error { color: var(--risk); }
@media (prefers-reduced-motion: reduce) {
  .ds .pj-handy__chev { transition: none; }
}
.ds .tl { margin: 0; padding: 0; list-style: none; }
.ds .tl__day { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 var(--s-3); }
.ds .tl__date { padding-top: 10px; color: var(--ink-2); font: 600 13px/18px var(--font); font-variant-numeric: tabular-nums; }
.ds .tl__date small { display: block; font-weight: 400; }
.ds .tl__items { margin: 0; padding: 0 0 0 var(--s-4); list-style: none; border-left: 2px solid var(--line); }
.ds .tl__it { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 9px 0 9px 6px; }
.ds .tl__it::before { content: ""; position: absolute; left: calc(-1 * var(--s-4) - 7px); top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--k, var(--line-2)); }
.ds .tl__kind { display: inline-flex; align-items: center; gap: 4px; color: var(--k, var(--ink-2)); font: 600 12px/16px var(--font); }
.ds .tl__text { color: var(--ink); overflow-wrap: anywhere; }
.ds .tl__meta { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); color: var(--ink-2); font: var(--t-meta); }
.ds .tl__link { color: var(--accent); text-decoration: none; }
.ds .tl__link:hover { text-decoration: underline; }
.ds .tl__link:focus-visible, .ds .pj-tl-more:focus-visible, .ds .tl-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .tl--case { --k: var(--ink-2); }
.ds .tl--meet { --k: var(--accent); }
.ds .tl--dec { --k: var(--model); }
.ds .tl--note { --k: var(--n-9); }
.ds .tl--money { --k: var(--done); }
.ds .tl--their { --k: var(--wait); }
.ds .tl-wrap { padding: var(--s-1) var(--s-4) var(--s-2); }
.ds .pj-tl-more { display: flex; align-items: center; gap: 4px; min-height: var(--h-touch); margin-top: var(--s-1); border-top: 1px solid var(--line); color: var(--accent); font-weight: 500; text-decoration: none; }
.ds .pj-tl-more .icon { margin-left: auto; }
.ds .pj-tl__head { display: grid; gap: var(--s-1); padding: var(--s-2) var(--s-6) var(--s-4); }
.ds .pj-tl__body { padding: 0 var(--s-6) var(--s-8); }
.ds .pj-tl__body .tl-wrap { padding: 0; }
.ds .tl-filter { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-bottom: var(--s-3); }
.ds .tl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-touch); padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font: 500 13px/18px var(--font); white-space: nowrap; cursor: pointer; }
.ds .tl-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--ink-inv); }
.ds .tl-month { margin: var(--s-4) 0 var(--s-1); font: var(--t-head); }
.ds .tl-month:first-child { margin-top: 0; }
.ds .tl-empty { margin: 0; color: var(--ink-2); }
.ds .pj-tl-more-btn { margin-top: var(--s-3); }
.ds .pj-tl-feed[aria-busy="true"] { opacity: 0.6; }
@container pp (min-width: 860px) {
  .ds .pj-head:has(.pj-metrics) { grid-template-columns: minmax(0, 1fr) minmax(300px, 392px); }
  .ds .pj-body:has(.pj-aside) { grid-template-columns: minmax(480px, 1fr) minmax(280px, 392px); }
}
@container pp (max-width: 767.98px) {
  .ds .pj .pp-top { padding: var(--s-1) var(--s-2) 0; }
  .ds .pj .pp-body { padding: var(--s-4) 0 var(--s-8); }
  .ds .pj .pp-sec__head { padding: 0 var(--s-4); }
  .ds .pj .pp-list { border-radius: 0; border-inline: 0; }
  .ds .pj-head { padding: var(--s-1) var(--s-4) var(--s-4); }
  .ds .pj-jumps { padding: var(--s-1) var(--s-3); }
  .ds .pj-start { margin: 0 var(--s-4); }
  .ds .pj-list__head { padding: var(--s-3) var(--s-4) var(--s-2); }
  .ds .pj-list__rows { margin: 0 0 var(--s-8); border-radius: 0; border-inline: 0; }
  .ds .pj-person { grid-template-columns: 24px minmax(0, 1fr); }
  .ds .tl__day { grid-template-columns: minmax(0, 1fr); }
  .ds .tl__date { padding: 8px 0 2px; }
  .ds .tl__date small { display: inline; margin-left: 6px; }
  .ds .tl__items { margin-left: 6px; }
  .ds .pj-tl__head { padding: var(--s-1) var(--s-4) var(--s-3); }
  .ds .pj-tl__head .pp-name { grid-column: auto; grid-row: auto; }
  .ds .pj-tl__body { padding: 0 var(--s-4) var(--s-8); }
  .ds .tl-filter { gap: 6px; }
  .ds .tl-chip { padding: 0 10px; }
}
