@import url("./sol.css");

/* Shared document styles formerly emitted by app_sheet() and island sheets.
   Void islands use light DOM, so the reset and component styles live here. */
:root {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  color: #000;
  background: #fff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  background: transparent;
  border: 0;
  cursor: pointer;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
section[data-island] {
  display: block;
  min-width: 0;
}
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
:focus-visible {
  outline: 2px solid #53c3c7;
  outline-offset: 3px;
}

.tenant-shell {
  min-height: 100vh;
  background: #fff url("/static/bg_header.png") top center no-repeat;
  background-image:
    url("/static/bg_header.png"), url("/static/bg_wrp_girls.png");
  background-position:
    top center,
    center 120px;
  background-repeat: no-repeat;
}
.app-card {
  width: 100%;
}
.app-content-grow {
  min-width: 0;
}
.app-logo-cell img {
  width: 160px;
  height: 40px;
  object-fit: contain;
}
.app-card-w44,
.schedule-card {
  max-width: 100%;
}
.app-card-body img {
  width: 100%;
  height: auto;
}
.app-card-name {
  margin: 0;
  font-size: 1rem;
}
.app-h1-3xl {
  margin: 1rem 0;
}

/* The old fixed account / scroll-reveal navigation cluster. */
.nav-inline-li {
  min-width: 0;
}
.nav-cluster {
  gap: 0.5rem;
}
.nav-user-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-avatar-initial {
  flex-shrink: 0;
}
.nav-dropdown-base {
  max-width: calc(100vw - 1rem);
}
.nav-cluster .account-menu {
  position: relative;
}
.nav-cluster .account-options {
  top: 2.5rem;
}
.mobile-menu {
  line-height: 1;
  font-size: 1.5rem;
}

/* Full-document operator pages retain native vertical scrolling on phones. */
html {
  overflow-x: clip;
  overscroll-behavior-x: none;
}
.operator {
  min-height: 100dvh;
  background: #000;
  color: #fff;
  overflow-x: clip;
}
.operator-header {
  flex-wrap: wrap;
}
.operator-header .app-landing-brand {
  flex-shrink: 0;
}
.operator-header .app-sites-tab {
  white-space: nowrap;
}
.scope-switcher {
  position: relative;
  min-width: 0;
}
.scope-switcher .team-trigger {
  max-width: 15rem;
}
.scope-switcher .team-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  max-width: calc(100vw - 2rem);
  z-index: 60;
}
.scope-switcher .team-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.operator-account {
  position: relative;
  margin-left: auto;
}
.operator-account > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.operator-account .account-dropdown {
  z-index: 60;
}
.operator-account .account-btn {
  color: #a1a1aa;
}
.operator h1,
.operator h2 {
  margin: 0;
}
.operator .app-sites-main > h1 {
  font-size: 1.875rem;
}
.operator .app-sites-main > h2 {
  font-size: 1.05rem;
}
.operator .app-sites-row {
  flex-wrap: wrap;
}
.operator .app-sites-row-main {
  min-width: 8rem;
}
.operator .app-sites-row-url {
  overflow-wrap: anywhere;
}
.operator .app-sites-settings-box {
  gap: 0.75rem;
}
.operator .app-sites-settings-box p {
  margin: 0;
}
.operator .app-sites-toolbar {
  flex-wrap: wrap;
}
.operator .app-sites-search {
  min-width: 0;
}
.operator .team-member-row {
  flex-wrap: wrap;
}
.operator .team-member-login {
  overflow-wrap: anywhere;
}
.operator .team-member-list {
  min-width: 0;
}
.operator .editor {
  color-scheme: light;
}
.operator .form-hint {
  color: #a1a1aa;
}
.operator .member-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.operator .member-editor select {
  width: auto;
}
.operator .member-editor .form-field-wrap {
  margin: 0;
}
.operator .member-editor [role="status"]:empty {
  display: none;
}
.app-landing-hero h1,
.app-landing-hero p {
  margin: 0;
}
.app-landing-title {
  overflow-wrap: anywhere;
}
.app-landing-header-btns {
  flex-wrap: wrap;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* Form markup mirrors field_wrap/label/input from the old CastForm. */
.editor .form-label {
  display: block;
}
.editor textarea.form-input {
  min-height: 12rem;
  resize: vertical;
}
.editor input[type="file"] {
  padding: 0.5rem 0;
  max-width: 100%;
}
.editor .form-thumb-grid img {
  max-height: 140px;
  object-fit: contain;
}
.editor .form-thumb-grid label {
  display: block;
}
.editor [role="status"] {
  overflow-wrap: anywhere;
}

/* Gallery: a sliding 600px viewport, overlay arrows, five square thumbnails. */
.gallery:focus-visible {
  outline: none;
}
.gallery-viewport {
  -webkit-user-select: none;
  user-select: none;
}
.gallery-viewport img {
  max-height: 100%;
}
.gallery-slide {
  padding: 0;
}
.gallery-viewport[data-navigable="true"] {
  cursor: pointer;
}
.gallery-arrow-left,
.gallery-arrow-right {
  top: 50%;
  bottom: auto;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.3;
  transition:
    opacity 400ms ease,
    background-color 400ms ease,
    color 400ms ease;
}
.gallery-arrow-left[data-active="true"],
.gallery-arrow-right[data-active="true"] {
  opacity: 1;
}
.gallery-arrow-left[data-obscured="true"],
.gallery-arrow-right[data-obscured="true"] {
  opacity: 0;
  transition-duration: 1200ms;
}
.gallery-arrow-left:focus-visible,
.gallery-arrow-right:focus-visible {
  opacity: 1;
  transition-duration: 400ms;
  outline: none;
}
.gallery-arrow-left[data-pressed="true"],
.gallery-arrow-right[data-pressed="true"] {
  opacity: 1;
  transition: none;
}
.gallery-arrow-left[data-dismissed="true"],
.gallery-arrow-right[data-dismissed="true"] {
  opacity: 0;
  transition: none;
}
.gallery-arrow-left:is(
  [data-active="true"],
  [data-pressed="true"],
  :focus-visible
),
.gallery-arrow-right:is(
  [data-active="true"],
  [data-pressed="true"],
  :focus-visible
) {
  background-color: #a8dfe2;
  color: #3db3b8;
}
.gallery-chevron {
  width: 1rem;
  height: 1rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  pointer-events: none;
}
.gallery-arrow-left .gallery-chevron {
  transform: translateX(0.2rem) rotate(-135deg);
}
.gallery-arrow-right .gallery-chevron {
  transform: translateX(-0.2rem) rotate(45deg);
}

.gallery-controls {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.profile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.profile dt {
  color: #6b7280;
  font-size: 0.8rem;
}
.profile dd {
  margin: 0.25rem 0;
}
.markdown {
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.markdown ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.markdown ol {
  list-style: decimal;
  padding-left: 1.5rem;
}
.markdown table {
  display: block;
  max-width: 100%;
  overflow: auto;
}
.markdown a {
  color: #2b9ea3;
  text-decoration: underline;
}
.schedule-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.schedule-date input {
  max-width: 100%;
}
.schedule-tab-active {
  outline-offset: -3px;
}

@media (max-width: 767px) {
  .operator-header {
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }
  .operator .app-sites-main {
    padding: 1.5rem 1rem 3rem;
  }
  .operator .app-sites-chip {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .scope-switcher .team-trigger {
    max-width: 10rem;
  }
  .app-landing-title {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }
  .app-landing-hero {
    padding: 2rem 1rem;
  }
  .app-landing-header-btns {
    gap: 0.4rem;
  }
  .app-landing-header-btns a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  .profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-viewport {
    height: min(600px, 125vw);
  }
  .gallery-arrow-left,
  .gallery-arrow-right {
    width: 2.5rem;
    height: 2.5rem;
  }
  .gallery-chevron {
    width: 0.75rem;
    height: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track,
  .gallery-arrow-left,
  .gallery-arrow-right {
    transition: none !important;
  }
}

.editor .form-field-wrap {
  display: block;
}
.operator .app-sites-main > h1.app-sites-section-label {
  font-size: 1.05rem;
}
.operator h2.app-sites-row-name-plain,
.operator h3.app-sites-row-name-plain {
  font-size: 1rem;
  margin: 0;
}
.site-search {
  margin-bottom: 1.25rem;
}

.operator .app-sites-settings-box > .app-sites-status,
.operator .app-sites-main > p.app-sites-status {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .operator-header {
    gap: 0.5rem;
  }
}
