/* My Homepage plugin styles. Generated: every rule is scoped to #hp-root so the WordPress theme cannot restyle it. */
#hp-root{--bg:#000;--panel:#000;--fg:#fff;--muted:#8a8a8a;--line:#fff;--btn:#000;--btn-hover:#fff;--btn-hover-fg:#000;--accent:#fff;--radius:0px;--bw:1px;--font:"Helvetica Neue",Helvetica,Arial,sans-serif;--bgimg:none;--panelimg:none;--shadow:none;color-scheme:dark}
#hp-root[data-theme="amoled"]{--bg:#000;--panel:#000;--fg:#e8e8e8;--muted:#7a7a7a;--line:#1f1f1f;--btn:#0b0b0b;--btn-hover:#161616;--btn-hover-fg:#fff;--accent:#4dd0a8;--radius:14px;--bw:1px;color-scheme:dark}
#hp-root[data-theme="minimal"]{--bg:#fafafa;--panel:#fafafa;--fg:#111;--muted:#6f6f6f;--line:#111;--btn:#fff;--btn-hover:#d6001c;--btn-hover-fg:#fff;--accent:#d6001c;--radius:0px;--bw:1px;color-scheme:light}
#hp-root[data-theme="mondriaan"]{--bg:#f4f1e8;--panel:#f4f1e8;--fg:#111;--muted:#555;--line:#111;--btn:#fff;--btn-hover:#e3201b;--btn-hover-fg:#fff;--accent:#1c4aa8;--radius:0px;--bw:5px;--font:"Futura","Trebuchet MS",Arial,sans-serif;color-scheme:light}
#hp-root[data-theme="wood"]{--bg:#5a3a22;--panel:#7a5233;--fg:#2b1608;--muted:#4a2d17;--line:#2b1608;--btn:#c8955a;--btn-hover:#e0ad72;--btn-hover-fg:#2b1608;--accent:#f3d9a8;--radius:8px;--bw:2px;--font:Georgia,"Times New Roman",serif;--bgimg:repeating-linear-gradient(92deg,rgba(0,0,0,.10) 0 2px,rgba(255,255,255,.03) 2px 7px,rgba(0,0,0,.06) 7px 9px,transparent 9px 18px),linear-gradient(180deg,#6b4527,#4d2f19);--panelimg:repeating-linear-gradient(90deg,rgba(0,0,0,.07) 0 1px,transparent 1px 11px),linear-gradient(180deg,#a9794a,#8d6238);--shadow:0 6px 18px rgba(0,0,0,.45);color-scheme:light}
#hp-root[data-theme="nostromo"]{--bg:#020a04;--panel:#030d06;--fg:#5dff8f;--muted:#2fa85c;--line:#2fa85c;--btn:#031a0a;--btn-hover:#5dff8f;--btn-hover-fg:#021006;--accent:#5dff8f;--radius:0px;--bw:1px;--font:"Courier New",Courier,ui-monospace,Menlo,Consolas,monospace;--bgimg:repeating-linear-gradient(0deg,rgba(93,255,143,.06) 0 1px,transparent 1px 3px),radial-gradient(ellipse at center,rgba(40,140,70,.16),rgba(0,0,0,0) 70%);--panelimg:none;--shadow:0 0 10px rgba(93,255,143,.22);color-scheme:dark}
#hp-root{position:relative;display:flex;flex-direction:column;height:var(--hp-h,85vh);min-height:560px;overflow:hidden;background-color:var(--bg);background-image:var(--bgimg);color:var(--fg);font-family:var(--font);font-size:16px;line-height:1.4;text-align:left;letter-spacing:normal;text-transform:none}
#hp-root.hp-fixed{position:fixed;inset:0;height:auto;min-height:0;z-index:99999}
#hp-root:fullscreen{height:100vh;min-height:0}
#hp-root *,#hp-root *::before,#hp-root *::after{box-sizing:border-box}
#hp-root h2,#hp-root h3,#hp-root p,#hp-root ul,#hp-root li,#hp-root label{margin:0;padding:0;font-family:inherit;letter-spacing:normal;text-transform:none}
#hp-root ul{list-style:none}
#hp-root a{color:inherit;text-decoration:none}
#hp-root button,#hp-root input,#hp-root select,#hp-root textarea{font:inherit;color:inherit;margin:0;letter-spacing:normal;text-transform:none;text-shadow:none;max-width:none;min-height:0;box-shadow:none;outline-offset:2px}
#hp-root button{background:none;border:0;padding:0;cursor:pointer;border-radius:0;text-decoration:none;line-height:1.2}
#hp-root [hidden]{display:none!important}
#hp-root :focus-visible{outline:2px solid var(--accent)}
#hp-root .hd{display:flex;justify-content:space-between;align-items:center;padding:14px 22px;z-index:5}
#hp-root .hd-r{display:flex;align-items:center;gap:12px}
#hp-root .logo{height:26px;width:auto;display:block}
#hp-root .logo-w{display:none}
#hp-root[data-theme="black"] .logo-w,#hp-root[data-theme="amoled"] .logo-w,#hp-root[data-theme="wood"] .logo-w{display:block}
#hp-root[data-theme="black"] .logo-k,#hp-root[data-theme="amoled"] .logo-k,#hp-root[data-theme="wood"] .logo-k{display:none}
#hp-root .ck{margin-left:auto;padding-left:10px;visibility:hidden;font-weight:700}
#hp-root .mi.active .ck{visibility:visible}
#hp-root .hd-l{display:flex;align-items:baseline}
#hp-root .ttl{font-size:13px;letter-spacing:.3em;text-transform:uppercase;font-weight:400}
#hp-root .clock{font-size:13px;color:var(--muted);margin-left:16px;letter-spacing:.08em}
#hp-root .gear{border:var(--bw) solid var(--line);color:var(--fg);width:38px;height:38px;border-radius:var(--radius);font-size:18px;line-height:1}
#hp-root .gear:hover{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root[data-theme="nostromo"]{text-shadow:0 0 5px rgba(93,255,143,.45);caret-color:#5dff8f}
#hp-root[data-theme="nostromo"] button,#hp-root[data-theme="nostromo"] .tab,#hp-root[data-theme="nostromo"] .ttl,#hp-root[data-theme="nostromo"] h2,#hp-root[data-theme="nostromo"] .m-sec{text-transform:uppercase;letter-spacing:.1em}
#hp-root[data-theme="nostromo"] .ttl::before{content:"> "}
#hp-root[data-theme="nostromo"] .ttl::after{content:"_";animation:hpblink 1.1s steps(1) infinite}
@media (prefers-reduced-motion:reduce){#hp-root[data-theme="nostromo"] .ttl::after{animation:none}}
#hp-root[data-theme="nostromo"] .logo-w{display:block;filter:sepia(1) hue-rotate(70deg) saturate(5) brightness(1.15) drop-shadow(0 0 4px rgba(93,255,143,.6))}
#hp-root[data-theme="nostromo"] .logo-k{display:none}
#hp-root[data-theme="nostromo"] ::selection{background:#5dff8f;color:#021006;text-shadow:none}
#hp-root[data-theme="wood"] .ttl{color:#f3d9a8}
#hp-root[data-theme="wood"] .clock{color:#d9b98a}
#hp-root[data-theme="wood"] .gear{color:#f3d9a8;border-color:#f3d9a8}
#hp-root .menu{position:absolute;right:22px;top:58px;z-index:30;max-height:calc(100% - 70px);overflow-y:auto;overscroll-behavior:contain;background-color:var(--panel);background-image:var(--panelimg);border:var(--bw) solid var(--line);border-radius:var(--radius);padding:10px;width:290px;box-shadow:var(--shadow)}
#hp-root .menu button.mi{display:flex;width:100%;align-items:center;gap:10px;text-align:left;color:var(--fg);padding:9px 8px;font-size:14px;border-radius:var(--radius)}
#hp-root .menu button.mi:hover{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .m-sec{margin:4px 6px 6px;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
#hp-root .m-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;font-size:13px}
#hp-root .m-row label{display:flex;align-items:center;gap:6px}
#hp-root .m-row select,#hp-root .m-row input[type=time]{background:var(--panel);color:var(--fg);border:1px solid var(--line);border-radius:var(--radius);padding:4px 6px;font-size:13px}
#hp-root .m-row input[type=color]{width:34px;height:26px;padding:0;border:1px solid var(--line);background:none;cursor:pointer}
#hp-root .m-note{padding:2px 8px 6px;font-size:11px;color:var(--muted)}
#hp-root .menu hr{border:0;border-top:1px solid var(--muted);opacity:.3;margin:8px 0}
#hp-root .sw{width:14px;height:14px;border:1px solid currentColor;display:inline-block;flex:none}
#hp-root .mini{border:1px solid var(--line);padding:3px 8px;font-size:12px;border-radius:var(--radius)}
#hp-root .mini:hover{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .main{flex:1;display:grid;grid-template-columns:1fr 14px 1fr;padding:6px 22px 22px;min-height:0}
#hp-root .pane{border:var(--bw) solid var(--line);border-radius:var(--radius);background-color:var(--panel);background-image:var(--panelimg);display:flex;flex-direction:column;min-height:0;min-width:0;box-shadow:var(--shadow)}
#hp-root[data-theme="mondriaan"] .pane.left{border-top-color:#f2c500}
#hp-root[data-theme="mondriaan"] .pane.right{border-top-color:#e3201b}
#hp-root .divider{position:relative;cursor:col-resize;touch-action:none}
#hp-root .divider::after{content:"";position:absolute;left:50%;top:8px;bottom:8px;width:2px;transform:translateX(-50%);background:var(--accent);opacity:0;transition:opacity .15s}
#hp-root .divider:hover::after,#hp-root .divider:focus-visible::after,#hp-root .divider.drag::after{opacity:.7}
#hp-root .head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 18px;border-bottom:var(--bw) solid var(--line);flex-wrap:wrap}
#hp-root .head h2{font-size:12px;letter-spacing:.25em;text-transform:uppercase;font-weight:400}
#hp-root .head small{color:var(--muted);font-size:11px}
#hp-root .tabs{display:flex;gap:6px}
#hp-root .tab{border-bottom:2px solid transparent;color:var(--muted);font-size:12px;letter-spacing:.2em;text-transform:uppercase;padding:4px 10px}
#hp-root .tab:hover{color:var(--fg)}
#hp-root .tab.on{color:var(--fg);border-bottom-color:var(--accent)}
#hp-root .tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
#hp-root .tools .hint{font-size:11px;color:var(--muted);margin-right:4px}
#hp-root .tools button{border:var(--bw) solid var(--line);color:var(--fg);padding:6px 12px;font-size:12px;border-radius:var(--radius)}
#hp-root .tools button:hover,#hp-root .tools button.on{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .notes{flex:1;width:100%;resize:none;border:0;outline:0;background:transparent;color:var(--fg);font-size:16px;line-height:1.65;padding:18px;min-height:0}
#hp-root .notes::placeholder,#hp-root .field textarea::placeholder{color:var(--muted)}
#hp-root .srch{flex:1;overflow:auto;padding:14px 18px 18px;display:flex;flex-direction:column;gap:12px;min-height:0}
#hp-root .srchbar{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px}
#hp-root .srchbar button,#hp-root .sform button,#hp-root .sgo{border:var(--bw) solid var(--line);color:var(--fg);background:var(--btn);padding:6px 12px;border-radius:var(--radius);font-size:14px}
#hp-root .srchbar button:hover,#hp-root .sform button:hover,#hp-root .sgo:hover{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .sform{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);padding:12px;border-radius:var(--radius)}
#hp-root .sform label{display:flex;flex-direction:column;gap:4px;font-size:12px;letter-spacing:.05em}
#hp-root .sform input{border:1px solid var(--line);background:transparent;color:var(--fg);padding:7px 9px;font-size:15px;border-radius:var(--radius)}
#hp-root .sform select{border:1px solid var(--line);background:var(--bg,transparent);color:var(--fg);padding:7px 9px;font-size:15px;border-radius:var(--radius)}
#hp-root .srchbar .tools{display:flex;gap:8px}
#hp-root .slist{display:flex;flex-direction:column;gap:8px;margin-top:6px}
#hp-root .sbtns .sec{margin-bottom:10px}
#hp-root .sact{display:flex;gap:8px}
#hp-root .sbtns{display:flex;flex-direction:column;gap:8px}
#hp-root .srow{display:flex;align-items:center;gap:10px}
#hp-root .sgo{min-width:120px;text-align:left;font-weight:600}
#hp-root .sq{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.6;font-size:13px}
#hp-root .quest{flex:1;overflow:auto;padding:12px 18px 18px;display:flex;flex-direction:column;gap:10px;min-height:0}
#hp-root .q-top{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted)}
#hp-root .q-top b{color:var(--accent)}
#hp-root .q-stage{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;align-items:end;justify-items:center;gap:10px;border:1px solid var(--line);padding:10px 10px 4px;min-height:190px}
#hp-root .hero{height:170px;width:auto;flex:none;overflow:visible}
#hp-root .foe{height:90px;width:auto;display:block;margin:0 auto}
#hp-root .q-foe{text-align:center;font-size:12px;color:var(--muted)}
#hp-root .q-hp{height:6px;border:1px solid var(--line);margin:4px auto;width:90px}
#hp-root .q-hp i{display:block;height:100%;width:100%;background:var(--accent)}
#hp-root .q-timer{text-align:center;font-size:38px;letter-spacing:.08em;font-variant-numeric:tabular-nums}
#hp-root .q-msg{text-align:center;font-size:13px;color:var(--muted);min-height:2.6em}
#hp-root .q-row{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
#hp-root .quest button{border:var(--bw) solid var(--line);color:var(--fg);background:var(--btn);padding:6px 12px;border-radius:var(--radius);font-size:14px}
#hp-root .quest button:hover:not(:disabled){background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .quest button:disabled{opacity:.45;cursor:default}
#hp-root .quest .q-d.on,#hp-root .quest .q-tabs .on{background:var(--accent);color:var(--btn-hover-fg)}
#hp-root .quest .q-go{font-weight:700;padding:9px 22px}
#hp-root .q-shop{border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:6px}
#hp-root .q-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}
#hp-root .q-item{display:flex;align-items:center;gap:10px;font-size:14px}
#hp-root .q-n{flex:1}
#hp-root .q-b{color:var(--muted);font-size:12px}
#hp-root .act{flex:1;overflow:auto;padding:14px 18px 18px;display:flex;flex-direction:column;gap:12px;min-height:0}
#hp-root .today{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#hp-root .today .lbl{font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);margin-right:4px}
#hp-root .chip{border:1px solid var(--line);padding:5px 10px;font-size:12px;border-radius:calc(var(--radius) + 12px)}
#hp-root .chip:hover{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .chip.done{border-color:var(--accent);color:var(--accent)}
#hp-root .chip.done:hover{color:var(--btn-hover-fg)}
#hp-root .seg{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
#hp-root .seg button{border:1px solid var(--line);padding:6px 12px;font-size:12px;border-radius:var(--radius);color:var(--fg)}
#hp-root .seg button:hover,#hp-root .seg button.on{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .seg .help{margin-left:auto;border-color:transparent;color:var(--muted);text-decoration:underline}
#hp-root .seg .help:hover{background:none;color:var(--fg)}
#hp-root .actbody{display:flex;flex-direction:column;gap:12px}
#hp-root .act select.wsel{width:100%;padding:9px 10px;background:var(--panel);background-image:none;color:var(--fg);border:var(--bw) solid var(--line);border-radius:var(--radius);font-size:14px}
#hp-root .field input,#hp-root .field textarea,#hp-root .field select{width:100%;padding:9px 10px;background:var(--panel);background-image:none;color:var(--fg);border:var(--bw) solid var(--line);border-radius:var(--radius);font-size:14px;outline:0}
#hp-root .field textarea{resize:vertical;line-height:1.5}
#hp-root .field input:focus,#hp-root .field textarea:focus,#hp-root .field select:focus,#hp-root .act select.wsel:focus{border-color:var(--accent)}
#hp-root .field>label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px;line-height:1.35}
#hp-root .scale{display:flex;align-items:center;gap:12px}
#hp-root .scale input{padding:0;border:0;accent-color:var(--accent)}
#hp-root .scale output{min-width:22px;text-align:right;font-size:15px}
#hp-root .multi{display:flex;flex-direction:column;gap:6px}
#hp-root .chk{display:flex;align-items:flex-start;gap:8px;font-size:14px;cursor:pointer}
#hp-root .chk input{width:auto;margin-top:3px;accent-color:var(--accent)}
#hp-root .card{border:1px solid var(--line);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:12px;position:relative}
#hp-root .k,#hp-root .sub{color:var(--muted);font-size:11px;letter-spacing:.15em;text-transform:uppercase}
#hp-root .entry .q{font-size:11px;color:var(--muted);margin-top:6px}
#hp-root .entry .a{font-size:14px;white-space:pre-wrap;line-height:1.45}
#hp-root .entry .del2{position:absolute;top:8px;right:8px;color:var(--muted);font-size:16px}
#hp-root .entry .del2:hover{color:var(--fg)}
#hp-root .abtn{align-self:flex-start;padding:8px 16px;font-size:13px;color:var(--fg);border:var(--bw) solid var(--line);border-radius:var(--radius)}
#hp-root .abtn:hover,#hp-root .abtn.pri{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .btnrow{display:flex;gap:8px;flex-wrap:wrap}
#hp-root .wsdesc{font-size:13px;color:var(--muted);line-height:1.5}
#hp-root .intro{font-size:14px;line-height:1.55;display:flex;flex-direction:column;gap:8px}
#hp-root .intro .warn{border-left:3px solid var(--accent);padding-left:10px}
#hp-root .credit{font-size:11px;color:var(--muted);line-height:1.5;padding-top:6px}
#hp-root .credit a{color:var(--accent);text-decoration:underline}
#hp-root .vlist{display:flex;flex-direction:column;gap:2px}
#hp-root .vrow{display:grid;grid-template-columns:1fr 70px 34px;gap:8px;align-items:center;padding:3px 0;border-bottom:1px solid var(--line);border-bottom-color:rgba(128,128,128,.25)}
#hp-root .vrow input.vn{padding:6px 8px;background:var(--panel);color:var(--fg);border:1px solid var(--line);border-radius:var(--radius);font-size:14px;width:100%}
#hp-root .vrow select{padding:5px;background:var(--panel);color:var(--fg);border:1px solid var(--line);border-radius:var(--radius);font-size:13px}
#hp-root .star{font-size:18px;color:var(--muted)}
#hp-root .star.on{color:var(--accent)}
#hp-root .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
#hp-root .stat{border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px}
#hp-root .stat b{display:block;font-size:22px;font-weight:400;margin-top:2px}
#hp-root .ctl{display:flex;gap:8px;flex-wrap:wrap}
#hp-root .ctl select{padding:7px 8px;background:var(--panel);color:var(--fg);border:var(--bw) solid var(--line);border-radius:var(--radius);font-size:13px}
#hp-root .chartwrap{position:relative}
#hp-root .chart{width:100%;height:auto;display:block;overflow:visible}
#hp-root .chart text{fill:var(--muted);font-size:11px;font-family:inherit}
#hp-root .chart .cgrid{stroke:var(--fg);opacity:.15;stroke-width:1}
#hp-root .chart .ln{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
#hp-root .chart .pt{fill:var(--accent);stroke:var(--panel);stroke-width:2}
#hp-root .chart .bar{fill:var(--accent)}
#hp-root .chart .hit{fill:transparent}
#hp-root .tip{position:absolute;pointer-events:none;background:var(--panel);color:var(--fg);border:1px solid var(--line);border-radius:var(--radius);padding:5px 8px;font-size:12px;white-space:nowrap;transform:translate(-50%,-110%);z-index:3}
#hp-root .tbl{width:100%;border-collapse:collapse;font-size:13px}
#hp-root .tbl th,#hp-root .tbl td{text-align:left;padding:5px 6px;border-bottom:1px solid rgba(128,128,128,.3)}
#hp-root .delta{color:var(--muted);font-size:12px}
#hp-root .lgrid{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:18px}
#hp-root .sec .gh{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
#hp-root .sec .gh .gt{display:flex;align-items:center;gap:6px;color:var(--muted)}
#hp-root .sec .gh .gt:hover{color:var(--fg)}
#hp-root .sec .gh .gx{margin-left:auto;display:flex;gap:6px}
#hp-root .tiles{display:grid;grid-template-columns:repeat(auto-fill,56px);justify-content:start;gap:10px;align-content:start;min-height:20px}
#hp-root .tiles.drop-zone{outline:2px dashed var(--accent);outline-offset:4px}
#hp-root .link{position:relative;aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--fg);background:var(--btn);border:min(var(--bw),3px) solid var(--line);border-radius:var(--radius);padding:4px;transition:.15s;box-shadow:var(--shadow);min-width:0}
#hp-root .link:hover{background:var(--btn-hover);color:var(--btn-hover-fg);transform:translateY(-2px)}
#hp-root .link img{width:24px;height:24px;object-fit:contain;border-radius:calc(var(--radius)/3);background:#fff;padding:2px;max-width:none}
#hp-root .link .fb{width:24px;height:24px;display:none;align-items:center;justify-content:center;background:var(--accent);color:var(--bg);font-weight:700;font-size:12px;border-radius:calc(var(--radius)/3)}
#hp-root .link .nm{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:0}
#hp-root .badge{position:absolute;top:1px;left:4px;font-size:8px;opacity:.55}
#hp-root .editing .link{cursor:grab}
#hp-root .link.dragging{opacity:.4}
#hp-root .link.drop-before{box-shadow:-6px 0 0 var(--accent)}
#hp-root .link.drop-after{box-shadow:6px 0 0 var(--accent)}
#hp-root .link .del{position:absolute;top:-5px;right:-5px;width:16px;height:16px;border-radius:50%;background:#d6001c;color:#fff;font-size:11px;line-height:16px;text-align:center;display:none;z-index:2}
#hp-root .link .mv{position:absolute;bottom:0;width:16px;height:14px;line-height:14px;text-align:center;font-size:8px;color:inherit;opacity:.75;display:none}
#hp-root .link .mv.l{left:0}
#hp-root .link .mv.r{right:0}
#hp-root .link .mv:hover{opacity:1}
#hp-root .editing .link .del,#hp-root .editing .link .mv{display:block}
#hp-root .editing .link .badge{display:none}
#hp-root .editing .link{animation:wig .3s infinite alternate}
@keyframes wig{from{transform:rotate(-.6deg)}to{transform:rotate(.6deg)}}
#hp-root .empty{color:var(--muted);font-size:14px;padding:12px 0;text-align:center}
#hp-root .tiles .empty{grid-column:1/-1;padding:8px 0;text-align:left}
#hp-root dialog{background-color:var(--panel);background-image:var(--panelimg);color:var(--fg);border:var(--bw) solid var(--line);border-radius:var(--radius);padding:22px;width:360px;max-width:calc(100vw - 32px);font-family:var(--font)}
#hp-root dialog::backdrop{background:rgba(0,0,0,.6)}
#hp-root dialog h3{margin:0 0 14px;font-size:12px;letter-spacing:.25em;text-transform:uppercase;font-weight:400}
#hp-root dialog label{display:block;font-size:12px;color:var(--muted);margin:0 0 4px}
#hp-root dialog input,#hp-root dialog select{width:100%;padding:10px;margin-bottom:12px;background:var(--panel);border:var(--bw) solid var(--line);color:var(--fg);border-radius:var(--radius);outline:0}
#hp-root dialog input:focus,#hp-root dialog select:focus{border-color:var(--accent)}
#hp-root .row{display:flex;gap:8px;justify-content:flex-end;margin-top:6px}
#hp-root .row button{padding:8px 16px;font-size:13px;color:var(--fg);border:var(--bw) solid var(--line);border-radius:var(--radius)}
#hp-root .row button:hover,#hp-root .row button.pri{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .qj ul{max-height:260px;overflow:auto;margin-top:-4px}
#hp-root .qj li button{display:flex;gap:8px;width:100%;text-align:left;padding:8px;font-size:14px;border-radius:var(--radius)}
#hp-root .qj li button.sel,#hp-root .qj li button:hover{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .qj .host{margin-left:auto;font-size:11px;opacity:.6}
#hp-root .toasts{position:absolute;left:22px;bottom:22px;display:flex;flex-direction:column;gap:8px;z-index:40;max-width:min(460px,calc(100% - 44px))}
#hp-root .toast{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;background-color:var(--panel);background-image:var(--panelimg);border:2px solid var(--line);border-radius:var(--radius);box-shadow:0 6px 20px rgba(0,0,0,.4);font-size:13px;color:var(--fg)}
#hp-root .toast .tbtn{border:1px solid var(--line);padding:4px 10px;font-size:12px;border-radius:var(--radius)}
#hp-root .toast .tbtn:hover{background:var(--btn-hover);color:var(--btn-hover-fg)}
#hp-root .toast .tx{color:var(--muted);font-size:16px;margin-left:auto}
#hp-root .lock{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background-color:var(--bg);background-image:var(--bgimg);padding:16px}
#hp-root .lockbox{width:340px;max-width:100%;display:flex;flex-direction:column;gap:12px;padding:24px;border:var(--bw) solid var(--line);border-radius:var(--radius);background-color:var(--panel);background-image:var(--panelimg);box-shadow:var(--shadow)}
#hp-root .lockbox input[type=password]{width:100%;padding:10px;background:var(--panel);background-image:none;color:var(--fg);border:var(--bw) solid var(--line);border-radius:var(--radius);font-size:15px;outline:0}
#hp-root .lockbox input[type=password]:focus{border-color:var(--accent)}
#hp-root .lockbox .chk{color:var(--muted);font-size:13px}
#hp-root .lockbox .abtn{align-self:stretch;text-align:center}
#hp-root .lockmsg{font-size:14px;line-height:1.5;color:var(--muted)}
#hp-root .lockerr{min-height:1.2em;font-size:13px;color:var(--fg);font-weight:700}
@media (max-width:760px){
#hp-root{height:auto;min-height:0;overflow:visible}
#hp-root.hp-fixed{overflow:auto}
#hp-root .main{display:flex;flex-direction:column;gap:14px;padding:6px 14px 18px}
#hp-root .divider{display:none}
#hp-root .pane{min-height:70vh}
#hp-root .hd{padding:14px}
}
/* Global rules: admin-bar offset and print output */
body.admin-bar #hp-root.hp-fixed{top:32px}
@media (max-width:782px){body.admin-bar #hp-root.hp-fixed{top:46px}}
.hp-print{display:none}
@media print{
body>*:not(.hp-print){display:none!important}
.hp-print{display:block!important;color:#000;background:#fff;font:12pt/1.45 Georgia,serif;padding:0}
.hp-print h1{font-size:18pt;margin:0 0 4pt}
.hp-print h2{font-size:14pt;margin:18pt 0 6pt;border-bottom:1px solid #000}
.hp-print .pmeta{color:#555;font-size:10pt;margin-bottom:10pt}
.hp-print .pentry{margin:0 0 12pt;padding:8pt;border:1px solid #999;page-break-inside:avoid}
.hp-print .pq{font-size:9pt;color:#555;margin-top:5pt}
.hp-print .pa{white-space:pre-wrap}
}
#hp-root .hero,#hp-root .foe,#hp-root .env{overflow:visible;display:block}
#hp-root .hero .ink,#hp-root .foe .ink,#hp-root .env .ink{fill:var(--fg);stroke:var(--fg);stroke-width:1;stroke-linejoin:round}
#hp-root .hero .inkf,#hp-root .foe .inkf,#hp-root .env .inkf{fill:var(--fg)}
#hp-root .hero .ol,#hp-root .foe .ol,#hp-root .env .ol{fill:var(--panel);stroke:var(--fg);stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round}
#hp-root .hero .pap,#hp-root .foe .pap,#hp-root .env .pap{fill:var(--panel);stroke:none}
#hp-root .hero .ln,#hp-root .foe .ln,#hp-root .env .ln{fill:none;stroke:var(--fg);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#hp-root .hero .ln.thick,#hp-root .foe .ln.thick,#hp-root .env .ln.thick,#hp-root .hero .ink2.thick,#hp-root .env .ink2.thick{stroke-width:5}
#hp-root .hero .ink2,#hp-root .foe .ink2,#hp-root .env .ink2{fill:none;stroke:var(--fg);stroke-width:3;stroke-linecap:round}
#hp-root .hero .ht,#hp-root .foe .ht,#hp-root .env .ht{fill:url(#hpdots);stroke:var(--fg);stroke-width:1.4;stroke-linejoin:round}
#hp-root .hero .ac,#hp-root .foe .ac,#hp-root .env .ac{fill:var(--accent);fill-opacity:.55;stroke:var(--fg);stroke-width:2;stroke-linejoin:round}
#hp-root .hero .limbo{stroke:var(--fg);stroke-width:13;stroke-linecap:round}
#hp-root .hero .limbi{stroke:var(--panel);stroke-width:8;stroke-linecap:round}
#hp-root .hero .wpn{transform-box:fill-box;transform-origin:50% 100%}
#hp-root .hero.work .wpn{animation:hpswing .8s ease-in-out infinite alternate}
#hp-root .hero.work{animation:hpbob 1s ease-in-out infinite}
#hp-root .hero.win{animation:hpjump .6s ease-out 3}
#hp-root .hero.hurt{transform:rotate(-8deg) translateY(6px);opacity:.6}
@keyframes hpswing{from{transform:rotate(-25deg)}to{transform:rotate(30deg)}}
@keyframes hpbob{from{transform:translateY(0)}to{transform:translateY(-3px)}}
@keyframes hpjump{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@media (prefers-reduced-motion:reduce){#hp-root .hero.work,#hp-root .hero.work .wpn,#hp-root .hero.win{animation:none}}
#hp-root .env{position:absolute;left:0;right:0;bottom:0;width:100%;height:100%;z-index:0;pointer-events:none;display:block}
#hp-root .env .far{opacity:.62}

#hp-root .q-stage>.hero,#hp-root .q-stage>.q-foe{position:relative;z-index:1}
#hp-root .hero:not(.work):not(.win):not(.hurt){transform-origin:50% 100%;animation:hpbreath 3.4s ease-in-out infinite}
#hp-root .hero:not(.work):not(.win):not(.hurt) .wpn{animation:hpidle 3.6s ease-in-out infinite alternate}
#hp-root .hero .cape{transform-box:fill-box;transform-origin:50% 0;animation:hpsway 2.8s ease-in-out infinite alternate}
#hp-root .hero .pet{transform-box:fill-box;transform-origin:50% 100%;animation:hppet 1.8s ease-in-out infinite}
#hp-root .foe{transform-origin:50% 100%;animation:hpfoe 2.6s ease-in-out infinite}
#hp-root .env .tw{animation:hptw 2.4s ease-in-out infinite}
#hp-root .env .tw:nth-of-type(2n){animation-delay:-1.1s}
#hp-root .env .tw:nth-of-type(3n){animation-delay:-1.8s}
#hp-root .env .drift{animation:hpdrift 9s ease-in-out infinite alternate}
#hp-root .env .ember{animation:hpember 3.2s ease-in infinite}
#hp-root .env .ember:nth-of-type(2n){animation-delay:-1.4s}
#hp-root .env .ember:nth-of-type(3n){animation-delay:-2.2s}
#hp-root .env .pulse{transform-box:fill-box;transform-origin:50% 50%;animation:hppulse 4s ease-in-out infinite}
@keyframes hpbreath{0%,100%{transform:scale(1,1)}50%{transform:scale(1.012,1.022)}}
@keyframes hpidle{from{transform:rotate(-2deg)}to{transform:rotate(3deg)}}
@keyframes hpsway{from{transform:skewX(-2.5deg)}to{transform:skewX(2.5deg)}}
@keyframes hppet{0%,100%{transform:translateY(0)}50%{transform:translateY(-2.5px)}}
@keyframes hpfoe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.03,.96)}}
@keyframes hptw{0%,100%{opacity:.15}50%{opacity:1}}
@keyframes hpdrift{from{transform:translateX(-12px)}to{transform:translateX(12px)}}
@keyframes hpember{0%{transform:translateY(8px);opacity:0}25%{opacity:1}100%{transform:translateY(-26px);opacity:0}}
@keyframes hppulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@media (prefers-reduced-motion:reduce){#hp-root .hero,#hp-root .hero .wpn,#hp-root .hero .cape,#hp-root .hero .pet,#hp-root .foe,#hp-root .env .tw,#hp-root .env .drift,#hp-root .env .ember,#hp-root .env .pulse{animation:none!important}}
