:root{color-scheme:only light;--ink:#252c2c;--muted:#68716e;--teal:#16776a;--blue:#176f68;--line:#dbe2df;background:#f5f7f5;color:var(--ink);font-family:Arial,sans-serif}
*,*::before,*::after{letter-spacing:0!important}
body{min-width:280px;background:#f5f7f5}
.interactive-shell{max-width:740px;padding:0 24px 24px;background:#fff;min-height:100vh}
.interactive-shell .intro{padding:20px 0 16px;border-bottom:1px solid var(--line)}
.booking-titlebar{grid-template-columns:minmax(0,1fr) 108px;gap:12px}
.brand-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.amur-wordmark{font-size:24px;font-weight:800;color:var(--ink)}
.test-label{font-size:10px;color:#83591b;background:#fff4d8;border:1px solid #ead9b3;padding:3px 5px;border-radius:3px}
.brand-title h1{font-size:14px;font-weight:400;flex-basis:100%;margin:0;color:var(--muted);line-height:1.3}
.booking-titlebar .language select{width:108px;min-height:42px;border-radius:6px;font-size:12px}
.stay-timeline{padding:17px 0 14px;border-bottom:1px solid var(--line)}
.timeline-heading,.journey-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.timeline-heading>div{min-width:0}
.timeline-heading h2,.journey-heading h2{font-size:16px;margin:0;line-height:1.35}
#contract-period{font-size:11px;line-height:1.4;color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere}
.date-jump{flex-shrink:0;max-width:146px}
.date-jump input{width:100%;min-width:0;min-height:38px;font-size:12px;padding:7px 6px;border:1px solid var(--line);border-radius:5px;color:var(--ink);background:#fff}
.day-browser{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;gap:6px;align-items:center;margin-top:12px}
.icon-button{display:grid;place-items:center;width:32px;height:44px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font-size:21px;padding:0}
.icon-button:hover:not(:disabled){background:#edf6f2;border-color:var(--teal)}
.day-strip{display:flex;gap:8px;overflow-x:auto;padding:3px 2px 8px;scrollbar-width:thin;scrollbar-color:#c3d0cb transparent;scroll-snap-type:x proximity;overscroll-behavior-x:contain;position:relative;min-width:0}
.stay-day{scroll-snap-align:center;flex:0 0 106px;height:138px;display:grid;grid-template-rows:17px 22px 56px minmax(0,1fr);gap:0;justify-items:center;padding:8px 5px;border:1px solid #dce3de;border-radius:6px;background:#fff;color:var(--ink);text-align:center;overflow:hidden}
.stay-day.is-selected{border:2px solid var(--teal);padding:7px 4px;background:#eef7f3;box-shadow:0 0 0 2px #16776a0c}
.day-heading{font-size:10px;color:var(--muted);text-transform:capitalize}
.day-date{font-size:16px;font-weight:700;line-height:1.3;white-space:nowrap}
.stay-day img{display:block;width:91px;height:56px;object-fit:contain;mix-blend-mode:multiply}
.bed-visual{position:relative;display:block;width:91px;height:56px}
.bed-number{position:absolute;left:55%;top:56%;transform:translate(-50%,-50%) rotate(-9deg);min-width:20px;max-width:44px;padding:1px 3px;border:1px solid #f0faf6;border-radius:2px;background:#fff;color:#17594e;font-size:10px;font-weight:700;line-height:1.1;text-align:center;overflow:hidden}
.day-status{font-size:10px;line-height:1.25;align-self:center;overflow-wrap:anywhere;max-width:100%}
.status-confirmed .day-status{font-weight:700;color:var(--teal)}
.status-past{background:#f4f4f3;color:#737b77}
.status-past img{filter:grayscale(1);opacity:.48}
.status-cancelled{background:#fff5f2;border-color:#e6c7c1}
.status-cancelled img{filter:grayscale(.8);opacity:.55}
.status-cancelled .day-status{color:#a74c3c}
.status-pending .day-status{color:#856018}
.day-detail{font-size:12px;line-height:1.5;color:var(--muted);min-height:18px;margin:7px 0 0;overflow-wrap:anywhere}
.timeline-feedback{padding:12px 0;border-bottom:1px solid var(--line);color:#83591b;font-size:12px;line-height:1.5}
.timeline-feedback p{margin:0 0 3px}
.timeline-feedback .text-button{min-height:36px;padding:4px 0}
.interactive-shell .workspace{display:block}
.interactive-shell .picker{padding:0;border:0;background:transparent}
.address-journey{padding:18px 0 0}
.journey-heading{align-items:baseline}
#answers-day{font-size:11px;color:var(--muted);margin:0;text-align:right}
.bench-scene{position:relative;aspect-ratio:800/267;margin:4px 0 0;overflow:hidden}
.bench-scene>img{width:100%;height:100%;display:block;object-fit:contain;object-position:center;mix-blend-mode:multiply}
.bench-highlight{position:absolute;inset:9px auto 0 13.75%;width:18.5%;transform:translateX(calc(var(--active-role,1)*100%));border-bottom:3px solid var(--teal);background:linear-gradient(0deg,#16776a0e,transparent 38%);pointer-events:none;transition:transform .3s ease}
.journey-roles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 13%;padding:8px 0 10px;list-style:none;border-bottom:1px solid var(--line);gap:3px}
.journey-roles li{display:flex;flex-direction:column;gap:4px;justify-content:flex-start;align-items:center;min-width:0;color:var(--muted);font-size:11px;line-height:1.35;text-align:center}
.role-name{overflow-wrap:normal;word-break:normal;min-width:min-content;max-width:calc(100% + 16px)}
.role-indicator{display:grid;place-items:center;flex:0 0 auto;width:17px;height:17px;border:1px solid #cbd6cf;border-radius:50%;font-size:9px}
.journey-roles .is-done{color:var(--teal)}
.journey-roles .is-done .role-indicator{background:#e8f5ed;border-color:#a6d0ba}
.journey-roles .is-current{color:var(--ink);font-weight:700}
.journey-roles .is-current .role-indicator{background:var(--teal);border-color:var(--teal);color:white}
.address-contour{display:flex;align-items:center;gap:13px;padding:12px 0}
.address-contour svg{width:45px;height:63px;flex-shrink:0;overflow:visible}
.address-contour>div{min-width:0}
.person-outline{fill:#f2f5f2;stroke:#c7d1c9;stroke-width:1.5}
#contour-route{fill:none;stroke:var(--teal);stroke-width:2;transition:stroke-dashoffset .35s ease}
[data-node]{fill:white;stroke:#c0ccc3;stroke-width:1.5}
[data-node].is-connected{fill:var(--teal);stroke:white}
.registration-label{font-size:10px;color:var(--muted);margin:0 0 3px}
.registration-address{font-size:12px;line-height:1.4;overflow-wrap:anywhere;margin:0}
.journey-progress{font-size:10px;color:var(--teal);margin:4px 0 0}
.interactive-shell .step-heading{padding-top:10px;border-top:1px solid var(--line)}
.interactive-shell .step-count{font-size:10px;margin:0 0 5px}
.interactive-shell .step-heading h2{font-size:20px;margin:0 0 6px;line-height:1.35;overflow-wrap:anywhere}
.interactive-shell #step-hint{font-size:12px;line-height:1.5;margin:0 0 13px}
.interactive-shell .search-wrap{min-height:48px;border-radius:6px}
.interactive-shell .search-wrap input{padding:12px 8px;font-size:16px}
.interactive-shell label[for=address]{font-size:12px;margin-bottom:6px}
.interactive-shell .coverage{font-size:10px;margin-top:6px}
.interactive-shell .search-status{margin:7px 0;min-height:17px;font-size:11px}
.interactive-shell .primary{border-radius:6px;min-height:47px;background:var(--teal);padding:12px 15px;margin-top:10px;font-size:14px}
.interactive-shell .primary:disabled{background:#e1e7e2;color:#78857d}
.interactive-shell .secondary,.interactive-shell .selected,.interactive-shell .suggestions,.interactive-shell .messages p,.interactive-shell .notice,.interactive-shell .complete,.interactive-shell .reset-confirm{border-radius:6px}
.interactive-shell .secondary{color:var(--teal)}
.interactive-shell .selected{padding:10px;margin:10px 0}
.interactive-shell .selected strong{font-size:13px}
.interactive-shell .waiting-work{padding-top:12px;margin-top:15px}
.interactive-shell .waiting-work p{font-size:12px;line-height:1.4}
.interactive-shell .complete{padding:10px;margin:8px 0 13px}
.interactive-shell .receipts{border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;padding:20px 0 0;margin-top:24px}
.interactive-shell .receipt-heading{margin-bottom:14px}
.interactive-shell .receipt-heading h2{font-size:15px}
.interactive-shell .receipt-empty{min-height:0;background:transparent;font-size:12px}
.interactive-shell .receipt-list li{padding-bottom:12px}
.interactive-shell .booking-preview{max-width:380px;margin:18px auto}
.interactive-shell .booking-preview img{border-radius:6px}
.interactive-shell .learning-profile{border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;padding:20px 0}
.interactive-shell .learning-profile #viewer-qr-frame{border-radius:6px}
.interactive-shell .footer{font-size:10px;line-height:1.5;margin-top:23px;padding-top:16px}
.interactive-shell .footer p{overflow-wrap:anywhere}
.interactive-shell .notice{font-size:13px;line-height:1.5;margin:12px 0;padding:12px}
.interactive-shell .chat-test{margin-top:16px;padding-top:14px;font-size:13px}
.interactive-shell .chat-test p{font-size:12px}
.interactive-shell button,.interactive-shell h2{overflow-wrap:anywhere}
.day-strip:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
@media(max-width:520px){
  .interactive-shell{padding:0 14px 22px}
  .interactive-shell .intro{padding:13px 0 12px}
  .stay-timeline{padding:12px 0 10px}
  .timeline-heading{gap:8px}
  .timeline-heading h2,.journey-heading h2{font-size:15px}
  .date-jump{max-width:125px}
  .date-jump input{font-size:11px}
  .day-browser{grid-template-columns:28px minmax(0,1fr) 28px;gap:4px;margin-top:9px}
  .icon-button{width:28px}
  .stay-day{flex-basis:94px;height:128px;grid-template-rows:15px 21px 49px minmax(0,1fr);padding:7px 4px}
  .stay-day.is-selected{padding:6px 3px}
  .stay-day img{height:49px;width:84px}
  .bed-visual{height:49px;width:84px}
  .day-status{font-size:9px}
  .day-date{font-size:15px}
  .day-detail{font-size:11px;margin-top:4px}
  .address-journey{padding-top:13px}
  .bench-scene{margin-top:4px}
  .journey-roles{padding:7px 0 9px}
  .journey-roles li{font-size:10px;gap:3px}
  .role-indicator{width:15px;height:15px;font-size:8px}
  .address-contour{padding:9px 0;gap:10px}
  .address-contour svg{height:52px;width:38px}
  .interactive-shell .step-heading{padding-top:9px}
  .interactive-shell .step-heading h2{font-size:18px}
  .interactive-shell #step-hint{font-size:11px;margin-bottom:10px}
}
@media(max-width:350px){
  .interactive-shell{padding:0 10px 20px}
  .date-jump{max-width:115px}
  #contract-period{font-size:10px}
  .journey-roles li{flex-direction:column;gap:3px;align-self:start}
  .role-indicator{flex-basis:auto;width:15px}
  #answers-day{font-size:10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* TEST v2: compact stays, role-specific scenes, and an illustrative address contour. */
.stay-day{height:108px;grid-template-rows:14px 20px 39px minmax(0,1fr);padding:6px 5px}
.stay-day.is-selected{padding:5px 4px}
.stay-day img,.bed-visual{height:39px;width:91px}
.day-status{font-size:10px}
.bench-scene{aspect-ratio:2/1;overflow:hidden;margin:0}
.bench-scene>img{object-fit:contain;mix-blend-mode:normal}
.bench-highlight{top:23%;bottom:0;transform:none;background:none;border-bottom-width:2px}
.registration-plaque{position:absolute;display:flex;align-items:center;justify-content:center;padding:1px 2px;color:#334941;font-size:11px;font-weight:600;line-height:1.1;text-align:center;overflow:hidden;overflow-wrap:anywhere}
.registration-plaque.is-missing{color:#776951;font-weight:400;font-size:9px}
.house-welcome{padding:0 0 4px}
.house-welcome h2{font-size:16px;font-weight:700;line-height:1.3;margin:0 0 5px;color:#37463c}
.house-welcome p{font-size:12px;line-height:1.45;margin:0 0 5px;color:#67716b;overflow-wrap:anywhere}
.house-welcome #house-welcome-address{font-size:11px;color:#16776a}
.journey-speech-rail{padding:8px 0 5px;position:relative}
.journey-speech{position:relative;width:66%;margin:0;padding:9px 11px;border:1px solid #cad8ca;border-radius:8px;color:#304638;background:#f4f8ee;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.journey-speech::after{content:'';position:absolute;bottom:-7px;left:48%;width:11px;height:11px;background:#f4f8ee;border-right:1px solid #cad8ca;border-bottom:1px solid #cad8ca;transform:rotate(45deg)}
.journey-roles{display:block;position:relative;height:47px;margin:0;padding:0;border:0}
.journey-roles li{position:absolute;left:var(--role-center);top:4px;transform:translateX(-50%);width:15.5%;font-size:11px;gap:4px}
.journey-progress{margin:0 0 10px;font-size:10px;color:var(--muted);text-align:right}
.coverage-schematic{margin:0 0 14px}
#coverage-diagram{display:block;width:100%;max-height:400px;aspect-ratio:480/340}
.coverage-band{fill:none;stroke:#cee0ce;stroke-width:34px;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.coverage-area{fill:#edf5f0;stroke:#3a8a70;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.coverage-person{fill:none;stroke:#aab9ae;stroke-width:1.6;opacity:.65}
.coverage-node{fill:#16776a;stroke:white;stroke-width:2.5}
.coverage-node.is-extra{fill:#ab793a}
.coverage-number{fill:white;font:700 18px Arial,sans-serif;text-anchor:middle;dominant-baseline:middle}
.coverage-pending{fill:#fff;stroke:#c1cbc4;stroke-width:1.5;stroke-dasharray:3 3}
.coverage-pending-number{fill:#89948c;font:400 16px Arial,sans-serif;text-anchor:middle;dominant-baseline:middle}
#coverage-caption{font-size:11px;line-height:1.5;color:var(--muted);margin-top:7px}
.interactive-shell .receipt-list .coverage-legend-item{gap:10px;padding:10px 0;border-bottom:1px solid #edf0ed;align-items:center}
.coverage-legend-item>div{min-width:0}
.coverage-legend-number{flex:0 0 25px;height:25px;display:grid;place-items:center;border:1px solid #d8dfd9;border-radius:50%;font-size:11px;color:#869088;background:white}
.is-saved .coverage-legend-number{border-color:#16776a;background:#16776a;color:white}
.is-saved .coverage-legend-number.is-extra{border-color:#ab793a;background:#ab793a}
.is-note .coverage-legend-number{color:#16776a;background:#edf5ef}
.interactive-shell .coverage-legend-item strong{font-size:11px;margin-bottom:3px;color:var(--muted)}
.interactive-shell .coverage-legend-item p{font-size:13px;line-height:1.45}
.coverage-source{font-size:11px;color:var(--muted)}
.interactive-shell .walkthrough-open{display:block;margin:10px 0 0;padding:3px 0;color:var(--teal);font-size:12px;line-height:1.45;min-height:30px}
.digital-profile-entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);align-items:center;gap:12px;margin:4px 0 16px;padding:10px 18px 10px 8px;min-height:126px;background:#f3f8f3;border-top:1px solid #e0e9df;border-bottom:1px solid #e0e9df}
.digital-profile-entry .profile-cat{display:block;width:100%;max-width:180px;height:110px;object-fit:cover;object-position:center;justify-self:center;mix-blend-mode:multiply}
.profile-action{min-width:0}
.digital-profile-entry a,.digital-profile-entry button{display:flex;align-items:center;justify-content:center;max-width:100%;width:100%;white-space:normal;text-align:center;line-height:1.45;min-height:47px;margin:0;padding:11px 12px;border:1px solid #9fbea6;border-radius:6px;color:#245a39;background:#fff;text-decoration:none;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.digital-profile-entry button:disabled{opacity:1;color:#738778;background:#edf2ec;border-color:#cedbcc}
.walkthrough-dialog{position:fixed;inset:0;margin:0;padding:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;background:white;color:var(--ink);z-index:1000}
.walkthrough-dialog[open]{display:flex;flex-direction:column}
.walkthrough-dialog:not([open]){display:none}
.walkthrough-dialog::backdrop{background:#263c3070}
.walkthrough-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex:0 0 auto;padding:10px 16px;border-bottom:1px solid var(--line);background:#f7faf5}
.walkthrough-dialog-header h2{font-size:14px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.walkthrough-dialog-header .icon-button{flex-shrink:0;width:40px;height:40px;font-size:26px}
#walkthrough-frame{display:block;flex:1 1 auto;width:100%;min-height:0;border:0;background:white}
.grandma-notebook{min-height:180px;margin-top:23px;padding:15px 12px 16px 17px;border-top:1px solid #d9e2d9;border-left:3px solid #82a28d;background:repeating-linear-gradient(to bottom,#fcfdfb 0,#fcfdfb 23px,#e9eeE7 23px,#e9eeE7 24px)}
.notebook-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 14px;background:#fcfdfb}
.interactive-shell .notebook-heading h3{color:#405347;font-size:15px;line-height:1.35;margin:0;font-weight:700}
#notebook-count{flex-shrink:0;font-size:11px;line-height:20px;color:#708474}
.notebook-entry{padding:0 0 14px;margin:0 0 9px}
.notebook-entry:last-child{padding-bottom:0;margin-bottom:0}
.notebook-entry-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:4px;font-size:11px;line-height:1.4;background:#fcfdfb}
.notebook-entry-heading strong{font-weight:700;color:#405347}
.notebook-entry-heading span{color:#778174}
.notebook-entry p{font-size:13px;line-height:24px;color:#3c473f;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.stay-day.status-confirmed{background:#fff2ad;border-color:#d9c161;color:#51491b}
.stay-day.status-confirmed.is-selected{background:#ffe782;border-color:#a78c25;box-shadow:0 0 0 2px #d3b63812}
.status-confirmed .day-status{color:#685115}
.status-confirmed .bed-number{background:#fff8cf;color:#655017;border-color:#fffef2}
.story-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0 0;border-top:1px solid #dfe5de;border-bottom:1px solid #dfe5de}
.story-panel{display:flex;flex-direction:column;justify-content:space-between;min-width:0;padding:20px 16px 0;background:#f8faf6}
.story-panel+.story-panel{border-left:1px solid #dfe5de;background:#f5f8fa}
.story-speech{position:relative;padding:13px 14px;border:1px solid #d8e1d6;border-radius:8px;background:#fff;margin-bottom:15px}
.story-speech::after{content:'';position:absolute;bottom:-7px;left:34%;width:12px;height:12px;border-right:1px solid #d8e1d6;border-bottom:1px solid #d8e1d6;background:#fff;transform:rotate(45deg)}
.story-speech p{font-size:12px;line-height:1.55;color:#475649;margin:0 0 11px;overflow-wrap:anywhere}
.story-speech p:last-child{margin-bottom:0}
.story-speech .story-office{font-weight:600;color:#314b44}
.story-speech .story-hours{font-size:11px;color:#65796a}
.story-art{display:block;width:100%;height:132px;object-fit:contain;mix-blend-mode:multiply}
.story-art[src*="profile-cat.webp"]{max-width:240px;object-fit:cover;align-self:center}
@media(max-width:680px){.story-strip{grid-template-columns:minmax(0,1fr)}.story-panel+.story-panel{border-left:0;border-top:1px solid #dfe5de}}
@media(max-width:520px){
  .stay-timeline{padding-bottom:8px}
  .day-browser{margin-top:6px}
  .stay-day{height:96px;grid-template-rows:12px 18px 32px minmax(0,1fr);padding:5px 4px}
  .stay-day.is-selected{padding:4px 3px}
  .stay-day img,.bed-visual{height:32px;width:84px}
  .bed-number{font-size:8px;min-width:16px;padding:1px 2px}
  .day-heading{font-size:9px}
  .day-date{font-size:14px}
  .day-status{font-size:9px}
  .house-welcome h2{font-size:15px}
  .house-welcome p{font-size:11px;line-height:1.4}
  .house-welcome #house-welcome-address{font-size:10px}
  .journey-speech{font-size:11px;padding:7px 9px;line-height:1.35}
  .journey-roles{height:44px}
  .journey-roles li{font-size:10px;gap:3px}
  .registration-plaque{font-size:8px;line-height:1.1;padding:0 1px}
  .registration-plaque.is-missing{font-size:8px}
  .interactive-shell .receipt-heading{margin-bottom:4px}
  .digital-profile-entry{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;padding:7px 12px 7px 4px;min-height:105px}
  .digital-profile-entry .profile-cat{height:94px}
  .digital-profile-entry a,.digital-profile-entry button{font-size:12px;padding:9px 8px;min-height:44px}
  .story-strip{grid-template-columns:minmax(0,1fr)}
  .story-panel{padding:17px 12px 0}
  .story-panel+.story-panel{border-left:0;border-top:1px solid #dfe5de}
  .story-speech{padding:12px 13px}
  .story-speech p{font-size:12px}
  .story-art{height:135px}
}

/* The address and manual-entry forms remain siblings while sharing one scene. */
.day-browser{margin-top:0}
.bench-scene{aspect-ratio:auto;background:#e7e1d7}
.bench-art{position:relative;aspect-ratio:2/1}
.bench-art>img{display:block;width:100%;height:100%;object-fit:contain}
.bench-scene .journey-speech-rail{position:relative;min-height:78px;padding:11px 8px 14px;background:#e7e1d7}
.bench-scene .journey-speech{width:86%;min-height:46px;padding:10px 12px;font-size:14px;line-height:1.45;background:#fffdf8;border-color:#cbc8b9}
.bench-scene .journey-speech::after{top:-7px;bottom:auto;left:var(--speaker-tail,40%);background:#fffdf8;border:0;border-left:1px solid #cbc8b9;border-top:1px solid #cbc8b9}
.address-cat-panel{display:grid;grid-template-columns:128px minmax(0,1fr);align-items:start;gap:16px;margin:8px 0 0;padding:17px 14px;background:#f3f8f3;border-top:1px solid #dfe5de;border-bottom:1px solid #dfe5de}
.address-cat-panel>.profile-cat{display:block;width:100%;height:128px;object-fit:cover;object-position:center;mix-blend-mode:multiply;align-self:start}
.address-controls{display:flex;flex-direction:column;min-width:0}
.address-controls>#address-form{display:contents}
.address-controls>#address-form>label{order:1}
.address-controls .search-wrap{order:2}
.address-controls>.manual-disclosure{order:3;margin:2px 0 0;font-size:12px}
.address-controls .search-status{order:4}
.address-controls .search-status:empty{display:none}
.address-controls #suggestions{order:5}
.address-controls #selected{order:6}
.address-controls #submit{order:7}
.address-controls>#waiting-work,.address-controls>#limit{order:8}
.address-controls .manual-disclosure summary{font-size:12px;line-height:1.45;min-height:34px;padding:7px 0}
.address-controls .manual-form{gap:10px;margin-top:10px}
.address-controls .manual-modes{display:grid;gap:8px;min-width:0}
.address-controls .manual-coordinates{grid-template-columns:minmax(0,1fr);gap:8px}
.address-controls .manual-form input,.address-controls .manual-form textarea{min-width:0;max-width:100%}
.address-controls .manual-form p,.address-controls .manual-modes label{font-size:12px;line-height:1.45}
.interactive-shell .story-strip{grid-template-columns:minmax(0,1fr);margin:0;border-top:0}
.story-panel{display:grid;grid-template-columns:128px minmax(0,1fr);align-items:center;gap:16px;padding:18px 14px}
.story-panel+.story-panel{border-left:0;border-top:1px solid #dfe5de}
.story-panel .story-speech{grid-column:2;grid-row:1;margin:0;min-width:0}
.story-panel .story-speech::after{left:-7px;top:30px;bottom:auto;border-right:0;border-bottom:1px solid #d8e1d6;border-left:1px solid #d8e1d6}
.story-panel .story-art{grid-column:1;grid-row:1;width:100%;height:146px;object-fit:contain;max-width:none;align-self:center}
.story-panel .story-art[src*="-cat.webp"]{height:128px;object-fit:cover}
.digital-profile-entry{display:block;min-height:0;margin-top:18px;padding:0;border:0;background:none}
.digital-profile-entry .profile-action{max-width:360px;margin:auto}
@media(max-width:520px){
  .bench-scene .journey-speech{font-size:13px;padding:9px 10px}
  .bench-scene .journey-speech-rail{min-height:82px;padding:10px 6px 13px}
  .address-cat-panel,.story-panel{grid-template-columns:84px minmax(0,1fr);gap:10px;padding:14px 10px}
  .story-panel .story-art{height:108px}
  .address-cat-panel>.profile-cat,.story-panel .story-art[src*="-cat.webp"]{height:84px}
  .address-controls .search-wrap svg{width:17px;height:17px;margin-left:8px}
  .address-controls .search-wrap input{padding-left:6px}
  .address-controls .clear-search{min-width:25px;margin-right:2px}
  .address-controls .primary{font-size:12px;padding:10px 8px}
  .story-panel .story-speech{padding:10px}
  .story-panel .story-speech p{font-size:12px;line-height:1.5}
  .story-panel .story-speech .story-hours{font-size:11px}
}

/* V6: one welcome, one personal file card, and one address notebook. */
.welcome-message{margin:0;padding:17px 0 18px;max-width:44em;font-family:Georgia,'Times New Roman',serif;font-size:16px;line-height:1.65;color:#47594e;overflow-wrap:anywhere}
.tomorrow-welcome{margin:0 0 9px;color:#3e6250;font-size:13px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
#walkthrough-open,.legacy-receipts,#receipt-title,#delivery,#receipt-empty,#receipt-list,#complete{display:none!important}
.address-journey{padding-top:0}
.guest-file-card{position:relative;width:230px;max-width:calc(100% - 24px);min-height:172px;margin:0 12px 15px auto;border:1px solid #acb7aa;border-radius:6px;background:#fbfcf8;box-shadow:0 2px 0 #d4d7cc}
.guest-file-visual{display:grid;grid-template-columns:56px minmax(0,1fr);gap:16px;padding:12px 18px 66px;pointer-events:none}
.guest-file-portrait{min-width:0}
.guest-file-type{display:block;min-height:18px;margin-bottom:4px;color:#516550;font-size:11px;line-height:1.5;text-align:center;font-weight:700;overflow-wrap:anywhere}
.guest-file-photo{position:relative;display:block;width:56px;height:63px;overflow:hidden;border:1px solid #d0d8cb;border-radius:3px;background:#e4eae0}
.guest-file-head{position:absolute;top:10px;left:18px;width:20px;height:24px;border-radius:50%;background:#94a18e}
.guest-file-shoulders{position:absolute;bottom:-4px;left:6px;width:42px;height:31px;border-radius:50% 50% 4px 4px;background:#94a18e}
.guest-file-lines{display:flex;flex-direction:column;gap:12px;padding-top:36px}
.guest-file-lines span{display:block;height:3px;background:#cbd5c5;border-radius:2px}
.guest-file-lines span:nth-child(2){width:82%}
.guest-file-lines span:nth-child(3){width:58%}
.guest-file-card .profile-action{display:contents}
.guest-file-card .profile-action a,.guest-file-card .profile-action button{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;width:100%;min-height:44px;padding:104px 14px 13px;margin:0;border:0;border-radius:6px;background:transparent;color:#245a39;font-size:13px;font-weight:600;line-height:1.4;text-align:center;text-decoration:none;overflow-wrap:anywhere}
.guest-file-card .profile-action button:disabled{opacity:1;color:#71806e;background:transparent}
.guest-file-card .profile-action a:hover{background:transparent;box-shadow:inset 0 0 0 2px #779b76}
.guest-file-card .profile-action a:focus-visible{outline:3px solid #16776a;outline-offset:3px}
.interactive-shell>.workspace>.grandma-notebook,.interactive-shell .workspace>.grandma-notebook,.walkthrough main>.grandma-notebook{margin-top:18px}
.notebook-entry-source{font-size:11px;color:#708474;line-height:1.5}
#story-help-panel .story-speech::after{top:calc(50% - 28px)}
.address-controls label[for=address-open]{display:block;order:1;margin-bottom:6px;font-size:12px;font-weight:700}
.address-search-trigger{display:flex;align-items:center;gap:10px;order:2;width:100%;min-width:0;min-height:48px;margin:0;padding:10px 12px;border:1.5px solid #b4ccd6;border-radius:6px;background:#fff;color:var(--ink);font-size:16px;line-height:1.45;text-align:left}
.address-search-trigger:disabled{opacity:.65;background:#f3f5f2}
.address-search-trigger>svg{width:19px;height:19px;flex-shrink:0;stroke:#67899a;stroke-width:1.7;fill:none}
.address-search-trigger>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;min-width:0}
.address-search-dialog{position:fixed;inset:var(--search-top,0px) 0 auto;box-sizing:border-box;width:calc(100% - 40px);max-width:660px;height:min(680px,calc(var(--search-height,100dvh) - 40px));max-height:none;margin:20px auto;padding:0;border:1px solid #d2ddd4;border-radius:8px;background:#fff;color:#252c2c;overflow:hidden;z-index:1100}
.address-search-dialog[open]{display:flex;flex-direction:column}
.address-search-dialog:not([open]){display:none}
.address-search-dialog::backdrop{background:#203b366b}
.address-search-dialog.is-fallback{box-shadow:0 0 0 100vmax #203b366b}
.address-search-header{flex:0 0 auto;padding:14px 18px 16px;border-bottom:1px solid #dbe2df;background:#f9fcf8}
.address-search-titlebar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:11px}
.address-search-titlebar h2{margin:0;font-size:17px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}
.address-search-titlebar .icon-button{flex-shrink:0;width:44px;height:44px;font-size:27px;line-height:1}
.address-search-header .search-wrap{min-height:54px;border-radius:6px}
.address-search-header .search-wrap input{font-size:16px;padding:13px 10px}
.address-search-results{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:0 18px calc(12px + env(safe-area-inset-bottom));background:#fff}
.address-search-results .suggestions{max-height:none;overflow:visible;border:0;border-radius:0;margin:0}
.address-search-results .suggestion{min-height:66px;padding:14px 6px}
.address-search-results .suggestion strong{font-size:15px;line-height:1.5}
.address-search-results .search-status{min-height:0;margin:16px 0 8px;font-size:13px;line-height:1.6;color:#68716e}
.address-search-results .search-status:empty{display:none}
.address-search-results .text-button{min-height:44px;color:#16776a;padding:8px 0}
.address-search-results .address-more{display:block;width:100%;min-height:48px;margin:12px 0 4px;border-radius:6px;background:#f5f9f4;color:#245a39}
@media(max-width:520px){
  .welcome-message{padding:13px 0 15px;font-size:14px;line-height:1.65}
  .guest-file-card{margin-right:10px;margin-bottom:13px}
  #story-help-panel .story-speech::after{top:calc(50% - 20px)}
  .address-search-trigger{gap:7px;padding:9px 8px}
  .address-search-dialog{width:100%;max-width:none;height:var(--search-height,100dvh);margin:0;border:0;border-radius:0}
  .address-search-header{padding:10px 14px 13px}
  .address-search-results{padding-right:14px;padding-left:14px}
}

/* V7: media links share the outer edges; the guest file joins its own scene. */
.interactive-shell .instruction-compact{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;padding-right:0;padding-left:0}
.interactive-shell .instruction-compact .instruction-toggle{padding-right:0;padding-left:0}
.interactive-shell .instruction-compact [data-instruction-kind=video] .instruction-toggle{text-align:left}
.interactive-shell .instruction-compact [data-instruction-kind=audio] .instruction-toggle{text-align:right}
.story-profile-panel{grid-template-columns:128px minmax(0,1fr);background:#f5f8f3}
.story-profile-panel .guest-file-card{grid-column:2;grid-row:1;justify-self:center;width:230px;max-width:100%;min-height:172px;margin:0}
.story-profile-panel .story-art{height:156px}
.story-profile-panel .guest-file-lines{gap:6px;padding-top:25px}
.story-profile-panel .guest-file-lines span{height:auto;min-height:17px;width:100%;border-radius:0;border-bottom:1px solid #dce2d7;background:none;color:#596b54;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.story-profile-panel .guest-file-visual{grid-template-columns:56px minmax(0,1fr);gap:13px;padding-bottom:66px}
.contact-rules{padding:18px 14px;background:#f6f8f6;border-bottom:1px solid #dfe5de}
.contact-rules p{margin:0;color:#475649;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.manual-disclosure .manual-search-guidance{margin:12px 0;font-size:15px;font-weight:700;line-height:1.6;color:#354e43;overflow-wrap:anywhere}
.address-controls .manual-disclosure .manual-search-guidance{font-size:15px;font-weight:700;line-height:1.6}
@media(max-width:520px){
  .story-profile-panel{grid-template-columns:64px minmax(0,1fr);gap:10px}
  .story-profile-panel .story-art{height:120px}
  .story-profile-panel .guest-file-visual{grid-template-columns:44px minmax(0,1fr);gap:9px;padding-right:12px;padding-left:12px}
  .story-profile-panel .guest-file-photo{width:44px;height:60px}
  .story-profile-panel .guest-file-head{left:12px}
  .story-profile-panel .guest-file-shoulders{left:0}
  .story-profile-panel .guest-file-lines{gap:6px}
  .contact-rules{padding:16px 10px}
}

/* Personal cards share a fixed portrait track; long names wrap, never overlap. */
.identity-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:14px 0 0}
.identity-card,.identity-cards .guest-file-card{display:block;position:relative;width:100%;max-width:none;min-width:0;min-height:0;margin:0;border:1px solid #b5c8cc;border-radius:8px;background:#f8fbfc;box-shadow:0 2px 0 #e2eaec;color:#203b43;overflow:hidden;text-decoration:none}
.identity-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:13px 17px 11px;border-bottom:1px solid #dde7e8;font-size:13px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.identity-heading .guest-file-type{margin:0;color:inherit;font-size:13px;text-align:left;min-height:0}
.identity-company{flex-shrink:0;color:#466771;font-size:12px}
.identity-body{display:grid;grid-template-columns:116px minmax(0,1fr);align-items:center;gap:19px;padding:17px}
.identity-portrait{position:relative;width:100%;aspect-ratio:4/5;border-radius:4px;background:#e7eeef;overflow:hidden}
.identity-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 48%}
.identity-portrait .guest-file-photo{width:100%;height:100%;border:0;border-radius:0;background:#e7eeef}
.identity-portrait .guest-file-head{top:18%;left:32%;width:36%;height:33%;background:#9daeb2}
.identity-portrait .guest-file-shoulders{left:11%;bottom:-9%;width:78%;height:55%;background:#9daeb2}
.identity-details{min-width:0}
.identity-details .identity-name{font-family:Georgia,'Times New Roman',serif;font-size:22px;line-height:1.4;font-weight:600;margin:0;color:#253e46;overflow-wrap:anywhere;white-space:normal;letter-spacing:0}
.host-name span{display:block}
.identity-details .identity-position{margin:11px 0 0;font-size:12px;line-height:1.6;color:#50666e;overflow-wrap:anywhere}
.identity-details .identity-status{margin:0;font-size:13px;line-height:1.6;color:#62777d;overflow-wrap:anywhere}
.identity-action{border-top:1px solid #dde7e8;min-height:51px;font-size:13px;line-height:1.5;font-weight:600;color:#216779}
.identity-action a,.identity-action button,.host-card .identity-action{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:51px;padding:13px 17px;border:0;border-radius:0;background:transparent;font:inherit;text-align:left;color:inherit;text-decoration:none;overflow-wrap:anywhere}
.identity-action button:disabled{opacity:1;color:#73858a;cursor:default}
.identity-action a:hover,.host-card:hover{background:#eff6f8}
.identity-action a:focus-visible,.host-card:focus-visible{outline:3px solid #218296;outline-offset:-3px}
.identity-action [aria-hidden=true]{flex-shrink:0;font-size:20px;line-height:1}
.host-card{background:#f6faf7;border-color:#bdcec2;color:#365f49}
.host-card .identity-action{color:#386d4b;font-size:13px;line-height:1.5;font-weight:600}
.notebook-reminder{padding:0 0 13px;margin:0 0 12px;color:#526356;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:359px){
  .identity-body{grid-template-columns:91px minmax(0,1fr);gap:13px;padding:13px}
  .identity-heading{padding:11px 13px;gap:8px;font-size:12px}
  .identity-heading .guest-file-type{font-size:12px}
  .identity-heading .identity-company{font-size:11px}
  .identity-details .identity-name{font-size:18px}
  .identity-details .identity-position{font-size:11px}
  .identity-action a,.identity-action button,.host-card .identity-action{padding:12px 13px;font-size:12px}
}
.identity-cards [hidden]{display:none!important}
