/* Server edition additions: sign-in notices, My account page, save status, switch-user banner. */
.srv-note{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;padding:10px 12px;font-size:13.5px;color:var(--ink-2)}
.srv-note.bad{border-color:var(--bad);color:var(--bad)}
.srv-note.ok{border-color:var(--ok);color:var(--ok)}
.acct-page{background:var(--bg);min-height:100vh}
.acct{max-width:760px;margin:0 auto;padding:28px 20px 60px}
.acct-h{display:flex;align-items:center;gap:10px;margin-bottom:28px}
.acct-h .crest{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.acct-h .crest .mono{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--brand);color:#fff;font-family:'Playfair Display',serif;font-size:18px}
.acct-h .crest small{display:block;color:var(--ink-3);font-size:12px}
.acct-h .sp{flex:1}
.acct-h form{margin:0}
.acct-title{font-family:'Playfair Display',serif;font-weight:400;font-size:34px;margin:4px 0 4px}
.acct-card{margin-top:18px}
.acct-card .form{margin-top:12px}
.acct-steps{margin:8px 0 14px;padding-left:20px;color:var(--ink-2);font-size:14px;line-height:1.7}
.acct-qr{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.acct-qr #qr{width:180px;height:180px;background:#fff;border-radius:10px;padding:6px;border:1px solid var(--line)}
.acct-qr #qr svg{width:100%;height:100%}
.acct-key{display:block;font-size:15px;letter-spacing:.06em;margin-top:4px;user-select:all}
.saved.err i{background:var(--bad)!important}
.saved.err{color:var(--bad)}
.imp-bar{position:sticky;top:0;z-index:70;display:flex;gap:12px;align-items:center;justify-content:center;background:var(--brass-bg,#f4ecd9);color:var(--ink);font-size:13px;padding:7px 12px;border-bottom:1px solid var(--line)}
.imp-bar button{font:inherit}
/* Edit and delete buttons on every list row */
th.row-acts,td.row-acts{width:84px;min-width:84px;text-align:right;white-space:nowrap;padding-right:12px!important;position:sticky;right:0;background:var(--surface);box-shadow:-8px 0 8px -8px rgba(0,0,0,.12)}
td.row-acts .ra{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;border:1px solid transparent;background:none;color:var(--ink-3);cursor:pointer;margin-left:2px}
td.row-acts .ra svg{width:16px;height:16px}
td.row-acts .ra:hover,td.row-acts .ra:focus-visible{background:var(--surface-2);border-color:var(--line);color:var(--ink)}
td.row-acts .ra.del:hover{color:var(--bad);border-color:var(--bad);background:var(--bad-bg)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Dialogs always fit the window: header and buttons stay visible, the content scrolls */
.ovl{overflow:hidden}
.modal{max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px)}
.ovl.top .modal{max-height:calc(100dvh - 11vh - 24px)}
.modal .m-h,.modal .m-f{flex-shrink:0}
.modal .m-b{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
/* WhatsApp composer */
.wa-opts{display:grid;gap:8px}
.wa-opt{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:10px 12px;cursor:pointer;font-weight:400}
.wa-opt:has(input:checked){border-color:var(--brand);background:var(--surface-2)}
.wa-opt input{margin-top:3px}
.wa-opt b{display:block;font-weight:500;color:var(--ink)}
.wa-opt small{color:var(--ink-3);font-size:12.5px}
.wa-bubble{background:#DCF8C6;color:#1b1b1b;border-radius:10px 10px 10px 2px;padding:10px 12px;font-size:14px;line-height:1.5;white-space:pre-wrap;max-width:520px;margin-bottom:6px}
:root[data-theme="dark"] .wa-bubble{background:#1f4d3a;color:#f2f2f2}
#wa_preview textarea{width:100%}
.wa-opt input[type=radio]{width:auto!important;flex:0 0 auto;height:auto;padding:0;margin:3px 0 0;accent-color:var(--brand)}
.wa-opt>span{flex:1;text-align:left;min-width:0}
a.icon-btn{display:inline-grid;place-items:center;color:inherit;text-decoration:none}
