/* 00.27-r1 · approved homepage proportions and readable pocket typography.
   All geographic SVG layers and percentage-positioned pins share atlasWorld.
   Crop the unused projection margins; never alter places or route coordinates. */
:root { --s-ink: #334c59; --s-ink-soft: #55717a; --s-muted: #73858a; }
body { background: #d9e7e5; }
body::before { position: absolute; inset: 0; height: clamp(1050px, 72vw, 1280px); background-size: cover; background-position: center top; opacity: .7; filter: none; mask-image: none; -webkit-mask-image: none; }
.topbar { padding-top: 18px; padding-bottom: 12px; }
.topbar .stage-title { font-size: clamp(20px, 1.65vw, 29px); letter-spacing: 1px; }
.brand b { font-size: 25px; }
.edition { display: none; }
.page { padding-top: 0; }
.workbench.stage-body { grid-template-columns: minmax(0, 1fr) minmax(450px, 39%); gap: 6px; }
.map-stage { min-width: 0; }
.map-top { position: relative; z-index: 12; justify-content: flex-end; flex-wrap: nowrap; padding: 3px 24px 0 9%; gap: 12px; }
.map-top .searchbox { flex: 0 1 440px; border-color: #a9bdc2; background: #f6f9f7ed; }
.searchbox input { font-size: 15px; padding: 11px 0; }
.sample { transform: none; padding: 10px 14px; text-align: center; }
.sample > span { display: none; }
.map-top .journey-steps { display: none; }
.atlas-filter { position: absolute; left: 14%; top: 58px; z-index: 11; }
.atlas-filter summary { list-style: none; cursor: pointer; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: #f6f9f7eb; color: #526c74; border: 1px solid #b9cccd; }
.atlas-filter summary::-webkit-details-marker { display: none; }
.atlas-filter[open] { width: min(650px, 80%); background: #f6f9f7f5; padding: 10px; box-shadow: 0 8px 26px #334c5926; border-radius: 16px; left: 9%; }
.atlas-filter[open] summary { width: max-content; margin-bottom: 9px; }
.atlas-filter .atlas-city-row { flex-wrap: nowrap; }
.atlas-filter .chips { min-width: 0; }
.atlas-filter .regions { padding-top: 10px; }
.atlas-filter .catalog-link { font-size: 13px; color: #55717a; }
.map-viewport { aspect-ratio: 1.04; overflow: hidden; }
.world { width: calc(135% * var(--atlas-zoom, 1)); margin-left: -11.5%; background: none; transition: width .25s; }
.map-viewport.is-zoomed { overflow: auto; }
.pin .landmark { width: clamp(64px, 4.6vw, 88px); height: clamp(64px, 4.6vw, 88px); }
.pin-label { font-size: 14px; padding: 5px 8px; border-color: #dce4df; }
.pin-label small { font-size: 11px; }
.pin .pin-dot { width: 21px; height: 21px; font-size: 11px; }
.compass { right: 24%; }
.map-companion { width: 44%; min-width: 0; left: -7%; bottom: -1%; max-width: none; }
.map-bottom { font-size: 12px; padding: 0 16px 4px; background: none; }
.geo-credit { font-size: 10px; padding: 3px 16px; background: none; }
.satchel-stage { width: 100%; max-width: none; margin-top: -12px; }
.tag-slot { gap: 12px; }
.flap-copy strong { font-size: clamp(21px, 1.4vw, 26px); font-weight: 750; letter-spacing: .5px; }
.flap-copy small { font-size: 13px; color: #63777b; margin-top: 5px; }
.slot-a { left: 13.5%; right: 11.5%; top: 50%; bottom: 3%; }
.planner-note { display: grid; grid-template-rows: auto 1fr auto; gap: 9px; height: 100%; }
.brief-row { gap: 10px; grid-template-columns: 1.35fr .8fr 1fr; }
.planner-note label { font-size: 14px; line-height: 1.4; font-weight: 550; color: #526975; }
.planner-note input, .planner-note select, .planner-note textarea { margin-top: 4px; padding: 8px 9px; font-size: 16px; line-height: 1.3; color: #334c59; border-color: #d8dfdb; background: #faf9f2; }
.wish-row { display: grid; grid-template-columns: minmax(0, 1fr) 174px; gap: 12px; align-items: end; }
.wish-label { display: block; }
.planner-note textarea { min-height: 52px; height: 52px; font-size: 15px; line-height: 1.45; }
.generate-options { font-size: 17px; font-weight: 650; padding: 14px 10px; line-height: 1.4; letter-spacing: 0; border-radius: 14px; align-self: end; }
.form-footnote { font-size: 11px; line-height: 1.35; color: #75858a; }
.slot-b { left: 12%; right: 10%; top: 6%; bottom: 5%; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.picks-strip { padding-bottom: 10px; gap: 10px; }
.picks-strip h2, .deck-copy h2 { font-size: 21px; font-weight: 700; }
.picks-strip > span { font-size: 13px; }
.mini-ghost { font-size: 13px; padding: 6px 9px; }
.satchel-ol { margin-top: 8px; max-height: 82px; }
.satchel-ol li, .satchel-ol li.helper { font-size: 15px; line-height: 1.6; }
.satchel-ol li.helper { min-height: 52px; }
.stop-index { font-size: 13px; width: 26px; height: 26px; min-width: 26px; }
.helper { font-size: 12px; line-height: 1.6; }
.trip-version { font-size: 12px; }
.day-filters { gap: 7px; margin: 10px 0; }
.day-filters button { font-size: 14px; padding: 7px 13px; }
.atlas-day h4 { font-size: 16px; line-height: 1.5; }
.atlas-day ol li { font-size: 15px; line-height: 1.5; padding: 7px 0; }
.stop-slot, .stop-loc { font-size: 11px; }
.raw-details, .raw-details .ok-body { font-size: 13px; }
.slot-c { left: 12%; right: 11%; top: 5%; bottom: 24%; overflow-y: auto; scrollbar-width: thin; }
.draw-deck { gap: 8px; height: auto; }
.deck-head { gap: 12px; flex-wrap: wrap; }
.deck-copy { flex-basis: 190px; }
.deck-copy h2 { margin-bottom: 8px; }
.deck-modes .chip { font-size: 12px; padding: 5px 9px; }
.deck-tube-wrap { width: 62px; height: 100px; max-height: none; }
.deck-postcard { display: none; }
.deck-shake { font-size: 15px; padding: 12px 16px; }
#drawHint { font-size: 12px; line-height: 1.5; }
.draw-area { overflow: visible; flex: none; }
.draw-name { font-size: 18px; }
.draw-hook { font-size: 14px; }
.draw-card .btn { font-size: 14px; padding: 7px 12px; }
.journal-shelf { margin-top: 28px; }
@media (min-width: 1021px) and (max-width: 1450px) {
  .workbench.stage-body { grid-template-columns: minmax(0, 1fr) 43%; }
  .brief-row { gap: 6px; }
  .planner-note input, .planner-note select { padding: 6px; font-size: 14px; }
  .planner-note label { font-size: 13px; }
  .planner-note { gap: 6px; }
  .wish-row { grid-template-columns: minmax(0, 1fr) 138px; gap: 8px; }
  .planner-note textarea { height: 46px; min-height: 46px; font-size: 14px; padding: 6px; }
  .generate-options { font-size: 15px; padding: 12px 6px; }
  .form-footnote { font-size: 10px; }
  .flap-copy small { font-size: 11px; }
}
@media (max-width: 1020px) {
  .workbench.stage-body { grid-template-columns: 1fr; gap: 20px; }
  .satchel-stage { order: -1; width: min(100%, 620px); margin: 0 auto; }
  .map-top { padding-left: 4%; padding-right: 4%; }
  .map-companion { width: 47%; bottom: 5%; }
}
@media (max-width: 740px) {
  .topbar { padding: 14px 12px 10px; gap: 10px; }
  .brand b { font-size: 21px; }
  .topbar .stage-title { font-size: 16px; white-space: normal; text-align: right; letter-spacing: 0; }
  .view-tabs { width: 100%; }
  .map-top { flex-wrap: wrap; }
  .map-top .searchbox { flex: 1 1 100%; }
  .sample { margin-left: auto; }
  .atlas-filter { top: 56px; left: 4%; }
  .atlas-filter[open] { width: 90%; left: 4%; }
  .atlas-filter .atlas-city-row { flex-wrap: wrap; }
  .pin .landmark { width: 44px; height: 44px; }
  .pin-label { font-size: 12px; }
  /* Reflow the paper pockets rather than scale desktop text to 8px. */
  .satchel-top { aspect-ratio: auto; height: auto; padding-top: 36%; background-image: none; }
  .satchel-stage { position: relative; background: #92a799; padding: 12px !important; border: 2px solid #61796b !important; border-radius: 42px 42px 24px 24px !important; box-shadow: inset 0 0 0 5px #acbdb0, 0 14px 24px #334c592e !important; }
  .tag-slot { left: 10%; right: 10%; top: 2%; bottom: auto; min-height: 78px; padding: 12px; border: 1px dashed #bda98b; border-radius: 20px; background: #f6f2e6; transform: rotate(-2deg); }
  .flap-copy strong { font-size: 22px; }
  .flap-copy small { font-size: 12px; white-space: normal; }
  .flap-icon { width: 40px; height: 30px; }
  .slot-a, .slot-b, .slot-c { position: relative; inset: auto; padding: 16px 13px; border: 1px dashed #c9ba9f; background: #f6f2e6; border-radius: 18px; overflow: visible; }
  .slot-a { margin-top: 0; }
  .satchel-mid, .satchel-bot { aspect-ratio: auto; background-image: none; padding-top: 12px; }
  .planner-note { gap: 14px; }
  .brief-row { grid-template-columns: 1.25fr .8fr; gap: 10px; }
  .brief-row label:nth-child(3) { grid-column: 1/-1; }
  .planner-note label { font-size: 14px; }
  .planner-note input, .planner-note select, .planner-note textarea { font-size: 16px; padding: 10px; }
  .wish-row { grid-template-columns: 1fr; gap: 12px; }
  .planner-note textarea { height: 80px; min-height: 80px; }
  .generate-options { font-size: 17px; padding: 14px; }
  .form-footnote { font-size: 12px; }
  .satchel-ol { max-height: 130px; }
  .slot-c .deck-shake { width: auto; margin-left: auto; }
  .deck-copy { flex-basis: 170px; }
  .map-bottom .subtle { display: none; }
  .geo-credit { font-size: 10px; }
}

/* Keep the current itinerary visible inside the middle paper pocket. */
.slot-b:has(#atlasTripPanel:not([hidden])) #atlasStops,
.slot-b:has(#atlasTripPanel:not([hidden])) #atlasRouteStatus,
.slot-b:has(#atlasTripPanel:not([hidden])) .picks-strip > span,
.slot-b:has(#atlasTripPanel:not([hidden])) #atlasConnect { display: none; }
.slot-b:has(#atlasTripPanel:not([hidden])) .picks-strip { padding-bottom: 5px; }
.slot-b:has(#atlasTripPanel:not([hidden])) .trip-version-row { margin: 5px 0; }
.slot-b:has(#atlasTripPanel:not([hidden])) .day-filters { margin: 6px 0; }

.deck-copy { flex-basis: 170px; }
.deck-postcard { display: block; width: 70px; height: 70px; }
.draw-deck:has(.draw-area:not([hidden])) .deck-tube-wrap { width: 36px; height: 58px; }
.draw-deck:has(.draw-area:not([hidden])) .deck-postcard,
.draw-deck:has(.draw-area:not([hidden])) #drawHint { display: none; }
.draw-deck:has(.draw-area:not([hidden])) .deck-copy h2 { font-size: 19px; margin-bottom: 5px; }
.draw-deck:has(.draw-area:not([hidden])) .deck-shake { font-size: 14px; padding: 10px 12px; }
.draw-deck:has(.draw-area:not([hidden])) .draw-cards { margin-top: 0; }
.draw-deck:has(.draw-area:not([hidden])) .draw-card { padding: 6px 9px; }
.draw-deck:has(.draw-area:not([hidden])) .draw-hook { line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.draw-deck:has(.draw-area:not([hidden])) .draw-card .btn { font-size: 13px; padding: 6px 8px; }

.slot-b, .slot-c { overflow-anchor: none; }

/* Remove retired standalone-card spacing inside the bag's lower pocket. */
.draw-deck { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 6px; }
.draw-area { margin-top: 0; }
.deck-copy h2 { line-height: 1.25; }
.deck-modes .chip { line-height: 1.2; }

/* 00.27-r2 · one illustrated scene, with foreground traveler and attached luggage tags. */
body::before { height: clamp(980px, 69vw, 1260px); opacity: .8; }
.workbench.stage-body { position: relative; grid-template-columns: minmax(0, 60.5fr) minmax(450px, 39.5fr); gap: 0; align-items: stretch; }
.map-stage { align-self: stretch; }
.map-top { position: absolute; top: 5px; left: 5%; right: 0; padding: 0; gap: 7px; justify-content: stretch; }
.map-top .searchbox { flex: 1 1 360px; }
.map-top .sample { order: 3; font-size: 12px; padding: 10px; }
.map-top .sample strong { font-size: 12px; }
.atlas-filter, .atlas-filter[open] { position: static; flex: none; width: auto; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.atlas-filter summary { margin: 0 !important; padding: 11px 12px; font-size: 13px; background: #edf3efd9; border-color: #a9bdc2; box-shadow: 0 3px 10px #334c5912; }
.atlas-filter[open]::before { content: ''; position: absolute; top: 52px; right: 0; width: min(740px, 100%); height: 148px; background: #f6f8f0f5; border: 1px solid #b4c6c2; border-radius: 14px; box-shadow: 0 10px 24px #334c5933; z-index: -1; }
.atlas-filter .atlas-city-row { position: absolute; top: 65px; left: max(0px, calc(100% - 714px)); right: 14px; padding: 0; flex-wrap: wrap; }
.atlas-filter .row-label { display: none; }
.atlas-filter .chips { flex: 1 1 100%; mask-image: none; -webkit-mask-image: none; }
.atlas-filter .catalog-link { margin-left: 0; color: #55717a; }
.atlas-filter .regions { position: absolute; top: 151px; left: max(0px, calc(100% - 714px)); right: 14px; padding: 0; gap: 3px; }
.atlas-filter .regions .chip { padding: 5px 7px; font-size: 12px; }
.atlas-filter .city-hint { position: absolute; top: 110px; right: 15px; z-index: 2; margin: 0; font-size: 11px; }
.map-viewport, .map-viewport.is-zoomed { position: absolute; inset: 54px -2% 26px -3%; aspect-ratio: auto; overflow: hidden; cursor: grab; touch-action: pan-y; border: 0; }
.map-viewport.is-zoomed { touch-action: none; }
.map-viewport.is-dragging { cursor: grabbing; user-select: none; }
.world { width: 135%; margin-left: -11.5%; transition: transform .2s ease; transform: translate(var(--atlas-pan-x, 0px), calc(var(--atlas-pan-y, 0px) - 24px)) scale(var(--atlas-zoom, 1)); transform-origin: 50% 50%; }
.map-viewport.is-dragging .world { transition: none; }
.map-companion { width: 65%; left: -12%; bottom: -1.5%; max-width: none; min-width: 0; }
.map-bottom { position: absolute; bottom: 60px; left: 53%; right: 2%; padding: 0; margin: 0; border: 0; gap: 8px; z-index: 7; align-items: end; font-size: 11px; background: none; }
.map-bottom > span { font-size: 10px; max-width: 170px; color: #3e5c67; padding: 5px 8px; border-radius: 9px; background: #f0f7f1ca; }
.map-bottom .subtle { display: none; }
.zoom { padding: 4px; background: #f3f5ecd9; border: 1px solid #aabcb5; border-radius: 12px; box-shadow: 0 3px 8px #334c5926; }
.zoom button { font-size: 13px; padding: 5px 9px; border-color: transparent; background: transparent; box-shadow: none; }
.geo-credit { position: absolute; bottom: 33px; left: 51%; right: 0; font-size: 9px; padding: 4px 8px; line-height: 1.35; color: #455f62; background: #edf4edd9; border-radius: 8px; z-index: 7; }
.satchel-stage { position: relative; width: 106%; margin: -8px 0 0 -6%; z-index: 5; }
.scene-journal { position: relative; z-index: 8; grid-column: 1/-1; margin: -22px 1% 0 28%; display: flex; gap: 15px; align-items: end; padding: 0 0 12px; }
.journal-shelf { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 0; }
.shelf-card { position: relative; padding: 11px 9px; gap: 8px; background: linear-gradient(135deg, #f3f3e9, #e5e7d9); border: 1px solid #adbcb0; border-radius: 16px 5px 14px 7px; box-shadow: inset 0 0 0 3px #eef0e5, 0 5px 8px #334c592e; transform: rotate(-2deg); min-height: 70px; }
.shelf-card::after { content: ''; position: absolute; inset: 5px; border: 1px dashed #a5b2a3; border-radius: 12px 2px 10px 4px; pointer-events: none; }
.shelf-card:nth-child(2) { background: linear-gradient(135deg, #f5e9df, #ead8ca); transform: rotate(1.5deg); }
.shelf-card:nth-child(3) { background: linear-gradient(135deg, #dbe5d5, #c7d5c0); transform: rotate(-1deg); }
.shelf-card:nth-child(4) { background: linear-gradient(135deg, #f0eddc, #dfddc8); transform: rotate(2deg); }
.shelf-card:hover { transform: translateY(-5px) rotate(0); }
.shelf-card strong { font-size: 13px; line-height: 1.45; }
.shelf-card small { font-size: 11px; margin-top: 3px; color: #647970; }
.shelf-icon { width: 30px; height: 34px; font-size: 17px; outline: none; border: none; background: none !important; }
.shelf-card b { font-size: 13px; }
.marks-area { flex: 0 1 184px; margin: 0; position: relative; align-self: center; }
.marks-area summary { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 3px 16px 5px 12px; border: 1px dashed #adad91; background: #f3eedcd9; box-shadow: 0 4px 7px #334c5926; font-size: 12px; transform: rotate(-3deg); cursor: pointer; }
.marks-area summary::-webkit-details-marker { display: none; }
.marks-area summary::before { content: '印'; display: grid; place-items: center; color: #b76b5b; border: 1px solid #b76b5b; width: 23px; height: 24px; border-radius: 6px 2px 5px 3px; }
.marks-area[open] { background: #f4f0e3; padding: 12px; border-radius: 16px; border: 1px solid #b7b8a4; box-shadow: 0 6px 18px #334c5933; }
.marks-area[open] .marks-list { max-height: 170px; overflow: auto; }
.marks-list li { border: 0; border-radius: 0; padding: 6px 0; background: none; box-shadow: none; }
.mark-text { font-size: 12px; line-height: 1.5; }
.marks-area p { font-size: 10px; margin: 8px 0 0; }

/* The attraction card is a centered paper window, never a bottom sheet. */
#detailSheet { top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(570px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: 22px 8px 20px 10px; border: 1px solid #b6bdaa; padding: 22px; box-shadow: 0 18px 70px #263e4566, inset 0 0 0 5px #eeecdf; animation: paperWindow .22s ease; }
#detailSheet .sheet-grab { display: none; }
#detailSheet h2 { font-size: 27px; margin: 16px 0 9px; }
#detailSheet .sheet-tags, #detailSheet .sheet-hook { font-size: 15px; line-height: 1.65; }
#detailSheet .sheet-art { float: right; width: 135px; height: 135px; margin: 0 0 12px 15px; background: url('/atlas/landmark-sprites.png') no-repeat var(--bpx) var(--bpy) / var(--bsx) var(--bsy); filter: drop-shadow(0 6px 5px #334c5926); }
#detailSheet .actions { clear: both; padding-top: 8px; }
@keyframes paperWindow { from { opacity: 0; transform: translate(-50%, -48%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Draw ritual: a wooden lot slides out, then a paper card turns open. */
.deck-head { display: grid; grid-template-columns: 78px minmax(0, 1fr) 130px; grid-template-rows: auto 1fr; gap: 8px 10px; min-height: 146px; }
.deck-tube-wrap { grid-column: 1; grid-row: 1/3; width: 78px; height: 130px; max-height: none; max-width: none; }
.deck-copy { grid-column: 2/4; }
.deck-postcard { grid-column: 2; grid-row: 2; width: 115px; height: 85px; }
.deck-shake { grid-column: 3; grid-row: 2; margin: 0; align-self: center; justify-self: stretch; }
.draw-deck:has(.draw-area:not([hidden])) .deck-head { grid-template-columns: 36px minmax(0, 1fr) 118px; grid-template-rows: 1fr; min-height: 58px; }
.draw-deck:has(.draw-area:not([hidden])) .deck-copy { grid-column: 2; }
.draw-deck:has(.draw-area:not([hidden])) .deck-tube-wrap { grid-row: 1; }
.draw-deck:has(.draw-area:not([hidden])) .deck-shake { grid-row: 1; }
.draw-ritual-backdrop { position: fixed; inset: 0; z-index: 55; background: #29464e70; backdrop-filter: blur(4px); }
.draw-presentation-head { display: none; }
.draw-area.is-presenting { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(1000px, calc(100% - 48px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 24px; z-index: 60; background: none; border: 0; border-radius: 0; box-shadow: none; }
.draw-area.is-presenting:has(.draw-cards[data-count='1']), .draw-area.is-presenting:not(:has(.draw-card)) { width: min(470px, calc(100% - 40px)); }
.is-presenting .draw-presentation-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #486c70; font-size: 17px; width: max-content; max-width: 100%; margin: 0 auto 27px; padding: 10px 16px; background: #f2f0e6; border: 1px dashed #a8b6a4; border-radius: 18px 5px 15px 7px; box-shadow: 0 5px 16px #213e4633; }
.is-presenting .draw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 18px; margin: 0; }
.lot-ritual { display: flex; flex-direction: column; align-items: center; min-height: 350px; padding-top: 40px; background: #edf2e7ed; border-radius: 48% 43% 39% 46%; box-shadow: 0 20px 60px #213e4633; }
.ritual-tube { display: block; position: relative; width: 185px; height: 225px; transform-origin: 50% 90%; }
.ritual-tube-art { position: absolute; inset: 0; background: url('/assets/skin/lottery-objects.png') no-repeat 0 0 / 300% 100%; filter: drop-shadow(0 8px 7px #694f3b33); }
.ritual-lot { position: absolute; left: 42%; bottom: 37%; width: 31px; height: 164px; padding-top: 15px; font-style: normal; writing-mode: vertical-rl; text-align: center; color: #715235; font-size: 16px; letter-spacing: 3px; border: 1px solid #b38d5e; border-radius: 9px 9px 3px 3px; background: repeating-linear-gradient(91deg, transparent 0 5px, #af86562b 6px 7px), linear-gradient(90deg, #d5ae76, #edcf97 45%, #c79963); box-shadow: 0 3px 6px #69513933; }
.ritual-caption { font-size: 16px; color: #597475; margin-top: 14px; }
[data-phase='shaking'] .ritual-tube { animation: ritualShake .18s ease-in-out infinite alternate; }
[data-phase='emerging'] .ritual-lot { animation: lotEmerge .65s ease-out both; }
@keyframes ritualShake { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes lotEmerge { from { transform: translateY(0) rotate(0); } to { transform: translateY(-93px) rotate(12deg); } }
.draw-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 7px 12px; background: linear-gradient(120deg, #fffdf5, #eeecdf); border: 1px solid #c5c9b7; border-radius: 3px 12px 5px 9px; box-shadow: 0 5px 9px #334c5929, inset 0 0 0 3px #f7f4e9; animation: none; }
.draw-card .draw-art { width: 84px; height: 73px; display: block; border-radius: 3px; align-self: center; }
.draw-art-known { background: url('/atlas/landmark-sprites.png') no-repeat var(--bpx) var(--bpy) / var(--bsx) var(--bsy); }
.draw-art-imagined { background: url('/assets/skin/stage-mountains.png') center / cover; position: relative; }
.draw-art-imagined i { position: absolute; bottom: 3px; left: 4px; right: 4px; text-align: center; font-style: normal; font-size: 9px; color: #45616c; background: #eef4e4b3; }
.draw-card .draw-name { margin: 4px 0; font-size: 17px; line-height: 1.3; }
.draw-card .draw-hook { font-size: 12px; line-height: 1.4; margin: 0; color: #62756d; }
.draw-card .actions { grid-column: 1/-1; gap: 6px; margin: 0; }
.draw-card .tag { font-size: 10px; padding: 2px 5px; }
.draw-card .draw-label { font-size: 11px; }
.is-presenting .draw-card { --lot-tilt: -2deg; position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 18px 17px; min-width: 0; margin: 7px 0; box-shadow: 4px 10px 18px #213e464d, inset 0 0 0 3px #faf7ed; transform: rotate(var(--lot-tilt)); animation: unfoldLot .55s cubic-bezier(.2,.8,.25,1) both; transform-origin: 50% 0; }
.is-presenting .draw-card::after { content: ''; position: absolute; top: -10px; left: 50%; width: 69px; height: 20px; transform: translateX(-50%) rotate(-5deg); background: repeating-linear-gradient(45deg, #b6c4b88f 0 4px, #d7dfd180 4px 8px); border-left: 1px dashed #92a49a; border-right: 1px dashed #92a49a; pointer-events: none; }
.is-presenting .draw-card:nth-child(2) { --lot-tilt: 2deg; animation-delay: .12s; }
.is-presenting .draw-card:nth-child(3) { --lot-tilt: -1deg; animation-delay: .24s; }
.is-presenting .draw-card .draw-art { width: 100%; height: 175px; margin-bottom: 10px; }
.is-presenting .draw-art-known { background-size: auto 100%; background-image: none; position: relative; }
.is-presenting .draw-art-known::before { content: ''; position: absolute; width: 175px; height: 175px; left: 50%; transform: translateX(-50%); background: url('/atlas/landmark-sprites.png') no-repeat var(--bpx) var(--bpy) / var(--bsx) var(--bsy); }
.is-presenting .draw-card .draw-name { font-size: 24px; margin: 10px 0; }
.is-presenting .draw-card .draw-hook { font-size: 15px; line-height: 1.7; margin: 0 0 16px; }
.is-presenting .draw-card .tag, .is-presenting .draw-label { font-size: 12px; }
.is-presenting .draw-card .btn { font-size: 14px; padding: 8px 10px; }
@keyframes unfoldLot { from { opacity: 0; transform: perspective(700px) rotateX(-55deg) translateY(-18px) rotate(var(--lot-tilt)); } to { opacity: 1; transform: perspective(700px) rotateX(0) translateY(0) rotate(var(--lot-tilt)); } }

@media (min-width: 1021px) and (max-width: 1450px) {
 .workbench.stage-body { grid-template-columns: minmax(0, 57fr) minmax(430px, 43fr); }
 .map-top { left: 0; gap: 5px; }
 .searchbox input { font-size: 13px; }
 .atlas-filter summary { padding: 10px 8px; font-size: 12px; }
 .map-top .sample { padding: 10px 7px; }
 .map-top .sample strong { font-size: 11px; }
 .scene-journal { margin-left: 19%; gap: 10px; }
 .shelf-card { padding: 9px 7px; gap: 4px; }
 .shelf-card strong { font-size: 12px; }
 .shelf-card small { font-size: 10px; }
 .marks-area { flex-basis: 160px; }
 .geo-credit { left: 47%; }
 .map-bottom { left: 45%; bottom: 67px; }
}
@media (max-width: 1020px) {
 .workbench.stage-body { grid-template-columns: 1fr; gap: 20px; }
 .satchel-stage { width: min(100%, 620px); margin: 0 auto; }
 .map-stage { min-height: 680px; }
 .map-companion { width: 60%; bottom: -3%; }
 .map-top { left: 2%; right: 2%; }
 .map-viewport { inset: 54px 0 25px; }
 .scene-journal { margin: -15px 0 0; flex-wrap: wrap; }
 .marks-area { flex-basis: auto; }
 .journal-shelf { flex-basis: 80%; }
 .geo-credit { bottom: 2px; }
 .map-bottom { bottom: 38px; }
}
@media (max-width: 740px) {
 .map-stage { min-height: 580px; }
 .map-top { gap: 6px; }
 .map-top .searchbox { flex: 1 1 100%; }
 .atlas-filter summary { padding: 8px 12px; }
 .map-viewport { inset: 96px 0 30px; }
 .atlas-filter[open]::before { top: 94px; width: 100%; height: 191px; }
 .atlas-filter .atlas-city-row { top: 104px; left: 12px; right: 12px; }
 .atlas-filter .regions { top: 225px; left: 12px; right: 12px; }
 .atlas-filter .city-hint { top: 194px; left: 12px; right: 12px; }
 .map-companion { width: 63%; left: -13%; bottom: 0; }
 .map-bottom { left: 42%; bottom: 30px; font-size: 10px; gap: 3px; }
 .map-bottom > span { display: none; }
 .geo-credit { left: 36%; right: 0; font-size: 8px; bottom: 0; }
 .journal-shelf { flex: 1 1 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .shelf-card strong { font-size: 13px; }
 .marks-area { flex-basis: 100%; }
 .marks-area summary { width: max-content; }
 .scene-journal { padding: 10px 3px; }
 .draw-area.is-presenting { padding: 20px 16px; width: calc(100% - 24px); max-height: calc(100dvh - 28px); }
 .is-presenting .draw-cards { grid-template-columns: 1fr; }
 .lot-ritual { min-height: 300px; }
 .is-presenting .draw-card .draw-art { height: 130px; }
 .is-presenting .draw-art-known::before { width: 130px; height: 130px; }
 .is-presenting .draw-card .draw-name { font-size: 22px; }
 .deck-head { grid-template-columns: 60px minmax(0, 1fr); min-height: 0; }
 .deck-tube-wrap { width: 60px; height: 100px; }
 .deck-copy { grid-column: 2; }
 .deck-shake { grid-column: 2; width: auto !important; }
 .deck-postcard { display: none; }
 .draw-deck:has(.draw-area:not([hidden])) .deck-head { grid-template-columns: 36px minmax(0, 1fr); }
 .draw-deck:has(.draw-area:not([hidden])) .deck-shake { grid-column: 2; grid-row: 2; justify-self: start; padding: 7px 12px; }
 #detailSheet { padding: 20px; }
 #detailSheet .sheet-art { width: 105px; height: 105px; }
}
@media (prefers-reduced-motion: reduce) {
 .world { transition: none; }
 .ritual-tube, .ritual-lot, .is-presenting .draw-card, #detailSheet { animation: none !important; }
}

/* 00.28 用户限定返工：不改变选定配色与整体场景。 */
.sheet { top: 50%; bottom: auto; transform: translate(-50%, -50%); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #b6bdaa; border-radius: 22px 8px 20px 10px; box-shadow: 0 18px 70px #263e4566; animation: paperWindow .22s ease; }
.sheet .sheet-grab { display: none; }
.catalog-sheet { width: min(750px, calc(100% - 32px)); padding: 22px; }
.catalog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.catalog-item { text-align: left; border: 1px dashed #b7b8a4; background: #fbf9ef; padding: 14px; border-radius: 12px 4px 10px 5px; }
.catalog-item strong { font-size: 17px; display: block; }
.catalog-item small { font-size: 12px; }
.catalog-item p { font-size: 14px; line-height: 1.55; }
.pin .landmark { background-image: var(--landmark-image, url('/atlas/landmark-sprites.png')); }
#detailSheet .sheet-art { background-image: var(--landmark-image, url('/atlas/landmark-sprites.png')); }
.draw-art-known, .is-presenting .draw-art-known::before { background-image: var(--landmark-image, url('/atlas/landmark-sprites.png')); }
.pin[data-spot="yulong"] .landmark, .pin[data-spot="erhai"] .landmark { width: 72px; height: 72px; }
.pin[data-spot="fuxianhu"] .landmark, .pin[data-spot="puzhehei"] .landmark, .pin[data-spot="luoping"] .landmark, .pin[data-spot="dashanbao"] .landmark { width: 62px; height: 62px; }
.map-bottom { bottom: 22px; left: auto; right: 5%; width: max-content; }
.zoom { gap: 0; padding: 5px; border: 1px solid #728980; border-radius: 15px 5px 13px 6px; background: linear-gradient(135deg,#edf1e8,#d3ded1); box-shadow: 0 4px 8px #334c5930, inset 0 0 0 3px #e6eadd; }
.zoom button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 35px; padding: 5px 9px; color: #35585c; border-radius: 8px; }
.zoom button:hover { background: #ffffff77; }
.zoom svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene-journal { margin-left: 19%; margin-right: 10%; }
.foot { margin: 15px 0 22px; padding: 13px 20px; color: #36545b; background: #f4f5edeF; border: 1px solid #acbeb9; border-radius: 15px 5px 13px 7px; box-shadow: 0 5px 12px #334c591c; font-size: 12px; line-height: 1.75; }
.foot p { margin: 0; }
.foot a { color: #345e68; text-decoration: underline; text-underline-offset: 2px; }
.foot .tag { font-size: 11px; padding: 2px 5px; }
.atlas-filter .city-hint { left: max(0px, calc(100% - 714px)); right: 15px; top: 112px; line-height: 1.4; }
@media (max-width: 1360px) and (min-width: 1021px) {
 .scene-journal { margin-left: 10%; margin-right: 12%; }
}
@media (max-width: 1020px) {
 .scene-journal { margin-left: 0; margin-right: 0; }
 .map-bottom { bottom: 8px; right: 4%; }
}
 @media (max-width: 740px) {
  .catalog-list { grid-template-columns: 1fr; }
  .catalog-sheet { padding: 18px; }
  .sheet { max-height: calc(100dvh - 28px); width: calc(100% - 24px); }
  .pin[data-spot="yulong"] .landmark, .pin[data-spot="erhai"] .landmark { width: 44px; height: 44px; }
  .pin[data-spot="fuxianhu"] .landmark, .pin[data-spot="puzhehei"] .landmark, .pin[data-spot="luoping"] .landmark, .pin[data-spot="dashanbao"] .landmark { width: 40px; height: 40px; }
  .map-bottom { bottom: 7px; }
  .zoom button { min-height: 32px; padding: 4px 7px; font-size: 12px; }
  .foot { font-size: 12px; padding: 12px 14px; }
  .atlas-filter .city-hint { left: 12px; top: 197px; }
 }

/* ================= 00.30 · 操作闭环（状态条/灵感提示/负载门/删站/灵感针/菜单初态） ================= */
.flow-strip { position: sticky; top: 0; z-index: 5; margin: 0 0 9px; padding: 8px 11px 9px; background: #f7f3e7; border: 1px dashed #b9ac8d; border-radius: 12px 4px 10px 5px; box-shadow: 0 3px 8px #334c5920; }
.flow-steps { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 0; padding: 0; list-style: none; font-size: 11.5px; line-height: 1.55; color: #5c6f66; }
.flow-steps li { display: flex; align-items: center; gap: 4px; min-width: 0; }
.flow-steps li b { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; font-size: 10px; color: #fdf9ef; background: #8ba394; border-radius: 50%; }
.flow-steps li.active { color: #8c4a37; font-weight: 700; }
.flow-steps li.active b { background: #c0594a; }
.flow-steps li.done b { background: #6f8f77; }
.flow-steps .skip { color: #8a978d; font-weight: 400; }
.flow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.flow-hint { flex: 1 1 150px; min-width: 0; font-size: 12px; line-height: 1.55; color: #4c6259; overflow-wrap: anywhere; }
.flow-hint b { color: #8c4a37; }
.flow-done-chip { flex: none; padding: 4px 11px; font-size: 12px; font-weight: 700; color: #fdf9ef; background: #6f8f77; border-radius: 999px; box-shadow: 0 2px 6px #334c5933; }
.insp-notice { margin: 0 0 9px; padding: 9px 11px; border: 1px dashed #b9836b; border-radius: 10px 4px 8px 5px; background: #f8eee6; font-size: 12px; line-height: 1.6; color: #6b4a3a; }
.insp-notice p { margin: 0 0 6px; overflow-wrap: anywhere; }
.insp-notice b { color: #8c4a37; }
.overload-card { margin: 0 0 9px; padding: 10px 12px; border: 1px solid #c9a24a; border-radius: 12px 5px 10px 6px; background: #faf3df; font-size: 12.5px; line-height: 1.65; color: #63552e; }
.overload-card p { margin: 0 0 6px; overflow-wrap: anywhere; }
.overload-card b { color: #8a6414; }
.stop-del { flex: none; width: 22px; height: 22px; margin-left: auto; display: inline-grid; place-items: center; font-size: 14px; line-height: 1; color: #a0524a; background: #fdf6ee; border: 1px dashed #c99c8e; border-radius: 50%; cursor: pointer; padding: 0; }
.stop-del:hover { background: #f7e3d9; }
.atlas-day ol li { display: flex; align-items: center; gap: 6px; }
.atlas-day .stop-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.atlas-day .stop-slot, .atlas-day .stop-loc { flex: none; }
.trip-version-row { flex-wrap: wrap; gap: 6px; }
.mini-ghost { flex: none; }
/* 灵感针（已核实落点+在灵感清单，未进路线）：靛蓝✦，区别于路线珊瑚数字 */
.pin.in-inspiration .pin-dot { background: #3d5a73; box-shadow: 0 0 0 2px #f4f0e6; }
.pin.in-inspiration .pin-label { border-color: #7f97a8; box-shadow: 0 2px 6px #334c5922; }
.pin.in-inspiration.in-route .pin-dot { background: #c0594a; }
/* 菜单初态资料卡 */
.menu-discover .dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 12px 0 8px; }
.dish-card { padding: 13px 14px; background: #fffdf4; border: 1px solid #cdd2bf; border-top: 3px solid #9db4a4; border-radius: 6px 14px 7px 12px; box-shadow: inset 0 0 0 3px #f5f1e4, 0 4px 9px #334c5914; }
.dish-card .dish-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dish-card h3 { margin: 0; font-size: 17px; }
.dish-region { flex: none; font-size: 11px; color: #7b6a4d; }
.dish-card .dish-line { margin: 5px 0 0; font-size: 12.5px; line-height: 1.65; color: #4d5a52; overflow-wrap: anywhere; }
.dish-card .dish-src { margin: 7px 0 8px; font-size: 11px; line-height: 1.6; color: #8b8672; overflow-wrap: anywhere; }
.dish-card .dish-src a { color: #345e68; text-underline-offset: 2px; }
/* 00.30独立返工H1：中层口袋只剩一条滚动条——内部清单自然展开（项不收缩、
   不内部滚动），外层 slot-b 统一滚动；灵感清单头行并入 sticky 流程条容器常驻。 */
.satchel-ol { max-height: none; overflow: visible; }
.flow-strip .picks-strip { margin: 9px 0 0; padding-bottom: 0; }
.slot-b > :last-child { margin-bottom: 4px; } /* 底部说明不贴边 */
.slot-b:has(#atlasTripPanel:not([hidden])) .flow-strip .picks-strip { display: none; } /* 行程展开时头行让位 */
@media (max-width: 740px) {
  .satchel-ol { max-height: none; overflow: visible; } /* 手机口袋自然展开，随页面滚动 */
  .flow-strip .picks-strip { margin: 8px 0 0; }
}

@media (max-width: 740px) {
  .flow-strip { position: static; margin-bottom: 10px; }
  .flow-steps { font-size: 11px; gap: 3px 8px; }
  .flow-actions .btn.tiny { padding: 6px 8px; font-size: 12px; }
  .insp-notice .actions, .overload-card .actions { gap: 6px; }
  .menu-discover .dish-grid { grid-template-columns: 1fr; }
  .trip-top-actions { flex-wrap: wrap; }
}

/* 00.29：行程反馈、长内容和手机端可读性，沿用已选插画与材质。 */
body:has(#viewExplore:not([hidden]))::before { position: fixed; inset: 0; height: 100dvh; background-position: center top; }
.ask-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 16px; }
.ask-box { width: 100%; min-width: 0; padding: 0 14px; background: #fffdf6; border: 1px solid #c0c9b9; border-radius: 14px 5px 13px 7px; box-shadow: inset 0 0 0 3px #f4f0e6, 0 3px 7px #334c5910; }
.ask-box:focus-within { outline: 2px solid #a9bfbd; outline-offset: 2px; }
#askInput { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 0; border: 0; background: transparent; outline: none; font: inherit; font-size: 16px; }
#askBtn { border-radius: 13px 5px 12px 7px; padding: 10px 18px; box-shadow: inset 0 0 0 3px #e8b5a43b, 0 3px 7px #334c5915; }
.tag, .scheme-badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.ok-head, .answer-head { min-width: 0; }
.slot-b { overflow: auto; padding: 0 10px 16px 0; scrollbar-gutter: stable; contain: paint; }
.slot-b > * { flex-shrink: 0; }
.atlas-day-list { max-height: none; overflow: visible; }
.slot-b, .slot-c, .sheet, .explain-thread { scrollbar-width: thin; scrollbar-color: #94a99c transparent; }
.slot-b::-webkit-scrollbar, .slot-c::-webkit-scrollbar, .sheet::-webkit-scrollbar, .explain-thread::-webkit-scrollbar { width: 6px; }
.slot-b::-webkit-scrollbar-thumb, .slot-c::-webkit-scrollbar-thumb, .sheet::-webkit-scrollbar-thumb, .explain-thread::-webkit-scrollbar-thumb { background: #94a99c; border-radius: 10px; }
textarea { scrollbar-width: thin; scrollbar-color: #94a99c transparent; }
textarea::-webkit-scrollbar { width: 6px; }
textarea::-webkit-scrollbar-thumb { background: #94a99c; border-radius: 10px; }
.atlas-raw, #atlasTripPanel > .helper { min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
#atlasTripPanel > .helper { margin: 10px 0 0; }
.atlas-day-list li { align-items: flex-start; min-width: 0; }
.stop-slot, .stop-loc { flex-shrink: 0; }
.unlocated-stops { margin: 10px 0; padding: 9px 11px; border: 1px dashed #c8b992; border-radius: 10px 4px 8px 5px; background: #f4eddd; color: #695a37; font-size: 12px; line-height: 1.6; }
.unlocated-stops summary { cursor: pointer; font-weight: 600; }
.unlocated-stops p { margin: 7px 0; }
.unlocated-stops ol { margin: 0; padding: 0; list-style: none; }
.unlocated-stops li { display: flex; align-items: baseline; gap: 7px; padding: 4px 0; }
.unlocated-stops li span:not(.stop-index) { flex: 1; }
.unlocated-stops .stop-index { flex: none; }
.map-route-caption { margin: 0; padding: 5px 8px; background: #f7f3e8eb; border: 1px dashed #acbeb9; border-radius: 10px 3px 8px 4px; font-size: 11px; line-height: 1.5; }
.map-bottom:has(.map-route-caption:not([hidden])) { flex-wrap: wrap; justify-content: flex-end; }
.map-bottom .map-route-caption { flex-basis: 100%; text-align: right; }
.route-line { stroke: #be6759; stroke-width: 4; stroke-dasharray: 8 5; }
.route-halo { stroke: #fff7e6; stroke-width: 8; }
.pin.in-route .pin-label { border-color: #be6759; box-shadow: 0 3px 8px #8d49302b; }
.scheme-section { margin: 32px 0 18px; padding: 24px; background: #ecf0e3f0; border: 1px solid #a9baae; border-radius: 24px 7px 22px 9px; box-shadow: inset 0 0 0 5px #f7f4e8a6, 0 10px 25px #334c591f; }
.scheme-header { flex-wrap: wrap; }
.scheme-header h2 { font-size: 23px; }
.scheme-map-hint { margin: 5px 0 14px; font-size: 13px; line-height: 1.6; }
.scheme-description { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.scheme-cards { align-items: stretch; }
.scheme-card { display: flex; flex-direction: column; padding: 18px; background: #fffdf4; border: 1px solid #c4c9b6; border-top-width: 4px; border-radius: 5px 18px 8px 16px; box-shadow: inset 0 0 0 4px #f4f0e7, 0 5px 10px #334c591c; }
.scheme-card h3 { font-size: 21px; }
.scheme-card p { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.scheme-days { margin-top: auto; }
.scheme-card [data-scheme-choose] { margin-top: 12px; }
@media (max-width: 740px) {
 .topbar .brand { order: 1; }
 .topbar .stage-title { order: 2; flex: 1 1 100%; width: 100%; margin: 0; text-align: left; white-space: nowrap; font-size: clamp(14px, 4vw, 17px); line-height: 1.5; }
 .topbar .view-tabs { order: 3; }
 .map-viewport .pin:not(.selected):not(.in-route) .pin-label, .map-viewport .pin .pin-label { display: flex; max-width: 95px; padding: 3px 5px; gap: 3px; font-size: 11px; line-height: 1.35; white-space: normal; }
 .map-viewport .pin .pin-dot { width: 16px; height: 16px; font-size: 10px; }
 .map-viewport .pin .pin-label small { display: none; }
 .map-stage { min-height: 654px; }
 .map-viewport { top: 170px; scroll-margin-top: 170px; }
 .map-viewport .pin .landmark { width: 22px; height: 22px; }
 .map-bottom:has(.map-route-caption:not([hidden])) { left: 38%; right: 4%; width: auto; bottom: 0; gap: 4px; }
 .map-bottom .map-route-caption { min-width: 0; overflow-wrap: anywhere; }
 .map-route-caption { padding: 4px 6px; font-size: 10px; }
 .slot-b { overflow: visible; padding: 16px 13px; scrollbar-gutter: auto; contain: none; }
 .scheme-section { margin: 24px 0 16px; padding: 16px 13px; }
 .scheme-card { font-size: 14px; transform: none; }
 .ask-row { gap: 8px; }
 #askBtn { padding: 10px 13px; }
}
