/* A quiet, readable frame for the LCB app. Tour effects live inside the app. */
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; color-scheme: light; --ink: #193638; --petrol: #294e4f; --muted: #50675e; --paper: #fafbf7; --line: #cbd9ce; --soft: #eaf0e6; --focus: #175f8c; }
* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-width: 0; height: 100dvh; margin: 0; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
:root:has(body.large-text) { font-size: 18px; }
body.large-text { font-size: 18px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 650; }
a { color: var(--petrol); text-underline-offset: .2em; }
.skip-link { position: fixed; z-index: 30; top: -100px; left: 16px; padding: 10px 16px; border: 2px solid var(--focus); background: white; }
.skip-link:focus { top: 10px; }
.primary-button, .secondary-button, .quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .5rem .8rem; border: 1px solid #a8bcad; border-radius: 5px; background: #fffefa; color: var(--petrol); font-size: .9rem; line-height: 1.3; font-weight: 580; text-decoration: none; white-space: nowrap; }
.primary-button { background: var(--petrol); border-color: var(--petrol); color: white; }
.primary-button:hover { background: #1c3c3e; }
.secondary-button:hover { background: #e7eee2; border-color: var(--petrol); }
.quiet-button { border-color: transparent; background: transparent; }
.quiet-button:hover { background: var(--soft); }
.tour-header { flex: 0 0 auto; display: flex; align-items: center; gap: 1rem; padding: .55rem 1.1rem; border-bottom: 1px solid var(--line); background: #fbfcf8; }
.tour-brand { display: flex; align-items: center; flex: 0 0 auto; }
.tour-brand img { display: block; width: 108px; height: 44px; object-fit: contain; }
.tour-identity { flex: 0 0 auto; display: flex; flex-direction: column; gap: .1rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.tour-identity strong { font-size: 1rem; font-weight: 650; letter-spacing: -.025em; }
.tour-identity > span { font-size: .78rem; color: var(--muted); }
.tour-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .3rem; margin-left: auto; }
.tour-header-actions .quiet-button { font-size: .82rem; padding-inline: .55rem; }
.device-switch { display: inline-flex; align-items: stretch; gap: 2px; padding: 2px; border: 1px solid #b2c5b5; border-radius: 6px; background: #edf2e9; }
.device-switch button { min-height: 44px; padding: .45rem .65rem; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 600; }
.device-switch button[aria-pressed="true"], .device-switch button.active { color: white; background: var(--petrol); }
.text-symbol { font-size: 1.05rem; font-weight: 700; letter-spacing: -.06em; }
.tour-chapters { flex: 0 0 auto; display: flex; gap: 0; padding: 0 1rem; overflow-x: auto; border-bottom: 1px solid var(--line); background: #f6f8f1; scrollbar-width: thin; }
.tour-chapters:empty { display: none; }
.tour-chapters button, .tour-chapters a { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; min-height: 44px; padding: .4rem .7rem; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); background: transparent; text-decoration: none; white-space: nowrap; font-size: .8rem; font-weight: 550; }
.tour-chapters [aria-current="step"], .tour-chapters [aria-current="page"], .tour-chapters .active { border-bottom-color: var(--petrol); color: var(--petrol); font-weight: 700; background: #e9f0e2; }
.tour-main { position: relative; flex: 1 1 auto; min-height: 0; min-width: 0; }
.tour-layout { display: grid; grid-template-columns: minmax(0,1fr) 318px; height: 100%; min-height: 0; }
body:not(.tour-running) .tour-layout, body:not(.tour-running) .tour-controls, body:not(.tour-running) .tour-chapters { visibility: hidden; }
.tour-stage { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 0; overflow: hidden; background: #e4ece1; }
.tour-screenbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; align-self: stretch; padding: .3rem .8rem; min-height: 31px; border-bottom: 1px solid var(--line); color: #4c6755; font-size: .72rem; }
.tour-screenbar > span:first-child { font-weight: 600; }
#tour-app { flex: 1 1 auto; display: block; width: 100%; min-height: 0; border: 0; background: #f7faf5; }
.tour-notes { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; padding: 1.15rem 1.1rem 1rem; border-left: 1px solid #b6c9b9; scrollbar-width: thin; background: #fafbf7; }
.explanation-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.eyebrow { font-size: .74rem; letter-spacing: .075em; font-weight: 650; text-transform: uppercase; color: var(--muted); }
.simulation-tag { display: inline-flex; align-items: center; border: 1px solid #b5c8b9; border-radius: 3px; padding: .1rem .35rem; color: #426044; font-size: .7rem; line-height: 1.3; }
#tour-title { font-size: 1.45rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
.tour-description { margin-top: .8rem; font-size: 1rem; line-height: 1.5; color: #304e43; }
.tour-description p + p { margin-top: .65rem; }
.tour-description ul, .tour-description ol { margin: .55rem 0; padding-left: 1.15rem; }
.tour-description li { margin-bottom: .4rem; }
.tour-description strong { color: #173d31; font-weight: 650; }
.note-label { display: block; font-size: .74rem; font-weight: 650; letter-spacing: .035em; text-transform: uppercase; color: #5c7062; margin-bottom: .35rem; }
.tour-source-wrap { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 1rem; font-size: .83rem; color: var(--muted); line-height: 1.45; }
.tour-question-wrap { padding: .7rem 0 .7rem .8rem; margin-top: 1rem; border-left: 3px solid #709473; }
#tour-question { font-size: .93rem; line-height: 1.5; }
.tour-status-wrap { display: flex; align-items: flex-start; gap: .45rem; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: auto; padding-bottom: .1rem; font-size: .82rem; color: #3e5e48; }
.tour-question-wrap + .tour-status-wrap { margin-top: 1rem; }
.status-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #638969; margin-top: .45rem; }
#tour-status { overflow-wrap: anywhere; }
#tour-status.error, #tour-status.danger { color: #943c2e; }
#tour-status.warning { color: #79500b; }
.tour-integrity { font-size: .73rem; line-height: 1.45; color: #5b6e60; margin-top: .6rem; }
.tour-controls { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; padding: .65rem 1.1rem; border-top: 1px solid #b9cbbc; background: #f5f8ef; }
.tour-progress-wrap { display: flex; flex-direction: column; gap: .35rem; flex: 1; max-width: 440px; min-width: 90px; }
#tour-position { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
#tour-progress { display: block; width: 100%; height: 4px; appearance: none; border: 0; border-radius: 0; overflow: hidden; background: #d3dfce; color: #446d50; }
#tour-progress::-webkit-progress-bar { background: #d3dfce; }
#tour-progress::-webkit-progress-value { background: #446d50; }
#tour-progress::-moz-progress-bar { background: #446d50; }
.tour-control-buttons { display: flex; align-items: center; gap: .45rem; }
#tour-next { min-width: 94px; }
.tour-welcome { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; gap: 3rem; padding: 2rem clamp(1.5rem, 6vw, 6.5rem); overflow-y: auto; background: radial-gradient(ellipse at 90% 10%, #e3eddf 0%, transparent 60%), var(--paper); }
.tour-running .tour-welcome { display: none; }
.welcome-content { max-width: 830px; min-width: 0; padding-block: .5rem; }
.welcome-content > .eyebrow { margin-bottom: 1.15rem; }
.welcome-content h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 620; letter-spacing: -.052em; }
.welcome-lead { max-width: 65ch; font-size: 1.06rem; line-height: 1.55; color: #486250; margin-top: 1.1rem; }
.welcome-facts { display: grid; grid-template-columns: 1.1fr 1.6fr 1.1fr; gap: 1.5rem; margin-top: 1.8rem; padding-block: 1rem; border-block: 1px solid #b9cfb9; }
.welcome-facts dt { font-size: .76rem; color: #59725c; margin-bottom: .3rem; }
.welcome-facts dd { font-size: .95rem; font-weight: 600; line-height: 1.4; }
.welcome-facts dd span { display: block; margin-top: .2rem; font-size: .83rem; font-weight: 400; color: #506c54; }
.welcome-action { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 1.7rem; }
.start-button { min-height: 48px; padding: .7rem 1.1rem; font-size: 1rem; }
.welcome-action > span { color: #506c54; font-size: .85rem; }
.welcome-scope { max-width: 74ch; color: #5c7060; font-size: .83rem; line-height: 1.5; margin-top: .85rem; }
.tour-load-status { color: var(--muted); font-size: .84rem; line-height: 1.45; margin-top: .65rem; }
.tour-load-status.error { color: #943c2e; }
.welcome-review { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .6rem; font-size: .85rem; }
.welcome-accent { display: flex; flex: 1; min-width: 140px; max-width: 240px; flex-direction: column; align-self: stretch; justify-content: center; color: #7d9e7c; }
.welcome-accent > span:first-child { font-size: 7rem; line-height: 1; font-weight: 300; letter-spacing: -.08em; color: #acbfa5; }
.welcome-accent > div { height: 1px; width: 100%; background: #b9cfb4; margin: 1rem 0; }
.welcome-accent > span:last-child { font-size: .85rem; }
.noscript-message { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; margin: 0; padding: 1rem; background: #fff0d1; color: #714e14; }
@media (min-width: 1600px) { .tour-layout { grid-template-columns: minmax(0,1fr) 350px; } .tour-notes { padding: 1.3rem; } }
@media (max-width: 1120px) {
  .tour-header { flex-wrap: wrap; gap: .45rem .8rem; }
  .tour-header-actions { gap: .1rem; }
  .tour-header-actions .quiet-button { padding-inline: .4rem; }
  .tour-identity { padding-left: .8rem; }
  .tour-layout { grid-template-columns: minmax(0,1fr) 290px; }
  .tour-notes { padding: 1rem .9rem; }
  .welcome-accent { display: none; }
}
@media (max-width: 920px) {
  body { height: auto; min-height: 100dvh; }
  .tour-header-actions { margin-left: 0; flex-basis: 100%; justify-content: flex-start; padding-top: .25rem; border-top: 1px solid var(--line); }
  .tour-header-actions .exit-link { margin-left: auto; }
  .tour-main { flex: 1; min-height: 650px; }
  .tour-layout { display: flex; height: auto; flex-direction: column; }
  .tour-stage { height: 620px; min-height: 360px; }
  .tour-notes { border-left: 0; border-top: 1px solid #b6c9b9; padding: 1.1rem; overflow: visible; }
  .tour-description { max-width: 78ch; }
  .tour-source-wrap { margin-top: .8rem; padding-top: .6rem; }
  .tour-question-wrap { margin-top: .8rem; }
  .tour-integrity { max-width: 90ch; }
  .tour-controls { position: sticky; bottom: 0; z-index: 10; gap: 1rem; }
  body:not(.tour-running) .tour-layout, body:not(.tour-running) .tour-controls { display: none; }
  .tour-welcome { position: relative; min-height: 650px; padding: 2rem; }
}
@media (max-width: 580px) {
  .tour-header { padding: .6rem .7rem; gap: .55rem .7rem; }
  .tour-brand img { width: 90px; height: 40px; }
  .tour-identity { padding-left: .7rem; }
  .tour-identity strong { font-size: .95rem; }
  .tour-identity > span { font-size: .7rem; }
  .tour-header-actions { flex-wrap: wrap; gap: .15rem; }
  .device-switch button { font-size: .8rem; padding-inline: .55rem; }
  .tour-header-actions .quiet-button { font-size: .78rem; }
  #tour-text-size > span:last-child { display: none; }
  #tour-text-size { min-width: 44px; }
  .tour-header-actions .exit-link { margin-left: auto; }
  .tour-chapters { padding-inline: .25rem; }
  .tour-chapters button, .tour-chapters a { font-size: .79rem; padding-inline: .6rem; }
  .tour-main { min-height: 0; }
  .tour-stage { height: 570px; }
  .tour-screenbar { flex-wrap: wrap; gap: .1rem .5rem; padding: .35rem .6rem; font-size: .7rem; }
  .tour-notes { padding: 1rem .85rem; }
  #tour-title { font-size: 1.45rem; }
  .tour-description { font-size: 1rem; }
  .tour-controls { padding: .5rem .7rem max(.55rem, env(safe-area-inset-bottom)); flex-wrap: wrap; gap: .4rem; }
  .tour-progress-wrap { flex-basis: 100%; max-width: none; gap: .2rem; }
  #tour-position { font-size: .75rem; }
  #tour-progress { height: 3px; }
  .tour-control-buttons { width: 100%; gap: .35rem; }
  .tour-control-buttons button { flex: 1; padding-inline: .4rem; font-size: .83rem; }
  #tour-next { min-width: 0; }
  .tour-welcome { min-height: 0; padding: 1.5rem .9rem 2rem; align-items: flex-start; }
  .welcome-content > .eyebrow { font-size: .71rem; margin-bottom: .85rem; }
  .welcome-content h1 { font-size: 2.25rem; }
  .welcome-lead { font-size: 1rem; margin-top: .9rem; }
  .welcome-facts { grid-template-columns: minmax(0,1fr); gap: .8rem; margin-top: 1.2rem; padding-block: .9rem; }
  .welcome-facts > div { display: grid; grid-template-columns: 5.7rem minmax(0,1fr); gap: .65rem; }
  .welcome-facts dt { font-size: .78rem; margin-top: .15rem; }
  .welcome-facts dd { font-size: .91rem; }
  .welcome-action { margin-top: 1.2rem; }
  .welcome-action .start-button { width: 100%; }
  .welcome-scope { font-size: .8rem; }
  .welcome-review { font-size: .82rem; }
}
@media (max-width: 360px) {
  .tour-identity strong { font-size: .88rem; }
  .tour-identity > span { font-size: .66rem; }
  .tour-header-actions .review-link { order: 5; flex: 1; justify-content: flex-start; }
  .tour-header-actions .exit-link { order: 6; }
  .welcome-content h1 { font-size: 2rem; }
  .welcome-facts > div { grid-template-columns: 5.3rem minmax(0,1fr); }
}
@media (prefers-contrast: more) {
  :root { --muted: #2c4637; --line: #849b84; }
  .tour-integrity, .welcome-scope, .note-label { color: #344d3d; }
  .simulation-tag { border-color: #617d64; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.tour-chapters span { flex:0 0 auto; padding:.55rem .7rem; color:#5a6c64; font-size:.8rem; border-bottom:2px solid transparent; white-space:nowrap; }
.tour-chapters span.active { color:#254d4d; border-bottom-color:#254d4d; font-weight:700; background:#eaf0e7; }
.discussion-link { display:inline-block; margin-top:.5rem; font-size:.85rem; line-height:1.4; }
#tour-status.error { color:#a33222; }

/* CP-05: a single compact discussion rail, with persistent context. */
textarea { font:inherit; }
.tour-layout { grid-template-columns:minmax(0,1fr) 350px; }
.tour-notes { padding:.85rem 1rem; gap:0; }
.explanation-heading { margin-bottom:.45rem; }
#tour-title { font-size:1.28rem; line-height:1.2; }
.tour-description { margin-top:.55rem; font-size:.9rem; line-height:1.45; }
.tour-key { display:flex; gap:.5rem; margin:.75rem 0; padding:.55rem 0; border-block:1px solid var(--line); color:#426158; font-size:.8rem; line-height:1.4; }
.tour-key > span { flex:0 0 18px; height:18px; border:1px solid #779487; border-radius:50%; text-align:center; font-size:.7rem; font-weight:700; margin-top:1px; }
#tour-answer-form { margin:0; }
#tour-question { font-size:.88rem; line-height:1.4; }
.answer-choices { display:flex; gap:.3rem; margin:.6rem 0 .45rem; }
.answer-choices button { flex:1; min-height:40px; padding:.35rem .2rem; border:1px solid #a8bcb0; border-radius:4px; background:transparent; font-size:.79rem; font-weight:600; }
.answer-choices button[aria-pressed="true"] { color:white; background:var(--petrol); border-color:var(--petrol); }
#tour-answer { display:block; width:100%; min-height:78px; resize:vertical; padding:.5rem .6rem; border:1px solid #a8bcb0; border-radius:4px; background:#fffefa; color:var(--ink); font-size:.88rem; line-height:1.4; }
.answer-owner { display:flex; align-items:center; gap:.5rem; margin-top:.45rem; font-size:.78rem; }
.answer-owner label { flex:0 0 auto; color:var(--muted); }
.answer-owner input { width:100%; min-width:0; min-height:36px; border:0; border-bottom:1px solid #a8bcb0; background:transparent; font-size:.8rem; color:var(--ink); padding:.2rem .3rem; }
input:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.answer-save { display:flex; flex-direction:column; gap:.1rem; margin-top:.5rem; font-size:.72rem; line-height:1.35; color:#43634b; }
.answer-save strong { font-weight:600; }
.answer-save[data-state="error"] { color:#8e321f; }
.answer-tools { display:flex; gap:.85rem; flex-wrap:wrap; }
.answer-tools button { min-height:34px; padding:0; font-size:.74rem; text-decoration:underline; text-underline-offset:3px; background:transparent; border:0; color:var(--muted); }
.tour-source-wrap { margin-top:.3rem; padding-top:.4rem; font-size:.77rem; }
.tour-source-wrap summary { cursor:pointer; font-weight:600; min-height:30px; display:list-item; }
.tour-source-wrap > div { padding:.2rem 0 .5rem; }
.tour-status-wrap { margin-top:.45rem; padding-top:.4rem; font-size:.72rem; }
.tour-integrity { margin-top:.3rem; font-size:.68rem; }
#tour-notes-count { font-size:.68rem; color:var(--muted); font-weight:400; }
.call-dialog { color:var(--ink); background:var(--paper); width:min(800px,calc(100% - 24px)); max-height:90dvh; padding:0; border:1px solid #9db6a6; border-radius:8px; }
.call-dialog::backdrop { background:#18383c75; backdrop-filter:blur(2px); }
.call-dialog > header { position:sticky; top:0; padding:1rem 1.2rem; background:var(--paper); border-bottom:1px solid var(--line); }
.call-dialog h2 { font-size:1.3rem; }
#call-dialog-body { padding:1rem 1.2rem; }
#call-dialog-body > p { margin-bottom:.75rem; }
.call-note-item { border-top:1px solid var(--line); padding:.85rem 0; overflow-wrap:anywhere; }
.call-note-item h3 { font-size:.96rem; margin-bottom:.35rem; }
.call-note-item p { font-size:.88rem; margin:.25rem 0; }
.call-note-question,.note-owner { color:var(--muted); }
.preserve-lines { white-space:pre-wrap; }
.earlier-notes summary { cursor:pointer; font-weight:600; padding:.8rem 0; }
#call-dialog-actions { position:sticky; bottom:0; display:flex; gap:.4rem; flex-wrap:wrap; padding:.75rem 1rem; border-top:1px solid var(--line); background:var(--paper); }
#call-dialog-actions button { font-size:.8rem; }
.call-error { color:#8e321f; }
@media(min-width:1600px){.tour-layout{grid-template-columns:minmax(0,1fr) 370px;}}
@media(min-width:921px) and (max-width:1120px){.tour-layout{grid-template-columns:minmax(0,1fr) 320px;}}
@media(max-width:920px){.tour-notes{padding:1rem;} .answer-choices button{min-height:44px;} #tour-answer{font-size:1rem;} .answer-owner input{font-size:1rem;min-height:44px;}}
@media print {
  body { display:block; height:auto; }
  body > :not(#call-dialog) { display:none!important; }
  #call-dialog { display:block; position:static; width:auto; max-height:none; overflow:visible; border:0; margin:0; }
  #call-dialog::backdrop,#call-dialog-actions { display:none; }
  .call-dialog > header { position:static; }
  .call-note-item { break-inside:avoid; }
  .earlier-notes::details-content { display:block; }
  .earlier-notes > * { display:block; }
}

/* CP-06: the display stays 402 × 874, independent of its display scale. */
.preview-canvas { display:flex; flex:1; width:100%; min-height:0; min-width:0; overflow:hidden; }
.device-slot,.phone-device,.device-display { display:flex; flex:1; min-height:0; min-width:0; width:100%; }
.device-display { flex-direction:column; }
.phone-hardware,.phone-status,.phone-home,.phone-caption { display:none; }
.preview-options { display:flex; align-items:center; gap:.7rem; }
#tour-device-zoom { border:1px solid #9eafa5; border-radius:4px; background:#fbfcf8; min-height:44px; padding:.15rem .6rem; font-size:.73rem; }
#tour-device-scale { font-variant-numeric:tabular-nums; color:#52675e; }
.guide-label { display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin:-.85rem -1rem .85rem; padding:.5rem 1rem; border-bottom:1px solid var(--line); color:var(--petrol); font-size:.75rem; font-weight:650; }
.guide-label span { font-size:.65rem; color:var(--muted); font-weight:400; }
.phone-mode { background:radial-gradient(ellipse at 50% 35%,#f6f8f3 0%,#dce5df 100%); }
.phone-mode .tour-screenbar { background:#ecf1ea; }
.phone-mode .preview-canvas { padding:24px 32px; overflow:auto; }
.phone-mode .device-slot { position:relative; flex:none; width:calc(426px * var(--phone-scale, .6)); height:calc(890px * var(--phone-scale, .6)); margin:auto; }
.phone-mode .phone-device { position:absolute; inset:0 auto auto 0; display:block; width:426px; height:890px; padding:5px 9px; border:3px solid #adb3b8; border-radius:59px; background:linear-gradient(100deg,#e6e8e8,#979fa6 3%,#edf0f1 6%,#b8bec3 96%,#f7f8f8 99%); box-shadow:inset 0 0 0 1px #fdfefe,0 0 0 1px #858e95,0 13px 32px #23373330,0 30px 65px #23373320; transform:scale(var(--phone-scale,.6)); transform-origin:top left; }
.phone-mode .device-display { display:flex; width:402px; height:874px; overflow:hidden; border-radius:48px; background:#f5f9f7; box-shadow:0 0 0 5px #11171b; isolation:isolate; }
.phone-mode #tour-app { flex:1; width:402px; min-height:0; border:0; border-radius:0; margin:0; }
.phone-mode .phone-status { position:relative; display:flex; flex:0 0 62px; align-items:flex-start; justify-content:space-between; padding:20px 27px 0 32px; color:#10282b; background:#f5f9f7; font-size:15px; line-height:20px; font-weight:650; }
.phone-clock { letter-spacing:-.3px; }
.phone-island { position:absolute; width:126px; height:36px; top:12px; left:138px; border-radius:24px; background:#080b0d; box-shadow:inset 0 0 0 1px #000; }
.phone-island::after { content:''; position:absolute; right:12px; top:12px; width:12px; height:12px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#172b42,#0c1520 40%,#020609 68%); }
.phone-indicators { display:flex; align-items:center; gap:5px; height:20px; }
.phone-indicators svg { width:16px; height:13px; }
.phone-battery { position:relative; width:23px; height:12px; padding:1.5px; border:1px solid #263b3d; border-radius:3px; }
.phone-battery::before { content:''; display:block; height:100%; border-radius:1px; background:#263b3d; }
.phone-battery::after { content:''; position:absolute; right:-3px; top:3px; height:4px; width:2px; border-radius:0 2px 2px 0; background:#263b3d; }
.phone-mode .phone-home { display:flex; flex:0 0 25px; justify-content:center; align-items:flex-end; padding-bottom:8px; background:#f5f9f7; }
.phone-home span { width:135px; height:5px; border-radius:6px; background:#13292b; }
.phone-mode .phone-hardware { display:block; }
.phone-hardware i { position:absolute; display:block; width:4px; border:1px solid #a4acb2; background:linear-gradient(90deg,#8b949d,#e0e4e7); border-radius:3px; }
.phone-action { top:150px; left:-6px; height:26px; }
.phone-volume-up { top:206px; left:-6px; height:56px; }
.phone-volume-down { top:277px; left:-6px; height:56px; }
.phone-power { top:230px; right:-6px; height:86px; }
.phone-camera { top:605px; right:-6px; height:53px; }
.phone-mode .phone-caption { display:block; flex:0 0 auto; padding:0 12px 10px; font-size:.69rem; color:#4d655b; text-align:center; }
@media(max-width:920px) { .guide-label { margin:-1rem -1rem .85rem; } }
@media(max-width:580px) {
  .phone-mode .preview-canvas { padding:18px 20px; }
  .preview-options { gap:.4rem; }
  .phone-mode .preview-sample { display:none; }
  #tour-device-zoom { min-height:44px; }
  .phone-mode .phone-caption { font-size:.63rem; }
}

/* Shared review controls remain in the guide, outside the simulated device. */
.shared-tour-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.shared-tour-actions button,.shared-tour-comments>button{min-height:44px;font-size:.82rem;padding:9px 12px}.shared-tour-comments{border-top:1px solid var(--line,#cfdbd3);padding-top:14px;margin-top:16px}.shared-tour-comments textarea{display:block;width:100%;max-width:100%;font:inherit;resize:vertical;min-height:72px;border:1px solid #9fb6a9;border-radius:4px;padding:9px;background:#fffdf7}.shared-tour-comments>button{margin:8px 0}.shared-tour-comments p{font-size:.82rem;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.shared-tour-comments #shared-tour-thread p{border-top:1px solid #d3ddd1;padding-top:9px;margin-top:9px}#tour-answer-choices button[disabled]{opacity:.5;cursor:not-allowed}

/* Keep review navigation compact so the working app gets the available space. */
.tour-header{padding:.15rem .6rem;gap:.55rem}
.tour-brand img{width:80px;height:34px}
.tour-identity{display:none}
.tour-header-actions{gap:.2rem}
@media(min-width:761px){
 .tour-chapters{padding:0 .45rem}
 .tour-chapters button,.tour-chapters a{min-height:34px;padding:.2rem .55rem}
 .tour-screenbar{min-height:24px;padding:.1rem .65rem}
 .tour-controls{min-height:54px;padding:.25rem .65rem;gap:.8rem}
}
@media(max-width:760px){.tour-brand{display:none}.tour-header-actions{flex-basis:100%;border-top:0;padding-top:0;margin:0;gap:.1rem}.tour-header{padding:.15rem .4rem}.tour-header-actions .quiet-button{padding-inline:.35rem}}

/* Explore uses the same app and device controls, with guidance out of the way. */
body.tour-exploring{height:100dvh;min-height:0;overflow:hidden}
.tour-exploring .tour-welcome,.tour-exploring .tour-notes,.tour-exploring .tour-controls,.tour-exploring .tour-chapters{display:none!important}
body.tour-exploring .tour-layout{display:grid!important;visibility:visible;grid-template-columns:minmax(0,1fr);height:100%}
.tour-exploring .tour-main{min-height:0;flex:1}
.tour-exploring .tour-stage{height:100%;min-height:0}
.tour-exploring .phone-caption{display:none}
.tour-mode-switch{margin-right:.35rem}
