/* Cedar Valley High V1.5 — a calm, photographic scene interface. */
body[data-edition="v15"] {
  --bg: #091416; --panel: #122326; --panel-2: #182d30; --ink: #f3f4eb;
  --ink-soft: #abbebb; --muted: #8da6a4; --line: #294044; --accent: #a6d8c4;
  --hover: #20383c; --good: #a6d8c4; --bad: #e4a39e; --warn: #e5c98e;
  --c-happy: #acd5ba; --c-pop: #d9c38e; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --app-shadow: none;
  background: #081214; letter-spacing: .005em;
}
body[data-edition="v15"] button { -webkit-tap-highlight-color: transparent; }
body[data-edition="v15"] button:focus-visible, body[data-edition="v15"] a:focus-visible,
body[data-edition="v15"] select:focus-visible { outline: 2px solid #d6f6e9; outline-offset: 4px; }
body[data-edition="v15"] #app { max-width: 1920px; background: #0b191c; }
body[data-edition="v15"] #topbar {
  min-height: 80px; padding: 13px 28px; flex-wrap: nowrap; gap: 22px;
  background: #101f23; border-bottom: 1px solid #ffffff12; box-shadow: none;
}
.v15-brand { display: flex; align-items: center; gap: 10px; color: #d6e8df; text-decoration: none; font: 32px Georgia, serif; letter-spacing: -.12em; }
.v15-brand span { font: 600 9px/1.55 -apple-system, sans-serif; letter-spacing: .16em; max-width: 72px; }
body[data-edition="v15"] .tb-left { min-width: 140px; margin-right: auto; }
body[data-edition="v15"] .tb-date { font-size: 12px; font-weight: 500; }
body[data-edition="v15"] .tb-block { font-size: 11px; margin-top: 3px; color: #a6bcb8; }
body[data-edition="v15"] .tb-stats { gap: 24px; flex-wrap: nowrap; }
body[data-edition="v15"] .tb-stat { display: grid; grid-template-columns: auto auto; gap: 5px 8px; font-weight: 500; font-size: 13px; }
body[data-edition="v15"] .tb-stat .ico { grid-column: 1/-1; font-size: 8px; color: #9cb4b1; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
body[data-edition="v15"] .tb-stat .bar { width: 42px; height: 3px; align-self: center; }
body[data-edition="v15"] .tb-stat.small { display: none; }
body[data-edition="v15"] .tb-stat .delta { top: 24px; }
body[data-edition="v15"] #btn-menu { background: #ffffff05; border-color: #ffffff20; color: #ccded9; border-radius: 50%; width: 36px; height: 36px; font-size: 17px; }
body[data-edition="v15"] #screen { padding: 0; scroll-behavior: auto; }
body[data-edition="v15"] #screen.v15-scene-screen { display: flex; flex-direction: column; overflow: auto; }
body[data-edition="v15"] #tabbar { padding: 0 24px; justify-content: center; gap: 15px; background: #101f23; border-top: 1px solid #ffffff12; min-height: 62px; }
body[data-edition="v15"] .tab { flex: 0 1 170px; flex-direction: row; gap: 10px; min-height: 60px; border-radius: 0; border-top: 2px solid transparent; font-size: 11px; color: #8ea8a4; font-weight: 500; }
body[data-edition="v15"] .tab .t-ico { font-size: 9px; font-weight: 700; height: 23px; width: 23px; display: grid; place-items: center; border: 1px solid #ffffff1f; border-radius: 7px; }
body[data-edition="v15"] .tab.active { color: #d6e8df; border-top-color: #a6d8c4; background: #b4e4ce08; }
body[data-edition="v15"] .tab.active .t-ico { border-color: #a6d8c466; }
body[data-edition="v15"] .btn { border-radius: 9px; padding: 12px 17px; background: #b8d9c9; color: #152826; box-shadow: none; font-weight: 650; border: 1px solid transparent; font-size: 12px; letter-spacing: .015em; }
body[data-edition="v15"] .btn:hover { filter: brightness(1.06); transform: none; }
body[data-edition="v15"] .btn.secondary { color: #e4ede7; background: #21373b; border-color: #ffffff18; }
body[data-edition="v15"] .btn.ghost { color: #c5d4cc; background: transparent; border-color: #ffffff1a; }
body[data-edition="v15"] .btn.danger { color: #efc1bc; background: #422c2e; border-color: #bd817333; }
body[data-edition="v15"] .input { background: #091719; color: #e6ede8; border-color: #ffffff21; border-radius: 8px; padding: 12px; }
body[data-edition="v15"] .card { background: #14272c; border: 1px solid #ffffff12; border-radius: 12px; box-shadow: none; padding: 22px; }
body[data-edition="v15"] .card h2 { font-size: 17px; font-weight: 550; }
body[data-edition="v15"] .pill { border-radius: 5px; background: #b6dccc12; border: 1px solid #b6dccc15; font-size: 10px; }
body[data-edition="v15"] .meter { height: 4px; background: #ffffff0c; }
body[data-edition="v15"] .meter .m-fill { background: #92c1ae; }
body[data-edition="v15"] .badge { background: #b7dbc7; color: #142728; }
body[data-edition="v15"] .effects { gap: 8px; }
body[data-edition="v15"] .effect-chip { font-size: 10px; background: #0d1d2066; border: 1px solid #ffffff18; color: #e2ebe4; padding: 6px 9px; border-radius: 5px; }
body[data-edition="v15"] .effect-chip.up { color: #cae7d5; }
body[data-edition="v15"] .effect-chip.down { color: #f0c1ae; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .2em; font-size: 9px; line-height: 1.8; font-weight: 600; color: #b8d9c9; }

.scene-stage { position: relative; isolation: isolate; flex: 1 0 510px; min-height: 510px; width: 100%; overflow: hidden; background: #1d2d2d; }
.scene-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.scene-photo-unavailable { opacity: .1; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #06161581 0%, #06161505 38%, #06161518 62%, #061615a8 100%); pointer-events: none; }
.scene-heading { position: absolute; top: 26px; left: 35px; max-width: min(50%, 460px); color: #fff; text-shadow: 0 2px 14px #0008; }
.scene-location { display: block; font-size: 10px; letter-spacing: .19em; text-transform: uppercase; color: #e2e8dc; margin-bottom: 5px; }
.scene-heading h1 { font: 38px/1.13 Georgia, "Times New Roman", serif; letter-spacing: -.035em; margin: 0; }
.scene-heading p { font-size: 12px; line-height: 1.55; margin-top: 9px; max-width: 380px; color: #eff0e7; }
.scene-utility { position: absolute; top: 28px; right: 28px; }
.scene-small-button, .scene-skip { border: 1px solid #ffffff45; background: #102126a8; color: #eff4ec; font-size: 10px; padding: 9px 13px; border-radius: 7px; backdrop-filter: blur(12px); }
.scene-skip { position: absolute; z-index: 4; top: 18px; right: 18px; }
.scene-choices { position: absolute; inset: 0; }
.scene-choice {
  position: absolute; left: var(--choice-x); top: var(--choice-y); width: min(27%, 300px);
  display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 13px 15px 13px 11px; min-height: 59px;
  color: #f8faf3; background: linear-gradient(115deg, #122c32ed, #173338df);
  border: 1px solid #e9f7e543; border-radius: 11px;
  box-shadow: 0 5px 26px #03181c4d; backdrop-filter: blur(13px);
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.scene-choice:hover { border-color: #d7ffe3c7; background: #21474af5; box-shadow: 0 5px 30px #071d2473; }
.scene-choice::before { content: ''; position: absolute; width: 5px; height: 5px; border: 1px solid #d8eadd; border-radius: 50%; left: -13px; top: 50%; opacity: .8; background: #b6dac8; }
.choice-number { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 8px; background: #cae2d516; border: 1px solid #d1ecdf52; font-size: 12px; color: #d4f0dc; font-weight: 550; }
.choice-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.choice-title { font-size: 12px; line-height: 1.4; font-weight: 560; letter-spacing: .005em; }
.choice-detail { font-size: 10px; line-height: 1.4; color: #c6d7cc; font-weight: 400; }
.scene-choice.is-locked { background: #172729d9; border-color: #b9c8be33; color: #bcc7be; }
.scene-choice.is-locked .choice-number { color: #97a99e; border-color: #b9c8be30; background: #b9c8be08; }
.scene-choice.is-locked .choice-detail { color: #abb8ab; }
.scene-choice.is-locked::before { background: transparent; opacity: .4; }
.scene-controls { position: absolute; z-index: 3; bottom: 15px; left: 33px; right: 26px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.scene-input-hint { font-size: 10px; color: #d8e6dd; text-shadow: 0 1px 6px #000; }
.scene-input-hint > span { padding: 0 8px; opacity: .6; }
.scene-pager { display: flex; gap: 13px; align-items: center; color: #e4f1e7; font-size: 10px; }
.scene-page-button { width: 32px; height: 29px; color: #eef3e7; border: 1px solid #ffffff4d; border-radius: 5px; background: #10252aca; }
.scene-page-button:disabled { opacity: .28; cursor: default; }
.scene-status-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 15px 32px; border-top: 1px solid #ffffff13; background: #102125; }
.scene-rail-button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 8px; background: transparent; border: none; color: #cad9d0; font-size: 11px; }
.rail-label { color: #86a19a; font-size: 8px; letter-spacing: .17em; font-weight: 650; }
.rail-grades { display: flex; flex-wrap: wrap; gap: 16px; font-size: 10px; }
.rail-grades b { font-weight: 400; color: #a7bab2; margin-right: 5px; }
.scene-notice { border: none; border-top: 1px solid #ffffff0a; background: #162b2f; color: #c6d7cf; text-align: left; padding: 10px 32px; font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-notice::before { content: 'TODAY'; margin-right: 14px; letter-spacing: .17em; color: #94b6a8; font-size: 8px; font-weight: 650; }
.scene-stage[data-layout="overlay"] .scene-choices { inset: auto 32px 59px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scene-stage[data-layout="overlay"] .scene-choice { position: relative; width: auto; left: auto; top: auto; }
.scene-stage[data-layout="overlay"] .scene-choice::before { display: none; }
.scene-stage[data-layout="overlay"] .scene-heading { top: 35px; }
.scene-player { position: absolute; left: 0; bottom: 0; height: 94%; width: 39%; pointer-events: none; z-index: 0; }
.scene-player img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: contain; object-position: bottom center; }
.player-figure { position:absolute; inset:0; filter:var(--player-light,none); }
/* Ground shadows sit below the assembled figure, at its two actual soles.
   Avoid a silhouette drop-shadow, which makes a cutout look like a sticker. */
.player-ground-shadow { position:absolute; inset:0; opacity:var(--player-shadow,.3); }
.player-ground-shadow::before, .player-ground-shadow::after { content:''; position:absolute; border-radius:50%; background:radial-gradient(ellipse,#111613 12%,#111613a6 38%,transparent 72%); }
.player-ground-shadow::before { left:26%; top:93.2%; width:24%; height:3.2%; transform:rotate(-14deg); }
.player-ground-shadow::after { left:55%; top:96%; width:25%; height:3.3%; transform:rotate(-8deg); }
.scene-player-grounded::before { content:''; position:absolute; left:27%; top:92.8%; width:65%; height:8%; transform:rotate(var(--player-cast,10deg)); transform-origin:25% 50%; opacity:var(--player-shadow,.3); background:radial-gradient(ellipse,#15201ac7 0%,#15201a66 36%,transparent 70%); }
.scene-player-grounded { visibility:hidden; }
.scene-player-grounded.is-positioned { visibility:visible; }
.scene-player + .scene-shade { z-index: 0; }
.scene-stage .scene-heading, .scene-stage .scene-utility, .scene-stage .scene-choices { z-index: 1; }

body[data-edition="v15"] #modal-root:not(:empty) { background: #020a0ad6; backdrop-filter: blur(8px); padding: 22px; z-index: 50; }
body[data-edition="v15"] .modal { background: #102329; color: #e4ede6; border: 1px solid #a6c6b738; max-width: 590px; max-height: 90dvh; border-radius: 16px; padding: 28px; box-shadow: 0 20px 100px #0008; }
body[data-edition="v15"] .modal.wide { max-width: 900px; }
body[data-edition="v15"] .modal h2 { font: 27px/1.2 Georgia, serif; font-weight: 400; letter-spacing: -.02em; margin-bottom: 12px; }
body[data-edition="v15"] .modal .m-body { font-size: 13px; line-height: 1.65; }
body[data-edition="v15"] .modal .m-body p + p { margin-top: 10px; }
body[data-edition="v15"] .modal .m-actions { gap: 9px; margin-top: 23px; }
body[data-edition="v15"] .modal .m-actions > .btn { display: flex; align-items: center; flex-wrap: wrap; text-align: left; gap: 11px; min-height: 45px; }
body[data-edition="v15"] .modal .m-actions > .btn .sub { width: 100%; padding-left: 31px; font-weight: 400; font-size: 11px; }
.modal-choice-number { width: 22px; height: 22px; border: 1px solid currentColor; opacity: .7; border-radius: 5px; display: inline-grid; place-items: center; font-size: 10px; flex-shrink: 0; }
body[data-edition="v15"] .modal.scene-outcome-dialog { position: relative; max-width: 1160px; height: min(720px, 89dvh); padding: 0; overflow: hidden; background: #142629; }
.scene-outcome-dialog .m-body, .scene-outcome { position: absolute; inset: 0; }
.scene-outcome::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #071d2010 20%, #071d2033 44%, #06191bf2 100%); pointer-events: none; }
.scene-outcome .outcome-copy { position: absolute; z-index: 2; left: 45px; right: 45px; bottom: 107px; max-width: 740px; text-shadow: 0 2px 18px #0007; }
body[data-edition="v15"] .scene-outcome .outcome-copy h2 { font-size: 35px; margin: 10px 0 14px; }
.scene-outcome .outcome-copy p { line-height: 1.8; color: #f0f2e9; font-size: 14px; }
.scene-outcome .effects { margin-top: 17px; }
body[data-edition="v15"] .scene-outcome-dialog .m-actions { position: absolute; z-index: 5; bottom: 28px; right: 43px; margin: 0; min-width: 180px; }
.scene-outcome-dialog .modal-choice-number { display: none; }
body[data-edition="v15"] .scene-outcome-dialog .m-actions > .btn { justify-content: center; }
body[data-edition="v15"] .toast { color: #e6f0e7; background: #254441; border: 1px solid #b4d9c644; font-weight: 450; box-shadow: 0 5px 40px #0008; padding: 12px 19px; }

body[data-edition="v15"] #screen.v15-support-screen { padding: 0 30px 30px; background: #0c1a1e; }
.support-hero { position: relative; height: 180px; overflow: hidden; margin: 0 -30px 24px; background: #173237; }
.support-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #081c21d9, #081c2133), linear-gradient(0deg, #0c1a1e, transparent 70%); }
.support-hero > div { position: absolute; bottom: 30px; left: 34px; right: 30px; z-index: 1; }
.support-hero h1 { font: 31px/1.2 Georgia, serif; color: #ecf2e9; letter-spacing: -.03em; margin-top: 6px; }
.v15-support-screen > .card { max-width: 1180px; margin: 0 auto 18px; }
.v15-support-screen > .grid2 { max-width: 1180px; margin: 0 auto; }
.v15-support-screen .item-grid { gap: 13px; }
.v15-support-screen .item-card { background: #192e32; border: 1px solid #b9d3c61c; border-radius: 10px; padding: 17px; }
.v15-support-screen .item-card .i-ico { font-size: 30px; margin: 7px 0 13px; }
.photo-avatar { position: relative; overflow: hidden; border: 1px solid #b7d0bf40; background: #233d40; }
.photo-avatar img { position: absolute; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.portrait-initials { color: #cee3d5; font-size: inherit; }
.photo-avatar.lg { width: 64px; height: 64px; border-radius: 15px; }
.v15-people .card .avatar { border-radius: 10px; }
.v15-home .card h2, .v15-style .card h2 { color: #d9e6dc; }
body[data-edition="v15"] #screen.v15-phone { position: relative; padding: 22px; background-image: linear-gradient(#0a1b21cf, #0a1b21e8), var(--phone-scene); background-size: cover; background-position: center; }
body[data-edition="v15"] .phone-frame { box-shadow: 0 15px 70px #0009; }
body[data-edition="v15"] .phone-frame .btn { padding: 8px 11px; }
body[data-edition="v15"] .phone-frame h2 { font-family: inherit; }

body[data-edition="v15"][data-view="setup"] #topbar { display: none; }
body[data-edition="v15"] #screen.v15-setup { position: relative; overflow: auto; isolation: isolate; min-height: 100%; background: #213332; }
.setup-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.setup-gradient { position: absolute; inset: 0; background: linear-gradient(90deg, #071a20ee 0%, #0d222ab9 34%, #0d222a22 80%), linear-gradient(0deg, #06141bbb, transparent 50%); }
.setup-content { position: relative; margin: 0; min-height: 100%; padding: 10vh 8vw 70px; width: min(800px, 80%); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.setup-content > .eyebrow { color: #cbdcd0; font-size: 10px; letter-spacing: .28em; }
.setup-content h1 { font: clamp(62px, 7.3vw, 110px)/.91 Georgia, "Times New Roman", serif; letter-spacing: -.055em; color: #f3f0df; text-shadow: 0 3px 50px #001a2077; margin: 30px 0 23px; }
.setup-content h1 > span { display: block; font: 500 11px/1 -apple-system, sans-serif; letter-spacing: .25em; color: #afd3c3; margin: 20px 0 0 5px; }
.setup-intro { color: #d2ded5; font-size: 15px; font-weight: 350; line-height: 1.7; margin: 0 0 29px; }
.setup-content .setup-actions { display: flex; flex-direction: column; width: min(100%, 315px); gap: 10px; }
body[data-edition="v15"] .setup-primary { background: #cedfcc; color: #172d2e; }
.setup-footnote { color: #9eb5a9; font-size: 9px; margin: 28px 0 0; letter-spacing: .08em; }
.setup-signature { position: absolute; right: 38px; bottom: 31px; color: #e0e8d6; font-size: 9px; letter-spacing: .2em; }
.alex-intro { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; gap: 28px; }
.alex-intro > img { width: 100%; height: 360px; object-fit: cover; object-position: center 18%; border-radius: 10px; }
.alex-intro .field { margin-top: 23px; }
.alex-intro h2 { margin: 8px 0 16px !important; }
.alex-intro select { width: 100%; }
.alex-intro .eyebrow { margin-top: 15px; }
.v15-menu > h3, .v15-settings > h3 { color: #b2cbbd; font-size: 11px; font-weight: 550; letter-spacing: .1em; text-transform: uppercase; margin: 24px 0 12px; }
.menu-intro { color: #a9bfb3; }
.v15-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.v15-settings > h3 { grid-column: 1/-1; margin-bottom: 0; }
.v15-settings > label { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #ffffff12; border-radius: 8px; color: #d2e0d6; font-size: 11px; }
.v15-settings select { font-size: 11px; max-width: 150px; padding: 7px !important; }
.v15-settings input { accent-color: #aed9c5; width: 17px; height: 17px; }
.v15-save-list { display: flex; flex-direction: column; border: 1px solid #ffffff18; border-radius: 10px; overflow: hidden; }
.v15-save-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 15px; border-bottom: 1px solid #ffffff0c; }
.v15-save-row:last-child { border: none; }
.v15-save-row > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.v15-save-row b { font-size: 11px; font-weight: 600; }
.v15-save-row span { font-size: 10px; color: #96b0a4; }
.v15-save-row .row { flex-wrap: nowrap; }
.v15-save-row .btn { font-size: 10px !important; padding: 8px 13px !important; }
.save-transfer { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.save-transfer > .btn { font-size: 10px !important; padding: 9px 13px !important; }
.scene-day-end { position: relative; flex: 1; min-height: 100%; padding: 35px; background: #172b2d; }
.scene-day-end::after { position: absolute; inset: 0; content: ''; background: #07171cac; }
.day-end-panel { position: relative; z-index: 1; max-width: 710px; margin: 20px auto; }
.day-end-panel > h1 { font: 43px Georgia, serif; letter-spacing: -.035em; margin: 8px 0 25px; color: #edeedf; }
.day-end-panel .card { background: #13282dea !important; backdrop-filter: blur(18px); }

@media (min-width: 1500px) {
  .scene-stage { min-height: 630px; }
  .scene-heading h1 { font-size: 46px; }
  .scene-heading { left: 48px; top: 36px; }
  .scene-choice { padding: 17px; min-height: 70px; }
  .choice-title { font-size: 14px; } .choice-detail { font-size: 11px; }
}
@media (max-width: 1050px) {
  body[data-edition="v15"] #topbar { gap: 16px; padding: 13px 20px; }
  .v15-brand span { display: none; }
  body[data-edition="v15"] .tb-stats { gap: 16px; }
  .scene-choice { width: 30%; padding: 11px 10px; }
  .choice-title { font-size: 11px; } .choice-detail { font-size: 9px; }
  .scene-stage { flex-basis: 490px; min-height: 490px; }
  .rail-grades { gap: 9px; }
}
@media (max-width: 760px) {
  body[data-edition="v15"] #topbar { display: grid; grid-template-columns: minmax(0, 1fr) 36px; min-height: 104px; padding: 10px 15px; gap: 10px 12px; }
  body[data-edition="v15"] .v15-brand { display: none; }
  body[data-edition="v15"] .tb-left { min-width: 0; grid-column: 1; grid-row: 1; margin-right: 0; }
  body[data-edition="v15"] .tb-date { font-size: 10px; }
  body[data-edition="v15"] .tb-block { font-size: 10px; }
  body[data-edition="v15"] .tb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; gap: 12px; overflow: visible; }
  body[data-edition="v15"] .tb-stat { grid-template-columns: minmax(0, 1fr); min-width: 0; font-size: 13px; gap: 3px; }
  body[data-edition="v15"] .tb-stat .val { white-space: nowrap; font-variant-numeric: tabular-nums; }
  body[data-edition="v15"] .tb-stat .ico { font-size: 7px; letter-spacing: .04em; }
  body[data-edition="v15"] .tb-stat .bar { display: none; }
  body[data-edition="v15"] #btn-menu { grid-column: 2; grid-row: 1; justify-self: end; width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
  body[data-edition="v15"] #tabbar { padding: 0 9px; gap: 4px; min-height: 57px; }
  body[data-edition="v15"] .tab { min-height: 57px; font-size: 10px; gap: 6px; }
  body[data-edition="v15"] .tab .t-ico { display: none; }
  .scene-stage { flex-basis: 580px; min-height: 580px; }
  .scene-heading { top: 22px; left: 22px; max-width: 72%; }
  .scene-heading h1 { font-size: 32px; }
  .scene-heading p { font-size: 10px; max-width: 270px; }
  .scene-location { font-size: 8px; }
  .scene-utility { top: 19px; right: 15px; }
  .scene-small-button { font-size: 9px; padding: 7px 10px; }
  .scene-stage .scene-choices, .scene-stage[data-layout="overlay"] .scene-choices { inset: auto 16px 53px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .scene-stage .scene-choice, .scene-stage[data-layout="overlay"] .scene-choice { position: relative; left: auto; top: auto; width: auto; min-height: 64px; gap: 8px; }
  .scene-choice::before { display: none; }
  .choice-number { flex-basis: 24px; height: 26px; font-size: 10px; }
  .choice-title { font-size: 11px; } .choice-detail { font-size: 9px; line-height: 1.35; }
  .scene-stage .scene-shade { background: linear-gradient(180deg,#04191c66,transparent 30%,#04191c44 45%,#04191cbb 100%); }
  .scene-controls { bottom: 14px; left: 17px; right: 17px; }
  .scene-input-hint { font-size: 9px; max-width: 210px; line-height: 1.5; }
  .scene-input-hint > span { padding: 0 3px; }
  .scene-status-rail { padding: 13px 18px; grid-template-columns: 1fr; gap: 14px; }
  .scene-status-rail > .scene-rail-button:last-child { display: none; }
  .rail-grades { gap: 14px; }
  .scene-notice { padding: 11px 18px; font-size: 10px; }
  .scene-notice::before { margin-right: 9px; }
  body[data-edition="v15"] #modal-root:not(:empty) { padding: 13px; }
  body[data-edition="v15"] .modal { padding: 21px; border-radius: 12px; max-height: 92dvh; }
  body[data-edition="v15"] .modal.scene-outcome-dialog { height: 88dvh; max-height: 88dvh; }
  .scene-outcome .outcome-copy { left: 22px; right: 22px; bottom: 108px; }
  body[data-edition="v15"] .scene-outcome .outcome-copy h2 { font-size: 27px; }
  .scene-outcome .outcome-copy p { font-size: 12px; line-height: 1.65; }
  body[data-edition="v15"] .scene-outcome-dialog .m-actions { right: 22px; bottom: 24px; }
  .scene-outcome .scene-photo { object-position: 60% center; }
  .setup-content { width: 96%; padding: 11vh 7vw 80px; }
  .setup-content h1 { font-size: 72px; }
  .setup-photo { object-position: 64% center; }
  .setup-gradient { background: linear-gradient(90deg,#091c22e0,#091c2270),linear-gradient(0deg,#06141bd9,transparent); }
  .setup-intro { font-size: 14px; }
  .setup-signature { right: 22px; bottom: 22px; font-size: 8px; }
  .alex-intro { grid-template-columns: 1fr; gap: 20px; }
  .alex-intro > img { height: 230px; object-position: center 20%; }
  .v15-settings { grid-template-columns: 1fr; gap: 8px; }
  .v15-save-row { padding: 12px; gap: 8px; }
  .v15-save-row .btn { padding: 8px !important; }
  .v15-save-row span { font-size: 9px; }
  body[data-edition="v15"] #screen.v15-support-screen { padding: 0 16px 18px; }
  .support-hero { margin: 0 -16px 18px; height: 155px; }
  .support-hero > div { left: 21px; bottom: 25px; }
  .support-hero h1 { font-size: 25px; }
  body[data-edition="v15"] .card { padding: 17px; }
  .scene-day-end { padding: 22px 15px; }
  .day-end-panel > h1 { font-size: 34px; }
  .scene-player { width: 64%; height: 80%; left: -9%; }
}
@media (max-width: 400px) {
  .v15-brand { display: none; }
  .scene-stage { min-height: 570px; }
  .scene-choice { padding: 10px 8px; gap: 6px; }
  .choice-number { flex-basis: 21px; height: 24px; }
  .choice-title { font-size: 10px; }
  .choice-detail { font-size: 8px; }
  .rail-grades { gap: 9px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-edition="v15"] *, body[data-edition="v15"] *::before, body[data-edition="v15"] *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* Conversation identity and garment layers share the same frame as the scene. */
.outcome-speaker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.outcome-speaker .photo-avatar { width: 46px; height: 46px; border-radius: 12px; flex: 0 0 46px; }
.outcome-speaker > span:last-child { font-size: 11px; font-weight: 550; color: #d4e8da; }
.scene-outcome .outcome-copy { max-height: calc(100% - 140px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #7f9b8c66 transparent; }
.scene-player { width: auto; aspect-ratio: 2 / 3; max-width: 48%; }
.scene-outcome .scene-player { z-index: 0; }
.scene-outcome .outcome-copy .eyebrow { margin-top: 6px; }
@media (max-width: 760px) {
  .scene-player { width: auto; max-width: 70%; }
  .outcome-speaker { margin-bottom: 10px; }
  .outcome-speaker .photo-avatar { width: 37px; height: 37px; flex-basis: 37px; border-radius: 9px; }
}


.wardrobe-dressing { position: relative; min-height: 370px; max-width: 1180px; margin: 0 auto 22px; overflow: hidden; border-radius: 13px; border: 1px solid #b3d5c82a; background: #182f30; }
.wardrobe-dressing::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#0b2024ed,#0b20246b 70%); pointer-events: none; }
.wardrobe-dressing-copy { position: relative; z-index: 2; padding: 45px 36px; max-width: 58%; }
.wardrobe-dressing-copy h2 { font: 35px Georgia, serif; letter-spacing: -.025em; color: #e7eddf; margin: 7px 0 13px; }
.wardrobe-dressing-copy p { font-size: 12px; line-height: 1.6; color: #c4d5c8; }
.wardrobe-piece-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.wardrobe-piece-chip { border: 1px solid #e2f2e333; background: #183339c9; color: #e2ecdf; border-radius: 7px; padding: 10px 13px; text-align: left; font-size: 10px; }
.wardrobe-dressing .wardrobe-player { left: auto !important; right: 4%; z-index: 1; height: 99% !important; max-width: 45%; }
@media (max-width:760px) {
  .wardrobe-dressing { min-height: 340px; }
  .wardrobe-dressing-copy { padding: 24px; max-width: 68%; }
  .wardrobe-dressing-copy h2 { font-size: 28px; }
  .wardrobe-piece-chip { padding: 9px 10px; font-size: 9px; }
  .wardrobe-dressing .wardrobe-player { right: -7%; max-width: 65%; }
}

.v15-settings .v15-volume input[type=range] { width: 110px; height: 17px; max-width: 48%; accent-color: #aed9c5; }

.scene-auto-banner { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 27px; background: #233b3a; color: #dfe9da; border-bottom: 1px solid #bad1bf33; }
.scene-auto-banner > div { display: flex; flex-direction: column; gap: 5px; }
.scene-auto-banner b { font-size: 12px; font-weight: 600; }
.scene-auto-banner span { font-size: 10px; color: #b5c7b9; }
.scene-auto-banner .btn { padding: 8px 12px !important; font-size: 10px !important; white-space: nowrap; }
.scene-announcement::before { content: 'ANNOUNCEMENT'; }
@media (max-width:760px) { .scene-auto-banner { padding: 12px 16px; gap: 10px; } }

/* Keep the full selected outfit visible in the dressing preview. */
.wardrobe-dressing .wardrobe-player { bottom:0!important; height:95%!important; }

.scene-choices { pointer-events:none; }
.scene-choice { pointer-events:auto; }

/* Keep image pixels and garment clipping in one undistorted 2:3 coordinate frame.
   A max-width with fixed height letterboxes the images and exposes other layers. */
.scene-player, .wardrobe-dressing .wardrobe-player { max-width: none; }

/* The person, their choice and the outcome share one stable identity. */
.has-scene-people { --surface-y: 67%; }
.scene-person { position:absolute; left:var(--person-x,50%); top:18%; height:88%; aspect-ratio:2 / 3; transform:translateX(-50%); pointer-events:none; }
.scene-person > img { width:100%; height:100%; object-fit:contain; max-width:none; display:block; filter:drop-shadow(0 7px 5px #07191b22); }
.has-scene-surface .scene-person { top:calc(var(--surface-y) - 45%); height:110%; }
.scene-photo.scene-surface { clip-path:polygon(0 var(--surface-y),100% var(--surface-y),100% 100%,0 100%); pointer-events:none; }
.scene-person-choices { position:absolute; inset:0; pointer-events:none; z-index:3; }
.scene-choice.scene-person-choice { left:var(--person-x); top:9%; transform:translateX(-50%); width:27%; max-width:290px; min-height:54px; background:#122d32ed; border-color:#d8ecdc99; box-shadow:0 7px 20px #05101440; }
.has-scene-surface .scene-choice.scene-person-choice { top:calc(var(--surface-y) - 56%); }
.scene-choice.scene-person-choice::before { content:''; top:auto; bottom:-11px; left:calc(50% - 1px); width:2px; height:10px; border:0; border-radius:0; background:#d5eee4; }
.scene-choice.scene-person-choice::after { content:''; position:absolute; width:5px; height:5px; border-radius:50%; background:#d5eee4; bottom:-15px; left:calc(50% - 2.5px); }
.scene-person-choice .choice-title { font-size:12px; }
.scene-person-choice .choice-detail { font-size:9px; }
.scene-stage.has-scene-people .scene-heading { top:19px; max-width:60%; }
.scene-stage.has-scene-people .scene-heading h1 { font-size:27px; margin:5px 0; }
.scene-stage.has-scene-people .scene-heading p { display:none; }
.scene-stage.has-scene-people .scene-shade { background:linear-gradient(180deg,#06161a88,transparent 25%,transparent 65%,#06161ae8); z-index:1; pointer-events:none; }
.scene-stage.has-scene-people[data-layout] > .scene-choices { position:absolute; inset:auto 27px 60px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; z-index:3; }
.scene-stage.has-scene-people[data-layout] > .scene-choices > .scene-choice { position:relative; left:auto; top:auto; width:auto; max-width:none; min-width:0; min-height:59px; transform:none; }
.scene-stage.has-scene-people > .scene-choices > .scene-choice::before { display:none; }
.scene-stage.has-scene-people .scene-controls { z-index:3; }
.scene-social-picker { position:absolute; inset:0; overflow:hidden; isolation:isolate; background:#132c31; }
.scene-social-picker .scene-heading { z-index:3; top:25px; left:30px; }
.scene-social-picker .scene-heading h1 { font-size:25px; margin-top:5px; }
.scene-social-picker .scene-controls { bottom:110px; z-index:3; }
.scene-empty-people { position:absolute; top:45%; left:10%; right:10%; background:#10262de8; padding:20px; color:#edf2e9; text-align:center; }
body[data-edition="v15"] .modal.scene-social-dialog { position:relative; width:1160px; max-width:96vw; height:min(720px,89dvh); padding:0; overflow:hidden; border-color:#c0e2d249; }
body[data-edition="v15"] .scene-social-dialog .m-actions { position:absolute; z-index:5; bottom:26px; right:30px; left:30px; display:flex; justify-content:flex-end; margin:0; }
.scene-social-dialog .m-actions > button { flex:0 1 220px; }
.scene-outcome.has-scene-people .scene-person { top:4%; height:116%; }
.scene-outcome.has-scene-surface .scene-person { top:calc(var(--surface-y) - 66%); height:160%; }
.scene-outcome.has-scene-people .outcome-copy { max-width:49%; left:35px; }
.scene-outcome.has-scene-people::after { background:linear-gradient(90deg,#06191ee6, #071b2085 40%,transparent 70%),linear-gradient(0deg,#06191ef5,transparent 55%); }
.scene-outcome.has-scene-people .scene-photo { object-position:center; }
.scene-outcome.has-scene-people .outcome-speaker .photo-avatar { display:none; }
.scene-outcome.has-scene-people .outcome-speaker { border-left:2px solid #bbe0ce; padding-left:11px; margin-bottom:12px; }
@media (max-width:760px) {
  .scene-stage.has-scene-people { min-height:600px; }
  .scene-stage.has-scene-people .scene-heading { top:16px; left:18px; }
  .scene-stage.has-scene-people .scene-heading h1 { font-size:24px; }
  .scene-stage.has-scene-people .scene-utility { top:17px; right:16px; }
  .scene-stage.has-scene-people .scene-small-button { max-width:110px; font-size:9px; padding:7px; }
  .scene-choice.scene-person-choice { position:absolute; left:var(--person-x); top:12%; width:76%; max-width:310px; min-height:58px; transform:translateX(-50%); padding:12px; }
  .scene-person-choice .choice-title { font-size:12px; }
  .scene-person-choice .choice-detail { font-size:10px; }
  .scene-stage.has-scene-people[data-layout] > .scene-choices { inset:auto 15px 62px; gap:8px; }
  .scene-stage.has-scene-people[data-layout] > .scene-choices > .scene-choice { min-height:79px; padding:10px 7px; display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
  .scene-stage.has-scene-people > .scene-choices .choice-detail { display:none; }
  .scene-stage.has-scene-people > .scene-choices .choice-number { flex:0 0 auto; width:22px; height:21px; }
  .scene-stage.has-scene-people .scene-input-hint { max-width:55%; font-size:9px; line-height:1.5; }
  .scene-outcome.has-scene-people .scene-person { left:60%; top:-4%; height:123%; }
  .scene-outcome.has-scene-surface .scene-person { top:calc(var(--surface-y) - 65%); height:150%; }
  .scene-outcome.has-scene-people .outcome-copy { max-width:none; left:22px; right:22px; bottom:96px; max-height:42%; }
  .scene-outcome.has-scene-people::after { background:linear-gradient(0deg,#071a20fa 6%,#071a20e3 36%,transparent 64%); }
  .scene-outcome.has-scene-people .outcome-copy h2 { font-size:25px; }
  .scene-outcome.has-scene-people .outcome-speaker { margin-bottom:7px; }
  .scene-social-picker .scene-heading { left:20px; top:20px; max-width:85%; }
  .scene-social-picker .scene-heading h1 { font-size:23px; }
  .scene-social-picker .scene-controls { bottom:120px; }
  .scene-social-picker .scene-input-hint { max-width:45%; font-size:9px; }
}
/* Named person choices stay attached to people in either saved layout preference. */
.has-scene-people .scene-person-choices > .scene-choice.scene-person-choice { position:absolute; left:var(--person-x); top:9%; width:27%; transform:translateX(-50%); }
.has-scene-surface .scene-person-choices > .scene-choice.scene-person-choice { top:calc(var(--surface-y) - 56%); }
.has-scene-people .scene-person-choices > .scene-choice.scene-person-choice::before { display:block; }
@media (max-width:760px) {
  .has-scene-people .scene-person-choices > .scene-choice.scene-person-choice { width:76%; top:12%; }
  .has-scene-surface .scene-person-choices > .scene-choice.scene-person-choice { top:calc(var(--surface-y) - 56%); }
}
@media (max-width:760px) {
  .scene-stage.has-scene-surface .scene-person, .scene-social-picker.has-scene-surface .scene-person { top:calc(var(--surface-y) - 40%); }
  .has-scene-surface .scene-person-choices > .scene-choice.scene-person-choice { top:calc(var(--surface-y) - 50%); }
  .scene-social-picker .scene-heading { max-width:calc(100% - 40px); }
  .scene-social-picker .scene-heading h1 { font-size:20px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}
@media (max-width:760px) {
  .scene-stage.has-scene-people:not(.has-scene-surface) .scene-person, .scene-social-picker:not(.has-scene-surface) .scene-person { top:24%; }
}
.scene-social-picker .scene-heading { top:15px; }
.scene-social-picker .scene-heading .scene-location { display:none; }
.scene-social-picker .scene-heading h1 { margin:0; font-size:24px; line-height:1.2; }
@media (max-width:760px) {
  .scene-social-picker .scene-heading { top:20px; }
  .scene-social-picker .scene-heading h1 { font-size:20px; }
}
body[data-edition="v15"] .scene-social-dialog .m-actions { flex-direction:row; align-items:center; }
.scene-social-picker::after { content:''; position:absolute; inset:0; background:linear-gradient(0deg,#081b21e8,transparent 42%); pointer-events:none; }
.scene-social-picker[data-scene-key="bus"] .scene-person { height:150%; }

/* Keep Alex's profile and phone together when the wide bed scene is shown on a narrow screen. */
@media (max-width:760px) {
  .scene-outcome[data-action-id="scroll"] > .scene-photo { height:64%; object-position:32% center; }
}

/* Messages keeps the contact, transcript, and reply controls in separate scroll areas. */
.phone-body[data-app="messages"].has-thread { display:flex;flex-direction:column;overflow:hidden;padding:0; }
.phone-frame .thread-head { display:flex;align-items:center;gap:9px;flex:0 0 auto;padding:10px 12px; }
.phone-frame .thread-head .photo-avatar { width:35px;height:35px; }
.phone-frame .thread-title { display:flex;flex-direction:column;gap:3px; }
.phone-frame .thread-title b { font-size:15px;line-height:1.3; }
.phone-frame .thread-title .small { font-size:11px; }
.phone-frame .has-thread .chat { flex:1;min-height:100px;overflow-y:auto;overscroll-behavior:contain;padding:12px;gap:9px; }
.phone-frame .bubble { max-width:88%;font-size:14px;line-height:1.45;overflow-wrap:anywhere; }
.phone-frame .thread-day { font-size:10px;line-height:1.4;margin:6px 0 8px; }
.phone-frame .has-thread .message-composer { flex:0 1 auto;max-height:43%;overflow-y:auto;padding:10px 12px; }
.message-compose-label { font-size:11px;font-weight:600;color:#abb9cf;margin-bottom:5px; }
.phone-frame .message-suggestions { display:flex;flex-direction:column;padding-top:0;gap:6px; }
.phone-frame .message-suggestion { text-align:left;min-height:38px;padding:9px 12px;font-size:13px;line-height:1.35;border-radius:12px; }
.message-tools { display:flex;justify-content:space-between;gap:8px;margin-top:9px; }
.message-tools button { background:transparent;border:0;color:#b7dacd;font:inherit;font-size:11px;cursor:pointer;padding:5px 0; }
.thread-empty { margin:auto;padding:20px;text-align:center;color:#a1afc4;font-size:13px; }
.phone-frame .typing-row { padding:2px 0;font-size:11px; }
@media(min-width:800px) { body[data-edition="v15"] .phone-frame { width:420px;height:clamp(590px,76vh,780px); } }

.message-reply-quote { border-left:2px solid #a3badb;padding:4px 7px;margin:0 0 6px;opacity:.8;font-size:11px; }
.message-replying-to { color:#aab7cc;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:8px; }

/* Keep choices together; reserve paging for people who cannot fit in the scene. */
.scene-stage.has-choice-grid[data-layout] > .scene-choices {
  position:absolute; inset:auto 27px 58px; display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; max-height:44%;
  overflow-y:auto; overscroll-behavior:contain; padding:4px; pointer-events:auto;
  scrollbar-width:thin; z-index:3;
}
.scene-stage.has-choice-grid[data-layout] > .scene-choices > .scene-choice {
  position:relative; left:auto; top:auto; width:auto; max-width:none;
  min-height:60px; padding:10px 12px; transform:none; gap:9px;
}
.scene-stage.has-choice-grid > .scene-choices > .scene-choice::before { display:none; }
.scene-stage.has-choice-grid .choice-title { font-size:14px; }
.scene-stage.has-choice-grid .choice-detail { font-size:12px; }
.has-scene-people .scene-person-choices > .scene-choice.scene-person-choice {
  width:var(--person-choice-width); padding:10px; gap:8px; max-width:300px;
}
.scene-person-choice .choice-title { font-size:14px; }
.scene-person-choice .choice-detail { font-size:12px; }
.scene-stage.has-scene-people[data-layout] > .scene-choices { max-height:34%; }
.scene-stage.has-scene-people .scene-controls { gap:8px; }
.scene-page-button { width:40px; height:36px; }
.phone-frame .message-suggestions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px; }
.phone-frame .message-suggestion { min-width:0;min-height:44px;padding:9px 10px;font-size:14px;overflow-wrap:anywhere; }
.phone-frame .message-suggestion-long { grid-column:1 / -1; }
.phone-frame .has-thread .message-composer { max-height:54%; }
.message-new-topics { border-top:1px solid #ffffff18;margin-top:10px;padding-top:10px; }
.message-new-topics .message-suggestion { background:#172536; }
.message-tools { justify-content:flex-end; }
.message-tools button { min-height:40px;font-size:14px; }
@media(min-width:800px) {
  body[data-edition="v15"] .phone-frame { width:520px;height:clamp(590px,82vh,860px); }
}
@media(max-width:760px) {
  .scene-stage.has-choice-grid[data-layout] > .scene-choices {
    inset:auto 12px 62px;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:51%;
  }
  .scene-stage.has-scene-people[data-layout] > .scene-choices { max-height:34%; }
  .scene-stage.has-choice-grid[data-layout] > .scene-choices > .scene-choice {
    flex-direction:row;align-items:center;min-height:60px;padding:9px 7px;gap:6px;
  }
  .scene-stage.has-scene-people > .scene-choices .choice-detail { display:block; }
  .scene-stage.has-scene-people > .scene-choices .choice-number { flex:0 0 22px; }
  .has-scene-people .scene-person-choices > .scene-choice.scene-person-choice { padding:9px 7px;gap:5px; }
  .scene-person-choice .choice-number { flex-basis:20px; }
  .scene-person-choice .choice-title { font-size:14px;line-height:1.3; }
  .scene-person-choice .choice-detail { font-size:12px;line-height:1.25; }
  .scene-stage.has-scene-people .scene-input-hint { max-width:55%; }
  .phone-frame .has-thread .message-composer { padding:8px; }
}
.scene-stage.has-scene-people .scene-location { display:none; }
.scene-stage.has-scene-people .scene-heading h1 { margin:0;font-size:24px; }

/* Subject desks differ in height; reserve the heading row above classmates. */
@media(min-width:761px) {
  [data-classroom-subject].has-scene-surface .scene-person-choices > .scene-choice.scene-person-choice {
    top:max(52px, calc(var(--surface-y) - 56%));
  }
  .scene-stage[data-classroom-subject].has-scene-people .scene-utility { top:12px; }
}

/* Testing controls stay accessible above active scenes on touch and desktop. */
body[data-edition="v15"] #debug-panel {width:min(350px,calc(100vw - 20px));max-height:calc(100dvh - 80px);background:#102329;color:#e4ede6;font-size:14px;box-shadow:0 12px 40px #0008}
#debug-panel h3 {display:flex;justify-content:space-between;align-items:center;gap:10px}
#debug-panel p {line-height:1.45;margin:8px 0 12px}

/* The phone remains in the current room; its wallpaper is a separate setting. */
body[data-edition="v15"] #screen.v15-phone { isolation: isolate; }
.phone-location-layer { position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.phone-location-layer .classroom-view { width:100%; height:100%; min-height:0; }
.phone-location-layer::after { content:""; position:absolute; inset:0; background:linear-gradient(#0a1b2180,#0a1b21c9); }

/* Place pages keep object coordinates in the photograph, including on phones. */
.place-scene { background:#102329; border:1px solid #29444a; border-radius:18px; overflow:hidden; margin:0; width:100%;max-width:none;flex-shrink:0;box-sizing:border-box; }
.place-header {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px 8px;}
.place-header h1 {font-family:Georgia,serif;font-size:clamp(24px,3vw,38px);margin:3px 0;}
.place-controls {display:flex;gap:8px;flex-shrink:0;}
.place-hint {margin:0;padding:0 24px 15px;color:#b5c8c4;font-size:13px;}
.place-viewport {overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y;cursor:grab;scrollbar-color:#b6d7c6 #102329;}
.place-viewport.is-panning,.place-viewport.is-panning * {cursor:grabbing!important;user-select:none;}
.place-canvas {position:relative;min-width:780px;width:100%;aspect-ratio:16/9;isolation:isolate;}
.place-photo {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none;}
.place-hotspot {position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;max-width:220px;min-width:110px;min-height:46px;padding:10px 14px;border-radius:12px;border:1px solid #e7fff1aa;box-shadow:0 4px 20px #0007;background:#112b2def;color:#f4fbf4;cursor:pointer;z-index:3;font:600 14px/1.25 system-ui;}
.place-hotspot::after {content:'';position:absolute;bottom:-6px;left:calc(50% - 5px);width:10px;height:10px;transform:rotate(45deg);background:inherit;border-right:1px solid #e7fff1aa;border-bottom:1px solid #e7fff1aa;}
.place-action {background:#d0e8dcf5;color:#153b35;}
.place-hotspot small {display:block;font-size:11px;font-weight:400;flex-basis:100%;}
.place-key {font-size:11px;border:1px solid currentColor;border-radius:4px;padding:2px 4px;opacity:.75;}
.place-hotspot:hover,.place-hotspot:focus-visible {outline:3px solid #e0f6e7;outline-offset:4px;}
.place-hotspot.is-locked {background:#243435ee;color:#e0e5e3;border-style:dashed;}
.place-action-panel {position:absolute;left:clamp(12px,calc(var(--x) - 17%),calc(100% - 312px));top:clamp(12px,calc(var(--y) - 15%),50%);width:300px;max-height:45%;overflow:auto;padding:12px;border:1px solid #b9dccc;background:#102629fa;border-radius:14px;box-shadow:0 6px 24px #0008;z-index:5;display:grid;gap:8px;}
.place-action-panel .place-action {position:static;transform:none;min-height:44px;padding:10px;border-radius:8px;border:1px solid #a6c7bb;text-align:left;font:600 13px/1.3 system-ui;cursor:pointer;}
.place-action-panel small {display:block;font-weight:400;margin-top:4px;}
.place-footer {display:flex;justify-content:space-between;padding:12px 24px;gap:12px;font-size:12px;color:#adc7be;}
.place-pan-hint {display:none;}
.place-prop {position:absolute;pointer-events:none;object-fit:contain;z-index:1;}
.place-bus {left:62%;top:31%;width:35%;height:29%;}
.place-car {left:4%;top:30%;width:49%;height:58%;}
.place-bike {left:55%;top:35%;width:23%;height:43%;}
.place-garage-note {padding:0 24px;color:#bccfc5;}
@media(max-width:800px){.place-header{padding:14px 12px 6px;gap:8px;}.place-header h1{font-size:23px;}.place-hint{padding:0 12px 12px;}.place-controls{gap:4px;}.place-controls button{font-size:11px;padding:8px;}.place-footer{padding:12px;flex-wrap:wrap;}.place-pan-hint{display:block;}.place-hotspot{max-width:165px;font-size:12px;padding:9px;}.place-scene{border-radius:12px;}}
