/* ServerMaid help assistant (support.js). Floating launcher + panel on every page, inline block on /help.html. */
.sm-help-launch { position: fixed; right: 20px; bottom: 20px; z-index: 30; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--cyan-deep); color: #fff; font: inherit; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(11, 37, 64, 0.25); cursor: pointer; transition: bottom .25s ease; }
.sm-help-launch:hover { background: var(--navy); }
.sm-help-lift .sm-help-launch { bottom: 76px; }
.sm-help-lift .sm-help-panel { bottom: 132px; }

.sm-help { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.sm-help-panel { position: fixed; right: 20px; bottom: 76px; z-index: 30; width: 400px; max-width: calc(100vw - 32px); max-height: min(720px, calc(100vh - 100px)); display: none; }
.sm-help-open .sm-help-panel { display: flex; }
.sm-help-inline { max-width: 720px; margin: 0 auto; }

.sm-help-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--navy-deep); color: #fff; }
.sm-help-title { font-weight: 700; font-size: 16px; }
.sm-help-close { border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }

.sm-help-body { padding: 16px 18px; overflow: auto; flex: 1 1 auto; }
.sm-help-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.sm-help-crumb { font-size: 12px; color: var(--muted); background: var(--ground); border-radius: 999px; padding: 3px 9px; }
.sm-help-q { font-weight: 700; font-size: 17px; margin: 0 0 6px; color: var(--navy-deep); }
.sm-help-hint { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.sm-help-option { display: block; width: 100%; text-align: left; margin: 0 0 8px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.sm-help-option:hover { border-color: var(--cyan-deep); background: var(--ground); }

.sm-help-quick { font-size: 16px; font-weight: 600; color: var(--navy-deep); margin: 0 0 10px; line-height: 1.45; }
.sm-help-explain { border: 0; padding: 0; margin: 0 0 12px; }
.sm-help-explain summary { font-size: 14px; color: var(--cyan-deep); }
.sm-help-explain summary::after { content: none; }
.sm-help-explain p { font-size: 14px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.sm-help-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sm-help-link { font-size: 14px; font-weight: 600; color: var(--cyan-deep); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.sm-help-link:hover { border-color: var(--cyan-deep); }
.sm-help-note { font-size: 14px; color: var(--muted); margin: 0; }
.sm-help-nav { margin-top: 10px; }
.sm-help-back { border: 0; background: transparent; color: var(--cyan-deep); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }

.sm-help-send { border-top: 1px solid var(--line); padding: 12px 18px 16px; background: var(--ground); flex: 0 0 auto; }
.sm-help-send-btn { width: 100%; }
.sm-help-hours { font-size: 12px; color: var(--muted); margin: 8px 0 0; text-align: center; }
.sm-help-form { display: none; margin-top: 12px; }
.sm-help-send-open .sm-help-form { display: block; }
.sm-help-send-open .sm-help-send-btn { display: none; }
.sm-help-input { display: block; width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.sm-help-text { resize: vertical; min-height: 110px; }
.sm-help-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sm-help-status { font-size: 14px; margin: 0 0 8px; min-height: 1em; color: var(--muted); }
.sm-help-status-ok { color: var(--ok); font-weight: 600; }
.sm-help-status-bad { color: var(--warn); font-weight: 600; }

@media (max-width: 640px) {
  .sm-help-panel { right: 8px; left: 8px; bottom: 70px; width: auto; max-width: none; max-height: calc(100vh - 90px); }
  .sm-help-launch { right: 12px; bottom: 12px; }
}
