/* Alphina builder refinements; loaded after builder.html's inline styles. */
body {
  --builder-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --builder-terminal-bg: #050c13;
  --builder-terminal-head: #08131b;
  --builder-terminal-line: rgba(121, 222, 200, .18);
  --builder-terminal-text: #c3d5da;
  --builder-terminal-dim: #78909a;
  --builder-phosphor: #79dec8;
}

/* Icon picker */
body #sec-identity .icon-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 0 12px;
}
body #sec-identity .icon-row > .icon-prev {
  grid-column: 1;
  grid-row: 1;
}
body #sec-identity .icon-row > .icon-actions {
  grid-column: 2;
  grid-row: 1;
}
body #sec-identity .icon-row > :is(.icon-name, .icon-help, .icon-error, .icon-file-meta) {
  grid-column: 2;
}
body #sec-identity .icon-prev {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 1px solid rgba(185, 209, 250, .2);
  border-radius: 16px;
  background-color: #111a29;
  background-image: conic-gradient(rgba(255, 255, 255, .055) 25%, transparent 0 50%, rgba(255, 255, 255, .055) 0 75%, transparent 0);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
}
body #sec-identity .icon-prev img {
  width: 100%;
  height: 100%;
  padding: 5px;
  border-radius: 11px;
  object-fit: contain;
  object-position: center;
}
body #sec-identity .icon-prev .ph {
  color: var(--text-dim);
  font: 700 10px/1 var(--builder-mono);
  letter-spacing: .08em;
  opacity: .65;
}
body #sec-identity .icon-actions {
  min-width: 0;
  flex-direction: row;
  align-items: center;
  align-self: center;
  flex-wrap: wrap;
  gap: 6px;
}
body #sec-identity .icon-actions .btn.sm {
  flex: 1 1 76px;
  min-width: 0;
  max-width: 120px;
  height: 30px;
  justify-content: center;
  padding: 0 10px;
  white-space: nowrap;
}
body #sec-identity .icon-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
}
body #sec-identity .icon-actions .icon-name {
  flex: 1 1 100%;
}
body #sec-identity :is(.icon-help, .icon-error, .icon-file-meta) {
  display: block;
  max-width: 100%;
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body #sec-identity .icon-help {
  color: var(--text-mute);
}
body #sec-identity .icon-error {
  padding-left: 8px;
  border-left: 2px solid var(--danger);
  color: #ff9aa3;
}
body #sec-identity .icon-file-meta {
  color: var(--text-dim);
  font-family: var(--builder-mono);
  font-variant-numeric: tabular-nums;
}
body #sec-identity :is(.icon-help, .icon-error, .icon-file-meta):empty,
body #sec-identity :is(.icon-help, .icon-error, .icon-file-meta)[hidden] {
  display: none;
}
body #sec-identity .icon-grid {
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 8px;
  max-height: 216px;
  margin-top: 0;
  padding: 3px 5px 3px 3px;
  scrollbar-gutter: stable;
}
body #sec-identity .icon-cell {
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(185, 209, 250, .14);
  border-radius: 10px;
  background: #0d1726;
  transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}
body #sec-identity .icon-cell img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
}
body #sec-identity .icon-cell:hover {
  border-color: rgba(134, 201, 243, .52);
  background: #111e30;
}
body #sec-identity .icon-cell.on {
  border-color: var(--accent);
  background: #122235;
  box-shadow: 0 0 0 1px rgba(134, 201, 243, .24);
}
body #sec-identity .icon-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Build steps: one restrained terminal surface, with data in monospace. */
body #page-build .build-terminal {
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--builder-terminal-line);
  border-radius: 12px;
  background: var(--builder-terminal-bg);
  color: var(--builder-terminal-text);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .025);
}
body #page-build .terminal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--builder-terminal-line);
  background: var(--builder-terminal-head);
}
body #page-build .terminal-head > div {
  min-width: 0;
}
body #page-build .terminal-kicker {
  overflow: hidden;
  color: var(--builder-terminal-dim);
  font: 9px/1.3 var(--builder-mono);
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body #page-build .build-terminal .terminal-title {
  min-width: 0;
  margin: 3px 0 0;
  overflow: hidden;
  color: #b7cbd1;
  font: 700 12px/1.3 var(--font);
  letter-spacing: .1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
body #page-build .terminal-command {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 14px 16px 10px;
}
body #page-build .terminal-prompt {
  min-width: 0;
  overflow: hidden;
  color: #9fcbd0;
  font: 11px/1.45 var(--builder-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
body #page-build .terminal-command #pct {
  flex: 0 0 auto;
}
body #page-build .build-terminal .terminal-status,
body #page-build .build-terminal #logStatus {
  align-self: center;
  justify-self: end;
  min-width: 0;
  padding: 3px 7px;
  border: 1px solid rgba(120, 144, 154, .26);
  border-radius: 4px;
  background: rgba(120, 144, 154, .08);
  color: #9bb0b8;
  font: 700 10px/1.2 var(--builder-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
body #page-build .build-terminal :is(.terminal-status.active, .terminal-status.running, .terminal-status[data-state="active"], .terminal-status[data-state="running"]) {
  border-color: rgba(134, 201, 243, .34);
  background: rgba(134, 201, 243, .08);
  color: var(--accent-2);
}
body #page-build .build-terminal :is(.terminal-status.done, .terminal-status.ok, .terminal-status[data-state="done"], .terminal-status[data-state="ok"]) {
  border-color: rgba(121, 222, 200, .32);
  background: rgba(121, 222, 200, .08);
  color: var(--builder-phosphor);
}
body #page-build .build-terminal :is(.terminal-status.failed, .terminal-status[data-state="failed"]) {
  border-color: rgba(255, 92, 106, .38);
  background: rgba(255, 92, 106, .08);
  color: #ff9aa3;
}
body #page-build .build-terminal :is(.terminal-status.pending, .terminal-status.queued, .terminal-status[data-state="pending"], .terminal-status[data-state="queued"]) {
  border-color: rgba(240, 180, 41, .28);
  background: rgba(240, 180, 41, .07);
  color: #e5bc5f;
}
body #page-build .terminal-progress {
  min-width: 0;
  padding: 0 16px 12px;
  border-bottom: 1px solid rgba(121, 222, 200, .12);
}
body #page-build .build-terminal #pct {
  color: var(--builder-phosphor);
  font: 750 20px/1 var(--builder-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  text-shadow: 0 0 10px rgba(121, 222, 200, .18);
}
body #page-build .build-terminal .progress {
  height: 6px;
  border: 1px solid rgba(121, 222, 200, .16);
  border-radius: 3px;
  background: #0d1c24;
}
body #page-build .build-terminal .progress i,
body #page-build .build-terminal #progressBar {
  border-radius: 2px;
  background: var(--builder-phosphor);
  box-shadow: 0 0 8px rgba(121, 222, 200, .2);
  transition: width .35s ease;
}
body #page-build .build-terminal > :is(.terminal-message, #msg) {
  margin: 10px 16px 0;
}
body #page-build .terminal-progress #msg {
  margin: 10px 0 0;
}
body #page-build .build-terminal :is(.terminal-message, #msg) {
  min-height: 1.5em;
  color: #a9c0c7;
  font: 11px/1.5 var(--builder-mono);
  overflow-wrap: anywhere;
  white-space: normal;
}
body #page-build .build-terminal :is(.terminal-steps, .steps) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0 !important;
  padding: 10px 12px 12px;
}
body #page-build .build-terminal :is(.terminal-steps, .steps):empty {
  display: none;
}
body #page-build .build-terminal .terminal-step {
  --step-color: var(--builder-terminal-dim);
  display: grid;
  grid-template-columns: 2ch 4ch minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-left: 2px solid rgba(120, 144, 154, .14);
  border-radius: 2px;
  background: transparent;
  font-family: var(--builder-mono);
  transition: background-color .14s ease, border-color .14s ease;
}
body #page-build .build-terminal .terminal-time {
  color: var(--builder-terminal-dim);
  font: 10px/1.55 var(--builder-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
body #page-build .build-terminal .terminal-prefix {
  color: var(--step-color);
  font: 700 11px/1.45 var(--builder-mono);
  text-align: left;
  white-space: nowrap;
}
body #page-build .build-terminal .terminal-step .lab {
  min-width: 0;
  color: #9fb4bb;
  font: 500 11px/1.45 var(--builder-mono);
  overflow-wrap: anywhere;
}
body #page-build .build-terminal .terminal-step-state {
  color: var(--step-color);
  font: 9px/1.45 var(--builder-mono);
  letter-spacing: .05em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .82;
}
body #page-build .build-terminal :is(.terminal-step.pending, .terminal-step[data-state="pending"]) {
  --step-color: #687e87;
}
body #page-build .build-terminal :is(.terminal-step.active, .terminal-step[data-state="active"]) {
  --step-color: var(--accent-2);
  border-left-color: var(--accent);
  background: rgba(134, 201, 243, .065);
}
body #page-build .build-terminal :is(.terminal-step.done, .terminal-step[data-state="done"]) {
  --step-color: var(--builder-phosphor);
  border-left-color: rgba(121, 222, 200, .48);
}
body #page-build .build-terminal :is(.terminal-step.failed, .terminal-step[data-state="failed"]) {
  --step-color: #ff8a94;
  border-left-color: var(--danger);
  background: rgba(255, 92, 106, .065);
}
body #page-build .build-terminal .terminal-step.active .lab {
  color: #c6e7ed;
}
body #page-build .build-terminal .terminal-step.done .lab {
  color: #a7c7bf;
}
body #page-build .build-terminal .terminal-step.failed .lab {
  color: #ffb0b7;
}
body #page-build .build-terminal .terminal-step.active .terminal-prefix {
  animation: builder-terminal-pulse 1.5s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(134, 201, 243, .3);
}
body #page-build .build-terminal .terminal-empty {
  margin: 2px 4px;
  padding: 11px 10px;
  border: 1px dashed rgba(120, 144, 154, .22);
  border-radius: 4px;
  color: var(--builder-terminal-dim);
  font: 10px/1.5 var(--builder-mono);
}
body #page-build .build-terminal .terminal-empty span {
  margin-right: 8px;
  color: var(--builder-phosphor);
}

/* Compatibility with the original renderer when .terminal-step is absent. */
body #page-build .build-terminal .step:not(.terminal-step) {
  --step-color: var(--builder-terminal-dim);
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-left: 2px solid rgba(120, 144, 154, .14);
  border-radius: 2px;
  background: transparent;
  transition: background-color .14s ease, border-color .14s ease;
}
body #page-build .build-terminal .step:not(.terminal-step) .dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 1px;
  background: var(--step-color);
  box-shadow: none;
}
body #page-build .build-terminal .step:not(.terminal-step) .lab {
  min-width: 0;
  color: #8fa5ad;
  font: 500 11px/1.45 var(--builder-mono);
  overflow-wrap: anywhere;
}
body #page-build .build-terminal .step:not(.terminal-step).active {
  --step-color: var(--accent-2);
  border-left-color: var(--accent);
  background: rgba(134, 201, 243, .065);
}
body #page-build .build-terminal .step:not(.terminal-step).active .dot {
  background: var(--step-color);
  animation: builder-terminal-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 7px rgba(134, 201, 243, .22);
}
body #page-build .build-terminal .step:not(.terminal-step).active .lab {
  color: #c6e7ed;
}
body #page-build .build-terminal .step:not(.terminal-step).done {
  --step-color: var(--builder-phosphor);
  border-left-color: rgba(121, 222, 200, .48);
  background: transparent;
}
body #page-build .build-terminal .step:not(.terminal-step).done .dot {
  background: var(--step-color);
}
body #page-build .build-terminal .step:not(.terminal-step).done .lab {
  color: #a7c7bf;
}
body #page-build .build-terminal .step:not(.terminal-step).failed {
  --step-color: #ff8a94;
  border-left-color: var(--danger);
  background: rgba(255, 92, 106, .065);
}
body #page-build .build-terminal .step:not(.terminal-step).failed .dot {
  background: var(--step-color);
}
body #page-build .build-terminal .step:not(.terminal-step).failed .lab {
  color: #ffb0b7;
}
body #page-build .build-terminal .log-body {
  min-height: 96px;
  max-height: 240px;
  margin: 0;
  padding: 12px 16px 14px;
  border: 0;
  border-top: 1px solid rgba(121, 222, 200, .12);
  border-radius: 0;
  background: #040a10;
  color: #9fb8bf;
  font: 10px/1.6 var(--builder-mono);
  overflow-wrap: anywhere;
}
@keyframes builder-terminal-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

/* Completed build identity and actions */
body #page-builds {
  --builds-grid: minmax(180px, 1.4fr) minmax(56px, .35fr) minmax(120px, 1fr) minmax(96px, .55fr) minmax(70px, .4fr) max-content;
}
body #page-builds .list-head,
body #page-builds .row-card {
  grid-template-columns: var(--builds-grid);
  column-gap: 12px;
}
body #page-builds .list-head {
  padding: 0 14px 8px;
  line-height: 1.3;
}
body #page-builds .row-card {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}
body #page-builds .row-card:hover {
  background: var(--card);
}
body #page-builds .row-card > * {
  min-width: 0;
}
body #page-builds .build-identity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}
body #page-builds .build-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  overflow: hidden;
  border: 1px solid rgba(185, 209, 250, .16);
  border-radius: 12px;
  background: #0d1726;
}
body #page-builds img.build-icon {
  display: block;
  padding: 3px;
  object-fit: contain;
  object-position: center;
}
body #page-builds .build-icon img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 9px;
  object-fit: contain;
  object-position: center;
}
body #page-builds .build-icon-fallback {
  color: var(--text-mute);
  font: 700 9px/1 var(--builder-mono);
  letter-spacing: .08em;
}
body #page-builds .build-copy,
body #page-builds .build-meta,
body #page-builds .build-server {
  min-width: 0;
  overflow: hidden;
}
body #page-builds .build-copy .name {
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body #page-builds :is(.build-copy, .build-server) .sub {
  overflow: hidden;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body #page-builds .build-copy .sub {
  margin-top: 3px;
}
body #page-builds .build-server .sub {
  margin-top: 0;
}
body #page-builds .build-meta,
body #page-builds .build-mode,
body #page-builds .build-server {
  color: var(--text-dim);
  font-family: var(--builder-mono);
  font-size: 10px;
}
body #page-builds .build-date {
  display: block;
  margin: 0;
  color: var(--text-dim);
  font: 10px/1.4 var(--builder-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body #page-builds .build-date span,
body #page-builds .build-date small {
  display: block;
}
body #page-builds .build-date small {
  margin-top: 2px;
  color: var(--text-mute);
  font: inherit;
}
body #page-builds .row-card .badge {
  white-space: nowrap;
}
body #page-builds .row-card .row-actions {
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}
body #page-builds .row-actions .btn.sm {
  flex: 0 0 auto;
  min-width: 30px;
  justify-content: center;
  white-space: nowrap;
}
body #page-builds .row-actions [data-del] {
  width: 30px;
  padding: 0;
}
body #page-builds .row-actions .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Accessibility template picker and device frame; .accp internals stay untouched. */
body #sec-accpage .acc-page-layout {
  gap: 18px;
  align-items: stretch;
}
body #sec-accpage .acc-page-form {
  gap: 12px;
}
body #sec-accpage .acc-page-form .field {
  margin-bottom: 0;
}
body #sec-accpage .tpl-picker {
  gap: 8px;
  max-height: 272px;
  padding: 3px 5px 3px 3px;
  scrollbar-gutter: stable;
}
body #sec-accpage .tpl-chip {
  min-height: 64px;
  padding: 10px;
  border-color: rgba(185, 209, 250, .14);
  border-radius: 10px;
  background: rgba(8, 15, 29, .48);
  box-shadow: none;
  transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}
body #sec-accpage .tpl-chip:hover {
  border-color: rgba(134, 201, 243, .46);
  background: rgba(134, 201, 243, .065);
}
body #sec-accpage .tpl-chip.active {
  border-color: var(--accent);
  background: rgba(134, 201, 243, .1);
  box-shadow: 0 0 0 1px rgba(134, 201, 243, .16);
}
body #sec-accpage .tpl-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body #sec-accpage .tpl-chip .sw {
  gap: 2px;
  padding: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .025);
}
body #sec-accpage .tpl-chip .sw i {
  width: 7px;
  height: 28px;
  border-color: rgba(255, 255, 255, .14);
  border-radius: 2px;
}
body #sec-accpage .tpl-chip .tn {
  font-size: 11px;
  line-height: 1.3;
}
body #sec-accpage .tpl-chip .tg {
  color: var(--text-dim);
  line-height: 1.3;
}
body #sec-accpage .acc-page-layout .prev-stage {
  width: min(254px, 100%);
  align-self: center;
  margin: 0 auto;
  padding: 4px 6px 10px;
}
body #sec-accpage .acc-page-layout .prev-phone {
  padding: 7px;
  overflow: visible;
  border-color: rgba(185, 209, 250, .22);
  border-radius: 29px;
  background: #080f1b;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}
body #sec-accpage .acc-page-layout .prev-phone::before {
  top: 11px;
  width: 54px;
  height: 11px;
  border: 1px solid rgba(185, 209, 250, .08);
  background: #03070d;
}
body #sec-accpage .prev-phone .side {
  position: absolute;
  top: 88px;
  right: -3px;
  width: 3px;
  height: 36px;
  border-radius: 0 2px 2px 0;
  background: #314057;
}
body #sec-accpage .prev-phone .side.vol {
  top: 76px;
  right: auto;
  left: -3px;
  height: 48px;
  border-radius: 2px 0 0 2px;
}
body #sec-accpage .acc-page-layout .prev-scr {
  border: 1px solid rgba(185, 209, 250, .08);
  border-radius: 21px;
  background: #050a12;
  isolation: isolate;
}

/* Tooltips escape open sections and remain available to keyboard users. */
body .acc {
  position: relative;
}
body .acc.open {
  z-index: 3;
  overflow: visible;
}
body .acc:not(.open) {
  overflow: hidden;
}
body .acc.open > .acc-head {
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
body .acc.open:hover,
body .acc.open:focus-within,
body .acc:has(.qmark:hover),
body .acc:has(.qmark:focus),
body .acc:has(.qmark:focus-within) {
  z-index: 120;
  overflow: visible;
}
body .perm-group.open,
body .sub-acc.open {
  position: relative;
  overflow: visible;
}
body .perm-group.open > .perm-head,
body .sub-acc.open > .sub-head {
  border-radius: 11px 11px 0 0;
}
body .qmark:hover {
  border-color: rgba(134, 201, 243, .65);
  background: rgba(134, 201, 243, .2);
}
body .qmark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: rgba(134, 201, 243, .2);
  color: var(--text);
}
body .qmark:hover,
body .qmark:focus,
body .qmark:focus-within {
  z-index: 130;
}
body .qmark .tip {
  top: auto;
  bottom: calc(100% + 8px);
  left: 50%;
  width: min(280px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(320px, calc(100vh - 24px));
  padding: 9px 11px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(134, 201, 243, .32);
  border-radius: 8px;
  background: #0b1626;
  color: var(--text-dim);
  font: 500 11px/1.55 var(--font);
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  transform: translateX(-50%);
  z-index: 1000;
}
body .qmark:hover .tip,
body .qmark:focus .tip,
body .qmark:focus-visible .tip,
body .qmark:focus-within .tip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  body #page-builds .list-head {
    display: none;
  }
  body #page-builds .row-card {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
  }
  body #page-builds .row-card > .build-identity {
    flex: 1 1 220px;
  }
  body #page-builds .row-card > .build-mode,
  body #page-builds .row-card > .build-date {
    flex: 0 1 auto;
  }
  body #page-builds .row-card > .build-server {
    flex: 1 1 160px;
  }
  body #page-builds .row-card > .row-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  body #page-build .terminal-head {
    gap: 10px;
    padding: 12px;
  }
  body #page-build .terminal-command {
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 9px;
  }
  body #page-build .terminal-prompt {
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }
  body #page-build .terminal-progress {
    padding: 0 12px 12px;
  }
  body #page-build .build-terminal > :is(.terminal-message, #msg) {
    margin-right: 12px;
    margin-left: 12px;
  }
  body #page-build .build-terminal :is(.terminal-steps, .steps) {
    padding: 8px 8px 10px;
  }
  body #page-build .build-terminal .terminal-step {
    grid-template-columns: 2ch 4ch minmax(0, 1fr);
    gap: 5px 7px;
  }
  body #page-build .build-terminal .terminal-step-state {
    grid-column: 3;
    text-align: left;
  }
  body #page-build .build-terminal .log-body {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 480px) {
  body #page-builds .row-card > .build-server {
    flex-basis: 100%;
  }
  body #page-builds .build-identity {
    gap: 9px;
  }
  body #sec-accpage .acc-page-layout .prev-stage {
    width: min(248px, 100%);
  }
}

@media (max-width: 380px) {
  body #sec-identity .icon-actions {
    flex-direction: column;
    align-items: stretch;
  }
  body #sec-identity .icon-actions .btn.sm {
    flex: 0 0 30px;
    max-width: none;
    width: 100%;
  }
  body #sec-identity .icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  body #page-build .build-terminal *,
  body #sec-identity .icon-cell,
  body #sec-accpage .tpl-chip,
  body .qmark .tip,
  body .acc-caret {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
