/* Shared pieces added by js/core.js: the Help button and panel, notices, the honeypot field. */
[hidden]{display:none!important}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

.help-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:120;display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 15px 0 12px;border:0;border-radius:999px;
  background:var(--white);color:var(--ink);font:700 14px/1 Manrope,system-ui,sans-serif;box-shadow:0 0 0 1px var(--line2),0 8px 22px -8px rgba(29,34,28,.28);cursor:pointer}
.help-fab .i{width:19px;height:19px}
.help-fab:hover{background:var(--soft,#f3f2ed)}
.help-fab:focus-visible,.help-x:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[data-area="dashboard"] .help-fab{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
/* Phone dashboard: Help lives in the More menu, so the floating button doesn't cover the page. */
@media (max-width:900px){[data-area="dashboard"] .help-fab{display:none}}

.help-panel{position:fixed;right:16px;bottom:calc(68px + env(safe-area-inset-bottom,0px));z-index:130;width:min(360px,calc(100vw - 32px));max-height:calc(100vh - 100px);overflow:auto;
  padding:18px 18px 16px;border-radius:18px;background:var(--white);color:var(--ink);box-shadow:0 0 0 1px var(--line),0 24px 60px -18px rgba(29,34,28,.38)}
@media (max-width:900px){[data-area="dashboard"] .help-panel{bottom:calc(126px + env(safe-area-inset-bottom,0px))}}
.help-h{display:flex;align-items:center;justify-content:space-between;gap:10px}
.help-h h2{margin:0;font-size:18px;letter-spacing:-.02em}
.help-x{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:none;color:var(--mute);cursor:pointer}
.help-x:hover{background:var(--soft,#f3f2ed);color:var(--ink)}
.help-x .i{width:18px;height:18px}
.help-p{margin:6px 0 0;font-size:14px;color:var(--mute)}
.help-mail{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding:10px 10px 10px 12px;border-radius:12px;background:var(--bg)}
.help-mail span{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px}
.help-mail b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.help-mail .i{flex:none;width:18px;height:18px;color:var(--mute)}
.help-form{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.help-form textarea.in{height:auto;min-height:96px;padding:10px 13px;resize:vertical;font:500 15px/1.45 Manrope,system-ui,sans-serif}
.help-ok{display:flex;gap:10px;margin-top:16px;padding:12px;border-radius:12px;background:var(--ok-bg);color:var(--ok)}
.help-ok .i{flex:none;width:20px;height:20px;stroke-width:2.6}
.help-ok b{display:block;color:var(--ink)}
.help-ok span{font-size:13.5px;color:var(--ink2)}

/* A quiet strip for things like "confirm your email" or "test mode". */
.notice{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:var(--warn-bg);color:var(--ink);font-size:14px}
.notice .i{flex:none;width:18px;height:18px;color:var(--warn)}
.notice .link{margin-left:auto;white-space:nowrap}
.notice.ok{background:var(--ok-bg)}.notice.ok .i{color:var(--ok)}

@media (prefers-reduced-motion:reduce){.help-panel,.help-fab{transition:none}}

/* Email link pages (confirm email, open on another device) */
.link-state{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:22px}
.link-state h1{margin:12px 0 0}
.link-state p{margin:6px 0 0;color:var(--mute)}
.link-state .spin{width:28px;height:28px;border:3px solid var(--line2);border-top-color:var(--ink);border-radius:50%;animation:dbxspin .8s linear infinite}
.ls-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:#fff}
.ls-ic.ok{background:var(--ok)}.ls-ic.bad{background:#a6291b}
.ls-ic .i{width:24px;height:24px;stroke-width:2.8}
@keyframes dbxspin{to{transform:rotate(360deg)}}
