/* v2 portal-product-tour (Shinwoo, Nov 15): the tour chrome and the Help menu. Reading room brand: ink #000, green
   #00BF63 (never small text; text on green is black), green text #00703A, paper #F4F3EF and #F7F7F5. Literata for
   titles, Atkinson Hyperlegible Next for the interface. Every tour node is removed when the tour ends.
   Motion lives in v2/walkthrough.js (transform, opacity and the dim's clip-path only). This file has no keyframes and
   no looping animation; the only transitions are button colors and the press scale. */

/* ---------- tour layers ---------- */
.v2-wt{position:fixed;inset:0;z-index:1000;overflow:hidden;pointer-events:none;
  font-family:"Atkinson Hyperlegible Next","Atkinson Hyperlegible",var(--sans,system-ui),sans-serif}
/* The dim always covers the page; its clip-path cuts a rounded hole over the spotlight (set by the script). */
.v2-wt-dim{position:absolute;inset:0;pointer-events:auto;background:rgba(6,6,6,.56)}
/* The ring around the spotlight. Moved with a transform (FLIP), so it has no layout transition. */
.v2-wt-spot{position:absolute;border-radius:12px;pointer-events:none;transform-origin:0 0;
  box-shadow:0 0 0 2px #00BF63,0 0 0 6px rgba(0,191,99,.18)}
.v2-wt-spot.v2-wt-hidden{display:none}

/* ---------- panel ---------- */
.v2-wt-panel{position:absolute;width:380px;max-width:calc(100vw - 32px);box-sizing:border-box;pointer-events:auto;
  background:#FFFFFF;color:#000;border-radius:16px;padding:22px 22px 16px;overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.08),0 28px 64px -24px rgba(0,0,0,.55)}
.v2-wt-panel[data-side="center"]{position:fixed;left:50%!important;top:50%!important;translate:-50% -50%}
.v2-wt-panel[data-kind="welcome"],.v2-wt-panel[data-kind="closing"]{width:420px}
.v2-wt-panel[data-kind="welcome"]:not([data-side="sheet"]),.v2-wt-panel[data-kind="closing"]:not([data-side="sheet"]){
  position:fixed;left:50%!important;top:50%!important;translate:-50% -50%}
.v2-wt-panel[data-side="sheet"]{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));top:auto;width:auto;max-width:none;
  padding:20px 18px 14px;max-height:calc(100dvh - 88px);overflow-y:auto}

/* Progress: a thin line along the top edge, grown with scaleX. */
.v2-wt-progress{position:absolute;left:0;right:0;top:0;height:3px;background:rgba(0,0,0,.06)}
.v2-wt-progress-fill{display:block;height:100%;background:#00BF63;transform-origin:0 50%;transform:scaleX(0)}

/* Welcome: the logo, then a small line drawing on paper. */
.v2-wt-brand{display:flex;align-items:center;height:22px;margin:0 0 14px}
.v2-wt-logo{height:20px;width:auto;display:block}
.v2-wt-logo-on-dark{display:none}
.v2-wt-ill{margin:0 0 16px;border-radius:12px;background:#F4F3EF;color:#000;padding:10px 12px;--v2-tour-paper:#FFFFFF}
.v2-tour-ill-svg{display:block;width:100%;height:auto;max-height:150px}
.v2-wt-phone .v2-tour-ill-svg{max-height:112px}

.v2-wt-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.v2-wt-count{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#4a4a4a;font-variant-numeric:tabular-nums}
.v2-wt-kicker{font-size:12px;font-weight:700;color:#00703A;background:#E2F6EB;border-radius:999px;padding:3px 10px}
.v2-wt-title{margin:6px 0 0;font-family:"Literata",Georgia,serif;font-weight:500;font-size:23px;line-height:1.2;letter-spacing:-.01em;color:#000;outline:none;text-wrap:balance}
.v2-wt-panel[data-kind="welcome"] .v2-wt-title{font-size:26px}
.v2-wt-rule{display:block;width:28px;height:3px;border-radius:2px;background:#00BF63;margin:10px 0}
.v2-wt-body{margin:0;font-size:15.5px;line-height:1.55;color:#1a1a1a;overflow-wrap:anywhere;text-wrap:pretty}

/* Closing: two or three places to go next, as list rows. */
.v2-wt-go{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid #E6E4DC}
.v2-wt-go li{border-bottom:1px solid #E6E4DC}
.v2-wt-go-link{display:flex;flex-direction:column;gap:2px;min-height:44px;justify-content:center;padding:10px 28px 10px 4px;position:relative;
  color:#000;text-decoration:none;border-radius:8px;transition:background-color .12s ease}
.v2-wt-go-link::after{content:"";position:absolute;right:10px;top:50%;width:7px;height:7px;margin-top:-4px;
  border-right:2px solid currentColor;border-top:2px solid currentColor;rotate:45deg;opacity:.55}
.v2-wt-go-label{font-weight:700;font-size:15px}
.v2-wt-go-hint{font-size:13.5px;color:#4a4a4a}
.v2-wt-go-link:focus-visible{outline:2px solid #000;outline-offset:2px}
@media (hover:hover) and (pointer:fine){ .v2-wt-go-link:hover{background:#F4F3EF} }

/* Buttons */
.v2-wt-actions{display:flex;align-items:center;gap:8px;margin-top:18px;flex-wrap:wrap}
.v2-wt-btn{min-height:44px;min-width:44px;padding:0 16px;border-radius:10px;border:1px solid #D9D7CF;background:#FFFFFF;color:#000;
  font:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,transform .16s cubic-bezier(.23,1,.32,1)}
.v2-wt-btn:active:not(:disabled){transform:scale(.98)}
.v2-wt-btn:focus-visible{outline:2px solid #000;outline-offset:2px}
.v2-wt-skip{margin-right:auto;padding:0 8px;border-color:transparent;background:transparent;color:#333;text-decoration:underline;text-underline-offset:3px}
.v2-wt-next{background:#00BF63;border-color:#00BF63;color:#000}
.v2-wt-back:disabled{display:none}
@media (hover:hover) and (pointer:fine){
  .v2-wt-btn:hover{background:#F4F3EF}
  .v2-wt-skip:hover{background:transparent;color:#000}
  .v2-wt-next:hover{background:#00AD5A;border-color:#00AD5A}
}

/* ---------- dark theme ---------- */
:root[data-theme="dark"] .v2-wt-panel{background:#151519;color:#F7F7F5}
:root[data-theme="dark"] .v2-wt-title{color:#F7F7F5}
:root[data-theme="dark"] .v2-wt-body{color:#dcdcd8}
:root[data-theme="dark"] .v2-wt-count,:root[data-theme="dark"] .v2-wt-go-hint{color:#a8a8b0}
:root[data-theme="dark"] .v2-wt-progress{background:rgba(255,255,255,.08)}
:root[data-theme="dark"] .v2-wt-kicker{color:#7FE0AE;background:rgba(0,191,99,.14)}
:root[data-theme="dark"] .v2-wt-logo-on-light{display:none}
:root[data-theme="dark"] .v2-wt-logo-on-dark{display:block}
:root[data-theme="dark"] .v2-wt-ill{background:#1F1F24;color:#F7F7F5;--v2-tour-paper:#151519}
:root[data-theme="dark"] .v2-wt-go,:root[data-theme="dark"] .v2-wt-go li{border-color:#2c2c33}
:root[data-theme="dark"] .v2-wt-go-link{color:#F7F7F5}
:root[data-theme="dark"] .v2-wt-btn{background:#151519;color:#F7F7F5;border-color:#33333a}
:root[data-theme="dark"] .v2-wt-skip{background:transparent;border-color:transparent;color:#dcdcd8}
:root[data-theme="dark"] .v2-wt-next{background:#00BF63;border-color:#00BF63;color:#000}
:root[data-theme="dark"] .v2-wt-btn:focus-visible,:root[data-theme="dark"] .v2-wt-go-link:focus-visible{outline-color:#F7F7F5}
@media (hover:hover) and (pointer:fine){
  :root[data-theme="dark"] .v2-wt-btn:hover,:root[data-theme="dark"] .v2-wt-go-link:hover{background:#1F1F24}
  :root[data-theme="dark"] .v2-wt-next:hover{background:#00AD5A}
}

/* ---------- Help button and menu (top bar, every signed-in role) ---------- */
.v2-help-wrap{position:relative;display:inline-flex}
.v2-help-btn{width:36px;height:36px;border-radius:999px;border:1px solid #D9D7CF;background:#FFFFFF;color:#000;cursor:pointer;
  font:700 16px/1 "Atkinson Hyperlegible Next","Atkinson Hyperlegible",system-ui,sans-serif;display:inline-flex;align-items:center;justify-content:center;
  transition:background-color .12s ease,transform .16s cubic-bezier(.23,1,.32,1);position:relative}
.v2-help-btn::before{content:"";position:absolute;inset:-4px}  /* 44 px hit area */
.v2-help-btn:active{transform:scale(.96)}
.v2-help-btn:focus-visible{outline:2px solid #000;outline-offset:2px}
.v2-help-btn[aria-expanded="true"]{background:#F4F3EF}
@media (hover:hover) and (pointer:fine){ .v2-help-btn:hover{background:#F4F3EF} }
.bellbar .v2-help-wrap{margin-right:8px;vertical-align:middle}
.mobilebar .v2-help-wrap{float:right}
/* One button per width: the phone bar shows up to 820 px, the bell bar above it. */
.bellbar .v2-help-wrap{display:none}
@media (min-width:821px){ .bellbar .v2-help-wrap{display:inline-flex} .mobilebar .v2-help-wrap{display:none} }
/* The bell is display:grid (a block), so the bar becomes a row to keep "?" beside it, not above it. */
html.v2-help-on .bellbar{display:flex;align-items:center}
@media (min-width:821px){ html.v2-help-on .top{padding-right:104px} }
.v2-help-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:900;min-width:236px;max-width:min(300px,calc(100vw - 24px));
  background:#FFFFFF;color:#000;border:1px solid #E6E4DC;border-radius:12px;padding:6px;text-align:left;
  box-shadow:0 1px 2px rgba(0,0,0,.06),0 18px 40px -18px rgba(0,0,0,.4);
  font-family:"Atkinson Hyperlegible Next","Atkinson Hyperlegible",system-ui,sans-serif}
.v2-help-head{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#4a4a4a;padding:8px 10px 4px}
.v2-help-note{font-size:13px;line-height:1.45;color:#4a4a4a;padding:0 10px 8px}
.v2-help-item{display:block;width:100%;min-height:44px;text-align:left;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#000;
  font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.v2-help-item:focus-visible{outline:2px solid #000;outline-offset:-2px}
@media (hover:hover) and (pointer:fine){ .v2-help-item:hover{background:#F4F3EF} }
:root[data-theme="dark"] .v2-help-btn{background:#151519;color:#F7F7F5;border-color:#33333a}
:root[data-theme="dark"] .v2-help-btn[aria-expanded="true"]{background:#1F1F24}
:root[data-theme="dark"] .v2-help-menu{background:#151519;color:#F7F7F5;border-color:#2c2c33}
:root[data-theme="dark"] .v2-help-head,:root[data-theme="dark"] .v2-help-note{color:#a8a8b0}
:root[data-theme="dark"] .v2-help-item{color:#F7F7F5}
@media (hover:hover) and (pointer:fine){ :root[data-theme="dark"] .v2-help-item:hover,:root[data-theme="dark"] .v2-help-btn:hover{background:#1F1F24} }

/* portal-tour-tweaks: a line above "Report a bug" in the owner's preview list, the bug form errors, the owner's list. */
.v2-help-sep{height:1px;background:#E6E4DC;margin:6px 4px}
:root[data-theme="dark"] .v2-help-sep{background:#2c2c33}
.v2-bug-err{color:#B42318;font-weight:700}
.v2-bug-err:empty{display:none}
.v2-bug-focus{outline:2px solid #000;outline-offset:2px}
:root[data-theme="dark"] .v2-bug-err{color:#FDA29B}
:root[data-theme="dark"] .v2-bug-focus{outline-color:#F7F7F5}

/* Reduced motion: nothing moves (the script starts no animation and adds .v2-wt-reduced). */
@media (prefers-reduced-motion: reduce){
  .v2-wt,.v2-wt *,.v2-help-btn,.v2-help-menu *{animation:none!important;transition:none!important}
  .v2-wt-btn:active,.v2-help-btn:active{transform:none}
}
