.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 44px;
}

.submit-hero {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  margin-bottom: 30px;
  padding: 56px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 84%, transparent), color-mix(in srgb, var(--panel-muted) 78%, transparent)),
    var(--panel);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--accent) 12%, transparent);
}

.hero-effects,
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-effects {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.color-field {
  position: absolute;
  width: 360px;
  height: 180px;
  border-radius: 999px;
  filter: blur(58px);
  opacity: 0.58;
  transform: rotate(-18deg);
  animation: driftColorField 9s ease-in-out infinite alternate;
}

.field-a {
  top: -40px;
  left: 12%;
  background: color-mix(in srgb, var(--accent) 76%, #56d8ff);
}

.field-b {
  right: 4%;
  bottom: -24px;
  background: color-mix(in srgb, var(--accent) 58%, #ff66c8);
  animation-delay: -3s;
}

.field-c {
  top: 38%;
  left: 54%;
  width: 260px;
  height: 150px;
  background: color-mix(in srgb, var(--accent) 44%, #6fffd2);
  animation-delay: -6s;
}

.glass-panel {
  position: absolute;
  top: 12%;
  width: 42%;
  height: 76%;
  border: 1px solid color-mix(in srgb, white 56%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, white 48%, transparent), color-mix(in srgb, white 12%, transparent));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 64%, transparent),
    0 22px 60px color-mix(in srgb, var(--accent) 12%, transparent);
  backdrop-filter: blur(18px);
}

.glass-left {
  left: -14%;
  transform: skewX(-14deg) rotate(-4deg);
  animation: slideGlassLeft 9s ease-in-out infinite alternate;
}

.glass-right {
  right: -14%;
  transform: skewX(14deg) rotate(4deg);
  animation: slideGlassRight 9s ease-in-out infinite alternate;
}

.hero-content {
  max-width: 690px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, white 68%, transparent);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submit-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 3.23rem);
  line-height: 0.95;
}

.submit-hero p {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.subhead {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 0.94rem;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--table-head-bg);
}

tr:last-child td {
  border-bottom: none;
}

.photo-set-name {
  font-weight: 700;
}

.path {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 4px;
  word-break: break-word;
}

.theme-text {
  max-width: 340px;
  font-weight: 700;
  line-height: 1.35;
}

.settings-line,
.muted {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  margin-top: 4px;
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--success-soft-bg);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.missing {
  background: var(--warning-soft-bg);
  color: var(--warn);
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.empty {
  padding: 26px;
  color: var(--muted);
  line-height: 1.5;
}

.type-section {
  margin-bottom: 18px;
}

.hidden {
  display: none !important;
}

.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.section-head p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.preset-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.preset-card {
  display: grid;
  grid-template-rows: 32px auto 1fr;
  gap: 9px;
  aspect-ratio: 1;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.preset-card:hover,
.preset-card.active {
  border-color: var(--accent);
  box-shadow: 0 8px 22px var(--accent-shadow-soft);
}

.preset-card.active {
  background: var(--accent-shadow-soft);
}

.preset-card svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.preset-card strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.preset-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.submission-steps {
  display: grid;
  gap: 26px;
}

.submission-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
}

.step-label {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--accent-dark);
  font-weight: 900;
}

.step-body {
  min-width: 0;
}

.upload-dropzone {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, white), white);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.upload-dropzone:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px var(--accent-shadow-soft);
  transform: translateY(-1px);
}

.upload-dropzone span {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.upload-dropzone strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.upload-dropzone small {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.45;
}

.upload-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.goal-field {
  margin-top: 16px;
}

.config-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.mode-toggle,
.choice-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--table-head-bg);
}

.mode-button,
.choice-row button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 7px 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.mode-button:hover,
.choice-row button:hover {
  color: var(--accent-dark);
}

.mode-button.active,
.choice-row button.active {
  background: white;
  color: var(--accent-dark);
  box-shadow: 0 1px 4px color-mix(in srgb, black 8%, transparent);
}

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

.basic-field {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-muted);
}

.basic-field span {
  color: var(--ink);
  font-weight: 850;
}

.basic-field small {
  color: var(--muted);
  line-height: 1.4;
}

.advanced-options {
  display: grid;
  gap: 16px;
}

.advanced-banner {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  background: var(--accent-2);
}

.advanced-banner strong {
  color: var(--accent-dark);
}

.advanced-banner span {
  color: var(--muted);
  line-height: 1.45;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

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

.field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
  font: inherit;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input[type="file"] {
  min-height: 44px;
  padding: 9px;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

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

.slider-head output {
  min-width: 56px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--table-head-bg);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.form-actions,
.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.faq-section {
  width: min(920px, 100%);
  margin: 48px auto 0;
}

.faq-head {
  margin-bottom: 18px;
  text-align: center;
}

.faq-head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.faq-head p {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.5;
}

.faq-list {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, white 80%, var(--panel-muted));
  box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 8%, transparent);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, white 84%, transparent);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 18px 58px 18px 22px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--accent-dark);
  content: "+";
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item[open] summary {
  color: var(--accent-dark);
}

.faq-item p {
  max-width: 760px;
  margin: -4px 58px 20px 22px;
  color: var(--muted);
  line-height: 1.5;
}

.notice {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  line-height: 1.4;
}

.notice.error {
  border-color: var(--warning-border);
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.notice.success {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--accent);
}

@keyframes driftColorField {
  from {
    transform: translate3d(-18px, -8px, 0) rotate(-18deg) scale(0.96);
  }

  to {
    transform: translate3d(22px, 14px, 0) rotate(-10deg) scale(1.06);
  }
}

@keyframes slideGlassLeft {
  from {
    transform: translateX(-8px) skewX(-14deg) rotate(-4deg);
  }

  to {
    transform: translateX(22px) skewX(-11deg) rotate(-2deg);
  }
}

@keyframes slideGlassRight {
  from {
    transform: translateX(8px) skewX(14deg) rotate(4deg);
  }

  to {
    transform: translateX(-22px) skewX(11deg) rotate(2deg);
  }
}

@media (max-width: 760px) {
  .page-head {
    display: block;
  }

  .submit-hero {
    min-height: 0;
    padding: 34px 22px;
  }

  .submit-hero p {
    font-size: 1rem;
  }

  .color-field {
    width: 260px;
    height: 140px;
  }

  .glass-panel {
    width: 64%;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  td {
    border-bottom: none;
    padding: 8px 14px;
  }

  .actions {
    justify-content: flex-start;
  }

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

  .submission-step {
    grid-template-columns: 1fr;
  }

  .step-label {
    width: 34px;
    height: 34px;
  }

  .config-head {
    display: grid;
  }

  .basic-options {
    grid-template-columns: 1fr;
  }

  .choice-row {
    width: 100%;
  }

  .choice-row button {
    flex: 1;
  }

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

  .preset-card {
    min-height: 150px;
    padding: 12px;
  }

  .faq-item summary {
    padding-right: 54px;
  }
}
