/* Sign-in, billing, team, bid email, security, Help, notifications, offline and the public signing page. */
.demo-box{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}
.demo-box summary{cursor:pointer;font-weight:600;color:var(--ink-2)}
.temp-pw{font-size:22px;background:var(--bg);border:1px dashed var(--brand);border-radius:8px;padding:12px;text-align:center;letter-spacing:1px;user-select:all;margin:8px 0}
.copy-row{display:flex;gap:8px;align-items:center;background:var(--bg);border-radius:8px;padding:8px 10px;flex-wrap:wrap}
.copy-row .mono{flex:1;word-break:break-all}
.steps li{margin:6px 0}
.codes{display:grid;grid-template-columns:repeat(2,1fr);gap:6px 18px;background:var(--bg);border:1px dashed var(--brand);border-radius:8px;padding:12px 16px;margin:10px 0;font-size:16px;user-select:all}

/* Help */
.help-btn{position:fixed;right:24px;bottom:24px;z-index:30;display:flex;align-items:center;gap:8px;border:0;border-radius:999px;background:var(--nav);color:#fff;padding:11px 18px 11px 14px;font-weight:700;box-shadow:0 6px 20px rgba(0,0,0,.25);cursor:pointer}
.help-btn:hover{background:var(--nav-2)}
.help-panel{position:fixed;right:20px;bottom:84px;z-index:40;width:420px;max-width:calc(100vw - 24px);height:min(640px,calc(100vh - 110px));background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.22);display:flex;flex-direction:column;overflow:hidden}
.help-hd{display:flex;justify-content:space-between;align-items:flex-start;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--bg)}
.help-search{padding:10px 14px 4px}.help-search input{width:100%;border:1px solid #cfd6d3;border-radius:10px;padding:9px 12px;font:inherit}
.help-scroll{flex:1;overflow:auto;padding:8px 14px 14px}
.help-ft{padding:8px 14px 12px;border-top:1px solid var(--line-2)}
.help-item{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 12px;margin-top:6px;cursor:pointer;color:var(--ink);text-decoration:none}
.help-item:hover{border-color:var(--brand);background:var(--brand-50)}
.help-title{font-size:18px;margin:6px 0 8px}
.help-body{font-size:14px;line-height:1.55}.help-body p{margin:0 0 10px}.help-body ul,.help-body ol{margin:0 0 10px;padding-left:22px}.help-body li{margin:3px 0}
.help-body h3{font-size:14px;margin:14px 0 6px}.help-body code{background:#eef2f0;border-radius:4px;padding:1px 5px;font-size:12.5px;word-break:break-all}
.help-related{margin-top:14px;border-top:1px solid var(--line-2);padding-top:10px}
.help-page{display:grid;grid-template-columns:300px 1fr;gap:16px;align-items:start}
.help-toc{position:sticky;top:12px;max-height:calc(100vh - 120px);overflow:auto}.help-toc input{border:1px solid #cfd6d3;border-radius:8px;padding:8px 10px;font:inherit}
.help-toc-sec{padding:4px 14px 10px}.help-toc-sec a{display:block;padding:4px 0;font-size:13px;color:var(--ink)}.help-toc-sec a.on{color:var(--brand);font-weight:700}
.help-main{min-height:300px}.help-main .help-body{max-width:760px;font-size:15px}
.help-print h2.help-section{font-size:20px;border-bottom:2px solid var(--brand);margin-top:28px}.help-article{break-inside:avoid;margin-bottom:16px}

/* Audit log */
.table.audit td{overflow-wrap:anywhere}

/* Notifications */
.bell{position:relative;margin-left:auto;margin-right:8px}
.bell-n{position:absolute;top:-2px;right:-4px;background:var(--red);color:#fff;border-radius:999px;font-size:10px;font-weight:700;min-width:16px;height:16px;line-height:16px;text-align:center;padding:0 4px}
.bell-menu{position:fixed;z-index:50;width:360px;max-width:calc(100vw - 16px);max-height:70vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.2)}
.bell-hd{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line)}
.bell-item{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-bottom:1px solid var(--line-2);color:var(--ink);text-decoration:none}
.bell-item.unread{background:var(--brand-50)}.bell-item:hover{background:var(--bg)}

/* Offline */
.offline-bar{position:fixed;top:0;left:0;right:0;z-index:60;background:#2c3a35;color:#fff;font-size:13px;padding:7px 14px;text-align:center}
.offline-bar a,.offline-bar .link{color:#9fd3b6}
body.has-offline-bar .app{padding-top:32px}
.off-line{display:grid;grid-template-columns:110px 1fr 64px 70px 90px 32px;gap:6px;margin-bottom:6px}
.off-line input,.off-line select{border:1px solid #cfd6d3;border-radius:8px;padding:8px;font:inherit;min-width:0}

/* Public signing page */
body.sign-page{background:var(--bg)}
.sign-wrap{max-width:680px;margin:0 auto;padding:18px 14px 40px}
.sign-brand{display:flex;align-items:center;gap:8px;font-weight:800;color:var(--brand);margin-bottom:12px}
.sign-doc .table{margin-top:10px}

@media (max-width:820px){
  .help-btn{display:none}
  .help-panel{bottom:96px}
  .help-btn span{display:none}
  .help-panel{left:0;right:0;bottom:0;top:auto;width:100%;max-width:none;height:85vh;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .help-page{grid-template-columns:1fr}.help-toc{position:static;max-height:none}
  .off-line{grid-template-columns:1fr 1fr;}.off-line [data-k=description]{grid-column:1/-1}
  .codes{grid-template-columns:1fr}
  .bell-menu{left:8px!important;right:8px!important;width:auto}
}
@media print{.help-btn,.help-panel,.bell,.bell-menu,.offline-bar{display:none}}
/* Support chat (app and public page) and the support console */
[hidden]{display:none!important}
.chat{display:flex;flex-direction:column;gap:10px}
.chat-log{display:flex;flex-direction:column;gap:10px;max-height:52vh;min-height:220px;overflow-y:auto;padding:4px 2px}
.chat-log.tall{max-height:62vh}
.cmsg{max-width:86%;padding:10px 13px;border-radius:14px;background:var(--bg);border:1px solid var(--line-2);font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.cmsg .by{font-size:11.5px;font-weight:700;color:var(--muted);margin-bottom:3px}
.cmsg .by span{font-weight:500}
.cmsg.me{align-self:flex-end;background:var(--green-50);border-color:#cfe6d8}
.cmsg.them{align-self:flex-start;background:#fff}
.cmsg.staff{border-color:var(--brand);box-shadow:inset 3px 0 0 var(--brand)}
.cmsg.note{align-self:stretch;max-width:none;background:#fbf7e9;border-style:dashed;font-size:13px;color:var(--ink-2)}
.cmsg.typing{display:flex;gap:4px;padding:14px}
.cmsg.typing span{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:tt-blink 1.2s infinite ease-in-out}
.cmsg.typing span:nth-child(2){animation-delay:.2s}.cmsg.typing span:nth-child(3){animation-delay:.4s}
@keyframes tt-blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.cmsg.typing span{animation:none;opacity:.6}}
.chat-status{align-self:center;text-align:center;color:var(--ink-2);background:var(--amber-50);border-radius:10px;padding:8px 12px;max-width:92%}
.chat-form{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line-2);padding-top:10px}
.chat-form textarea{width:100%;resize:vertical;min-height:52px;font:inherit;padding:10px 12px;border:1px solid var(--line);border-radius:12px}
.chat-actions{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}
.chat-who{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (max-width:560px){.chat-who{grid-template-columns:1fr}.cmsg{max-width:94%}}
.support-grid{align-items:start}
@media (max-width:1100px){.support-grid{grid-template-columns:minmax(0,1fr)!important}}
.chat-form textarea,.chat-who input{min-width:0;max-width:100%}
.list li.approval{align-items:flex-start;gap:12px}
ul.tight{margin:0 0 10px;padding-left:18px}ul.tight li{margin:4px 0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
body.support-page{background:var(--bg)}
.sp-top{display:flex;align-items:center;gap:12px;padding:14px 20px;background:#fff;border-bottom:1px solid var(--line)}
.sp-brand{display:flex;align-items:center;gap:8px;font-weight:800;font-size:18px;color:var(--ink);text-decoration:none}
.sp-top nav{margin-left:auto;display:flex;gap:14px;align-items:center;white-space:nowrap}
@media (max-width:420px){.sp-top nav a:first-child{display:none}}
.sp-wrap{max-width:1120px;margin:0 auto;padding:24px 16px 40px}
.sp-foot{margin-top:16px}
