.application {
  --column-height:clamp(560px,calc(100svh - 309px),1100px);
  --ink:#19201e;
  --muted:#66716c;
  --lime:#cef46a;
  color:var(--ink);
  position:relative;
  isolation:isolate;
  margin:16px;
  border-radius:36px;
  min-height:calc(100svh - 32px);
  padding:14px 24px 24px;
  background:#64ade2 url('./images/clouds-workspace.webp') center/cover no-repeat;
  background-attachment:fixed
}
/* Фильтры заливки фото в макете: vibrance +0.65, temperature −0.08, contrast +0.024. */
.application::before {
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:#168fe50f;
  -webkit-backdrop-filter:saturate(1.7) contrast(1.03) hue-rotate(-3deg);
  backdrop-filter:saturate(1.7) contrast(1.03) hue-rotate(-3deg);
  pointer-events:none;
  z-index:-1
}
.app-header {
  display:flex;
  align-items:center;
  gap:30px;
  min-height:44px;
  margin-inline:8px;
  color:#fff
}
.app-header .brand {
  font-size:23px;
  line-height:1.4;
  letter-spacing:-.01em
}
/* Шапка по itog.fig: только бренд и одна кнопка справа. */
.app-header>.standard-badge,.app-header>.button {
  margin-left:auto
}
.app-header .button {
  min-height:42px;
  padding:0 12px;
  font-size:14px;
  font-weight:600;
  letter-spacing:-.01em;
  background:#ffffff66;
  color:#19201e;
  border:1px solid #727d7640
}
.standard-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:140px;
  min-height:40px;
  font-size:14px;
  line-height:1.4;
  letter-spacing:-.01em;
  background:var(--lime);
  border:1px solid #727d7640;
  border-radius:999px;
  padding:0 12px;
  color:var(--ink);
  font-weight:600
}
.report-messages,.report-messages>.feedback {
  display:contents
}
.report-messages .notice {
  margin:18px auto;
  max-width:900px
}
.report-messages #session-retry {
  display:flex;
  margin:18px auto
}
/* Отчёт по itog.fig (экраны 03–11, 13): стеклянный стол, три колонки, без заголовка и счётчиков. */
.report-heading {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}
.report-counts {
  display:flex;
  gap:20px
}
/* Кадр 02: пока отчёта нет, заголовок становится первым экраном ожидания. */
.report-waiting .report-heading {
  position:static;
  width:auto;
  height:auto;
  overflow:visible;
  clip-path:none;
  white-space:normal;
  color:white;
  text-align:center;
  padding:60px 24px 0
}
.report-waiting .report-heading h1 {
  font-size:60px;
  font-weight:500;
  line-height:1.08;
  letter-spacing:-.01em
}
.report-waiting .report-heading>#document-state {
  font-size:16px;
  line-height:1.4;
  letter-spacing:-.01em;
  color:#f6fbff;
  max-width:660px;
  margin:32px auto 0
}
.report-waiting .report-heading>p:empty {
  display:none
}
.report-panel {
  padding:0
}
.report-desk {
  padding:16px;
  border:1px solid #fff;
  border-radius:28px;
  background:#f6fbff99;
  box-shadow:0 18px 40px #173c5c21
}
.toolbar {
  display:grid;
  grid-template-columns:minmax(220px,1.6fr) minmax(180px,1fr) minmax(160px,.85fr) auto minmax(100px,.5fr);
  gap:12px;
  align-items:center
}
.search-wrap {
  display:flex;
  align-items:center;
  background:#fff;
  border:1px solid #d4dcd5;
  border-radius:999px;
  padding:0 19px;
  min-width:0;
  height:42px;
  gap:17px
}
.search-icon {
  flex-shrink:0;
  overflow:visible;
  fill:none;
  stroke:#66716c;
  stroke-width:1.6;
  stroke-linecap:round
}
.search-wrap input {
  width:100%;
  min-width:0;
  background:none;
  border:0;
  padding:12px 0;
  font-size:13px;
  letter-spacing:-.01em;
  color:var(--ink)
}
.search-wrap input::placeholder {
  color:#66716c
}
.search-wrap:focus-within {
  outline:3px solid #087fcc;
  outline-offset:2px
}
.search-wrap input:focus-visible {
  outline:none
}
.search-wrap input::-webkit-search-cancel-button {
  display:none
}
.search-wrap button {
  border:0;
  background:none;
  font-size:16px;
  line-height:22px;
  padding:0;
  color:#66716c
}
.toolbar select {
  -webkit-appearance:none;
  appearance:none;
  min-width:0;
  max-width:100%;
  border:1px solid #727d7640;
  background:#ffffff66;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  letter-spacing:-.01em;
  text-align:center;
  text-align-last:center;
  padding:0 16px;
  height:42px;
  color:var(--ink);
  text-overflow:ellipsis
}
.toolbar>.text-button {
  padding:10px;
  font-size:13px;
  color:#4a5841
}
.toolbar>#visible-count {
  text-align:right;
  font-size:12px;
  color:var(--muted)
}
.manual-progress {
  display:flex;
  align-items:center;
  gap:50px;
  margin:18px 0 20px;
  font-size:13px;
  line-height:1.4
}
.manual-progress strong {
  font-weight:600;
  min-width:189px
}
.manual-progress label {
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap
}
.manual-progress p {
  display:none
}
.report-grid {
  display:grid;
  grid-template-columns:minmax(230px,270fr) minmax(330px,663fr) minmax(260px,333fr);
  gap:16px;
  align-items:stretch
}
.findings-column {
  padding:16px 8px 10px;
  background:#ffffffb0;
  border-radius:20px;
  min-width:0;
  min-height:var(--column-height);
  display:flex;
  flex-direction:column
}
.findings-column>h2 {
  font-size:11px;
  line-height:18px;
  color:var(--muted);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:-.01em;
  padding:0 8px 12px
}
/* The list never sets the row height (height 0 + flex-grow): it fills the row
   that the detail card defines and scrolls inside it. */
.findings {
  flex:1 1 0;
  height:0;
  overflow:auto;
  min-height:0;
  scrollbar-width:thin;
  scrollbar-color:#6e7e66 #dce7e1
}
.finding-row {
  position:relative;
  display:grid;
  grid-template-columns:17px 1fr;
  align-items:center;
  gap:13px;
  border-radius:12px;
  padding:0 0 0 10px;
  margin:0 0 1px
}
.finding-row.active {
  background:#fff
}
.finding-row>input {
  width:17px;
  height:17px;
  accent-color:#6e7e66
}
.finding-select {
  display:block;
  width:100%;
  text-align:left;
  padding:9px 26px 9px 0;
  background:none;
  border:0;
  border-radius:12px;
  min-width:0;
  position:relative
}
.finding-select strong {
  font-size:13px;
  font-weight:600;
  display:block;
  line-height:18px;
  letter-spacing:-.01em;
  color:var(--ink);
  overflow-wrap:anywhere
}
.finding-select small {
  font-size:11px;
  display:block;
  margin-top:4px;
  line-height:16px;
  letter-spacing:-.01em
}
.finding-row.active>.finding-select::after {
  content:'›';
  position:absolute;
  right:12px;
  top:calc(50% - 11px);
  font-size:16px;
  line-height:22px
}
.status-error {
  color:#a34935
}
.status-review {
  color:#87631a
}
.status-recommendation {
  color:#426978
}
.details-slot {
  min-width:0
}
/* The detail card grows with its content instead of scrolling inside. */
.finding-detail {
  min-height:var(--column-height);
  height:100%;
  overflow:visible;
  scrollbar-width:thin;
  scrollbar-color:#6e7e66 #dce7e1;
  padding:20px 24px;
  background:white;
  border-radius:20px;
  min-width:0;
  letter-spacing:-.01em
}
.finding-detail>.eyebrow {
  font-size:12px;
  font-weight:600;
  line-height:18px;
  letter-spacing:-.01em
}
.finding-detail h2 {
  font-size:24px;
  font-weight:600;
  line-height:34px;
  letter-spacing:-.01em;
  margin:8px 0 13px;
  overflow-wrap:anywhere
}
.finding-detail .comparison {
  grid-template-columns:1fr;
  gap:22px;
  padding:16px 20px 18px;
  background:#f1f3ef;
  border-radius:12px
}
.finding-detail .comparison small {
  font-size:12px;
  line-height:18px;
  letter-spacing:0;
  margin-bottom:8px
}
.finding-detail .comparison p {
  font-size:15px;
  font-weight:400;
  line-height:1.5;
  letter-spacing:-.005em;
  color:var(--ink)
}
.finding-detail h3 {
  font-size:14px;
  line-height:22px;
  font-weight:600;
  margin:16px 0 8px;
  letter-spacing:-.01em
}
.location {
  font-size:13px;
  margin:10px 0;
  padding:12px 14px;
  background:#f6faea;
  border-left:4px solid #b4dc4a;
  border-radius:4px 14px 14px 4px;
  overflow-wrap:anywhere
}
.location-heading {
  margin-bottom:6px;
  font-weight:600;
  color:#1f2a1c;
  white-space:pre-wrap
}
.fragment,.context {
  white-space:pre-wrap;
  color:var(--muted);
  line-height:1.5
}
.fragment {
  color:#1f2a1c;
  font-size:14px
}
.context {
  font-size:12px;
  margin-top:10px
}
.copy {
  border:0;
  background:none;
  text-align:left;
  padding:4px 0;
  margin-top:4px;
  font-weight:600;
  color:#3f5a14;
  font-size:12px;
  line-height:1.5
}
.copy:hover {
  text-decoration:underline
}
.copy:focus-visible {
  outline-offset:1px
}
.more-locations>summary {
  font-size:13px;
  color:#4a5841;
  padding:6px 0;
  cursor:pointer
}
.finding-detail>.reference {
  margin:14px 0 16px;
  color:#4a574f;
  line-height:20px
}
/* Третья колонка: текст по центру, как в кадрах 03, 05 и 07. */
.document-actions {
  min-height:var(--column-height);
  border-radius:20px;
  background:#fff;
  padding:24px 20px;
  min-width:0;
  font-size:13px;
  text-align:center;
  letter-spacing:-.01em;
  display:flex;
  flex-direction:column
}
.document-actions h2 {
  font-size:20px;
  font-weight:600;
  line-height:28px;
  letter-spacing:-.01em
}
.document-actions p {
  font-size:12px;
  line-height:20px;
  color:var(--muted);
  padding-inline:4px
}
.document-actions #actions-description {
  font-size:13px;
  line-height:19px;
  margin-top:9px
}
.document-actions .button {
  font-size:14px;
  font-weight:600;
  letter-spacing:-.01em;
  padding:0 12px;
  width:100%;
  min-height:46px
}
.document-actions>#fix {
  margin-top:20px
}
.document-actions>#action-note {
  margin-top:20px
}
.document-actions #download:disabled {
  background:#e6eae7!important;
  color:#8a948e!important
}
.download-section {
  border-top:1px solid #a8b9a740;
  margin-top:18px;
  padding-top:12px
}
.download-section>#download-note {
  margin-top:21px;
  font-size:13px;
  line-height:19px
}
#download-status:empty {
  display:none
}
.document-actions .marks-note {
  margin-top:21px;
  line-height:18px
}
.document-actions>.text-button {
  text-align:left;
  font-size:11px;
  padding:0
}
/* Кадр 04: на время автоисправления прежний отчёт приглушён, панель операции выровнена влево. */
.report-fixing .app-header .button,.report-fixing .toolbar,.report-fixing .manual-progress,.report-fixing .findings-column,.report-fixing .details-slot {
  opacity:.46
}
.report-fixing .document-actions {
  text-align:left
}
.document-actions .spinner.small {
  border-width:3px;
  border-color:#d4e5eb;
  border-top-color:#426879;
  margin:0 0 18px
}
.empty-state {
  grid-column:1/3;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  background:#fff;
  border-radius:20px;
  min-height:var(--column-height);
  padding:127px 40px 51px;
  letter-spacing:-.01em;
  overflow-wrap:anywhere
}
.empty-state>.eyebrow {
  color:#426879;
  font-size:12px;
  line-height:1.4;
  letter-spacing:-.01em
}
.empty-state h2 {
  font-size:28px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:-.01em;
  color:#19201e;
  margin-top:23px
}
.empty-state>#empty-text {
  font-size:15px;
  line-height:1.4;
  color:var(--muted);
  max-width:679px;
  margin-top:22px
}
.empty-state>.button {
  width:min(387px,100%);
  min-height:49px;
  padding:0 12px;
  margin-top:27px;
  font-weight:600;
  letter-spacing:-.01em
}
.empty-state>.empty-summary {
  font-size:12px;
  line-height:1.4;
  color:var(--muted);
  margin-top:auto;
  padding-top:24px
}
.empty-state.empty-clean {
  justify-content:center;
  padding:40px
}
.empty-clean h2,.empty-clean>.empty-summary {
  margin-top:21px;
  padding-top:0
}
.report-empty .document-actions {
  height:auto
}
.report-empty .marks-note {
  display:none
}
.recovery-actions {
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin:20px 0
}
/* Кадр 02: карточка ожидания под заголовком. */
.waiting-panel {
  padding:24px;
  background:#ffffffe8;
  border:1px solid #ffffffb0;
  box-shadow:0 18px 40px #173c5c20;
  border-radius:24px;
  width:min(520px,100%);
  margin:45px auto 0;
  text-align:center;
  letter-spacing:-.01em
}
.waiting-panel>#waiting-filename {
  text-align:left;
  color:var(--ink);
  font-size:16px;
  font-weight:600;
  line-height:22px;
  overflow-wrap:anywhere
}
.waiting-panel>#waiting-meta {
  text-align:left;
  font-size:12px;
  line-height:17px;
  color:var(--muted);
  white-space:pre-wrap;
  margin-top:8px;
  padding-bottom:17px;
  border-bottom:1px solid #c7d0c454
}
.waiting-panel .spinner {
  width:36px;
  height:36px;
  border-width:3px;
  border-color:#d4e5eb;
  border-top-color:#426879;
  margin:23px auto 0
}
.waiting-panel h2 {
  font-size:15px;
  font-weight:600;
  line-height:21px;
  margin-top:18px
}
.waiting-panel>#waiting-note {
  margin:8px auto 0;
  max-width:448px;
  font-size:13px;
  line-height:18px;
  color:var(--muted);
  overflow-wrap:anywhere
}
.waiting-panel>#waiting-button {
  display:flex;
  width:100%;
  min-height:46px;
  margin-top:20px;
  font-weight:600
}
#document-message {
  margin:20px auto;
  max-width:1100px
}
#storage-warning {
  margin-bottom:20px
}
.finding-row>.finding-detail {
  display:none
}
/* Точная геометрия кадров itog.fig на широком экране (1440 × 900). */
@media(min-width:1251px) {
  .application {
    padding:25px
  }
  .app-header {
    min-height:42px;
    margin-inline:25px
  }
  .app-header .button {
    width:232px
  }
  .report-panel {
    margin-top:25px
  }
  .report-desk {
    padding:29px
  }
  .report-empty .document-actions {
    min-height:var(--column-height)
  }
  .toolbar {
    grid-template-columns:390px 270px 214px auto minmax(0,1fr)
  }
  .toolbar>.text-button {
    padding:10px 0;
    margin-left:8px
  }
  .manual-progress {
    gap:0;
    margin:20px 0
  }
  .manual-progress strong {
    width:189px;
    min-width:189px
  }
  .report-empty .report-grid {
    grid-template-columns:minmax(0,949fr) minmax(0,333fr)
  }
  .report-empty .empty-state {
    grid-column:1
  }
  .report-clean .empty-state {
    grid-column:1/-1
  }
  .document-actions {
    padding:50px 20px 24px
  }
  .report-fixing .document-actions {
    padding-top:24px
  }
}
@media(max-width:1250px) {
  .application {
    padding-inline:16px
  }
  .report-panel {
    margin-top:20px
  }
  .report-grid {
    grid-template-columns:300px minmax(0,1fr)
  }
  .document-actions {
    height:auto;
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1.25fr 1fr 1.1fr;
    align-items:center;
    gap:14px;
    padding:20px;
    text-align:left
  }
  .document-actions>#fix,.document-actions>#action-note,.document-actions>.download-section {
    margin-top:0
  }
  .document-actions>div:first-child {
    grid-column:1;
    grid-row:1
  }
  .document-actions h2 {
    font-size:18px
  }
  .document-actions #actions-description {
    font-size:12px
  }
  .document-actions>#fix {
    grid-column:2;
    grid-row:1
  }
  .document-actions>.download-section {
    grid-column:3;
    grid-row:1/3;
    border:0;
    padding:0
  }
  .document-actions>#action-note {
    grid-column:1/3;
    grid-row:2
  }
  .document-actions>.marks-note {
    display:none
  }
  .toolbar {
    grid-template-columns:minmax(180px,1.2fr) minmax(160px,1fr) minmax(150px,.85fr) auto
  }
  .toolbar>#visible-count {
    grid-column:1/-1
  }
  .manual-progress {
    gap:32px;
    margin-top:14px;
    margin-bottom:24px
  }
  .manual-progress strong {
    min-width:180px
  }
  .finding-detail,.findings-column {
    min-height:560px
  }
  .empty-state {
    min-height:440px
  }
  .app-header .brand {
    font-size:22px
  }
  .app-header {
    gap:20px
  }
}
@media(max-width:900px) {
  .report-grid {
    grid-template-columns:240px minmax(0,1fr)
  }
  .toolbar {
    grid-template-columns:1fr 1fr
  }
  .search-wrap {
    grid-column:1/-1
  }
  .toolbar>.text-button {
    grid-column:1;
    text-align:left
  }
  .toolbar>#visible-count {
    grid-column:2;
    grid-row:3
  }
  .manual-progress {
    gap:20px;
    flex-wrap:wrap
  }
  .app-header {
    flex-wrap:wrap
  }
  .app-header .brand {
    margin-right:auto
  }
  .app-header .button {
    padding:11px 18px
  }
  .finding-detail {
    padding:20px
  }
  .finding-detail h2 {
    font-size:22px
  }
  .finding-detail .comparison {
    grid-template-columns:1fr
  }
  .document-actions {
    grid-template-columns:1fr 1fr
  }
  .document-actions>div:first-child {
    grid-column:1/-1;
    grid-row:1
  }
  .document-actions>#fix {
    grid-column:1;
    grid-row:2
  }
  .document-actions>.download-section {
    grid-column:2;
    grid-row:2/4
  }
  .document-actions>#action-note {
    grid-column:1;
    grid-row:3
  }
}
@media(max-width:650px) {
  .application {
    margin:8px;
    padding:16px 12px;
    border-radius:26px;
    min-height:calc(100svh - 16px);
    background-attachment:scroll
  }
  .app-header {
    gap:14px;
    margin:0 4px
  }
  .app-header .brand {
    font-size:18px;
    gap:6px
  }
  .standard-badge {
    padding:10px 14px;
    font-size:12px
  }
  .app-header .button {
    font-size:11px;
    padding:11px 13px;
    min-height:40px;
    max-width:175px
  }
  .report-desk {
    padding:16px 12px;
    border-radius:24px
  }
  .toolbar {
    gap:12px 8px
  }
  .toolbar select {
    padding:11px 22px 11px 10px;
    font-size:12px;
    height:44px
  }
  .toolbar>.text-button {
    font-size:12px
  }
  .manual-progress {
    font-size:11px;
    gap:14px;
    justify-content:space-between
  }
  .manual-progress strong {
    min-width:0
  }
  .manual-progress label {
    gap:7px
  }
  .report-grid {
    display:block
  }
  .findings-column {
    height:auto;
    max-height:none;
    padding:12px 6px;
    margin-bottom:16px;
    border-radius:20px
  }
  .findings {
    flex:none;
    height:auto;
    overflow:visible;
    padding:0
  }
  .finding-row {
    grid-template-columns:22px minmax(0,1fr);
    padding-inline:8px
  }
  .finding-row>.finding-detail {
    display:block;
    min-height:0;
    grid-column:1/-1;
    height:auto;
    max-height:none;
    padding:20px 14px;
    border-radius:16px;
    margin:0 -2px 10px;
    background:#fff;
    overflow:visible
  }
  .finding-row.active {
    background:#e6f1f5
  }
  .finding-row.active::before {
    bottom:auto;
    height:30px
  }
  .finding-row.active>.finding-select::after {
    content:'⌄'
  }
  .details-slot {
    display:none
  }
  .finding-detail .comparison {
    grid-template-columns:1fr
  }
  .finding-detail h2 {
    font-size:21px
  }
  .finding-detail>.reference {
    font-size:11px
  }
  .document-actions {
    display:flex;
    padding:24px 20px;
    gap:20px;
    border-radius:20px
  }
  .document-actions h2 {
    font-size:21px
  }
  .document-actions .download-section {
    width:100%;
    border-top:1px solid #d7e1e2;
    padding-top:20px
  }
  .document-actions .marks-note {
    display:block
  }
  .empty-state {
    padding:60px 22px;
    min-height:330px;
    margin-bottom:16px;
    border-radius:20px
  }
  .empty-state h2 {
    font-size:23px
  }
  .empty-state p {
    font-size:13px
  }
  .empty-state>.eyebrow {
    font-size:10px
  }
  .waiting-panel {
    padding:30px 22px
  }
  .notice {
    font-size:13px;
    padding:14px
  }
  .recovery-actions .button {
    width:100%
  }
}
@media(max-width:900px) {
  .finding-detail .comparison {
    grid-template-columns:1fr
  }
  .report-waiting .report-heading h1 {
    font-size:48px
  }
}
@media(max-width:650px) {
  .toolbar select {
    padding:0 8px;
    font-size:12px
  }
  .report-waiting .report-heading {
    padding:28px 4px 0
  }
  .report-waiting .report-heading h1 {
    font-size:clamp(32px,8.5vw,44px)
  }
  .report-waiting .report-heading>#document-state {
    font-size:14px;
    margin-top:20px
  }
  .waiting-panel {
    margin-top:28px;
    padding:20px 18px
  }
}
/* Экран ожидания подстраивается под высоту окна: на низком экране
   (ноутбук, ~500–700 px) всё помещается, на высоком блок центрируется
   по вертикали без пустого низа. Максимумы равны размерам itog.fig. */
.application {
  display:flex;
  flex-direction:column
}
.report-waiting>#workspace:not([hidden]) {
  flex:1 0 auto;
  display:flex;
  flex-direction:column;
  justify-content:safe center;
  padding-bottom:clamp(0px,calc(6vh - 24px),80px)
}
.report-waiting>#workspace>.report-heading,.report-waiting>#workspace>.waiting-panel {
  flex-shrink:0
}
@media(min-width:651px) {
  .report-waiting .report-heading {
    padding-top:clamp(8px,2.5vh,32px)
  }
  .report-waiting .report-heading h1 {
    font-size:clamp(30px,min(calc(7.6vh - 8px),5vw),60px)
  }
  .report-waiting .report-heading>#document-state {
    font-size:clamp(14px,1.8vh,16px);
    margin-top:clamp(8px,3.2vh,32px)
  }
  .waiting-panel {
    margin-top:clamp(14px,4.4vh,45px);
    padding-block:clamp(14px,2.6vh,24px)
  }
  .waiting-panel .spinner {
    margin-top:clamp(10px,2.5vh,23px)
  }
  .waiting-panel h2 {
    margin-top:clamp(8px,2vh,18px)
  }
  .waiting-panel>#waiting-button {
    min-height:clamp(42px,5.1vh,46px);
    margin-top:clamp(10px,2.2vh,20px)
  }
}
/* Низкое окно ноутбука: компактнее рамка и индикатор ожидания. */
@media(min-width:651px) and (max-height:600px) {
  .application {
    margin:8px;
    min-height:calc(100svh - 16px);
    padding-top:10px;
    padding-bottom:12px
  }
  .waiting-panel .spinner {
    width:28px;
    height:28px
  }
  .waiting-panel>#waiting-meta {
    padding-bottom:10px
  }
}
/* Большой экран: небо на всю ширину, содержимое отчёта не шире 1650 px. */
@media(min-width:1700px) {
  .application {
    max-width:none
  }
  .app-header {
    width:min(calc(100% - 50px),1600px);
    align-self:center;
    margin-inline:0
  }
  .application>#workspace,.report-messages .notice {
    width:min(100%,1650px);
    align-self:center
  }
}

/* 11.11.2026: имя файла в шапке, место замечания в строке списка, список порциями,
   действия перед списком на планшете и телефоне. */
.document-name {
  min-width:0;
  max-width:40%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  font-weight:500;
  line-height:1.4;
  color:#fff;
  text-shadow:0 1px 8px #08528c99
}
.finding-place {
  display:block;
  margin-top:2px;
  font-size:11px;
  line-height:16px;
  letter-spacing:-.01em;
  color:#56646c;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.more-findings {
  display:block;
  width:calc(100% - 16px);
  min-height:40px;
  margin:8px;
  padding:0 12px;
  border:1px solid #727d7640;
  border-radius:999px;
  background:#ffffffb0;
  font-size:13px;
  font-weight:600;
  letter-spacing:-.01em;
  color:var(--ink)
}
.more-findings:hover {
  background:#fff
}
.toolbar>#visible-count {
  color:#46535b
}
/* В отчёте без замечаний нечего искать, фильтровать и отмечать. */
.no-findings .toolbar,.no-findings .manual-progress {
  display:none
}
@media(min-width:651px) {
  .finding-row {
    grid-template-columns:17px minmax(0,1fr)
  }
}
@media(min-width:1251px) {
  .app-header {
    position:relative
  }
  .document-name {
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    max-width:calc(100% - 560px)
  }
}
@media(max-width:1250px) {
  /* Под длинным списком действия недостижимы, поэтому они стоят перед ним. */
  .document-actions {
    order:-1;
    min-height:0
  }
}
@media(max-width:650px) {
  .report-grid {
    display:flex;
    flex-direction:column
  }
  .document-actions {
    padding:20px 16px;
    gap:14px
  }
  /* Панель стоит перед списком и должна быть короткой. */
  .document-actions .marks-note {
    display:none
  }
  .document-name {
    display:none
  }
}
@media(pointer:coarse) {
  .finding-row>input,.manual-progress input {
    width:24px;
    height:24px
  }
  .finding-row {
    grid-template-columns:24px minmax(0,1fr)
  }
  .manual-progress label {
    min-height:32px
  }
}
