:root {
  --ink: #102332;
  --muted: #667783;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --line: #e4ded1;
  --orange: #df744b;
  --yellow: #e9bc68;
  --blue: #2b6075;
  --shadow: 0 16px 44px rgba(16, 35, 50, 0.10);
}

* { box-sizing: border-box; }

html {
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--cream);
}

button,
a.primary,
a.secondary,
a.route-card,
a.photo-card,
a.pill-link,
a.icon-btn,
a.nav-item,
a.haul-card,
a.spine-item,
a.map-link,
a.task-link,
a.auth-skip,
a.auth-switch a,
.stay-edit,
.chip-btn {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

html, body { overflow-x: hidden; }

#app {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--cream);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  position: relative;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 222, 209, 0.7);
}

body.has-cover .topbar {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 30;
  background: linear-gradient(180deg, rgba(8, 18, 28, 0.42), transparent);
  backdrop-filter: none;
  border-bottom: 0;
  color: #fff;
}

body.has-cover .brand { color: #fff; text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }

body.has-cover .icon-btn {
  background-color: rgba(16, 28, 38, 0.5);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 760;
  letter-spacing: 0.02em;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(16, 35, 50, 0.08);
}

.icon-btn[hidden] { display: none; }

.share-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.avatar-btn {
  width: 36px;
  height: 36px;
  background-color: #c45b3a;
  background-image: url("assets/bg/danxia.webp");
  background-size: cover;
  background-position: 55% 72%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(16, 35, 50, 0.22);
}

body.has-cover .avatar-btn {
  background-color: #c45b3a;
  background-image: url("assets/bg/danxia.webp");
  background-size: cover;
  background-position: 55% 72%;
  border-color: #fff;
}

.avatar-btn.is-in {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange);
}

.top-actions {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 3;
}

#view.enter {
  animation: enter 0.28s ease;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  min-height: 236px;
  padding: 88px 20px 48px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #173544;
}

.hero:after {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("assets/yueya.webp") center 42% / cover no-repeat;
  animation: heroDrift 18s ease-in-out infinite alternate;
  z-index: 0;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 35, 50, 0.08) 0%, rgba(16, 35, 50, 0.22) 42%, rgba(16, 35, 50, 0.78) 100%);
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9ced4;
  margin: 0 0 12px;
}

.hero h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hero p {
  color: #e8eeed;
  margin: 0;
  line-height: 1.55;
  font-size: 14px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

.primary,
.secondary {
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
}

.primary { background: var(--orange); color: #fff; }
.secondary {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-stats { padding-top: 0; margin-top: -28px; position: relative; z-index: 2; }

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2%, -1.5%, 0); }
}

.section { padding: 22px 20px 0; }

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

.section h2 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-head small,
.muted {
  color: var(--muted);
  font-size: 13px;
}

a.muted {
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
}

.stat strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.route-card {
  display: flex;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin: 10px 0;
  box-shadow: 0 5px 18px rgba(16, 35, 50, 0.04);
  text-align: left;
  width: 100%;
}

.route-day {
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
  font-size: 13px;
}

.route-day.is-long { background: var(--orange); }
.route-day.is-scenic { background: var(--blue); }
.route-day.is-adapt { background: #3d6b5a; }
.route-day.is-city { background: #8a6a3d; }

.route-info { min-width: 0; flex: 1; }

.route-info strong {
  display: block;
  font-size: 15px;
  margin: 1px 0 5px;
}

.route-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-meta {
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  align-self: center;
}

.notice {
  background: #f3e2bf;
  border: 1px solid #e8c98a;
  border-radius: 16px;
  padding: 15px 16px;
  margin: 20px;
}

.notice strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.notice p {
  margin: 0;
  color: #6b552f;
  font-size: 13px;
  line-height: 1.55;
}

.notice.done {
  background: #dceee4;
  border-color: #b7d8c4;
}

.notice.done p { color: #2f5a44; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-hero {
  padding: 88px 20px 22px;
  background: var(--ink);
  color: #fff;
}

.detail-hero h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(24px, 7vw, 30px);
  line-height: 1.18;
  margin: 0 0 10px;
  overflow-wrap: break-word;
}

.detail-hero p {
  color: #c9d9db;
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
  overflow-wrap: break-word;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.chip,
.chip-btn {
  font-size: 12px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  color: #e9f0ed;
}

.chip-btn.is-on {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}

.content-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin: 12px 20px;
}

.content-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.content-card p,
.content-card li {
  font-size: 14px;
  line-height: 1.7;
  color: #52636b;
}

.content-card ul {
  padding-left: 20px;
  margin: 8px 0 0;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.big-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.progress {
  height: 8px;
  background: #e7e2d7;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 12px;
}

.progress i {
  display: block;
  width: 22%;
  height: 100%;
  background: var(--orange);
  border-radius: 10px;
}

.progress.on-dark {
  background: rgba(255, 255, 255, 0.18);
  margin-top: 16px;
}

.check-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.check-row:last-child { border: 0; }

.check-row input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid #b6b1a4;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.check-copy {
  min-width: 0;
}

.check-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.check-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.check-row input:checked {
  background: var(--orange);
  border-color: var(--orange);
}

.check-row input:checked:after {
  content: "✓";
  font-size: 13px;
  color: #fff;
}

.photo-card {
  height: 166px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: block;
}

.photo-card span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 8px #000;
  font-size: 16px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  max-width: 560px;
  margin: 0 auto;
  min-height: 76px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  z-index: 30;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8a9393;
  font-size: 19px;
  min-width: 0;
}

.nav-item small { font-size: 11px; }

.nav-item.active {
  color: var(--orange);
  font-weight: 800;
}

.link-row {
  display: flex;
  gap: 9px;
  overflow: auto;
  padding-bottom: 12px;
}

.pill-link {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 99px;
  padding: 9px 12px;
  font-size: 13px;
  display: inline-block;
}

.pill-link.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.ghost-btn {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}

.footer-note {
  padding: 22px 20px;
  color: #859094;
  font-size: 12px;
  line-height: 1.6;
}

.help-row {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.help-row:last-child { border: 0; }

.help-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.help-row strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 10px);
  opacity: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 99px;
  font-size: 13px;
  transition: 0.25s;
  z-index: 50;
  pointer-events: none;
  max-width: calc(100% - 40px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  padding: 16px 20px;
  color: #6b552f;
  background: #f3e2bf;
}

.empty {
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 700px) {
  body { padding: 24px 0 0; }
  #app { padding-bottom: 132px; }
  .topbar { border-radius: 18px 18px 0 0; }
  .bottom-nav {
    bottom: 24px;
    left: 24px;
    right: 24px;
    width: auto;
    max-width: 520px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
}

.haul-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 10px 0;
  box-shadow: 0 5px 18px rgba(16, 35, 50, 0.04);
}

.haul-card small {
  display: block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.haul-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 16px;
}

.haul-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.spine {
  position: relative;
  padding: 4px 0 8px;
}

.spine:before {
  content: "";
  position: absolute;
  left: 43px;
  top: 10px;
  bottom: 18px;
  width: 2px;
  background: var(--line);
}

.spine-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  position: relative;
  margin: 0 0 14px;
}

.spine-photo {
  width: 88px;
  height: 108px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--paper);
  box-shadow: 0 8px 20px rgba(16, 35, 50, 0.12);
  position: relative;
  z-index: 1;
}

.spine-photo.is-plain {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--ink);
  background-image: none;
}

.spine-info small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.spine-info strong {
  display: block;
  margin: 3px 0 4px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.spine-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.day-photo,
.spot-photo {
  height: 210px;
  margin: 0 20px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 28px rgba(16, 35, 50, 0.12);
}

.day-photo { margin-top: 14px; }

.spot-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 12px 20px;
  overflow: hidden;
}

.spot-photo {
  height: 190px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.spot-body { padding: 16px 18px 18px; }

.spot-body h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.spot-body p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #52636b;
}

.kv {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.kv span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.kv strong, .kv a {
  display: block;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  overflow-wrap: break-word;
}

.map-link { color: var(--orange); }

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}

.meta-grid .big-num { font-size: 20px; line-height: 1.25; }

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

.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 12px;
}

.budget-cell {
  background: var(--cream);
  border-radius: 12px;
  padding: 10px 12px;
}

.budget-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.budget-cell strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.budget-cell.is-total {
  grid-column: 1 / -1;
  background: #102332;
  color: #fff;
}

.budget-cell.is-total span { color: #b9ced4; }

.task-group { padding-top: 8px; }

.task-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin: 10px 0;
  box-shadow: 0 5px 18px rgba(16, 35, 50, 0.04);
}

.task-card:has(.task-photo) {
  grid-template-columns: 28px 72px 1fr;
}

.task-card.is-done {
  background: #f7f3ea;
}

.task-card.is-done .task-body strong { color: var(--blue); }
.task-card.is-done .task-photo { filter: saturate(0.75); }

.task-check {
  position: relative;
  display: grid;
  place-items: start;
  padding-top: 2px;
}

.task-check input {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0;
}

.task-box {
  width: 22px;
  height: 22px;
  border: 1.5px solid #b6b1a4;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #fff;
}

.task-check input:checked + .task-box {
  background: var(--orange);
  border-color: var(--orange);
}

.task-check input:checked + .task-box:after {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.task-photo {
  width: 72px;
  height: 88px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.task-body strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.task-body p {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.task-link {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.stay-card .task-body { min-width: 0; }

.stay-saved {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.stay-edit {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}

#stay-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 35, 50, 0.46);
  display: grid;
  place-items: end center;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
}

.stay-dialog {
  width: min(420px, 100%);
  background: var(--paper);
  border-radius: 22px;
  padding: 22px 20px 18px;
  box-shadow: 0 24px 60px rgba(8, 18, 28, 0.28);
}

.stay-dialog h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.stay-dialog > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.stay-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.stay-cancel,
.stay-save {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.stay-cancel {
  background: var(--cream);
  color: var(--ink);
}

.stay-save {
  background: var(--orange);
  color: #fff;
}

@media (min-width: 700px) {
  #stay-overlay { place-items: center; }
}

body.is-auth {
  background: #102332;
}

body.is-auth #app {
  max-width: none;
  padding-bottom: 0;
  overflow: hidden;
  background: #102332;
}

body.is-auth .topbar,
body.is-auth .bottom-nav,
body.is-auth .skip-link {
  display: none;
}

.auth-screen {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
}

.auth-bg,
.auth-slide,
.auth-veil {
  position: absolute;
  inset: 0;
}

.auth-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: authFade 36s infinite;
  transform: scale(1.1);
}

.auth-veil {
  background:
    linear-gradient(180deg, rgba(16, 35, 50, 0.12) 0%, rgba(16, 35, 50, 0.28) 38%, rgba(16, 35, 50, 0.78) 100%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 2;
  margin: 0 16px calc(24px + env(safe-area-inset-bottom));
  padding: 22px 20px 18px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
  border-radius: 24px 24px 18px 18px;
  box-shadow: 0 24px 60px rgba(8, 18, 28, 0.35);
}

.auth-card h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Songti SC", "Songti TC", serif;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.auth-field {
  display: block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.auth-field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.auth-field input::placeholder {
  color: #b4aea3;
  font-weight: 500;
}

.auth-error {
  margin: 0 0 10px;
  color: #b34128;
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  border: 0;
  background: var(--orange);
  color: #fff;
  border-radius: 14px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
}

.auth-submit:disabled { opacity: 0.6; }

.auth-switch,
.auth-skip {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.auth-switch a,
.auth-skip { font-weight: 700; color: var(--ink); }

@keyframes authFade {
  0% { opacity: 0; transform: scale(1.12); }
  5% { opacity: 1; }
  14% { opacity: 1; transform: scale(1); }
  20% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@media (min-width: 760px) {
  .auth-screen { align-items: center; justify-items: start; }
  .auth-card {
    margin: 0 8vw;
    width: min(420px, 86vw);
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #view.enter,
  .toast { animation: none; transition: none; }
  .auth-slide { animation: none; opacity: 0; }
  .auth-slide:first-child { opacity: 1; transform: none; }
  .hero:after { animation: none; }
}
