.website-bug-dialog {
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 22px;
  overflow: auto;
  border: 1px solid #ee801c;
  border-radius: 18px;
  background: #fffdf8;
  color: #143859;
}
.website-bug-dialog::backdrop {
  background: #07182b80;
}
.website-bug-dialog h2 {
  margin: 0 40px 14px 0;
  font-size: 22px;
}
.website-bug-dialog form {
  display: grid;
  gap: 10px;
}
.website-bug-dialog form p {
  font: 14px/1.45 Arial, sans-serif;
  margin: 0;
}
.website-bug-dialog label {
  display: grid;
  gap: 6px;
}
.website-bug-dialog textarea {
  width: 100%;
  font: 16px/1.4 Arial, sans-serif;
  box-sizing: border-box;
}
.website-bug-dialog button {
  min-height: 44px;
}
.website-bug-dialog .close-dialog {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
}
html body .website-bug-link {
  width: 100%;
  font: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 10px;
  cursor: pointer;
}
.website-bug-link > svg {
  flex: none;
}
.website-bug-footer {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
.device-magnifier {
  position: fixed;
  z-index: 1000;
  display: grid;
  gap: 5px;
  width: 260px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 16px);
  margin: 0;
  padding: 8px;
  border: 2px solid #eea315;
  border-radius: 14px;
  background: #fffdf8;
  color: #143859;
  box-shadow: 0 6px 24px #001b3f60;
  text-align: left;
  font: 15px/1.35 Arial, sans-serif;
  overflow: auto;
  cursor: pointer;
}
.device-magnifier img {
  display: block;
  width: 100%;
  height: 120px;
  max-height: 35vh;
  object-fit: contain;
  border-radius: 8px;
  background: #071d39;
}
.device-magnifier span {
  overflow-wrap: anywhere;
}
.device-magnifier:focus-visible {
  outline: 3px solid #143859;
  outline-offset: 2px;
}
[data-inspecting=true] .filmstrip-track {
  animation-play-state: paused !important;
}
@media (max-width: 899px), (max-width: 1400px) and (pointer: coarse) and (hover: none) {
  html body > main,
  html body > .site-footer,
  html body[data-menu-mode=auto] > main,
  html body[data-menu-mode=auto] > .site-footer {
    margin-left: 0;
    width: 100%;
    min-width: 0;
  }
  html body .site-header,
  html[data-theme] body .site-header {
    display: flex !important;
    min-height: 56px;
    padding: 4px 8px;
    gap: 5px !important;
    flex-wrap: nowrap !important;
  }
  html body .site-header .brand-shell {
    width: 140px;
    min-width: 80px;
    flex: 0 1 140px;
  }
  html body .site-header .header-actions {
    display: flex;
    min-width: 0;
    gap: 4px;
    flex: 1 1 auto !important;
    justify-content: flex-end;
  }
  html body .site-header .top-navigation {
    display: flex;
    flex: 0 1 205px;
    min-width: 0;
    gap: 0;
  }
  html body .site-header .top-navigation .nav-signature {
    display: none;
  }
  html body .site-header .top-navigation .nav-create {
    display: flex !important;
    width: 205px;
    min-width: 100px;
    min-height: 44px;
    font-size: 11px;
  }
  html body .header-actions .account {
    width: auto;
    min-width: 44px;
    max-width: 155px !important;
    min-height: 44px !important;
    font-size: 12px !important;
  }
  html body .header-actions .member-storage-gauge {
    display: none;
  }
  html body .homepage-hero .hero-inner.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px 12px;
    min-width: 0;
    max-width: none;
  }
  .homepage-hero .hero-inner > .screen-layout {
    display: contents !important;
  }
  .homepage-hero .hero-introduction {
    order: 0;
    width: 100%;
  }
  .homepage-hero #home-screen {
    order: 1;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin: 0;
  }
  .homepage-hero #homepage-filmstrip {
    order: 2;
    width: 100%;
    min-width: 0;
  }
  .homepage-hero .right-column {
    order: 3;
    width: 100%;
    height: auto !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .homepage-hero .hero-notes {
    order: 4;
    margin: 0;
  }
  html body .hero-grid h1 {
    font-size: clamp(20px, 3.2vw, 30px);
    line-height: 1.3;
    margin: 0 0 4px;
  }
  .hero-grid .eyebrow {
    display: none;
  }
  .hero-grid .hero-copy {
    font-size: 12px;
    line-height: 1.4;
  }
  html body .screen-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
  }
  html body .watch-page > .screen-layout {
    width: 100%;
    min-width: 0;
  }
  html body .screen-frame,
  html body #watch-screen {
    min-width: 0;
    max-width: 100%;
  }
  html body .screen-frame video,
  html body #watch-screen video {
    object-fit: contain;
  }
  html body .catalogue-bands {
    padding: 0 12px 14px;
    min-width: 0;
    max-width: none;
  }
  html body .catalogue-row,
  html body .catalogue-track {
    min-width: 0;
    max-width: 100%;
  }
  html body #navigation-drawer {
    width: min(280px, calc(100vw - 16px));
    height: auto;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  html body #navigation-drawer .sidebar-link {
    font-size: 12px;
    min-height: 44px;
    padding: 6px 8px;
    line-height: 1.3;
  }
  html body #navigation-drawer .sidebar-notice {
    display: none;
  }
  html body #navigation-drawer .sidebar-help {
    display: none !important;
  }
}
@media (max-width: 899px), (max-width: 1400px) and (pointer: coarse) and (hover: none) {
  html body .header-actions .account {
    font-size: 0 !important;
    width: 44px;
    padding: 4px !important;
    flex: none;
  }
  html body .header-actions .account .member-display-name {
    font-size: 0;
  }
  html body .header-actions .account::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143859' stroke-width='1.5'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 22v-3a8 8 0 0 1 16 0v3'/%3E%3C/svg%3E");
  }
  html body .header-actions #appearance-open {
    display: none;
  }
  html body .header-actions .r4d-language {
    display: none;
  }
  .homepage-hero .right-column {
    grid-template-columns: minmax(0, 1fr);
  }
  html body .site-header .brand-shell {
    flex-basis: 126px;
    width: 126px;
  }
}
@media (orientation: landscape) and (max-height: 650px) and (max-width: 1400px) and (pointer: coarse) and (hover: none) {
  html body #navigation-drawer {
    width: min(300px, calc(100vw - 16px));
  }
  html body #navigation-drawer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  html body #navigation-drawer .sidebar-link {
    font-size: 11px;
    gap: 6px;
  }
  html body .homepage-hero .home-screen .screen-frame,
  html body .watch-page .screen-frame {
    aspect-ratio: auto !important;
    height: calc(100vh - 160px) !important;
    height: calc(100dvh - 160px) !important;
    min-height: 160px;
    max-height: none;
  }
  html body .screen-poster {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #071821;
  }
  html body .screen-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .device-magnifier {
    width: 220px;
  }
  .device-magnifier img {
    height: 88px;
  }
}
.compact-menu-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #cddbe4;
}
.compact-menu-settings[hidden] {
  display: none;
}
.compact-menu-settings .member-storage-gauge {
  display: flex !important;
  max-width: 100%;
}
.compact-menu-settings .member-storage-gauge svg {
  width: 44px;
  height: 32px;
}
.compact-menu-settings .icon-button {
  width: 44px;
  height: 44px;
}
.compact-menu-settings .r4d-language {
  display: block !important;
}
.scene-folder-choices,
.exact-sequence-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.scene-folder-choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #c5d5e1;
  border-radius: 10px;
}
.scene-folder-choices input {
  width: 22px;
  height: 22px;
}
.exact-version-preview {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #c5d5e1;
  border-radius: 12px;
}
.exact-version-preview label {
  display: grid;
  gap: 5px;
  margin: 5px 0;
}
.exact-version-preview select {
  min-width: 0;
  max-width: 100%;
  font: 14px Arial;
}
.exact-sequence-choices[hidden] {
  display: none;
}
html body .homepage-hero .home-screen .screen-frame:fullscreen,
html body .watch-page .screen-frame:fullscreen,
.screen-frame:fullscreen,
#watch-screen:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000;
}
.screen-frame:fullscreen video,
#watch-screen:fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 899px), (max-width: 1400px) and (pointer: coarse) and (hover: none) {
  html body .site-header .top-navigation {
    display: none !important;
  }
  html body .header-actions .account {
    background: #fffdf8 !important;
    background-image: none !important;
    border: 1px solid #ee801c !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center;
    min-width: 44px !important;
    height: 44px !important;
    overflow: hidden;
  }
  html body .header-actions .account .member-avatar-image {
    display: none !important;
  }
}
@media (max-width: 899px), (max-width: 1400px) and (pointer: coarse) and (hover: none) {
  html body .homepage-hero .hero-inner.hero-grid {
    grid-template-columns: none;
    grid-template-rows: none;
  }
  html body .homepage-hero .right-column {
    grid-template-columns: minmax(0, 1fr);
    height: auto !important;
    align-self: stretch;
  }
  html body .homepage-hero [data-align-columns=true] .right-column {
    height: auto !important;
  }
  html body #navigation-drawer .left-navigation {
    min-height: 0;
  }
  html body #navigation-drawer .sidebar-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    overflow: visible !important;
  }
}
