/* Академия · раздел «Сроки», вид v3 (макет academy-variants/p3: .tool .gh .row .chk, деталь .tags .props .src .fc .act;
   «Сейчас» - из p2 .now). Размеры и радиусы - как в макете; цвета - токены и оттенки --a-* каркаса (academy.css).
   Статус - словом и тоном текста, без цветных кантов: горящее оранжевым, угроза предмета - заливкой. */

/* ── строка 40 над списком (макет .tool) ── */
.dl .acad-ld-tool { display: flex; align-items: center; gap: 8px; }
.dl-tool__t { min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; }
.dl-tool__m { color: var(--tx-3); font-variant-numeric: tabular-nums; }
.dl-tool__sp { flex: 1; }
.dl-fresh { color: var(--tx-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.acad .dl-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 24px; padding: 0 6px 0 8px; border: 0; border-radius: 7px;
  background: var(--a-raise-2); color: var(--tx-2); font-size: 12px; white-space: nowrap; cursor: pointer; }
.dl-pill:hover { background: var(--a-raise-3); color: var(--tx-1); }
.dl-pill > svg { width: 12px; height: 12px; }

/* ── «Сейчас» над списком (p2 .now, ужато под колонку 340) ── */
.dl-now { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px 11px; border-bottom: 1px solid var(--a-line-soft); background: var(--a-raise-1); }
.dl-now__cap { display: flex; align-items: center; gap: 8px; height: 14px; min-width: 0; white-space: nowrap; }
.dl-now__k { color: var(--cool); font: 500 9.5px/14px var(--font-code); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.dl-now__rel { min-width: 0; overflow: hidden; color: var(--hot); font-size: 12px; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.dl-now__rel.is-calm { color: var(--tx-3); }
.dl-now__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acad .dl-now__t { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--tx-1); font-size: 15px; font-weight: 600;
  line-height: 21px; letter-spacing: -.01em; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.dl-now__t:hover { text-decoration: underline; text-decoration-color: rgba(238,240,243,.3); text-underline-offset: 3px; }
.dl-now__t > span { display: block; overflow: hidden; text-overflow: ellipsis; }
.dl-now__s { min-width: 0; overflow: hidden; color: var(--tx-3); font-size: 12px; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.dl-now__next { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; white-space: nowrap; }
.dl-now__nk { color: var(--tx-3); font-size: 12px; }
.dl-now__nt { min-width: 0; overflow: hidden; color: var(--tx-1); text-overflow: ellipsis; }
.dl-now__nd { color: var(--tx-3); font-size: 12px; }

/* ── чипы предметов: только телефон (макет .m-subj) ── */
.dl-chips { display: none; }

/* ── список: группы и строки 46 (макет .rows .gh .row) ── */
.dl .acad-ld-list { padding: 0 6px 8px; scrollbar-width: none; outline: none; }
.dl .acad-ld-list::-webkit-scrollbar { display: none; }
.dl .acad-ld-list > .ui-state { min-height: 100%; }
.dl-gh { display: flex; align-items: center; gap: 8px; height: 32px; padding: 8px 10px 0; color: var(--tx-1); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dl-gh__n { color: var(--tx-3); font-weight: 400; font-variant-numeric: tabular-nums; }
/* группы разделяет воздух, а не линия: без линейки в шапке список не читается таблицей */
.dl-gh__line { flex: 1; }
.dl-group + .dl-group { margin-top: 10px; }
.dl-gh__r { color: var(--tx-3); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
.dl-row { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 10px; align-items: center;
  height: 46px; padding: 0 10px; border-radius: 8px; cursor: pointer; outline: none; }
.dl-row:hover { background: var(--a-hover); }
.dl-row.is-sel { background: var(--a-sel); }
.dl-row:focus-visible { box-shadow: inset 0 0 0 2px var(--focus-ring); }
.dl-chk { position: relative; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--a-tx-4); color: transparent; cursor: pointer; }
.dl-chk::before { content: ""; position: absolute; inset: -10px; }
.dl-chk > svg { width: 12px; height: 12px; stroke-width: 2.2; }
.dl-chk:hover:not([disabled]) { box-shadow: inset 0 0 0 1.5px var(--tx-2); color: var(--tx-2); }
.dl-chk[disabled] { opacity: .4; cursor: default; }
.dl-row.is-armed .dl-chk { background: rgba(207,224,255,.7); box-shadow: none; color: var(--on-light); }
.dl-row.is-armed .dl-row__n { text-decoration: line-through; text-decoration-color: rgba(133,146,166,.7); }
.dl-row__t { min-width: 0; }
.dl-row__n { overflow: hidden; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.dl-row__s { overflow: hidden; color: var(--tx-3); font-size: 12px; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
/* у колонки «когда» всегда две строки (вторая может быть пустой): первая стоит на линии названия у любой строки */
.dl-row__d { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-row__d1 { display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: var(--tx-1); font-size: 12px; line-height: 18px; }
.dl-row__d2 { min-height: 16px; color: var(--tx-3); font-size: 11px; line-height: 16px; }
.dl-row.is-hot .dl-row__d1 { color: var(--hot); }
.dl-row.is-later .dl-row__d1 { color: var(--tx-2); }
.dl-more { margin: 12px 10px 0; color: var(--tx-3); font-size: 12px; }
/* Сроков нет совсем: пустое состояние на обе колонки, деталь и ручка ширины прячутся. */
.dl.dl--empty .acad-ld-col { grid-column: 1 / -1; border-right: 0; }
.dl.dl--empty .acad-ld-dcol, .dl.dl--empty .acad-grip-list { display: none; }

/* ── кнопки раздела (макет .btn): светлая главная, вторичная с кромкой, тихая ── */
.acad .dl-btn { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 28px; padding: 0 10px; border: 0; border-radius: 8px;
  font-size: 13px; white-space: nowrap; cursor: pointer; }
.dl-btn > svg { width: 14px; height: 14px; }
.acad .dl-btn--pri { background: var(--a-light); color: var(--on-light); font-weight: 600; }
.dl-btn--pri:hover { background: #f2f6fc; }
.dl-btn--sec { background: var(--a-raise-2); color: var(--tx-1); box-shadow: inset 0 0 0 1px var(--a-edge); }
.dl-btn--sec:hover { background: var(--a-raise-3); }
.dl-btn--ghost { background: transparent; color: var(--tx-2); }
.dl-btn--ghost:hover { background: var(--a-hover); color: var(--tx-1); }
.dl-btn[disabled] { opacity: .6; cursor: default; }
.dl-done { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.dl-done--s .dl-btn { height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px; gap: 5px; }
.dl-done--s .dl-btn > svg { width: 12px; height: 12px; }
.dl-hint { color: var(--tx-3); font-size: 12px; }
.dl-ibtn { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--tx-2); cursor: pointer; }
.dl-ibtn:hover:not([disabled]) { background: var(--a-hover); color: var(--tx-1); }
.dl-ibtn[disabled] { opacity: .3; cursor: default; }
.dl-ibtn > svg { width: 16px; height: 16px; }
.dl-prev > svg { transform: rotate(180deg); }
.acad .dl-link { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: transparent; color: var(--tx-2); font-size: 12px; cursor: pointer; }
.dl-link:hover { color: var(--tx-1); text-decoration: underline; text-underline-offset: 2px; }
.dl-link > svg { width: 12px; height: 12px; }

/* ── деталь (макет .det): строка 40 «Срок 2 из 7», метки, название 18, свойства, блоки ── */
.dl-dt__t { font-weight: 600; }
.dl-dt__m { margin-left: 6px; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.dl-detail { display: block; }
.dl-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dl-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--a-raise-2);
  color: var(--tx-2); font-size: 12px; white-space: nowrap; }
.dl-tag.is-hot { background: var(--hot-wash); color: var(--hot); }
.dl-tag > svg { width: 14px; height: 14px; }
.dl-tag > .acad-q { width: 14px; height: 14px; font-size: 10px; }
.dl-title { margin: 10px 0 0; font: 600 18px/24px var(--font-ui); letter-spacing: -.01em; overflow-wrap: anywhere; text-wrap: balance; }
.dl-props { display: grid; grid-template-columns: 112px minmax(0, 1fr); margin: 14px 0 0; border-top: 1px solid var(--a-line-soft); }
.dl-props > dt, .dl-props > dd { display: flex; align-items: center; min-width: 0; min-height: 30px; margin: 0; padding: 5px 0; border-bottom: 1px solid var(--a-line-soft); }
.dl-props > dt { gap: 8px; color: var(--tx-3); font-size: 12px; white-space: nowrap; }
.dl-props > dt > svg { width: 14px; height: 14px; color: var(--tx-3); }
.dl-props > dd { gap: 8px; line-height: 18px; overflow-wrap: anywhere; }
.dl-when { display: inline-flex; align-items: center; gap: 8px; }
.dl-fn { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 5px; background: var(--a-raise-3);
  color: var(--tx-2); font: 600 11px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.dl-blk { margin-top: 18px; }
.dl-blk__h { display: flex; align-items: center; gap: 8px; height: 20px; margin: 0; color: var(--tx-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dl-blk__r { margin-left: auto; color: var(--tx-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.dl-src { margin-top: 6px; padding: 10px 12px 11px; border-radius: 10px; background: var(--a-raise-1); box-shadow: inset 0 0 0 1px var(--a-line-soft); }
.dl-src__h { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--tx-3); font-size: 12px; white-space: nowrap; }
.dl-src__name { min-width: 0; overflow: hidden; color: var(--tx-2); font-weight: 500; text-overflow: ellipsis; }
.dl-src__open { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--cool); text-decoration: none; }
.dl-src__open:hover { text-decoration: underline; text-underline-offset: 2px; }
.dl-src__open > svg { width: 12px; height: 12px; }
.dl-src__c { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; color: var(--tx-3); font-size: 12px; line-height: 16px; }
.dl-src__c > .acad-q { width: 14px; height: 14px; margin-top: 1px; font-size: 10px; }
.dl-src--none, .dl-blk > .dl-note { margin: 6px 0 0; color: var(--tx-3); font-size: 12px; }
/* прогноз по предмету (макет .fc): демо-модель, карточка нейтральная и при угрозе - угрозу несут оранжевая цифра
   шанса и розовые отрезки шкалы, малиновая заливка остаётся только у строки предмета в сайдбаре */
.dl-fc { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; margin-top: 6px; padding: 12px 14px 10px;
  border-radius: 10px; background: var(--a-raise-1); box-shadow: inset 0 0 0 1px var(--a-line-soft); }
.dl-fc__v { margin: 0; color: var(--tx-2); font-size: 13px; line-height: 19px; text-wrap: pretty; }
.dl-fc__v > b { color: var(--tx-1); font-weight: 600; }
.dl-fc__sc { margin-top: 12px; }
.acad-sc--l { gap: 3px; }
.acad-sc--l > i { height: 6px; }
.acad-sc--l > b { top: -2px; height: 10px; }
.dl-fc__axis { position: relative; display: block; height: 16px; margin-top: 4px; color: var(--tx-3); font: 500 9.5px/16px var(--font-code); letter-spacing: .1em; }
.dl-fc__axis > span { position: absolute; top: 0; white-space: nowrap; }
.dl-fc__mid { left: var(--at); transform: translateX(-50%); color: var(--cool); }
.dl-fc__end { right: 0; }
.dl-fc__r { text-align: right; white-space: nowrap; }
.dl-fc__big { color: var(--tx-1); font: 600 22px/28px var(--font-ui); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.dl-fc__big.is-hot { color: var(--hot); }
.dl-fc__cap { color: var(--tx-3); font-size: 11px; line-height: 14px; }
.dl-fc__go { margin-top: 8px; }
/* ещё по предмету: тихие ссылки к другим срокам, а не третий список - текст на тон ниже, строки ниже */
.dl-near { display: flex; flex-direction: column; margin: 2px -8px 0; }
.dl-near__row { display: flex; align-items: center; gap: 12px; height: 28px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.dl-near__row:hover { background: var(--a-hover); }
.dl-near__t { flex: 1; min-width: 0; overflow: hidden; color: var(--tx-2); white-space: nowrap; text-overflow: ellipsis; }
.dl-near__row:hover .dl-near__t { color: var(--tx-1); }
.dl-near__d { color: var(--tx-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-near__row.is-hot .dl-near__d { color: var(--hot); }
@container det (max-width: 420px) { .dl-props { grid-template-columns: 96px minmax(0, 1fr); } .dl-fc { column-gap: 12px; } }

/* ── телефон (макет 390): «Сейчас» крупнее, чипы предметов, строки 58, деталь стеком ── */
.acad[data-w="phone"] .dl .acad-ld-tool { display: none; }
.acad[data-w="phone"] .dl-now { padding: 12px 16px; gap: 6px; }
.acad[data-w="phone"] .dl-now__t { font-size: 16px; }
.acad[data-w="phone"] .dl-now__s, .acad[data-w="phone"] .dl-now__rel { font-size: 13px; }
.acad[data-w="phone"] .dl-done--s .dl-btn { height: 32px; padding: 0 12px; font-size: 13px; }
.acad[data-w="phone"] .dl-chips { display: block; padding: 8px 16px 6px; }
.dl-chips__cap { display: flex; align-items: center; justify-content: space-between; padding: 0 0 6px; color: var(--tx-3);
  font: 500 9.5px/14px var(--font-code); letter-spacing: .1em; text-transform: uppercase; }
.dl-chips__cap > .acad-demo { font: 500 9.5px/14px var(--font-code); letter-spacing: .1em; text-transform: uppercase; background: none; padding: 0; height: auto; }
.dl-chips__row { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dl-chips__row::-webkit-scrollbar { display: none; }
.dl-chips__sep { flex: none; width: 1px; height: 20px; margin: 0 2px; background: var(--line); }
.acad .dl-fchip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 1 0 44px; height: 42px; padding: 0 4px;
  border: 0; border-radius: 8px; background: var(--a-raise-2); color: var(--tx-2); font-size: 13px; cursor: pointer; }
.dl-fchip--all { flex: 0 0 44px; }
.dl-fchip[aria-pressed="true"] { background: rgba(207,224,255,.16); color: var(--tx-1); box-shadow: inset 0 0 0 1px rgba(207,224,255,.3); }
.dl-fchip.is-threat { background: var(--a-threat); }
.dl-fchip.is-threat .dl-fchip__c { color: #f0c4c9; }
.dl-fchip__c { color: var(--tx-2); font: 600 10px/12px var(--font-code); letter-spacing: .04em; }
.dl-fchip__p { color: var(--tx-2); font: 600 12px/14px var(--font-ui); font-variant-numeric: tabular-nums; }
.dl-fchip__p.is-hot { color: var(--hot); }
.dl-fchip__p.is-none { color: var(--tx-3); }
.dl-chips__k { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dl-chips__v { color: var(--tx-2); font-weight: 600; }
.dl-chips__v.is-hot { color: var(--hot); }
.acad[data-w="phone"] .dl .acad-ld-list { padding: 0 6px 12px; }
.acad[data-w="phone"] .dl-gh { height: 34px; padding: 10px 10px 0; }
.acad[data-w="phone"] .dl-row { height: 58px; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 12px; }
.acad[data-w="phone"] .dl-row.is-sel { background: transparent; }
.acad[data-w="phone"] .dl-chk { width: 20px; height: 20px; }
.acad[data-w="phone"] .dl-chk::before { inset: -12px; }
.acad[data-w="phone"] .dl-row__n { font-size: 14px; line-height: 20px; }
.acad[data-w="phone"] .dl-row__s { font-size: 12px; line-height: 17px; }
.acad[data-w="phone"] .dl-row__d1 { font-size: 13px; line-height: 20px; }
.acad[data-w="phone"] .dl-row__d2 { min-height: 17px; font-size: 12px; line-height: 17px; }
.acad[data-w="phone"] .dl-props > dt, .acad[data-w="phone"] .dl-props > dd { min-height: 36px; }
.acad[data-w="phone"] .dl-near__row { height: 40px; }
.acad[data-w="phone"] .dl-props { grid-template-columns: 104px minmax(0, 1fr); }
.acad[data-w="phone"] .dl .acad-ld-act { gap: 8px; }
.acad[data-w="phone"] .dl .acad-ld-act .dl-btn { flex: 1; justify-content: center; height: 44px; border-radius: 10px; font-size: 14px; }
.acad[data-w="phone"] .dl .acad-ld-act .dl-done { flex: 1; }
.acad[data-w="phone"] .dl .acad-ld-act .dl-done .dl-btn { flex: 1; }
/* узкая деталь (окно 1280 с колонкой EDEM): «Обсудить с EDEM» - одной иконкой, как «Напомнить» в макете */
@container det (max-width: 460px) {
  .acad:not([data-w="phone"]) .dl-talk { width: 28px; padding: 0; justify-content: center; }
  .acad:not([data-w="phone"]) .dl-talk > span { display: none; }
}
/* полосы «устарело» и «группы молчат» в колонке списка 340: текст переносится, а не режется */
.dl .acad-ld-band .ui-state-bar { height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.dl .acad-ld-band .ui-state-bar__text { white-space: normal; }
