:root {
  --bg-main: #f8f2eb;
  --bg-soft: #f5ebe6;
  --bg-paper: #fffaf6;
  --text-main: #1e1e1e;
  --text-soft: #4a3831;
  --brand: #b74329;
  --brand-dark: #7d402a;
  --line: #d9ccc0;
  --ok: #2f6f6d;
  --warn: #c8893d;
  --error: #a02f2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 15% 10%, #fff6ed, var(--bg-main) 45%, var(--bg-soft) 100%);
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.bg-one {
  width: 34rem;
  height: 34rem;
  background: linear-gradient(120deg, #d9ccc0aa, #b7432933);
  top: -12rem;
  right: -10rem;
}

.bg-two {
  width: 24rem;
  height: 24rem;
  background: linear-gradient(120deg, #7f4b3840, #f7f2eb20);
  bottom: -7rem;
  left: -8rem;
}

.app {
  position: relative;
  z-index: 1;
  width: min(980px, 94vw);
  margin: 1.6rem auto 3rem;
}

.app-header {
  margin-bottom: 1rem;
}

.brand-kicker {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--brand-dark);
}

h1 {
  margin: 0.15rem 0 0;
  font: 700 2.4rem/1 "Cormorant Garamond", serif;
  color: var(--text-soft);
}

.version {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  opacity: 0.75;
}

.panel {
  background: linear-gradient(170deg, var(--bg-paper), #fef6ef);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 10px 28px #4a383114;
  animation: reveal 0.25s ease-out;
}

.step {
  margin: 0 0 0.8rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.notice {
  margin-bottom: 0.7rem;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.notice-ok {
  border-color: #2f6f6d66;
}

.notice-warn {
  border-color: #c8893d66;
}

.notice-error {
  border-color: #a02f2f66;
}

.preline {
  white-space: pre-line;
  line-height: 1.45;
}

.row,
.stack,
.form-line {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.row {
  flex-wrap: wrap;
}

.stack {
  flex-direction: column;
}

.full {
  width: 100%;
}

.form-line {
  align-items: center;
}

.text-input {
  width: 100%;
  min-height: 2.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--text-main);
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 2.7rem;
  padding: 0.55rem 0.9rem;
  font: 500 0.96rem/1.2 "IBM Plex Sans", sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px #4a383120;
}

.btn-primary {
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--text-main);
}

.btn-option {
  width: 100%;
  text-align: left;
  border-color: #ccb8ab;
  background: #fff;
  color: var(--text-main);
}

.btn-muted {
  border-color: #ccb8ab;
  background: #e7dbcf;
  color: #6d4e41;
}

.nav form,
.stack form {
  width: 100%;
}

.media-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.media-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem;
  background: #fff;
}

.media-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .app {
    width: min(96vw, 560px);
    margin-top: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .form-line {
    flex-direction: column;
    align-items: stretch;
  }
}

