/* Account drawer: left edge, 70% viewport. Identity first, editable details next,
   security and logout below. Inherits the table's warm paper and copper palette. */
.wood-live #auth{position:fixed;inset:var(--auth-visible-top,0px) auto auto 0;margin:0;width:70vw;max-width:70vw;height:var(--auth-visible-height,100dvh);max-height:var(--auth-visible-height,100dvh);padding:0;border:0;border-radius:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:84px 24px;box-sizing:border-box;background:#f8efdf;color:#493522;box-shadow:10px 0 36px #24190e38}
.wood-live #auth[open]{animation:account-slide-in .28s cubic-bezier(.16,1,.3,1)}
.wood-live #auth .dialog-head{position:sticky;top:0;z-index:3;min-height:76px;padding:16px clamp(16px,3vw,32px);background:#f8efdf;border-bottom:1px solid #decdb5;box-sizing:border-box;gap:12px}
.wood-live #auth .dialog-head h2{font-family:inherit;font-size:22px;line-height:1.3;font-weight:600}
.wood-live #auth #close-auth{min-height:44px;min-width:44px;padding:8px 0;font-size:14px;color:#62472f;flex:none}
.wood-live #auth .account-panel-body{max-width:560px;margin-inline:auto;padding:0 clamp(16px,3vw,32px) 32px;padding-bottom:max(32px,env(safe-area-inset-bottom))}
.wood-live #auth .profile-identity{display:flex;align-items:center;gap:18px;padding:28px 0;border-bottom:1px solid #decdb5}
.wood-live #auth .profile-photo-control{position:relative;display:grid;justify-items:center;gap:9px;flex:none;cursor:pointer;margin:0;font-size:12px;color:#715035}
.wood-live #auth .profile-photo{position:relative;width:80px;height:80px;display:grid;place-items:center;background:#e6d6bd;border-radius:50%;overflow:hidden}
.wood-live #auth .profile-photo-fallback{font-size:28px;color:#745237}
.wood-live #auth #profile-avatar-preview{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;margin:0;border-radius:0}
.wood-live #auth #profile-avatar-preview[hidden]{display:none}
.wood-live #auth #profile-avatar-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}
.wood-live #auth .profile-photo-control:focus-within{outline:2px solid #906a33;outline-offset:5px;border-radius:6px}
.wood-live #auth .profile-identity-text{min-width:0}
.wood-live #auth #profile-name{margin:0 0 8px;font-size:15px;line-height:1.6;font-weight:600;overflow-wrap:anywhere}
.wood-live #auth .profile-id-line{margin:0;color:#72583f;font-size:12px;line-height:1.7}
.wood-live #auth .profile-id-line strong{display:block;font-size:14px;color:#493522;letter-spacing:.04em;font-weight:500}
.wood-live #auth .profile-edit-fields{padding-top:26px}
.wood-live #auth h3{margin:0 0 20px;font-size:16px;font-weight:600}
.wood-live #auth .profile-edit-fields label{display:block;margin:0 0 8px;font-size:13px;color:#62472f}
.wood-live #auth input:not([type=file]){background:#fffaf2;border:1px solid #c7b08d;border-radius:8px;box-shadow:none;padding:12px;font-size:16px;min-height:46px;color:#493522}
.wood-live #auth .profile-hint{color:#72583f;font-size:12px;line-height:1.7;margin:12px 0 20px}
.wood-live #auth .primary{width:100%;min-width:0;margin:0;min-height:48px;padding:12px 10px;background:#795334;color:#fffaf1;border:0;border-radius:8px;box-shadow:none;font-size:15px}
.wood-live #auth .primary:hover{background:#654328}
.wood-live #auth .primary:disabled{opacity:.55;cursor:wait}
.wood-live #auth #profile-save-message{min-height:20px;margin:8px 0 16px;font-size:13px;color:#62472f;overflow-wrap:anywhere}
.wood-live #auth .profile-security{border-top:1px solid #decdb5;border-bottom:1px solid #decdb5;margin:0 0 24px}
.wood-live #auth .profile-security summary{padding:18px 0;font-size:14px;color:#493522}
.wood-live #auth #password-form{padding:0 0 8px}
.wood-live #auth #password-form .primary{margin-top:20px}
.wood-live #auth #logout{width:100%;min-height:46px;border:1px solid #c7b08d;border-radius:8px;background:transparent;color:#795334;font-size:14px;box-shadow:none}
.wood-live #auth #logout:hover{background:#efe1cb}
.wood-live #auth #auth-form{padding-top:6px}
.wood-live #auth .actions{flex-wrap:wrap}
.wood-live #auth .actions>button{flex:1;min-width:0}
@keyframes account-slide-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(max-width:400px){.wood-live #auth .profile-identity{gap:12px}.wood-live #auth .profile-photo{width:64px;height:64px}.wood-live #auth #profile-name{font-size:14px}.wood-live #auth .dialog-head h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.wood-live #auth[open]{animation:none}}
.wood-live #auth .primary{text-align:center}
/* Keyboard-safe editable drawers; keep native pinch-to-zoom available. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.wood-live #wallet-dialog,.wood-live #agent-dialog{top:var(--auth-visible-top,0px);bottom:auto;height:var(--auth-visible-height,100dvh);max-height:var(--auth-visible-height,100dvh);scroll-padding-block:80px 24px}
.wood-live #auth input:not([type=file]),.wood-live #wallet-dialog input,.wood-live #wallet-dialog select,.wood-live #agent-dialog input{font-size:18px;line-height:1.4;transform:none}
/* Pearl account cards, matching the supplied account reference. */
.wood-live #auth{background:radial-gradient(ellipse at 110% -5%,#e8c98e52 0,transparent 38%),radial-gradient(ellipse at 15% 110%,#e7c99055 0,transparent 42%),#faf6ed;color:#382311}
.wood-live #auth .dialog-head{min-height:104px;padding-top:24px;padding-bottom:24px;background:#faf6edf5;border:0}
.wood-live #auth .dialog-head h2{position:relative;font:700 clamp(24px,3.3vw,36px)/1.3 GameSerif,serif;color:#321b0d;padding-bottom:14px}
.wood-live #auth .dialog-head h2:after{content:'';position:absolute;bottom:0;left:0;width:32px;height:3px;border-radius:3px;background:linear-gradient(90deg,#cb8c2d,#f3dbaa)}
.wood-live #auth .account-panel-body{max-width:640px;padding-inline:clamp(12px,2.8vw,30px);padding-bottom:max(40px,env(safe-area-inset-bottom))}
.wood-live #auth .profile-identity,.wood-live #auth .profile-edit-fields,.wood-live #auth .profile-security{background:linear-gradient(130deg,#ffffffdf,#fffdf899);border:1px solid #fff;border-radius:14px;box-shadow:0 7px 18px #a6803421}
.wood-live #auth .profile-identity{gap:18px;padding:20px 16px;margin-bottom:16px;background:linear-gradient(145deg,#fffdfc,#fbf5e8)}
.wood-live #auth .profile-photo{width:80px;height:80px;border:2px solid #e3c38c;box-shadow:0 0 0 2px #fff;background:#e9ddc6}
.wood-live #auth .profile-photo-control{gap:6px}
.wood-live #auth .profile-photo-caption{border:1px solid #d8b98b;border-radius:22px;padding:5px 12px;background:linear-gradient(#fffdf7,#f2e3c9);font-size:12px}
.wood-live #auth .profile-identity-text{border-left:1px solid #ebddc8;padding-left:18px;flex:1}
.wood-live #auth #profile-name{font-size:15px;line-height:1.55;margin-bottom:10px;color:#362212}
.wood-live #auth .profile-id-line{color:#887158;font-size:12px}
.wood-live #auth #profile-copy-id{display:flex;align-items:center;gap:7px;max-width:100%;min-height:36px;border:0;padding:0;background:transparent;color:#392719;text-align:left;cursor:pointer}
.wood-live #auth #profile-public-id{font-size:17px;font-weight:600;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text}
.wood-live #auth #profile-copy-id svg{width:15px;height:15px;flex:none;color:#a67c46}
.wood-live #auth .profile-edit-fields{padding:20px 16px;margin-bottom:16px}
.wood-live #auth h3{font:700 22px/1.4 GameSerif,serif;color:#321b0d;display:flex;align-items:center;gap:12px;margin-bottom:22px}
.wood-live #auth h3:before{content:'';width:4px;height:18px;border-radius:3px;background:linear-gradient(#d39737,#f5d18b)}
.wood-live #auth input:not([type=file]){background:#fffcf666;border-color:#d2b48b;border-radius:8px;color:#382718}
.wood-live #auth .profile-hint{font-size:11px;line-height:1.7;color:#867259;margin:10px 0 16px}
.wood-live #auth .primary{display:flex;justify-content:center;min-height:48px;background:linear-gradient(135deg,#b09470,#61412b);border:1px solid #c79856;box-shadow:0 5px 10px #8b672224;border-radius:11px;font-size:16px;font-weight:500;color:#fffaf1}
.wood-live #auth #profile-save-message{min-height:0;margin:10px 0 0}
.wood-live #auth #profile-save-message:empty{display:none}
.wood-live #auth .profile-security{margin-bottom:16px;padding:0 16px}
.wood-live #auth .profile-security summary{display:flex;align-items:center;gap:12px;min-height:60px;padding:14px 0;list-style:none;font-size:16px;color:#382718}
.wood-live #auth .profile-security summary::-webkit-details-marker{display:none}
.wood-live #auth .profile-security svg,.wood-live #auth #logout svg{width:23px;height:23px;flex:none;color:#99764f}
.wood-live #auth .profile-chevron{margin-left:auto;font-size:28px;line-height:1;color:#a3825d}
.wood-live #auth .profile-security[open] .profile-chevron{transform:rotate(90deg)}
.wood-live #auth #logout{display:flex;justify-content:center;align-items:center;gap:12px;min-height:52px;border:1px solid #cb984e;border-radius:11px;background:#fffaf344;color:#875021;font-size:16px;box-shadow:0 5px 12px #a680341a}
.wood-live #auth #profile-copy-message{position:fixed;z-index:6;bottom:24px;left:12px;max-width:calc(70vw - 24px);margin:0;padding:10px 14px;background:#4b3428f2;color:#fff8e9;border-radius:8px;box-shadow:0 4px 16px #29190d30;font-size:13px;pointer-events:none}
@media(max-width:500px){.wood-live #auth .dialog-head{min-height:86px;padding:18px 14px}.wood-live #auth .profile-identity{padding:16px 10px;gap:10px}.wood-live #auth .profile-photo{width:62px;height:62px}.wood-live #auth .profile-photo-caption{font-size:10px;padding:5px 8px}.wood-live #auth .profile-identity-text{padding-left:10px}.wood-live #auth #profile-name{font-size:13px}.wood-live #auth #profile-public-id{font-size:16px}.wood-live #auth .profile-edit-fields{padding:18px 12px}.wood-live #auth h3{font-size:21px}.wood-live #auth .profile-security{padding-inline:12px}}
