/* La cornice della pagina sul PC, sul modello della vista «In your space»: testata, etichetta, percorso in basso.
   Nel visore vero non si vede nulla di questo (body.native). */
body { background: #26322f; font-family: 'Segoe UI', Manrope, Arial, sans-serif; }
header { height: 90px; padding: 22px 36px; gap: 12px; background: linear-gradient(#0d2328b5, #0d23284a); border-bottom: 1px solid #ffffff1a; }
.brand { display: flex; align-items: center; gap: 13px; letter-spacing: 2px; font-size: 13px; font-weight: 650; white-space: nowrap; color: #fff; }
.brand small { display: block; font-size: 8px; letter-spacing: 2.5px; font-weight: 400; color: #b9d1d4; margin-top: 3px; }
.brand-symbol { position: relative; font: 250 38px/40px 'Segoe UI', Arial, sans-serif; color: #e7f7f9; padding-right: 18px; border-right: 1px solid #c0d4da44; letter-spacing: 0; }
.brand-symbol span { font-size: 15px; position: absolute; top: -8px; right: 5px; }
#mode { display: none; }
header .brand { margin-right: auto; }
header button, #credits summary { font: 400 11px 'Segoe UI', Arial, sans-serif; border: 1px solid #d5edf02a; border-radius: 8px; padding: 10px 14px; background: #08272e60; color: #fff; }
header button:hover { background: #d7efff28; }
button:focus-visible { outline: 3px solid #99ebf8; outline-offset: 4px; }
.vignette { display: none; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #0716199c, transparent 30%, #091a1e91), linear-gradient(90deg, #05171e20, transparent 65%); }
.preview-label { position: absolute; z-index: 6; top: 40px; left: 0; right: 0; display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 9px; letter-spacing: 1.3px; color: #d7e6e6; pointer-events: none; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #9ddde1; box-shadow: 0 0 14px #9ddde177; }
.preview-label .divider { width: 1px; height: 12px; background: #bed5da55; margin: 0 6px; }
footer { position: fixed; bottom: 0; left: 0; right: 0; height: 65px; background: #0a2128df; backdrop-filter: blur(18px); border-top: 1px solid #c8e4e521; display: flex; align-items: center; gap: 25px; padding: 12px 38px; z-index: 8; }
.journey { display: flex; align-items: center; gap: 18px; }
.journey > span { font-size: 10px; color: #91afbd; white-space: nowrap; }
.journey b { font-weight: 400; color: #9ed5df; font-size: 8px; margin-right: 7px; }
.journey i { width: 30px; height: 1px; background: #668c9c4f; }
body[data-phase="start"] .journey [data-step="1"], body[data-phase="scan"] .journey [data-step="1"], body[data-phase="pair"] .journey [data-step="1"],
body[data-phase="ocr"] .journey [data-step="2"], body[data-phase="draft"] .journey [data-step="2"],
body[data-phase="reading"] .journey [data-step="3"], body[data-phase="review"] .journey [data-step="3"],
body[data-phase="done"] .journey [data-step="4"] { color: #e5ffff; font-weight: 600; }
#status { position: static; margin-left: auto; font-size: 10px; color: #ceddde; }
footer #credits { position: static; max-width: none; padding: 0; background: none; }
footer #credits[open] p { position: absolute; right: 38px; bottom: 70px; width: min(460px, 80vw); padding: 14px 16px; border-radius: 10px; background: #0b252df2; border: 1px solid #c8e4e521; }
#credits summary { list-style: none; cursor: pointer; }
#ask { bottom: 84px; left: 38px; width: min(340px, 40vw); }
body[data-phase="done"] #ask { display: none; }
#caption { position: fixed; z-index: 7; bottom: 82px; left: 50%; transform: translateX(-50%); margin: 0; width: max-content; max-width: min(620px, 44vw); padding: 11px 18px; border-radius: 12px; background: linear-gradient(135deg, #132f3af2, #122d36e6); border: 1px solid #bfebef40; color: #e0ebef; font-size: 12.5px; line-height: 1.55; box-shadow: 0 14px 40px #00191d55; }
#caption::before { content: 'TUTOR'; display: block; font-size: 8px; letter-spacing: 1.5px; font-weight: 600; color: #a5cbd4; margin-bottom: 3px; }
body.xr #caption, body.native #caption { display: none; }
body.native footer, body.native .preview-label, body.native .vignette { display: none; }
body.xr .preview-label, body.xr .vignette { display: none; }
