/* Bookkeeping page help + guided tour styles (no CDN). */
.pg-help-panel { position: relative; max-width: 100%; margin: 0; font-family: system-ui, Arial, sans-serif; display: inline-flex; }
.pg-help-bar { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.pg-icon-btn {
    width: 32px; height: 32px; padding: 0; border-radius: 8px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; line-height: 0;
}
.pg-icon-btn svg { width: 16px; height: 16px; display: block; }
.pg-help-toggle {
    background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
}
.pg-help-toggle:hover, .pg-help-toggle.pg-open { background: #ffedd5; }
.pg-tour-start {
    background: #0f172a; border: 1px solid #0f172a; color: #fff;
}
.pg-tour-start:hover { background: #1e293b; }
.pg-voice-btn { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; }
.pg-voice-btn:hover, .pg-voice-wrap.pg-open .pg-voice-btn { background: #f8fafc; border-color: #94a3b8; }
.pg-help-bar .pg-voice-wrap { position: relative; display: inline-flex; }
.pg-help-bar .pg-voice-select {
    display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 80;
    min-width: 11rem; max-width: 16rem; background: #fff; color: #0f172a;
    border: 1px solid #cbd5e1; border-radius: 8px; padding: 4px 6px;
    font-size: 12px; font-weight: 600;
}
.pg-help-bar .pg-voice-wrap.pg-open .pg-voice-select { display: block; }
.pg-voice-wrap-tip {
    display: flex; width: 100%; margin: 4px 0 10px; border-radius: 8px; padding: 4px 8px;
    align-items: center; gap: 6px; background: #fff; border: 1px solid #cbd5e1; line-height: 1.2;
}
.pg-voice-lab { font-size: 11px; font-weight: 700; color: #64748b; white-space: nowrap; }
.pg-voice-select {
    border: 0; background: transparent; color: #0f172a;
    font-size: 12px; font-weight: 600; max-width: 220px; cursor: pointer;
}
.pg-voice-wrap-tip .pg-voice-select { max-width: none; flex: 1; }
.pg-help-body {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 80;
    width: min(28rem, 80vw); background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15,23,42,.16);
    padding: 14px 18px; margin-top: 0; font-size: 12.5px; color: #334155; line-height: 1.55;
}
.pg-help-body h5 { font-size: 14px; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.pg-help-body h6 { font-size: 11px; font-weight: 800; color: #9a3412; text-transform: uppercase; letter-spacing: .5px; margin: 12px 0 4px; }
.pg-help-body ol, .pg-help-body ul { margin: 0 0 4px 18px; padding: 0; }
.pg-help-body li { margin: 2px 0; }
.pg-help-purpose { margin: 0; font-weight: 600; color: #1e293b; }
.pg-help-edit { margin: 10px 0 0; font-size: 11px; color: #94a3b8; }
.pg-help-edit code { font-size: 10.5px; }

.pg-tour-spot {
    position: fixed; z-index: 2147483600; border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(234,88,12,.85), 0 0 0 9999px rgba(15,23,42,.62);
    pointer-events: none;
    transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.pg-tour-spot.pg-tour-center { box-shadow: 0 0 0 9999px rgba(15,23,42,.62); }
.pg-tour-tip {
    position: fixed; z-index: 2147483601; background: #fff; color: #1e293b;
    border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
    width: 340px; max-width: calc(100vw - 24px); padding: 16px 18px 14px;
    font-family: system-ui, Arial, sans-serif; font-size: 13px; line-height: 1.5; outline: none;
}
.pg-tour-tip h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: #0f172a; }
.pg-tour-tip p { margin: 0 0 12px; }
.pg-tour-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.pg-tour-progress { font-size: 10.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .5px; }
.pg-tour-btn.pg-mute {
    border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; font-weight: 700;
    font-size: 11px; padding: 4px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.pg-tour-btn.pg-mute.pg-mute-on { color: #64748b; background: #f1f5f9; }
.pg-tour-btns { display: flex; align-items: center; gap: 8px; }
.pg-tour-btns .pg-spacer { flex: 1; }
.pg-tour-btn {
    border: 1px solid #cbd5e1; background: #fff; color: #334155; font-weight: 700;
    font-size: 12px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
}
.pg-tour-btn:hover { background: #f1f5f9; }
.pg-tour-btn.pg-primary { background: #ea580c; border-color: #ea580c; color: #fff; }
.pg-tour-btn.pg-primary:hover { background: #c2410c; }
.pg-tour-btn.pg-skip { border: none; background: transparent; color: #94a3b8; }
@media (max-width: 640px) {
    .pg-tour-tip { left: 12px !important; right: 12px !important; top: auto !important; bottom: 12px !important; width: auto; }
}
@media print {
    .pg-help-panel, .pg-tour-spot, .pg-tour-tip { display: none !important; }
}
