:root {
  --bg: #fbf9f6;
  --panel: #ffffff;
  --panel-soft: #f7ebe1;
  --ink: #3d342e;
  --muted: #7d6a60;
  --line: #eadfd7;
  --tag-bg: #f7ebe1;
  --tag-ink: #d97d54;
  --orange: #d97d54;
  --orange-deep: #b85f3f;
  --mint: #48b98c;
  --blue: #4f8fc8;
  --peach: #ffb088;
  --shadow: 0 12px 34px rgba(61, 52, 46, 0.08);
  --radius: 8px;
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.map-home,
.map-home img,
.map-node-layer,
.map-stage-node,
.food-route-node-image,
.map-progress-track,
.map-progress-track img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.map-home img,
.food-route-node-image,
.map-progress-track img {
  pointer-events: none;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(247, 235, 225, 0.68), rgba(251, 249, 246, 0)),
    var(--bg);
  position: relative;
  overflow: hidden;
  max-width: 100vw;
  box-shadow: 0 0 40px rgba(69, 43, 22, 0.14);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--orange-deep);
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(180, 102, 48, 0.08);
}

main {
  padding: 0;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.screen {
  padding: 14px 14px 92px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid rgba(217, 125, 84, 0.16);
  color: var(--tag-ink);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.primary-btn {
  min-height: 46px;
  border-radius: var(--radius);
  border: 0;
  padding: 11px 14px;
  font-weight: 800;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.26);
}

.primary-btn:disabled {
  cursor: not-allowed;
  color: rgba(71, 55, 42, 0.74);
  background: #efe7da;
  box-shadow: none;
}

.primary-btn.full {
  width: 100%;
}

.secondary-btn {
  min-height: 46px;
  border: 1px solid rgba(230, 220, 208, 0.86);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: #7a6253;
  background: rgba(255, 253, 247, 0.82);
  font-weight: 800;
}

.modal-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

label,
fieldset {
  display: block;
  margin: 0 0 14px;
}

label > span,
legend {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid #e6cdb9;
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.hidden {
  display: none !important;
}

.map-home {
  min-height: 100vh;
  margin: -14px -14px -92px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.map-home.is-route-pending .map-side-actions {
  display: none;
}

.map-home.is-route-pending .h5-checkin-bar {
  display: none;
}

.map-title-card {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  z-index: 4;
  width: min(calc(100% - 28px), 402px);
  transform: translateX(-50%);
  padding: 2px 8px 4px;
  text-align: center;
  border-radius: 10px 12px 11px 13px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.map-title-card h1 {
  margin: 0;
  color: #3d2d25;
  font-size: clamp(20px, 5.7vw, 28px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    2px 0 0 #fffdf2,
    -2px 0 0 #fffdf2,
    0 2px 0 #fffdf2,
    0 -2px 0 #fffdf2,
    1.5px 1.5px 0 #fffdf2,
    -1.5px 1.5px 0 #fffdf2,
    1.5px -1.5px 0 #fffdf2,
    -1.5px -1.5px 0 #fffdf2,
    0 4px 10px rgba(80, 60, 45, 0.10);
}

.map-title-card p {
  margin: 8px 0 0;
  color: #6f6259;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.map-progress-widget {
  position: absolute;
  top: max(106px, calc(env(safe-area-inset-top) + 106px));
  left: 16px;
  z-index: 3;
  width: min(calc(100% - 32px), 398px);
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 242, 0.34);
  box-shadow:
    0 8px 20px rgba(80, 60, 45, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(1.5px);
}

.map-progress-badge {
  min-width: 54px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 248, 230, 0.70);
  border: 1px solid rgba(152, 121, 80, 0.13);
  color: #5d513f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    0 2px 6px rgba(104, 72, 43, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.map-progress-badge span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #78bd3f;
  box-shadow: 0 0 0 3px rgba(120, 189, 63, 0.12);
}

@keyframes map-badge-star-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.map-progress-track {
  min-width: 0;
  min-height: 34px;
  display: block;
  padding-left: 12px !important;
  padding-right: 12px !important;
  overflow: hidden;
}

.map-progress-track::before,
.map-progress-track::after {
  content: none;
}

.map-home.is-route-pending .map-progress-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(3px, 1.4vw, 7px);
}

.map-home.is-route-pending .map-progress-widget {
  display: none;
}

.route-pending-dot {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 253, 242, 0.72);
  box-shadow: inset 0 1px 2px rgba(104, 72, 43, 0.08);
}

.route-pending-dot.is-active {
  background: #f39800;
  box-shadow:
    0 3px 8px rgba(243, 152, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.vine-progress {
  position: relative;
  width: 100%;
  height: 34px;
  overflow: hidden;
}

.vine-progress-base,
.vine-progress-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vine-progress-base path {
  fill: none;
  stroke: rgba(126, 157, 91, 0.26);
  stroke-width: 1.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.vine-main {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: d 0.3s ease;
}

.vine-main {
  stroke: #61aa36;
  stroke-width: 1.9;
  filter: drop-shadow(0 1px 2px rgba(46, 95, 30, 0.12));
}

.vine-bud {
  fill: #70b83b;
  filter: drop-shadow(0 1px 1px rgba(44, 89, 31, 0.10));
}

.map-progress-count {
  min-width: 42px;
  align-self: center;
  justify-self: end;
  margin-right: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 242, 0.96);
  border: 1px solid rgba(150, 105, 66, 0.18);
  color: #4a3b32;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.72);
}

@media (max-width: 380px) {
  .map-progress-widget {
    column-gap: 6px;
    padding-inline: 8px;
  }

  .map-progress-badge {
    min-width: 44px;
    padding-inline: 7px;
    font-size: 10px;
  }

  .map-progress-badge span {
    display: none;
  }

  .map-progress-count {
    min-width: 36px;
    padding-inline: 7px;
    font-size: 11px;
  }
}

.map-node-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.map-stage-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 56px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: grid;
  justify-items: center;
  justify-content: center;
  align-content: start;
  font-weight: 900;
  -webkit-tap-highlight-color: transparent;
  transition: transform 170ms cubic-bezier(0.16, 1, 0.3, 1);
}

.map-stage-label {
  margin-bottom: 2px;
  color: #3d2d25;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow:
    1px 0 0 #fffdf2,
    -1px 0 0 #fffdf2,
    0 1px 0 #fffdf2,
    0 -1px 0 #fffdf2,
    0 2px 4px rgba(61, 52, 46, 0.10);
}

.map-stage-dot {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffdf2;
  border: 1.5px solid rgba(61, 45, 37, 0.58);
  color: #8a7a70;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
  box-shadow:
    0 4px 0 rgba(61, 45, 37, 0.16),
    0 8px 14px rgba(61, 52, 46, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.88),
    inset 0 -3px 0 rgba(221, 198, 166, 0.40);
}

.map-stage-star {
  width: 25px;
  height: 17px;
  margin-top: -1px;
  justify-self: center;
  align-self: start;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 253, 242, 0.95);
  border: 1px solid rgba(93, 64, 45, 0.30);
  color: #f6a800;
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.80);
  box-shadow:
    0 3px 5px rgba(61, 52, 46, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.map-stage-node.is-done .map-stage-dot {
  background: #f39800;
  border-color: #1b472a;
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(88, 48, 0, 0.20);
  box-shadow:
    0 4px 0 rgba(105, 66, 22, 0.28),
    0 9px 15px rgba(61, 52, 46, 0.14),
    inset 0 2px 0 rgba(255, 224, 142, 0.60),
    inset 0 -3px 0 rgba(176, 88, 0, 0.22);
}

.map-stage-node.is-done .map-stage-star {
  color: #f39800;
  border-color: rgba(27, 71, 42, 0.32);
}

.map-stage-node.is-locked {
  cursor: not-allowed;
}

.map-stage-node.is-locked .map-stage-dot,
.map-stage-node.is-locked .map-stage-label {
  filter: grayscale(0.28);
  opacity: 0.58;
}

.map-stage-node.is-locked .map-stage-label {
  color: rgba(61, 45, 37, 0.62);
}

.map-stage-node.is-locked:active {
  transform: translate(-50%, -50%);
}

.map-stage-review-mark:not(img) {
  position: absolute;
  right: 2px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #1b472a !important;
  background: #ffd254 !important;
  box-shadow: 0 2px 0 #d49b1c !important;
}

.map-stage-review-mark:not(img)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #1b472a !important;
  border-width: 0 2.5px 2.5px 0 !important;
  border-radius: 1px;
  transform: rotate(42deg) skew(-4deg);
}

.map-stage-node.is-approved .map-stage-review-mark {
  background: #ffd254 !important;
}

.map-stage-node.is-needs_changes .map-stage-review-mark {
  background: #ffd254 !important;
}

.map-stage-node.is-rejected .map-stage-review-mark {
  background: #ffd254 !important;
}

.map-stage-node:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.map-stage-node:active .map-stage-dot {
  box-shadow:
    0 2px 0 rgba(61, 45, 37, 0.16),
    0 5px 10px rgba(61, 52, 46, 0.10),
    inset 0 2px 3px rgba(61, 45, 37, 0.08);
}

.preview-map-switcher {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, calc((100vw - 430px) / 2 - 142px));
  left: auto;
  z-index: 10010;
  width: 142px;
  display: none;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(108, 84, 67, 0.12);
  box-shadow: 0 12px 28px rgba(80, 60, 45, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.preview-map-switcher.is-visible {
  display: grid;
}

.preview-map-switcher b {
  color: #5d6c62;
  font-size: 13px;
  line-height: 1.2;
}

.preview-map-switcher button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(247, 240, 232, 0.92);
  color: #6f6259;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.preview-map-switcher button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #8fdac7, #8fc9f4);
  box-shadow: 0 8px 18px rgba(80, 150, 130, 0.18);
}

@media (max-width: 760px) {
  .preview-map-switcher {
    top: auto;
    left: 50%;
    right: auto;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: min(calc(100% - 28px), 402px);
    transform: translateX(-50%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 12px 28px rgba(70, 54, 40, 0.12);
  }

  .preview-map-switcher b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .preview-map-switcher button {
    min-width: 0;
    min-height: 32px;
    padding: 0 6px;
    border-radius: 12px;
    font-size: 11px;
    text-align: center;
  }
}

.top-action-group {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.top-action-btn,
.account-switch-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  color: rgba(47, 42, 37, 0.58);
  box-shadow: 0 4px 10px rgba(70, 54, 40, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.account-switch-btn {
  display: none;
}

.account-switch-btn.is-visible {
  display: inline-flex;
}

.account-switch-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-action-btn:active,
.account-switch-btn:active {
  transform: scale(0.96);
}

/* New H5-style dashboard shell. The existing stage buttons stay in the DOM so old check-in logic is reused. */
#screen-dashboard {
  min-height: 100vh;
  background: #f8f6ef;
}

#screen-dashboard .map-home {
  min-height: 100vh;
  margin: -14px -14px -92px;
  padding: calc(228px + env(safe-area-inset-top)) 16px calc(86px + env(safe-area-inset-bottom));
  display: grid;
  align-content: start;
  gap: 10px;
  background: #f8f6ef;
  overflow: hidden auto;
}

.h5-map-bg {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: calc(308px + env(safe-area-inset-top));
  background: url("../敏宝陪伴成长营｜21天专项陪伴_files/背景图3.png") 40% -8px / auto 106% no-repeat;
  opacity: 1;
  pointer-events: none;
}

.h5-map-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 246, 239, 0.08) 0%, rgba(248, 246, 239, 0.08) 50%, rgba(248, 246, 239, 0.7) 82%, #f8f6ef 100%);
}

.h5-map-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
}

.h5-map-orbit span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 205, 113, 0.72);
  box-shadow:
    0 0 0 5px rgba(255, 196, 95, 0.09),
    0 0 18px rgba(255, 179, 82, 0.2);
  animation: h5-map-float 5.6s ease-in-out infinite;
}

.h5-map-orbit span:nth-child(1) {
  left: 28%;
  top: 78px;
}

.h5-map-orbit span:nth-child(2) {
  right: 27%;
  top: 118px;
  animation-delay: -1.4s;
  background: rgba(255, 222, 135, 0.62);
  box-shadow:
    0 0 0 6px rgba(255, 205, 113, 0.08),
    0 0 16px rgba(255, 179, 82, 0.16);
}

.h5-map-orbit span:nth-child(3) {
  right: 38%;
  top: 150px;
  animation-delay: -2.8s;
  opacity: 0.58;
}

@keyframes h5-map-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.38;
  }
  50% {
    transform: translateY(-7px) scale(1.12);
    opacity: 0.82;
  }
}

#screen-dashboard .map-title-card,
#screen-dashboard .map-progress-widget,
#screen-dashboard .h5-map-task-card,
#screen-dashboard .h5-checkin-bar,
#screen-dashboard .map-node-layer {
  position: relative;
  z-index: 1;
}

#screen-dashboard .map-title-card {
  position: absolute;
  top: calc(26px + env(safe-area-inset-top));
  left: 28px;
  right: 146px;
  z-index: 2;
  width: auto;
  transform: none;
  padding: 0;
  min-height: 0;
  display: grid;
  gap: 4px;
  text-align: left;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

#screen-dashboard .map-title-card::before {
  display: none;
}

#screen-dashboard .map-title-card::after {
  display: none;
}

.map-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  max-width: 100%;
}

#screen-dashboard .map-title-card h1 {
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
  color: #332c27;
  font-size: 22px;
  line-height: 1.16;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.74);
}

#screen-dashboard .map-title-card p {
  margin: 0;
  color: rgba(67, 58, 52, 0.62);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

#screen-dashboard .map-progress-widget {
  display: none;
}

#screen-dashboard .map-progress-badge {
  display: none;
}

#screen-dashboard .map-progress-track {
  display: none;
}

#screen-dashboard .map-progress-count {
  color: #e86958;
  min-width: 44px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 900;
}

.h5-map-task-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(101, 74, 48, 0.09);
  backdrop-filter: blur(12px);
}

.h5-map-task-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff8d75, #ffbf70);
  box-shadow: 0 10px 20px rgba(232, 105, 88, 0.18);
}

.h5-map-task-card b {
  display: block;
  color: #3d342e;
  font-size: 16px;
  font-weight: 600;
}

.h5-map-task-card p {
  margin: 4px 0 0;
  color: #806f64;
  font-size: 13px;
  line-height: 1.45;
}

#screen-dashboard .map-node-layer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  order: 3;
  padding: 0 0 8px;
  align-items: stretch;
}

#screen-dashboard .map-stage-node,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-node,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  min-width: 0;
  min-height: 116px;
  transform: none;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  column-gap: 10px;
  row-gap: 8px;
  padding: 13px 13px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 240, 0.48)),
    rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 24px rgba(150, 130, 110, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(246, 207, 154, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#screen-dashboard .map-stage-node.is-primary-stage,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage {
  grid-column: 1 / -1;
  min-height: 116px;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  row-gap: 10px;
  padding: 13px 15px 12px;
  border-color: rgba(129, 176, 157, 0.32);
  box-shadow:
    0 14px 32px rgba(150, 130, 110, 0.14),
    0 0 0 3px rgba(255, 241, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(129, 176, 157, 0.1);
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-primary-stage {
  grid-column: 1 / -1;
  min-height: 126px;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  row-gap: 12px;
  padding: 18px 18px 16px;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-primary-stage .map-stage-dot {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  transform: translate(-2px, -2px);
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-primary-stage .map-stage-label {
  max-width: calc(100% - 118px);
  font-size: 20px;
  font-weight: 600;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-primary-stage .map-stage-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-primary-stage .map-stage-cta {
  justify-self: stretch;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-secondary-stage {
  grid-column: 1 / -1;
  min-height: 104px;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 8px;
  padding: 16px;
  border-radius: 16px;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-secondary-stage .map-stage-dot {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-secondary-stage .map-stage-label {
  font-size: 17px;
  line-height: 1.3;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-secondary-stage .map-stage-desc {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-primary-stage {
  grid-column: 1 / -1;
  min-height: 156px;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 18px;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-secondary-stage {
  grid-column: 1 / -1;
  min-height: 56px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  column-gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-secondary-stage .map-stage-dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-secondary-stage .map-stage-label {
  font-size: 15px;
  line-height: 1.25;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-secondary-stage .map-stage-desc {
  display: none;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-primary-stage .map-stage-dot {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  transform: translate(-2px, -2px);
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-primary-stage .map-stage-label {
  max-width: calc(100% - 118px);
  font-size: 18px;
  line-height: 1.35;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-primary-stage .map-stage-desc {
  display: block;
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.55;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-primary-stage .map-stage-cta {
  justify-self: stretch;
  grid-column: 1 / -1;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

#screen-dashboard .map-stage-node.is-secondary-stage,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-secondary-stage,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage {
  min-height: 54px;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 252, 245, 0.58)),
    rgba(255, 255, 255, 0.64);
  border-color: rgba(255, 255, 255, 0.92);
}

#screen-dashboard .map-stage-node:active,
#screen-dashboard .map-stage-node.is-locked:active {
  transform: scale(0.98);
}

#screen-dashboard .map-stage-dot,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-dot,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-dot {
  grid-column: 1;
  grid-row: 1;
  order: 0;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  border: 0;
  color: #36aa88;
  background: #eff8f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 600;
}

#screen-dashboard .map-stage-node.is-primary-stage .map-stage-dot,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-dot,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-dot {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  filter: drop-shadow(0 5px 10px rgba(129, 176, 157, 0.18));
  align-self: start;
  justify-self: start;
  transform: none;
}

#screen-dashboard .map-stage-node.is-secondary-stage .map-stage-dot,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-secondary-stage .map-stage-dot,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-dot {
  width: 28px;
  height: 28px;
  align-self: center;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

#screen-dashboard .map-stage-node.is-secondary-stage .map-stage-dot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#screen-dashboard .map-stage-copy,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-copy,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-copy {
  display: contents;
}

#screen-dashboard .map-stage-label,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-label,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-label {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #3d342e;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28;
  text-align: left;
  white-space: normal;
  text-shadow: none;
}

#screen-dashboard .map-stage-node.is-primary-stage .map-stage-label,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-label,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

#screen-dashboard .map-stage-node.is-secondary-stage .map-stage-label,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-secondary-stage .map-stage-label,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-label {
  grid-column: 2;
  grid-row: 1;
  padding-right: 2px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(61, 52, 46, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#screen-dashboard .map-stage-node.is-secondary-stage.is-done .map-stage-label,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-secondary-stage.is-done .map-stage-label,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage.is-done .map-stage-label {
  max-width: calc(100% - 26px);
}

#screen-dashboard .map-stage-desc,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-desc,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  max-width: 100%;
  color: rgba(61, 52, 46, 0.58);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.42;
  text-align: left;
  overflow: visible;
}

#screen-dashboard .map-stage-node.is-secondary-stage .map-stage-desc,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-secondary-stage .map-stage-desc,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-desc {
  display: none;
}

#screen-dashboard .map-stage-node.is-primary-stage .map-stage-desc,
#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-desc,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-desc {
  grid-column: 2;
  color: rgba(61, 52, 46, 0.64);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.48;
}

#screen-dashboard .map-stage-cta {
  grid-column: 2;
  justify-self: end;
  min-height: 34px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #8f4f2c;
  background: linear-gradient(135deg, rgba(255, 237, 198, 0.92), rgba(255, 214, 170, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-dashboard .map-stage-cta-row {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#screen-dashboard .map-stage-cta-row .map-stage-cta {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  font-size: 13px;
}

#screen-dashboard .map-stage-cta-row .map-stage-cta.is-secondary-action {
  color: #6f5d50;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(255, 219, 178, 0.7),
    0 4px 12px rgba(150, 120, 90, 0.06);
}

#screen-dashboard .map-stage-star {
  display: none;
}

#screen-dashboard .map-stage-node.is-done {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 240, 0.48)),
    rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.9);
}

#screen-dashboard .map-stage-node.is-today-stage,
#screen-dashboard .map-stage-node.is-primary-stage {
  background:
    linear-gradient(135deg, rgba(255, 248, 235, 0.82), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.62);
  border-color: rgba(129, 176, 157, 0.32);
  box-shadow:
    0 12px 26px rgba(180, 134, 82, 0.12),
    0 0 0 3px rgba(255, 224, 177, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(246, 207, 154, 0.16);
}

#screen-dashboard .map-stage-node.is-locked {
  opacity: 0.5;
  background: rgba(240, 240, 240, 0.5);
}

#screen-dashboard .map-stage-node.is-locked .map-stage-dot {
  opacity: 0.62;
  filter: saturate(0.72) brightness(1.04);
}

#screen-dashboard .map-stage-node.is-preview-clickable-locked {
  cursor: pointer;
}

#screen-dashboard .map-stage-node.is-done .map-stage-dot {
  color: #36aa88;
  background: #eff8f3;
}

#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-done .map-stage-dot {
  background: transparent;
}

#screen-dashboard .map-stage-node.is-done .food-route-node-image {
  filter: none;
}

#screen-dashboard .map-stage-review-mark {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: min-content !important;
  height: auto !important;
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-auto-flow: row;
  align-items: start;
  justify-items: end;
  gap: 0 1px;
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
  animation: h5-complete-badge-pop 560ms cubic-bezier(0.16, 1.5, 0.34, 1) both;
}

#screen-dashboard .map-stage-review-mark::after {
  content: none !important;
}

#screen-dashboard .map-stage-review-badge {
  width: clamp(34px, 9vw, 38px);
  height: clamp(34px, 9vw, 38px);
  max-width: none !important;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(148, 112, 68, 0.12));
}

#screen-dashboard .map-stage-review-badge:nth-child(n + 4) {
  margin-top: -7px;
}

#screen-dashboard .map-stage-review-badge + .map-stage-review-badge {
  margin-right: 0;
}

#screen-dashboard .map-stage-node.is-secondary-stage .map-stage-review-mark {
  top: 6px;
  right: 6px;
  gap: 0 1px;
}

#screen-dashboard .map-stage-node.is-secondary-stage .map-stage-review-badge {
  width: 24px;
  height: 24px;
}

#screen-dashboard .map-stage-node.is-secondary-stage .map-stage-review-badge + .map-stage-review-badge {
  margin-right: 0;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-secondary-stage {
  min-height: 104px;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 44px auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 16px;
  border-radius: 16px;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-secondary-stage .map-stage-dot {
  width: 44px;
  height: 44px;
  align-self: center;
  border-radius: 12px;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-secondary-stage .map-stage-label {
  grid-column: 2;
  grid-row: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  align-self: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-secondary-stage .map-stage-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  align-self: start;
  font-size: 13px;
  line-height: 1.5;
}

#screen-dashboard .map-node-layer.has-parallel-growth-stage .map-stage-node.is-secondary-stage .map-stage-cta {
  grid-column: 1 / -1;
  justify-self: stretch;
  min-height: 36px;
  margin-top: 2px;
  font-size: 13px;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-secondary-stage {
  min-height: 104px;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 44px auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 16px;
  border-radius: 16px;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-secondary-stage .map-stage-dot {
  width: 44px;
  height: 44px;
  align-self: center;
  border-radius: 12px;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-secondary-stage .map-stage-label {
  grid-column: 2;
  grid-row: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  align-self: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-secondary-stage .map-stage-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  align-self: start;
  font-size: 13px;
  line-height: 1.5;
}

#screen-dashboard .map-node-layer.is-food-67-choice-mode .map-stage-node.is-secondary-stage .map-stage-cta {
  grid-column: 1 / -1;
  justify-self: stretch;
  min-height: 36px;
  margin-top: 2px;
  font-size: 13px;
}

@keyframes h5-complete-badge-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  42% {
    transform: scale(1.28);
    opacity: 1;
  }
  58% {
    transform: scale(0.92);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#screen-dashboard .map-stage-node.is-locked .map-stage-dot,
#screen-dashboard .map-stage-node.is-locked .map-stage-label {
  opacity: 0.62;
}

#screen-dashboard .food-route-node-image {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: contain;
}

#screen-dashboard .map-side-actions {
  position: relative;
  z-index: 1;
  right: auto;
  bottom: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#screen-dashboard .map-side-action {
  min-height: 44px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  color: #36aa88;
  box-shadow: 0 8px 20px rgba(101, 74, 48, 0.08);
}

.h5-checkin-bar {
  order: 2;
  width: 100%;
  min-height: 140px;
  margin-top: -28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 14px 15px 13px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 250, 242, 0.92)),
    rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 18px 42px rgba(70, 54, 40, 0.11),
    0 0 0 1px rgba(246, 186, 116, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
  cursor: default;
}

.h5-checkin-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.h5-checkin-journey-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.h5-checkin-journey-head b {
  min-width: 0;
  color: rgba(47, 59, 52, 0.82);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-checkin-journey-head small {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(184, 100, 58, 0.76);
  background: rgba(255, 235, 205, 0.64);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.h5-checkin-progress-core {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-top: 1px;
  text-align: center;
}

.h5-checkin-progress-core strong {
  color: #3d342e;
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
}

.h5-checkin-progress-core span {
  color: rgba(49, 67, 59, 0.6);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
}

.h5-checkin-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(242, 226, 207, 0.72);
  box-shadow: inset 0 1px 2px rgba(116, 85, 53, 0.08);
}

.h5-checkin-progress-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0b96f, #ffcf8e);
  box-shadow: 0 0 12px rgba(240, 176, 101, 0.28);
  transition: width 360ms ease;
}

.h5-checkin-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.h5-checkin-meta span {
  flex: none;
  position: relative;
  padding: 4px 9px 4px 18px;
  border-radius: 999px;
  color: #8f5938;
  background: rgba(255, 239, 214, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.h5-checkin-meta span::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #54c98e;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(84, 201, 142, 0.13);
}

.h5-checkin-meta span.is-paused {
  color: rgba(111, 91, 76, 0.66);
  background: rgba(239, 233, 224, 0.72);
}

.h5-checkin-meta span.is-paused::before {
  background: #c9b9a9;
  box-shadow: 0 0 0 3px rgba(201, 185, 169, 0.12);
}

.h5-checkin-meta span.is-live::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #54c98e;
  transform: translateY(-50%);
  animation: h5-checkin-live-dot 1.8s ease-in-out infinite;
}

@keyframes h5-checkin-live-dot {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 3px rgba(84, 201, 142, 0.14);
  }
  50% {
    transform: translateY(-50%) scale(0.88);
    box-shadow: 0 0 0 5px rgba(84, 201, 142, 0.04);
  }
}

.h5-checkin-meta b {
  min-width: 0;
  color: rgba(49, 67, 59, 0.68);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-checkin-advisor {
  min-width: 0;
  margin: -2px 0 0;
  color: rgba(49, 67, 59, 0.54);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.32;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-checkin-rule-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -5px;
}

.h5-checkin-rule-link {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(143, 89, 56, 0.78);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.h5-checkin-rule-link:active {
  transform: translateX(1px);
  color: rgba(143, 89, 56, 0.96);
}

.h5-checkin-bar > button {
  min-width: 58px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #2f7874;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 202, 127, 0.42), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, #c7f1df, #c6e9ff);
  box-shadow:
    0 8px 18px rgba(75, 154, 143, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 900;
}

.h5-checkin-bar > button:active {
  transform: scale(0.96);
}

.h5-checkin-bar > button:disabled {
  cursor: default;
  opacity: 0.62;
  box-shadow: none;
}

.quick-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  overflow-y: auto;
  background: #fbf9f6;
  pointer-events: auto;
}

.quick-login-overlay.is-visible {
  display: block;
}

.quick-login-card {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: max(54px, env(safe-area-inset-top)) 24px calc(34px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(247, 235, 225, 0.72), rgba(251, 249, 246, 0) 260px),
    #fbf9f6;
}

.login-page-brand {
  display: grid;
  gap: 8px;
  margin-bottom: 46px;
}

.login-page-brand > span {
  color: #d97d54;
  font-size: 13px;
  font-weight: 800;
}

.login-page-brand h1 {
  margin: 0;
  color: #3d342e;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
}

.login-page-brand p {
  margin: 0;
  color: #7d6a60;
  font-size: 14px;
  line-height: 1.6;
}

.quick-login-head {
  display: grid;
  gap: 6px;
  text-align: left;
}

.quick-login-head span {
  color: #d97d54;
  font-size: 13px;
  font-weight: 800;
}

.quick-login-head h2 {
  margin: 0;
  color: #3d342e;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 800;
}

.quick-login-head p {
  margin: 0;
  color: #7d6a60;
  font-size: 13px;
  line-height: 1.65;
}

.quick-login-field {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
}

.quick-login-field span {
  color: #4c4038;
  font-size: 14px;
  font-weight: 800;
}

.quick-login-field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #e7d7cc;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #3d342e;
  font-size: 16px;
}

.quick-login-field input:focus {
  border-color: #d97d54;
  box-shadow: 0 0 0 3px rgba(217, 125, 84, 0.12);
}

.quick-login-submit {
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #d97d54;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(217, 125, 84, 0.22);
}

.quick-login-submit:disabled {
  opacity: 0.72;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  gap: 8px;
}

.auth-code-row input {
  min-width: 0;
}

.auth-code-btn {
  min-height: 48px;
  border: 1px solid rgba(226, 157, 92, 0.56);
  border-radius: 8px;
  background: #fff8ef;
  color: #bb6e39;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.quick-login-register-link {
  min-height: 28px;
  margin-top: 2px;
  border: 0;
  background: transparent;
  color: #b85f3f;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

#screen-dashboard.is-entry-page > #mapHome {
  display: none;
}

@media (max-width: 360px) {
  .quick-login-card {
    padding-inline: 20px;
  }

  .login-page-brand {
    margin-bottom: 34px;
  }
}

.registration-page {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  overflow-y: auto;
  background: #fbf9f6;
}

.registration-page.is-visible {
  display: block;
}

.registration-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(247, 235, 225, 0.68), rgba(251, 249, 246, 0) 260px),
    #fbf9f6;
}

.registration-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  color: #7d6a60;
  font-size: 13px;
  font-weight: 700;
}

.registration-back {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7d6a60;
  font-weight: 700;
}

.registration-back::before {
  content: "‹";
  margin-right: 5px;
  font-size: 23px;
  line-height: 0;
  vertical-align: -2px;
}

.registration-progress {
  width: 100%;
  height: 4px;
  margin: 14px 0 38px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee5dc;
}

.registration-progress i {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: #d97d54;
  transition: width 180ms ease;
}

.registration-step {
  display: none;
}

.registration-step.is-active {
  display: block;
}

.registration-intro {
  margin-bottom: 30px;
}

.registration-intro > span {
  display: block;
  margin-bottom: 9px;
  color: #d97d54;
  font-size: 13px;
  font-weight: 800;
}

.registration-intro h1 {
  margin-bottom: 10px;
  color: #3d342e;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 800;
}

.registration-intro p {
  margin-bottom: 0;
  color: #7d6a60;
  font-size: 14px;
  line-height: 1.65;
}

.registration-field {
  display: grid;
  gap: 8px;
  margin-bottom: 21px;
}

.registration-field > span,
.registration-field legend {
  margin-bottom: 0;
  color: #4c4038;
  font-size: 14px;
  font-weight: 800;
}

.registration-field small {
  color: #9b8a80;
  font-size: 12px;
  font-weight: 500;
}

.registration-field input {
  height: 50px;
  border-color: #e7d7cc;
  border-radius: 8px;
  background: #fff;
}

.registration-field select {
  height: 50px;
  border-color: #e7d7cc;
  border-radius: 8px;
  background: #fff;
}

.registration-field input[readonly] {
  color: #7d6a60;
  background: #f6f1ec;
}

.registration-field > small {
  margin-top: -2px;
  color: #8d7d73;
  font-size: 12px;
  line-height: 1.5;
}

.registration-choice-field {
  padding: 0;
  border: 0;
}

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

.registration-choice-grid.is-two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.registration-choice-grid.is-list {
  grid-template-columns: 1fr;
}

.registration-choice-grid.is-list .registration-choice span {
  justify-content: flex-start;
  min-height: 46px;
  padding: 10px 13px;
  text-align: left;
}

.registration-choice {
  position: relative;
  display: block;
  margin: 0;
}

.registration-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.registration-choice span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #eadfd7;
  border-radius: 8px;
  background: #fff;
  color: #6c5b51;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.registration-choice input:checked + span {
  border-color: #d97d54;
  background: #fff4eb;
  color: #b85f3f;
}

.registration-derived-age {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  margin: -4px 0 21px;
  padding: 12px 14px;
  border-left: 3px solid #48b98c;
  background: #f2faf6;
}

.registration-derived-age span {
  color: #63776c;
  font-size: 13px;
}

.registration-derived-age b {
  color: #36795f;
  font-size: 14px;
  text-align: right;
}

.registration-derived-age.is-branch-age {
  margin-top: 0;
}

.registration-branch-empty {
  margin: 0;
  padding: 16px;
  border-left: 3px solid #eadfd7;
  background: #f8f4f0;
  color: #7d6a60;
  font-size: 13px;
  line-height: 1.6;
}

.registration-other-field[hidden] {
  display: none;
}

.registration-summary {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  row-gap: 16px;
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid #eadfd7;
  border-bottom: 1px solid #eadfd7;
}

.registration-summary dt {
  color: #8a766a;
  font-size: 13px;
}

.registration-summary dd {
  min-width: 0;
  margin: 0;
  color: #3d342e;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.registration-policy-notice {
  margin-top: 20px;
  padding: 14px;
  border-left: 3px solid #48b98c;
  background: #f2faf6;
}

.registration-consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.registration-consent-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #36795f;
}

.registration-consent-row label {
  color: #514a44;
  font-size: 13px;
  line-height: 1.7;
}

.registration-consent-row button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #267158;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.registration-primary:disabled {
  cursor: not-allowed;
  background: #b9b1ab;
  box-shadow: none;
}

.activity-consent-document {
  color: #463f39;
  font-size: 13px;
  line-height: 1.75;
}

.activity-consent-document header {
  padding-bottom: 12px;
  border-bottom: 1px solid #e8ded4;
}

.activity-consent-document header p {
  margin: 3px 0;
  color: #6e625a;
  font-size: 12px;
}

.activity-consent-document h3 {
  margin: 20px 0 7px;
  color: #2f5f4c;
  font-size: 15px;
}

.activity-consent-document p {
  margin: 7px 0;
}

.activity-consent-table-wrap {
  margin: 10px 0 14px;
  overflow-x: auto;
  border: 1px solid #ded5cc;
  border-radius: 6px;
}

.activity-consent-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
  line-height: 1.55;
}

.activity-consent-table-wrap th,
.activity-consent-table-wrap td {
  padding: 8px 9px;
  border-right: 1px solid #e8e0d8;
  border-bottom: 1px solid #e8e0d8;
  text-align: left;
  vertical-align: top;
}

.activity-consent-table-wrap th {
  background: #eef7f2;
  color: #2f5f4c;
  font-weight: 800;
}

.activity-consent-table-wrap th:last-child,
.activity-consent-table-wrap td:last-child {
  border-right: 0;
}

.activity-consent-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.activity-consent-document .activity-consent-read {
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
}

.registration-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 36px;
}

.registration-primary,
.registration-secondary {
  min-height: 50px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.registration-primary {
  border: 0;
  background: #d97d54;
  color: #fff;
  box-shadow: 0 10px 22px rgba(217, 125, 84, 0.22);
}

.registration-secondary {
  border: 1px solid #e4d8d0;
  background: #fff;
  color: #715f55;
}

.registration-actions .is-submit {
  display: none;
}

.registration-page[data-step="1"] .registration-secondary {
  visibility: hidden;
}

.registration-page[data-step="4"] .registration-actions {
  grid-template-columns: 1fr 2fr;
}

.registration-page[data-step="4"] .registration-actions [data-auth-action="next-registration-step"] {
  display: none;
}

.registration-page[data-step="4"] .registration-actions .is-submit {
  display: block;
}

@media (max-width: 360px) {
  .registration-shell {
    padding-inline: 16px;
  }

  .registration-intro h1 {
    font-size: 23px;
  }

  .registration-choice-grid {
    gap: 8px;
  }
}

@media (max-width: 360px) {
  #screen-dashboard .map-node-layer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .h5-map-orbit span {
    animation: none;
  }
}

.map-node-layer.is-station-mode .map-stage-node {
  width: 142px;
  height: 52px;
  grid-template-columns: 42px 1fr;
  grid-template-rows: 42px;
  column-gap: 0;
  align-items: center;
  align-content: center;
  justify-content: start;
  justify-items: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.map-node-layer.is-station-mode .map-stage-label {
  grid-column: 2;
  grid-row: 1;
  min-width: 82px;
  min-height: 34px;
  margin: 0 0 0 -10px;
  padding: 6px 16px 6px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px !important;
  border: none;
  background: rgba(255, 255, 255, 0.78);
  color: #2d4236;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 4px 12px rgba(31, 66, 45, 0.08);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-shadow: none;
  position: relative;
  z-index: 1;
}

.map-node-layer.is-station-mode .map-stage-dot {
  grid-column: 1;
  grid-row: 1;
  width: 40px;
  height: 40px;
  font-size: 20px;
  position: relative;
  z-index: 2;
}

.map-node-layer.is-station-mode .map-stage-star {
  display: none;
}

.map-node-layer.is-station-mode .map-stage-review-mark {
  right: 7px;
  top: 5px;
}

.map-node-layer.is-station-mode .map-stage-count {
  display: inline;
  position: static;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 11px !important;
  color: #6b7a70 !important;
  margin-left: 6px !important;
  font-weight: 800;
  line-height: 1;
}

.map-node-layer.is-image-node-mode .map-stage-node {
  width: 76px;
  height: 86px;
  align-content: center;
  gap: 2px;
}

.map-node-layer.is-image-node-mode .map-stage-label {
  order: 2;
  width: max-content;
  max-width: 112px;
  min-height: 22px;
  margin: 2px 0 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #2d4236;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(31, 66, 45, 0.08);
  text-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.map-node-layer.is-image-node-mode .map-stage-dot {
  order: 1;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.food-route-node-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 8px rgba(61, 52, 46, 0.16));
}

.food-route-node-placeholder {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px dashed rgba(91, 123, 67, 0.34);
  background: rgba(255, 253, 242, 0.72);
  color: #6b7a70;
  box-shadow: 0 5px 10px rgba(61, 52, 46, 0.08);
}

.food-route-node-placeholder b,
.food-route-node-placeholder em {
  display: block;
  line-height: 1;
}

.food-route-node-placeholder b {
  font-size: 17px;
  color: #5b7b43;
}

.food-route-node-placeholder em {
  margin-top: -12px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.map-node-layer.is-image-node-mode .map-stage-star {
  display: none;
}

.map-node-layer.is-image-node-mode .map-stage-review-mark {
  right: 8px;
  top: 8px;
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-node,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node {
  width: auto;
  height: auto;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 240, 0.48)),
    rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 24px rgba(150, 130, 110, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(246, 207, 154, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-label,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-label {
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-locked,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-locked {
  opacity: 0.5;
  background: rgba(240, 240, 240, 0.5);
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage {
  min-height: 126px;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 8px;
  padding: 15px 14px 12px;
  border-left: 3px solid rgba(255, 107, 87, 0.82);
  border-radius: 12px;
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-self: start;
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-label {
  grid-column: 2;
  align-self: center;
  font-size: 16px;
  font-weight: 800;
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-desc {
  grid-column: 2 / -1;
  max-width: 230px;
  font-size: 12px;
  line-height: 1.5;
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-cta {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  min-height: 34px;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff826f, #f35d4e);
  box-shadow: 0 10px 22px rgba(243, 93, 78, 0.2);
  font-size: 13px;
  font-weight: 800;
  justify-self: end;
  max-width: min(100%, 132px);
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-secondary-stage {
  min-height: 44px;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-secondary-stage .map-stage-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

#screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-secondary-stage .map-stage-label {
  align-self: center;
  font-size: 12px;
  font-weight: 700;
}

/* Dashboard compact layout: keep progress and today's action visible on small phones. */
#screen-dashboard .map-stage-node.is-primary-stage,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage {
  min-height: 118px;
  grid-template-columns: 46px minmax(0, 1fr);
  row-gap: 8px;
  padding: 13px 14px 12px;
}

#screen-dashboard .map-stage-node.is-primary-stage .map-stage-dot,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-dot {
  width: 46px;
  height: 46px;
}

#screen-dashboard .map-stage-node.is-primary-stage .map-stage-desc,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-desc {
  grid-column: 2;
  max-width: 100%;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#screen-dashboard .map-stage-node.is-primary-stage .map-stage-cta,
#screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-cta {
  grid-column: 2;
  min-height: 32px;
  max-width: 100%;
  padding: 0 14px;
  white-space: nowrap;
}

#screen-dashboard .map-home.is-food-67-home .map-node-layer,
#screen-dashboard .map-home.is-food-812-home .map-node-layer {
  gap: 8px;
}

#screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage,
#screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage {
  min-height: 126px;
  grid-template-columns: 46px minmax(0, 1fr);
  row-gap: 8px;
  padding: 14px 16px;
}

#screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-label,
#screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-label {
  max-width: calc(100% - 70px);
  font-size: 17px;
}

#screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-desc,
#screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-desc {
  grid-column: 2;
  font-size: 12px;
  line-height: 1.45;
}

#screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-cta,
#screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-cta {
  grid-column: 1 / -1;
  justify-self: stretch;
  min-height: 36px;
}

#screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage,
#screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage {
  min-height: 62px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  column-gap: 10px;
  padding: 10px 13px;
}

#screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-dot,
#screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-dot {
  width: 34px;
  height: 34px;
}

#screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-label,
#screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-label {
  min-height: 0;
  display: block;
  font-size: 14px;
}

#screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-desc,
#screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-desc,
#screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-cta,
#screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage .map-stage-cta {
  display: none;
}

@media (max-height: 720px), (max-width: 380px) {
  #screen-dashboard .map-home {
    padding-top: calc(204px + env(safe-area-inset-top));
    gap: 8px;
  }

  .h5-map-bg {
    height: calc(286px + env(safe-area-inset-top));
    background-size: auto 106%;
    background-position: 36% -8px;
  }

  .top-action-group {
    top: calc(14px + env(safe-area-inset-top));
    right: 14px;
  }

  #screen-dashboard .map-title-card {
    top: calc(26px + env(safe-area-inset-top));
    left: 24px;
    right: 126px;
    gap: 4px;
  }

  #screen-dashboard .map-title-card h1 {
    font-size: 22px;
    font-weight: 600;
  }

  #screen-dashboard .map-title-card p {
    font-size: 12px;
  }

  .h5-checkin-bar {
    min-height: 124px;
    margin-top: -24px;
    padding: 12px 14px 11px;
  }

  .h5-checkin-copy {
    gap: 8px;
  }

  .h5-checkin-progress-core {
    gap: 2px;
  }

  .h5-checkin-progress-core strong {
    font-size: 27px;
  }

  .h5-checkin-advisor {
    white-space: normal;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  #screen-dashboard .map-stage-node.is-primary-stage,
  #screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage,
  #screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage {
    min-height: 100px;
    padding: 11px 12px;
  }

  #screen-dashboard .map-stage-node.is-primary-stage .map-stage-dot,
  #screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-dot,
  #screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage .map-stage-dot {
    width: 40px;
    height: 40px;
  }

  #screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage {
    grid-template-columns: 38px minmax(0, 1fr);
    border-left-width: 3px;
  }

  #screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-desc,
  #screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-cta {
    grid-column: 2;
  }

  #screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-primary-stage .map-stage-cta {
    grid-row: 3;
    justify-self: end;
    min-width: 86px;
  }

  #screen-dashboard .map-stage-node.is-secondary-stage,
  #screen-dashboard .map-node-layer.is-station-mode .map-stage-node.is-secondary-stage,
  #screen-dashboard .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage {
    min-height: 42px;
    padding: 8px 10px;
  }

  #screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage,
  #screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-primary-stage {
    min-height: 116px;
    padding: 12px 14px;
  }

  #screen-dashboard .map-home.is-food-67-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage,
  #screen-dashboard .map-home.is-food-812-home .map-node-layer.is-image-node-mode .map-stage-node.is-secondary-stage {
    min-height: 52px;
    padding: 9px 12px;
  }
}

.route-pending-card {
  position: absolute;
  left: 50%;
  top: min(50%, 430px);
  width: min(calc(100% - 44px), 350px);
  max-height: calc(100vh - 238px - env(safe-area-inset-top));
  overflow-y: auto;
  padding: 22px 20px 20px;
  transform: translate(-50%, -50%);
  border-radius: 24px 28px 25px 27px;
  background: rgba(255, 253, 242, 0.88);
  border: 1px solid rgba(221, 198, 166, 0.52);
  box-shadow:
    0 18px 42px rgba(80, 60, 45, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.route-pending-card h2 {
  margin: 14px 0 10px;
  color: #2d4236;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.route-pending-card p {
  margin: 0;
  color: #6b5f55;
  font-size: 14px;
  line-height: 1.7;
}

.route-pending-card small {
  display: block;
  margin-top: 14px;
  color: #7a6f65;
  font-size: 12px;
  line-height: 1.55;
}

.route-pending-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.route-pending-options button {
  min-height: 72px;
  padding: 12px 10px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(221, 198, 166, 0.46);
  box-shadow: 0 5px 14px rgba(80, 60, 45, 0.06);
  cursor: pointer;
  text-align: center;
}

@media (max-height: 760px) {
  .route-pending-card {
    top: min(52%, 390px);
    max-height: calc(100vh - 188px - env(safe-area-inset-top));
    padding: 18px 18px 16px;
  }

  .route-pending-card h2 {
    margin-top: 10px;
    font-size: 20px;
  }

  .route-pending-card p {
    font-size: 13px;
    line-height: 1.55;
  }

  .route-pending-options {
    margin-top: 12px;
  }
}

.route-pending-options button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.route-pending-options b,
.route-pending-options em {
  display: block;
}

.route-pending-options b {
  color: #3d2d25;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.route-pending-options em {
  margin-top: 5px;
  color: #6b7a70;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.map-side-actions {
  position: absolute;
  right: 14px;
  top: 33%;
  z-index: 5;
  display: grid;
  gap: 14px;
}

.map-side-action {
  position: relative;
  width: 78px;
  height: 76px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  clip-path: none;
  color: #fff8e7;
  filter: drop-shadow(0 8px 10px rgba(61, 52, 46, 0.18));
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.map-side-action::before,
.map-side-action::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.map-side-action::before {
  inset: 0;
  z-index: 0;
  border-radius: 18px;
  background: rgba(255, 248, 231, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74), 0 10px 24px rgba(120, 92, 62, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.map-side-action::after {
  display: none;
  inset: 14px 12px;
  z-index: 0;
  border-radius: 12px;
  background: rgba(91, 54, 26, 0.12);
  opacity: 0.28;
}

.map-side-action .btn-content {
  position: absolute;
  top: calc(50% - 1px);
  left: 50%;
  z-index: 1;
  width: 78%;
  height: 58%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.map-side-action b {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-shadow: 0 1px 1px rgba(61, 45, 37, 0.55);
}

.map-side-action:active {
  transform: translateY(2px) scale(0.96);
  box-shadow:
    0 3px 8px rgba(61, 52, 46, 0.12),
    inset 0 4px 8px rgba(96, 56, 27, 0.22);
}

.map-home-header {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(251, 249, 246, 0.92), rgba(247, 235, 225, 0.76));
  border: 1px solid rgba(217, 125, 84, 0.14);
  box-shadow:
    0 18px 46px rgba(61, 52, 46, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.map-home-header h1 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.15;
}

.map-home-header p {
  margin: 4px 0 0;
  color: #6f5545;
  font-size: 14px;
  line-height: 1.45;
}

.record-list {
  display: grid;
  gap: 10px;
}

.history-card {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
}

.history-card.is-submission {
  background:
    linear-gradient(135deg, rgba(255, 244, 213, 0.45), rgba(255, 255, 255, 0.98));
}

.history-card div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.history-card b,
.history-card span,
.history-card em {
  display: block;
}

.history-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.history-card p {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.record-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  justify-content: flex-start;
}

.record-chip-row small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 210, 84, 0.18);
  border: 1px solid rgba(212, 155, 28, 0.20);
  color: #2d4236;
  font-size: 12px;
  font-weight: 800;
}

.history-card em {
  margin-top: 8px;
  color: var(--orange-deep);
  font-style: normal;
  font-size: 13px;
}

.record-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1e3d5;
  color: #8a5a3b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.soft-empty {
  padding: 14px;
  border-radius: var(--radius);
  background: #fbf9f6;
  border: 1px dashed #eadfd7;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 10020;
  transform: translate(-50%, 14px);
  width: min(86vw, 360px);
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(49, 36, 28, 0.92);
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(43, 37, 33, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 37, 33, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 360px);
  height: min(78vh, 680px);
  max-height: 78vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid #e6dcd0;
  background: #fffdf5;
  box-shadow:
    0 24px 60px rgba(43, 37, 33, 0.26),
    0 8px 20px rgba(113, 78, 43, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.modal-head {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  min-height: 64px;
  padding: 15px 16px 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 232, 170, 0.30), transparent 34%),
    #fffdf5;
  border-bottom: 1px solid rgba(230, 220, 208, 0.72);
}

.modal-head h2 {
  margin: 0;
  color: #1b472a;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.modal-head .icon-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(230, 220, 208, 0.90);
  background: #ffffff;
  color: #8a5a3b;
  font-size: 22px;
  line-height: 1;
  box-shadow:
    0 6px 14px rgba(61, 52, 46, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.modal:has(.stage-question-carousel):not(.is-soft-confirm) .modal-backdrop {
  background: rgba(43, 37, 33, 0.36);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.modal:has(.stage-question-carousel):not(.is-soft-confirm) .modal-panel {
  width: min(86vw, 390px);
  height: min(74vh, 610px);
  max-height: min(74vh, 610px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(circle at 14% 6%, rgba(255, 238, 202, 0.38), transparent 36%),
    rgba(255, 253, 247, 0.90);
  box-shadow:
    0 18px 44px rgba(43, 37, 33, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal:has(.stage-question-carousel):not(.is-soft-confirm) .modal-head {
  min-height: 58px;
  padding: 16px 20px 10px;
  background: transparent;
  border-bottom: 0;
}

.modal:has(.stage-question-carousel):not(.is-soft-confirm) .modal-head h2 {
  display: inline-grid;
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 9px;
  color: #214936;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.modal:has(.stage-question-carousel):not(.is-soft-confirm) .modal-head h2::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 42%, #9fcf70 0 18%, transparent 19%),
    radial-gradient(ellipse at 38% 60%, #78b85d 0 24%, transparent 25%),
    radial-gradient(ellipse at 58% 68%, #cddd80 0 19%, transparent 20%),
    rgba(255, 242, 213, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.modal:has(.stage-question-carousel):not(.is-soft-confirm) .modal-head .icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: rgba(72, 67, 62, 0.62);
  box-shadow: none;
  font-size: 26px;
}

.modal.is-soft-confirm .modal-backdrop {
  background: rgba(50, 45, 39, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal.is-soft-confirm .modal-panel {
  width: min(82vw, 318px);
  height: auto;
  max-height: none;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 250, 242, 0.62);
  box-shadow:
    0 18px 40px rgba(61, 52, 46, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.modal.is-soft-confirm .modal-head {
  min-height: 48px;
  padding: 12px 14px 0;
  background: transparent;
  border-bottom: 0;
}

.modal.is-soft-confirm .modal-head h2 {
  display: block;
  color: #1b472a;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
}

.modal.is-soft-confirm .modal-head .icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: rgba(38, 32, 28, 0.78);
  box-shadow: none;
  font-size: 22px;
}

.modal.is-soft-confirm .modal-body {
  padding: 8px 16px 18px;
  overflow: visible;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 14px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.modal-body::-webkit-scrollbar {
  display: none;
}

.modal-body:has(.stage-question-carousel) {
  display: flex;
  flex-direction: column;
  padding: 10px 22px 20px;
}

/* Keep fixed-page modal gestures inside the question list on mobile WebViews. */
.modal-body.has-stage-question-carousel {
  overflow: hidden;
  touch-action: pan-y;
}

.map-action-modal {
  display: grid;
  gap: 14px;
}

.rule-hero {
  padding: 15px;
  border-radius: 20px;
  border: 1px solid rgba(230, 220, 208, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 244, 213, 0.78), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.rule-hero h3 {
  margin: 10px 0 6px;
  color: #1b472a;
  font-size: 18px;
  font-weight: 900;
}

.rule-single-card {
  padding: 16px 15px;
  border-radius: 20px;
  border: 1px solid rgba(230, 220, 208, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 244, 213, 0.55), rgba(255, 255, 255, 0.98));
  box-shadow:
    0 8px 22px rgba(61, 52, 46, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.rule-single-card h3 {
  margin: 12px 0 9px;
  color: #1b472a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.rule-single-card p {
  margin: 0;
  color: #3d342e;
  font-size: 13px;
  line-height: 1.75;
}

.rule-single-card p + p {
  margin-top: 10px;
}

.compact-rule-modal {
  gap: 0;
}

.compact-rule-card {
  padding: 16px;
}

.compact-rule-card h3 {
  margin-bottom: 7px;
}

.rule-intro {
  color: rgba(61, 52, 46, 0.78) !important;
  line-height: 1.55 !important;
}

.rule-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.rule-icon-grid article {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 12px 11px;
  border-radius: 16px;
  border: 1px solid rgba(232, 207, 177, 0.66);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.rule-item-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 241, 211, 0.96);
  font-size: 18px;
}

.rule-icon-grid b {
  color: #1b472a;
  font-size: 14px;
  font-weight: 850;
}

.rule-icon-grid p {
  color: rgba(61, 52, 46, 0.72);
  font-size: 12.5px;
  line-height: 1.45;
}

.account-switch-confirm-modal {
  gap: 0;
}

.account-switch-confirm-modal .rule-single-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.confirm-soft-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-top: -18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 243, 224, 0.50)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    0 10px 20px rgba(80, 64, 50, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.confirm-soft-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f1a45d, #72b781);
  transform: rotate(45deg);
}

.account-switch-confirm-modal .rule-single-card h3 {
  margin: 4px 0 0;
  color: rgba(36, 48, 42, 0.92);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
}

.account-switch-confirm-modal .rule-single-card p {
  max-width: 236px;
  color: rgba(61, 52, 46, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.account-switch-confirm-modal .modal-action-row {
  width: 100%;
  margin-top: 8px;
}

.account-switch-confirm-modal .primary-btn,
.account-switch-confirm-modal .secondary-btn {
  min-height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}

.account-switch-confirm-modal .primary-btn {
  color: #fffaf4;
  background: rgba(45, 41, 38, 0.92);
  box-shadow: 0 8px 16px rgba(45, 41, 38, 0.12);
}

.account-switch-confirm-modal .secondary-btn {
  border-color: rgba(45, 41, 38, 0.55);
  color: rgba(45, 41, 38, 0.86);
  background: rgba(255, 255, 255, 0.18);
}

.growth-challenge-modal {
  gap: 12px;
}

.growth-challenge-modal .completion-copy strong {
  color: #1b472a;
  font-weight: 900;
}

.growth-challenge-guide-card {
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(240, 198, 116, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(61, 52, 46, 0.08);
  overflow: hidden;
}

.growth-challenge-guide-card img {
  display: block;
  width: 100%;
  max-height: min(42vh, 520px);
  object-fit: contain;
  background: #fffaf0;
}

.growth-challenge-guide-card.is-review img {
  max-height: min(34vh, 360px);
}

.growth-challenge-review-card {
  display: grid;
  gap: 10px;
}

.growth-challenge-review-card h3 {
  margin: 0;
  color: #1b472a;
  font-size: 16px;
  line-height: 1.4;
}

.growth-challenge-review-card > p,
.growth-selected-challenge span {
  margin: 0;
  color: #6f746f;
  font-size: 12px;
  line-height: 1.55;
}

.growth-observe-guide-modal .rule-single-card {
  display: grid;
  gap: 12px;
}

.growth-observe-guide-image {
  display: block;
  width: 100%;
  max-height: min(58vh, 620px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(230, 220, 208, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(61, 52, 46, 0.08);
}

.growth-observe-guide-image.compact {
  max-height: min(42vh, 420px);
  margin: 8px 0;
}

.growth-challenge-list {
  display: grid;
  gap: 9px;
}

.growth-challenge-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(230, 220, 208, 0.82);
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.growth-challenge-option.is-selected {
  background: rgba(236, 247, 229, 0.96);
  border-color: rgba(27, 71, 42, 0.52);
  box-shadow: 0 0 0 2px rgba(111, 164, 111, 0.16);
}

.growth-challenge-list b {
  display: block;
  color: #1b472a;
  font-size: 15px;
  line-height: 1.35;
}

.growth-challenge-list p {
  margin: 7px 0 0;
  color: #3d2d25;
  font-size: 13px;
  line-height: 1.55;
}

.growth-challenge-list small {
  display: block;
  margin-top: 5px;
  color: #6b7a70;
  font-size: 12px;
  line-height: 1.45;
}

.growth-choice-copy b {
  display: block;
  margin: 8px 0;
  color: #2d4236;
  font-size: 13px;
}

.growth-selected-challenge strong {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(236, 247, 229, 0.96);
  color: #1b472a;
  font-size: 15px;
  line-height: 1.45;
}

.growth-selected-challenge p {
  margin: 7px 0 0;
  color: #6b7a70;
  font-size: 12px;
  line-height: 1.5;
}

.rule-hero p,
.rule-grid p {
  margin: 0;
  color: #3d342e;
  line-height: 1.65;
  font-size: 13px;
}

.rule-grid {
  display: grid;
  gap: 11px;
}

.rule-grid article {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(230, 220, 208, 0.66);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(61, 52, 46, 0.045);
}

.simplified-rule-grid article {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 238, 0.88));
  border-color: rgba(232, 207, 177, 0.62);
}

.rule-grid b {
  display: block;
  margin-bottom: 6px;
  color: #1b472a;
  font-size: 14px;
  font-weight: 900;
}

.stage-modal {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
}

.stage-locked-preview-notice {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(232, 200, 158, 0.72);
  background: rgba(255, 247, 230, 0.78);
  color: #7a5b3d;
}

.stage-locked-preview-notice b {
  display: block;
  margin-bottom: 4px;
  color: #b66a39;
  font-size: 13px;
  font-weight: 700;
}

.stage-locked-preview-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.stage-modal:has(.stage-question-carousel) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.stage-brief-card,
.stage-upload-card,
.stage-submission-card {
  border: 1px solid rgba(230, 220, 208, 0.78);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 244, 213, 0.50), rgba(255, 255, 255, 0.98));
  box-shadow:
    0 8px 22px rgba(61, 52, 46, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.stage-brief-card {
  padding: 15px;
}

.stage-hero-copy {
  display: grid;
  gap: 7px;
}

.stage-brief-card h3 {
  margin: 4px 0 0;
  color: #1b472a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.stage-brief-card p,
.stage-detail-box,
.stage-note-field textarea,
.stage-submission-card p {
  color: #3d342e;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

.stage-brief-card p {
  margin: 0;
}

.station-node-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 12px;
}

.station-node-list span {
  min-height: 52px;
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(247, 251, 239, 0.92), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(113, 184, 93, 0.20);
  color: #315b34;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.station-node-list b {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #71b85d;
  color: #fff;
  font-size: 12px;
}

.station-node-list strong,
.station-node-list em {
  grid-column: 2;
  display: block;
  font-style: normal;
}

.station-node-list strong {
  color: #245130;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.station-node-list em {
  color: rgba(61, 52, 46, 0.62);
  font-size: 12px;
  line-height: 1.25;
}

.station-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
}

.station-focus-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 125, 84, 0.14);
  color: #7a6253;
  font-size: 12px;
  font-weight: 800;
}

.stage-detail-box {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 253, 245, 0.88);
  border: 1px dashed rgba(139, 96, 72, 0.22);
}

.stage-submission-card {
  padding: 12px 13px;
  display: grid;
  gap: 7px;
  border-radius: 16px;
  background: #fffdf9;
}

.stage-submission-card.is-revision-requested {
  border: 1px solid rgba(226, 132, 76, 0.34);
  background: rgba(255, 248, 239, 0.96);
}

.stage-submission-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stage-submission-card b {
  color: #1b472a;
  font-size: 14px;
  font-weight: 800;
}

.stage-submission-card span,
.stage-submission-card small {
  color: #8a7668;
  font-size: 12px;
}

.stage-submission-card p {
  margin: 0;
}

.stage-submission-card.is-revision-requested p {
  color: #6c4630;
  line-height: 1.6;
}

.revision-prompt-modal {
  display: grid;
  gap: 14px;
}

.revision-prompt-modal [data-close-modal] {
  display: none;
}

.stage-question-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stage-question-card h3 {
  margin: 0 0 8px;
  color: #31433b;
  font-size: 16px;
  font-weight: 700;
}

.stage-question-card p {
  margin: 0 0 12px;
  color: rgba(49, 67, 59, 0.58);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.stage-question-carousel {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  overflow: hidden;
}

.stage-question-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
}

.stage-question-carousel-head p {
  margin: 0;
  color: rgba(49, 67, 59, 0.52);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.stage-question-carousel-head span {
  flex: none;
  min-width: 42px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #b96a2d;
  background: rgba(255, 239, 214, 0.78);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.stage-question-track {
  min-height: 0;
  height: auto !important;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.stage-question-track::-webkit-scrollbar {
  display: none;
}

.stage-question-slide {
  min-height: 100%;
}

.stage-question-slide[hidden] {
  display: none !important;
}

.stage-question-slide.is-active {
  display: block;
}

.stage-question-nav {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 14px 0 4px;
  background: transparent;
}

.stage-question-nav button {
  min-width: 104px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: #7a4d2e;
  background: linear-gradient(135deg, #ffd996, #f7bb67);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(205, 138, 70, 0.16);
}

.stage-question-nav button[data-question-prev] {
  min-width: 82px;
  padding: 0;
  color: rgba(71, 95, 84, 0.74);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.stage-question-nav button[data-question-prev]::before {
  content: "<";
  margin-right: 8px;
}

.stage-question-nav button[data-question-next]::after {
  content: ">";
  margin-left: 8px;
}

.stage-question-nav button[data-question-next].is-complete-action::after {
  content: none;
}

.stage-question-nav button:disabled {
  color: rgba(97, 88, 80, 0.38);
  background: transparent;
  box-shadow: none;
  cursor: default;
}

.stage-question-carousel.is-final-review [data-question-next] {
  visibility: hidden;
  pointer-events: none;
}

.stage-question-carousel[data-has-final-review="0"].is-at-last .stage-question-nav {
  display: none;
}

.stage-question-carousel.is-final-review .stage-question-carousel-head,
.stage-question-carousel.is-final-review .stage-question-track {
  display: none;
}

.stage-modal.is-final-review-layout.no-bottom-upload-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.stage-modal.is-final-review-layout.no-bottom-upload-layout .stage-reward-card {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.stage-modal.is-final-review-layout.no-bottom-upload-layout .stage-reward-card::-webkit-scrollbar {
  display: none;
}

.stage-modal.is-final-review-layout.no-bottom-upload-layout .stage-question-carousel {
  display: none;
}

.stage-modal.is-final-review-layout.no-bottom-upload-layout .stage-upload-card {
  min-height: auto;
  padding-top: 8px;
  background: rgba(255, 253, 247, 0.96);
}

.stage-modal.is-final-review-layout.no-bottom-upload-layout .stage-submit-actions {
  padding-top: 30px;
}

.stage-modal.is-final-review-layout:not(.no-bottom-upload-layout) {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.stage-modal.is-final-review-layout:not(.no-bottom-upload-layout) .stage-question-carousel {
  display: none;
}

.stage-modal.is-final-review-layout:not(.no-bottom-upload-layout):has(.stage-question-carousel.is-final-review) .stage-upload-card {
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.stage-modal.is-final-review-layout:not(.no-bottom-upload-layout):has(.stage-question-carousel.is-final-review) .stage-upload-drop {
  min-height: 0 !important;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.stage-modal.is-final-review-layout:not(.no-bottom-upload-layout):has(.stage-question-carousel.is-final-review) .stage-upload-drop:not(.has-preview) {
  min-height: 112px !important;
}

.stage-modal.is-final-review-layout:not(.no-bottom-upload-layout):has(.stage-question-carousel.is-final-review) .upload-frame-preview,
.stage-modal.is-final-review-layout:not(.no-bottom-upload-layout):has(.stage-question-carousel.is-final-review) .upload-frame-preview img,
.stage-modal.is-final-review-layout:not(.no-bottom-upload-layout):has(.stage-question-carousel.is-final-review) .upload-frame-preview video {
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

.stage-modal.is-final-review-layout:not(.no-bottom-upload-layout):has(.stage-question-carousel.is-final-review) .stage-submit-actions {
  margin-top: 0;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
  background: rgba(255, 253, 247, 0.96);
}

@media (max-height: 520px) {
  .stage-modal.is-final-review-layout:not(.no-bottom-upload-layout):has(.stage-question-carousel.is-final-review) .stage-upload-drop:not(.has-preview) {
    min-height: 0 !important;
    padding: 8px 12px;
    align-content: start !important;
    gap: 4px !important;
    overflow-y: auto;
  }

  .stage-modal.is-final-review-layout:not(.no-bottom-upload-layout):has(.stage-question-carousel.is-final-review) .stage-upload-drop:not(.has-preview)::before {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .stage-modal.is-final-review-layout:not(.no-bottom-upload-layout):has(.stage-question-carousel.is-final-review) .stage-submit-actions {
    padding-top: 26px;
  }
}

.stage-modal:has(.stage-question-carousel.is-final-review) .stage-reward-card {
  order: 1;
}

.stage-modal:has(.stage-question-carousel.is-final-review) .stage-question-carousel {
  order: 2;
  flex: 0 0 auto;
  margin-top: 0;
  align-self: stretch;
  overflow: visible;
}

.stage-modal:has(.stage-question-carousel.is-final-review) .stage-upload-card {
  order: 3;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.stage-question-carousel.is-final-review .stage-question-nav {
  display: none;
}

.stage-modal:has(.stage-question-carousel.is-final-review) .stage-upload-drop {
  min-height: 132px !important;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.62);
}

.stage-modal:has(.stage-question-carousel.is-final-review) .stage-upload-drop::before {
  width: 46px;
  height: 46px;
  font-size: 24px;
}

[data-final-stage-part][hidden] {
  display: none !important;
}

[data-before-question-content][hidden] {
  display: none !important;
}

.stage-reward-card {
  background: transparent;
}

.stage-reward-list {
  display: grid;
  gap: 8px;
}

.stage-reward-list > span,
.stage-reward-list label {
  display: block;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 247, 229, 0.88);
  border: 1px solid rgba(212, 155, 28, 0.18);
  color: #2d4236;
  font-size: 14px;
  font-weight: 800;
}

.stage-reward-list.is-selectable label {
  position: relative;
  padding-left: 34px;
  cursor: pointer;
}

.stage-reward-list.is-selectable label::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(177, 125, 49, 0.42);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-50%);
}

.stage-reward-list.is-selectable label:has(input:checked) {
  background: rgba(255, 239, 203, 0.96);
  border-color: rgba(212, 155, 28, 0.42);
  box-shadow: 0 0 0 2px rgba(212, 155, 28, 0.12);
}

.stage-reward-list.is-selectable label:has(input:checked)::before {
  border-color: rgba(212, 126, 36, 0.86);
  background: radial-gradient(circle, #d97b2a 0 42%, #fff7e5 47% 100%);
}

.stage-reward-list.is-selectable input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stage-reward-list.is-selectable label span {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.food-toolkit-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.food-month-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.food-month-select-grid button {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(239, 184, 116, 0.42);
  color: #3d342e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 235, 0.72)),
    #fffaf4;
  text-align: left;
  box-shadow: 0 8px 18px rgba(96, 84, 70, 0.06);
}

.food-month-select-grid button b {
  font-size: 15px;
  font-weight: 900;
}

.food-month-select-grid button span {
  color: rgba(61, 52, 46, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.food-month-select-card small {
  display: block;
  margin-top: 12px;
  color: rgba(61, 52, 46, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

.food-toolkit-choice {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(239, 184, 116, 0.45);
  background: #fffaf4;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.food-toolkit-choice.is-selected {
  border-color: #ffac52;
  box-shadow: 0 0 0 3px rgba(255, 172, 82, 0.20);
}

.food-toolkit-choice.is-image-collapsed {
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  gap: 8px;
}

.food-toolkit-choice.is-image-collapsed img,
.food-toolkit-choice.is-image-collapsed .food-toolkit-card-empty,
.food-toolkit-choice.is-image-collapsed small {
  display: none !important;
}

.food-toolkit-choice.is-image-collapsed.is-image-expanded {
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
}

.food-toolkit-choice.is-image-collapsed.is-image-expanded img,
.food-toolkit-choice.is-image-collapsed.is-image-expanded small {
  display: block !important;
}

.food-toolkit-choice.is-image-collapsed.is-image-expanded .food-toolkit-card-empty {
  display: grid !important;
}

.food-toolkit-choice img,
.food-toolkit-card-empty {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 244, 226, 0.92);
  display: block;
  overflow: hidden;
  color: transparent;
}

.food-toolkit-choice img {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.food-toolkit-card-empty {
  display: grid;
  place-items: center;
  color: #9b8676;
  font-size: 12px;
  font-weight: 800;
}

.food-toolkit-choice img.is-load-failed {
  opacity: 0;
}

.food-toolkit-image-action {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.food-toolkit-image-action button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: rgba(27, 71, 42, 0.92);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(27, 71, 42, 0.22);
  pointer-events: auto;
}

.food-toolkit-title-row {
  order: 1;
  min-width: 0;
  width: 100%;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 7px;
}

.food-toolkit-choice b {
  min-width: 0;
  max-width: 100%;
  color: #1b472a;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.food-toolkit-expand-toggle {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 8px;
  color: #b66a33;
  background: rgba(255, 236, 210, 0.82);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.food-toolkit-choice img,
.food-toolkit-card-empty {
  order: 2;
}

.food-toolkit-choice small {
  order: 3;
}

.food-toolkit-choice small {
  color: #7a6253;
  font-size: 12px;
  line-height: 1.35;
}

.food-plate-review-intro {
  justify-items: center;
  text-align: center;
}

.food-plate-review-intro strong {
  color: #31433b;
  font-size: 16px;
  line-height: 1.45;
}

.food-plate-review-card-image {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 244, 226, 0.92);
  display: block;
}

.food-plate-readonly-review {
  display: grid;
  gap: 12px;
}

.food-plate-review-summary {
  display: grid;
  gap: 12px;
}

.food-plate-review-summary h3 {
  margin: 0;
  color: #173f2d;
  font-size: 16px;
  line-height: 1.35;
}

.food-plate-review-summary p {
  margin: 0;
  color: rgba(61, 52, 46, 0.66);
  font-size: 13px;
  line-height: 1.6;
}

.food-plate-review-answer-list {
  display: grid;
  gap: 8px;
}

.food-plate-review-answer {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid rgba(242, 217, 185, 0.62);
}

.food-plate-review-answer span {
  color: rgba(61, 52, 46, 0.56);
  font-size: 12px;
  line-height: 1.4;
}

.food-plate-review-answer strong {
  color: #253c32;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.food-plate-review-files {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid rgba(242, 217, 185, 0.62);
}

.food-plate-review-files > b {
  color: rgba(61, 52, 46, 0.56);
  font-size: 12px;
  line-height: 1.4;
}

.food-plate-review-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.food-plate-review-file-grid .submitted-upload-preview {
  display: contents;
}

.food-plate-review-file-grid .submitted-upload-media {
  min-height: 132px;
}

.food-plate-review-file-grid .submitted-upload-file-name {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(242, 217, 185, 0.62);
}

.food-plate-review-note {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid rgba(242, 217, 185, 0.62);
}

.food-plate-review-note span {
  color: rgba(61, 52, 46, 0.56);
  font-size: 12px;
  line-height: 1.4;
}

.food-plate-review-note strong {
  color: #253c32;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.food-image-preview {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.78);
}

.food-image-preview img {
  width: min(100%, 560px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.food-image-preview button {
  position: absolute;
  right: 18px;
  top: max(16px, env(safe-area-inset-top));
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #3d342e;
  font-size: 28px;
  line-height: 1;
}

.stage-choice-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(221, 198, 166, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stage-choice-group legend {
  padding: 0;
  margin: 0 0 4px;
  color: #31433b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  float: left;
  width: 100%;
}

.stage-question-title {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  width: 100%;
  max-width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.stage-question-title i {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 239, 214, 0.78);
  color: #b96a2d;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
}

.stage-question-title b {
  min-width: 0;
  display: block;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: 1.45;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}

.stage-choice-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 13px;
  color: #31433b;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(226, 210, 190, 0.54);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stage-choice-group label span {
  min-width: 0;
  line-height: 1.35;
  text-align: left;
  text-wrap: balance;
  word-break: normal;
}

.stage-choice-group input {
  width: 17px;
  height: 17px;
  accent-color: #f8b653;
  flex: 0 0 auto;
}

.stage-choice-group label:has(input:checked) {
  color: #31433b;
  background: rgba(255, 244, 224, 0.78);
  border-color: rgba(248, 182, 83, 0.78);
  box-shadow:
    0 0 0 1px rgba(248, 182, 83, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.stage-choice-group .conditional-note {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  display: grid;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.stage-choice-group .conditional-note[hidden] {
  display: none;
}

.stage-choice-group .conditional-note textarea {
  width: 100%;
  max-width: 100%;
  min-height: 96px;
  resize: vertical;
  border-radius: 14px;
  border: 1.5px solid rgba(235, 174, 83, 0.72);
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.96);
  color: #31433b;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  outline: none;
  box-shadow:
    inset 0 1px 3px rgba(117, 87, 45, 0.08),
    0 0 0 3px rgba(255, 196, 96, 0.12);
}

.stage-choice-group .conditional-note textarea:focus {
  border-color: rgba(235, 157, 52, 0.9);
  box-shadow:
    inset 0 1px 3px rgba(117, 87, 45, 0.08),
    0 0 0 4px rgba(255, 190, 76, 0.22);
}

.stage-choice-group .conditional-note textarea::placeholder {
  color: rgba(69, 58, 48, 0.62);
}

.stage-food-select {
  min-height: 54px;
  margin: 12px 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(82px, 0.85fr) 14px;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 198, 166, 0.38);
  box-shadow: 0 5px 14px rgba(92, 64, 38, 0.05);
}

.stage-food-select > span {
  color: #2d1f19;
  font-size: 15px;
  font-weight: 900;
}

.stage-food-select .stage-question-title b {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.stage-food-select input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #3d2d25;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.stage-food-select input::placeholder {
  color: rgba(97, 88, 80, 0.46);
}

.stage-food-select::after {
  content: "›";
  grid-column: 3;
  justify-self: end;
  color: rgba(97, 88, 80, 0.44);
  font-size: 28px;
  line-height: 1;
  pointer-events: none;
}

.stage-food-select.auto-toolkit-title {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 42%);
}

.stage-food-select.auto-toolkit-title::after {
  content: none;
}

.stage-food-select.auto-toolkit-title strong {
  color: #6d5f55;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.segmented-choice-group {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.segmented-choice-group.is-two-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented-choice-group.is-three-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segmented-choice-group.is-flex-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.segmented-choice-group.is-long-options,
.checkbox-choice-group.is-long-options {
  grid-template-columns: 1fr;
}

.segmented-choice-group.is-flex-options legend {
  grid-column: 1 / -1;
}

.segmented-choice-group.is-flex-options label {
  width: 100%;
  max-width: 100%;
}

.segmented-choice-group legend {
  grid-column: 1 / -1;
}

.segmented-choice-group label {
  min-height: 40px;
  justify-content: center;
  gap: 6px;
  padding: 8px 7px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(239, 205, 164, 0.70);
}

.stage-choice-group.is-long-options label {
  justify-content: flex-start;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 14px;
}

.stage-choice-group.is-short-grid-options label {
  min-height: 44px;
}

/* Conditional notes are form fields, not option chips. Keep them full-width. */
.stage-choice-group .conditional-note,
.stage-choice-group.is-long-options .conditional-note,
.stage-choice-group.is-short-grid-options .conditional-note {
  min-height: 0;
  padding: 0;
}

.segmented-choice-group.is-three-options label {
  min-width: 0;
  gap: 5px;
  padding-inline: 6px;
}

.segmented-choice-group.is-two-options label {
  min-height: 42px;
  padding-inline: 10px;
}

.segmented-choice-group label span {
  min-width: 0;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
}

.stage-choice-group.is-long-options label span {
  white-space: normal;
  text-align: left;
  line-height: 1.35;
}

.segmented-choice-group.is-three-options label span {
  font-size: 12px;
}

.segmented-choice-group.is-flex-options label span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}

@media (max-width: 360px) {
  .rule-icon-grid {
    gap: 8px;
  }

  .rule-icon-grid article {
    min-height: 112px;
    padding: 10px 9px;
  }

  .rule-icon-grid b {
    font-size: 13px;
  }

  .rule-icon-grid p {
    font-size: 12px !important;
  }

  .segmented-choice-group {
    gap: 7px;
  }

  .segmented-choice-group.is-three-options {
    gap: 6px;
  }

  .segmented-choice-group.is-flex-options {
    grid-template-columns: 1fr;
  }

  .segmented-choice-group label {
    gap: 4px;
    padding-inline: 5px;
  }

  .segmented-choice-group label span {
    font-size: 12px;
  }

  .segmented-choice-group.is-three-options label span {
    font-size: 11.5px;
  }
}

.segmented-choice-group input:checked + span {
  color: #1b472a;
}

.stage-choice-group input:disabled,
.stage-note-field textarea:disabled,
.stage-upload-drop input:disabled,
.stage-inline-upload input:disabled {
  cursor: not-allowed;
}

.stage-choice-group label:has(input:disabled),
.stage-note-field textarea:disabled,
.stage-upload-drop:has(input:disabled),
.stage-inline-upload:has(input:disabled) {
  opacity: 0.76;
}

.stage-inline-upload,
.stage-upload-drop {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr;
  justify-items: center !important;
  align-content: center !important;
  gap: 10px !important;
  min-height: 160px !important;
  padding: 22px 18px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(242, 182, 109, 0.62);
  background: rgba(255, 252, 246, 0.78);
  cursor: pointer;
  text-align: center;
}

.stage-inline-upload::before,
.stage-upload-drop::before {
  content: "☁";
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 180, 83, 0.14);
  color: #ffad4f;
  font-size: 30px;
  line-height: 1;
}

.stage-inline-upload input,
.stage-upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.stage-inline-upload strong,
.stage-upload-drop span {
  color: #7c6d61;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.stage-inline-upload span:not(.upload-change-btn),
.stage-upload-drop small {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0 8px;
  color: #9b8676;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
}

.stage-inline-upload.has-preview,
.stage-upload-drop.has-preview {
  padding: 0;
  overflow: hidden;
}

.stage-inline-upload.has-preview::before,
.stage-inline-upload.has-preview strong,
.stage-inline-upload.has-preview span,
.stage-upload-drop.has-preview::before,
.stage-upload-drop.has-preview span,
.stage-upload-drop.has-preview small {
  display: none;
}

.upload-frame-preview {
  width: 100%;
  height: min(44vh, 320px);
  min-height: 190px;
  display: grid;
  place-items: center;
  background: #fffaf4;
}

.upload-frame-preview img,
.upload-frame-preview video {
  width: 100%;
  height: 100%;
  min-height: 190px;
  max-height: min(44vh, 320px);
  object-fit: contain;
  display: block;
}

.upload-change-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #8a4d27 !important;
  background: rgba(255, 245, 230, 0.94);
  border: 1px solid rgba(255, 205, 148, 0.82);
  box-shadow: 0 8px 18px rgba(122, 91, 60, 0.14);
  font-size: 12px !important;
  font-weight: 700 !important;
  pointer-events: none;
}

.stage-inline-upload.is-readonly-upload .upload-change-btn,
.stage-upload-drop:has(input:disabled) .upload-change-btn {
  display: none !important;
}

.submitted-upload-preview {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 10px;
  height: auto;
  min-height: 160px;
}

.submitted-upload-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.submitted-upload-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
}

.submitted-upload-file-name {
  color: #7c6d61;
  font-size: 13px;
  word-break: break-all;
}

.growth-track-upload {
  margin-top: 6px;
}

.growth-track-upload .stage-inline-upload {
  min-height: 164px !important;
  padding-top: 20px;
  padding-bottom: 22px;
}

.growth-track-upload .stage-inline-upload span {
  color: #8f7b6e;
  font-size: 12.5px;
}

.growth-track-upload legend {
  padding-left: 0;
  border-left: 0;
  color: #31433b;
  font-size: 16px;
  font-weight: 600;
}

.growth-track-upload .inline-stage-preview {
  min-height: 0;
  border: 0;
  background: transparent;
}

.inline-stage-preview.is-hidden {
  display: none !important;
}

.growth-track-note-card {
  display: grid;
  gap: 12px;
  padding: 2px 0 0;
  background: transparent;
}

.growth-track-note-card h3 {
  margin-bottom: 2px;
  color: #263b32;
  font-size: 17px;
  font-weight: 750;
}

.growth-track-steps {
  display: grid;
  gap: 8px;
}

.growth-track-steps div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 2px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(230, 220, 208, 0.72);
  background: rgba(255, 255, 255, 0.68);
}

.growth-track-steps span {
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #83b98f;
  font-size: 12px;
  font-weight: 750;
}

.growth-track-steps b {
  color: #31433b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.growth-track-steps p {
  margin: 0;
  color: rgba(49, 67, 59, 0.62);
  font-size: 12px;
  line-height: 1.55;
}

.growth-track-example {
  padding: 10px 11px;
  border-radius: 14px;
  color: rgba(92, 68, 50, 0.78);
  background: rgba(255, 246, 230, 0.64);
  border: 1px solid rgba(239, 213, 177, 0.62);
  font-size: 12px;
  line-height: 1.55;
}

.inline-stage-preview {
  display: none;
}

.inline-stage-preview img,
.inline-stage-preview video {
  max-height: 128px;
}

.stage-note-field.compact {
  margin-top: 8px;
}

.completion-copy {
  background: rgba(236, 247, 229, 0.9);
}

.modal.is-soft-confirm .completion-copy {
  padding: 14px;
  border-radius: 16px;
  box-shadow: none;
}

.modal.is-soft-confirm:has(.completion-dialog) .modal-panel {
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}

.modal.is-soft-confirm:has(.completion-dialog) .modal-body {
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.modal.is-soft-confirm .completion-dialog {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
}

.modal.is-soft-confirm .completion-copy.has-sticky-action {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.modal.is-soft-confirm .completion-copy-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.modal.is-soft-confirm .completion-copy-scroll::-webkit-scrollbar {
  display: none;
}

.modal.is-soft-confirm .completion-copy-actions {
  padding-top: 4px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(236, 247, 229, 0.96);
}

.modal.is-soft-confirm .completion-copy p {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.65;
}

.modal.is-soft-confirm .completion-copy .primary-btn {
  min-height: 42px;
}

.food-toolkit-load-error .completion-copy {
  display: grid;
  gap: 8px;
}

.food-toolkit-load-error .completion-copy h3,
.food-toolkit-load-error .completion-copy p {
  margin: 0;
}

.food-toolkit-load-error .modal-action-row button {
  min-width: 0;
}

.stage-upload-card {
  padding: 13px;
  display: grid;
  gap: 11px;
  background: #fffdf9;
}

.stage-submit-actions {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 30px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.stage-final-prev-btn {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 86px;
  min-height: 28px;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  color: rgba(71, 95, 84, 0.74);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.stage-final-prev-btn::before {
  content: "<";
  margin-right: 8px;
}

.stage-upload-card.no-bottom-upload {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.stage-upload-card button[type="submit"]:disabled {
  min-height: 42px;
  border-radius: 14px;
  color: rgba(61, 52, 46, 0.64);
  background: rgba(239, 233, 224, 0.68);
  box-shadow: none;
  cursor: default;
}

.stage-submitted-lock {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(222, 204, 181, 0.66);
  color: rgba(61, 52, 46, 0.64);
  background: rgba(239, 233, 224, 0.68);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.stage-upload-drop.is-hidden {
  display: grid;
  min-height: 96px;
  opacity: 0.92;
}

.stage-upload-drop small,
.stage-file-meta span,
.stage-file-meta em {
  color: #8a7668;
  font-size: 12px;
  line-height: 1.45;
}

.stage-preview {
  display: none;
  min-height: 72px;
  border-radius: 18px;
  background: rgba(255, 253, 245, 0.62);
  border: 1px solid rgba(230, 220, 208, 0.56);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.stage-preview > span {
  color: #9a8779;
  font-size: 12px;
}

.stage-preview img,
.stage-preview video {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  background: #fffaf4;
}

.stage-file-meta {
  width: 100%;
  padding: 12px;
  display: grid;
  gap: 4px;
  text-align: left;
}

.stage-file-meta b {
  color: #1b472a;
  font-size: 13px;
}

.stage-file-meta em {
  font-style: normal;
}

.stage-note-field {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.stage-note-field span {
  color: #1b472a;
  font-size: 13px;
  font-weight: 600;
}

.stage-question-card .stage-note-field span {
  display: block;
  margin-bottom: 16px;
  color: #31433b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.stage-note-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 132px;
  border: 1px solid rgba(226, 210, 190, 0.54);
  border-radius: 13px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.46);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.rating-text-field {
  gap: 12px;
}

.rating-question-title {
  color: var(--ink);
  font-weight: 700;
}

.star-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 248, 235, 0.78);
  border: 1px solid rgba(239, 205, 164, 0.58);
}

.star-rating button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(204, 184, 156, 0.75);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease, background 160ms ease;
}

.star-rating button.is-active {
  color: #f5aa32;
  text-shadow: 0 2px 8px rgba(245, 170, 50, 0.22);
}

.star-rating button:active {
  transform: scale(0.92);
}

.star-rating button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.rating-optional-note {
  display: grid;
  gap: 8px;
}

.rating-optional-note span {
  color: rgba(91, 70, 53, 0.76);
  font-size: 13px;
  font-weight: 650;
}

.record-modal-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 202, 176, 0.82);
  background: #fff8ef;
}

.record-modal-summary b {
  color: var(--orange-deep);
  font-size: 24px;
  line-height: 1;
}

.record-modal-summary span {
  color: var(--muted);
  font-size: 13px;
}

.modal-map img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}

.modal-map p,
.content-detail p {
  color: var(--muted);
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--orange-deep);
  font-size: 12px;
  font-weight: 800;
}

.detail-box {
  margin: 12px 0;
  padding: 14px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  line-height: 1.7;
}

@media (max-width: 360px) {
  main {
    padding-left: 10px;
    padding-right: 10px;
  }
}

