.onboard {
  --setup-muted: #818181;
  --setup-edge: rgb(255 255 255 / 8%);
  --setup-field: rgb(255 255 255 / 3%);
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 0.43522fr) minmax(0, 0.56478fr);
  gap: 12px;
  padding: 12px;
  background: #141414;
}
.onboard-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.onboard-left header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 32px;
}
.onboard-left header > a:last-child {
  color: var(--setup-muted);
  font-size: 14px;
  padding-bottom: 1px;
}
.onboard-left header .brand {
  font-size: 27px;
  letter-spacing: -1.2px;
}
.onboard-left header a:hover {
  text-decoration: none;
}
.onboard-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 0;
}
.onboard-form {
  width: 100%;
  max-width: 480px;
  min-height: min(523px, calc(100dvh - 152px));
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.onboard-form h1 {
  font-size: 36px;
  line-height: 36px;
  letter-spacing: normal;
  max-width: 100%;
}
.setup-subtitle {
  font-size: 16px;
  line-height: 22px;
  color: var(--setup-muted);
  margin-top: 12px;
  max-width: 100%;
}
.setup-fields {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
.setup-fields:has(> .kind-card) {
  gap: 12px;
}
.onboard-form.sign-in-step {
  min-height: 0;
}
.sign-in-step .setup-fields {
  gap: 12px;
}
.sign-in-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.sign-in-status {
  color: var(--dim);
}
.setup-details[open] > .setup-fields {
  margin-top: 16px;
  gap: 16px;
}
#mini-social:not(:empty) {
  margin-top: 10px;
}
.kind-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--setup-edge);
  border-radius: 14px;
  padding: 16px;
  min-height: 94.5px;
}
.kind-card:has(input:checked) {
  border-color: rgb(245 245 245 / 48%);
  background: rgb(255 255 255 / 2%);
}
.kind-card input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  border: 1px solid var(--setup-edge);
  border-radius: 50%;
  background: #141414;
  flex: none;
  display: grid;
  place-items: center;
}
.kind-card input:checked {
  background: #f5f5f5;
  border-color: #f5f5f5;
}
.kind-card input:checked:after {
  content: '';
  width: 6px;
  height: 6px;
  background: #262626;
  border-radius: 50%;
}
.kind-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18.25px;
  font-size: 16px;
  line-height: 16px;
}
.kind-card small {
  display: inline-flex;
  align-items: center;
  min-height: 18.25px;
  padding: 0 3px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgb(255 255 255 / 4%);
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
}
.kind-card p {
  max-width: 418px;
  margin-top: 4px;
  color: var(--setup-muted);
  font-size: 14px;
  line-height: 19.25px;
}

.onboard-form footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}
.onboard-form footer .primary {
  margin-left: auto;
}
.onboard .field + .field {
  margin: 0;
}
.setup-progress {
  margin-bottom: 32px;
}
.setup-progress small {
  display: block;
  color: var(--setup-muted);
  font-size: 14px;
  line-height: 14px;
}
.setup-progress > div {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.setup-progress i {
  height: 4px;
  border-radius: 4px;
  flex: 1;
  background: rgb(245 245 245 / 12%);
}
.setup-progress i.done {
  background: #f5f5f5;
}
.profile-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}
.setup-avatar {
  width: 64px;
  height: 64px;
  border: 1px solid #252525;
  font:
    400 24px/1 var(--font-ui);
}
.profile-upload > div > small {
  display: block;
  margin-top: 4px;
  color: var(--setup-muted);
  line-height: 16px;
}
.upload {
  cursor: pointer;
  position: relative;
}
.upload input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  cursor: pointer;
}
.bio summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #929292;
}
.bio summary::-webkit-details-marker {
  display: none;
}
.bio textarea {
  margin-top: 7px;
}
.review-equipment {
  background: #1b1b1b;
  border: 1px solid #303030;
  border-radius: 10px;
  padding: 10px;
}
.review-equipment img {
  width: 90px;
  height: 58px;
  object-fit: contain;
}
.review-equipment p {
  color: var(--muted);
}
.onboard-art {
  position: relative;
  isolation: isolate;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboard-art:before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(to bottom, #1111117a, rgba(17, 17, 17, 0.08) 50%, transparent);
}
.picnic {
  background-image: url('/assets/ui/picnic.jpg');
}
.flowers {
  background-image: url('/assets/ui/flowers.jpg');
}
.stack-preview {
  position: relative;
  width: min(64%, 420px);
  margin: 20px 0;
}
.stack-preview:before,
.stack-preview:after {
  content: '';
  position: absolute;
  border-radius: 16px;
  background: #23241c;
  border: 1px solid #ffffff09;
  z-index: -1;
  inset: 12px 14px 12px -16px;
}
.stack-preview:before {
  inset: 24px 25px 24px -32px;
  background: #323b23;
}
.sample-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 16px;
  border: 1px solid #ffffff0f;
  background: #191919;
  padding: 24px;
  box-shadow: 0 25px 50px -12px #0004;
  min-height: min(609px, calc(100dvh - 66px));
}
.sample-person {
  display: grid;
  justify-items: start;
  gap: 11px;
  color: var(--dim);
}
.sample-person .portrait {
  height: 48px;
  width: 48px;
  font-size: 18px;
}
.sample-card h2 {
  font-size: 24px;
  line-height: 28px;
}
.sample-card p,
.sample-facts {
  color: #939393;
}
.sample-facts {
  display: grid;
  gap: 12px;
  margin: 12px 0 6px;
}
.sample-facts > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sample-facts img {
  width: 16px;
}
.sample-inventory {
  border-top: 1px solid #252525;
  margin: 5px -24px -24px;
  padding: 18px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sample-inventory h3 {
  font-size: 14px;
}
.sample-car {
  flex: 1;
  min-height: 100px;
  max-height: 250px;
  width: 100%;
  object-fit: contain;
}
.sample-spots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sample-spots span {
  background: #242424;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.sample-spots span:first-child {
  background: #f5f5f5;
  color: #222;
}
.browser-preview {
  position: absolute;
  top: 17%;
  bottom: 0;
  left: 18%;
  width: 87%;
  border-radius: 16px 0 0 0;
  background: #1f1f1f;
  box-shadow:
    -16px 12px #1b1b1b,
    -32px 24px #33343b;
  overflow: hidden;
}
.browser-chrome {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 calc(6% + 15px) 0 15px;
  background: #181818;
}
.browser-chrome > img:last-child {
  width: 12.8906px;
}
.browser-chrome > img {
  width: 16px;
  height: 16px;
  flex: none;
}
.browser-chrome > span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #252525;
  border-radius: 20px;
  padding: 8px 12px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.browser-chrome > span img {
  width: 15px;
  height: 15px;
}
.browser-body {
  padding: 44px calc(6% + 6px) 32px 44px;
}
.profile-sample {
  width: min(591.23px, 100%);
  background: #191919;
  border: 1px solid #2e2e2e;
  border-radius: 15px;
  overflow: hidden;
}
.profile-intro {
  min-height: 167px;
  padding: 16px;
  border-bottom: 1px solid #292929;
}
.profile-intro h2 {
  margin-top: 14px;
  font-size: 20px;
}
.profile-intro p,
.example-links p {
  color: #858585;
  margin-top: 4px;
}
.example-links small {
  display: block;
  padding: 16px 20px 4px;
  color: var(--setup-muted);
  font-size: 12px;
  line-height: 16px;
}
.example-links > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  min-height: 68px;
}
.example-links > div:last-child {
  border-bottom: 0;
}
.sample-row-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.sample-row-heading strong {
  font-size: 14px;
  line-height: 16px;
}
.sample-duration,
.example-links > div > span {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--setup-edge);
  background: var(--setup-field);
  white-space: nowrap;
}
.sample-duration {
  height: 18.25px;
  padding: 0 3px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 16px;
}
.example-links > div > span {
  height: 28px;
  padding: 0 7px 0 9px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 20px;
}

.welcome-dialog {
  max-width: min(560px, calc(100% - 28px));
  width: 560px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  background: #1f1f1f;
}
.welcome-dialog[open] {
  display: flex;
  flex-direction: column;
}
.welcome-scroll {
  overflow: auto;
  text-align: center;
  padding: 20px 24px 8px;
}
.welcome-brand {
  color: #929292;
  font-size: 26px;
  letter-spacing: -1px;
}
.welcome-illustration {
  width: 320px;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 20px auto 16px;
}
.welcome-scroll h2 {
  font-size: 24px;
  line-height: 28px;
}
.welcome-scroll > p {
  margin: 8px 0 20px;
  color: #e0e0e0;
}
.welcome-scroll ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
  text-align: left;
}
.welcome-scroll li {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--body);
  line-height: 21px;
}
.welcome-scroll li img {
  width: 16px;
  height: 16px;
}
.welcome-dialog footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #313131;
  background: #252525;
}
.editor-workspace {
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  padding-bottom: 40px;
}
.link-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px;
}
.editor-back {
  min-height: 40px;
  margin-bottom: 6px;
}
.link-rail nav {
  overflow: auto;
}
.link-rail nav > div {
  display: grid;
  gap: 2px;
  border-top: 1px solid #292929;
  padding: 14px 4px;
}
.link-rail nav > div:first-child {
  border: 0;
}
.link-rail nav small {
  font-size: 14px;
  color: #979797;
  padding: 0 8px 3px;
}
.link-rail nav button {
  width: 100%;
  text-align: left;
  min-height: 32px;
}
.editor-box {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  background: #141414;
  overflow: hidden;
}
.editor-box > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 8px 16px;
  border-bottom: 1px solid #282828;
  background: #101010;
}
.editor-box > header h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
}
.editor-inner {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, min(44%, 512px)) minmax(0, 1fr);
}
.link-form-panel {
  min-height: 0;
  overflow: auto;
  padding-right: 14px;
  border-right: 1px solid #2a2a2a;
}
.form-section {
  padding: 20px;
  border-bottom: 1px solid #252525;
}
.form-section > h2 {
  margin: 0 0 10px;
}
.form-section h3 {
  font-size: 15px;
}
.form-section > p {
  color: #a3a3a3;
  margin: 4px 0 10px;
}
.form-section > .field + .field {
  margin-top: 18px;
}
.description-control {
  background: #1a1a1a;
  border: 1px solid #303030;
  border-radius: 9px;
  overflow: hidden;
}
.description-control .format-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 10px;
  background: #202020;
  color: var(--muted);
  border-bottom: 1px solid #2c2c2c;
}
.format-tools button {
  width: 22px;
}
.format-tools b {
  font-weight: bold;
}
.field .description-control textarea {
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  min-height: 80px;
  width: 100%;
}
.spot-group {
  margin: 16px 0;
}
.spot-group a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
}
.info-row {
  padding: 10px 0;
  border-bottom: 1px solid #2b2b2b;
}
.link-form-panel > .form-error {
  margin: 12px;
}
.equipment-details-form,
.equipment-photos-form {
  display: grid;
  gap: 16px;
}
.equipment-details-form h2,
.equipment-photos-form h2 {
  margin: 0 0 8px;
}
.equipment-details-form .list-field {
  margin: 0;
}
.equipment-model-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
}
.equipment-model-info a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.equipment-spots-panel,
.equipment-inquiries-panel {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}
.editor-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.editor-view-header h2 {
  font-size: 18px;
}
.editor-view-header p,
[data-inquiry-feedback] {
  margin-top: 4px;
  color: var(--muted);
}
.equipment-inquiries-panel .editor-view-header,
[data-inquiry-feedback] {
  margin-bottom: 14px;
}
.live-preview {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1f1f1f;
  padding: 32px 0 32px 6%;
  min-width: 0;
}
.preview-frame {
  position: relative;
  isolation: isolate;
  flex: none;
  width: calc(100% - 16px);
  height: min(440px, 75%);
  min-height: 320px;
}
.preview-frame iframe {
  border: 1px solid #353535;
  border-radius: 12px;
  display: block;
  width: calc(100% / 0.69);
  height: calc(100% / 0.69);
  transform-origin: top left;
  transform: scale(0.69);
  color-scheme: dark;
  background: #171717;
}
.live-preview:after {
  content: '';
  position: absolute;
  pointer-events: none;
  right: 0;
  top: 0;
  bottom: 0;
  width: 9%;
  background: linear-gradient(90deg, transparent, #14141480);
}
.live-preview.preview-expanded {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  align-items: stretch;
  padding: 0;
}
.preview-expanded .editor-view-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--edge);
}
.live-preview.preview-expanded .preview-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}
.live-preview.preview-expanded iframe {
  width: 100%;
  height: 100%;
  transform: none;
  border: 0;
  border-radius: 0;
}
.live-preview.preview-expanded::after {
  display: none;
}
@media (min-width: 1600px) {
  .onboard {
    max-width: 1650px;
    margin: auto;
  }
  .preview-frame {
    width: min(100%, 980px);
  }
}
.library-grid {
  max-height: min(42vh, 400px);
  overflow-y: auto;
  padding: 3px;
}
.model-requests {
  margin-top: 24px;
}
.equipment-picker-fields {
  display: grid;
  min-width: 0;
  gap: 12px;
}
.equipment-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.equipment-types .equipment-type-option {
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 76px;
  padding: 12px 8px;
  gap: 8px;
}
.equipment-type-option .icon {
  flex: none;
}
.equipment-picker-fields .model-choice:focus-visible {
  border-color: #61616b;
}
.equipment-picker-fields .choice-photo {
  background-color: #292826;
  background-image: radial-gradient(circle, #484642 1px, transparent 1px);
  background-size: 12px 12px;
  background-position: center;
}
.equipment-picker-fields .choice-photo img {
  filter: saturate(0.16);
}
.equipment-setup-step {
  display: grid;
  gap: 12px;
}
.equipment-setup-step h3,
.equipment-setup-step p {
  margin: 0;
}
.equipment-setup-step p {
  color: var(--body);
}
.equipment-setup-step .list-field {
  min-width: 0;
  margin: 0;
}
.equipment-setup-step legend {
  margin-bottom: 10px;
  font-weight: 600;
}
.equipment-member-photo {
  display: inline-flex;
}
.equipment-setup-step .check-row {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  overflow-wrap: anywhere;
}
.equipment-setup-step .check-row + .check-row {
  margin-top: 7px;
}
.equipment-setup-step .check-row:has(input:checked) {
  border-color: #777;
}
.equipment-setup-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.equipment-setup-footer [data-back] {
  margin-inline-end: auto;
}
@media (max-width: 480px) {
  .equipment-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.model-requests ul {
  padding: 12px 20px;
}
.onboard .field {
  gap: 8px;
}
.onboard [data-slot='field-label'],
.onboard .goal-choices legend {
  color: var(--ink);
  font-size: 14px;
  line-height: 16px;
}
.onboard .onboard-form .field :is(input, select, span, div)[data-slot='input-control'] {
  height: 32px;
  min-height: 32px;
  border: 1px solid var(--setup-edge);
  border-radius: 10px;
  background: var(--setup-field);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.onboard .onboard-form .field :is(select, input)[data-slot='input-control'] {
  padding: 0 11px;
}
.onboard-input {
  display: flex;
  align-items: center;
}

.onboard .onboard-form .field .onboard-input input[data-slot='input'] {
  height: 30px;
  min-height: 30px;
  padding: 0 11px;
  line-height: 30px;
  box-shadow: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.onboard .onboard-form .field .input-prefix input[data-slot='input'] {
  flex: 1;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.onboard :is(.onboard-input, .input-prefix):has(input:focus-visible) {
  border-color: #61616b;
}
.onboard :is(.onboard-input, .input-prefix) input:focus-visible {
  outline: none;
}
.goal-choices {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.goal-choices legend {
  margin-bottom: 8px;
}
.onboard .goal-card {
  min-height: 0;
  cursor: pointer;
  padding: 12px 16px;
}
.sport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.sport-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: var(--setup-field);
  border: 1px solid var(--setup-edge);
  border-radius: 14px;
  font-size: 16px;
  line-height: 20px;
}
.sport-tile input {
  position: absolute;
  right: 14px;
  top: 14px;
  margin: 0;
  width: 16px;
  height: 16px;
}
.sport-tile:has(input:checked) {
  background: #202020;
  border-color: rgb(245 245 245 / 48%);
}
.sport-tile:has(input:focus-visible),
.goal-card:has(input:focus-visible) {
  border-color: #61616b;
}
.onboard .goal-card input[type='checkbox'] {
  appearance: auto;
  display: inline-block;
  border-radius: 4px;
}
.goal-card input:checked::after {
  content: none;
}
.goal-detail {
  display: block;
  margin-top: 5px;
  color: var(--setup-muted);
  line-height: 20px;
}
.workspace-starter + .workspace-starter {
  margin-top: 8px;
}
.sample-durations {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: #252525;
}
.sample-durations > span {
  padding: 3px 8px;
  font-size: 12px;
  line-height: 20px;
}
.sample-durations .chosen {
  background: #151515;
  border-radius: 8px;
  color: #fafafa;
}
.workspace-starter {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #1b1b1b;
}
.workspace-starter small,
.workspace-starter p {
  color: var(--muted);
}
.workspace-starter h2 {
  font-size: 18px;
  margin: 4px 0;
}
@media (max-width: 760px) {
  .workspace-starter {
    flex-direction: column;
    align-items: flex-start;
  }
  .onboard .kind-card {
    min-height: 0;
    padding: 12px;
  }
  .onboard-form footer .btn {
    height: 44px;
  }
  .onboard .kind-card input {
    width: 18px;
    height: 18px;
  }
}
.stage-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.stage-body > .model-stage {
  min-width: 0;
  min-height: 0;
}
.gear-gallery {
  flex: 0 0 clamp(142px, 12.5vw, 192px);
  min-width: 0;
  overflow: auto;
  padding: 16px 12px;
  border-left: 1px solid rgb(255 255 255 / 6%);
  background: #181818;
}
.gear-gallery h2 {
  font:
    600 14px/20px var(--font-ui);
  margin: 0 0 12px;
  color: #e5e5e5;
}
.logo-tool {
  margin: 0 0 16px;
}
.logo-tool > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-tool small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.logo-tool .logo-error {
  color: #fca5a5;
}
.photo-editor > div > p {
  color: var(--muted);
}
.photo-drafts {
  display: grid;
  gap: 12px;
}
.photo-drafts:empty {
  display: none;
}
.photo-draft {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
}
.photo-draft img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.photo-picker {
  position: relative;
  overflow: hidden;
  justify-self: start;
  cursor: pointer;
}
.photo-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.photo-picker:focus-within {
  box-shadow: inset 0 0 0 1px #61616b;
}
.logo-tool .btn,
.photo-picker,
.offer-form-actions .btn,
.photo-navigation .sq {
  min-height: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 20px;
  padding: 0 11px;
}
.photo-draft .field input,
.term-editor .field input {
  min-height: 32px;
  height: 32px;
  border-radius: 10px;
  padding: 0 11px;
  font-size: 14px;
  line-height: 30px;
}
@media (max-width: 900px) {
  .stage-body {
    flex-direction: column;
  }
  .gear-gallery {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 6%);
  }
  .gear-gallery h2 {
    font-size: 12px;
    white-space: nowrap;
    margin: 0;
  }
  .text-offer .stage-body {
    display: block;
  }
}
.question-rows {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 16px 0;
}
.package-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.package-options .choice-item { width: 100%; text-align: left; }
.sponsorship-table .package-benefits { white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; }
@media (max-width: 760px) { .package-options { grid-template-columns: minmax(0, 1fr); } }
.question-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
}
.question-row + .question-row {
  border-top: 1px solid var(--line);
}
.question-row small {
  color: var(--muted);
  font-size: 12px;
}
.publication-settings .question-row .btn { flex-shrink: 0; }
.custom-question-edit {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 4px 0;
}
.custom-question-edit > span { flex: 1; overflow-wrap: anywhere; }
.custom-question-edit > small { flex-shrink: 0; }
.custom-question-rows[hidden] { display: none; }
.preview-questions {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  align-content: center;
  justify-items: center;
  background: #171717;
}
.preview-questions > section {
  width: 100%;
  max-width: 440px;
  background: #1b1b1b;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.preview-questions header {
  margin-bottom: 16px;
}
.preview-questions header h1 {
  font-size: 20px;
}
.preview-questions header p {
  color: var(--muted);
  margin-top: 4px;
}
.preview-questions form {
  display: grid;
  gap: 16px;
}
.preview-questions form > .field + .field {
  margin: 0;
}
/* The same control sizes and spacing as the Cal reference link editor. */
.sponsorship-table .link-summary {
  flex: 1;
}
.sponsorship-table .link-summary p {
  display: block;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  margin-top: 4px;
}
.offer-name {
  font: inherit;
  text-align: left;
  padding: 0;
}
.offer-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.offer-glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  flex: none;
}
.choice-stack {
  display: grid;
  gap: 8px;
}
.choice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.choice-item:hover {
  background: var(--field);
}
.choice-item > span {
  flex: 1;
}
.choice-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 18px;
}
.offer-form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.deliverable-editor { min-width: 0; margin: 12px 0; padding: 0; border: 0; }
.deliverable-editor legend { margin-bottom: 8px; font-weight: 600; }
.package-item-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.package-item-list:not(:empty) { margin-bottom: 8px; }
.package-item-row, .package-item-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.package-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px auto;
  align-items: end;
  gap: 10px;
}
.package-item-summary { align-self: center; overflow-wrap: anywhere; }
.package-item-summary small { display: block; color: var(--muted); }
.package-item-panel {
  display: grid;
  gap: 12px;
  background: var(--panel);
}
.package-item-panel .field { margin: 0; }
.package-item-actions { display: flex; align-items: center; justify-content: end; gap: 6px; }
@media (max-width: 450px) {
  .package-item-row { grid-template-columns: 1fr auto; }
  .package-item-summary { grid-column: 1 / -1; }
  .package-item-row .field { max-width: 90px; }
}
.term-editor,
.term-rows {
  display: grid;
  gap: 12px;
}
.term-editor [data-add-term] {
  justify-self: start;
}
.term-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(64px, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.term-row.unpriced {
  grid-template-columns: minmax(0, 1fr) auto;
}
.term-row .field + .field {
  margin: 0;
}
.term-row .sq {
  height: 32px;
}
.term-row [data-remove-term]:disabled {
  visibility: hidden;
}
.no-equipment {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  cursor: pointer;
}
.duration-options {
  padding: 0;
  margin: 0 0 16px;
  border: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.duration-options legend {
  font-size: 14px;
  font-weight: 500;
  color: #d4d4d4;
  margin-bottom: 8px;
}
.duration-options button {
  padding: 5px 12px;
  border: 1px solid #3b3b3b;
  min-height: 32px;
  border-radius: 8px;
  color: #b7b7b7;
  line-height: 20px;
  text-align: left;
  overflow-wrap: anywhere;
}
.duration-options button:hover {
  background: #242424;
}
.duration-options button[aria-pressed='true'] {
  border-color: #d3d3d3;
  color: #fafafa;
  background: #303030;
}
.benefit-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 10px 0 20px;
  color: #b3b3b3;
}
.benefit-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.benefit-list li :is(img, svg) {
  flex: none;
  width: 14px;
  height: 14px;
  align-self: flex-start;
  margin-top: 3px;
}
.public-option-group + .public-option-group {
  margin-top: 24px;
}
.public-option-group h2 {
  margin: 0 0 8px !important;
}
@media (max-width: 760px) {
  .text-offer:not(.single-text-offer) .equipment-stage {
    order: 1;
    height: auto;
    min-height: auto;
  }
  .text-offer .model-stage {
    background: none;
  }
  .text-offer #placement-list {
    position: relative;
    padding: 16px 20px;
  }
  .sponsorship-table .links-tr {
    gap: 10px;
  }
  .sponsorship-table .offer-glyph {
    width: 30px;
    height: 30px;
  }
  .pricing-controls {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1100px) {
  .dashboard {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .editor-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .work-panel #screen {
    padding: 24px;
  }
  .editor-inner {
    grid-template-columns: minmax(280px, 45%) minmax(0, 1fr);
  }
  .step-controls {
    gap: 0;
  }
  .stage-head {
    padding: 10px 12px;
  }
  .equipment-heading,
  .stage-options {
    gap: 7px;
  }
  .stage-options .layer-control > span:last-child {
    display: none;
  }
  .equipment-picker select {
    max-width: 180px;
  }
  .link-tools {
    gap: 8px;
  }
  .onboard-form h1 {
    font-size: 32px;
  }
  .stack-preview {
    width: 74%;
  }
  .sample-card {
    min-height: min(540px, calc(100dvh - 66px));
  }
}
@media (max-width: 760px) {
  .onboard {
    display: block;
    min-height: 100dvh;
  }
  .onboard-art {
    display: none;
  }
  .onboard[data-step='2'] .onboard-left {
    min-height: 0;
  }
  .onboard[data-step='2'] .onboard-art {
    display: block;
    padding: 12px;
  }
  .onboard[data-step='2'] .browser-preview {
    position: relative;
    inset: auto;
    width: 100%;
    border-radius: 12px;
    box-shadow: none;
  }
  .onboard[data-step='2'] .browser-chrome,
  .onboard[data-step='2'] .browser-body {
    padding: 12px;
  }
  .onboard-left {
    min-height: calc(100dvh - 24px);
  }
  .onboard-left header {
    padding: 0 12px;
    align-items: center;
  }
  .onboard-main {
    padding: 28px 12px;
  }
  .onboard-form {
    min-height: min(565px, calc(100dvh - 115px));
  }
  .onboard-form h1 {
    font-size: 30px;
    line-height: 34px;
  }
  .setup-fields {
    gap: 18px;
  }
  .kind-card {
    min-height: 82px;
  }
  .dashboard {
    display: flex;
    height: auto;
    min-height: 100dvh;
    flex-direction: column;
  }
  .rail {
    padding: 4px 10px;
  }
  .rail-head {
    height: 40px;
    padding: 0 4px;
  }
  .rail nav,
  .rail-bottom,
  .link-rail nav {
    display: none;
  }
  .mobile-nav,
  .phone-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .rail.expanded nav,
  .rail.expanded .rail-bottom {
    display: grid;
  }
  .rail-bottom > small {
    display: none;
  }
  .work-panel {
    margin: 0 6px 6px;
    min-height: calc(100dvh - 54px);
    overflow: visible;
  }
  .work-panel #screen {
    padding: 17px 14px;
  }
  .links-head,
  .section-head {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }
  .links-head .actions {
    width: 100%;
  }
  .search-field {
    flex: 1;
    min-width: 80px;
  }
  .links-tr {
    padding: 11px 10px;
    gap: 6px;
    min-height: 76px;
  }
  .link-summary > div {
    display: block;
  }
  .link-summary small {
    display: block;
    font-size: 11px;
  }
  .link-summary p {
    margin-top: 3px;
  }
  .link-tools {
    gap: 6px;
  }
  .link-tools .row-edit {
    display: none;
  }
  .link-tools .sq,
  .link-tools .icon-btn {
    width: 27px;
  }
  .card-photo {
    height: 108px;
  }
  .card-body {
    padding: 10px;
  }
  .card-roster {
    flex-wrap: wrap;
  }
  .editor-layout {
    display: flex;
    flex-direction: column-reverse;
  }
  .editor-controls,
  .editor-stage-wrap {
    width: 100%;
  }
  .equipment-spots-panel,
  .equipment-inquiries-panel {
    padding: 12px;
  }
  .editor-stage .model-stage {
    min-height: 245px;
    max-height: 320px;
  }
  .draw-help {
    flex-wrap: wrap;
  }
  .editor-workspace {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    padding: 0;
  }
  .link-rail {
    padding: 6px 12px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .link-rail nav {
    width: 100%;
  }
  .link-rail.expanded nav {
    display: block;
  }
  .editor-back {
    margin: 0;
    min-height: 32px;
  }
  .editor-box {
    margin: 0 5px 5px;
    border-radius: 12px;
  }
  .editor-box > header {
    padding: 8px 10px;
  }
  .editor-box > header h1 {
    font-size: 16px;
  }
  .editor-box > header .actions {
    gap: 5px;
  }
  .editor-box > header .sq,
  .editor-box > header .icon-btn {
    width: 26px;
  }
  .editor-inner {
    display: flex;
    flex-direction: column;
  }
  .link-form-panel {
    padding-right: 0;
    border: 0;
  }
  .form-section {
    padding: 16px;
  }
  .live-preview {
    min-height: 235px;
    padding: 5px 12px;
    align-items: flex-start;
  }
  .preview-frame {
    width: 200%;
    min-height: 0;
    height: 440px;
    margin-right: -100%;
    margin-bottom: -220px;
  }
  .preview-frame iframe {
    width: 100%;
    height: 100%;
    transform-origin: top left;
    transform: scale(0.5);
  }
  .live-preview.preview-expanded .preview-frame {
    height: 76dvh;
  }
  .live-preview:after {
    display: none;
  }
  .sponsor-grid {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  .public-shell .equipment-stage {
    order: -1;
    position: relative;
    top: auto;
    width: 100%;
    height: min(53dvh, 440px);
    min-height: 290px;
    flex: none;
  }
  .public-shell .model-stage {
    min-height: 120px;
  }
  .public-shell .stage-head {
    min-height: 48px;
    padding: 5px 8px;
    gap: 4px;
  }
  .step-controls .sq {
    width: 23px;
    height: 27px;
  }
  .equipment-heading {
    gap: 2px;
    min-width: 0;
  }
  .equipment-picker {
    min-width: 0;
  }
  .equipment-picker select {
    font-size: 14px;
    width: 100%;
    max-width: 145px;
    text-overflow: ellipsis;
  }
  .stage-options {
    gap: 4px;
    flex-shrink: 0;
  }
  .stage-options .sq {
    width: 25px;
    min-height: 26px;
    height: 26px;
  }
  .layer-control .switch-appearance {
    width: 30px;
    height: 18px;
  }
  .layer-control .switch-appearance:before {
    width: 14px;
    height: 14px;
  }
  .layer-control input:checked + .switch-appearance:before {
    transform: translateX(12px);
  }
  .view-tools .btn {
    height: 25px;
    min-height: 25px;
    width: 27px;
  }
  .spot-panel {
    border-right: 0;
    border-top: 1px solid #343434;
    flex: 1;
  }
  .spot-detail {
    padding: 16px 20px;
  }
  .public-avatar {
    float: left;
    margin: 0 7px 0 0;
  }
  .public-team {
    margin: 2px 0 13px;
  }
  .placement-details {
    margin-top: 18px;
  }
  .spot-description {
    margin: 6px 0 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-wrap: wrap;
  }
  .welcome-illustration {
    height: 170px;
    margin: 6px auto;
  }
  .welcome-scroll,
  .welcome-dialog footer {
    padding: 14px 18px;
  }
  .standalone {
    padding: 26px 18px;
  }
}
@media (min-width: 761px) and (max-height: 550px) {
  .tour-sponsor .spot-detail { padding: 12px 16px; }
  .tour-sponsor .public-team { margin-block: 4px; }
  .tour-sponsor .placement-details { margin-top: 12px; }
  .tour-sponsor .spot-description { margin: 4px 0 8px; line-height: 18px; }
  .tour-sponsor .logo-tool { margin-bottom: 8px; }
  .tour-sponsor .public-price { margin-bottom: 6px; padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
