/* SPDX-License-Identifier: LicenseRef-LiberUnda-Freeware
   Copyright (C) 2026 Christophe Nutoni. All rights reserved.
   Guided tours: the « ? Guides » menu, and a veil that lights the control a step points at. */
.tr-menu { position: relative; }
.tr-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 260px; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); border-color: var(--edge); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.tr-list[hidden] { display: none; }
.tr-list button { text-align: left; font: inherit; color: var(--text); background: transparent; border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.tr-list button:hover, .tr-list button:focus-visible { background: rgba(127,127,127,.15); }
.tr-veil { position: fixed; inset: 0; z-index: 900; }
.tr-veil[hidden] { display: none; }
/* The lit control: a hole in a dark veil, made with one large shadow. */
.tr-hole { position: fixed; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); outline: 2px solid #3DD68C; pointer-events: none; transition: all .2s ease; }
.tr-bubble { position: fixed; width: min(360px, calc(100vw - 20px)); padding: 14px 16px; border-radius: 12px; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); border-color: var(--edge); color: var(--text); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.tr-bubble h3 { margin: 2px 0 6px; font-size: 15px; }
.tr-bubble p { margin: 0 0 12px; line-height: 1.45; }
.tr-bubble[data-side="below"]::before, .tr-bubble[data-side="above"]::after { content: ""; position: absolute; left: 22px; border: 8px solid transparent; }
.tr-bubble[data-side="below"]::before { top: -16px; border-bottom-color: var(--line); }
.tr-bubble[data-side="above"]::after { bottom: -16px; border-top-color: var(--line); }
.tr-foot { display: flex; gap: 6px; align-items: center; }
.tr-foot .spacer { flex: 1; }
.tr-foot [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .tr-hole { transition: none; } }
/* Help (22/11/2026): one item above Settings; its menu opens beside it. */
.help-wrap { position: relative; }
.help-menu { position: fixed; z-index: 80; min-width: 280px; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-b, #161B22); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); }
.help-menu[hidden] { display: none; }
.help-menu button { text-align: left; font: inherit; font-size: 13px; color: var(--text); background: transparent; border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.help-menu button:hover, .help-menu button:focus-visible { background: rgba(127, 127, 127, 0.15); }
.help-menu #help-tours { display: flex; flex-direction: column; }
.help-menu .help-h { padding: 6px 10px 2px; font: 700 9px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.help-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; width: auto; }
.help-menu .help-ver { padding: 4px 10px 6px; font: 600 10px var(--mono); color: var(--muted); }
/* « Do it together » (22/11/2026): the user acts through the veil; the bubble turns green once done. */
.tr-veil.do { pointer-events: none; }
.tr-veil.do .tr-bubble { pointer-events: auto; }
.tr-bubble.ok { border-color: #3DD68C; }
.tr-bubble.ok p { color: #3DD68C; font-weight: 600; }
/* The bubble stands out from the studio (dark or light skin): deep green, the lit outline's green (Christophe, 22/11/2026). */
.tr-bubble { background: linear-gradient(180deg, #14432F, #0E2F21); border: 1px solid #3DD68C; color: #F2FFF8; box-shadow: 0 0 0 1px rgba(61,214,140,.25), 0 16px 40px rgba(0,0,0,.5); }
.tr-bubble .muted, .tr-bubble small { color: #A8E6C5; }
.tr-bubble[data-side="below"]::before { border-bottom-color: #3DD68C; }
.tr-bubble[data-side="above"]::after { border-top-color: #3DD68C; }
.tr-bubble .btn { background: #0B241A; border-color: #2E7A55; color: #E8FFF3; }
.tr-bubble .btn.primary { background: #3DD68C; border-color: #3DD68C; color: #06241A; }
.tr-bubble.ok { border-color: #8CF5C0; }
.tr-bubble.ok p { color: #8CF5C0; }

/* « My station in 4 steps » (24/11/2026): a list in a corner; nothing greyed out. */
.ck { position: fixed; right: 18px; bottom: 64px; z-index: 80; width: 300px; background: #171B21; border: 1px solid #6B5420; border-radius: 12px; padding: 12px 12px 8px; box-shadow: 0 14px 40px rgba(0,0,0,.55); color: #E8EAED; font-size: 13px; }
.ck[hidden], .ck-pill[hidden] { display: none; }
.ck-head { display: flex; align-items: center; gap: 6px; } .ck-head b { flex: 1; font-size: 13.5px; }
.ck-min { background: none; border: 1px solid #2D333C; color: #A7AFBA; border-radius: 5px; width: 22px; height: 22px; padding: 0; cursor: pointer; }
.ck-n { color: #858D98; font-size: 11.5px; }
.ck-bar { height: 5px; border-radius: 3px; background: #2A2F37; margin: 5px 0 8px; } .ck-bar i { display: block; height: 100%; width: 0; background: #FFB547; border-radius: 3px; transition: width .4s; }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck-list li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: start; padding: 7px 0; border-top: 1px solid #23282F; }
.ck-list li small { display: block; color: #A7AFBA; font-size: 11.5px; margin-top: 3px; line-height: 1.35; }
.ck-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #4A515C; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.ck-list li.done .ck-box { background: #3DD68C; border-color: #3DD68C; color: #06210F; }
.ck-list li.done span { color: #858D98; text-decoration: line-through; }
.ck-list li.cur .ck-box { border-color: #FFB547; }
.ck-show { font: 600 11px var(--sans, sans-serif); color: #FFD08A; background: none; border: 1px solid #6B5420; border-radius: 6px; padding: 2px 7px; cursor: pointer; white-space: nowrap; }
.ck-end { margin: 6px 0 2px; color: #7FE0A8; font-weight: 600; }
.ck-pill { position: fixed; right: 18px; bottom: 64px; z-index: 80; background: #3A2C12; color: #FFD08A; border: 1px solid #6B5420; border-radius: 16px; padding: 6px 12px; font: 700 12px var(--sans, sans-serif); cursor: pointer; }
.ck-flash { animation: ck-flash 0.8s ease-in-out 4; border-radius: 8px; }
@keyframes ck-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,181,71,0); } 50% { box-shadow: 0 0 0 4px rgba(255,181,71,.9), 0 0 18px rgba(255,181,71,.6); } }
@media (prefers-reduced-motion: reduce) { .ck-flash { animation: none; box-shadow: 0 0 0 3px #FFB547; } }
