:root {
  color-scheme: dark;
  --bg: #171315;
  --surface: #241e21;
  --control: #171316;
  --text: #f4e9ee;
  --muted: #bcaeb5;
  --line: #bd718629;
  --accent: #db364e;
  font:
    400 14px/1.55 "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 80% 0, #8b283814, transparent 65%);
}
[hidden] {
  display: none !important;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  color: inherit;
}
a {
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #f58ca5;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 28px;
}
h2 {
  font-size: 20px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header {
  min-height: 84px;
  padding: 18px 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  letter-spacing: 0.5px;
}
.brand img {
  object-fit: contain;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.account > span {
  color: var(--muted);
  margin-right: 8px;
}
main {
  flex: 1;
  padding: 38px 28px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  outline: 0;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
footer a {
  margin-left: 14px;
}
.loading {
  text-align: center;
  color: var(--muted);
  padding: 80px 20px;
}
.welcome {
  max-width: 640px;
  margin: 7vh auto;
  text-align: center;
}
.welcome > .brand {
  justify-content: center;
  margin-bottom: 22px;
}
.welcome p {
  color: var(--muted);
  margin-bottom: 24px;
}
.primary,
.subtle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid #d0a2b02b;
  font:
    400 13px/20px "Segoe UI",
    sans-serif;
  white-space: nowrap;
}
.primary {
  background: linear-gradient(135deg, #e13c50, #b82c43);
  border-color: #f4859838;
  color: #fff;
}
.primary:hover {
  background: #e23b54;
}
.subtle {
  background: #ffffff03;
  color: #ead7df;
}
.subtle:hover {
  background: #a3314822;
  border-color: #cb5c75;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 26px;
}
.wizard,
.setup {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
.field {
  margin: 0 0 20px;
  min-width: 0;
}
.field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}
.field input {
  width: 100%;
  height: 42px;
  border: 1px solid #b27a8e38;
  background: var(--control);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
.field input:hover {
  border-color: #b65369;
}
.field input:focus {
  border-color: #dc4968;
  box-shadow: 0 0 0 2px #ce35511c;
}
.field-error,
.error {
  color: #ff9cae;
  font-size: 13px;
  white-space: pre-wrap;
  margin: 10px 0;
}
.field-error:empty,
.error:empty {
  display: none;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.cost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.cost span {
  color: var(--muted);
}
.cost strong {
  font-size: 22px;
  font-weight: 400;
  white-space: nowrap;
}
.selection {
  position: relative;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  height: 42px;
  border: 1px solid #b27a8e38;
  border-radius: 8px;
  background: var(--control);
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}
.select-trigger > span:first-child {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.selected-price {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.select-trigger:hover,
.select-trigger[aria-expanded="true"] {
  border-color: #dc4968;
}
.select-trigger svg {
  width: 16px;
  flex-shrink: 0;
}
.select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid #b76c7e4d;
  border-radius: 10px;
  background: #2b2026;
  padding: 5px;
  box-shadow: 0 16px 36px #0005;
  max-height: 280px;
  overflow: auto;
}
.select-option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 0;
  background: none;
  text-align: left;
  color: var(--text);
  font-size: 13px;
  border-radius: 6px;
}
.select-option small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.select-option:hover,
.select-option:focus,
.select-option[aria-selected="true"] {
  background: #b5364e29;
  outline: none;
}
.notice {
  border: 1px solid #bd71862c;
  border-radius: 12px;
  background: #8c2c4110;
  padding: 24px;
  text-align: center;
  line-height: 1.7;
}
.notice p {
  margin: 0;
  color: var(--muted);
}
.heading {
  position: relative;
  min-height: 42px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.heading h1 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.heading button {
  justify-self: start;
  grid-column: 1;
  grid-row: 1;
}
.objects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.object-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
}
.object-card h2 {
  font-size: 19px;
  overflow-wrap: anywhere;
  margin: 0;
}
.object-card p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.object-card .actions {
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 8px;
}
.object-card .price {
  color: var(--text);
  font-size: 18px;
}
.state {
  font-size: 12px;
  color: #e5a2b4;
}
.object-banner {
  width: 100%;
  aspect-ratio: 3;
  object-fit: cover;
  border-radius: 10px;
}
.object-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}
.media-picker {
  margin-bottom: 24px;
}
.media-picker > label {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
}
.media-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.media-picker input {
  display: none;
}
.media-preview {
  display: block;
  max-width: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
}
.media-preview.logo {
  width: 128px;
  height: 128px;
}
.media-preview.banner {
  width: 100%;
  aspect-ratio: 3;
  object-fit: cover;
}
.summary {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.summary-row dt {
  color: var(--muted);
}
.summary-row dd {
  margin: 0;
  text-align: right;
}
.setup .actions {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.back {
  margin-bottom: 24px;
}
.commission-error {
  margin-bottom: 20px;
}
.retry {
  margin-top: 18px;
}
@media (max-width: 1100px) {
  .objects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .objects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header {
    padding: 16px 20px;
  }
}
@media (max-width: 580px) {
  main {
    padding: 26px 16px;
  }
  .header {
    align-items: flex-start;
    padding: 14px 16px;
  }
  .account {
    justify-content: flex-end;
    gap: 6px;
  }
  .account > span {
    width: 100%;
    text-align: right;
    margin: 0;
  }
  .account .subtle {
    padding-inline: 10px;
    min-height: 36px;
  }
  .card {
    padding: 20px;
  }
  .objects {
    grid-template-columns: 1fr;
  }
  .heading {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .heading button {
    align-self: flex-start;
  }
  .select-option {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .cost {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  footer a {
    display: block;
    margin: 6px 0 0;
  }
  .welcome {
    margin-top: 4vh;
  }
  .welcome h1 {
    font-size: 25px;
  }
}
