.desk-window .dr-page {
  container-type: inline-size;
  min-width: 0;
  color: #283245;

}
.dr-window, .dr-inspector {
  min-width: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-panel);
  box-shadow: var(--control-shadow);
}
.dr-window + .dr-window, .dr-window + .dr-disclosure { margin-top: 12px; }
.dr-tabs {
  max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: #cbd4e0 transparent;
}
.dr-tabs.ws-list-tabs a { flex: none; gap: 5px; padding-inline: 0; white-space: nowrap; }
.dr-tab-count {
  min-width: 18px; padding: 1px 5px; border-radius: var(--radius-pill); background: #f0f2f6;
  color: #56657a; font-size: var(--small-label); line-height: 1.4; font-weight: 550;
  text-align: center; font-variant-numeric: tabular-nums;
}
.dr-tabs a[aria-current] .dr-tab-count { color: var(--blue-strong); background: var(--blue-soft); }
.dr-page .ws-inline-field select:focus-visible, .dr-page :is(a,summary):focus-visible, .dr-page .btn:focus-visible {
  outline: 2px solid var(--blue-strong); outline-offset: 2px;
}
.dr-page .dr-tabs a:focus-visible { outline-offset: -2px; }

.dr-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: auto; }
.dr-table thead th {
  background: #f6f7fa; color: #5e6878; border-bottom: 1px solid var(--line);
  padding: 6px 13px; font-size: var(--small-label); font-weight: 600; line-height: 1.45; text-align: left; white-space: normal;
}
.dr-table thead th:last-child, .dr-table .dr-actions { text-align: right; }
.dr-table th:first-child, .dr-table td:first-child { padding-left: 16px; }
.dr-table th:last-child, .dr-table td:last-child { padding-right: 16px; }
.dr-table .dr-group-row > th { padding: 0; border-bottom: 1px solid var(--line); font-weight: 400; background: #f9fafc; }
.dr-table .dr-group + .dr-group .dr-group-row > th { border-top: 1px solid #d9deea; }
.dr-scene { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 16px; text-align: left; }
.dr-cover { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 27px; overflow: hidden; border-radius: var(--radius-small); background: #e9e9ef; }
.dr-cover img, .dr-inspect-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dr-scene-copy { display: flex; flex: 1 1 auto; align-items: baseline; flex-wrap: wrap; min-width: 0; gap: 1px 12px; }
.dr-scene-title { display: inline-flex; align-items: center; gap: 3px; min-width: 0; color: #343d50; font-size: var(--type-ui); font-weight: 665; line-height: 1.45; overflow-wrap: anywhere; white-space: normal; }
.dr-scene-title > svg { flex-shrink: 0; width: 11px; height: 11px; color: #7a8094; }
.dr-scene-title:hover { color: var(--blue-strong); text-decoration: underline; }
.dr-scene-meta, .dr-destination { color: var(--muted); font-size: var(--small-label); line-height: 1.5; white-space: normal; }
.dr-destination { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 4px; }
.dr-destination svg { width: 12px; height: 12px; }
.dr-table .dr-entry > td { padding: 8px 13px; border: 0; border-bottom: 1px solid var(--line); color: #374257; font-size: var(--type-caption); line-height: 1.45; vertical-align: middle; white-space: normal; }
.dr-table .dr-entry > td:first-child { padding-left: 20px; }
.dr-table .dr-entry > td:last-child { padding-right: 12px; }
.dr-table .dr-entry:last-child > td { border-bottom: 0; }
.dr-table .dr-entry:hover, .dr-table .dr-entry:focus-within { background: #f7f7fc; }
.dr-table .dr-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dr-page .dr-item .dq-mark { flex: 0 0 27px; width: 27px; height: 27px; border-radius: var(--control-radius); }
.dr-page .dr-item .dq-mark svg { width: 15px; height: 15px; }
.dr-item strong { display: block; color: #343e52; font-size: var(--type-ui); font-weight: 600; }
.dr-table td small { display: block; margin: 2px 0 0; color: var(--muted); font-size: var(--small-label); line-height: 1.45; overflow-wrap: anywhere; }
.dr-table .dr-owner { max-width: 205px; }
.dr-owner .badge { white-space: normal; }
.dr-assignment { display: flex; align-items: baseline; gap: 4px; margin-top: 3px; color: #344157; font-size: var(--type-caption); font-weight: 600; overflow-wrap: anywhere; }
.dr-assignment svg { align-self: flex-start; flex: 0 0 13px; width: 13px; height: 13px; margin-top: 2px; }
.dr-page .dr-link, .dr-table .dr-actions .quiet {
  min-height: 27px; padding: 2px 4px; border: 1px solid transparent; border-radius: var(--radius-small); box-shadow: none;
  color: var(--blue-strong); background: transparent; font-size: var(--type-caption); font-weight: 555;
}
.dr-page .dr-link:hover, .dr-table .dr-actions .quiet:hover { color: var(--blue-strong); background: var(--blue-soft); }
.dr-link svg { width: 13px; height: 13px; }
.dr-actions > div { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 2px 5px; }
.dr-progress { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; width: 100%; max-width: 128px; color: #48556b; font-size: var(--small-label); font-variant-numeric: tabular-nums; }
.dr-progress progress { appearance: none; display: block; width: 100%; height: 4px; overflow: hidden; border: 0; border-radius: var(--radius-pill); background: var(--progress-track); color: var(--progress-local); }
.dr-progress.remote progress { color: var(--blue-strong); }
.dr-progress progress::-webkit-progress-bar { background: var(--progress-track); border-radius: var(--radius-pill); }
.dr-progress progress::-webkit-progress-value { background: currentColor; border-radius: var(--radius-pill); }
.dr-progress progress::-moz-progress-bar { background: currentColor; border-radius: var(--radius-pill); }
.dr-saved { display: inline-flex; align-items: center; gap: 4px; color: #28664f; font-size: var(--type-caption); font-weight: 555; }
.dr-saved > svg { width: 13px; height: 13px; }
.dr-muted, .dr-wait, .dr-na { font-size: var(--type-caption); color: var(--muted); }
.dr-wait { color: #855c23; }
.dr-na { color: #7b8290; }
.dr-empty, .desk-window .dr-window .dq-no-results {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 120px; padding: 20px 15px; color: #5e687b; background: #fff; border: 0; border-radius: 0; text-align: center;
}
.dr-empty svg { width: 22px; height: 22px; }
.dr-empty strong, .dr-empty p { margin: 0; color: #465169; font-size: var(--type-ui); font-weight: 550; }
.dr-window .desk-pager, .dr-inspector .desk-pager { margin: 0; background: #fafbfc; }

.dr-inspect-header { display: flex; align-items: center; gap: 13px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.dr-inspect-cover { flex: 0 0 83px; height: 53px; overflow: hidden; background: #e9e8ee; border-radius: var(--radius-small); }
.dr-inspect-name { flex: 1; min-width: 0; }
.dr-page .dr-inspect-name h2 { margin: 0; color: #273147; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.dr-inspect-name p { margin: 4px 0 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
.dr-inspect-core { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(215px,.85fr); }
.dr-execution, .dr-inspect-facts { min-width: 0; padding: 17px 18px; }
.dr-inspect-facts { border-left: 1px solid var(--line); background: #fbfbfd; }
.dr-page .dr-panel-title, .dr-page .dr-inspector h3 { margin: 0; color: #374057; font-size: var(--type-ui); line-height: 1.5; font-weight: 650; }
.dr-page .dr-panel-title { padding: 11px 15px; border-bottom: 1px solid var(--line); }
.dr-meters { margin: 9px 0 12px; }
.dr-meters > div { display: grid; grid-template-columns: minmax(85px,.75fr) minmax(0,1.25fr); align-items: center; gap: 10px; min-height: 39px; padding: 4px 0; }
.dr-meters dt, .dr-meters dd { min-width: 0; margin: 0; }
.dr-meters dt { display: flex; align-items: center; gap: 7px; color: #535e73; font-size: var(--type-caption); }
.dr-meters dt svg { width: 15px; height: 15px; color: #737c94; }
.dr-meters .dr-progress { max-width: 240px; font-size: var(--type-caption); }
.dr-detail-actions, .dr-demo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dr-detail-actions .btn, .dr-demo-actions .btn { min-height: 29px; padding: 3px 8px; font-size: var(--type-caption); }
.dr-inspect-facts .info, .dr-disclosure .info { margin: 8px 0 0; padding: 0; }
.dr-inspect-facts .info > div, .dr-disclosure .info > div {
  display: grid; grid-template-columns: minmax(62px,.52fr) minmax(0,1fr);
  gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--type-caption);
}
.dr-inspect-facts .info > div:last-child, .dr-disclosure .info > div:last-child { border: none; }
.dr-inspect-facts .info dt, .dr-disclosure .info dt { color: var(--muted); }
.dr-inspect-facts .info dd, .dr-disclosure .info dd { min-width: 0; margin: 0; color: #37445b; overflow-wrap: anywhere; }
.dr-records, .dr-disclosure { border-top: 1px solid var(--line); }
.dr-records > h3 { padding: 12px 17px 4px; }
.dr-history { margin: 0; padding: 0 17px 5px; list-style: none; }
.dr-history li { display: grid; grid-template-columns: 58px 31px minmax(0,1fr); align-items: baseline; gap: 10px; padding: 8px 0; font-size: var(--type-caption); }
.dr-history li + li { border-top: 1px solid var(--line); }
.dr-history time, .dr-history li > span { color: var(--muted); font-size: var(--small-label); font-variant-numeric: tabular-nums; }
.dr-history p { margin: 0; overflow-wrap: anywhere; }
.dr-task-checks { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(215px,.85fr); border-top: 1px solid var(--line); }
.dr-task-checks > .dr-disclosure { min-width: 0; border-top: 0; }
.dr-task-checks > .dr-disclosure + .dr-disclosure { border-left: 1px solid var(--line); }
.dr-disclosure { margin: 0; padding: 0 17px; }
.dr-disclosure summary { display: list-item; cursor: pointer; padding: 10px 0; color: #525d73; font-size: var(--type-caption); font-weight: 550; }
.dr-disclosure summary::marker { color: #8b91a3; }
.dr-disclosure[open] > summary { color: var(--blue-strong); }
.dr-disclosure > :not(summary) { margin: 0 0 12px; }
.dr-demo { background: #fbfbfd; }
.dr-demo summary { color: #646c80; }
.dr-location { width: fit-content; max-width: 100%; margin: 10px 0 0; padding: 0 3px; border: 0; }
.dr-location summary svg { width: 14px; height: 14px; margin: 0 5px; vertical-align: text-bottom; }
.dr-location .dq-path { padding: 0; overflow-wrap: anywhere; }
.dr-version-history .table-wrap { padding: 5px 16px 10px; }

@container (max-width: 680px) {
  .dr-scene { padding: 7px 10px; }
  .dr-table .dr-entry > td { padding: 7px; }
  .dr-table .dr-entry > td:first-child { padding-left: 10px; }
  .dr-table .dr-entry > td:last-child { padding-right: 8px; }
  .dr-table thead th { padding: 6px 7px; }
  .dr-table th:first-child { padding-left: 10px; }
  .dr-inspect-core, .dr-task-checks { grid-template-columns: minmax(0,1.1fr) minmax(180px,.9fr); }
}
@container (max-width: 545px) {
  .dr-tabs.ws-list-tabs { flex-wrap: wrap; gap: 0 8px; }
  .dr-tabs.ws-list-tabs a { min-height: 40px; gap: 3px; font-size: var(--type-caption); }
  .dr-tab-count { min-width: 14px; padding-inline: 3px; font-size: 10px; }
  .dr-tools.ws-library-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .dr-tools .ws-search { width: 100%; }
  .dr-tools .ws-inline-field { justify-self: start; }
  .dr-tools:has(.btn) .ws-search { grid-column: 1 / -1; }
  .dr-table, .dr-table tbody { display: block; }
  .dr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dr-table .dr-group-row, .dr-table .dr-group-row th { display: block; }
  .dr-table .dr-entry { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 6px 10px; padding: 9px 11px; }
  .dr-table .dr-entry + .dr-entry { border-top: 1px solid var(--line); }
  .dr-table .dr-entry > td, .dr-table .dr-entry > td:first-child, .dr-table .dr-entry > td:last-child { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
  .dr-name { grid-column: 1; grid-row: 1; }
  .dr-table .dr-actions { grid-column: 1 / -1; justify-self: end; }
  .dr-entry td[data-label]::before { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; content: attr(data-label); }
  .dr-entry td.dr-owner::before { display: none; }
  .dr-scene-copy { display: block; }
  .dr-scene-meta { display: block; }
  .dr-destination { max-width: 30%; font-size: 10px; }
  .dr-inspect-core, .dr-task-checks { display: block; }
  .dr-task-checks > .dr-disclosure + .dr-disclosure { border-top: 1px solid var(--line); border-left: 0; }
  .dr-inspect-facts { border-top: 1px solid var(--line); border-left: 0; }
}
@container (max-width: 365px) {
  .dr-inspect-header { gap: 8px; padding: 12px; flex-wrap: wrap; }
  .dr-inspect-cover { flex-basis: 53px; height: 42px; }
  .dr-page .dr-inspect-name h2 { font-size: 15px; }
  .dr-execution, .dr-inspect-facts { padding: 12px; }
  .dr-history li { grid-template-columns: 52px 24px minmax(0,1fr); gap: 5px; }
}
