:root{
  --hkpt-help-black:#111114;
  --hkpt-help-panel:#1b1b20;
  --hkpt-help-gold:#cea45b;
  --hkpt-help-gold-soft:#f4dfba;
  --hkpt-help-red:#d71920;
  --hkpt-help-red-dark:#a80f15;
  --hkpt-help-text:#1d2327;
  --hkpt-help-muted:#646970;
  --hkpt-help-border:#dcdcde;
  --hkpt-help-bg:#f6f7f7;
}

.hkpt-help-question{
  display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;
  margin-inline-start:7px;padding:0;border:1px solid #9b7a3e;border-radius:50%;
  background:#fff;color:#7a571c;font:700 12px/1 sans-serif;vertical-align:middle;
  cursor:pointer;box-shadow:none
}
.hkpt-help-question:hover,.hkpt-help-question:focus{background:#f6e6c6;border-color:#7a571c;color:#3c2a0d;outline:2px solid transparent}

.hkpt-help-popover{
  position:fixed;z-index:1000002;padding:17px 19px;border:1px solid var(--hkpt-help-gold);
  border-radius:12px;background:#fff;color:var(--hkpt-help-text);box-shadow:0 18px 55px rgba(0,0,0,.28)
}
.hkpt-help-popover h3{margin:0 28px 7px 0;font-size:16px}
.hkpt-help-popover p{margin:0;font-size:14px;line-height:1.55}
.hkpt-help-popover-close,.hkpt-help-drawer-close,.hkpt-tour-close,.hkpt-module-picker-close,.hkpt-tour-complete-close{
  position:absolute;right:10px;top:8px;width:32px;height:32px;border:0;background:transparent;color:inherit;
  font-size:25px;line-height:1;cursor:pointer
}

.hkpt-help-fab{
  position:fixed;right:22px;bottom:22px;z-index:999990;display:inline-flex;align-items:center;gap:7px;
  padding:11px 16px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:var(--hkpt-help-red);
  color:#fff;font-weight:700;box-shadow:0 8px 30px rgba(0,0,0,.25);cursor:pointer
}
.wp-admin .hkpt-help-fab{bottom:30px}
.hkpt-help-fab:hover,.hkpt-help-fab:focus{background:var(--hkpt-help-red-dark);color:#fff}

.hkpt-help-drawer{
  position:fixed;right:0;top:0;bottom:0;z-index:1000001;width:min(420px,92vw);transform:translateX(105%);
  transition:transform .25s ease;background:var(--hkpt-help-bg);color:var(--hkpt-help-text);
  box-shadow:-18px 0 55px rgba(0,0,0,.25);overflow:auto
}
.hkpt-help-drawer.is-open{transform:none}
.hkpt-help-drawer-header{
  position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;
  padding:20px 52px 18px 22px;background:var(--hkpt-help-black);color:#fff;border-bottom:3px solid var(--hkpt-help-gold)
}
.hkpt-help-drawer-header strong{display:block;font-size:19px}
.hkpt-help-drawer-header span{display:block;margin-top:4px;color:#d1d1d6;font-size:12px}
.hkpt-help-drawer-body{padding:22px}
.hkpt-help-drawer-body>h3{margin:24px 0 10px}
.hkpt-help-start-tour,.hkpt-help-choose-tour,.hkpt-help-complete-tour,.hkpt-help-center-link{width:100%;text-align:center;justify-content:center;margin-bottom:9px}
.hkpt-help-complete-tour{background:var(--hkpt-help-black)!important;border-color:var(--hkpt-help-gold)!important;color:#fff!important}
.hkpt-help-drawer-item{margin:0 0 9px;border:1px solid var(--hkpt-help-border);border-radius:9px;background:#fff}
.hkpt-help-drawer-item summary{padding:12px 14px;font-weight:700;cursor:pointer}
.hkpt-help-drawer-item p{margin:0;padding:0 14px 14px;line-height:1.55}
.hkpt-help-center-link{margin-top:18px}
.hkpt-help-drawer .button{
  display:inline-flex;align-items:center;min-height:38px;padding:7px 13px;border:1px solid #8c8f94;border-radius:6px;
  background:#fff;color:var(--hkpt-help-text);text-decoration:none;cursor:pointer;box-sizing:border-box
}
.hkpt-help-drawer .button-primary{background:var(--hkpt-help-red);border-color:var(--hkpt-help-red);color:#fff}

/* Tutorial Center */
.hkpt-help-center{max-width:1100px}
.hkpt-help-hero{
  margin:18px 0 18px;padding:28px;border-radius:16px;background:linear-gradient(135deg,#111114,#262128);
  color:#fff;border:1px solid #39343a;border-top:4px solid var(--hkpt-help-red);box-shadow:0 14px 35px rgba(0,0,0,.14)
}
.hkpt-help-hero h1{margin:6px 0 9px;color:#fff;font-size:30px;line-height:1.15}
.hkpt-help-hero p{max-width:820px;margin:0;color:#d9d9dd;font-size:15px;line-height:1.6}
.hkpt-help-eyebrow{color:var(--hkpt-help-gold);font-size:11px;font-weight:800;letter-spacing:.13em}
.hkpt-complete-tutorial-card{
  display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px;padding:22px;
  border:1px solid var(--hkpt-help-gold);border-radius:14px;background:#fff8eb;box-shadow:0 8px 24px rgba(0,0,0,.07)
}
.hkpt-complete-tutorial-card h2{margin:5px 0 6px}
.hkpt-complete-tutorial-card p{max-width:760px;margin:0;color:#4a4032;line-height:1.55}
.hkpt-help-sequence-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:var(--hkpt-help-red);color:#fff;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.hkpt-help-list-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:24px 0 12px}
.hkpt-help-list-heading h2{margin:0 0 4px}
.hkpt-help-list-heading p{margin:0;color:var(--hkpt-help-muted)}
.hkpt-help-list-heading>span{padding:5px 9px;border-radius:999px;background:#e9e9ec;color:#444;font-weight:700;font-size:12px}
.hkpt-help-module-list{display:grid;gap:10px;margin:0;padding:0;list-style:none;counter-reset:none}
.hkpt-help-module-row{
  display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:15px;padding:15px 16px;
  border:1px solid var(--hkpt-help-border);border-radius:12px;background:#fff
}
.hkpt-help-module-number{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:var(--hkpt-help-black);color:var(--hkpt-help-gold);font-weight:800}
.hkpt-help-module-copy h3{margin:0 0 4px;font-size:16px}
.hkpt-help-module-copy p{margin:0;color:#50545a;line-height:1.45}
.hkpt-help-module-copy .hkpt-help-frontend{margin-top:5px;color:#6f5523;font-size:12px}
.hkpt-help-how-it-works{margin:22px 0;padding:20px;border-left:4px solid var(--hkpt-help-gold);border-radius:8px;background:#fff}
.hkpt-help-how-it-works h2{margin-top:0}
.hkpt-help-how-it-works p{margin-bottom:0;line-height:1.6}

/* Module picker */
.hkpt-module-picker-overlay,.hkpt-tour-complete-overlay{position:fixed;inset:0;z-index:2147483600;background:rgba(0,0,0,.72)}
.hkpt-module-picker{
  position:fixed;z-index:2147483601;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 30px));
  max-height:min(780px,calc(100vh - 30px));overflow:auto;border:1px solid var(--hkpt-help-gold);border-radius:16px;
  background:#f6f7f7;color:var(--hkpt-help-text);box-shadow:0 28px 90px rgba(0,0,0,.45)
}
.hkpt-module-picker-heading{padding:24px 58px 18px 24px;background:var(--hkpt-help-black);color:#fff;border-bottom:3px solid var(--hkpt-help-gold)}
.hkpt-module-picker-heading h2{margin:5px 0;color:#fff;font-size:23px}
.hkpt-module-picker-heading p{margin:0;color:#d7d7dc}
.hkpt-module-picker-kicker{color:var(--hkpt-help-gold);font-size:10px;font-weight:800;letter-spacing:.13em}
.hkpt-picker-complete{
  display:flex;flex-direction:column;width:calc(100% - 32px);margin:16px;padding:14px 16px;border:1px solid var(--hkpt-help-gold);
  border-radius:11px;background:#fff8eb;text-align:left;cursor:pointer
}
.hkpt-picker-complete strong{font-size:15px;color:#2a2114}
.hkpt-picker-complete span{margin-top:3px;color:#6d5b3f;font-size:12px}
.hkpt-picker-complete:hover,.hkpt-picker-complete:focus{border-color:var(--hkpt-help-red);box-shadow:0 0 0 2px rgba(215,25,32,.12)}
.hkpt-module-picker-list{display:grid;gap:7px;margin:0;padding:0 16px 18px;list-style:none}
.hkpt-module-picker-item button{
  display:flex;align-items:center;gap:13px;width:100%;padding:11px 12px;border:1px solid var(--hkpt-help-border);
  border-radius:10px;background:#fff;color:var(--hkpt-help-text);text-align:left;cursor:pointer
}
.hkpt-module-picker-item button:hover,.hkpt-module-picker-item button:focus{border-color:var(--hkpt-help-gold);background:#fffaf1}
.hkpt-module-picker-number{display:flex;align-items:center;justify-content:center;flex:0 0 30px;height:30px;border-radius:8px;background:var(--hkpt-help-black);color:var(--hkpt-help-gold);font-weight:800}
.hkpt-module-picker-copy{display:flex;flex-direction:column;min-width:0}
.hkpt-module-picker-copy strong{font-size:14px}
.hkpt-module-picker-copy small{margin-top:2px;color:var(--hkpt-help-muted);line-height:1.35}

/* Guided tutorial — isolated top-layer portal so overlays can never trap the screen */
.hkpt-tour-root{
  position:fixed;inset:0;z-index:2147483500;isolation:isolate;pointer-events:none;
  overflow:visible
}
.hkpt-tour-spotlight{
  position:fixed;z-index:1;box-sizing:border-box;border:3px solid #f6bf52;border-radius:9px;
  background:transparent;box-shadow:0 0 0 9999px rgba(0,0,0,.70),0 0 0 6px rgba(246,191,82,.20);
  pointer-events:none;transition:left .14s ease,top .14s ease,width .14s ease,height .14s ease
}
.hkpt-tour-target-active{scroll-margin-block:100px}
.hkpt-tour-card{
  position:fixed;z-index:2;width:min(430px,calc(100vw - 28px));max-height:min(680px,calc(100vh - 28px));overflow:auto;
  padding:18px;border:1px solid var(--hkpt-help-gold);border-top:4px solid var(--hkpt-help-red);border-radius:14px;
  background:#fff;color:var(--hkpt-help-text);box-shadow:0 22px 70px rgba(0,0,0,.48);pointer-events:auto;
  opacity:0;visibility:hidden;transform:translateY(5px);transition:opacity .14s ease,transform .14s ease;
  overscroll-behavior:contain;box-sizing:border-box
}
.hkpt-tour-card.is-visible{opacity:1;visibility:visible;transform:none}
.hkpt-tour-card.is-dragging{transition:none;cursor:grabbing;box-shadow:0 28px 90px rgba(0,0,0,.58)}
.hkpt-tour-card.is-detached{border-color:#c9a04f}
.hkpt-tour-card *{box-sizing:border-box}
.hkpt-tour-drag-handle{display:flex;align-items:center;gap:7px;margin:-8px 28px 10px -5px;padding:6px 8px;border:1px dashed #d6bd8a;border-radius:8px;background:#fffaf0;color:#6b542b;font-size:11px;font-weight:700;cursor:grab;touch-action:none;user-select:none}
.hkpt-tour-drag-handle:active{cursor:grabbing}
.hkpt-tour-drag-grip{font-size:15px;letter-spacing:-4px;color:var(--hkpt-help-gold)}
.hkpt-tour-reset-position{margin-left:auto;padding:2px 5px;border:0;background:transparent;color:#7a5b25;font-size:10px;text-decoration:underline;cursor:pointer}
.hkpt-tour-meta{display:flex;align-items:center;gap:7px;padding-right:32px}
.hkpt-tour-counter,.hkpt-tour-module-counter{display:inline-flex;padding:4px 7px;border-radius:999px;background:#f2f2f4;color:#65512d;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.hkpt-tour-module-counter{background:var(--hkpt-help-black);color:var(--hkpt-help-gold)}
.hkpt-tour-module-name{margin:11px 0 2px;color:var(--hkpt-help-red);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.hkpt-tour-card h2{margin:4px 30px 8px 0;font-size:19px;line-height:1.28}
.hkpt-tour-instruction{margin:0 0 13px;font-size:13.5px;line-height:1.58}
.hkpt-tour-frontend,.hkpt-tour-important,.hkpt-tour-conditional-note,.hkpt-tour-missing-note{margin:10px 0;padding:10px 11px;border-radius:9px;background:#f7f2e9;border-left:3px solid var(--hkpt-help-gold)}
.hkpt-tour-important{background:#fff1f1;border-left-color:var(--hkpt-help-red)}
.hkpt-tour-conditional-note{background:#eef7ff;border-left-color:#2271b1}
.hkpt-tour-missing-note{background:#f2f2f4;border-left-color:#646970}
.hkpt-tour-frontend strong,.hkpt-tour-important strong,.hkpt-tour-conditional-note strong,.hkpt-tour-missing-note strong{display:block;margin-bottom:3px;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.hkpt-tour-frontend p,.hkpt-tour-important p,.hkpt-tour-conditional-note p,.hkpt-tour-missing-note p{margin:0;font-size:12.5px;line-height:1.48}
.hkpt-tour-option-list{margin:10px 0;border:1px solid #e0d4bb;border-radius:9px;background:#fffdf8}
.hkpt-tour-option-list summary{padding:9px 11px;color:#5d4721;font-size:12px;font-weight:800;cursor:pointer}
.hkpt-tour-option-list-body{max-height:180px;overflow:auto;padding:0 11px 10px}
.hkpt-tour-option-group+ .hkpt-tour-option-group{margin-top:10px;padding-top:10px;border-top:1px solid #eee5d5}
.hkpt-tour-option-group>strong{display:block;margin-bottom:4px;font-size:11px;color:#59431e}
.hkpt-tour-option-group ul{display:grid;gap:3px;margin:0;padding:0;list-style:none}
.hkpt-tour-option-group li{padding:4px 7px;border-radius:5px;background:#f6f7f7;font-size:11.5px;line-height:1.35}
.hkpt-tour-option-group li.is-current{background:#fff0cf;color:#5d4315;font-weight:700}
.hkpt-tour-temporary-visible{outline:2px dashed rgba(34,113,177,.35);outline-offset:2px}
.hkpt-tour-conditional-preview{padding:8px!important;border-radius:8px;background:#f2f8fd!important}
.hkpt-tour-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:15px;padding-top:12px;border-top:1px solid #ececef}
.hkpt-tour-skip{margin-right:auto}
.hkpt-tour-card .button-link{border:0;background:transparent;color:var(--hkpt-help-muted);text-decoration:underline;cursor:pointer}
.hkpt-tour-card .button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 14px;border:1px solid #8c8f94;border-radius:6px;background:#fff;color:var(--hkpt-help-text);cursor:pointer}
.hkpt-tour-card .button-primary{background:var(--hkpt-help-red);border-color:var(--hkpt-help-red);color:#fff}
.hkpt-tour-card .button:disabled{opacity:.45;cursor:not-allowed}

/* Old orphaned nodes from cached 2.4.1 assets must never block input. */
.hkpt-tour-overlay{pointer-events:none!important}
.hkpt-tour-complete-dialog{
  position:fixed;z-index:2147483601;left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,calc(100vw - 30px));
  padding:28px 24px 24px;border:1px solid var(--hkpt-help-gold);border-radius:16px;background:#fff;text-align:center;box-shadow:0 28px 90px rgba(0,0,0,.45)
}
.hkpt-tour-complete-icon{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;background:#e9f7ec;color:#16803b;font-size:28px;font-weight:900}
.hkpt-tour-complete-dialog h2{margin:12px 0 7px}
.hkpt-tour-complete-dialog p{margin:0 0 18px;color:var(--hkpt-help-muted);line-height:1.55}

@media(max-width:782px){
  .hkpt-help-fab{right:14px;bottom:14px}.wp-admin .hkpt-help-fab{bottom:18px}.hkpt-guidance-public .hkpt-help-fab{bottom:82px}
  .hkpt-tour-card{max-height:46vh;font-size:13px}
  .hkpt-tour-drag-handle{margin-right:30px}
  .hkpt-help-popover{left:12px!important;right:12px!important;top:auto!important;bottom:12px!important;width:auto!important;max-height:55vh;overflow:auto}
  .hkpt-tour-controls{flex-wrap:wrap}.hkpt-tour-skip{width:100%;margin:0 0 4px;text-align:left}
  .hkpt-complete-tutorial-card{align-items:flex-start;flex-direction:column}.hkpt-complete-tutorial-card .button{width:100%;justify-content:center}
  .hkpt-help-module-row{grid-template-columns:38px minmax(0,1fr)}.hkpt-module-tutorial-link{grid-column:1/-1;width:100%;text-align:center;justify-content:center}
  .hkpt-help-list-heading{align-items:flex-start;flex-direction:column}
  .hkpt-module-picker{top:12px;bottom:12px;transform:translateX(-50%);max-height:none}
}

@media(prefers-reduced-motion:reduce){
  .hkpt-help-drawer,.hkpt-tour-card,.hkpt-tour-spotlight{transition:none}
}
