@import url("/terminal-screen.css?v=5");

.terminal-release {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: var(--ki-text, #12243b);
}

.terminal-designer-form { display: grid; gap: 16px; }
.terminal-designer-columns { display: grid; grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr); gap: 18px; align-items: start; }
.terminal-designer-editor { display: grid; gap: 9px; min-width: 0; }
.terminal-designer-editor details { overflow: hidden; border: 1px solid #d6e1eb; border-radius: 13px; background: #fff; }
.terminal-designer-editor summary { padding: 13px 15px; color: #173b59; font-weight: 850; cursor: pointer; }
.terminal-designer-editor details[open] summary { border-bottom: 1px solid #e2eaf1; background: #f6f9fc; }
.terminal-designer-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.terminal-span-2 { grid-column: 1 / -1; }
.terminal-color-field input[type="color"] { width: 100%; min-height: 44px; padding: 4px; }
.terminal-upload-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid #d8e3eb; border-radius: 11px; }
.terminal-upload-current img { width: 120px; height: 55px; object-fit: contain; }
.terminal-image-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.terminal-image-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid #d8e3eb; border-radius: 10px; }
.terminal-image-list img { width: 64px; height: 48px; border-radius: 7px; object-fit: cover; }
.terminal-admin-users { display: grid; gap: 7px; padding: 0 14px 14px; }
.terminal-admin-user { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #d8e3eb; border-radius: 10px; }
.terminal-admin-user span { display: grid; gap: 2px; }
.terminal-admin-user small { color: #65798b; }
.terminal-designer-editor details > .terminal-release-help { margin: 0; padding: 0 14px 12px; }
.terminal-designer-preview { position: sticky; top: 12px; display: grid; gap: 10px; min-width: 0; }
.terminal-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.terminal-preview-head > div { display: grid; gap: 2px; }
.terminal-preview-head span { color: #65798b; font-size: 12px; }
.terminal-preview-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.terminal-release .terminal-preview-tabs .button { min-height: 34px; padding: 5px 9px; border: 1px solid var(--vbz-menu-border, #c7d5e4); border-radius: 10px; font-size: 12px; }
.terminal-release .terminal-preview-tabs .button.is-active { border-color: var(--vbz-menu-active-dark, #1d438e); background: linear-gradient(180deg, #356ac7, var(--vbz-menu-active, #2555ab)); color: #fff; box-shadow: 0 2px 5px rgba(40, 86, 173, .2); }
.terminal-display-preview { --terminal-preview-scale: .55; position: relative; width: 100%; min-width: 0; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 0; border-radius: 18px; background: #edf3f7; padding: 0; }
.terminal-display-preview .terminal-screen { position: absolute; inset: 0 auto auto 0; width: 1280px; height: 800px; min-height: 0; transform: scale(var(--terminal-preview-scale)); transform-origin: top left; border-radius: 22px; }
.terminal-release-help.is-warning { color: #8c5f08; }
.terminal-release-help.is-success { color: #08764d; }

@media (max-width: 1080px) {
  .terminal-designer-columns { grid-template-columns: 1fr; }
  .terminal-designer-preview { position: static; }
}

@media (max-width: 620px) {
  .terminal-designer-fields { grid-template-columns: 1fr; }
  .terminal-span-2 { grid-column: auto; }
}

.terminal-release *,
.terminal-release *::before,
.terminal-release *::after { box-sizing: border-box; }

.terminal-release-hero,
.terminal-release-card,
.terminal-release-result {
  min-width: 0;
  border: 1px solid var(--ki-border, #d7e1ee);
  border-radius: 14px;
  background: var(--ki-surface, #fff);
  box-shadow: 0 8px 24px rgba(27, 54, 93, 0.06);
}

.terminal-release-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f9ff, #fff 65%);
}

.terminal-release h2,
.terminal-release h3,
.terminal-release p { margin: 0; }
.terminal-release h2 { margin-top: 3px; font-size: clamp(21px, 2vw, 27px); line-height: 1.2; }
.terminal-release h3 { margin-top: 2px; font-size: 16px; }
.terminal-release-hero p { max-width: 760px; margin-top: 8px; color: var(--ki-muted, #5d718c); line-height: 1.5; }

.terminal-release-kicker {
  display: block;
  color: var(--ki-primary, #205bb5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-release-mode,
.terminal-release-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf3fb;
  color: #315474;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.terminal-release-mode.is-development { background: #e9f3ff; color: #16559a; }
.terminal-release-mode.is-published,
.terminal-release-badge.is-success { background: #e6f7ee; color: #126840; }
.terminal-release-badge.is-danger { background: #fff0f1; color: #af2434; }
.terminal-release-badge.is-warning { background: #fff3cf; color: #765510; }

.terminal-release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.terminal-release-card,
.terminal-release-result { padding: 18px; }

.terminal-release-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.terminal-setup-links {
  min-width: 0;
  margin: 12px 0 4px;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid #e2e9f2;
}

.terminal-release-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.terminal-release-facts > div,
.terminal-release-device {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e9f2;
  border-radius: 10px;
  background: #f8fafc;
}

.terminal-release-facts dt,
.terminal-release-field > span {
  display: block;
  margin-bottom: 4px;
  color: #63758d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.terminal-release-facts dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.terminal-release-facts small { color: #667b94; font-weight: 500; }
.terminal-release-field { display: block; }
.terminal-release-field select,
.terminal-release-field input,
.terminal-release-pin input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #bdcbdd;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.terminal-release-device {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  color: #536981;
  font-size: 12px;
}

.terminal-release-device strong { color: #152a42; }
.terminal-release-device.has-error { border-color: #e7aab1; background: #fff6f7; }
.terminal-release-device.has-error small { color: #a92938; font-weight: 700; }

.terminal-release-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #d5e0ed;
  border-radius: 11px;
  background: #f8fafc;
  cursor: pointer;
}

.terminal-release-consent input { margin-top: 3px; }
.terminal-release-consent span { min-width: 0; }
.terminal-release-consent strong,
.terminal-release-consent small { display: block; }
.terminal-release-consent small,
.terminal-release-help,
.terminal-release-expiry { margin-top: 5px; color: #647991; font-size: 12px; line-height: 1.45; }
.terminal-release-help { margin: 10px 0 14px; }

.terminal-release-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid #bed5ef;
  border-radius: 11px;
  background: #f1f7ff;
  color: #27577f;
}

.terminal-release-state strong,
.terminal-release-state span { grid-column: 1; }
.terminal-release-state .button-like { grid-column: 2; grid-row: 1 / span 2; text-decoration: none; }
.terminal-release-state--unauthorized,
.terminal-release-state--error { border-color: #e7aab1; background: #fff3f4; color: #a01e2f; }
.terminal-release-state--unavailable { border-color: #e7cc8d; background: #fff9e9; color: #78550e; }
.terminal-release-state--restart,
.terminal-release-state--notice { border-color: #bed5ef; background: #f1f7ff; }

.terminal-release-checks,
.terminal-release-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terminal-release-check {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f7f9fc;
}

.terminal-release-check-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: #dff4e9;
  color: #08733f;
  font-weight: 900;
}

.terminal-release-check.is-danger .terminal-release-check-icon { background: #ffe2e5; color: #a31f30; }
.terminal-release-check.is-warning .terminal-release-check-icon { background: #fff0c7; color: #78550e; }
.terminal-release-check strong,
.terminal-release-check small { display: block; }
.terminal-release-check small { margin-top: 2px; color: #61758e; }

.terminal-release-pin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: end;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #c5d8ef;
  border-radius: 10px;
  background: #f4f8fd;
}

.terminal-release-pin label span { display: block; margin-top: 3px; color: #5e738c; font-size: 12px; }
.terminal-release-pin-setup > div > span { display: block; margin-top: 3px; color: #5e738c; font-size: 12px; line-height: 1.45; }
.terminal-release-custom-pin { display: flex; align-items: center; gap: 8px; }
.terminal-release-publish { margin-top: 14px; }
.terminal-release-install-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.terminal-release-install-actions .button { min-width: 0; min-height: 44px; }
.terminal-release-install-actions .terminal-release-publish { margin-top: 0; }

.terminal-release-steps li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 9px 10px;
  border-left: 3px solid #c8d3e1;
  background: #f7f9fc;
}

.terminal-release-steps li.is-running { border-color: #2b6bc4; }
.terminal-release-steps li.is-succeeded { border-color: #19915a; }
.terminal-release-steps li.is-failed { border-color: #c73547; }
.terminal-release-steps small { grid-column: 1 / -1; color: #60748d; }
.terminal-release-phase { margin-bottom: 10px !important; color: #536981; }
.terminal-release-empty { color: #667b94; }

.terminal-release-progress { height: 10px; overflow: hidden; margin: 12px 0 8px; border-radius: 999px; background: #dbe7f4; box-shadow: inset 0 1px 2px rgba(18,60,97,.12); }
.terminal-release-progress > span { display: block; height: 100%; min-width: 8px; border-radius: inherit; background: linear-gradient(90deg,#1c9a66,#2d65bd); transition: width .35s ease; }

.terminal-release-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #d5e2f2;
  border-top-color: #205bb5;
  border-radius: 50%;
  animation: terminal-release-spin 0.8s linear infinite;
}

@keyframes terminal-release-spin { to { transform: rotate(360deg); } }

#terminal-remote-root { display: grid; gap: 12px; min-width: 0; }
.terminal-remote-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.terminal-remote-message { margin: 10px 0 !important; color: #4e6580; overflow-wrap: anywhere; }
.terminal-remote-screen { background: #e9eff6; border-radius: 10px; overflow: hidden; min-height: 20px; }
.terminal-remote-screen img { display: block; width: 100%; height: auto; user-select: none; }
.terminal-remote-screen img[hidden] { display: none; }
.terminal-remote-screen.can-control img { cursor: crosshair; touch-action: none; }
.terminal-apk input[type=file] { width: 100%; max-width: 100%; padding: 10px; border: 1px solid #bdcbdd; border-radius: 9px; }
.terminal-release input[type="file"]::file-selector-button { min-height: 38px; margin-right: 10px; padding: 8px 14px; border: 1px solid var(--vbz-action-border, #bdcada); border-radius: 10px; color: #20354b; background: linear-gradient(180deg, #fff, #f8fafc); box-shadow: 0 1px 2px rgba(19, 45, 74, .05); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.terminal-release input[type="file"]:not(:disabled)::file-selector-button:hover { border-color: #8fa6bf; background: #f3f7fc; }
.terminal-release input[type="file"]:disabled::file-selector-button { color: #8997a6; border-color: #d8e0e8; background: #eef2f5; box-shadow: none; cursor: not-allowed; }
.terminal-apk-report { display: grid; gap: 12px; padding: 14px; margin-top: 12px; border: 1px solid #c5d8ef; border-radius: 10px; }
.terminal-apk details { margin-top: 10px; overflow-wrap: anywhere; }
.terminal-apk summary { cursor: pointer; font-weight: 700; }
.terminal-apk ul { padding-left: 20px; }
.terminal-release button { max-width: 100%; white-space: normal; }

.terminal-display-settings .terminal-release-section-heading p { margin-top: 5px; color: #63758d; }
.terminal-display-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 16px;
  min-width: 0;
}
.terminal-display-options { display: grid; gap: 10px; min-width: 0; }
.terminal-display-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.terminal-display-checks label { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 8px; border: 1px solid #e0e8f2; border-radius: 9px; background: #f8fafc; }
.terminal-display-checks input { margin-top: 2px; }
.terminal-display-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.terminal-display-layout > .terminal-release-help { grid-column: 1 / -1; }

.terminal-fleet-targets { display:grid; gap:12px; min-width:0; margin-block:16px; }
.terminal-fleet-targets h4,.terminal-fleet-targets p { margin:0; }
.terminal-fleet-targets ul { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; list-style:none; padding:0; margin:0; }
.terminal-fleet-target { display:grid; gap:8px; min-width:0; padding:14px; border:1px solid var(--ki-border,#cbd9e8); border-radius:12px; background:var(--ki-surface,#fff); overflow-wrap:anywhere; }
.terminal-fleet-target > div { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
.terminal-fleet-target small { color:var(--ki-muted,#5d718c); line-height:1.5; }
.terminal-pin-dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 18000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 24, 42, .48);
}
.terminal-pin-dialog {
  display: grid;
  gap: 12px;
  width: min(430px, 100%);
  padding: 22px;
  border: 1px solid #c4d3e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(9, 24, 42, .28);
}
.terminal-pin-dialog h2,
.terminal-pin-dialog p { margin: 0; }
.terminal-pin-dialog output { display: block; padding: 14px; border-radius: 10px; background: #edf4fc; font-size: 30px; font-weight: 850; letter-spacing: .18em; text-align: center; }

@media (max-width: 900px) {
  .terminal-release-grid,
  .terminal-display-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .terminal-release-hero,
  .terminal-release-section-heading { flex-direction: column; }
  .terminal-release-state { grid-template-columns: 1fr; }
  .terminal-release-hero { padding: 16px; }
  .terminal-release-card,
  .terminal-release-result { padding: 16px; }
  .terminal-release-facts,
  .terminal-release-pin { grid-template-columns: 1fr; }
  .terminal-display-checks { grid-template-columns: 1fr; }
  .terminal-display-actions > button { width: 100%; }
  .terminal-release-state .button-like { grid-column: 1; grid-row: auto; justify-self: start; }
  .terminal-release-mode { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-release-spinner { animation: none; }
}

.terminal-release .terminal-meme-editor { display:grid; gap:14px; padding:14px; min-width:0; }
.terminal-release .terminal-meme-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.terminal-release .terminal-meme-toolbar > span { color:#516782; font-size:12px; }
.terminal-release .terminal-meme-phases { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; min-width:0; }
.terminal-release .terminal-meme-phases .button { min-width:0; min-height:44px; font-size:15px; }
.terminal-release .terminal-meme-phases button.button[data-meme-phase][aria-pressed="true"]:not(:disabled) { background:#214f9b; color:#fff; border-color:#214f9b; box-shadow:0 0 0 2px #ffd43b; }
.terminal-release .terminal-meme-texts { display:grid; gap:10px; min-width:0; padding:14px; border:1px solid #c8d9ea; border-radius:12px; background:#f7faff; }
.terminal-release .terminal-meme-texts h4,.terminal-release .terminal-meme-texts p { margin:0; }
.terminal-release .terminal-meme-texts textarea[data-meme-texts] { box-sizing:border-box; display:block; width:100%; min-width:0; min-height:150px; resize:vertical; padding:11px 12px; border:1px solid #b7cde1; border-radius:10px; background:#fff; color:#17384d; font:inherit; font-size:14px; line-height:1.5; }
.terminal-release .terminal-meme-texts textarea[data-meme-texts]:focus-visible { outline:3px solid #58c6e9; outline-offset:2px; }
.terminal-release .terminal-meme-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:max-content; align-content:start; gap:12px; max-height:650px; overflow:auto; padding:3px; }
.terminal-release .terminal-meme-card { min-width:0; border:1px solid #c8d9ea; border-radius:12px; background:#fff; overflow:hidden; }
.terminal-release .terminal-meme-card:has(input:checked) { border:2px solid #2868bb; background:#eef6ff; }
.terminal-release .terminal-meme-card .terminal-meme-image-button { display:block; width:100%; padding:0; border:0; border-radius:10px; background:#f5f8fb; cursor:zoom-in; }
.terminal-release .terminal-meme-card img { display:block; width:100%; aspect-ratio:3/2; object-fit:contain; }
.terminal-release .terminal-meme-card label { display:flex; gap:9px; align-items:start; padding:10px; font-size:13px; line-height:1.4; font-weight:650; }
.terminal-release .terminal-meme-card input[type="checkbox"] { width:18px; height:18px; flex:none; margin:0; accent-color:#245ab1; }
.terminal-release .terminal-meme-card .button:not(.terminal-meme-image-button) { margin:0 10px 10px; min-height:36px; }
.terminal-meme-dialog { width:min(920px,95vw); max-height:95vh; padding:16px; border:1px solid #c8d9ea; border-radius:16px; box-shadow:0 16px 80px #12243b50; }
.terminal-meme-dialog::backdrop { background:#12243b99; }
.terminal-meme-dialog img { display:block; width:100%; max-height:78vh; object-fit:contain; margin-bottom:12px; }
.terminal-meme-dialog button { display:block; margin-left:auto; }
.terminal-meme-art { position:relative; display:block; width:100%; aspect-ratio:var(--meme-art-ratio,600 / 248); overflow:hidden; background:#f5eedf; }
.terminal-meme-art.is-break-end { aspect-ratio:960 / 486.4; }
.terminal-meme-art.is-art-only { aspect-ratio:16 / 9; }
.terminal-meme-art.is-humor { aspect-ratio:3 / 2; }
.terminal-release .terminal-meme-card .terminal-meme-art img,.terminal-meme-dialog .terminal-meme-art img { position:absolute; top:0; left:0; display:block; width:100%; height:auto; max-height:none; margin:0; aspect-ratio:auto; object-fit:initial; }
.terminal-release .terminal-meme-card .terminal-meme-art.is-humor img,.terminal-meme-dialog .terminal-meme-art.is-humor img { width:300%; left:calc(var(--meme-column) * -100%); top:calc(var(--meme-row) * -100%); }
.terminal-release .terminal-meme-card .terminal-meme-art.is-art-only img,.terminal-meme-dialog .terminal-meme-art.is-art-only img { height:100%; object-fit:contain; }
.terminal-meme-caption { display:block; padding:13px 16px; background:#fff8e9; color:#17384d; font-size:clamp(20px,2.1vw,28px); font-weight:850; line-height:1.25; text-align:center; overflow-wrap:anywhere; }
.terminal-meme-figure { margin-bottom:14px; border:1px solid #decdb0; border-radius:12px; overflow:hidden; }
.terminal-release .terminal-meme-humor-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px; border:1px solid #c8d9ea; border-radius:12px; background:#f7faff; }
@media(max-width:720px){.terminal-release .terminal-meme-humor-options{grid-template-columns:1fr;}}
@media (max-width:480px) { .terminal-release .terminal-meme-gallery { grid-template-columns:1fr; } .terminal-release .terminal-meme-phases { grid-template-columns:repeat(2,minmax(0,1fr)); } }

@media (pointer: coarse), (max-width: 760px) {
  .terminal-release .terminal-preview-tabs .button,
  .terminal-release input[type="file"]::file-selector-button { min-height: 44px; }
}
.terminal-release-unified { min-width: 0; }
.terminal-release-unified .terminal-release-run { margin: 16px 0; padding: 14px; box-shadow: none; }
.terminal-release-unified .terminal-release-steps { max-height: 180px; overflow: auto; }
.terminal-release-technical { margin-top: 16px; border-top: 1px solid #d6e3ef; padding-top: 12px; }
.terminal-release-technical > summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.terminal-release-technical > .terminal-release-consent { margin-top: 12px; }
.terminal-release-device-choice .terminal-release-device { margin-top: 8px; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
.terminal-recording-settings { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,auto); gap: 12px 24px; align-items: center; }
.terminal-recording-settings h3, .terminal-recording-settings p { margin: 0 0 6px; }
.terminal-recording-settings > small, .terminal-recording-settings > [role="alert"] { grid-column: 1 / -1; }
.terminal-recording-form { display: flex; gap: 10px; align-items: flex-end; min-width: 0; }
.terminal-recording-form label { flex: 1; min-width: 0; }
@media(max-width: 720px) { .terminal-recording-settings { grid-template-columns: minmax(0,1fr); } .terminal-recording-form { flex-wrap: wrap; } }

.terminal-sound-library-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--ki-border,#d7e1ee)}.terminal-sound-library-item strong{overflow-wrap:anywhere}.terminal-sound-library-item>div{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:600px){.terminal-sound-library-item{grid-template-columns:minmax(0,1fr)}}

.terminal-meme-dialog .terminal-meme-caption { font-size:clamp(32px,4.5vw,48px); line-height:1.18; font-weight:900; }

/* Shared device selection for display editing and remote control. */
.terminal-device-tabs {display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px;min-width:0}
.terminal-device-tab {display:grid;gap:5px;flex:1 1 260px;min-width:0;padding:14px 16px;text-align:left;border:1px solid #c4d5e8;border-radius:12px;background:#f4f8fd;color:#173b59;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.terminal-device-tab strong {overflow-wrap:anywhere;font-size:15px;line-height:1.35}
.terminal-device-tab small {font-size:12px;line-height:1.4;color:#56708b}
.terminal-device-tab:hover:not(:disabled):not([aria-disabled="true"]),.terminal-device-tab:focus-visible {border-color:#2555ab;box-shadow:0 0 0 3px #2555ab26;outline:0}
.terminal-device-tab.is-active {background:#2555ab;border-color:#1d438e;color:#fff;box-shadow:0 3px 10px #2555ab26}
.terminal-device-tab.is-active small {color:#e2edff}
.terminal-device-tab:is(:disabled,[aria-disabled="true"]) {cursor:wait;opacity:.65}

.terminal-setup-form {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-items:end;gap:12px;margin-top:12px}

.terminal-device-tab{text-decoration:none;font:inherit}
