/* The desktop chrome owns the shared account, navigation, and work area. */
.ds-studio {
  --desk-track: clamp(176px, 15vw, 215px);
  display: block;
  height: 100dvh;
  min-height: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ds-studio .desk-window { height: 100%; min-height: 0; grid-template-rows: 55px minmax(0,1fr); }
.ds-studio .window-caption {
  position: relative; z-index: 4; min-height: 0; padding: 0 18px 0 0;
  border: 0; background: var(--surface-muted); box-shadow: inset 0 -1px var(--line);
}
.ds-studio .desk-caption-left {
  align-items: center; gap: clamp(10px,1.7vw,26px); padding: 0 14px;
}
.ds-studio .window-lights { gap: 5px; }
.ds-studio .window-lights i { height: 10px; width: 10px; border: 1px solid #00000016; background: #eb7874; }
.ds-studio .window-lights i:nth-child(2) { background: #eeb85d; }
.ds-studio .window-lights i:nth-child(3) { background: #77bc89; }
.ds-product, .ds-app-icon, .ds-history, .ds-history-action, .ws-utilities, .ws-device, .ds-review summary,
.ds-review-menu, .ds-statusbar, .ds-statusbar > *, .ds-meter-symbol, .ds-link-state { display: flex; align-items: center; }
.ds-product { gap: 7px; font-weight: 670; color: var(--ink); font-size: var(--type-subheading); letter-spacing: .02em; white-space: nowrap; }
.ds-app-icon {
  display: grid; place-items: center; width: 25px; height: 25px; border-radius: var(--control-radius);
  color: white; background: var(--blue-strong);
}
.ds-app-icon svg { width: 17px; height: 17px; stroke-width: 1.8; }
.ds-studio .desk-caption-title { padding: 0 12px 0 clamp(14px,2.1vw,30px); gap: 12px; }
.ds-history { gap: 1px; flex: none; }
.ds-history-action { justify-content: center; width: 23px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-small); background: transparent; color: #515868; }
.ds-history-action:disabled { color: #aaadbb; cursor: default; }
.ds-history-action:hover:not(:disabled), .ds-review summary:hover { background: var(--surface-hover); }
.ds-history-action svg { width: 15px; height: 15px; stroke-width: 1.7; }
.ds-studio .desk-caption-divider { margin: 0; height: 19px; background: var(--line-strong); }
.scope-desk {
  width: clamp(174px,18vw,235px); max-width: 100%;
}
.scope-desk .scope-trigger { grid-template-columns: 26px minmax(0,1fr) 12px; gap: 7px; min-height: var(--account-control-height); padding: 3px 8px 3px 5px; }
.scope-desk .scope-trigger .scope-avatar { width: 26px; height: 26px; }
.ws-utilities { justify-content: end; gap: 16px; min-width: 0; }
.ws-device { gap: 6px; min-width: 0; color: #565d72; }
.ws-device svg { width: 15px; height: 15px; flex: none; }
.ws-device strong { max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--type-caption); font-weight: 550; }
.ds-review { position: relative; align-self: center; }
.ds-review summary { gap: 5px; padding: 4px 6px; min-height: 27px; color: #656a7c; border: 0; border-radius: var(--radius-small); font-size: var(--small-label); font-weight: 500; list-style: none; cursor: pointer; }
.ds-review summary::-webkit-details-marker { display: none; }
.ds-review-device { display: none; }
.ds-review summary svg { width: 13px; height: 13px; }
.ds-review summary svg:last-child { width: 10px; }
.ds-review-menu { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; padding: 7px; gap: 6px; background: #fff; border: 1px solid #d2d4df; border-radius: var(--control-radius); box-shadow: var(--popover-shadow); min-width: max-content; }
.ds-review .switcher { margin: 0; background: var(--surface-hover); }
.ds-review .btn.quiet { min-height: 28px; font-size: var(--type-caption); }
.ds-review .switcher a { min-height: 26px; }
.ds-studio .desk-sidebar { padding: 15px 10px 8px; background: var(--surface-muted); border-right: 1px solid var(--line); }
.ds-studio .desk-nav-group + .desk-nav-group { margin-top: 24px; }
.ds-studio .desk-nav-group h2 { margin: 0 10px 6px; color: #626e80; font-size: var(--small-label); font-weight: 600; }
.ds-studio .desk-sidebar nav a { min-height: 35px; padding: 7px 10px; gap: 10px; border: 0; border-radius: var(--control-radius); color: #586274; font-size: var(--type-ui); font-weight: 500; }
.ds-studio .desk-sidebar nav a > svg { width: 17px; height: 17px; color: #69778b; stroke-width: 1.6; }
.ds-studio .desk-sidebar nav a:hover, .ds-studio .desk-sidebar .desk-gear:hover,
.ds-studio .desk-sidebar a.ds-link-state:hover { color: var(--ink); background: var(--surface-hover); }
.ds-studio .desk-sidebar nav a[aria-current="page"], .ds-studio .desk-sidebar .desk-gear[aria-current="page"] { color: var(--blue-strong); background: var(--blue-soft); box-shadow: inset 0 0 0 1px #d7e4ff; font-weight: 650; }
.ds-studio .desk-sidebar nav a:is(:hover,[aria-current="page"]) > svg { color: inherit; }
.ds-studio .desk-sidebar nav a[aria-current="page"]::before { content: none; }
.ds-studio .desk-sidebar :focus-visible { outline-color: var(--blue-strong); }
.ds-nav-count { margin-left: auto; min-width: 16px; padding: 0 4px; border-radius: var(--radius-pill); color: #526173; background: #e8edf3; font-size: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.ds-studio [aria-current="page"] > .ds-nav-count { color: var(--blue-strong); background: #dce8ff; }
.ds-studio .desk-sidebar-footer { align-items: center; justify-content: flex-start; gap: 6px; padding-top: 8px; border-top-color: var(--line); }
.ds-studio .desk-sidebar .desk-gear { color: var(--muted); }
.ds-studio .desk-sidebar .desk-gear-tip { right: auto; left: 0; }
.ds-studio .desk-sidebar a.ds-link-state { min-height: 27px; margin: 0; padding: 4px 7px; gap: 6px; color: var(--da-state,var(--muted)); font-size: var(--small-label); }
.ds-link-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--da-dot,var(--muted)); }
.ds-content { display: grid; grid-template-rows: minmax(0,1fr) auto; min-height: 0; min-width: 0; }
.ds-studio .desk-viewport { min-height: 0; overflow: auto; scrollbar-gutter: stable; background: var(--canvas); }
.ds-studio .desk-viewport > #main { max-width: 1384px; margin-inline: auto; padding: 22px clamp(18px,2.1vw,32px) 30px; }
.ds-studio .desk-viewport .page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 15px; min-height: 36px; }
.ds-studio .desk-viewport .page-head > div:first-child { min-width: 0; }
.ds-studio .desk-viewport .page-head h1 { overflow-wrap: anywhere; color: #25283b; font-size: clamp(21px,1.7vw,25px); line-height: 1.25; font-weight: 680; letter-spacing: -.025em; }
.ds-studio .desk-viewport :is(h2,h3) { letter-spacing: -.012em; }
.ds-studio .desk-viewport :is(.btn.quiet,.dr-link) { color: var(--blue-strong); }
.ds-studio .desk-viewport .btn { border-radius: var(--control-radius); }
.ds-studio .desk-viewport .btn:not(.quiet):not(.dr-link):not(.primary):not(.ws-play), body:has(.ds-studio) #modal .btn:not(.quiet):not(.primary) {
  color: #41465d; background: #fff; border-color: #d4d7e1; box-shadow: var(--control-shadow);
}
.ds-studio .desk-viewport .btn.primary, body:has(.ds-studio) #modal .btn.primary { background: var(--blue-strong); color: white; border-color: var(--blue-strong); box-shadow: var(--control-shadow); }
.ds-studio .desk-viewport .btn.primary:hover, body:has(.ds-studio) #modal .btn.primary:hover { background: var(--blue-hover); }
.ds-studio .desk-viewport button:disabled, body:has(.ds-studio) #modal button:disabled { opacity: .53; cursor: default; }
.ds-studio :is(input[type="checkbox"],input[type="radio"]), body:has(.ds-studio) #modal input { accent-color: var(--blue-strong); }
.ds-studio .desk-viewport :is(.ws-surface,.dh-panel,.dr-surface,.da-panel,.panel,.da-identity) { border-color: var(--line); }
.ws-surface, .ws-pref-sheet { background: white; border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.ws-list-tabs {
  display: flex; align-items: stretch; gap: 18px; padding: 0 15px; border-bottom: 1px solid var(--line);
}
.ws-list-tabs a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 2px;
  border-bottom: 2px solid transparent; color: #59687a; font-size: var(--type-ui); font-weight: 600;
}
.ws-list-tabs a:is(:hover,[aria-current]) { color: var(--blue-strong); }
.ws-list-tabs a[aria-current] { border-color: currentColor; }
.ws-list-tabs a:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: -2px; }
.ws-library-tools, .ws-search, .ws-inline-field { display: flex; align-items: center; min-width: 0; }
.ws-library-tools { flex-wrap: wrap; gap: 8px 12px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: #fff; }
.ws-search { gap: 7px; width: min(300px,100%); margin: 0; padding: 0 8px; }
.ws-search:focus-within { outline: 2px solid var(--blue-strong); outline-offset: 1px; }
.ws-search > svg { width: 15px; height: 15px; flex: none; }
.ws-search input { width: 100%; min-height: 30px; margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: var(--type-ui); }
.ds-studio .ws-search input:focus-visible { outline: none; }
.ws-inline-field { margin: 0; gap: 7px; color: var(--muted); font-size: var(--type-caption); font-weight: 525; white-space: nowrap; }
.ws-inline-field select { width: auto; max-width: 210px; margin: 0; padding: 4px 7px; }
.ds-statusbar { justify-content: space-between; min-height: 27px; gap: 14px; padding: 3px 15px; background: var(--surface-muted); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--small-label); }
.ds-statusbar > * { min-width: 0; gap: 6px; color: inherit; }
.ds-statusbar a:hover { color: var(--blue-strong); text-decoration: underline; }
.ds-statusbar svg { width: 13px; height: 13px; flex: none; }
.ds-meter-symbol { height: 12px; flex: none; align-items: end; gap: 2px; }
.ds-meter-symbol i { width: 2px; height: 65%; border-radius: 1px; background: #5c7394; }
.ds-meter-symbol i:nth-child(2) { height: 100%; }
.ds-meter-symbol i:last-child { height: 42%; }

.desk-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px 12px; min-height: 37px; padding: 5px 12px; border-top: 1px solid #dce0e8; color: #566071; background: #f6f7f9; font-size: var(--small-label); font-variant-numeric: tabular-nums; }
.desk-pager .dp-total { flex: 1 1 auto; white-space: nowrap; }
.desk-pager label, .desk-pager .dp-pages { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: inherit; font-size: inherit; font-weight: 475; white-space: nowrap; }
.desk-pager .dp-limit select, .desk-pager .dp-pages input { width: auto; min-width: 33px; height: 23px; min-height: 0; margin: 0; padding: 1px 3px; border: 1px solid #cbd1dc; border-radius: var(--radius-small); background: #fff; color: #354056; font: inherit; }
.desk-pager .dp-pages input { width: 3ch; text-align: center; appearance: textfield; }
.desk-pager input::-webkit-inner-spin-button { appearance: none; }
.desk-pager .dp-pages input[readonly] { background: transparent; border-color: transparent; min-width: 12px; width: 1.45em; }
.desk-pager .dp-pages button { display: grid; place-items: center; width: 24px; height: 23px; min-height: 0; padding: 0; color: #485570; background: linear-gradient(#fff,#f3f4f7); border: 1px solid #cbd1dc; border-radius: var(--radius-small); }
.desk-pager .dp-pages button svg { width: 12px; height: 12px; }
.desk-pager .dp-pages button:disabled { color: #8b93a0; opacity: .65; }
.desk-pager .dp-pages button:hover:not(:disabled) { background: #e5eaf2; }

body:has(.ds-studio) #modal { border: 1px solid #d3d6e2; border-radius: var(--radius-panel); padding: 0; box-shadow: var(--dialog-shadow); overflow-wrap: anywhere; }
body:has(.ds-studio) #modal .dialog-head { padding: 12px 17px; background: var(--surface-muted); border-bottom: 1px solid var(--line); }
body:has(.ds-studio) #modal .dialog-head h2 { font-size: var(--type-subheading); color: #292d43; }
body:has(.ds-studio) #modal .dialog-head button { color: #666c7e; }
body:has(.ds-studio) #modal::backdrop { background: #1a1e3559; }
.ds-studio .dh-stats { margin: 0 0 16px; background: white; border-color: var(--line); }
.ds-studio .dh-stats > a { display: grid; grid-template: auto auto / 1fr auto; align-content: center; align-items: center; gap: 4px 10px; padding: 13px clamp(12px,1.3vw,22px); }
.ds-studio .dh-stats .dh-stat-label { gap: 6px; color: #424966; }
.dh-stats .dh-stat-label svg { color: #676da2; }
.ds-studio .dh-stats a > div { grid-area: 1 / 2 / span 2; margin: 0; }
.ds-studio .dh-stats a > div strong { font-size: clamp(22px,2vw,29px); color: #33384f; }
.ds-studio .dh-stats a > small { font-size: var(--small-label); color: #697286; }
.ds-studio .dh-panel .da-panel-head { background: white; }
.dh-monitor { display: grid; grid-template-columns: minmax(148px,23%) minmax(0,1fr); min-height: 172px; overflow: hidden; background: white; }
.dh-monitor + .dh-monitor { border-top: 1px solid var(--line); }
.dh-monitor-art { position: relative; display: block; min-height: 100px; overflow: hidden; background: #ecebf0; }
.dh-monitor-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.dh-monitor-main { min-width: 0; }
.dh-monitor-main > header { padding: 15px 18px 12px; }
.dh-monitor-owner { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--type-caption); }
.dh-monitor-owner .desk-platform-icon { width: 16px; height: 16px; }
.dh-monitor-main h3 { margin: 5px 0 2px; font-size: clamp(17px,1.6vw,21px); color: var(--ink); font-weight: 660; line-height: 1.4; }
.dh-monitor-main h3 a { color: inherit; }
.dh-monitor-main h3 a:hover { text-decoration: underline; }
.dh-monitor-main time { color: var(--muted); font-size: var(--type-caption); }
.dh-monitor .dh-task { grid-template-columns: minmax(88px,.8fr) repeat(2,minmax(72px,1fr)) auto; gap: 8px 12px; padding: 11px 17px; }
.dh-monitor .dh-kind .dq-mark { width: 27px; height: 27px; flex-basis: 27px; }
.ds-library .ds-foot { justify-content: flex-start; align-items: center; gap: 5px; padding: 6px 15px; background: #fff; font-size: var(--small-label); }
.ds-foot svg { width: 12px; height: 12px; }
.ds-studio .ds-library-list { border-radius: var(--radius-panel); }
.ds-studio .ds-table thead th { padding-block: 7px; background: #f4f5f8; color: #626a7f; font-size: var(--small-label); }
.ds-studio .ds-table td { padding-block: 10px; }
.ds-studio .ds-library .ds-cover { width: 66px; aspect-ratio: 1.5; }
.ds-studio .ds-scene-title { color: #2d3248; }
.ds-studio .ds-table tbody tr:hover { background: #f8f8fc; }
.ds-studio .ds-library-list .ds-action { color: var(--blue-strong); }
.ds-studio .dh-meta { margin-top: 6px; font-size: var(--type-caption); }
.ws-scene-sheet .tabs, .ws-pref-sheet .desk-settings-tabs { display: flex; align-items: stretch; flex-wrap: wrap; gap: 2px 15px; margin: 0; padding: 0 15px; border-bottom: 1px solid var(--line); background: #fbfbfd; }
.ws-scene-sheet .tabs a, .ws-pref-sheet .desk-settings-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 2px; color: #62697b; font-size: var(--type-ui); font-weight: 540; border-bottom: 2px solid transparent; }
.ws-scene-sheet .tabs a.active, .ws-pref-sheet .desk-settings-tabs a[aria-selected="true"] { color: var(--blue-strong); border-color: var(--blue-strong); font-weight: 650; }
.ws-scene-sheet > .panel, .ws-scene-sheet > details, .ws-pref-sheet .da-panel, .ws-pref-sheet .da-identity { border: 0; border-bottom: 1px solid var(--line); margin: 0; border-radius: 0; box-shadow: none; }
.ws-scene-sheet > :last-child, .ws-pref-sheet #desk-settings-panel > :last-child { border-bottom: 0; }
.ws-scene-sheet > .notice { margin: 10px 15px; }
.ds-studio .ws-scene-sheet > details.dq-diagnostics { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.ds-studio .ws-scene-sheet > details.dq-diagnostics:last-child { border-bottom: 0; }
.ws-video-file { display: grid; grid-template-columns: minmax(150px,25%) minmax(0,1fr); min-height: 166px; border-bottom: 1px solid var(--line); }
.ws-video-cover { position: relative; min-height: 135px; isolation: isolate; display: grid; place-items: center; overflow: hidden; background: #e2e1e9; }
.ws-video-cover .scene-photo { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.ws-video-cover:has(.ws-play)::before { content: ''; position: absolute; inset: 0; background: #21243830; z-index: -1; }
.ds-studio .ws-play { min-height: 32px; border: 1px solid #ffffff52; border-radius: var(--radius-pill); background: #25283cdb; color: white; }
.ws-play:hover { background: #1c1f34; }
.ws-video-info { padding: 13px 16px; min-width: 0; }
.ws-video-info h2 { margin: 0 0 7px; font-size: 15px; }
.ws-video-info .info { padding: 0; }
.ws-scene-sheet .tabs a.selected { color: var(--blue-strong); border-bottom-color: var(--blue-strong); font-weight: 650; }
.ws-dialog-close { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 0; border-radius: var(--radius-small); background: transparent; }
.ws-dialog-close:hover { background: #e7e8ef; }
.ws-dialog-close svg { width: 15px; height: 15px; }
.ws-video-info .actions { margin-top: 7px; }
.ds-studio .da-workspace { margin: 0; max-width: none; }
.ws-pref-sheet .da-panel-head { padding: 9px 15px; background: #fff; min-height: 42px; }
.ws-pref-sheet .da-panel-head h2 { font-size: var(--type-body); }
.ws-pref-sheet #desk-settings-panel > .da-connection-panels { gap: 0; margin: 0; }
.ws-pref-sheet .da-banner { margin: 0; border-width: 0 0 1px; border-radius: 0; }
.ws-pref-sheet .da-chain, .ws-pref-sheet .da-scope-grid { padding-block: 13px; }
.ws-pref-sheet .da-identity > summary { font-size: var(--type-caption); color: #4b516c; }
.ws-pref-sheet .da-node, .ws-pref-sheet .desk-folder-field > svg { background: #eeeff8; color: #61669a; border-color: #dfe1ef; }
.ws-plugin-table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.ws-plugin-table :is(th,td) { text-align: left; border: 0; padding: 9px 16px; }
.ws-plugin-table th:first-child { width: 34%; }
.ws-plugin-table thead th { padding-block: 7px; color: #636a7d; font-size: var(--small-label); font-weight: 560; background: #f5f6f9; }
.ws-plugin-table tbody tr + tr { border-top: 1px solid #eceef3; }
.ws-plugin-table th[scope="row"] { color: var(--ink); font-size: var(--type-ui); }
.ws-plugin-table .desk-platform-icon { width: 21px; height: 21px; margin-right: 8px; vertical-align: middle; }
.ws-plugin-state { display: inline-flex; align-items: center; gap: 4px; color: #326752; font-size: var(--type-caption); white-space: nowrap; }
.ws-plugin-state svg { width: 13px; height: 13px; }
.ws-plugin-state.paused { color: #856026; }
.ws-na { color: #687084; font-size: var(--type-caption); }
.ds-studio .desk-viewport .ws-command { min-height: 36px; margin: 0 0 15px; }
.ds-studio .desk-viewport .ws-command h1 { font-size: clamp(21px,1.7vw,25px); color: #25283b; font-weight: 680; letter-spacing: -.025em; }
.ws-list-body { min-width: 0; }
.ds-studio .ws-list-body :is(.ff-empty,.dr-empty,.ds-empty,.aur-empty,.dq-no-results) { min-height: 0; }
@media (min-width: 701px) {
  .ds-studio { --studio-footer-height: 36px; }
  .ds-studio .desk-sidebar { padding-bottom: 0; }
  .ds-studio .desk-sidebar-footer { height: var(--studio-footer-height); margin: 8px -10px 0; padding: 0 10px; }
  .ds-statusbar { min-height: var(--studio-footer-height); }
}
/* Size lists to their rows. Only the rows shrink and scroll when the controls and content exceed the window. */
@media (min-height: 570px) {
  .ds-studio .desk-viewport > #main:has(> .ws-list-page > .ws-list-window) {
    display: flex; flex-direction: column; height: 100%; padding-bottom: 13px;
  }
  .ds-studio .ws-list-page:has(> .ws-list-window) { display: flex; flex: 1; flex-direction: column; gap: 0; min-height: 0; }
  .ds-studio .ws-list-page > * { flex: none; }
  .ds-studio .ws-list-page > .ws-list-window { display: flex; flex: 0 1 auto; flex-direction: column; min-height: 0; overflow: auto; margin-bottom: 0; }
  .ds-studio .ws-list-window > * { flex: none; }
  .ds-studio .ws-list-window > .ws-list-body { flex: 0 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #fff; }
  :where(.ws-list-body) thead, .ws-list-body .aur-dir-head, .ws-list-body .aur-live-head { position: sticky; top: 0; z-index: 1; }
}
@container (max-width: 760px) {
  .dh-monitor { grid-template-columns: minmax(90px,22%) minmax(0,1fr); }
  .dh-monitor .dh-task { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 9px 12px; }
  .dh-monitor .dh-task > .btn { grid-area: 1 / 2; }
  .ds-studio .dh-stats > a { display: block; padding: 10px 12px; }
  .ds-studio .ds-table td { padding-block: 0; }
}
@container (max-width: 500px) {
  .ds-studio .dh-stats > a { padding: 9px 8px; }
  .ds-studio .dh-stats .dh-stat-label { font-size: var(--small-label); }
  .ds-studio .dh-stats a > small { display: none; }
  .dh-monitor { grid-template-columns: 1fr; }
  .dh-monitor-art { height: 101px; min-height: 0; }
  .dh-monitor-main > header { padding: 10px 12px; }
  .ws-video-file { grid-template-columns: 1fr; }
  .ws-video-cover { min-height: 0; height: 118px; }
  .ws-list-tabs { padding-inline: 9px; }
  .ws-library-tools { gap: 7px; padding: 9px; }
  .ws-search { flex: 1 1 145px; }
  .ws-inline-field { gap: 4px; }
  .ws-inline-field select { max-width: 142px; }
  .ws-plugin-table :is(th,td) { padding-inline: 6px; }
  .ws-plugin-table th:first-child { width: 30%; }
  .ws-plugin-table .desk-platform-icon { width: 16px; height: 16px; margin-right: 3px; }
  .ws-pref-sheet .desk-settings-tabs, .ws-scene-sheet .tabs { padding-inline: 10px; gap: 2px 11px; }
}
@media (max-width: 700px) {
  .ds-library-modes a { min-height: var(--touch-height); }
  .ds-studio .desk-window { grid-template-rows: 47px minmax(0,1fr); }
  .ds-studio .window-caption { padding-right: 7px; }
  .ds-studio .desk-caption-left { padding: 0 8px; }
  .ds-product { font-size: var(--type-ui); gap: 5px; }
  .ds-app-icon { width: 21px; height: 21px; }
  .ds-app-icon svg { width: 15px; height: 15px; }
  .ds-studio .window-lights, .ds-studio .desk-caption-divider, .ws-device { display: none; }
  .ds-studio .desk-caption-title { min-width: 0; gap: 4px; padding: 0 5px 0 0; }
  .ds-studio .desk-menu-button, .ds-studio .desk-drawer-head button { width: 44px; height: 44px; }
  .ds-studio .desk-menu-button { order: 0; border: 0; background: transparent; }
  .ds-studio .desk-menu-button svg { width: 24px; height: 24px; stroke-width: 2; }
  .ds-studio .desk-menu-button:is(:hover, :focus-visible) { background: var(--surface-hover); }
  .ds-studio .desk-menu-button:focus-visible { outline-offset: -2px; }
  .ds-history-action, .ds-review summary { width: 44px; height: 44px; justify-content: center; }
  .ds-history-action svg { width: 18px; height: 18px; }
  .scope-desk { width: 158px; max-width: 100%; flex: 0 1 158px; }
  .scope-desk .scope-trigger { min-height: 44px; }
  .scope-desk .scope-caption small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .ds-review summary { display: grid; grid-template-columns: auto 10px; align-content: center; width: auto; min-width: 66px; gap: 0 2px; white-space: nowrap; line-height: 15px; }
  .ds-review-device { display: block; grid-column: 1 / -1; color: var(--ink); font-size: var(--type-caption); font-weight: 650; }
  .ds-review-menu { max-width: calc(100vw - 14px); min-width: 0; width: max-content; }
  .ds-review .switcher a, .ds-review .btn.quiet { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .ds-content { height: 100%; }
  .ds-studio .desk-viewport { scrollbar-gutter: auto; }
  .ds-studio .desk-viewport > #main { padding: 14px 10px 22px; }
  .ds-studio .desk-viewport .page-head { align-items: center; min-height: 32px; margin-bottom: 12px; gap: 6px 8px; }
  .ds-studio .desk-viewport .ws-command { min-height: 32px; margin-bottom: 12px; }
  .ds-studio .desk-nav-group a { min-height: 39px; }
  .ds-studio .desk-drawer-head { color: var(--ink); border-color: var(--line); }
  .ds-studio .desk-body.show-nav .desk-sidebar { box-shadow: var(--drawer-shadow); }
  .ds-studio .desk-body.show-nav .desk-nav-scrim { background: #23334b30; }
  .ds-statusbar { padding-inline: 8px; gap: 7px; font-size: 10px; }
  .ds-storage-status { white-space: nowrap; }
  .desk-pager { padding-inline: 7px; gap: 4px 6px; }
}
@media (max-width: 440px) {
  .scope-desk .scope-trigger { grid-template-columns: minmax(0,1fr) 12px; gap: 2px; padding-inline: 6px 4px; }
  .scope-desk .scope-trigger .scope-avatar { display: none; }
}
@media (max-width: 380px) {
  .ds-product { font-size: 0; gap: 0; }
  .ds-studio .window-caption { padding-right: 2px; }
  .ds-studio .desk-caption-left { padding: 0 2px; }
  .ds-studio .desk-caption-title { gap: 2px; padding-right: 2px; }
  .scope-desk .scope-trigger { grid-template-columns: minmax(0,1fr) 10px; padding-inline: 4px 3px; gap: 2px; }
  .scope-desk .scope-trigger > svg { width: 10px; }
  .ds-studio .desk-viewport .page-head h1 { font-size: 20px; }
}
