:root {
  --bg: #f4f6f3;
  --panel: #ffffff;
  --panel-strong: #fdfdfb;
  --line: #dce3df;
  --line-strong: #c7d0cc;
  --text: #17211d;
  --muted: #64716c;
  --faint: #8a9691;
  --accent: #168a69;
  --accent-dark: #0f694f;
  --accent-soft: #e5f4ef;
  --coral: #dc654d;
  --coral-soft: #fde9e4;
  --violet: #6559bd;
  --violet-soft: #eceafd;
  --amber: #ae7415;
  --amber-soft: #fbefd9;
  --danger: #bc3d3a;
  --danger-soft: #fde6e4;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.08);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-root {
  min-height: 100vh;
}

.boot-screen,
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.public-submit-panel {
  width: min(760px, 100%);
}

.public-submit-wrap {
  align-items: start;
  padding:
    max(16px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}

.auth-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.auth-panel h1 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.auth-panel p {
  color: var(--muted);
  margin: 0 0 20px;
}

.auth-live-link {
  margin-top: 14px;
}

.shell {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  min-width: 0;
  width: 100%;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #17211d;
  color: white;
  flex: 0 0 auto;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.top-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.content {
  width: 100%;
  max-width: 100vw;
  min-height: 0;
  height: calc(100vh - 69px);
  height: calc(100dvh - 69px);
  display: grid;
  grid-template-columns: minmax(330px, 430px) 1fr;
}

.sidebar {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: #fbfcfb;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.stat {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1;
}

.stat-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.searchbox {
  position: relative;
}

.searchbox svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}

.searchbox input {
  padding-left: 38px;
}

.account-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  overscroll-behavior: contain;
}

.account-row {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 11px;
  text-align: left;
  color: var(--text);
  display: grid;
  gap: 8px;
}

.account-row:hover,
.account-row.active {
  background: var(--panel);
  border-color: var(--line);
}

.account-row.active {
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.06);
}

.row-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.row-title {
  min-width: 0;
  font-weight: 720;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.row-chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.row-subtitle {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--panel-strong);
}

.detail-inner {
  width: min(1020px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.detail-subtitle {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.detail-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}

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

.field {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.field-value {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 650;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.secret-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.empty-value {
  color: var(--faint);
  font-weight: 500;
}

.chip {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
}

.chip.available {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.chip.reserved {
  background: var(--amber-soft);
  color: var(--amber);
}

.chip.sold {
  background: var(--violet-soft);
  color: var(--violet);
}

.chip.issue {
  background: var(--danger-soft);
  color: var(--danger);
}

.chip.neutral {
  background: #eef1ef;
  color: var(--muted);
}

.chip.google {
  background: var(--coral-soft);
  color: var(--coral);
}

.chip.profile-active {
  background: #dff7ea;
  color: #12633c;
}

.chip.profile-closed {
  background: #eef1ef;
  color: var(--muted);
}

.chip svg {
  width: 13px;
  height: 13px;
}

.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.message-list {
  display: grid;
  gap: 8px;
}

.message-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
  display: grid;
  gap: 5px;
}

.message-title {
  font-weight: 730;
  overflow-wrap: anywhere;
}

.message-meta,
.message-snippet {
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.video-upload {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.video-upload input[type="file"] {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.video-list,
.link-list,
.submission-list {
  display: grid;
  gap: 10px;
}

.settings-list {
  margin-top: 14px;
}

.video-item,
.link-row,
.submission-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.video-item {
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto;
}

.compact-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.account-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #101412;
  object-fit: contain;
}

.video-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.video-meta strong,
.link-row strong,
.submission-row strong {
  overflow-wrap: anywhere;
}

.video-meta span {
  color: var(--muted);
  font-size: 0.84rem;
}

.copy-url {
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.btn,
.icon-btn {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 720;
  text-decoration: none;
}

.btn {
  padding: 0 13px;
}

.icon-btn {
  width: 38px;
  padding: 0;
  flex: 0 0 auto;
}

.btn:hover,
.icon-btn:hover {
  border-color: var(--text);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn.danger,
.icon-btn.danger {
  color: var(--danger);
  border-color: #edb8b5;
  background: #fffafa;
}

.btn.ghost,
.icon-btn.ghost {
  background: transparent;
}

.form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.form-field.wide {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 92px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 138, 105, 0.16);
}

.input-note {
  color: var(--faint);
  font-size: 0.78rem;
}

.empty-state {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}

.empty-state h2 {
  margin: 16px 0 8px;
  font-size: 1.3rem;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
}

.empty-state.compact {
  min-height: 420px;
}

.session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.session-head .section-title {
  margin: 0;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.live-browser {
  height: calc(100vh - 70px);
  display: grid;
  grid-template-rows: auto 1fr;
}

.live-browser .section {
  min-height: 0;
  padding-bottom: 0;
  display: grid;
}

.vnc-frame {
  width: 100%;
  min-height: 620px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101412;
}

.vnc-panel {
  min-height: 620px;
  height: 100%;
  display: grid;
  background: #101412;
}

.vnc-panel.mobile {
  width: min(100%, 430px);
  min-height: min(844px, calc(100vh - 230px));
  height: min(844px, calc(100vh - 230px));
  justify-self: center;
  border: 10px solid #17211d;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(23, 33, 29, 0.18);
}

.vnc-panel.mobile .vnc-frame {
  min-height: 0;
  border: 0;
  border-radius: 18px;
}

.browser-control-deck {
  width: min(100%, 430px);
  justify-self: center;
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 0;
  background: var(--panel-strong);
}

.browser-control-deck:has(.mobile-browser-controls.desktop) {
  width: 100%;
}

.mobile-browser-controls {
  width: min(100%, 430px);
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.mobile-browser-controls .btn {
  min-width: 0;
}

.mobile-browser-controls.desktop {
  width: 100%;
  justify-self: stretch;
}

.mobile-tab-switcher {
  width: min(100%, 430px);
  justify-self: center;
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.mobile-tab-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-tab-strip {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 2px;
}

.mobile-tab-card {
  min-width: 0;
  height: 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 6px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px;
  scroll-snap-align: start;
}

.mobile-tab-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22, 138, 105, 0.16);
}

.mobile-tab-main {
  min-width: 0;
  height: 98px;
  border: 0;
  border-radius: 6px;
  background: #f7f9f8;
  color: var(--text);
  padding: 8px;
  text-align: left;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 4px;
}

.mobile-tab-label {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-tab-title {
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mobile-tab-url {
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.vnc-panel.inline {
  min-height: 480px;
  height: 58vh;
}

.vnc-panel.inline.mobile {
  min-height: min(720px, 68vh);
  height: min(720px, 68vh);
}

.vnc-panel.inline .vnc-frame {
  min-height: 480px;
}

.vnc-panel.inline.mobile .vnc-frame {
  min-height: 0;
}

.vnc-panel:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}

.vnc-panel:fullscreen .vnc-frame {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
}

.vnc-panel.mobile:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vnc-panel.mobile:fullscreen .vnc-frame {
  border-radius: 0;
}

.public-live {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #101412;
}

.public-live-bar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.public-live-bar > div {
  min-width: 190px;
}

.public-live-bar h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.public-live-bar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.live-picker {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(170px, 260px) auto auto auto auto;
  align-items: center;
  gap: 8px;
}

.live-picker input[hidden] {
  display: none;
}

.live-picker input[hidden] + .btn {
  grid-column: auto;
}

.public-live-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #101412;
  display: block;
}

.toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #17211d;
  color: white;
  padding: 11px 13px;
  box-shadow: var(--shadow);
}

.toast.error {
  background: var(--danger);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex: 0 0 auto;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    position: relative;
    overflow-x: clip;
  }

  .top-actions {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .top-actions .btn,
  .top-actions .icon-btn {
    flex: 0 0 auto;
  }

  .content {
    height: auto;
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    height: min(74vh, 760px);
    max-height: none;
    grid-template-rows: auto auto minmax(360px, 1fr);
  }

  .account-list {
    min-height: 360px;
  }

  .field-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .video-item,
  .link-row,
  .submission-row {
    grid-template-columns: 1fr;
  }

  .detail-head {
    flex-direction: column;
  }

  .detail-actions,
  .session-head {
    align-items: stretch;
    flex-direction: column;
  }

  .live-browser {
    height: auto;
    min-height: 70vh;
    grid-template-rows: auto auto;
  }

  .live-browser .section {
    min-height: min(620px, 76vh);
  }

  .vnc-panel,
  .vnc-frame {
    min-height: min(620px, 76vh);
  }

  .vnc-panel.inline,
  .vnc-panel.inline .vnc-frame {
    min-height: 460px;
    height: 64vh;
  }

  .vnc-panel.mobile {
    width: min(100%, 430px);
    min-height: min(844px, 78vh);
    height: min(844px, 78vh);
    border-width: 8px;
  }

  .mobile-browser-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-browser-controls .btn,
  .mobile-browser-controls .icon-btn {
    width: 100%;
  }

  .mobile-tab-actions {
    align-items: stretch;
  }

  .mobile-tab-actions .btn {
    flex: 1 1 132px;
  }

  .mobile-tab-strip {
    grid-auto-columns: minmax(188px, 72%);
  }

  .public-live-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .live-picker {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .live-picker #custom-url:not([hidden]) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .boot-screen,
  .auth-wrap {
    padding: 14px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar .searchbox {
    grid-column: 1 / -1;
  }

  .detail-inner {
    padding: 16px;
  }

  .auth-panel {
    padding: 18px;
  }

  .public-submit-panel {
    width: 100%;
    border-radius: 8px;
  }

  .auth-panel h1 {
    font-size: 1.28rem;
  }

  .detail-actions .btn,
  .detail-actions .icon-btn,
  .button-row .btn,
  .public-submit-panel .button-row,
  .public-live-bar .button-row {
    width: 100%;
  }

  .btn {
    min-width: 0;
    min-height: 44px;
  }

  .public-submit-panel .btn,
  .public-live-bar .btn {
    justify-content: center;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    padding: 12px;
  }

  .public-live {
    grid-template-rows: auto minmax(420px, 1fr);
  }

  .public-live-bar {
    gap: 10px;
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      10px
      max(10px, env(safe-area-inset-left));
  }

  .public-live-bar > div {
    min-width: 0;
  }

  .public-live-frame {
    min-height: 420px;
  }

  .sidebar {
    height: min(76vh, 700px);
    grid-template-rows: auto auto minmax(390px, 1fr);
  }

  .account-list {
    min-height: 390px;
  }

  .top-actions {
    display: flex;
    flex-wrap: nowrap;
  }

  .top-actions .btn,
  .top-actions .icon-btn {
    width: auto;
  }

  .detail-title {
    font-size: 1.32rem;
  }

  .vnc-panel,
  .vnc-frame {
    min-height: 460px;
  }

  .vnc-panel.mobile {
    min-height: 520px;
    height: 78vh;
    border-width: 6px;
    border-radius: 24px;
  }

  .mobile-tab-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mobile-tab-actions .chip {
    justify-content: center;
    grid-column: 1 / -1;
  }

  .mobile-tab-strip {
    grid-auto-columns: minmax(176px, 82%);
  }

  .live-picker {
    grid-template-columns: 1fr 1fr;
  }

  .live-picker select,
  .live-picker #custom-url:not([hidden]) {
    grid-column: 1 / -1;
  }
}
