/* Apollo Shell workspace: responsive three-column layout.
   Device access rules and command execution are implemented in JavaScript. */
.adb-workspace.adb-workspace-r78 {
  display:grid;
  grid-template-columns:minmax(210px,232px) minmax(0,1fr) minmax(222px,252px);
  align-items:start;
  gap:14px;
}
.adb-workspace-r78 > * {min-width:0;}
.adb-workspace-r78 .adb-aside {position:sticky;top:14px;display:block;min-width:0;}
.adb-workspace-r78 .adb-main {display:block;min-width:0;}
.adb-workspace-r78 .adb-inspector {display:flex;flex-direction:column;gap:12px;position:sticky;top:14px;min-width:0;}
.adb-page-head {margin-bottom:15px;}
.adb-workspace-r78 .adb-panel {border-radius:13px;}
.adb-workspace-r78 .adb-targets {box-shadow:0 12px 28px rgba(0,0,0,.055);}
.adb-workspace-r78 .adb-targets .adb-panel-heading {padding:16px 13px 11px;}
.adb-workspace-r78 .adb-targets .adb-panel-heading h2 {font-size:16px;}
.adb-workspace-r78 .adb-targets .adb-panel-heading p {font-size:11px;}
.adb-workspace-r78 .adb-targets .adb-device-list {height:clamp(365px,55vh,575px);max-height:none;display:block;padding:0 7px 7px;}
.adb-workspace-r78 .adb-targets .adb-target-row {padding:9px 6px;min-height:49px;gap:7px;margin-bottom:3px;border-radius:8px;}
.adb-workspace-r78 .adb-targets .adb-target-avatar {height:29px;flex-basis:29px;}
.adb-workspace-r78 .adb-targets .adb-target-label strong {font-size:10.5px;}
.adb-workspace-r78 .adb-targets .adb-target-label small {font-size:9.5px;}
.adb-workspace-r78 .adb-targets .adb-target-state {font-size:9px;gap:4px;}
.adb-workspace-r78 .adb-targets .adb-online-filter {margin:0 8px 9px;gap:2px;}
.adb-workspace-r78 .adb-targets .adb-online-filter button {font-size:9.5px;padding:5px 3px;}
.adb-workspace-r78 .adb-targets .adb-search-shell {margin:0 9px 10px;}
.adb-workspace-r78 .adb-target-footnote {padding:10px 12px 12px;font-size:10px;}

/* Primary surface: visually dominates with a restrained copper outline. */
.adb-workspace-r78 .adb-console {
  border:1px solid rgba(202,160,115,.56);
  border-radius:15px;
  box-shadow:0 0 0 1px rgba(198,147,101,.08),0 20px 48px rgba(0,0,0,.16);
  overflow:hidden;
}
.adb-workspace-r78 .adb-console-feature {padding:16px 19px 13px;background:linear-gradient(105deg,rgba(200,148,95,.115),rgba(200,148,95,.025) 65%,transparent);}
.adb-workspace-r78 .adb-console-feature h2 {font-size:21px;}
.adb-workspace-r78 .adb-console-top {height:48px;padding:0 15px;}
.adb-workspace-r78 .adb-terminal-body {height:clamp(410px,54vh,670px);padding:23px 22px 31px;}
.adb-workspace-r78 .adb-ascii {font-size:clamp(28px,2.9vw,38px);}
.adb-workspace-r78 .adb-command-area {padding:14px 17px 17px;}
.adb-workspace-r78 .adb-command-line {min-height:52px;}
.adb-workspace-r78 .adb-command-line input {height:50px;}

/* Context card: genuine selection status, never equates a virtual session with
   an actual OEM connection. Values are derived from the selected device state. */
.adb-context-card {
  min-width:0;padding:17px 15px 14px;
  border-radius:13px;border:1px solid var(--stroke-strong);
  background:linear-gradient(155deg,var(--surface-raised),var(--surface) 72%);
  box-shadow:0 9px 24px rgba(0,0,0,.045);
}
.adb-context-top {display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:13px;}
.adb-context-indicator {display:block;width:8px;height:8px;border-radius:50%;background:#c9984b;box-shadow:0 0 0 4px rgba(201,152,75,.14);}
.adb-context-indicator.is-online {background:#4bb18b;box-shadow:0 0 0 4px rgba(75,177,139,.15);}
.adb-context-device {display:flex;align-items:center;gap:11px;min-width:0;padding-bottom:14px;border-bottom:1px solid var(--stroke);}
.adb-context-icon {display:grid;place-items:center;flex:0 0 37px;height:39px;border-radius:10px;border:1px solid var(--stroke);background:var(--accent-dim);color:var(--accent);}
.adb-context-identity {min-width:0;}
.adb-context-identity h2 {font-size:13px;font-weight:750;letter-spacing:-.025em;line-height:1.35;margin:0 0 4px;overflow-wrap:anywhere;}
.adb-context-identity code {font:10px ui-monospace,Consolas,monospace;color:var(--muted);overflow-wrap:anywhere;}
.adb-context-specs {display:grid;grid-template-columns:1fr 1fr;gap:13px 11px;margin-top:15px;}
.adb-context-specs>div {display:flex;flex-direction:column;gap:4px;min-width:0;}
.adb-context-specs small {font-size:10px;color:var(--muted);}
.adb-context-specs strong {font-size:12px;font-weight:680;line-height:1.25;color:var(--text);}
.adb-context-note {display:flex;align-items:center;min-height:36px;font-size:10.5px;line-height:1.45;color:var(--muted);padding:10px 0 0;margin:12px 0 0;border-top:1px solid var(--stroke);}

/* Workspace tools: a compact right-hand rail, switching presets/history without
   moving the shell. History opens after the next completed command. */
.adb-toolbox {display:flex;flex-direction:column;min-width:0;border:1px solid var(--stroke-strong);border-radius:13px;background:var(--surface);overflow:hidden;}
.adb-toolbox-heading {display:flex;align-items:center;justify-content:space-between;padding:13px 14px 9px;}
.adb-toolbox-heading>span:last-child {color:var(--accent);}
.adb-toolbox-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:0 10px 11px;border-bottom:1px solid var(--stroke);}
.adb-toolbox-tabs button {display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;border-radius:8px;padding:10px 6px;border:1px solid transparent;background:var(--surface-raised);font-size:11px;font-weight:690;color:var(--muted);cursor:pointer;transition:background .17s ease,color .17s ease,border-color .17s ease;white-space:nowrap;}
.adb-toolbox-tabs button svg {flex:none;width:13px;height:13px;}
.adb-toolbox-tabs button:hover {background:var(--surface-hover);color:var(--text);}
.adb-toolbox-tabs button.active {background:var(--accent-dim);border-color:color-mix(in srgb,var(--accent) 35%,transparent);color:var(--text);}
.adb-toolbox-tabs button:focus-visible {outline:2px solid var(--accent);outline-offset:1px;}
.adb-toolbox-count {display:inline-flex;align-items:center;justify-content:center;border-radius:8px;min-width:17px;height:17px;padding:0 4px;font:700 10px ui-monospace,Consolas,monospace;background:var(--surface);color:var(--muted);}
.adb-toolbox-body {min-width:0;}
.adb-toolbox-body [hidden] {display:none!important;}
.adb-toolbox-body .adb-recipes,.adb-toolbox-body .adb-history-panel {animation:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-width:0;background:transparent;}
.adb-toolbox-body .adb-recipes {display:flex;flex-direction:column;}
.adb-toolbox-body .adb-recipes .adb-panel-heading {padding:13px 13px 9px;}
.adb-toolbox-body .adb-recipes .adb-panel-heading .adb-section-number {display:none;}
.adb-toolbox-body .adb-recipes .adb-panel-heading h2 {font-size:14px;margin:0;}
.adb-toolbox-body .adb-recipes .adb-panel-heading p {display:none;}
.adb-toolbox-body .adb-recipe-groups {display:flex;gap:4px;flex-wrap:wrap;padding:0 10px 9px;}
.adb-toolbox-body .adb-recipe-tab {font-size:9.5px;padding:5px 8px;min-height:25px;}
.adb-toolbox-body .adb-recipe-list {display:flex;flex-direction:column;flex-wrap:nowrap;gap:6px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding:0 10px 12px;max-height:clamp(264px,38vh,420px);scroll-snap-type:none;}
.adb-toolbox-body .adb-recipe-card {flex:0 0 auto;width:100%;min-height:52px;display:flex;align-items:center;gap:9px;padding:9px 8px;border-radius:9px;transform:none;scroll-snap-align:none;}
.adb-toolbox-body .adb-recipe-card:hover {transform:none;border-color:var(--accent);}
.adb-toolbox-body .adb-recipe-decoration {width:29px;height:29px;flex-basis:29px;}
.adb-toolbox-body .adb-recipe-card strong {font-size:11px;}
.adb-toolbox-body .adb-recipe-card small {display:block;font-size:9.5px;line-height:1.3;}
.adb-toolbox-body .adb-recipe-card code {display:none;}
.adb-toolbox-body .adb-recipe-arrow {margin-left:auto;}
.adb-toolbox-body .adb-history-panel {display:block;padding:13px 12px 12px;}
.adb-toolbox-body .adb-history-panel>.adb-section-number {display:none;}
.adb-toolbox-body .adb-history-panel>div:first-child {display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:10px;}
.adb-toolbox-body .adb-history-panel .adb-section-number {display:none;}
.adb-toolbox-body .adb-history-panel h2 {margin:0;font-size:14px;}
.adb-toolbox-body .adb-history-count {font-size:10px;margin:0;color:var(--muted);}
.adb-toolbox-body .adb-history {display:flex;flex-direction:column;gap:6px;max-height:clamp(280px,38vh,420px);overflow-y:auto;padding-right:1px;scrollbar-width:thin;}
.adb-toolbox-body .adb-history-row {flex-wrap:wrap;gap:5px;padding:9px 8px;min-height:45px;border-radius:8px;}
.adb-toolbox-body .adb-history-row code {font-size:10px;}
.adb-toolbox-body .adb-history-time {font-size:9px;}
.adb-toolbox-body .adb-history-empty {margin:8px 0 12px;}
.adb-workspace-r78 .adb-inspector .adb-guide {border-radius:10px;padding:12px 14px;display:flex;align-items:center;min-height:44px;background:var(--surface);}
.adb-workspace-r78 .adb-inspector .adb-guide-link {width:100%;font-size:11px;justify-content:space-between;}
.adb-workspace-r78 .adb-inspector .adb-guide-link svg:last-child {margin-left:auto;}
/* Preserve stagger while avoiding an extra delay when switching inspector tabs. */
.page-content[data-stx-shell-intro="play"] :is(.adb-context-card,.adb-toolbox) {
  animation-name:stx-shell-enter!important;
  animation-duration:720ms!important;
  animation-fill-mode:both!important;
  animation-delay:var(--stx-shell-step,0ms)!important;
  animation-timing-function:cubic-bezier(.18,.82,.22,1)!important;
}
.page-content[data-stx-shell-intro="play"] .adb-targets {--stx-shell-step:210ms;}
.page-content[data-stx-shell-intro="play"] .adb-console {--stx-shell-step:300ms;}
.page-content[data-stx-shell-intro="play"] .adb-context-card {--stx-shell-step:405ms;}
.page-content[data-stx-shell-intro="play"] .adb-toolbox {--stx-shell-step:520ms;}
.page-content[data-stx-shell-intro="play"] .adb-guide {--stx-shell-step:635ms;}

@media(max-width:1210px) {
  .adb-workspace.adb-workspace-r78 {grid-template-columns:minmax(198px,225px) minmax(0,1fr);gap:12px;}
  .adb-workspace-r78 .adb-inspector {grid-column:2;position:static;display:grid;grid-template-columns:minmax(170px,.72fr) minmax(0,1.28fr);align-items:start;gap:12px;}
  .adb-workspace-r78 .adb-inspector .adb-guide {grid-column:1/-1;}
  .adb-workspace-r78 .adb-terminal-body {height:clamp(390px,53vh,615px);}
  .adb-workspace-r78 .adb-toolbox-body .adb-recipe-list {max-height:320px;}
}
@media(max-width:1000px) {
  .adb-workspace.adb-workspace-r78 {grid-template-columns:minmax(0,1fr);gap:12px;}
  .adb-workspace-r78 .adb-aside {position:static;}
  .adb-workspace-r78 .adb-targets .adb-device-list {height:118px;max-height:118px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:3px;}
  .adb-workspace-r78 .adb-target-footnote {display:none;}
  .adb-workspace-r78 .adb-inspector {grid-column:1;grid-template-columns:minmax(185px,.8fr) minmax(0,1.2fr);}
  .adb-workspace-r78 .adb-terminal-body {height:clamp(360px,53vh,570px);}
}
@media(max-width:620px) {
  .adb-workspace-r78 .adb-targets .adb-device-list {height:84px;max-height:84px;grid-template-columns:1fr;}
  .adb-workspace-r78 .adb-inspector {grid-template-columns:minmax(0,1fr);gap:10px;}
  .adb-workspace-r78 .adb-inspector .adb-guide {grid-column:1;}
  .adb-workspace-r78 .adb-context-card {padding:13px 14px;}
  .adb-context-specs {grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
  .adb-context-specs small {font-size:9px;}
  .adb-context-specs strong {font-size:10.5px;}
  .adb-context-note {font-size:10px;}
  .adb-workspace-r78 .adb-terminal-body {height:clamp(325px,49vh,490px);}
  .adb-workspace-r78 .adb-console-feature {padding:13px 14px 11px;}
  .adb-workspace-r78 .adb-console-top {padding:0 10px;}
  .adb-workspace-r78 .adb-command-area {padding:12px;}
  .adb-toolbox-body .adb-recipe-list {max-height:265px;}
}
/* Tab content must never inherit the route-intro delay when revealed later. */
.page-content[data-stx-shell-intro="play"] .adb-toolbox-body :is(.adb-recipes,.adb-history-panel) {
  animation:none!important;
  opacity:1!important;
  transform:none!important;
}

/* Desktop workspace: fill the viewport; scroll inside the three panels only. */
@media (min-width:1001px) {
  html.stx-shell-viewport,
  html.stx-shell-viewport body {
    height:100%;
    overflow:hidden;
    overscroll-behavior:none;
  }
  html.stx-shell-viewport .app-shell {
    height:100vh;
    height:100dvh;
    min-height:0;
    overflow:hidden;
  }
  html.stx-shell-viewport .app-main {
    height:100%;
    min-height:0;
    overflow:hidden;
  }
  html.stx-shell-viewport .app-main > .topbar {
    height:58px;
    min-height:58px;
    flex:0 0 58px;
    padding-inline:22px;
  }
  /* The same setup guidance remains in the inspector; the generic site footer
     is reserved for other routes, freeing space for the actual shell. */
  html.stx-shell-viewport .app-main > .app-footer {display:none;}
  html.stx-shell-viewport .page-content {
    display:flex;
    flex-direction:column;
    flex:1 1 0;
    width:100%;
    max-width:1660px;
    height:auto;
    min-height:0;
    overflow:hidden;
    padding:14px 18px 16px;
  }
  html.stx-shell-viewport .adb-page-head {
    flex:0 0 auto;
    min-height:0;
    margin:0 0 9px;
    gap:12px;
  }
  html.stx-shell-viewport .adb-page-head h1 {
    margin:0;
  }
  html.stx-shell-viewport .adb-workspace.adb-workspace-r78 {
    display:grid;
    flex:1 1 0;
    height:100%;
    min-height:0;
    grid-template-columns:minmax(188px,21%) minmax(0,1fr) minmax(196px,23%);
    align-items:stretch;
    gap:12px;
  }
  html.stx-shell-viewport .adb-workspace-r78 > :is(.adb-aside,.adb-main,.adb-inspector) {
    min-width:0;
    min-height:0;
    height:100%;
    position:static;
    overflow:hidden;
  }
  html.stx-shell-viewport .adb-workspace-r78 :is(.adb-aside,.adb-main) {
    display:flex;
    flex-direction:column;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-inspector {
    grid-column:auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-targets,
  html.stx-shell-viewport .adb-workspace-r78 .adb-console {
    display:flex;
    flex-direction:column;
    flex:1 1 0;
    min-height:0;
    height:100%;
    overflow:hidden;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-targets .adb-panel-heading {
    flex:0 0 auto;
    padding:13px 12px 8px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-targets .adb-panel-heading h2 {font-size:15px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-targets .adb-online-filter {
    flex:0 0 auto;
    margin:0 8px 8px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-targets .adb-search-shell {
    flex:0 0 34px;
    height:34px;
    margin:0 9px 8px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-targets .adb-device-list {
    flex:1 1 0;
    min-height:0;
    height:auto;
    max-height:none;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    display:block;
    padding:0 7px 8px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-targets .adb-target-row {
    min-height:46px;
    padding:7px 5px;
    margin-bottom:2px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-target-footnote {
    flex:0 0 auto;
    padding:9px 11px;
    font-size:9.5px;
    line-height:1.35;
  }

  html.stx-shell-viewport .adb-workspace-r78 .adb-console-feature {
    flex:0 0 auto;
    padding:11px 16px 9px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-console-feature h2 {
    font-size:18px;
    line-height:1.16;
    margin-top:3px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-console-top {
    height:43px;
    flex:0 0 43px;
    padding:0 13px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-terminal-body {
    flex:1 1 0;
    height:auto;
    max-height:none;
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:16px 18px 20px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-terminal-welcome {margin-bottom:14px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-terminal-welcome>p {margin:5px 0 9px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-ascii {font-size:clamp(23px,2.25vw,32px);}
  html.stx-shell-viewport .adb-workspace-r78 .adb-command-area {
    flex:0 0 auto;
    padding:11px 14px 12px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-command-caption {margin-bottom:7px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-command-line {min-height:42px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-command-line input {height:41px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-command-actions {margin-top:8px;gap:8px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-command-advisory {font-size:9.5px;line-height:1.35;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-run-btn {min-height:36px;padding:8px 11px;font-size:11px;}

  html.stx-shell-viewport .adb-workspace-r78 .adb-context-card {
    flex:0 0 auto;
    padding:12px 12px 10px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-top {margin-bottom:7px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-device {gap:8px;padding-bottom:9px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-icon {flex-basis:31px;height:32px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-identity h2 {font-size:12px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-identity code {font-size:9.5px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-specs {margin-top:10px;gap:8px 6px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-specs small {font-size:9.5px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-specs strong {font-size:11px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-note {
    min-height:0;
    margin:8px 0 0;
    padding:7px 0 0;
    line-height:1.3;
    font-size:9.5px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-toolbox {
    flex:1 1 0;
    min-height:0;
    height:100%;
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-toolbox-heading {
    flex:0 0 auto;
    padding:9px 11px 5px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-toolbox-tabs {
    flex:0 0 auto;
    padding:0 7px 8px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-toolbox-tabs button {
    padding:7px 4px;
    font-size:10px;
    gap:4px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-toolbox-body {
    display:flex;
    flex-direction:column;
    flex:1 1 0;
    min-height:0;
    overflow:hidden;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-toolbox-body :is(.adb-recipes,.adb-history-panel) {
    flex:1 1 0;
    display:flex;
    flex-direction:column;
    min-height:0;
    max-height:none;
    height:100%;
    overflow:hidden;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-toolbox-body .adb-recipes .adb-panel-heading {
    flex:0 0 auto;
    padding:9px 10px 7px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-recipe-groups {
    flex:0 0 auto;
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    margin:0;
    padding:0 9px 8px;
    gap:4px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-recipe-tab {
    flex:0 0 auto;
    min-height:25px;
    padding:4px 7px;
    font-size:9.5px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-recipe-list {
    flex:1 1 0;
    min-height:0;
    height:auto;
    max-height:none;
    display:flex;
    flex-direction:column;
    flex-wrap:nowrap;
    gap:6px;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    padding:0 9px 10px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-recipe-card {
    flex:0 0 auto;
    min-height:49px;
    padding:7px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-history-panel {padding:10px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-history {
    flex:1 1 0;
    min-height:0;
    height:auto;
    max-height:none;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-inspector .adb-guide {
    flex:0 0 auto;
    min-height:36px;
    padding:9px 11px;
    border-radius:10px;
  }
}
/* At 1001–1210px, keep all three columns side by side instead of moving the
   device inspector below the terminal. Text input has the full console width. */
@media (min-width:1001px) and (max-width:1210px) {
  html.stx-shell-viewport .page-content {padding:12px 12px 14px;}
  html.stx-shell-viewport .adb-workspace.adb-workspace-r78 {
    grid-template-columns:minmax(182px,24%) minmax(0,1fr) minmax(185px,25%);
    gap:9px;
  }
  html.stx-shell-viewport .adb-workspace-r78 .adb-prompt :is(span:not(.adb-dollar),strong) {display:none;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-console-feature {padding:10px 12px 8px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-terminal-body {padding:13px 13px 16px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-command-area {padding:10px 11px 11px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-card {padding:10px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-target-footnote {padding:7px 9px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-note {margin-top:6px;}
}
/* On short landscape displays, prioritize the command input and information
   panes; scrollable logs remain accessible without document scrolling. */
@media (min-width:1001px) and (max-height:670px) {
  html.stx-shell-viewport .app-main > .topbar {height:50px;min-height:50px;flex-basis:50px;}
  html.stx-shell-viewport .page-content {padding-block:9px 10px;}
  html.stx-shell-viewport .adb-page-head {margin-bottom:7px;}
  html.stx-shell-viewport .adb-page-head h1 {font-size:23px;}
  html.stx-shell-viewport .adb-page-head p {display:none;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-console-feature {padding-block:8px 7px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-console-feature h2 {font-size:16px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-console-top {height:36px;flex-basis:36px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-command-area {padding-block:9px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-command-caption {margin-bottom:5px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-command-actions {margin-top:6px;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-target-footnote {display:none;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-context-note {display:none;}
  html.stx-shell-viewport .adb-workspace-r78 .adb-inspector {gap:7px;}
}
/* On tablets and phones, retain vertical page scrolling: a three-column
   fixed layout would make the Shell and command input unusably narrow. */

/* Controls for independently collapsible inspector panels. */
.adb-page-head > div:first-child {min-width:0;}
.adb-page-head .adb-page-actions {flex:0 0 auto;min-width:0;}
.adb-page-head .adb-panel-switches {display:flex;align-items:center;gap:6px;}
.adb-page-head .adb-panel-toggle {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 9px;border:1px solid var(--stroke-strong);
  border-radius:9px;background:var(--accent-dim);color:var(--text);
  font-family:inherit;font-weight:650;font-size:10.5px;line-height:1.3;white-space:nowrap;cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.adb-page-head .adb-panel-toggle .adb-toggle-label-short {display:none;}
.adb-page-head .adb-panel-toggle svg {flex:none;color:var(--accent);}
.adb-page-head .adb-panel-toggle:hover {border-color:var(--accent);background:var(--surface-hover);}
.adb-page-head .adb-panel-toggle.is-hidden {background:var(--surface);color:var(--muted);border-color:var(--stroke);}
.adb-page-head .adb-panel-toggle.is-hidden svg {color:var(--muted);}
.adb-page-head .adb-panel-toggle:focus-visible,
.adb-workspace-r78 .adb-card-hide:focus-visible {outline:2px solid var(--accent);outline-offset:2px;}
.adb-workspace-r78 .adb-context-controls,
.adb-workspace-r78 .adb-toolbox-heading-actions {display:flex;align-items:center;gap:9px;}
.adb-workspace-r78 .adb-toolbox-heading-actions > span {display:grid;place-items:center;color:var(--accent);}
.adb-workspace-r78 .adb-card-hide {
  display:grid;place-items:center;flex:none;width:26px;height:26px;padding:0;
  border:1px solid transparent;border-radius:7px;color:var(--muted);
  background:transparent;cursor:pointer;
}
.adb-workspace-r78 .adb-card-hide:hover {border-color:var(--stroke-strong);color:var(--accent);background:var(--accent-dim);}
.adb-workspace-r78 .adb-inspector[hidden],
.adb-workspace-r78 .adb-context-card[hidden],
.adb-workspace-r78 .adb-toolbox[hidden],
.adb-workspace-r78 .adb-guide[hidden] {display:none!important;}

/* Desktop: same title and subtitle measurements as the other pages. */
@media(min-width:1001px) {
  html.stx-shell-viewport .adb-page-head h1 {
    font-size:clamp(32px,4vw,48px);
    font-weight:400;
    letter-spacing:-.045em;
    line-height:1.12;
  }
  html.stx-shell-viewport .adb-page-head p {
    display:block;
    font-size:12px;
    line-height:1.7;
    margin:9px 0 0;
  }
  html.stx-shell-viewport .adb-workspace.adb-workspace-r78[data-adb-panels="1"] {
    grid-template-columns:minmax(188px,21%) minmax(0,1fr) minmax(192px,19%);
  }
  html.stx-shell-viewport .adb-workspace.adb-workspace-r78[data-adb-panels="0"] {
    grid-template-columns:minmax(188px,21%) minmax(0,1fr);
  }
}
@media(min-width:1001px) and (max-width:1210px) {
  html.stx-shell-viewport .adb-workspace.adb-workspace-r78[data-adb-panels="1"] {
    grid-template-columns:minmax(182px,24%) minmax(0,1fr) minmax(185px,21%);
  }
  html.stx-shell-viewport .adb-workspace.adb-workspace-r78[data-adb-panels="0"] {
    grid-template-columns:minmax(182px,24%) minmax(0,1fr);
  }
}
@media(max-width:1270px) {
  .adb-page-head .adb-panel-toggle {padding:7px 8px;}
  .adb-page-head .adb-panel-toggle .adb-toggle-label {display:none;}
  .adb-page-head .adb-panel-toggle .adb-toggle-label-short {display:inline;}
}
@media(max-width:600px) {
  .adb-page-head {flex-wrap:wrap;gap:9px;}
  .adb-page-head > div:first-child {width:100%;}
  .adb-page-head .adb-page-actions {justify-content:flex-start;}
}

/* Terminal fullscreen (native API with an in-page fallback). */
.adb-page-head .adb-page-fullscreen {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  flex:0 0 auto;border-radius:9px;
  font-size:11px;line-height:1.2;white-space:nowrap;
}
.adb-page-head .adb-page-fullscreen .adb-fullscreen-icon {display:inline-flex;align-items:center;}
.adb-page-head .adb-page-fullscreen:focus-visible,
.adb-workspace-r78 .adb-console-fullscreen:focus-visible {
  outline:2px solid var(--accent);outline-offset:2px;
}
.adb-workspace-r78 .adb-console-tool-separator {
  flex:0 0 1px;height:18px;margin:0 3px;background:rgba(169,216,205,.16);
}
.adb-workspace-r78 .adb-console-fullscreen {width:33px;height:31px;flex:0 0 auto;color:#a3d5c7;}
.adb-workspace-r78 .adb-console-fullscreen:hover {background:rgba(83,164,139,.14);color:#e4f9ef;}
.adb-workspace-r78 .adb-console-fullscreen .adb-fullscreen-icon {display:grid;place-items:center;}
@media(max-width:600px) {
  .adb-page-head .adb-page-fullscreen {padding:7px 9px;}
  .adb-page-head .adb-page-fullscreen .adb-fullscreen-label {font-size:10px;}
  .adb-workspace-r78 .adb-console-tool-separator {margin:0 1px;}
  .adb-workspace-r78 .adb-console-fullscreen {width:29px;}
}
/* CSS fallback mimics the browser Fullscreen API on browsers that do not
   expose it (notably some mobile browsers). During native fullscreen, using
   the document element instead of the console also preserves
   global toast notifications and overlays. */
html.stx-adb-fullscreen,
html.stx-adb-fullscreen body {overflow:hidden!important;height:100%!important;}
html.stx-adb-fullscreen .adb-workspace-r78 .adb-console {
  position:fixed!important;inset:0!important;
  z-index:1150;isolation:isolate;
  box-sizing:border-box;
  display:flex!important;flex-direction:column!important;
  width:100vw!important;width:100dvw!important;
  height:100vh!important;height:100dvh!important;
  min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;
  background:#0e161b;border:0!important;border-radius:0!important;box-shadow:none!important;
  overflow:hidden!important;
}
html.stx-adb-fullscreen .adb-workspace-r78 .adb-console-feature {
  flex:0 0 auto!important;padding:12px 21px 10px;
}
html.stx-adb-fullscreen .adb-workspace-r78 .adb-console-feature h2 {font-size:clamp(17px,2vw,23px);}
html.stx-adb-fullscreen .adb-workspace-r78 .adb-console-top {
  flex:0 0 48px!important;height:48px!important;padding:0 19px;
}
html.stx-adb-fullscreen .adb-workspace-r78 .adb-terminal-body {
  flex:1 1 0!important;min-height:0!important;
  height:auto!important;max-height:none!important;
  overflow-y:auto!important;overscroll-behavior:contain;
  padding:clamp(16px,2vw,30px);
}
html.stx-adb-fullscreen .adb-workspace-r78 .adb-command-area {
  flex:0 0 auto!important;min-height:0!important;
  padding:12px 19px max(14px, env(safe-area-inset-bottom));
}
html.stx-adb-fullscreen .adb-workspace-r78 .adb-console-tools {
  display:flex;align-items:center;min-width:0;
}
html.stx-adb-fullscreen .adb-workspace-r78 .adb-console-fullscreen {
  color:#d6eadf;background:rgba(97,164,142,.16);
}
@media(max-width:600px) {
  html.stx-adb-fullscreen .adb-workspace-r78 .adb-console-feature {padding:9px 12px 8px;}
  html.stx-adb-fullscreen .adb-workspace-r78 .adb-console-top {padding-inline:9px;}
  html.stx-adb-fullscreen .adb-workspace-r78 .adb-terminal-body {padding:13px;}
  html.stx-adb-fullscreen .adb-workspace-r78 .adb-command-area {
    padding:11px 12px max(12px, env(safe-area-inset-bottom));
  }
}

/* In fullscreen on narrow phones the device serial is still shown in the
   console toolbar when there is room; hide the repeated serial prefix in
   the input so the command itself can use almost the full line. */
@media(max-width:600px) {
  html.stx-adb-fullscreen .adb-workspace-r78 .adb-prompt :is(strong, span:not(.adb-dollar)) {display:none;}
}

/* Keep Fullscreen above and visually separate from panel controls. */
.adb-page-head .adb-page-actions {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:6px;
}
.adb-page-head .adb-display-controls,
.adb-page-head .adb-panel-switches {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  min-width:0;
}
.adb-page-head .adb-display-controls {width:100%;}
.adb-page-head .adb-panel-switches {
  width:100%;
  padding-top:7px;
  border-top:1px solid var(--stroke);
}
.adb-page-head .adb-actions-caption {
  display:inline-block;
  flex:0 0 auto;
  color:var(--faint);
  font-size:9px;
  font-weight:750;
  letter-spacing:.1em;
  line-height:1;
  margin-right:3px;
  white-space:nowrap;
}
.adb-page-head .adb-page-fullscreen {
  min-height:32px;
  padding:7px 13px;
  border:1px solid var(--accent);
  background:var(--accent-dim);
  color:var(--accent);
  font-weight:760;
  box-shadow:0 0 0 1px rgba(42,138,114,.05);
}
.adb-page-head .adb-page-fullscreen:hover {
  border-color:var(--accent);
  color:var(--text);
  background:var(--surface-hover);
}
.adb-page-head .adb-panel-toggle {min-height:29px;padding-block:6px;}
/* Only one prominent entry action in the normal layout. The compact
   console control is shown in fullscreen to provide an obvious exit. */
html:not(.stx-adb-fullscreen) .adb-workspace-r78 .adb-console-fullscreen,
html:not(.stx-adb-fullscreen) .adb-workspace-r78 .adb-console-tool-separator {
  display:none!important;
}
@media (max-width:600px) {
  .adb-page-head .adb-page-actions {width:100%;align-items:stretch;gap:7px;}
  .adb-page-head .adb-display-controls,
  .adb-page-head .adb-panel-switches {justify-content:flex-start;}
  .adb-page-head .adb-panel-switches {padding-top:7px;}
  .adb-page-head .adb-page-fullscreen {min-height:34px;}
}
@media (max-width:370px) {
  .adb-page-head .adb-actions-caption {font-size:8px;margin-right:0;}
  .adb-page-head .adb-panel-toggle {gap:4px;padding-inline:7px;}
}
