#authPanel[hidden]{display:none!important}
#authPanel{position:fixed;inset:0;z-index:12000;background:rgba(25,32,38,.45);display:flex;align-items:center;justify-content:center;padding:16px;font-size:18px;color:#20312c;line-height:1.65}
.auth-card{display:flex;flex-direction:column;background:#fffef9;border:1px solid #ddd8c9;box-shadow:0 12px 60px #15252b40;border-radius:24px;width:100%;max-width:650px;max-height:96dvh;overflow:hidden}
.auth-head{display:flex;align-items:center;gap:12px;padding:16px 22px;background:#fcf3d9;border-bottom:1px solid #eee3c3;font-size:16px;font-weight:700;flex-shrink:0}
.auth-mark{font-size:28px;color:#926317}.auth-x{margin-left:auto;border:0;background:transparent;width:46px;height:46px;font-size:30px;cursor:pointer}
.auth-content{overflow:auto;overscroll-behavior:contain;padding:22px 24px;min-height:0}.auth-content h1{font-size:28px;line-height:1.4;margin:0 0 16px}.auth-content h2{font-size:22px;margin:0 0 10px}.auth-content p{margin:12px 0}.auth-content label{display:block;font-weight:700;margin:16px 0 8px}
.auth-content input:not([type=checkbox]),.auth-content textarea{box-sizing:border-box;width:100%;font:inherit;border:2px solid #b5c4b9;border-radius:12px;padding:12px;background:white;color:#20312c;min-height:50px;overflow-wrap:anywhere}
.auth-content textarea{resize:vertical}.auth-foot{padding:16px 24px;display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #e3e7df;background:#fffdf5;flex-shrink:0}.auth-foot .btn{flex:1;min-width:150px;min-height:52px}
#authPanel .btn{font-size:17px;min-height:50px;white-space:normal;border-radius:12px;line-height:1.4}#authPanel .btn.pri{background:#315e4b;color:white;border:2px solid #315e4b}#authPanel .btn.sec{background:white;color:#31503e;border:2px solid #b8c9bd}
.auth-stack{display:grid;gap:10px;margin:14px 0}.auth-inline{display:flex;gap:8px;flex-wrap:wrap}.auth-identity{display:flex;flex-direction:column;gap:6px;background:#edf5ee;border:1px solid #c2d9c7;border-radius:16px;padding:18px}.auth-identity b{font-size:23px}.auth-identity span{font-size:16px}.auth-identity.prominent{text-align:center;padding:26px}
.auth-note{background:#f2f4f1;border-radius:12px;padding:13px;font-size:16px;color:#41534a}.auth-warning,.auth-error{padding:16px;border-radius:12px;color:#823221;background:#fff0e6;border:1px solid #e8b99d}.auth-error{margin-bottom:16px}.auth-good{color:#245d3b;font-weight:700}
.auth-help{margin-top:18px;border:1px solid #cfd8d1;padding:14px;border-radius:12px}.auth-help summary{font-weight:700;cursor:pointer;min-height:32px}.auth-install{border:2px solid #d7b252;background:#fff7df;padding:18px;border-radius:16px;margin:16px 0}.auth-install ol{padding-left:24px}.auth-install li{margin:10px 0}.auth-pair{font:700 42px/1.5 monospace;letter-spacing:8px;text-align:center;padding:20px;background:#edf4fa;border-radius:16px;margin:16px 0;color:#224669}.auth-codes{background:#f4f4ef;border-radius:12px;padding:12px;display:grid;gap:14px;margin:16px 0}.auth-codes code{font-size:14px;overflow-wrap:anywhere;user-select:all}
.auth-check{display:flex!important;align-items:flex-start;gap:12px;font-weight:500!important}.auth-check input{width:24px;height:24px;flex:0 0 24px;margin-top:3px;accent-color:#315e4b}.auth-section{padding-top:24px;margin-top:18px;border-top:2px solid #e4e8e0}.auth-list{padding:14px 0;border-bottom:1px solid #dce4db;display:flex;flex-direction:column;gap:9px}.auth-list small{display:block;font-size:15px;color:#485d52}.auth-link{font-size:14px!important}.auth-content button:focus-visible,.auth-content input:focus-visible,.auth-foot button:focus-visible{outline:3px solid #e4a539;outline-offset:3px}
#previewBanner{position:fixed;z-index:11000;top:0;left:0;right:0;background:#fff2b7;border-bottom:2px solid #c58d20;padding:10px 16px;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;color:#442f0d;font-size:15px;box-shadow:0 2px 10px #0002}#previewBanner span{font-size:13px}#previewBanner .btn{font-size:14px;min-height:38px}.hs-preview .shell{padding-top:96px}
.hs-preview #fab,.hs-preview .inline-composer,.hs-preview .note-edit,.hs-preview [data-a=manage],.hs-preview [data-a=editRecordDate],.hs-preview [data-a=reply],.hs-preview [data-a=inlineReply],.hs-preview [data-a=deleteComment],.hs-preview [data-a=familyEdit],.hs-preview [data-a=make]{display:none!important}
@media(max-width:520px){#authPanel{padding:0}.auth-card{max-width:none;max-height:100dvh;height:100dvh;border:0;border-radius:0}.auth-content{padding:20px}.auth-content h1{font-size:27px}.auth-head{padding:12px 20px;padding-top:max(12px,env(safe-area-inset-top))}.auth-foot{padding:14px 20px;padding-bottom:max(14px,env(safe-area-inset-bottom))}.auth-pair{font-size:38px;letter-spacing:6px}}
[data-theme=dark] #authPanel{color:#e7eee9}[data-theme=dark] .auth-card,[data-theme=dark] .auth-foot{background:#1b2923;border-color:#486251}[data-theme=dark] .auth-head{background:#394330;border-color:#516143}[data-theme=dark] .auth-x{color:#edf1e8}[data-theme=dark] .auth-note,[data-theme=dark] .auth-identity,[data-theme=dark] .auth-codes{background:#2b4133;color:#e0ede4;border-color:#5b7964}[data-theme=dark] .auth-install{background:#453d21;color:#fff2c8}[data-theme=dark] .auth-list small{color:#b9cdc1}[data-theme=dark] #authPanel .btn.sec{background:#2c4034;color:#e6f3e9;border-color:#6a8a72}
@media(max-width:520px){.auth-foot .btn{flex:1 1 100%;min-height:50px}.auth-foot{gap:8px}#authPanel .btn{word-break:keep-all}}
.hs-preview .inline-editor,.hs-preview .compose,.hs-preview [data-a=delComment]{display:none!important}
