/* Guided tours (public/js/pe_tours.js) and the Getting Started page */
.pe-tour { --pe-tour-accent: #d6457d; --pe-tour-ink: #1f2440; position: fixed; inset: 0; z-index: 1060; pointer-events: none; display: none; }
.pe-tour.on { display: block; }
.pe-tour.moving .pe-tour-card, .pe-tour.moving .pe-tour-spot { opacity: 0; }
.pe-tour-dim { position: fixed; inset: 0; background: rgba(20, 24, 46, .38); display: none; }
.pe-tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(20, 24, 46, .38), 0 0 0 3px var(--pe-tour-accent),
	0 0 0 8px rgba(214, 69, 125, .25); transition: left .2s, top .2s, width .2s, height .2s, opacity .2s; display: none; }
.pe-tour-card { position: fixed; pointer-events: auto; width: 340px; max-width: calc(100vw - 16px); background: var(--card-bg, #fff);
	color: var(--text-color); border-radius: 12px; box-shadow: 0 18px 50px rgba(20, 24, 46, .28); padding: 0 16px 14px;
	overflow: hidden; transition: opacity .2s; font-size: 13px; line-height: 1.5; }
.pe-tour-card.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: 400px; }
.pe-tour-card.docked { left: 8px !important; right: 8px; bottom: 8px; top: auto !important; width: auto; }
.pe-tour-bar { height: 4px; margin: 0 -16px 10px; background: var(--subtle-fg, #eef0f5); }
.pe-tour-bar span { display: block; height: 100%; background: linear-gradient(90deg, #b9a8e6, #8fb3e8, #e7a3c0, #f1c48b, #a8d8a0);
	border-radius: 0 4px 4px 0; transition: width .3s; }
[dir="rtl"] .pe-tour-bar span { margin-inline-start: auto; border-radius: 4px 0 0 4px; }
.pe-tour-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; font-weight: 600;
	letter-spacing: .02em; color: var(--text-muted); text-transform: uppercase; }
.pe-tour-x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--text-muted); padding: 0 2px; cursor: pointer; }
.pe-tour-card h4 { margin: 6px 0 4px; font-size: 15px; font-weight: 700; color: var(--heading-color, var(--pe-tour-ink)); }
.pe-tour-card p { margin: 0 0 8px; }
.pe-tour-miss { font-size: 12px; color: var(--text-muted); background: var(--subtle-fg, #f4f5f8); border-radius: 8px; padding: 6px 8px; }
.pe-tour-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--pe-tour-accent); margin-bottom: 8px; }
.pe-tour-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.pe-tour-card .btn-primary { background: var(--pe-tour-accent); border-color: var(--pe-tour-accent); }
.pe-tour-done { text-align: center; padding: 8px 0; }
.pe-tour-done .icon { color: #2e9d62; width: 40px; height: 40px; margin-bottom: 8px; }

/* Home banner */
.pe-start-banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin: 0 0 14px; border-radius: 12px;
	border: 1px solid var(--border-color); background: linear-gradient(100deg, rgba(185, 168, 230, .16), rgba(231, 163, 192, .14) 60%, rgba(168, 216, 160, .12)); }
.pe-start-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pe-start-text span { color: var(--text-muted); font-size: 12px; }
.pe-start-ring { --p: 0; width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
	background: conic-gradient(#d6457d calc(var(--p) * 1%), var(--subtle-fg, #e9ebf1) 0); }
.pe-start-ring span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card-bg, #fff);
	font-size: 11px; font-weight: 700; }
@media (max-width: 640px) { .pe-start-banner { flex-wrap: wrap; } .pe-start-text { flex-basis: calc(100% - 60px); } }

/* Getting Started page */
.pe-gs { max-width: 1100px; margin: 0 auto; }
.pe-gs h3 { font-size: 15px; font-weight: 700; margin: 22px 0 10px; }
.pe-gs-progress { display: flex; align-items: center; gap: 14px; }
.pe-gs-progress .pe-start-ring { width: 56px; height: 56px; }
.pe-gs-progress .pe-start-ring span { width: 44px; height: 44px; font-size: 13px; }
.pe-gs-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.pe-gs-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px;
	border-top: 1px solid var(--border-color); }
.pe-gs-list li:first-child { border-top: 0; }
.pe-gs-check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700;
	border: 2px solid var(--border-color); color: var(--text-muted); }
.pe-gs-list li.done .pe-gs-check { background: #2e9d62; border-color: #2e9d62; color: #fff; }
.pe-gs-list li.done .pe-gs-label { color: var(--text-muted); }
.pe-gs-label { font-weight: 600; }
.pe-gs-hint { font-size: 12px; color: var(--text-muted); }
.pe-gs-note { font-size: 12px; color: #b4561f; }
.pe-gs-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pe-gs-tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pe-gs-tour { border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.pe-gs-tour .pe-gs-num { font-size: 22px; font-weight: 700; background: linear-gradient(90deg, #8fb3e8, #d6457d); -webkit-background-clip: text;
	background-clip: text; color: transparent; line-height: 1; }
.pe-gs-tour b { font-size: 14px; }
.pe-gs-tour .text-muted { font-size: 12px; flex: 1; }
.pe-gs-tour .pe-gs-meta { font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }
.pe-gs-tour .indicator-pill { font-size: 10px; }
@media (max-width: 640px) { .pe-gs-list li { grid-template-columns: 28px 1fr; } .pe-gs-actions { grid-column: 2; justify-content: flex-start; } }

/* Portal tour button (public/js/portal_tours.js) */
.pe-ptour-btn { position: fixed; inset-inline-start: 14px; bottom: 14px; z-index: 1040; border: 0; border-radius: 999px; padding: 8px 14px 8px 10px;
	background: #1f2440; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(20, 24, 46, .25); cursor: pointer; }
.pe-ptour-btn span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #d6457d; margin-inline-end: 4px; font-size: 12px; }
@media print { .pe-ptour-btn, .pe-tour { display: none !important; } }

/* App panel and banner (public/js/pwa.js) */
.pe-pwa-card h4 { margin-top: 14px; }
.pe-pwa-head { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; }
.pe-pwa-head img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-color, #e6e8ef); }
.pe-pwa-ok { color: #2e9d62; font-weight: 600; }
.pe-pwa-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pe-pwa-msg { margin-top: 10px; font-weight: 600; color: #2e9d62; }
.pe-pwa-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 14px; border-radius: 12px;
	border: 1px solid #e6e8ef; background: linear-gradient(100deg, rgba(185, 168, 230, .16), rgba(231, 163, 192, .14)); }
.pe-pwa-banner img { width: 34px; height: 34px; border-radius: 8px; }
.pe-pwa-banner span { flex: 1; font-weight: 600; font-size: 14px; }
.pe-pwa-banner .pe-tour-x { font-size: 20px; }

.pe-pwa-cats { border: 1px solid var(--border-color, #e6e8ef); border-radius: 10px; padding: 6px 10px; margin: 6px 0 10px; }
.pe-pwa-cats-title { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted, #6b7085); margin: 4px 0; }
.pe-pwa-cat { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; margin: 0; cursor: pointer; font-weight: normal; }
.pe-pwa-cat + .pe-pwa-cat { border-top: 1px solid var(--border-color, #eef0f5); }
.pe-pwa-cat input { margin-top: 3px; accent-color: #d6457d; width: 16px; height: 16px; flex: none; }
.pe-pwa-cat span { display: flex; flex-direction: column; }
.pe-pwa-cat small { color: var(--text-muted, #6b7085); font-size: 12px; line-height: 1.4; }
.pe-pwa-card { max-height: calc(100vh - 32px); overflow-y: auto; }
