* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #090f1b; }
body { margin: 0; color: #edf2fa; font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; }
.shell { max-width: 620px; margin: 0 auto; padding: 22px 22px 24px; }
header, .title-row, .preview-footer, .actions, .options-toggle, .option-row, footer { display: flex; align-items: center; justify-content: space-between; }
header { margin-bottom: 34px; font-size: 12px; }
a { color: #bdcede; text-decoration: none; }
#backToApps { display: inline-block; min-height: 36px; padding: 10px 0; }
#connection { color: #8c9db6; text-align: right; }
.eyebrow { margin: 0 0 8px; font-size: 10px; letter-spacing: .2em; color: #8fc9da; }
h1 { margin: 0; font-size: 42px; line-height: 1.1; font-weight: 500; letter-spacing: -.04em; }
#zoomLevel { padding: 10px 14px; border: 1px solid #2b3d53; border-radius: 24px; color: #eac488; font-size: 18px; }
.intro { margin: 17px 0 24px; color: #9eafc7; line-height: 1.5; font-size: 14px; }
.preview-card { overflow: hidden; border: 1px solid #2b3a50; border-radius: 12px; background: #050911; }
#preview { position: relative; width: 100%; height: 220px; margin: 0 auto; cursor: crosshair; overflow: hidden; touch-action: manipulation; }
#preview canvas { display: block; width: 100%; height: 100%; }
#preview[aria-disabled="true"] { cursor: wait; }
.preview-footer { min-height: 42px; padding: 10px 13px; font-size: 11px; color: #b5c3d7; background: #111c2d; }
#engine { color: #7390a9; font-size: 9px; letter-spacing: .08em; margin-left: 10px; text-align: right; }
.progress-track { height: 2px; background: #1e2b3e; }
#progress { height: 2px; width: 0; background: #75cec4; transition: width .15s; }
.actions { margin: 18px 0 24px; }
button, select, input { font: inherit; }
button { border: 1px solid #33445d; border-radius: 9px; color: #ebf1fa; background: #19263b; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:focus, select:focus, input:focus, #preview:focus { outline: 2px solid #88dbd0; outline-offset: 3px; }
.actions button { min-height: 52px; width: 48%; font-size: 14px; }
.actions button span { padding-right: 8px; font-size: 23px; vertical-align: -1px; }
.options-toggle { width: 100%; min-height: 52px; padding: 12px 16px; background: #101c2d; border-color: #26384e; text-align: left; font-size: 14px; }
#optionsArrow { font-size: 22px; color: #8fc9da; }
#options { margin-top: 10px; padding: 20px 17px 4px; border: 1px solid #26384e; border-radius: 10px; background: #101927; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 20px; color: #e5c58c; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
label { display: block; margin: 0 0 9px; font-size: 13px; color: #c4d0e1; }
select { display: block; width: 100%; height: 45px; margin-bottom: 21px; padding: 0 10px; background: #19263b; color: #edf2fa; border: 1px solid #344761; border-radius: 6px; }
input[type="range"] { width: 100%; margin: 0 0 23px; min-height: 26px; }
output { float: right; color: #91bbcf; }
.check { display: flex; align-items: center; min-height: 40px; margin: 0 0 17px; }
.check input { width: 20px; height: 20px; margin: 0 12px 0 0; }
.option-row { align-items: flex-start; }
.option-row > div { width: 47%; }
#paletteStrip { display: flex; height: 6px; overflow: hidden; border-radius: 3px; margin: -9px 0 26px; }
#paletteStrip i { display: block; width: 17%; }
.setting-note { font-size: 12px; color: #8d9fb8; line-height: 1.6; margin: 0 0 20px; }
#feedback { min-height: 20px; line-height: 1.5; margin: 15px 1px 8px; font-size: 12px; color: #a3cbd0; }
#feedback.error { color: #ffc18d; }
footer { padding-top: 16px; border-top: 1px solid #213047; color: #627b97; font-size: 10px; letter-spacing: .08em; }
footer a { color: #7e96b0; letter-spacing: 0; }
@media (max-width: 360px) { .shell { padding: 14px; } h1 { font-size: 36px; } header { margin-bottom: 22px; } }
@media (orientation: landscape) and (max-height: 600px) { header { margin-bottom: 10px; } h1 { font-size: 32px; } .intro { margin: 10px 0 14px; } }

.destinations { margin: 24px 0; }
.destinations label { display: block; margin-bottom: 10px; }
#tourStatus { color: #a3cbd0; font-size: 13px; line-height: 1.5; }
#locationSource { display: block; margin-top: 12px; color: #7e96b0; font-size: 11px; }
#stopTour { padding: 12px 18px; }
.destinations h2 { font-size: 16px; font-weight: 500; margin: 0 0 8px; }
.destination-note { font-size: 12px; line-height: 1.5; color: #8d9fb8; margin: 0 0 14px; }
.destination-grid { display: flex; flex-wrap: wrap; justify-content: space-between; max-height: 390px; overflow-y: auto; padding: 3px; }
.destination-grid button { width: 48%; margin-bottom: 12px; padding: 0; overflow: hidden; text-align: left; }
.destination-grid img { display: block; width: 100%; height: auto; }
.destination-grid span { display: block; padding: 10px; font-size: 12px; min-height: 36px; }
.destination-grid button[aria-pressed="true"] { border-color: #8fded3; background: #26444b; }
.destination-grid button:focus { outline: 2px solid #8fded3; outline-offset: 1px; }
