.page-host {
  padding-top: 4.25rem;
}

.host-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.host-topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn--register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.95rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.28);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--register-sm {
  min-width: 0;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  box-shadow: none;
}

.btn--register:hover {
  background: #be123c;
}

.btn--register:active {
  transform: scale(0.98);
}

.host-hero {
  width: min(920px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  background:
    radial-gradient(700px 320px at 10% 0%, #f0d9d4 0%, transparent 60%),
    radial-gradient(600px 280px at 100% 20%, #dce8e2 0%, transparent 55%),
    rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.host-hero__brand {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.host-hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.host-hero__sub {
  margin: 0.9rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.host-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.35rem;
}

.host-hero__home {
  color: var(--accent);
  font-weight: 600;
}

.host-saved {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.92rem;
  font-weight: 600;
}

.host-benefits,
.host-steps,
.host-faq,
.host-cta {
  width: min(920px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
}

.host-benefits h2,
.host-steps h2,
.host-faq h2,
.host-cta h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.host-benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.host-benefits__list li {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.host-benefits__list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.host-benefits__list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.host-steps__list {
  margin: 0;
  padding: 0 0 0 1.2rem;
  display: grid;
  gap: 0.65rem;
  color: var(--ink-soft);
}

.host-steps__list strong {
  color: var(--ink);
}

.host-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
}

.host-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.host-faq p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.host-cta {
  margin-bottom: 3.5rem;
  padding: 1.75rem;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.register {
  min-height: 100svh;
  padding: 0 0 3rem;
  background:
    radial-gradient(1000px 500px at 0% 0%, #dce8e2 0%, transparent 55%),
    var(--paper);
}

.register__top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.register__top-actions {
  display: flex;
  gap: 0.4rem;
}

.register__body {
  width: min(960px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
}

.register__body h1 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
}

.register__lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.draft-form {
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.draft-form__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.draft-form__head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.draft-form__status {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.draft-form__status[data-type="error"] {
  color: #b42318;
}

.draft-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  resize: vertical;
  outline: none;
}

.draft-form textarea:focus {
  border-color: var(--accent);
}

.draft-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.draft-form select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.draft-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.draft-options {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.draft-options legend {
  padding: 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.draft-options__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem 0.7rem;
}

.draft-options__list label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.draft-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.draft-form__publish-msg {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b42318;
}

.draft-form__publish-msg[data-type="ok"] {
  color: var(--accent);
}

@media (max-width: 720px) {
  .draft-form__grid,
  .draft-options__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .host-benefits__list {
    grid-template-columns: 1fr;
  }

  .host-topbar__nav .btn--ghost-ink:first-child {
    display: none;
  }
}

/* legacy stub (unused) */
.host-page {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}


.photos__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.photos__head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.photos__count {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.photos__stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 360px;
  max-height: min(68svh, 560px);
  border: 2px dashed rgba(15, 110, 86, 0.35);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.45)),
    var(--paper-2);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.photos__stage > * {
  grid-area: 1 / 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.photos__stage:hover,
.photos__stage.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 110, 86, 0.15);
}

.photos__stage.has-photos {
  cursor: default;
  border-style: solid;
  border-color: var(--line);
  background: #111;
}

.photos__stage.has-photos:hover,
.photos__stage.has-photos.is-dragover {
  background: #111;
  border-color: var(--accent);
}

.photos__empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.65rem;
  height: 100%;
  padding: 1.75rem;
  text-align: center;
  cursor: copy;
}

.photos__stage.has-photos .photos__empty {
  display: none;
}

.photos__drop-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.photos__drop-sub {
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.btn--upload {
  margin-top: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 110, 86, 0.22);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--upload:hover {
  background: var(--accent-hover);
}

.btn--upload:active {
  transform: scale(0.98);
}

.photos__msg {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #b42318;
}

.photos__msg[data-type="ok"] {
  color: var(--accent);
}

.photos__login-hint {
  margin: -0.75rem 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fff6e0;
  color: #8a5a00;
  font-size: 0.9rem;
}

.photos__login-hint a {
  color: var(--accent);
  font-weight: 700;
}

.photos__viewer {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.photos__viewer[hidden] {
  display: none;
}

.photos__viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

.photos__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.photos__nav:hover {
  background: #fff;
}

.photos__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.photos__nav--prev {
  left: 0.75rem;
}

.photos__nav--next {
  right: 0.75rem;
}

.photos__overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.photos__badge,
.photos__index {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(18, 28, 25, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.photos__toolbar {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(18, 28, 25, 0.55);
  backdrop-filter: blur(8px);
}

.btn-tool {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-tool:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-tool--danger {
  background: #e11d48;
  color: #fff;
}

.btn-tool--sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.photos__section {
  margin-bottom: 1.15rem;
}

.photos__section-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.photos__section-hint {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.photos__section-empty {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.photos__pick-btn {
  width: 100%;
  max-width: 16rem;
}

.photos__stage--legacy {
  display: none !important;
}

.photos__edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.photos__edit-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  cursor: pointer;
}

.photos__edit-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--paper);
}

.photos__edit-primary {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.photos__edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.photos__edit-actions--stack {
  flex-direction: column;
}

.btn-tool--block {
  width: 100%;
  justify-content: center;
}

.btn-tool--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-tool--muted {
  background: #eef1f4;
  color: var(--ink-soft);
}

.photos__pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.photos__pending-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px dashed var(--line);
}

.photos__pending-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 560px) {
  .photos__stage {
    min-height: 280px;
    max-height: 50svh;
  }

  .photos__nav {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.35rem;
  }
}
