/* ── Tour Overlay ────────────────────────────────────────────── */

/* SVG backdrop with cutout — covers entire viewport, blocks all clicks */
.tour-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: auto;
    cursor: default;
    transition: opacity .3s ease;
}

.tour-backdrop svg {
    width: 100%;
    height: 100%;
}

/* FreeInteract / WaitForElement — backdrop visible but doesn't block clicks */
.tour-backdrop--passthrough {
    pointer-events: none;
}
/* Ensure card buttons remain clickable when backdrop is passthrough */
.tour-card {
    pointer-events: auto;
}

/* Highlighted target must be above the backdrop for WaitForClick */
[data-tour-click-target="true"] {
    position: relative;
    z-index: 10001 !important;
    pointer-events: auto !important;
}

/* Pulsing animation on click target */
.tour-click-target-pulse {
    animation: tourTargetPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
}

@keyframes tourTargetPulse {
    0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
    50%  { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ── Tour Card ──────────────────────────────────────────────── */
.tour-card {
    position: fixed;
    z-index: 10002;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: var(--bs-card-bg, #1e293b);
    border: 1px solid var(--bs-border-color, #334155);
    border-radius: .625rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255,255,255,.05);
    padding: 1.25rem;
    transition: top .35s cubic-bezier(.4,0,.2,1),
                left .35s cubic-bezier(.4,0,.2,1),
                opacity .25s ease;
    animation: tourCardEnter .35s cubic-bezier(.4,0,.2,1);
}

@keyframes tourCardEnter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tour-card__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .625rem;
}

.tour-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(59, 130, 246, .15);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    flex-shrink: 0;
}

.tour-card__title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--bs-body-color, #e2e8f0);
    margin: 0;
    line-height: 1.3;
}

.tour-card__body {
    font-size: .825rem;
    line-height: 1.55;
    color: var(--bs-secondary-color, #94a3b8);
    margin-bottom: 1rem;
}

.tour-card__body strong {
    color: var(--bs-body-color, #e2e8f0);
    font-weight: 600;
}

/* ── Footer: progress + buttons ─────────────────────────────── */
.tour-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
}

.tour-card__progress {
    font-size: .75rem;
    color: var(--bs-secondary-color, #64748b);
    white-space: nowrap;
}

.tour-card__actions {
    display: flex;
    gap: .375rem;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
}

.tour-card__btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .325rem .65rem;
    border-radius: .375rem;
    font-size: .78rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
    max-width: 100%;
}

.tour-card__btn:active {
    transform: scale(.96);
}

.tour-card__btn--ghost {
    background: transparent;
    color: var(--bs-secondary-color, #94a3b8);
}

.tour-card__btn--ghost:hover {
    background: rgba(255,255,255,.06);
    color: var(--bs-body-color, #e2e8f0);
}

.tour-card__btn--secondary {
    background: rgba(255,255,255,.08);
    color: var(--bs-body-color, #e2e8f0);
}

.tour-card__btn--secondary:hover {
    background: rgba(255,255,255,.12);
}

.tour-card__btn--primary {
    background: #3b82f6;
    color: #fff;
}

.tour-card__btn--primary:hover {
    background: #2563eb;
}

/* ── Progress bar dots ──────────────────────────────────────── */
.tour-card__dots {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1 1 auto;
    row-gap: 3px;
}

.tour-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bs-border-color, #334155);
    transition: background .2s, width .2s;
}

.tour-card__dot--active {
    width: 18px;
    border-radius: 3px;
    background: #3b82f6;
}

.tour-card__dot--done {
    background: rgba(59, 130, 246, .4);
}

/* ── Spotlight pulse animation ──────────────────────────────── */
.tour-spotlight-ring {
    animation: tourPulse 2s ease-in-out infinite;
}

@keyframes tourPulse {
    0%, 100% { opacity: .4; }
    50% { opacity: .15; }
}

/* ── Arrow/pointer from card to target ──────────────────────── */
.tour-card__arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bs-card-bg, #1e293b);
    border: 1px solid var(--bs-border-color, #334155);
    transform: rotate(45deg);
}

.tour-card__arrow--top {
    bottom: -7px;
    left: 50%;
    margin-left: -6px;
    border-top: none;
    border-left: none;
}

.tour-card__arrow--bottom {
    top: -7px;
    left: 50%;
    margin-left: -6px;
    border-bottom: none;
    border-right: none;
}

.tour-card__arrow--left {
    right: -7px;
    top: 50%;
    margin-top: -6px;
    border-bottom: none;
    border-left: none;
}

.tour-card__arrow--right {
    left: -7px;
    top: 50%;
    margin-top: -6px;
    border-top: none;
    border-right: none;
}

/* ══════════════════════════════════════════════════════════════
   TOUR HUB — settings > tutorial tab (AppStack-aligned)
   ══════════════════════════════════════════════════════════════ */

.tour-hub {
    color: var(--bs-body-color, #e2e8f0);
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
@media (max-width: 576px) {
    .tour-hub { padding: 1rem; }
}

.tour-hub__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-secondary-color, #94a3b8);
}
.tour-hub__empty i { font-size: 2.25rem; color: var(--bs-primary); margin-bottom: .6rem; display:block; }
.tour-hub__empty h5 { color: var(--bs-body-color); margin-bottom: .25rem; }
.tour-hub__empty p { margin: 0; font-size: .85rem; }

/* ── Hero ────────────────────────────────────────────────────── */
.tour-hub__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: .5rem;
    background: var(--bs-card-bg, #1e293b);
    border: 1px solid var(--bs-border-color, #334155);
    margin-bottom: 1rem;
}
.tour-hub__hero-text { flex: 1; min-width: 0; }
.tour-hub__eyebrow {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: .3rem;
}
.tour-hub__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 .3rem;
    color: var(--bs-body-color);
}
.tour-hub__subtitle { color: var(--bs-secondary-color, #94a3b8); margin: 0 0 .7rem; font-size: .85rem; }
.tour-hub__hero-actions { display: flex; gap: .5rem; }
.tour-hub__reset-btn {
    background: transparent;
    border: 1px solid var(--bs-border-color, #334155);
    color: var(--bs-body-color);
    padding: .35rem .75rem;
    border-radius: .35rem;
    font-size: .78rem;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.tour-hub__reset-btn:hover { background: rgba(var(--bs-primary-rgb), .08); border-color: var(--bs-primary); }

.tour-hub__progress-ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.tour-hub__progress-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.tour-hub__progress-ring .ring-track {
    fill: none;
    stroke: var(--bs-border-color, #334155);
    stroke-width: 8;
}
.tour-hub__progress-ring .ring-fill {
    fill: none;
    stroke: var(--bs-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray .6s ease;
}
.tour-hub__progress-label {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    line-height: 1;
}
.tour-hub__progress-label strong { font-size: 1.15rem; font-weight: 700; color: var(--bs-body-color); }
.tour-hub__progress-label span { font-size: .62rem; color: var(--bs-secondary-color); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }

/* ── Controls (search + tabs) ───────────────────────────────── */
.tour-hub__controls {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.tour-hub__search {
    position: relative;
    flex: 0 0 280px;
    max-width: 100%;
}
.tour-hub__search i.fa-search {
    position: absolute;
    left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--bs-secondary-color, #94a3b8);
    font-size: .85rem;
    pointer-events: none;
}
.tour-hub__search input {
    width: 100%;
    padding: .45rem 2.2rem .45rem 2.1rem;
    border-radius: .35rem;
    border: 1px solid var(--bs-border-color, #334155);
    background: var(--bs-body-bg, #0f172a);
    color: var(--bs-body-color);
    font-size: .85rem;
    transition: border-color .15s, box-shadow .15s;
}
.tour-hub__search input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .15);
}
.tour-hub__search-clear {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; color: var(--bs-secondary-color);
    width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
}
.tour-hub__search-clear:hover { background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-body-color); }

.tour-hub__tabs { display: flex; gap: .3rem; flex-wrap: wrap; flex: 1; }
.tour-hub__tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: .35rem;
    border: 1px solid var(--bs-border-color, #334155);
    background: transparent;
    color: var(--bs-secondary-color, #94a3b8);
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.tour-hub__tab:hover {
    color: var(--bs-body-color);
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .06);
}
.tour-hub__tab.is-active {
    background: rgba(var(--bs-primary-rgb), .12);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}
.tour-hub__tab-count {
    padding: .05rem .4rem;
    border-radius: .25rem;
    background: rgba(var(--bs-primary-rgb), .12);
    color: var(--bs-primary);
    font-size: .68rem;
    font-weight: 600;
}
.tour-hub__tab.is-active .tour-hub__tab-count {
    background: var(--bs-primary);
    color: #fff;
}

/* ── Featured card ──────────────────────────────────────────── */
.tour-hub__featured {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: .5rem;
    background: var(--bs-card-bg, #1e293b);
    border: 1px solid var(--bs-border-color, #334155);
    border-left: 3px solid var(--bs-primary);
    cursor: pointer;
    margin-bottom: 1.25rem;
    transition: background .15s, border-color .15s;
}
.tour-hub__featured:hover {
    background: rgba(var(--bs-primary-rgb), .06);
    border-color: var(--bs-primary);
    border-left-color: var(--bs-primary);
}
.tour-hub__featured-glow { display: none; }
.tour-hub__featured-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: .5rem;
    display: flex;
    align-items: center; justify-content: center;
    background: rgba(var(--bs-primary-rgb), .12);
    color: var(--bs-primary);
    font-size: 1.25rem;
}
.tour-hub__featured-body { flex: 1; min-width: 0; }
.tour-hub__featured-eyebrow {
    font-size: .68rem;
    color: var(--bs-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    margin-bottom: .2rem;
}
.tour-hub__featured-body h4 { font-size: .95rem; margin: 0 0 .2rem; font-weight: 600; color: var(--bs-body-color); }
.tour-hub__featured-body p { margin: 0 0 .4rem; color: var(--bs-secondary-color); font-size: .82rem; }
.tour-hub__featured-meta {
    display: flex; gap: .9rem;
    font-size: .72rem; color: var(--bs-secondary-color);
}
.tour-hub__featured-cta {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
}

/* ── Grouped cards ──────────────────────────────────────────── */
.tour-hub__group { margin-bottom: 1.5rem; }
.tour-hub__group-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--bs-border-color, #334155);
}
.tour-hub__group-header i { color: var(--bs-primary); font-size: .9rem; }
.tour-hub__group-header h5 {
    margin: 0; font-size: .88rem; font-weight: 600; color: var(--bs-body-color);
    text-transform: uppercase; letter-spacing: .04em;
}
.tour-hub__group-count {
    padding: .05rem .45rem;
    border-radius: .25rem;
    background: rgba(var(--bs-primary-rgb), .12);
    color: var(--bs-primary);
    font-size: .68rem;
    font-weight: 600;
}

.tour-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
}

.tour-hub__card {
    position: relative;
    padding: 1rem;
    border-radius: .5rem;
    border: 1px solid var(--bs-border-color, #334155);
    background: var(--bs-card-bg, #1e293b);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.tour-hub__card:hover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .05);
}
.tour-hub__card.is-done { opacity: .7; }
.tour-hub__card.is-done:hover { opacity: 1; }

.tour-hub__card-accent { display: none; }

.tour-hub__card-icon {
    width: 38px; height: 38px;
    border-radius: .4rem;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 1rem;
    margin-bottom: .6rem;
    background: rgba(var(--bs-primary-rgb), .12);
    color: var(--bs-primary);
}

.tour-hub__card-check {
    position: absolute; top: 10px; right: 10px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--bs-success, #10b981);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem;
}
.tour-hub__card h6 {
    font-size: .88rem;
    font-weight: 600;
    margin: 0 0 .25rem;
    color: var(--bs-body-color);
    padding-right: 26px;
}
.tour-hub__card p {
    font-size: .76rem;
    color: var(--bs-secondary-color, #94a3b8);
    margin: 0 0 .6rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tour-hub__card-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tour-hub__card-tags span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .1rem .45rem;
    border-radius: .25rem;
    font-size: .68rem;
    font-weight: 600;
    background: rgba(var(--bs-secondary-rgb, 148,163,184), .12);
    color: var(--bs-secondary-color, #94a3b8);
}
.tour-hub__card-tags .is-demo {
    background: rgba(var(--bs-primary-rgb), .12);
    color: var(--bs-primary);
}
.tour-hub__card-tags .is-practical {
    background: rgba(var(--bs-info-rgb, 59, 130, 246), .12);
    color: var(--bs-info, var(--bs-primary));
}

.tour-hub__card-play { display: none; }

.tour-hub__no-results {
    text-align: center;
    padding: 2.25rem 1rem;
    color: var(--bs-secondary-color, #94a3b8);
}
.tour-hub__no-results i { font-size: 1.75rem; margin-bottom: .5rem; display:block; }
.tour-hub__no-results p { margin: 0; font-size: .85rem; }

@media (max-width: 768px) {
    .tour-hub__hero { flex-direction: column; align-items: flex-start; }
    .tour-hub__progress-ring { align-self: center; }
    .tour-hub__search { flex: 1 1 100%; }
}

/* ══════════════════════════════════════════════════════════════
   TOUR SANDBOX — Override styles for demo/sandbox pages
   QuickGrid rows, pills, editor elements, etc.
   ══════════════════════════════════════════════════════════════ */

/* Fix: .quickgrid hides rows without aria-rowindex — sandbox tables are plain HTML */
.tour-sandbox .quickgrid tbody tr {
    display: table-row !important;
}

/* ── Instrument pills (from InstrumentOverview/Instruments inline styles) ── */
.tour-sandbox .instr-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.tour-sandbox .pill-online  { background: rgba(40,167,69,.15);  color: #28a745; }
.tour-sandbox .pill-offline { background: rgba(108,117,125,.12); color: #6c757d; }
.tour-sandbox .pill-on      { background: rgba(253,126,20,.15);  color: #fd7e14; }
.tour-sandbox .pill-off     { background: rgba(108,117,125,.10); color: #adb5bd; }
.tour-sandbox .pill-alarm   { background: rgba(220,53,69,.15);   color: #dc3545; }
.tour-sandbox .pill-online i { animation: instr-pulse-icon 2s infinite; }
@keyframes instr-pulse-icon {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* (Dashboard editor tour now runs on real editor — no sandbox CSS needed) */

/* ── Canvas glow during tutorial (drop target highlight) ───── */
.tour-canvas-glow {
    animation: tourCanvasGlow 2s ease-in-out infinite;
    box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.15) !important;
    border: 2px dashed rgba(59, 130, 246, 0.5) !important;
    /* Rise above the tour backdrop so the glow/label are actually visible
       (backdrop sits at z:10000 with rgba(0,0,0,.65) darkening everything under). */
    z-index: 10001 !important;
    pointer-events: auto !important;
}
@keyframes tourCanvasGlow {
    0%, 100% { box-shadow: inset 0 0 40px rgba(59, 130, 246, 0.35); border-color: rgba(59, 130, 246, 0.6); }
    50% { box-shadow: inset 0 0 80px rgba(59, 130, 246, 0.6); border-color: rgba(59, 130, 246, 1); }
}

/* ── Canvas "drop target" overlay shown during drag-a-tag steps ── */
/* Stronger visual than plain glow — pulsing center label + bigger border */
.tour-canvas-glow::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: .5rem 1rem;
    background: rgba(59, 130, 246, 0.92);
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
    border-radius: .4rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    pointer-events: none;
    animation: tourCanvasLabelPulse 1.4s ease-in-out infinite;
    z-index: 50;
    white-space: nowrap;
}
.tour-canvas-glow--drop::after { content: "Trascina qui il tag"; }
.tour-canvas-glow--draw::after { content: "Disegna qui il container"; }
@keyframes tourCanvasLabelPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1;   }
    50%      { transform: translate(-50%, -50%) scale(1.08); opacity: .75; }
}

/* ── Drag hint arrow — shown during drag-a-tag steps ─────────── */
/* Simple pointer sitting on the tags panel with an arrow nudging toward the canvas.
   Rendered by TourOverlay when the active step's selector is the tags panel and
   the next-action is "drag to canvas". */
.tour-drag-arrow {
    position: fixed;
    z-index: 10050;
    pointer-events: none;
    padding: .5rem .85rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: #fff;
    background: rgba(59, 130, 246, .95);
    border-radius: .5rem;
    font-size: .78rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: tourDragArrow 1.5s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(59,130,246,.45), 0 0 0 1px rgba(255,255,255,.15);
}
.tour-drag-arrow i {
    font-size: 1rem;
}
.tour-drag-arrow::after {
    content: "→";
    margin-left: .25rem;
    font-size: 1.4rem;
    line-height: 1;
}
@keyframes tourDragArrow {
    0%, 100% { transform: translateX(0);    opacity: 1;  }
    50%      { transform: translateX(20px); opacity: .6; }
}

/* ── Sandbox pre-tutorial overlay ──────────────────────────── */
/* Shown briefly while /tour/editor is loading and the tour hasn't started yet,
   so users can't click anything in the editor by accident. */
.tour-sandbox-preload {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99998;
    background: rgba(8, 15, 30, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    animation: tourPreloadFade .25s ease-out;
}
.tour-sandbox-preload__card {
    background: var(--bs-card-bg, #1e293b);
    border: 1px solid var(--bs-border-color, #334155);
    border-radius: .75rem;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    max-width: 360px;
}
@keyframes tourPreloadFade {
    from { opacity: 0; } to { opacity: 1; }
}

/* ── Tour end dialog ───────────────────────────────────────── */
.tour-end-dialog {
    position: fixed;
    inset: 0;
    z-index: 10100;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tour-end-dialog__card {
    background: var(--bs-card-bg, #1e293b);
    border: 1px solid var(--bs-border-color, #334155);
    border-radius: .75rem;
    padding: 2rem;
    max-width: 420px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.tour-end-dialog__card h5 { margin-bottom: 1rem; }
.tour-end-dialog__card p { font-size: .875rem; color: var(--bs-secondary-color, #94a3b8); margin-bottom: 1.5rem; }
.tour-end-dialog__actions { display: flex; gap: .75rem; justify-content: center; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 576px) {
    .tour-card {
        width: calc(100vw - 24px);
        left: 12px !important;
    }
}
