/* Scoped guide presentation; follows the app's light/dark design tokens. */
.ap-tut-overlay[hidden] { display: none !important; }
.ap-tut-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(9, 12, 23, .62); backdrop-filter: blur(12px); }
.ap-tut-card { width: min(790px, 100%); max-height: min(880px, calc(100dvh - 48px)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border, #d9dce5); border-radius: 24px; padding: 28px; color: var(--text, #182032); background: var(--surface-1, #fff); box-shadow: 0 28px 100px rgba(4, 8, 24, .3); font-family: inherit; }
.ap-guide-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ap-tut-eyebrow { color: var(--text-muted, #646b7b); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ap-guide-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border, #d9dce5); background: var(--surface-2, #f2f4f9); color: var(--text, #182032); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.ap-tut-card .ap-guide-intro { color: var(--text-muted, #646b7b); font-size: 13px; margin: 8px 0 22px; }
.ap-guide-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none; margin: 0 0 26px; padding: 0; gap: 5px; }
.ap-guide-steps button { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; border: 0; background: transparent; color: var(--text-muted, #646b7b); font: inherit; font-size: 11px; padding: 6px 2px; cursor: pointer; border-radius: 10px; }
.ap-guide-steps button span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--border, #d9dce5); border-radius: 50%; font-size: 11px; font-weight: 700; }
.ap-guide-steps button[aria-current="step"] { color: var(--text, #182032); background: var(--surface-2, #f2f4f9); font-weight: 650; }
.ap-guide-steps button[aria-current="step"] span { background: #1b7184; border-color: #1b7184; color: #fff; }
.ap-guide-body h2 { font-size: clamp(22px, 2.2vw, 29px); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 16px; color: var(--text, #182032); }
.ap-guide-body p, .ap-guide-body li { font-size: 14px; line-height: 1.7; color: var(--text-muted, #646b7b); }
.ap-guide-body p { margin: 0 0 14px; }
.ap-guide-body ol, .ap-guide-body ul { padding-left: 22px; margin: 14px 0; }
.ap-guide-body li { padding-left: 4px; margin: 0 0 10px; }
.ap-guide-body strong { font-weight: 650; color: var(--text, #182032); }
.ap-guide-body .ap-guide-note { background: var(--surface-2, #f2f4f9); border-left: 3px solid #3397ad; border-radius: 0 10px 10px 0; padding: 12px 14px; margin: 20px 0 18px; font-size: 13px; }
.ap-guide-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-guide-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border, #d9dce5); background: var(--surface-1, #fff); color: var(--text, #182032); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.ap-guide-action:hover, .ap-tut-back:hover, .ap-guide-steps button:hover { background: var(--surface-2, #f2f4f9); }
.ap-tut-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border, #d9dce5); margin-top: 24px; padding-top: 20px; }
.ap-tut-nav { display: flex; gap: 8px; margin-left: auto; }
.ap-tut-skip { border: 0; background: none; color: var(--text-muted, #646b7b); font: inherit; font-size: 13px; padding: 9px 0; cursor: pointer; }
.ap-guide-position { color: var(--text-muted, #646b7b); font-size: 11px; margin-left: auto; }
.ap-tut-back, .ap-tut-next { border-radius: 10px; padding: 10px 17px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ap-tut-back { border: 1px solid var(--border, #d9dce5); color: var(--text, #182032); background: transparent; }
.ap-tut-back:disabled { opacity: .4; cursor: default; }
.ap-tut-next { background: #1b7184; color: #fff; border: 1px solid #1b7184; }
.ap-tut-next:hover { background: #155d6e; }
.ap-tut-card .ap-guide-save { font-size: 11px; line-height: 1.5; color: var(--text-muted, #646b7b); margin: 12px 0 0; min-height: 17px; }
.ap-tut-card :is(button, a):focus-visible { outline: 3px solid #45a9c0; outline-offset: 3px; }
.ap-guide-body h2:focus { outline: none; }
.ap-guide-entry { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 15px 18px; margin: 0 0 20px; border: 1px solid var(--border, #d9dce5); border-radius: 14px; background: var(--surface-1, #fff); }
.ap-guide-entry p { margin: 3px 0 0; color: var(--text-muted, #646b7b); font-size: 12px; }
.ap-guide-entry > button { margin-left: auto; }
@media (max-width: 600px) {
    .ap-tut-overlay { padding: 10px; align-items: flex-end; }
    .ap-tut-card { max-height: calc(100dvh - 20px); padding: 20px; border-radius: 20px; }
    .ap-guide-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin-bottom: 20px; }
    .ap-guide-steps button { flex-direction: row; font-size: 10px; justify-content: center; gap: 5px; }
    .ap-guide-steps button span { width: 20px; height: 20px; flex-shrink: 0; font-size: 10px; }
    .ap-guide-position { display: none; }
    .ap-guide-actions > * { width: 100%; }
}
@media (max-width: 380px) {
    .ap-guide-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .ap-tut-card * { scroll-behavior: auto !important; } }
