/* Account, profile and feed polish for Sourcewav */
.modal.account-modal:has(.auth-shell){width:min(900px,100%);max-height:min(760px,94vh);padding:0;border:1px solid #344a64;border-top:3px solid #5cd6c6;border-radius:22px;background:#fff;box-shadow:0 28px 90px #07162972;overflow:auto}
.modal.account-modal:has(.profile-page),.modal.account-modal:has(.profile-editor){width:min(610px,100%);max-height:92vh;padding:0;border:1px solid #d6e1eb;border-top:3px solid #5cd6c6;border-radius:21px;background:#f8fafc;box-shadow:0 28px 90px #07162960;overflow:auto}
.modal.account-modal:has(.auth-shell)>.modal-close,.modal.account-modal:has(.profile-page)>.modal-close,.modal.account-modal:has(.profile-editor)>.modal-close{z-index:3;top:13px;right:14px;display:grid;width:35px;height:35px;place-items:center;border:1px solid #cfdae5;border-radius:50%;background:#ffffffed;color:#30445d;font-size:23px;line-height:1;box-shadow:0 2px 10px #0d223018}
.auth-shell{display:grid;min-height:610px;grid-template-columns:.88fr 1.12fr;background:#fff;color:#172a40}
.auth-art{position:relative;display:flex;min-height:610px;flex-direction:column;justify-content:space-between;overflow:hidden;padding:33px 34px;background:radial-gradient(ellipse at 12% 91%,#244e69 0,transparent 45%),linear-gradient(150deg,#15283f,#102136 62%,#0e1c2d);color:#edf5fa}
.auth-art:before{position:absolute;inset:0;content:"";opacity:.2;background-image:linear-gradient(#93b7c51a 1px,transparent 1px),linear-gradient(90deg,#93b7c51a 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(155deg,#000,transparent 80%);pointer-events:none}
.auth-brand{position:relative;z-index:1;display:flex;align-items:center;gap:10px;color:#f3f8fb;text-decoration:none;font-size:16px;font-weight:700;letter-spacing:-.4px}.auth-brand>span{display:grid;width:32px;height:32px;place-items:center;transform:rotate(-4deg);background:#5cd6c6;color:#10243a;font:700 13px 'Oswald',sans-serif}
.auth-art-center{position:relative;z-index:1;max-width:340px;margin:48px 0 62px}.auth-disc{position:relative;display:grid;width:93px;height:93px;place-items:center;margin:0 0 27px;border:1px solid #78dbd461;border-radius:50%;background:repeating-radial-gradient(circle at center,#172c43 0 8px,#264356 9px 10px);box-shadow:0 0 0 12px #5cd6c60c,0 0 48px #5cd6c62b}.auth-disc:before,.auth-disc:after{position:absolute;width:9px;height:9px;border:1px solid #8ce9db;border-radius:50%;content:""}.auth-disc:after{width:3px;height:3px;background:#8ce9db}.auth-disc i{position:absolute;width:13px;height:13px;border-radius:50%;background:#5cd6c6;filter:blur(8px)}
.auth-art-note,.account-eyebrow{color:#7cddd1;font-size:10px;font-weight:700;letter-spacing:.6px}.auth-art-center h2{margin:8px 0 11px;color:#f4f8fb;font-size:clamp(28px,3.5vw,40px);font-weight:600;line-height:1.2;letter-spacing:-1.1px}.auth-art-center p{max-width:300px;margin:0;color:#b4c5d3;font-size:12px;line-height:1.9}.auth-wave,.profile-soundwave{position:absolute;right:-4%;bottom:83px;left:-4%;display:flex;height:64px;align-items:center;justify-content:space-around;gap:3px;opacity:.6;mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent)}.auth-wave i,.profile-soundwave i{width:3px;height:var(--wave);border-radius:4px;background:#5cd6c6;opacity:.8}.auth-art-foot{position:relative;z-index:1;color:#8fa6b9;font-size:10px;letter-spacing:.2px}
.auth-panel{width:100%;max-width:520px;margin:auto;padding:49px clamp(29px,5.3vw,68px) 35px}.auth-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:25px}.account-status{display:inline-flex;align-items:center;gap:7px;color:#4b657d;font-size:9px;font-weight:700;letter-spacing:.45px}.account-status i{width:7px;height:7px;border-radius:50%;background:#41ae9e;box-shadow:0 0 0 3px #41ae9e1d}.auth-step{color:#728399;font-size:10px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:0 0 27px;padding:4px;border:1px solid #e0e8ef;border-radius:10px;background:#f1f5f8}.auth-tabs button{min-height:37px;border:0;border-radius:7px;background:transparent;color:#61758b;font:600 11px var(--font);cursor:pointer}.auth-tabs button.active{background:#fff;color:#194d7e;box-shadow:0 2px 8px #18355312}.auth-panel h1{margin:0 0 7px;color:#142940;font-size:27px;letter-spacing:-.65px}.auth-intro{margin:0 0 23px;color:#667b90;font-size:11px;line-height:1.8}
.account-field{display:block;min-width:0;margin:0 0 14px;color:#334b63;font-size:10px;font-weight:600}.account-field>span:first-child{display:block;margin:0 0 6px}.account-field input,.account-field select,.account-field textarea{display:block;width:100%;min-height:43px;padding:10px 12px;border:1px solid #d5e0ea;border-radius:9px;outline:0;background:#fbfcfe;color:#1d344d;font:400 12px var(--font);transition:border-color .16s,box-shadow .16s,background .16s}.account-field input::placeholder,.account-field textarea::placeholder{color:#93a1af}.account-field input:focus,.account-field select:focus,.account-field textarea:focus{border-color:#3885a6;background:#fff;box-shadow:0 0 0 3px #45a99c20}.account-field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.account-field-row .account-field{margin-bottom:13px}.password-control,.handle-control{display:flex;align-items:center;overflow:hidden;border:1px solid #d5e0ea;border-radius:9px;background:#fbfcfe;transition:border-color .16s,box-shadow .16s,background .16s}.password-control:focus-within,.handle-control:focus-within{border-color:#3885a6;background:#fff;box-shadow:0 0 0 3px #45a99c20}.password-control input,.handle-control input{min-width:0;border:0!important;box-shadow:none!important;background:transparent!important}.password-control button{align-self:stretch;padding:0 12px;border:0;background:transparent;color:#416984;font:600 10px var(--font);cursor:pointer}.handle-control>span{padding-left:12px;color:#788da1;font-size:12px}.account-consent{display:flex;align-items:flex-start;gap:9px;margin:8px 0 0;color:#60758a;font-size:10px;line-height:1.7}.account-consent input{width:15px;height:15px;flex:none;margin:2px 0 0;accent-color:#277c85}.account-consent a{color:#265d8e;text-decoration:underline;text-underline-offset:2px}.auth-forgot{display:block;margin:-3px 0 11px auto;padding:0;border:0;background:none;color:#356c93;font:600 10px var(--font);cursor:pointer}.auth-submit{display:flex;width:100%;min-height:46px;align-items:center;justify-content:center;gap:10px;margin:16px 0 0;border:0;border-radius:9px;background:#194f7b;color:#fff;font:600 12px var(--font);box-shadow:0 5px 13px #194f7b29;cursor:pointer;transition:background .16s,transform .16s,box-shadow .16s}.auth-submit:hover{transform:translateY(-1px);background:#123f68;box-shadow:0 8px 16px #194f7b38}.auth-submit span{color:#72ded0}.auth-error{margin:12px 0 0;padding:9px 11px;border:1px solid #f2c5c4;border-radius:8px;background:#fff3f2;color:#9b3d43;font-size:10px}.auth-error[hidden]{display:none}.auth-local-note,.profile-account-note,.editor-save-note{display:flex;align-items:flex-start;gap:8px;margin-top:16px;padding:10px 11px;border:1px solid #dfe8ed;border-radius:9px;background:#f5f8f9;color:#61788c}.auth-local-note>span,.profile-account-note>span,.editor-save-note>span{flex:none;color:#43877f;font-size:12px}.auth-local-note p,.profile-account-note p{margin:0;color:#61788c;font-size:9px;line-height:1.65}.auth-bottom{margin:19px 0 0;color:#718297;text-align:center;font-size:10px}.auth-bottom button,.profile-auth-links button{padding:0;border:0;background:none;color:#176587;font:700 10px var(--font);cursor:pointer}
.profile-page{padding:0 27px 24px;color:#1c3047}.profile-cover{position:relative;height:133px;margin:0 -27px;background:radial-gradient(ellipse at 82% 18%,#416b86 0,transparent 35%),linear-gradient(120deg,#18314d,#17263d 62%,#234b59);overflow:hidden}.profile-cover:after{position:absolute;inset:0;content:"";background:linear-gradient(90deg,transparent,#15344b5c);pointer-events:none}.profile-cover-tag{position:absolute;z-index:1;left:27px;bottom:15px;color:#d4e5ec;font:600 9px 'Oswald',sans-serif;letter-spacing:1px}.profile-soundwave{right:1%;bottom:20px;left:42%;height:75px;opacity:.55}.profile-soundwave i{width:3px}.profile-identity{display:flex;align-items:center;gap:14px;margin-top:-31px}.profile-avatar{z-index:1;display:grid;width:76px;height:76px;flex:none;place-items:center;border:4px solid #f8fafc;border-radius:22px;background:linear-gradient(145deg,#71dbc9,#d9f2e9);color:#143d56;font-size:28px;font-weight:700;box-shadow:0 4px 14px #132b4320}.profile-identity-copy{min-width:0;flex:1;padding-top:37px}.profile-identity-copy .account-status{font-size:8px}.profile-identity-copy h2{margin:4px 0 0;color:#152a40;font-size:21px;line-height:1.3}.profile-identity-copy p{margin:2px 0 0;color:#687b8e;font-size:10px}.profile-identity-copy p span{padding:0 3px;color:#a3b0bb}.profile-edit-icon{width:34px;height:34px;flex:none;margin:29px 2px 0 0;border:1px solid #d9e3ec;border-radius:9px;background:#fff;color:#45627b;font-size:16px;cursor:pointer}.profile-bio{margin:17px 0 10px;color:#43596e;font-size:11px;line-height:1.8}.profile-location{color:#3c7180;font-size:10px;font-weight:600}.profile-location-note{color:#8192a2;font-weight:400}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:18px 0 17px;padding:14px 0;border-top:1px solid #e2e9ef;border-bottom:1px solid #e2e9ef}.profile-stats div{display:flex;flex-direction:column;align-items:center;gap:2px;border-right:1px solid #e2e9ef}.profile-stats div:last-child{border:0}.profile-stats b{color:#1a3853;font-size:16px}.profile-stats span{color:#718497;font-size:9px}.profile-work{padding:15px 16px;border:1px solid #dbe6ed;border-radius:13px;background:#fff;box-shadow:0 5px 15px #1839560a}.profile-work-heading{display:flex;align-items:center;justify-content:space-between}.account-eyebrow{font-size:8px;letter-spacing:.5px}.profile-work-heading h3{margin:2px 0 0;color:#1d344d;font-size:14px}.profile-work-mark{display:grid;width:31px;height:31px;place-items:center;border-radius:9px;background:#e5f5f2;color:#277d78}.profile-work>p{margin:10px 0;color:#788a9b;font-size:10px;line-height:1.7}.profile-first-work{display:inline-flex;min-height:32px;align-items:center;padding:0 11px;border:1px solid #bfdcd7;border-radius:8px;background:#eff8f6;color:#286d6c;text-decoration:none;font-size:10px;font-weight:700}.profile-account-note{margin-top:14px}.profile-actions{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;margin-top:15px}.profile-actions .profile-edit-button{min-height:42px;margin:0;border-radius:9px;background:#194f7b;font-size:11px}.profile-logout{padding:9px 4px;border:0;background:none;color:#8c5860;font:600 10px var(--font);cursor:pointer}.profile-auth-links{display:flex;justify-content:center;gap:15px;margin:16px 0 0;padding-top:14px;border-top:1px solid #e2e9ef;color:#8292a1;font-size:9px}.profile-auth-links span{margin-right:auto}.profile-editor{padding:28px 30px 25px}.editor-heading{margin:0 0 20px}.editor-heading h2{margin:8px 0 4px;color:#172c44;font-size:23px}.editor-heading>p{margin:0;color:#708297;font-size:11px}.editor-avatar-row{display:flex;align-items:center;gap:11px;margin:0 0 19px;padding:12px;border:1px solid #e1e9ef;border-radius:11px;background:#fff}.editor-avatar{display:grid;width:45px;height:45px;place-items:center;border-radius:13px;background:#d9f2ee;color:#205b68;font-size:18px;font-weight:700}.editor-avatar-row>div:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px}.editor-avatar-row b{color:#344c63;font-size:10px}.editor-avatar-row small,.account-field>small{color:#8190a0;font-size:9px}.editor-avatar-pending{padding:4px 7px;border-radius:6px;background:#eef3f6;color:#708396;font-size:8px}.profile-editor .account-field{margin-bottom:15px}.profile-editor .account-field textarea{min-height:79px;resize:vertical}.profile-editor .account-field>small{display:block;margin-top:5px;font-weight:400}.editor-save-note{margin:2px 0 0;font-size:9px}.editor-actions{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;margin-top:14px}.editor-cancel{min-height:43px;padding:0 15px;border:1px solid #d8e2ea;border-radius:9px;background:#fff;color:#556d81;font:600 10px var(--font);cursor:pointer}

/* Feed: a quiet stage for the work, with light that responds to focus. */
.section-block>.section-heading{margin-bottom:13px}.feed-filters{gap:7px;padding:3px 1px 9px}.filter-chip{min-height:34px;border-color:#d7e1eb;background:#f7faff;color:#536b83;box-shadow:0 1px 2px #1d38500a}.filter-chip:hover{transform:translateY(-1px);border-color:#9bb8d0;background:#fff;box-shadow:0 5px 14px #1e456012}.filter-chip.selected{border-color:#2c649e;background:linear-gradient(135deg,#285d95,#347fa0);color:#fff;box-shadow:0 5px 15px #245e9233}.composer{position:relative;overflow:hidden;border-color:#cdddea;background:linear-gradient(135deg,#fff 55%,#f0f7fa);box-shadow:0 6px 18px #183e5c0c,0 1px 2px #183e5c0a;transition:box-shadow .2s,border-color .2s,transform .2s}.composer:before{position:absolute;top:-50px;right:-35px;width:160px;height:110px;border-radius:50%;background:#74c9d21c;filter:blur(28px);content:"";pointer-events:none}.composer:focus-within{border-color:#83b3cb;box-shadow:0 0 0 3px #3986a31a,0 12px 28px #204e6a18}.composer-input{position:relative;z-index:1;border-color:#e0e8ef;background:#fff;color:#405970;box-shadow:inset 0 1px 3px #1c3a5008}.composer-input:hover{border-color:#a7c3d4;background:#fff;box-shadow:0 0 0 3px #4a97a90e}.composer-send{background:linear-gradient(135deg,#275d96,#317fa0);box-shadow:0 5px 14px #22598236}.composer-send:hover{background:linear-gradient(135deg,#204d80,#286d89);box-shadow:0 7px 19px #22598245}
.post-card{position:relative;overflow:hidden;border-color:#d5e0eb;background:linear-gradient(145deg,#fff 0%,#fff 66%,#f5f9fc 100%);box-shadow:0 5px 18px #1739570c,0 1px 3px #17395708;transition:border-color .2s,box-shadow .22s,transform .22s}.post-card:before{position:absolute;top:-80px;right:-90px;width:210px;height:160px;border-radius:50%;background:radial-gradient(circle,#65b7c21b,transparent 70%);content:"";pointer-events:none;transition:opacity .2s,transform .3s}.post-card:hover{transform:translateY(-2px);border-color:#afc7db;box-shadow:0 14px 32px #163a5918,0 2px 7px #163a5909}.post-card:hover:before{transform:translate(-20px,18px);opacity:1}.post-card:focus-within{border-color:#72a9c2;box-shadow:0 0 0 3px #3986a31b,0 12px 28px #163a5915}.post-top,.post-copy,.audio-card,.post-artwork,.post-actions{position:relative;z-index:1}.post-top{padding-bottom:9px}.post-author strong{letter-spacing:-.15px}.post-author small{color:#73879a}.more-btn{border:1px solid transparent;border-radius:9px}.more-btn:hover{border-color:#dce7ef;background:#f3f7fa;color:#254d74}.post-copy{color:#30475e;font-size:13px;line-height:1.9}.post-copy b{color:#276f91}.audio-card{border-color:#d3e3ed;background:linear-gradient(110deg,#edf4fa,#f4f9fb 62%,#e9f5f3);box-shadow:inset 0 1px 0 #fff,0 3px 10px #284e6810}.play-button{background:linear-gradient(145deg,#2c6ba0,#244e84);box-shadow:0 4px 12px #285b8738}.play-button:hover{box-shadow:0 0 0 5px #3f8fa21a,0 5px 15px #285b873d}.waveform i{box-shadow:0 0 8px #3999a32b}.post-artwork{overflow:hidden;border:1px solid #cfdae6;box-shadow:0 5px 16px #152c411e}.post-artwork img{transition:transform .45s ease,filter .3s}.post-card:hover .post-artwork img{transform:scale(1.025);filter:saturate(1.02) contrast(1.02)}.artwork-label{border:1px solid #e3ebf0;box-shadow:0 4px 15px #10203320;backdrop-filter:blur(10px)}.post-actions{border-color:#e4ebf1}.post-actions button{border-radius:7px;transition:color .16s,background .16s,transform .16s}.post-actions button:hover{background:#edf4f8;color:#245f8a}.post-actions button.liked{background:#fff0f1;color:#b83e60}
@media(max-width:700px){.modal.account-modal:has(.auth-shell){width:min(510px,100%);max-height:94vh;border-radius:18px}.auth-shell{display:block;min-height:0}.auth-art{min-height:155px;height:155px;padding:17px 20px}.auth-brand>span{width:28px;height:28px}.auth-art-center{display:none}.auth-wave{right:0;bottom:20px;left:35%;height:42px}.auth-wave i{width:2px}.auth-art-foot{font-size:8px}.auth-panel{padding:22px 22px 24px}.auth-panel-head{margin-bottom:13px}.auth-tabs{margin-bottom:17px}.auth-panel h1{font-size:24px}.auth-intro{margin-bottom:17px}.account-field-row{gap:9px}.modal.account-modal:has(.profile-page),.modal.account-modal:has(.profile-editor){width:min(610px,100%);max-height:94vh}.profile-page{padding:0 20px 19px}.profile-cover{margin-inline:-20px;height:116px}.profile-cover-tag{left:20px}.profile-identity-copy h2{font-size:19px}.feed-filters{overflow-x:auto;white-space:nowrap}.post-card:hover{transform:none}}
@media(max-width:390px){.auth-panel{padding-inline:17px}.auth-art{height:135px;min-height:135px}.auth-panel h1{font-size:22px}.account-field-row{grid-template-columns:1fr;gap:0}.account-field-row .account-field{margin-bottom:12px}.profile-page{padding-inline:15px}.profile-cover{margin-inline:-15px}.profile-cover-tag{left:15px}.profile-identity{gap:10px}.profile-avatar{width:66px;height:66px;border-radius:19px}.editor-actions{grid-template-columns:1fr 2fr}}
@media(prefers-reduced-motion:reduce){.post-artwork img,.post-card,.composer,.auth-submit{transition:none!important}}

/* Make the account mode title unmistakable and keep avatar selection clear. */
.auth-panel h1{margin:0 0 12px;font-size:clamp(38px,4.2vw,48px);line-height:1.28;letter-spacing:-.8px}
.auth-intro{font-size:13px;line-height:1.8}
.editor-avatar-field input[type="file"]{display:block;max-width:100%;font:500 12px var(--font);color:#334b63}
.editor-avatar-field input[type="file"]::file-selector-button{min-height:36px;margin:0 10px 0 0;padding:0 12px;border:1px solid #cbdde7;border-radius:8px;background:#eff7fa;color:#225777;font:700 11px var(--font);cursor:pointer}
.editor-avatar-field input[type="file"]::file-selector-button:hover{background:#e2f2f4}
@media(max-width:700px){.auth-panel h1{font-size:clamp(32px,8vw,38px);line-height:1.3}}
@media(max-width:390px){.auth-panel h1{font-size:31px}}

/* Profile overview: stronger hierarchy, clearer cards and roomier Thai text. */
.modal.account-modal:has(.profile-page){width:min(700px,100%);background:#f5f8fb}
.modal.account-modal:has(.profile-page) .profile-page{padding:0 34px 30px}
.modal.account-modal:has(.profile-page) .profile-cover{height:168px;margin-inline:-34px;background:radial-gradient(ellipse at 82% 12%,#59d6c74a 0,transparent 35%),linear-gradient(120deg,#112840,#173b56 58%,#21616a)}
.modal.account-modal:has(.profile-page) .profile-cover-tag{left:34px;bottom:18px;font-size:11px;letter-spacing:.08em}
.modal.account-modal:has(.profile-page) .profile-soundwave{bottom:24px;height:86px;opacity:.48}
.modal.account-modal:has(.profile-page) .profile-identity{gap:18px;margin-top:-44px}
.modal.account-modal:has(.profile-page) .profile-avatar{width:100px;height:100px;border:5px solid #f5f8fb;border-radius:27px;font-size:36px}
.modal.account-modal:has(.profile-page) .profile-identity-copy{padding-top:46px}
.modal.account-modal:has(.profile-page) .profile-identity-copy .account-status{padding:6px 10px;border:1px solid #ccebe5;border-radius:999px;background:#eaf8f5;color:#27766f;font-size:12px}
.modal.account-modal:has(.profile-page) .profile-identity-copy h2{margin-top:10px;font-size:32px;font-weight:800;line-height:1.3;letter-spacing:-.02em}
.modal.account-modal:has(.profile-page) .profile-identity-copy p{margin-top:4px;font-size:14px;line-height:1.6}
.modal.account-modal:has(.profile-page) .profile-edit-icon{width:46px;height:46px;margin-top:37px;border-radius:13px;font-size:20px;box-shadow:0 4px 14px #1b3c5612}
.modal.account-modal:has(.profile-page) .profile-bio{margin:22px 0 14px;color:#314d67;font-size:16px;line-height:1.9}
.modal.account-modal:has(.profile-page) .profile-location{font-size:14px;line-height:1.65}
.modal.account-modal:has(.profile-page) .profile-stats{gap:12px;margin:24px 0;padding:0;border:0}
.modal.account-modal:has(.profile-page) .profile-stats div{min-height:82px;justify-content:center;gap:7px;border:1px solid #dce7ef;border-radius:15px;background:linear-gradient(145deg,#fff,#f7fafc);box-shadow:0 5px 16px #1839560a}
.modal.account-modal:has(.profile-page) .profile-stats b{font-size:24px;line-height:1.2}
.modal.account-modal:has(.profile-page) .profile-stats span{font-size:13px}
.modal.account-modal:has(.profile-page) .profile-work{padding:22px 23px;border-radius:18px}
.modal.account-modal:has(.profile-page) .account-eyebrow{font-size:11px;letter-spacing:.08em}
.modal.account-modal:has(.profile-page) .profile-work-heading h3{margin-top:5px;font-size:20px;line-height:1.5}
.modal.account-modal:has(.profile-page) .profile-work-mark{width:42px;height:42px;border-radius:13px;font-size:21px}
.modal.account-modal:has(.profile-page) .profile-work>p{margin:14px 0 18px;color:#526b80;font-size:15px;line-height:1.8}
.modal.account-modal:has(.profile-page) .profile-first-work{min-height:42px;padding:0 15px;border-radius:10px;font-size:13px}
.modal.account-modal:has(.profile-page) .profile-account-note{gap:10px;margin-top:18px;padding:15px 16px;border-color:#d8e5ed;border-radius:13px;background:#eef4f8}
.modal.account-modal:has(.profile-page) .profile-account-note p{font-size:13px;line-height:1.7}
.modal.account-modal:has(.profile-page) .profile-actions{gap:18px;margin-top:20px}
.modal.account-modal:has(.profile-page) .profile-actions .profile-edit-button{min-height:54px;border-radius:12px;font-size:15px}
.modal.account-modal:has(.profile-page) .profile-logout,.modal.account-modal:has(.profile-page) .profile-auth-links{font-size:13px}
.modal.account-modal:has(.profile-page) .profile-auth-links{gap:18px;margin-top:20px;padding-top:17px}
.modal.account-modal:has(.profile-page) .profile-auth-links button{font-size:13px}
@media(max-width:700px){
  .modal.account-modal:has(.profile-page){width:min(610px,100%)}
  .modal.account-modal:has(.profile-page) .profile-page{padding:0 20px 23px}
  .modal.account-modal:has(.profile-page) .profile-cover{height:140px;margin-inline:-20px}
  .modal.account-modal:has(.profile-page) .profile-cover-tag{left:20px}
  .modal.account-modal:has(.profile-page) .profile-avatar{width:82px;height:82px;border-radius:23px;font-size:30px}
  .modal.account-modal:has(.profile-page) .profile-identity{margin-top:-36px}
  .modal.account-modal:has(.profile-page) .profile-identity-copy{padding-top:39px}
  .modal.account-modal:has(.profile-page) .profile-identity-copy h2{font-size:26px}
  .modal.account-modal:has(.profile-page) .profile-bio{font-size:14px}
  .modal.account-modal:has(.profile-page) .profile-work{padding:18px}
  .modal.account-modal:has(.profile-page) .profile-work-heading h3{font-size:18px}
  .modal.account-modal:has(.profile-page) .profile-work>p{font-size:13px}
}
@media(max-width:390px){
  .modal.account-modal:has(.profile-page) .profile-page{padding-inline:15px}
  .modal.account-modal:has(.profile-page) .profile-cover{margin-inline:-15px}
  .modal.account-modal:has(.profile-page) .profile-cover-tag{left:15px}
  .modal.account-modal:has(.profile-page) .profile-identity{gap:10px}
  .modal.account-modal:has(.profile-page) .profile-identity-copy h2{font-size:23px}
  .modal.account-modal:has(.profile-page) .profile-edit-icon{width:40px;height:40px}
  .modal.account-modal:has(.profile-page) .profile-stats{gap:7px}
  .modal.account-modal:has(.profile-page) .profile-stats div{min-height:72px}
  .modal.account-modal:has(.profile-page) .profile-stats span{font-size:11px}
}

/* Tuned down to a more balanced profile dialog scale. */
.modal.account-modal:has(.profile-page){width:min(650px,100%)}
.modal.account-modal:has(.profile-page) .profile-page{padding:0 30px 25px}
.modal.account-modal:has(.profile-page) .profile-cover{height:148px;margin-inline:-30px}
.modal.account-modal:has(.profile-page) .profile-cover-tag{left:30px;font-size:10px}
.modal.account-modal:has(.profile-page) .profile-identity{margin-top:-39px}
.modal.account-modal:has(.profile-page) .profile-avatar{width:88px;height:88px;border-radius:24px;font-size:32px}
.modal.account-modal:has(.profile-page) .profile-identity-copy{padding-top:41px}
.modal.account-modal:has(.profile-page) .profile-identity-copy h2{font-size:28px}
.modal.account-modal:has(.profile-page) .profile-identity-copy p{font-size:13px}
.modal.account-modal:has(.profile-page) .profile-edit-icon{width:42px;height:42px;margin-top:34px}
.modal.account-modal:has(.profile-page) .profile-bio{margin:18px 0 12px;font-size:14px}
.modal.account-modal:has(.profile-page) .profile-location{font-size:12px}
.modal.account-modal:has(.profile-page) .profile-stats{gap:10px;margin:20px 0}
.modal.account-modal:has(.profile-page) .profile-stats div{min-height:72px}
.modal.account-modal:has(.profile-page) .profile-stats b{font-size:21px}
.modal.account-modal:has(.profile-page) .profile-stats span{font-size:12px}
.modal.account-modal:has(.profile-page) .profile-work{padding:19px 20px}
.modal.account-modal:has(.profile-page) .profile-work-heading h3{font-size:18px}
.modal.account-modal:has(.profile-page) .profile-work>p{margin:12px 0 15px;font-size:13px}
.modal.account-modal:has(.profile-page) .profile-first-work{min-height:38px;font-size:12px}
.modal.account-modal:has(.profile-page) .profile-account-note p{font-size:12px}
.modal.account-modal:has(.profile-page) .profile-actions .profile-edit-button{min-height:48px;font-size:13px}
@media(max-width:700px){
  .modal.account-modal:has(.profile-page){width:min(610px,100%)}
  .modal.account-modal:has(.profile-page) .profile-page{padding:0 20px 22px}
  .modal.account-modal:has(.profile-page) .profile-cover{height:132px;margin-inline:-20px}
  .modal.account-modal:has(.profile-page) .profile-cover-tag{left:20px}
  .modal.account-modal:has(.profile-page) .profile-avatar{width:78px;height:78px;font-size:29px}
  .modal.account-modal:has(.profile-page) .profile-identity-copy h2{font-size:24px}
  .modal.account-modal:has(.profile-page) .profile-work{padding:17px}
  .modal.account-modal:has(.profile-page) .profile-work-heading h3{font-size:17px}
  .modal.account-modal:has(.profile-page) .profile-work>p{font-size:12px}
}
@media(max-width:390px){
  .modal.account-modal:has(.profile-page) .profile-page{padding-inline:15px}
  .modal.account-modal:has(.profile-page) .profile-cover{margin-inline:-15px}
  .modal.account-modal:has(.profile-page) .profile-cover-tag{left:15px}
}

/* Compact profile dialog with solarpunk glass cards and gentle depth. */
.modal.account-modal:has(.profile-page){
  width:min(590px,100%);
  border-color:#b9ddd5;
  background:linear-gradient(145deg,rgba(249,253,250,.96),rgba(237,247,245,.94));
  box-shadow:0 24px 70px #092b3552,0 0 0 1px #d4f6e9a8 inset;
  backdrop-filter:blur(22px) saturate(1.15);
}
.modal.account-modal:has(.profile-page) .profile-page{padding:0 25px 22px}
.modal.account-modal:has(.profile-page) .profile-cover{height:132px;margin-inline:-25px}
.modal.account-modal:has(.profile-page) .profile-cover-tag{left:25px;font-size:9px}
.modal.account-modal:has(.profile-page) .profile-identity{margin-top:-35px}
.modal.account-modal:has(.profile-page) .profile-avatar{width:78px;height:78px;border-radius:22px;font-size:29px}
.modal.account-modal:has(.profile-page) .profile-identity-copy{padding-top:38px}
.modal.account-modal:has(.profile-page) .profile-identity-copy h2{font-size:24px}
.modal.account-modal:has(.profile-page) .profile-identity-copy p{font-size:12px}
.modal.account-modal:has(.profile-page) .profile-edit-icon{width:38px;height:38px;margin-top:32px}
.modal.account-modal:has(.profile-page) .profile-bio{margin:15px 0 10px;font-size:13px;line-height:1.75}
.modal.account-modal:has(.profile-page) .profile-location{font-size:11px}
.modal.account-modal:has(.profile-page) .profile-stats{gap:8px;margin:17px 0}
.modal.account-modal:has(.profile-page) .profile-stats div{
  min-height:64px;border-color:#cce5dd;border-radius:13px;
  background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(222,246,236,.57));
  box-shadow:0 5px 14px #225c4a12,inset 0 1px #fff;
}
.modal.account-modal:has(.profile-page) .profile-stats b{font-size:19px}
.modal.account-modal:has(.profile-page) .profile-stats span{font-size:11px}
.modal.account-modal:has(.profile-page) .profile-work{
  padding:16px 18px;border:1px solid #a9d9c9;border-radius:17px;
  background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(219,246,232,.66) 58%,rgba(213,242,242,.72));
  box-shadow:0 12px 25px #205b481b,inset 0 1px #ffffffd9,inset 0 -1px #5fb99b24;
  transform:perspective(1000px) rotateX(0deg) translateY(0);
}
.modal.account-modal:has(.profile-page) .profile-work:after{
  position:absolute;inset:0;content:"";pointer-events:none;border-radius:inherit;
  background:linear-gradient(112deg,transparent 22%,#ffffff77 44%,transparent 61%);
  transform:translateX(-120%);transition:transform .7s ease;
}
.modal.account-modal:has(.profile-page) .profile-work:hover{
  transform:perspective(1000px) rotateX(1.2deg) translateY(-3px);
  border-color:#75c9ac;box-shadow:0 20px 36px #14543c2b,inset 0 1px #fff;
}
.modal.account-modal:has(.profile-page) .profile-work:hover:after{transform:translateX(120%)}
.modal.account-modal:has(.profile-page) .profile-work-heading h3{font-size:17px}
.modal.account-modal:has(.profile-page) .profile-work>p{margin:10px 0 13px;font-size:12px;line-height:1.7}
.modal.account-modal:has(.profile-page) .profile-first-work{min-height:35px;font-size:11px}
.modal.account-modal:has(.profile-page) .profile-account-note{margin-top:14px;padding:12px 14px;border-color:#c8dedc;background:rgba(229,244,242,.74);backdrop-filter:blur(10px)}
.modal.account-modal:has(.profile-page) .profile-account-note p{font-size:11px}
.modal.account-modal:has(.profile-page) .profile-actions{margin-top:16px}
.modal.account-modal:has(.profile-page) .profile-actions .profile-edit-button{min-height:44px;font-size:12px}
@media(max-width:700px){
  .modal.account-modal:has(.profile-page){width:min(560px,100%)}
  .modal.account-modal:has(.profile-page) .profile-page{padding:0 19px 20px}
  .modal.account-modal:has(.profile-page) .profile-cover{height:122px;margin-inline:-19px}
  .modal.account-modal:has(.profile-page) .profile-cover-tag{left:19px}
  .modal.account-modal:has(.profile-page) .profile-avatar{width:70px;height:70px;font-size:26px}
  .modal.account-modal:has(.profile-page) .profile-identity-copy h2{font-size:22px}
  .modal.account-modal:has(.profile-page) .profile-work{padding:15px}
}
@media(max-width:390px){
  .modal.account-modal:has(.profile-page) .profile-page{padding-inline:14px}
  .modal.account-modal:has(.profile-page) .profile-cover{margin-inline:-14px}
  .modal.account-modal:has(.profile-page) .profile-cover-tag{left:14px}
}
@media(prefers-reduced-motion:reduce){.modal.account-modal:has(.profile-page) .profile-work,.modal.account-modal:has(.profile-page) .profile-work:after{transition:none}.modal.account-modal:has(.profile-page) .profile-work:hover{transform:none}}

/* Clearer profile editor heading and a tactile 3D camera picker. */
.profile-editor .editor-heading h2{font-size:clamp(30px,3.2vw,36px);font-weight:800;line-height:1.35;letter-spacing:-.02em}
.profile-editor .editor-heading>p{font-size:14px;line-height:1.75}
.editor-avatar-field-title{margin-bottom:8px;color:#263e54;font-size:14px;font-weight:800}
.editor-avatar-field input.avatar-file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.avatar-camera-pick{display:inline-flex;min-height:54px;align-items:center;gap:10px;padding:7px 15px 7px 9px;border:1px solid #65bca9;border-radius:15px;background:linear-gradient(145deg,#c9fff0 0%,#65d9c0 48%,#2b9e98 100%);box-shadow:0 5px 0 #28766f,0 9px 18px #247b7340,inset 0 2px 2px #ffffffc9,inset 0 -3px 5px #167b704d;color:#123e4b;font-size:13px;font-weight:800;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.avatar-camera-pick svg{width:35px;height:35px;overflow:visible;filter:drop-shadow(0 3px 2px #164c4b55)}
.avatar-camera-pick .camera-body{fill:#f3fffb;stroke:#176d6b;stroke-width:2.4;stroke-linejoin:round}
.avatar-camera-pick .camera-lens{fill:#45c6b5;stroke:#155d67;stroke-width:3}
.avatar-camera-pick .camera-glint{fill:#fff;opacity:.96}
.avatar-camera-pick:hover{transform:translateY(-2px);filter:saturate(1.12);box-shadow:0 7px 0 #28766f,0 13px 22px #247b734d,inset 0 2px 2px #ffffffd9}
.avatar-camera-pick:active{transform:translateY(3px);box-shadow:0 2px 0 #28766f,0 4px 10px #247b7333}
.avatar-camera-pick:has(+ .avatar-file-input:focus-visible){outline:3px solid #176d6b;outline-offset:3px}
@media(max-width:700px){.profile-editor .editor-heading h2{font-size:29px}.profile-editor .editor-heading>p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.avatar-camera-pick{transition:none}}
.avatar-camera-pick{width:48px;min-width:48px;height:48px;min-height:48px;justify-content:center;gap:0;padding:0;border-radius:50%}
.avatar-camera-pick span{display:none}
.avatar-camera-pick svg{width:29px;height:29px}

/* Match editor dialog width to the profile overview and clarify field labels. */
.modal.account-modal:has(.profile-editor){width:min(590px,100%);max-height:92vh}
.profile-editor .account-field{font-size:14px;font-weight:700;line-height:1.6}
.profile-editor .account-field>span:first-child{margin-bottom:8px}
.profile-editor .account-field>small{font-size:11px;line-height:1.6}
.profile-editor .field-counter{font-size:11px}
.profile-editor .account-field-row{gap:14px}
@media(max-width:700px){.modal.account-modal:has(.profile-editor){width:min(560px,100%)}.profile-editor .account-field{font-size:13px}}

/* Keep profile editing compact enough to sit comfortably within the viewport. */
.modal.account-modal:has(.profile-editor){width:min(520px,100%);max-height:78vh}
.profile-editor{padding:20px 23px 18px}
.profile-editor .editor-heading{margin-bottom:14px}
.profile-editor .editor-heading h2{font-size:27px;line-height:1.3}
.profile-editor .editor-heading>p{font-size:12px;line-height:1.6}
.profile-editor .editor-avatar-row{gap:10px;margin-bottom:13px;padding:9px}
.editor-avatar{width:42px;height:42px;font-size:16px}
.editor-avatar-field-title{margin-bottom:5px;font-size:12px}
.avatar-camera-pick{width:40px;min-width:40px;height:40px;min-height:40px;display:grid;place-items:center;align-self:flex-start;line-height:0}
.avatar-camera-pick svg{display:block;width:24px;height:24px;margin:0;transform:translate(0,0)}
.profile-editor .account-field{margin-bottom:10px;font-size:12px;line-height:1.45}
.profile-editor .account-field>span:first-child{margin-bottom:5px}
.profile-editor .account-field>small,.profile-editor .field-counter{font-size:10px;line-height:1.4}
.profile-editor .account-field input,.profile-editor .account-field select,.profile-editor .account-field textarea{min-height:38px;padding:8px 10px;font-size:12px}
.profile-editor .account-field-row{gap:10px}
.profile-editor .account-field-row .account-field{margin-bottom:10px}
.profile-editor .account-field textarea{min-height:60px}
.profile-editor .editor-save-note{margin-top:8px;padding:8px 10px;font-size:10px}
.profile-editor .editor-actions{margin-top:10px;gap:8px}
.profile-editor .editor-actions .auth-submit,.profile-editor .editor-cancel{min-height:38px}
@media(max-width:700px){
  .modal.account-modal:has(.profile-editor){width:min(500px,100%);max-height:78vh}
  .profile-editor{padding:18px 19px 16px}
  .profile-editor .editor-heading h2{font-size:25px}
}
@media(max-width:390px){
  .modal.account-modal:has(.profile-editor){max-height:76vh}
  .profile-editor{padding:16px 15px 14px}
  .profile-editor .editor-heading h2{font-size:23px}
}
.avatar-camera-pick{position:relative;display:block;box-sizing:border-box;flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:0;border-radius:50%;line-height:0}
.avatar-camera-pick svg{position:absolute;top:50%;left:50%;display:block;width:20px;height:20px;margin:0;transform:translate(-50%,-54%)}
.profile-editor .account-field>span:first-child{font-size:24px;font-weight:800;line-height:1.4}

/* Left rail: an editorial navigation panel with a small studio glow. */
.left-rail{position:sticky;isolation:isolate;overflow:hidden;padding:19px 13px 16px;background:linear-gradient(158deg,rgba(255,252,255,.96),rgba(249,246,252,.93) 56%,rgba(242,249,250,.94));border:1px solid #ffffffd9;box-shadow:0 18px 48px #22102b14,0 3px 10px #25132c09,inset 0 1px 0 #fff;backdrop-filter:blur(22px)}
.left-rail:before{position:absolute;z-index:-1;top:-54px;right:-82px;width:190px;height:170px;border-radius:50%;background:radial-gradient(circle,#ec61df21,transparent 70%);content:"";pointer-events:none}
.left-rail:after{position:absolute;z-index:-1;bottom:60px;left:-100px;width:180px;height:150px;border-radius:50%;background:radial-gradient(circle,#59c9cf14,transparent 72%);content:"";pointer-events:none}
.rail-profile{gap:11px;margin:1px 0 17px;padding:5px 5px 16px;border-bottom:1px solid #dfe2e9}
.profile-big{width:45px;height:45px;border:2px solid #fff;background:linear-gradient(145deg,#d8e8ff,#d7f4f0);color:#214a79;box-shadow:0 0 0 3px #bd36ad18,0 5px 13px #24395717}
.rail-profile strong{color:#202940;font-size:12px;font-weight:700;letter-spacing:-.1px}.rail-profile small{margin-top:3px;color:#758197;font-size:9px}
.rail-label{display:flex;align-items:center;gap:8px;margin:1px 0 10px 5px;color:#758098;font-size:10px;font-weight:700;letter-spacing:0}
.rail-label:before{width:3px;height:13px;border-radius:3px;background:linear-gradient(#d73cc5,#7351bf);content:""}
.rail-item{position:relative;height:43px;gap:10px;margin:2px 0;padding:0 9px;border:1px solid transparent;border-radius:12px;color:#48536d;font-size:11px;font-weight:600;transition:transform .18s,border-color .18s,background .18s,box-shadow .18s}
.rail-item:hover{transform:translateX(2px);border-color:#e3d8ec;background:rgba(255,255,255,.82);color:#312b48;box-shadow:0 4px 12px #33204a0c}
.rail-item span{display:grid;width:25px;height:25px;place-items:center;border-radius:8px;background:#eef0f7;color:#637391;font-size:14px;transition:transform .18s,background .18s,color .18s}
.rail-item:hover span{transform:scale(1.06);background:#e9e5f5;color:#7250a8}
.rail-item b{display:grid;min-width:23px;height:21px;place-items:center;padding:0 6px;border-radius:7px;background:#f0eaf4;color:#795983;font-size:9px;font-weight:700}
.rail-item.active{transform:none;border-color:#e64dd732;background:linear-gradient(112deg,#b822aa 0%,#d52bbd 53%,#e642ce 100%);color:#fff;box-shadow:0 8px 20px #b91eaa40,inset 0 1px 0 #ffffff4d}
.rail-item.active:before{position:absolute;top:8px;bottom:8px;left:0;width:3px;border-radius:0 4px 4px 0;background:#83f1dc;box-shadow:0 0 11px #83f1dcb0;content:""}
.rail-item.active span{background:#ffffff25;color:#b8fff2}.rail-item.active b{background:#ffffff25;color:#fff}
.rail-gap{height:1px;margin:15px 2px 16px;background:linear-gradient(90deg,transparent,#d8dce6 13%,#d8dce6 87%,transparent)}
.room-item{height:37px;gap:9px;margin:1px 0;padding:0 7px;border-radius:9px;color:#4d5870;font-size:10px;font-weight:500;transition:transform .16s,background .16s,color .16s}
.room-item:hover{transform:translateX(2px);background:#fff9;color:#302c49}
.room-dot{width:8px;height:8px;flex:none;box-shadow:0 0 0 3px #ffffffa6,0 1px 5px #17233820}
.room-dot.lime{background:#179b88}.room-dot.blue{background:#426ce0}.room-dot.orange{background:#8a5ac2}
.room-item small{display:grid;min-width:22px;height:19px;place-items:center;margin-left:auto;padding:0 5px;border-radius:6px;background:#ffffffb8;color:#728099;font-size:9px}
.add-room{display:flex;min-height:35px;align-items:center;gap:7px;margin:8px 0 0;padding:0 9px;border:1px dashed #d9cce3;border-radius:9px;background:#fff7;color:#76518e;font-size:10px;font-weight:600;transition:border-color .16s,background .16s,transform .16s,box-shadow .16s}
.add-room:hover{transform:translateY(-1px);border-color:#cf82c4;background:#fff;box-shadow:0 5px 12px #a62a9915;color:#8b3280}
.rail-footer{gap:8px 13px;padding:19px 4px 0;color:#69758a;font-size:9px}.rail-footer span{transition:color .15s;cursor:pointer}.rail-footer span:hover{color:#a32f98}.rail-footer small{color:#8b95a5;font-size:8px}
@media(max-width:1150px){.left-rail{padding-inline:11px}.rail-item{gap:8px;padding-inline:7px}.room-item{gap:7px;padding-inline:5px}}

/* Sidebar type scale: improve legibility at the narrow rail width. */
.rail-profile strong{font-size:14px}.rail-profile small{font-size:12px}
.rail-label{font-size:13px}
.rail-item{font-size:14px;gap:10px}.rail-item span{font-size:17px}.rail-item b{font-size:11px;min-width:25px;height:22px}
.room-item{font-size:13px;gap:9px}.room-item small{font-size:10px;min-width:24px;height:20px}
.add-room{font-size:13px;min-height:38px}
.rail-footer{font-size:10px;gap:9px 13px}.rail-footer small{font-size:9px}
@media(max-width:1150px){.rail-label{font-size:12px}.rail-item{font-size:13px}.room-item{font-size:12px}}

/* The selected item gets one smoothly traveling pink surface. */
.left-rail{position:sticky}
.left-rail .rail-item{position:relative;z-index:1;background:transparent;box-shadow:none}
.left-rail .rail-item.active{background:transparent;color:#fff;box-shadow:none}
.left-rail .rail-item.active span,.left-rail .rail-item.active b{background:#ffffff25;color:#b8fff2}
.rail-active-indicator{position:absolute;z-index:0;top:0;right:13px;left:13px;pointer-events:none;border:1px solid #e64dd732;border-radius:12px;background:linear-gradient(112deg,#b822aa 0%,#d52bbd 53%,#e642ce 100%);box-shadow:0 8px 20px #b91eaa40,inset 0 1px 0 #ffffff4d;transition:transform .38s cubic-bezier(.22,.8,.24,1),height .25s ease}
.rail-active-indicator:before{position:absolute;top:8px;bottom:8px;left:0;width:3px;border-radius:0 4px 4px 0;background:#83f1dc;box-shadow:0 0 11px #83f1dcb0;content:""}
@media(max-width:1150px){.rail-active-indicator{right:11px;left:11px}}
@media(prefers-reduced-motion:reduce){.rail-active-indicator{transition:none}}

/* Improve reading size in the profile overview without changing other dialogs. */
.modal.account-modal:has(.profile-page) .account-status{font-size:10px}
.modal.account-modal:has(.profile-page) .profile-identity-copy h2{font-size:24px}
.modal.account-modal:has(.profile-page) .profile-identity-copy p{font-size:12px}
.modal.account-modal:has(.profile-page) .profile-bio{font-size:13px;line-height:1.8}
.modal.account-modal:has(.profile-page) .profile-location{font-size:11px}
.modal.account-modal:has(.profile-page) .profile-stats b{font-size:18px}
.modal.account-modal:has(.profile-page) .profile-stats span{font-size:10px}
.modal.account-modal:has(.profile-page) .account-eyebrow{font-size:9px}
.modal.account-modal:has(.profile-page) .profile-work-heading h3{font-size:16px;line-height:1.4}
.modal.account-modal:has(.profile-page) .profile-work>p{font-size:12px;line-height:1.75}
.modal.account-modal:has(.profile-page) .profile-first-work{font-size:11px}
.modal.account-modal:has(.profile-page) .profile-account-note p{font-size:10px;line-height:1.7}
.modal.account-modal:has(.profile-page) .profile-edit-button{font-size:12px}
.modal.account-modal:has(.profile-page) .profile-logout,
.modal.account-modal:has(.profile-page) .profile-auth-links{font-size:10px}
.modal.account-modal:has(.profile-page) .profile-auth-links button{font-size:11px}
@media(max-width:390px){
  .modal.account-modal:has(.profile-page) .profile-identity-copy h2{font-size:22px}
  .modal.account-modal:has(.profile-page) .profile-work-heading h3{font-size:15px}
  .modal.account-modal:has(.profile-page) .profile-work>p{font-size:11px}
}

/* Keep the account UI's decorative labels on the selected site font too. */
.auth-brand>span,.profile-cover-tag{font-family:var(--font)!important}

/* Profile card: premium glass finish and restrained 3D hover tilt. */
.modal.account-modal:has(.profile-page){
  transform:perspective(1400px) rotateX(0deg) rotateY(0deg);
  transform-style:preserve-3d;
  transition:transform .38s cubic-bezier(.2,.75,.25,1),box-shadow .38s ease;
  box-shadow:0 34px 100px #06142680,0 0 0 1px #ffffff80 inset;
}
.modal.account-modal:has(.profile-page):hover{
  transform:perspective(1400px) rotateX(1deg) rotateY(-.65deg) translateY(-2px);
  box-shadow:0 42px 115px #0614268c,0 0 0 1px #ffffffa8 inset;
}
.profile-cover{
  background:radial-gradient(ellipse at 78% 14%,#75e5d64d 0,transparent 34%),radial-gradient(ellipse at 20% 120%,#3186a64f 0,transparent 52%),linear-gradient(122deg,#12273f 0%,#193751 58%,#20505c 100%);
  box-shadow:inset 0 1px #92ffedaa,inset 0 -1px #ffffff1a;
}
.profile-cover:before{
  position:absolute;z-index:1;inset:0;content:"";pointer-events:none;
  background:linear-gradient(112deg,transparent 25%,#ffffff0a 47%,#9dfff019 52%,transparent 74%);
}
.profile-avatar{
  transform:translateZ(22px);
  box-shadow:0 12px 26px #10283c2c,0 0 0 1px #ffffffbd inset;
}
.profile-work{
  position:relative;overflow:hidden;
  border-color:#d5e5eb;
  background:linear-gradient(145deg,#ffffff 0%,#fbfdff 62%,#f2faf9 100%);
  box-shadow:0 10px 24px #1539540d,0 1px 0 #fff inset;
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}
.profile-work:before{
  position:absolute;top:0;right:0;left:0;height:1px;content:"";
  background:linear-gradient(90deg,transparent,#62d8c8a8,transparent);
}
.profile-work:hover{transform:translateY(-2px);border-color:#b9dcd9;box-shadow:0 14px 30px #15395416,0 1px 0 #fff inset}
.profile-first-work{box-shadow:0 2px 5px #173a4e0a;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.profile-first-work:hover{transform:translateY(-2px);box-shadow:0 7px 15px #173a4e16}
.profile-edit-button{box-shadow:0 8px 18px #194f7b2b!important}
@media(max-width:700px){.modal.account-modal:has(.profile-page):hover{transform:none}.profile-work:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.modal.account-modal:has(.profile-page),.profile-work,.profile-first-work{transition:none}.modal.account-modal:has(.profile-page):hover,.profile-work:hover,.profile-first-work:hover{transform:none}}

/* Auth experience: music-led, readable, and comfortable at every screen size. */
.modal.account-modal:has(.auth-shell){
  width:min(1080px,calc(100vw - 48px));
  max-height:min(860px,92vh);
  overflow:auto;
  border:1px solid #b9d8d8;
  border-top:3px solid #5cd6c6;
  border-radius:24px;
  background:#f8fbfc;
  box-shadow:0 32px 100px #07162980,0 0 0 1px #ffffff80 inset;
}
.auth-shell{
  min-height:min(760px,calc(92vh - 6px));
  grid-template-columns:minmax(330px,.86fr) minmax(0,1.14fr);
  background:#f8fbfc;
}
.auth-art{
  min-height:100%;
  padding:38px clamp(28px,4vw,54px);
  background:radial-gradient(ellipse at 10% 90%,#285878 0,transparent 44%),radial-gradient(ellipse at 85% 8%,#215b61 0,transparent 36%),linear-gradient(150deg,#102239,#10283c 62%,#113d48);
}
.auth-art:before{opacity:.28;background-size:34px 34px}
.auth-brand-logo{position:relative;z-index:2;display:inline-flex;max-width:190px;align-items:center}
.auth-brand-logo .brand-logo{width:min(100%,180px);height:auto}
.auth-art-center{max-width:370px;margin:30px 0 42px}
.auth-disc{width:108px;height:108px;margin-bottom:25px;box-shadow:0 0 0 15px #5cd6c60c,0 0 58px #5cd6c638}
.auth-art-note,.account-eyebrow{font-size:12px;letter-spacing:.8px}
.auth-art-center h2{max-width:370px;margin:12px 0 15px;font-size:clamp(34px,3.7vw,48px);line-height:1.32;letter-spacing:-.4px}
.auth-art-center p{max-width:340px;font-size:16px;line-height:1.8}
.auth-wave{bottom:75px;height:70px;opacity:.5}
.auth-wave i{width:4px}
.auth-art-foot{font-size:12px;letter-spacing:.35px}
.auth-panel{
  max-width:620px;
  padding:clamp(34px,5vw,64px) clamp(32px,5.3vw,72px) 36px;
}
.auth-panel-head{gap:14px;margin-bottom:24px}
.account-status{gap:9px;font-size:12px;letter-spacing:.55px}
.account-status i{width:9px;height:9px}
.auth-step{font-size:13px}
.auth-tabs{gap:5px;margin:0 0 27px;padding:5px;border-radius:13px}
.auth-tabs button{min-height:48px;border-radius:9px;font-size:16px;font-weight:700}
.auth-panel h1{margin:0 0 9px;color:#142940;font-size:clamp(34px,3.2vw,42px);font-weight:700;line-height:1.42;letter-spacing:0}
.auth-intro{margin:0 0 24px;color:#5f7488;font-size:16px;line-height:1.8}
.account-field{margin-bottom:17px;color:#243e58;font-size:16px;font-weight:700;line-height:1.55}
.account-field>span:first-child{margin-bottom:7px}
.account-field input,.account-field select,.account-field textarea{min-height:52px;padding:12px 15px;border-color:#cfdee7;border-radius:11px;background:#fff;color:#1d344d;font-size:16px;line-height:1.5}
.account-field input::placeholder,.account-field textarea::placeholder{color:#8797a6}
.account-field-row{gap:14px}
.account-field-row .account-field{margin-bottom:15px}
.password-control,.handle-control{border-color:#cfdee7;border-radius:11px;background:#fff}
.password-control input,.handle-control input{min-height:50px}
.password-control button{padding:0 15px;font-size:14px}
.account-field>small{display:block;margin-top:5px;color:#73869a;font-size:13px;line-height:1.55}
.account-consent{gap:11px;margin:10px 0 0;color:#536b80;font-size:14px;line-height:1.7}
.account-consent input{width:18px;height:18px}
.auth-forgot{margin:0 0 13px;font-size:14px}
.auth-submit{min-height:54px;margin-top:18px;border-radius:11px;font-size:17px;font-weight:700}
.auth-error{padding:11px 13px;font-size:14px;line-height:1.6}
.auth-local-note{gap:10px;margin-top:17px;padding:12px 14px;border-radius:11px}
.auth-local-note>span{font-size:16px}
.auth-local-note p{font-size:13px;line-height:1.7}
.auth-bottom{margin:19px 0 0;font-size:14px;line-height:1.7}
.auth-bottom button{font-size:14px}
.auth-tabs button:focus-visible,.auth-submit:focus-visible,.auth-bottom button:focus-visible,.auth-forgot:focus-visible,.password-control button:focus-visible,.account-field input:focus-visible,.account-field select:focus-visible,.account-field textarea:focus-visible,.account-consent input:focus-visible{
  outline:3px solid #58bdb1;
  outline-offset:3px;
}
@media(max-width:820px){
  .modal.account-modal:has(.auth-shell){width:min(680px,calc(100vw - 32px));max-height:92vh;border-radius:20px}
  .auth-shell{display:block;min-height:0}
  .auth-art{min-height:0;height:124px;padding:20px 26px}
  .auth-brand-logo{max-width:150px}
  .auth-brand-logo .brand-logo{width:145px}
  .auth-art-center,.auth-art-foot{display:none}
  .auth-wave{right:10px;bottom:23px;left:44%;height:56px}
  .auth-panel{max-width:600px;padding:28px clamp(24px,6vw,52px) 30px}
  .auth-panel-head{margin-bottom:18px}
  .auth-tabs{margin-bottom:22px}
  .auth-panel h1{font-size:clamp(32px,6vw,39px)}
}
@media(max-width:540px){
  .modal.account-modal:has(.auth-shell){width:calc(100vw - 20px);max-height:94vh;border-radius:17px}
  .auth-art{height:94px;padding:14px 18px}
  .auth-brand-logo,.auth-brand-logo .brand-logo{max-width:130px;width:130px}
  .auth-wave{right:3px;bottom:12px;left:47%;height:54px;gap:2px}
  .auth-wave i{width:3px}
  .auth-panel{padding:21px 20px 24px}
  .auth-panel-head{margin-bottom:16px}
  .account-status{font-size:11px}
  .auth-step{font-size:12px}
  .auth-tabs{margin-bottom:18px}
  .auth-tabs button{min-height:44px;font-size:15px}
  .auth-panel h1{font-size:clamp(29px,8vw,35px);line-height:1.45}
  .auth-intro{margin-bottom:19px;font-size:15px;line-height:1.75}
  .account-field{margin-bottom:14px;font-size:15px}
  .account-field input,.account-field select,.account-field textarea{min-height:49px;padding:11px 13px;font-size:15px}
  .password-control input,.handle-control input{min-height:47px}
  .account-field-row{grid-template-columns:1fr;gap:0}
  .account-field-row .account-field{margin-bottom:11px}
  .account-consent{font-size:13px}
  .auth-submit{min-height:51px;font-size:16px}
  .auth-local-note p{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.auth-submit,.auth-tabs button{transition:none}}

/* Compact profile refinement: improve hierarchy without increasing the dialog scale. */
.modal.account-modal:has(.profile-page) .profile-cover{
  background:radial-gradient(ellipse at 82% 12%,#70decf3b 0,transparent 34%),radial-gradient(ellipse at 12% 110%,#39829b3d 0,transparent 48%),linear-gradient(122deg,#132940 0%,#193c53 58%,#20545a 100%);
}
.modal.account-modal:has(.profile-page) .profile-cover-tag{font-size:10px;letter-spacing:.09em}
.modal.account-modal:has(.profile-page) .profile-soundwave{opacity:.58}
.modal.account-modal:has(.profile-page) .profile-identity-copy .account-status{
  display:inline-flex;min-height:27px;align-items:center;padding:4px 10px;
  border:1px solid #c7e9df;border-radius:999px;background:#e9f7f3;color:#356d69;
  font-size:11px;letter-spacing:0;
}
.modal.account-modal:has(.profile-page) .profile-identity-copy h2{line-height:1.4}
.modal.account-modal:has(.profile-page) .profile-identity-copy p{line-height:1.65;overflow-wrap:anywhere}
.modal.account-modal:has(.profile-page) .profile-bio{font-size:14px;line-height:1.85;overflow-wrap:anywhere}
.modal.account-modal:has(.profile-page) .profile-location{
  display:flex;width:fit-content;max-width:100%;align-items:center;gap:5px;
  padding:5px 10px;border:1px solid #d7e9e5;border-radius:999px;
  background:#f0f8f6;color:#356d69;font-size:12px;line-height:1.5;overflow-wrap:anywhere;
}
.modal.account-modal:has(.profile-page) .profile-location-note{color:#687d8b}
.modal.account-modal:has(.profile-page) .profile-stats div{
  border-color:#d2e4e1;
  background:linear-gradient(145deg,#fff,#eff7f5 88%);
  box-shadow:0 4px 12px #173f3b0d,inset 0 1px #fff;
}
.modal.account-modal:has(.profile-page) .profile-stats span{font-size:12px;line-height:1.5}
.modal.account-modal:has(.profile-page) .profile-work{
  border-color:#c6e0d8;
  background:linear-gradient(135deg,#fff,#f3faf7 58%,#edf8f6);
  box-shadow:0 8px 20px #205b4810,inset 0 1px #ffffffd9;
}
.modal.account-modal:has(.profile-page) .profile-work-heading h3{font-size:18px;line-height:1.5}
.modal.account-modal:has(.profile-page) .profile-work>p{font-size:13px;line-height:1.8}
.modal.account-modal:has(.profile-page) .profile-first-work{
  min-height:38px;border-radius:10px;font-size:12px;line-height:1.5;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.modal.account-modal:has(.profile-page) .profile-first-work:hover{transform:translateY(-1px);box-shadow:0 5px 12px #173a4e12}
.modal.account-modal:has(.profile-page) .profile-account-note p{font-size:12px;line-height:1.75}
.modal.account-modal:has(.profile-page) .profile-actions .profile-edit-button{min-height:47px;font-size:13px}
.modal.account-modal:has(.profile-page) .profile-logout,.modal.account-modal:has(.profile-page) .profile-auth-links{font-size:12px}
.modal.account-modal:has(.profile-page) .profile-auth-links button{font-size:12px}
.modal.account-modal:has(.profile-page) :is(.profile-edit-icon,.profile-first-work,.profile-actions button,.profile-auth-links button):focus-visible{
  outline:3px solid #48a99f;outline-offset:3px;
}
@media(max-width:420px){
  .modal.account-modal:has(.profile-page) .profile-identity-copy .account-status{min-height:24px;padding:3px 8px;font-size:10px}
  .modal.account-modal:has(.profile-page) .profile-bio{font-size:13px}
  .modal.account-modal:has(.profile-page) .profile-location{font-size:11px}
  .modal.account-modal:has(.profile-page) .profile-work-heading h3{font-size:16px}
  .modal.account-modal:has(.profile-page) .profile-work>p{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.modal.account-modal:has(.profile-page) .profile-first-work{transition:none}.modal.account-modal:has(.profile-page) .profile-first-work:hover{transform:none}}
/* Dark glass artist profile inspired by the supplied Sourcewav reference. */
.modal.account-modal:has(.profile-page){
  width:min(1020px,calc(100vw - 36px));
  max-height:min(860px,90vh);
  overflow:auto;
  border:1px solid #6ccddd80;
  border-top:2px solid #76e4ef;
  border-radius:24px;
  background:#0b1422;
  box-shadow:0 30px 90px #030914c9,0 0 26px #45cbe126,inset 0 1px #ffffff25;
  backdrop-filter:blur(20px) saturate(1.1);
}
.modal.account-modal:has(.profile-page) .profile-page{
  padding:0 24px 22px;
  color:#ecf6ff;
  background:radial-gradient(ellipse at 82% 8%,#533f7738 0,transparent 35%),radial-gradient(ellipse at 5% 72%,#18a7bb17 0,transparent 40%),#0b1422;
}
.modal.account-modal:has(.profile-page) .profile-cover{
  height:112px;
  margin-inline:-24px;
  border-bottom:1px solid #7fe8ef61;
  background:radial-gradient(ellipse at 86% 5%,#76e8ec32 0,transparent 35%),linear-gradient(105deg,#101d2d,#18394b 58%,#21384c);
}
.modal.account-modal:has(.profile-page) .profile-cover:before{
  z-index:0;
  background:repeating-linear-gradient(90deg,transparent 0 17px,#56d8e30c 18px 19px),linear-gradient(112deg,transparent 24%,#ffffff0a 48%,#8df6e920 55%,transparent 76%);
}
.modal.account-modal:has(.profile-page) .profile-cover-tag{left:24px;bottom:14px;color:#c5e3f1;font-size:10px;letter-spacing:.12em}
.modal.account-modal:has(.profile-page) .profile-soundwave{right:5%;bottom:12px;left:52%;height:62px;opacity:.68}
.modal.account-modal:has(.profile-page) .profile-soundwave i{width:3px;background:#65deea}
.modal.account-modal:has(.profile-page) .profile-grid{
  display:grid;
  grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
  align-items:stretch;
  gap:16px;
  margin-top:16px;
}
.modal.account-modal:has(.profile-page) .profile-identity-card,
.modal.account-modal:has(.profile-page) .profile-work{
  min-width:0;
  border:1px solid #91d9e45c;
  border-radius:19px;
  background:linear-gradient(145deg,#1b2a3dcf,#101d2ddf 58%,#142435e8);
  box-shadow:0 16px 38px #03091463,inset 0 1px #ffffff17;
  backdrop-filter:blur(18px);
}
.modal.account-modal:has(.profile-page) .profile-identity-card{padding:20px}
.modal.account-modal:has(.profile-page) .profile-identity{
  align-items:center;
  gap:14px;
  margin:0;
}
.modal.account-modal:has(.profile-page) .profile-avatar{
  width:78px;height:78px;flex:0 0 78px;
  border:2px solid #8be9f0;border-radius:22px;
  background:linear-gradient(145deg,#1f5365,#183149);
  color:#e5fbff;font-size:30px;
  box-shadow:0 0 0 5px #5bcfe51a,0 8px 24px #03091475;
}
.modal.account-modal:has(.profile-page) .profile-identity-copy{min-width:0;padding:0}
.modal.account-modal:has(.profile-page) .profile-identity-copy .account-status{
  display:inline-flex;align-items:center;gap:8px;
  padding:4px 9px;border:1px solid #63d8dc49;border-radius:999px;
  background:#102d3b;color:#8fdfdf;font-size:11px;letter-spacing:0;
}
.modal.account-modal:has(.profile-page) .profile-identity-copy .account-status i{background:#61dfd2;box-shadow:0 0 0 3px #61dfd224}
.modal.account-modal:has(.profile-page) .profile-identity-copy h2{
  margin:6px 0 1px;color:#f5f9ff;font-size:27px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;
}
.modal.account-modal:has(.profile-page) .profile-identity-copy p{margin:0;color:#9dc4dc;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.modal.account-modal:has(.profile-page) .profile-edit-icon{
  width:38px;height:38px;flex:0 0 38px;margin:0 0 0 auto;
  border:1px solid #8bcee270;border-radius:12px;
  background:linear-gradient(145deg,#23374b,#17283a);color:#c8edf5;
  font-size:18px;box-shadow:0 5px 14px #02081055;
}
.modal.account-modal:has(.profile-page) .profile-edit-icon:hover{border-color:#77e5ed;background:#234a5c}
.modal.account-modal:has(.profile-page) .profile-bio{margin:16px 0 10px;color:#c7d6e3;font-size:13px;line-height:1.75;overflow-wrap:anywhere}
.modal.account-modal:has(.profile-page) .profile-location{
  display:inline-flex;max-width:100%;align-items:center;gap:5px;
  padding:5px 10px;border:1px solid #6c9cac65;border-radius:999px;
  background:#152b3b;color:#bce9ed;font-size:12px;line-height:1.5;overflow-wrap:anywhere;
}
.modal.account-modal:has(.profile-page) .profile-location-note{color:#a5b8ca}
.modal.account-modal:has(.profile-page) .profile-stats{gap:8px;margin:17px 0 0;padding:0;border:0}
.modal.account-modal:has(.profile-page) .profile-stats div{
  min-width:0;min-height:72px;justify-content:center;gap:2px;
  border:1px solid #71d9e25e;border-radius:12px;
  background:linear-gradient(150deg,#263a50d9,#17283ae8);
  box-shadow:0 7px 18px #0208104a,inset 0 1px #ffffff18;
}
.modal.account-modal:has(.profile-page) .profile-stats b{color:#f4faff;font-size:21px;line-height:1.2}
.modal.account-modal:has(.profile-page) .profile-stats span{color:#b7cad8;font-size:11px;line-height:1.5}
.modal.account-modal:has(.profile-page) .profile-work{
  position:relative;overflow:hidden;
  padding:22px;
  background:radial-gradient(ellipse at 92% 0,#45447b35 0,transparent 38%),linear-gradient(145deg,#1a2a3ddf,#111e30f2 60%,#132436f2);
}
.modal.account-modal:has(.profile-page) .profile-work:before{
  position:absolute;top:0;right:20px;left:20px;height:1px;content:"";
  background:linear-gradient(90deg,transparent,#72e5edb3,transparent);
}
.modal.account-modal:has(.profile-page) .profile-work-heading{position:relative;z-index:1;align-items:center;gap:12px}
.modal.account-modal:has(.profile-page) .account-eyebrow{
  display:inline-flex;padding:4px 9px;border:1px solid #5ecbdf51;border-radius:999px;
  background:#153247;color:#83d9eb;font-size:10px;letter-spacing:.08em;
}
.modal.account-modal:has(.profile-page) .profile-work-heading h3{margin:8px 0 0;color:#f1f7ff;font-size:22px;line-height:1.4;overflow-wrap:anywhere}
.modal.account-modal:has(.profile-page) .profile-work-mark{
  width:40px;height:40px;flex:0 0 40px;border:1px solid #6bdce45c;border-radius:13px;
  background:linear-gradient(145deg,#1c5364,#183148);color:#8beaf0;font-size:21px;
  box-shadow:0 0 20px #36bbcc29;
}
.modal.account-modal:has(.profile-page) .profile-work>p{position:relative;z-index:1;margin:13px 0 18px;color:#c4d3e0;font-size:14px;line-height:1.75}
.modal.account-modal:has(.profile-page) .profile-work-actions{
  position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;
}
.modal.account-modal:has(.profile-page) .profile-first-work{
  display:flex;min-width:0;min-height:42px;align-items:center;justify-content:center;gap:8px;
  padding:7px 12px;border:1px solid #91dce873;border-radius:12px;
  background:linear-gradient(145deg,#20394e,#172b40);color:#d6f5fa;
  box-shadow:0 7px 18px #0309144a,inset 0 1px #ffffff19;
  font-size:13px;line-height:1.45;text-align:center;text-decoration:none;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.modal.account-modal:has(.profile-page) .profile-work-actions .profile-first-work:first-child{
  grid-column:1/-1;min-height:54px;
  border-color:#8de7ef;background:linear-gradient(110deg,#277e9c,#318fb1 48%,#356b9b);
  color:#f5fdff;font-size:17px;font-weight:700;text-shadow:0 1px 3px #102e507a;
  box-shadow:0 9px 24px #1789a83d,inset 0 1px #ffffff59,inset 0 -2px #0e385540;
}
.modal.account-modal:has(.profile-page) .profile-store-action,
.modal.account-modal:has(.profile-page) .profile-booking-action{cursor:pointer}
.modal.account-modal:has(.profile-page) .profile-first-work:hover{transform:translateY(-2px);border-color:#a6f4f5;box-shadow:0 11px 22px #03091472,0 0 17px #46d3e12b}
.modal.account-modal:has(.profile-page) .profile-account-note{
  margin:14px 0 0;padding:11px 13px;border-color:#6b9fb155;border-radius:12px;
  background:#132538;color:#c1d2df;
}
.modal.account-modal:has(.profile-page) .profile-account-note>span{color:#81dce3}
.modal.account-modal:has(.profile-page) .profile-account-note p{color:#b8cbd8;font-size:12px;line-height:1.6}
.modal.account-modal:has(.profile-page) .profile-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.72fr);align-items:center;gap:14px;margin-top:14px}
.modal.account-modal:has(.profile-page) .profile-footer .profile-account-note{min-width:0;margin:0}
.modal.account-modal:has(.profile-page) .profile-actions{min-width:0;gap:10px;margin:0}
.modal.account-modal:has(.profile-page) .profile-actions .profile-edit-button{
  min-height:46px;margin:0;border:1px solid #78deeb;border-radius:12px;
  background:linear-gradient(110deg,#1c5276,#245f8d);color:#f2fbff;
  font-size:14px;box-shadow:0 8px 20px #04142566,inset 0 1px #ffffff2e;
}
.modal.account-modal:has(.profile-page) .profile-logout{color:#e6aeba;font-size:12px}
.modal.account-modal:has(.profile-page) .profile-auth-links{margin-top:15px;padding-top:13px;border-color:#7c9caf38;color:#a8bdcc;font-size:12px}
.modal.account-modal:has(.profile-page) .profile-auth-links button{color:#8ee3ec;font-size:13px}
.modal.account-modal:has(.profile-page) :is(.profile-edit-icon,.profile-first-work,.profile-actions button,.profile-auth-links button):focus-visible{outline:3px solid #8be9f0;outline-offset:3px}
@media(max-width:760px){
  .modal.account-modal:has(.profile-page){width:min(620px,calc(100vw - 24px));max-height:93vh;border-radius:20px}
  .modal.account-modal:has(.profile-page) .profile-page{padding:0 17px 18px}
  .modal.account-modal:has(.profile-page) .profile-cover{height:96px;margin-inline:-17px}
  .modal.account-modal:has(.profile-page) .profile-cover-tag{left:17px}
  .modal.account-modal:has(.profile-page) .profile-soundwave{left:40%;height:56px}
  .modal.account-modal:has(.profile-page) .profile-grid{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px}
  .modal.account-modal:has(.profile-page) .profile-identity-card{padding:17px}
  .modal.account-modal:has(.profile-page) .profile-work{padding:18px}
  .modal.account-modal:has(.profile-page) .profile-work-heading h3{font-size:20px}
  .modal.account-modal:has(.profile-page) .profile-footer{grid-template-columns:1fr;gap:11px}
  .modal.account-modal:has(.profile-page) .profile-actions{display:flex}
  .modal.account-modal:has(.profile-page) .profile-actions .profile-edit-button{flex:1}
  .modal.account-modal:has(.profile-page):hover{transform:none}
}
@media(max-width:420px){
  .modal.account-modal:has(.profile-page){width:calc(100vw - 14px);border-radius:17px}
  .modal.account-modal:has(.profile-page) .profile-page{padding:0 12px 15px}
  .modal.account-modal:has(.profile-page) .profile-cover{height:84px;margin-inline:-12px}
  .modal.account-modal:has(.profile-page) .profile-cover-tag{left:12px;bottom:10px;font-size:9px}
  .modal.account-modal:has(.profile-page) .profile-soundwave{right:2%;left:33%;height:48px}
  .modal.account-modal:has(.profile-page) .profile-identity-card,.modal.account-modal:has(.profile-page) .profile-work{border-radius:15px}
  .modal.account-modal:has(.profile-page) .profile-identity-card{padding:14px}
  .modal.account-modal:has(.profile-page) .profile-identity{gap:10px}
  .modal.account-modal:has(.profile-page) .profile-avatar{width:64px;height:64px;flex-basis:64px;border-radius:18px;font-size:25px}
  .modal.account-modal:has(.profile-page) .profile-identity-copy .account-status{font-size:10px}
  .modal.account-modal:has(.profile-page) .profile-identity-copy h2{font-size:22px}
  .modal.account-modal:has(.profile-page) .profile-identity-copy p{font-size:11px}
  .modal.account-modal:has(.profile-page) .profile-edit-icon{width:34px;height:34px;flex-basis:34px;font-size:16px}
  .modal.account-modal:has(.profile-page) .profile-bio{font-size:12px}
  .modal.account-modal:has(.profile-page) .profile-location{padding:4px 8px;font-size:11px}
  .modal.account-modal:has(.profile-page) .profile-stats{gap:6px}
  .modal.account-modal:has(.profile-page) .profile-stats div{min-height:62px;padding:4px 2px}
  .modal.account-modal:has(.profile-page) .profile-stats b{font-size:18px}
  .modal.account-modal:has(.profile-page) .profile-stats span{font-size:10px}
  .modal.account-modal:has(.profile-page) .profile-work{padding:15px}
  .modal.account-modal:has(.profile-page) .profile-work-heading h3{font-size:18px}
  .modal.account-modal:has(.profile-page) .profile-work>p{font-size:12px}
  .modal.account-modal:has(.profile-page) .profile-work-actions{gap:7px}
  .modal.account-modal:has(.profile-page) .profile-first-work{min-height:38px;padding:6px 8px;font-size:11px}
  .modal.account-modal:has(.profile-page) .profile-work-actions .profile-first-work:first-child{min-height:46px;font-size:15px}
  .modal.account-modal:has(.profile-page) .profile-account-note p{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.modal.account-modal:has(.profile-page),.modal.account-modal:has(.profile-page) .profile-first-work{transition:none}.modal.account-modal:has(.profile-page):hover,.modal.account-modal:has(.profile-page) .profile-first-work:hover{transform:none}}

/* Auth and profile settings: a shared blue glass interface. */
.modal.account-modal:has(.auth-shell),
.modal.account-modal:has(.profile-editor){
  border:1px solid #70dff08a;border-top:2px solid #62dff3;border-radius:24px;
  background:#071421;box-shadow:0 30px 100px #020812b8,0 0 36px #43c9ef1c;
  scrollbar-color:#3988a6 #091827;
}
.modal.account-modal:has(.auth-shell){width:min(1080px,calc(100vw - 40px));max-height:min(900px,94vh)}
.modal.account-modal:has(.profile-editor){width:min(960px,calc(100vw - 40px));max-height:min(820px,92vh)}
.modal.account-modal:has(.auth-shell)>.modal-close,
.modal.account-modal:has(.profile-editor)>.modal-close{
  top:15px;right:16px;width:39px;height:39px;border:1px solid #b6eaf3a6;
  background:linear-gradient(145deg,#eafcff,#9ecbd8);color:#16354c;
  box-shadow:0 0 0 4px #64cfe51c,0 5px 18px #02091488;
}
.auth-shell{min-height:680px;grid-template-columns:.92fr 1.08fr;background:#091624;color:#eaf6ff}
.auth-art{min-height:680px;padding:35px 38px;background:radial-gradient(ellipse at 52% 57%,#07518270,transparent 34%),radial-gradient(ellipse at 16% 100%,#066f9b4f,transparent 42%),linear-gradient(145deg,#06111e,#0b1d31 58%,#071321)}
.auth-art:before{opacity:.3;background-image:radial-gradient(#61d8fa55 1px,transparent 1px);background-size:19px 19px;mask-image:linear-gradient(160deg,#000,transparent 88%)}
.auth-brand{font-size:19px;letter-spacing:.6px;text-shadow:0 0 18px #56c8f9a8}
.auth-brand>span{width:38px;height:38px;border:1px solid #78e5ff;border-radius:12px;background:linear-gradient(145deg,#68e4ff,#2477bd);color:#06213a;box-shadow:0 0 22px #31b8ef66}
.auth-art-center{margin:48px 0 72px}
.auth-disc{width:170px;height:170px;margin-bottom:26px;border:1px solid #63dfff9c;background:repeating-radial-gradient(circle at center,#06182a 0 12px,#123853 13px 15px);box-shadow:0 0 0 12px #4ad7fa10,0 0 65px #1caee553,inset 0 0 30px #0da6de26}
.auth-disc:before{width:20px;height:20px;border-color:#a8f5ff;box-shadow:0 0 20px #59dcff}
.auth-disc:after{width:7px;height:7px;background:#a8f5ff;box-shadow:0 0 14px #53dbff}
.auth-disc i{width:24px;height:24px;background:#27c9ff;filter:blur(12px)}
.auth-art-note,.account-eyebrow{color:#63dff5}
.auth-art-center h2{font-size:clamp(34px,4vw,48px);color:#f1fbff;text-shadow:0 3px 24px #3cbbe465}
.auth-art-center p{max-width:340px;color:#b4d1e1;font-size:14px;line-height:1.9}
.auth-wave{bottom:100px;height:86px;opacity:.72}
.auth-wave i{background:linear-gradient(180deg,#9bf3ff,#1399d5);box-shadow:0 0 11px #35cafa55}
.auth-art-foot{color:#9fc6d8;font-size:11px;letter-spacing:.4px}
.auth-panel{max-width:610px;padding:55px clamp(34px,5vw,70px) 38px;color:#eaf5ff}
.auth-panel-head{margin-bottom:20px}
.auth-panel .account-status{color:#99cada;font-size:10px;letter-spacing:1.1px}
.auth-panel .account-status i{background:#54e2ed;box-shadow:0 0 0 4px #54e2ed20,0 0 14px #54e2ed9c}
.auth-step{color:#90b9ce;font-size:12px}
.auth-tabs{gap:5px;margin-bottom:24px;padding:5px;border-color:#5e9cb55e;border-radius:13px;background:#10283b}
.auth-tabs button{min-height:47px;border-radius:10px;color:#b7ccdb;font-size:14px}
.auth-tabs button.active{background:linear-gradient(110deg,#159fd1,#37c9e8);color:#062237;box-shadow:0 5px 18px #22b9e74a,inset 0 1px #ffffff78}
.auth-panel h1{margin-bottom:9px;color:#f2fbff;font-size:clamp(34px,3.4vw,43px);line-height:1.28;letter-spacing:-.5px;text-shadow:0 2px 20px #40bee52b}
.auth-intro{margin-bottom:22px;color:#aac3d2;font-size:14px;line-height:1.85}
.auth-panel .account-field{margin-bottom:14px;color:#e0f2fb;font-size:13px;font-weight:650}
.auth-panel .account-field>span:first-child{margin-bottom:7px}
.auth-panel .account-field input,.auth-panel .account-field select,.auth-panel .account-field textarea{
  min-height:48px;padding:11px 14px;border:1px solid #8eb6c776;border-radius:11px;
  background:linear-gradient(145deg,#172b3d,#112337);color:#f2f9ff;font-size:14px;
  box-shadow:inset 0 1px #ffffff0c; color-scheme:dark;
}
.auth-panel .account-field input::placeholder,.auth-panel .account-field textarea::placeholder{color:#91aabd}
.auth-panel .account-field input:focus,.auth-panel .account-field select:focus,.auth-panel .account-field textarea:focus,
.auth-panel .password-control:focus-within,.auth-panel .handle-control:focus-within{
  border-color:#54d9f1;background:#12283b;box-shadow:0 0 0 3px #42c9ee24,0 0 19px #34bde51b;
}
.auth-panel .password-control,.auth-panel .handle-control{border-color:#8eb6c776;border-radius:11px;background:#14283b}
.auth-panel .password-control button{color:#7ee8f6;font-size:12px}
.auth-panel .account-field>small{display:block;margin-top:5px;color:#94b3c5;font-size:11px;font-weight:400;line-height:1.6}
.auth-panel .account-consent{margin-top:10px;color:#b5cad8;font-size:12px}
.auth-panel .account-consent a,.auth-panel .auth-forgot,.auth-panel .auth-bottom button{color:#77e0f4}
.auth-panel .auth-forgot{margin:0 0 12px;font-size:12px}
.auth-panel .auth-submit{min-height:54px;margin-top:17px;border:1px solid #83edff;border-radius:12px;background:linear-gradient(105deg,#138fc8,#21b8df 55%,#248ed0);color:#f7fdff;font-size:15px;font-weight:750;box-shadow:0 9px 25px #0685bd4a,inset 0 1px #ffffff66;transition:transform .18s,filter .18s,box-shadow .18s}
.auth-panel .auth-submit:hover{transform:translateY(-2px);background:linear-gradient(105deg,#20a9dd,#45d6ee 55%,#31a7df);box-shadow:0 13px 30px #0685bd68,inset 0 1px #ffffff80}
.auth-panel .auth-error{border-color:#a65361;background:#421f2a;color:#ffd9dd;font-size:12px}
.auth-panel .auth-local-note{border-color:#547f9370;background:#0d2030;color:#c0d4e0}
.auth-panel .auth-local-note>span{color:#70deea}
.auth-panel .auth-local-note p{color:#a9c2d0;font-size:11px}
.auth-panel .auth-bottom{margin-top:16px;color:#a6bdcd;font-size:12px}
.auth-panel .auth-bottom button{font-size:12px}
.auth-google-divider{display:flex;align-items:center;gap:12px;margin:17px 0 13px;color:#7293a5;font-size:12px}
.auth-google-divider:before,.auth-google-divider:after{height:1px;flex:1;background:linear-gradient(90deg,transparent,#83b5c57a)}
.auth-google-divider:after{transform:scaleX(-1)}
.auth-google-divider:before,.auth-google-divider:after{content:""}
.auth-google-button{display:flex;width:100%;min-height:50px;align-items:center;justify-content:center;gap:11px;border:1px solid #78aabd83;border-radius:12px;background:linear-gradient(145deg,#effbffdb,#cde8f1d9);color:#183b55;font:700 14px var(--font);box-shadow:inset 0 1px #ffffffdd,0 5px 14px #17516b16;cursor:pointer;transition:transform .18s,border-color .18s,box-shadow .18s,background .18s}
.auth-google-button svg{width:19px;height:19px;flex:none}
.auth-google-button:hover{transform:translateY(-1px);border-color:#35afd0;background:#f5fdff;box-shadow:inset 0 1px #ffffff,0 8px 20px #168db42a}
.auth-google-button:disabled{cursor:wait;opacity:.7}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel{
  background:radial-gradient(ellipse at 92% 7%,#8ee8f04a,transparent 38%),linear-gradient(145deg,#e5f7fb 0%,#c9e8f2 48%,#e7f4f8 100%);
  color:#142b40;box-shadow:inset 1px 0 #b8efff55;
}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .account-status{color:#247a9a}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .account-status i{background:#20aac2;box-shadow:0 0 0 4px #20aac21c,0 0 12px #36bed982}
.auth-shell:is(.auth-login,.auth-recovery) .auth-step{color:#537c91}
.auth-shell:is(.auth-login,.auth-recovery) .auth-tabs{border-color:#8ebbc96e;background:#bad8e4a1}
.auth-shell:is(.auth-login,.auth-recovery) .auth-tabs button{color:#45687d}
.auth-shell:is(.auth-login,.auth-recovery) .auth-tabs button.active{background:linear-gradient(110deg,#1ca8d2,#43cbe6);color:#06283e;box-shadow:0 5px 16px #0c8bb53d,inset 0 1px #ffffffa3}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel h1{color:#102c45;text-shadow:0 2px 18px #54bfe32e}
.auth-shell:is(.auth-login,.auth-recovery) .auth-intro{color:#496b81}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .account-field{color:#1d3d55}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .account-field input,
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .account-field select,
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .account-field textarea{
  border-color:#75a9c57d;background:#f4fbfd;color:#18364d;color-scheme:light;
  box-shadow:inset 0 1px #ffffffc9,0 2px 8px #20516c0b;
}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .account-field input::placeholder{color:#7693a5}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .account-field input:focus,
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .account-field select:focus,
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .account-field textarea:focus,
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .password-control:focus-within{
  border-color:#249fc7;background:#f8fdff;box-shadow:0 0 0 3px #32b7d929,0 0 18px #29a7d122;
}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .password-control{border-color:#75a9c57d;background:#f4fbfd}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .password-control button{color:#247b9d}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .auth-forgot,
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .auth-bottom button{color:#126e9d}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .auth-local-note{border-color:#77afc25e;background:#d7edf3;color:#375b70}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .auth-local-note p{color:#47697e}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .auth-bottom{color:#527286}
.auth-shell:is(.auth-login,.auth-recovery) .auth-panel .auth-submit{background:linear-gradient(105deg,#1198c9,#24b5d9 55%,#278ac5);color:#fff}
.auth-shell:is(.auth-login,.auth-recovery) .auth-google-divider{color:#63869a}
.auth-shell:is(.auth-login,.auth-recovery) .auth-google-divider:before,.auth-shell:is(.auth-login,.auth-recovery) .auth-google-divider:after{background:linear-gradient(90deg,transparent,#5796ae72)}
.auth-shell:is(.auth-login,.auth-recovery) .auth-google-button{border-color:#7aabbd9c;background:linear-gradient(145deg,#f9feffed,#d9eef4ed);color:#1b3d55}
.auth-shell:is(.auth-login,.auth-recovery) .auth-google-button:hover{border-color:#34aecd;background:#fff;box-shadow:0 8px 20px #168db42a}
.modal.account-modal:has(.profile-editor){color:#eaf6ff}
.profile-editor{padding:34px 40px 32px;color:#eaf6ff;background:radial-gradient(ellipse at 10% 95%,#12608728,transparent 37%),linear-gradient(145deg,#0b1c2d,#0a1726 64%,#0c2231)}
.editor-heading{margin:0 0 24px;padding:0 0 17px;border-bottom:1px solid #70b7d336}
.editor-heading .account-status{color:#8fc8dc;font-size:10px;letter-spacing:1px}
.editor-heading .account-status i{background:#55deed;box-shadow:0 0 0 4px #55deed20,0 0 14px #55deed8a}
.editor-heading h2{margin:8px 0 4px;color:#f1faff;font-size:clamp(27px,3.2vw,36px);line-height:1.3;letter-spacing:-.4px}
.editor-heading>p{color:#9eb8ca;font-size:13px;line-height:1.7}
.profile-editor #profileForm{display:grid;grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr);gap:0 24px;align-items:start}
.profile-editor .editor-layout{display:contents}
.profile-editor .editor-avatar-row{grid-column:1;grid-row:1 / span 4;display:flex;min-height:330px;flex-direction:column;align-items:center;justify-content:center;gap:18px;margin:0;padding:24px 18px;border:1px solid #74d9ec63;border-radius:18px;background:linear-gradient(155deg,#183347c9,#0e2232d9 65%,#102d3a);box-shadow:inset 0 1px #ffffff1c,0 12px 28px #020a1454;backdrop-filter:blur(16px)}
.profile-editor .editor-avatar-stage{position:relative;display:grid;width:170px;height:170px;place-items:center;border:1px solid #8eeaff9c;border-radius:50%;background:radial-gradient(circle at 35% 25%,#9ceaff55,transparent 35%),linear-gradient(145deg,#315b73,#12283c);box-shadow:0 0 0 8px #4dd6ef12,0 0 38px #2ebbe344,inset 0 2px #ffffff48}
.profile-editor .editor-avatar{width:138px;height:138px;border:3px solid #9feafa;border-radius:50%;background:linear-gradient(145deg,#69d9e5,#327ca7 72%,#204c76);color:#f0fcff;font-size:52px;box-shadow:0 10px 28px #020b175c,inset 0 2px #ffffff66}
.profile-editor .editor-avatar.has-avatar-image{overflow:hidden}
.profile-editor .editor-avatar img{width:100%;height:100%;border-radius:inherit;object-fit:cover}
.profile-editor .avatar-camera-pick{position:absolute;right:-1px;bottom:3px;display:grid;width:42px;height:42px;place-items:center;overflow:hidden;border:2px solid #b2f3fb;border-radius:50%;background:linear-gradient(145deg,#a5f4fb,#23a9d0);box-shadow:0 5px 15px #0313219c,0 0 16px #55d7ed8c;cursor:pointer}
.profile-editor .avatar-camera-pick svg{position:static;top:auto;left:auto;width:22px;height:22px;flex:none;margin:0;transform:none}
.profile-editor .avatar-camera-pick .camera-body{fill:#0c4969;stroke:#e2fbff;stroke-width:1.8}
.profile-editor .avatar-camera-pick .camera-lens{fill:#6ee4f1;stroke:#083c5d;stroke-width:2}
.profile-editor .avatar-camera-pick .camera-glint{fill:#fff}
.profile-editor .avatar-camera-pick span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.profile-editor .editor-avatar-field{display:flex;max-width:100%;flex-direction:column;align-items:center;gap:8px;text-align:center}
.profile-editor .editor-avatar-field-title{color:#e2f6fd;font-size:15px;font-weight:700}
.profile-editor .editor-avatar-field input[type=file]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.profile-editor .editor-avatar-row:focus-within .avatar-camera-pick{outline:3px solid #a2f3ff;outline-offset:4px}
.profile-editor .editor-avatar-field small{max-width:240px;color:#9db9ca;font-size:11px;line-height:1.7}
.profile-editor .editor-profile-fields{grid-column:2;grid-row:1 / span 4;min-width:0}
.profile-editor .account-field{margin-bottom:15px;color:#dfedf6;font-size:14px;font-weight:650}
.profile-editor .account-field>span:first-child{margin-bottom:7px}
.profile-editor .account-field input,.profile-editor .account-field select,.profile-editor .account-field textarea{
  min-height:47px;padding:11px 13px;border:1px solid #8eb6c76e;border-radius:10px;
  background:linear-gradient(145deg,#172b3d,#112337);color:#f2f9ff;font-size:14px;
  color-scheme:dark;box-shadow:inset 0 1px #ffffff0c;
}
.profile-editor .account-field input:focus,.profile-editor .account-field select:focus,.profile-editor .account-field textarea:focus,
.profile-editor .handle-control:focus-within{border-color:#54d9f1;background:#12283b;box-shadow:0 0 0 3px #42c9ee24,0 0 19px #34bde51b}
.profile-editor .handle-control{border-color:#8eb6c76e;border-radius:10px;background:#14283b}
.profile-editor .handle-control>span{color:#7ddbec}
.profile-editor .account-field>small{color:#9db8c9;font-size:11px;line-height:1.6}
.profile-editor .account-field textarea{min-height:94px;resize:vertical}
.profile-editor .account-field-row{gap:13px}
.profile-editor .editor-save-note,.profile-editor .editor-actions{grid-column:1/-1}
.profile-editor .editor-save-note{margin-top:18px;padding:12px 14px;border-color:#63c9dd46;border-radius:11px;background:#0e2535;color:#b4cbd8;font-size:12px;line-height:1.65}
.profile-editor .editor-save-note>span{color:#72e1ec}
.profile-editor .editor-actions{grid-template-columns:auto 1fr;margin-top:15px}
.profile-editor .editor-cancel{min-height:48px;border-color:#77a9bf6b;border-radius:11px;background:#142b3b;color:#d7e9f2;font-size:13px}
.profile-editor .editor-actions .auth-submit{min-height:50px;margin:0;border:1px solid #83edff;border-radius:11px;background:linear-gradient(105deg,#138fc8,#21b8df 55%,#248ed0);font-size:14px;box-shadow:0 9px 25px #0685bd4a,inset 0 1px #ffffff66}
.modal.account-modal:has(.auth-shell) :is(button,input,select,a):focus-visible,
.modal.account-modal:has(.profile-editor) :is(button,input,select,textarea,label):focus-visible{outline:3px solid #8aeaff;outline-offset:3px}
@media(max-width:760px){
  .modal.account-modal:has(.auth-shell){width:min(640px,calc(100vw - 24px));max-height:94vh}
  .auth-shell{grid-template-columns:1fr;min-height:0}
  .auth-art{min-height:178px;height:178px;padding:18px 24px}
  .auth-art-center{display:none}
  .auth-wave{right:0;bottom:29px;left:35%;height:56px}
  .auth-art-foot{font-size:9px}
  .auth-panel{max-width:none;padding:25px clamp(21px,6vw,38px) 27px}
  .modal.account-modal:has(.profile-editor){width:min(650px,calc(100vw - 24px));max-height:94vh}
  .profile-editor{padding:27px clamp(20px,5vw,34px) 24px}
  .profile-editor #profileForm{grid-template-columns:minmax(0,1fr);gap:0}
  .profile-editor .editor-avatar-row{grid-column:1;grid-row:auto;min-height:0;flex-direction:row;justify-content:flex-start;margin-bottom:19px;padding:16px}
  .profile-editor .editor-avatar-stage{width:110px;height:110px;flex:none}
  .profile-editor .editor-avatar{width:88px;height:88px;font-size:34px}
  .profile-editor .avatar-camera-pick{right:-1px;bottom:0;width:36px;height:36px}
  .profile-editor .editor-avatar-field{min-width:0;align-items:flex-start;text-align:left}
  .profile-editor .editor-avatar-field small{max-width:100%}
  .profile-editor .editor-profile-fields{grid-column:1;grid-row:auto}
}
@media(max-width:480px){
  .modal.account-modal:has(.auth-shell),.modal.account-modal:has(.profile-editor){width:calc(100vw - 14px);border-radius:18px}
  .modal.account-modal:has(.auth-shell)>.modal-close,.modal.account-modal:has(.profile-editor)>.modal-close{top:10px;right:10px;width:34px;height:34px}
  .auth-art{height:142px;min-height:142px;padding:14px 17px}
  .auth-brand{font-size:16px}
  .auth-brand>span{width:32px;height:32px}
  .auth-panel{padding:20px 17px 22px}
  .auth-panel-head{padding-right:36px}
  .auth-panel h1{font-size:31px}
  .auth-intro{font-size:13px}
  .auth-tabs button{min-height:43px;font-size:13px}
  .auth-panel .account-field-row,.profile-editor .account-field-row{grid-template-columns:1fr;gap:0}
  .auth-panel .account-field-row .account-field,.profile-editor .account-field-row .account-field{margin-bottom:13px}
  .profile-editor{padding:22px 16px 18px}
  .profile-editor .editor-heading{margin-bottom:17px}
  .profile-editor .editor-heading h2{font-size:27px}
  .profile-editor .editor-avatar-row{gap:12px;padding:13px}
  .profile-editor .editor-avatar-stage{width:86px;height:86px}
  .profile-editor .editor-avatar{width:68px;height:68px;font-size:27px}
  .profile-editor .avatar-camera-pick{width:32px;height:32px}
  .profile-editor .avatar-camera-pick svg{width:18px;height:18px}
  .profile-editor .editor-avatar-field-title{font-size:13px}
  .profile-editor .editor-avatar-field small{font-size:10px}
  .profile-editor .editor-actions{grid-template-columns:1fr 2fr;gap:8px}
}
@media(prefers-reduced-motion:reduce){
  .auth-panel .auth-submit{transition:none}
  .auth-panel .auth-submit:hover{transform:none}
}

/* Keep the auth dialog fully inside the viewport, including its close control. */
.modal-backdrop:has(.auth-shell){
  align-items:flex-start;padding:clamp(46px,5vh,58px) 18px 14px;
  overflow-y:auto;overscroll-behavior:contain;
}
.modal.account-modal:has(.auth-shell){
  max-height:calc(100vh - 74px);max-height:calc(100dvh - 74px);
  scroll-padding-top:58px;
}
.modal.account-modal:has(.auth-shell)>.modal-close{top:14px;right:16px;z-index:20}
.auth-shell.auth-register{min-height:0}
.auth-shell.auth-register .auth-art{min-height:610px}
.auth-shell.auth-register .auth-panel{padding-top:42px;padding-bottom:30px}
.auth-shell.auth-register .auth-tabs{margin-bottom:20px}
.auth-shell.auth-register .auth-panel h1{font-size:clamp(32px,3.1vw,39px)}
.auth-shell.auth-register .auth-intro{margin-bottom:17px;font-size:13px}
.auth-shell.auth-register .account-field{margin-bottom:11px}
.auth-shell.auth-register .auth-panel .account-field>span:first-child{font-size:16px;line-height:1.55}
.auth-shell.auth-register .account-field input,.auth-shell.auth-register .account-field select{min-height:44px}
.auth-shell.auth-register .auth-panel .auth-submit{min-height:49px;margin-top:13px}
.auth-shell.auth-register .auth-local-note{margin-top:12px}
@media(max-width:760px){
  .modal-backdrop:has(.auth-shell){padding:48px 12px 12px}
  .modal.account-modal:has(.auth-shell){max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px)}
  .auth-shell.auth-register .auth-art{min-height:154px}
  .auth-shell.auth-register .auth-panel{padding-top:22px;padding-bottom:23px}
}
@media(max-width:480px){
  .modal-backdrop:has(.auth-shell){padding:44px 7px 8px}
  .modal.account-modal:has(.auth-shell){max-height:calc(100vh - 52px);max-height:calc(100dvh - 52px)}
}

/* Register form panel: light frosted glass for clear separation from its art. */
.auth-shell.auth-register .auth-panel{
  background:radial-gradient(ellipse at 94% 2%,#7de8f04a,transparent 37%),linear-gradient(145deg,#e9f9fc 0%,#cceaf3 48%,#e8f5f8 100%);
  color:#142b40;box-shadow:inset 1px 0 #b8efff66;
}
.auth-shell.auth-register .auth-panel .account-status{color:#247a9a}
.auth-shell.auth-register .auth-panel .account-status i{background:#20aac2;box-shadow:0 0 0 4px #20aac21c,0 0 12px #36bed982}
.auth-shell.auth-register .auth-step{color:#537c91}
.auth-shell.auth-register .auth-tabs{border-color:#8ebbc96e;background:#bad8e4a1}
.auth-shell.auth-register .auth-tabs button{color:#45687d}
.auth-shell.auth-register .auth-tabs button.active{background:linear-gradient(110deg,#1ca8d2,#43cbe6);color:#06283e;box-shadow:0 5px 16px #0c8bb53d,inset 0 1px #ffffffa3}
.auth-shell.auth-register .auth-panel h1{color:#102c45;text-shadow:0 2px 18px #54bfe32e}
.auth-shell.auth-register .auth-intro{color:#496b81}
.auth-shell.auth-register .auth-panel .account-field{color:#1d3d55}
.auth-shell.auth-register .auth-panel .account-field input,
.auth-shell.auth-register .auth-panel .account-field select,
.auth-shell.auth-register .auth-panel .account-field textarea{
  border-color:#75a9c57d;background:#f4fbfd;color:#18364d;color-scheme:light;
  box-shadow:inset 0 1px #ffffffc9,0 2px 8px #20516c0b;
}
.auth-shell.auth-register .auth-panel .account-field input::placeholder,
.auth-shell.auth-register .auth-panel .account-field textarea::placeholder{color:#668499}
.auth-shell.auth-register .auth-panel .account-field input:focus,
.auth-shell.auth-register .auth-panel .account-field select:focus,
.auth-shell.auth-register .auth-panel .account-field textarea:focus,
.auth-shell.auth-register .auth-panel .password-control:focus-within{
  border-color:#249fc7;background:#f8fdff;box-shadow:0 0 0 3px #32b7d929,0 0 18px #29a7d122;
}
.auth-shell.auth-register .auth-panel .password-control{border-color:#75a9c57d;background:#f4fbfd}
.auth-shell.auth-register .auth-panel .password-control button{color:#247b9d}
.auth-shell.auth-register .auth-panel .account-field>small{color:#52758a}
.auth-shell.auth-register .auth-panel .account-consent{color:#375b70}
.auth-shell.auth-register .auth-panel .account-consent a,
.auth-shell.auth-register .auth-panel .auth-bottom button{color:#126e9d}
.auth-shell.auth-register .auth-panel .auth-submit{background:linear-gradient(105deg,#1198c9,#24b5d9 55%,#278ac5);color:#fff}
.auth-shell.auth-register .auth-panel .auth-submit:hover{background:linear-gradient(105deg,#20a9dd,#38c5e3 55%,#31a7df)}
.auth-shell.auth-register .auth-panel .auth-error{border-color:#e4aeb3;background:#fff0f1;color:#8d2734}
.auth-shell.auth-register .auth-panel .auth-local-note{border-color:#77afc25e;background:#d7edf3;color:#375b70}
.auth-shell.auth-register .auth-panel .auth-local-note p{color:#47697e}
.auth-shell.auth-register .auth-panel .auth-bottom{color:#527286}

/* Monochrome ticket-inspired account surfaces */
.modal.account-modal:has(.profile-page),
.modal.account-modal:has(.profile-editor){
  border:1px solid #333438;
  border-top:1px solid #48494c;
  border-radius:18px;
  background:#111113;
  color:#f5f5f5;
  box-shadow:0 28px 90px #000b;
  overflow-x:hidden;
  overflow-y:auto;
}
.modal.account-modal:has(.profile-page)>.modal-close,
.modal.account-modal:has(.profile-editor)>.modal-close{
  border-color:#414145;background:#1b1b1e;color:#e6e6e7;box-shadow:none;
}
.modal.account-modal:has(.profile-page) .profile-page{color:#f2f2f3;background:#101012}
.modal.account-modal:has(.profile-page) .profile-cover{
  border-color:#343438;
  background:radial-gradient(ellipse at 70% 20%,#ffffff0b,transparent 42%),repeating-linear-gradient(165deg,transparent 0 18px,#ffffff06 19px 20px),#151517;
}
.modal.account-modal:has(.profile-page) .profile-cover:before{background:linear-gradient(110deg,transparent 15%,#ffffff08 48%,transparent 76%)}
.modal.account-modal:has(.profile-page) .profile-cover-tag{color:#c4c4c7}
.modal.account-modal:has(.profile-page) .profile-soundwave{opacity:.38}
.modal.account-modal:has(.profile-page) .profile-soundwave i{background:#c5c5c8}
.modal.account-modal:has(.profile-page) .profile-identity-card,
.modal.account-modal:has(.profile-page) .profile-work{
  border-color:#333337;border-radius:14px;background:#171719;box-shadow:none;backdrop-filter:none;
}
.modal.account-modal:has(.profile-page) .profile-avatar{
  border:1px solid #55555a;border-radius:50%;background:#252528;color:#f3f3f4;box-shadow:none;
}
.modal.account-modal:has(.profile-page) .profile-identity-copy .account-status{border-color:#414145;background:#222225;color:#d5d5d7}
.modal.account-modal:has(.profile-page) .profile-identity-copy .account-status i{background:#d9d9db;box-shadow:none}
.modal.account-modal:has(.profile-page) .profile-identity-copy h2,
.modal.account-modal:has(.profile-page) .profile-work-heading h3{color:#f6f6f7}
.modal.account-modal:has(.profile-page) .profile-identity-copy p,
.modal.account-modal:has(.profile-page) .profile-bio,
.modal.account-modal:has(.profile-page) .profile-work>p{color:#b6b6ba}
.modal.account-modal:has(.profile-page) .profile-edit-icon,
.modal.account-modal:has(.profile-page) .profile-work-mark{
  border-color:#414145;border-radius:11px;background:#222225;color:#e4e4e6;box-shadow:none;
}
.modal.account-modal:has(.profile-page) .profile-edit-icon:hover{border-color:#85858a;background:#29292c}
.modal.account-modal:has(.profile-page) .profile-location{border-color:#414145;background:#222225;color:#dedee0}
.modal.account-modal:has(.profile-page) .profile-location-note{color:#aaaab0}
.modal.account-modal:has(.profile-page) .profile-stats div{border:1px solid #353539;border-radius:11px;background:#1d1d20;box-shadow:none}
.modal.account-modal:has(.profile-page) .profile-stats b{color:#f4f4f5}
.modal.account-modal:has(.profile-page) .profile-stats span{color:#aaaab0}
.modal.account-modal:has(.profile-page) .profile-work:before{background:linear-gradient(90deg,transparent,#ffffff24,transparent)}
.modal.account-modal:has(.profile-page) .account-eyebrow{border-color:#444449;background:#222225;color:#d2d2d5}
.modal.account-modal:has(.profile-page) .profile-first-work,
.modal.account-modal:has(.profile-page) .profile-work-actions .profile-first-work:first-child,
.modal.account-modal:has(.profile-page) .profile-actions .profile-edit-button{
  border:1px solid #4b4b50;border-radius:10px;background:#252528;color:#f2f2f3;text-shadow:none;box-shadow:none;
}
.modal.account-modal:has(.profile-page) .profile-work-actions .profile-first-work:first-child{font-size:15px}
.modal.account-modal:has(.profile-page) .profile-first-work:hover{transform:translateY(-1px);border-color:#85858a;background:#303034;box-shadow:none}
.modal.account-modal:has(.profile-page) .profile-account-note{border-color:#37373b;background:#1b1b1e;color:#d0d0d3}
.modal.account-modal:has(.profile-page) .profile-account-note>span,
.modal.account-modal:has(.profile-page) .profile-account-note p{color:#b8b8bd}
.modal.account-modal:has(.profile-page) .profile-logout{color:#c3aeb0}
.modal.account-modal:has(.profile-page) .profile-auth-links{border-color:#3a3a3e;color:#aaaab0}
.modal.account-modal:has(.profile-page) .profile-auth-links button{color:#ededee}
.modal.account-modal:has(.profile-page) :is(.profile-edit-icon,.profile-first-work,.profile-actions button,.profile-auth-links button):focus-visible{outline:3px solid #e5e5e7;outline-offset:3px}
.modal.account-modal:has(.profile-editor) .profile-editor{color:#f1f1f2}
.modal.account-modal:has(.profile-editor) .editor-heading h2{color:#f5f5f6}
.modal.account-modal:has(.profile-editor) .editor-heading p,
.modal.account-modal:has(.profile-editor) .editor-avatar-field small,
.modal.account-modal:has(.profile-editor) .editor-profile-fields small{color:#aaaab0}
.modal.account-modal:has(.profile-editor) .editor-avatar-row{border-color:#37373b;background:#19191b;box-shadow:none}
.modal.account-modal:has(.profile-editor) .editor-avatar{border-color:#65656a;background:#252528;color:#f5f5f6;box-shadow:none}
.modal.account-modal:has(.profile-editor) .avatar-camera-pick{border-color:#55555a;background:#29292c;color:#f1f1f2;box-shadow:none}
.modal.account-modal:has(.profile-editor) .account-field{color:#d4d4d7}
.modal.account-modal:has(.profile-editor) .account-field input,
.modal.account-modal:has(.profile-editor) .account-field select,
.modal.account-modal:has(.profile-editor) .account-field textarea,
.modal.account-modal:has(.profile-editor) .handle-control{
  border-color:#414145;background:#1b1b1e;color:#f1f1f2;
}
.modal.account-modal:has(.profile-editor) .account-field input::placeholder,
.modal.account-modal:has(.profile-editor) .account-field textarea::placeholder{color:#85858b}
.modal.account-modal:has(.profile-editor) .account-field input:focus,
.modal.account-modal:has(.profile-editor) .account-field select:focus,
.modal.account-modal:has(.profile-editor) .account-field textarea:focus,
.modal.account-modal:has(.profile-editor) .handle-control:focus-within{border-color:#a1a1a6;background:#202023;box-shadow:0 0 0 3px #ffffff12}
.modal.account-modal:has(.profile-editor) .handle-control>span{color:#a5a5aa}
.modal.account-modal:has(.profile-editor) .editor-save-note{border-color:#37373b;background:#1b1b1e;color:#c4c4c8}
.modal.account-modal:has(.profile-editor) .editor-actions .editor-cancel{border-color:#414145;background:#1c1c1f;color:#e2e2e4}
.modal.account-modal:has(.profile-editor) .editor-actions .auth-submit{border-color:#55555a;background:#e6e6e8;color:#141416;box-shadow:none}
.modal.account-modal:has(.profile-editor) :is(button,input,select,textarea,label):focus-visible{outline:3px solid #e5e5e7;outline-offset:3px}
.modal.account-modal:has(.profile-editor) .handle-control input:focus-visible{outline:0}
.modal.account-modal:has(.profile-editor) .handle-control:has(input:focus-visible){outline:3px solid #e5e5e7;outline-offset:3px}

/* Profile shortcuts: richer cards with clearer actions */
.modal.account-modal:has(.profile-page) .profile-work-actions{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.modal.account-modal:has(.profile-page) .profile-first-work,
.modal.account-modal:has(.profile-page) .profile-work-actions .profile-first-work:first-child{
  position:relative;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 16px;
  min-width:0;
  min-height:74px;
  align-items:center;
  justify-content:initial;
  gap:10px;
  padding:11px 12px;
  border:1px solid #38383c;
  border-radius:12px;
  background:linear-gradient(145deg,#232326,#1b1b1e 68%);
  color:#f2f2f3;
  text-align:left;
  text-decoration:none;
  text-shadow:none;
  box-shadow:inset 0 1px #ffffff08;
}
.modal.account-modal:has(.profile-page) .profile-first-work:before{
  position:absolute;inset:0 auto 0 0;width:2px;border-radius:12px 0 0 12px;
  background:#bdbdc2;content:"";opacity:.55;
}
.modal.account-modal:has(.profile-page) .profile-first-work.profile-music-action{
  grid-column:1/-1;
  min-height:78px;
  background:radial-gradient(ellipse at 0 50%,#ffffff0d,transparent 52%),linear-gradient(110deg,#29292d,#1d1d20 68%);
}
.modal.account-modal:has(.profile-page) .profile-action-icon{
  display:grid;width:38px;height:38px;place-items:center;
  border:1px solid #46464b;border-radius:10px;
  background:#303034;color:#f0f0f2;font-size:19px;
}
.modal.account-modal:has(.profile-page) .profile-action-copy{display:grid;min-width:0;gap:4px}
.modal.account-modal:has(.profile-page) .profile-action-copy b{color:#f3f3f4;font-size:13px;line-height:1.4}
.modal.account-modal:has(.profile-page) .profile-action-copy small{color:#a8a8ae;font-size:10px;font-weight:400;line-height:1.5}
.modal.account-modal:has(.profile-page) .profile-action-arrow{align-self:start;color:#99999f;font-size:16px;line-height:1}
.modal.account-modal:has(.profile-page) .profile-first-work:hover{
  transform:translateY(-2px);border-color:#737379;background:#2a2a2e;
  box-shadow:0 9px 22px #0005,inset 0 1px #ffffff10;
}
.modal.account-modal:has(.profile-page) .profile-first-work:hover .profile-action-arrow{color:#fff;transform:translate(2px,-2px)}
.modal.account-modal:has(.profile-page) .profile-action-arrow{transition:transform .18s ease,color .18s ease}
@media(max-width:420px){
  .modal.account-modal:has(.profile-page) .profile-work-actions{grid-template-columns:1fr;gap:8px}
  .modal.account-modal:has(.profile-page) .profile-first-work.profile-music-action{grid-column:auto}
  .modal.account-modal:has(.profile-page) .profile-first-work,
  .modal.account-modal:has(.profile-page) .profile-work-actions .profile-first-work:first-child{min-height:66px}
}
@media(prefers-reduced-motion:reduce){.modal.account-modal:has(.profile-page) .profile-action-arrow{transition:none}}

/* Keep PROFILE SETTINGS compact, with the photo and fields sharing the dialog. */
.modal.account-modal:has(.profile-editor){
  width:min(620px,calc(100vw - 32px));
  max-width:620px;
  max-height:min(680px,86dvh);
}
.modal.account-modal:has(.profile-editor) .profile-editor{padding:24px 28px 22px}
.modal.account-modal:has(.profile-editor) .editor-heading{margin-bottom:16px}
.modal.account-modal:has(.profile-editor) .editor-heading h2{font-size:25px}
.modal.account-modal:has(.profile-editor) .profile-editor #profileForm{
  grid-template-columns:minmax(170px,.7fr) minmax(0,1.3fr);
  grid-template-rows:auto auto auto auto;
  column-gap:18px;
}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-avatar-row{grid-column:1;grid-row:1;min-height:205px;padding:14px 12px}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-avatar-stage{width:120px;height:120px}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-avatar{width:94px;height:94px;font-size:36px}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-avatar-field{grid-column:1;grid-row:2;align-items:center;margin-top:9px;text-align:center}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-profile-fields{grid-column:2;grid-row:1 / span 2}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-save-note{grid-column:1/-1;grid-row:3}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-actions{grid-column:1/-1;grid-row:4}
.modal.account-modal:has(.profile-editor) .profile-editor .account-field{margin-bottom:9px;font-size:12px}
.modal.account-modal:has(.profile-editor) .profile-editor .account-field>span:first-child{margin-bottom:4px}
.modal.account-modal:has(.profile-editor) .profile-editor .account-field input,
.modal.account-modal:has(.profile-editor) .profile-editor .account-field select{min-height:40px;padding:8px 10px;font-size:12px}
.modal.account-modal:has(.profile-editor) .profile-editor .account-field textarea{min-height:66px;padding:8px 10px;font-size:12px}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-save-note{margin-top:10px;padding:9px 11px;font-size:11px}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-actions{margin-top:10px}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-actions .auth-submit,
.modal.account-modal:has(.profile-editor) .profile-editor .editor-cancel{min-height:42px}
@media(max-width:700px){
  .modal.account-modal:has(.profile-editor){width:min(560px,calc(100vw - 24px));max-height:88dvh}
  .modal.account-modal:has(.profile-editor) .profile-editor{padding:22px 20px 18px}
  .modal.account-modal:has(.profile-editor) .profile-editor #profileForm{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;column-gap:0}
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-avatar-row{grid-column:1;grid-row:1;min-height:0}
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-avatar-field{grid-column:1;grid-row:2}
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-profile-fields{grid-column:1;grid-row:3}
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-save-note{grid-column:1;grid-row:4}
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-actions{grid-column:1;grid-row:5}
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-avatar-stage{width:102px;height:102px}
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-avatar{width:78px;height:78px;font-size:32px}
}
@media(max-width:390px){
  .modal.account-modal:has(.profile-editor){width:calc(100vw - 16px);max-height:calc(100dvh - 24px)}
  .modal.account-modal:has(.profile-editor) .profile-editor{padding:19px 15px 16px}
}
.modal.account-modal:has(.profile-editor) .profile-editor #profileForm{display:block}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-layout{
  display:grid;
  grid-template-columns:minmax(155px,.7fr) minmax(0,1.3fr);
  grid-template-areas:"avatar fields" "actions actions";
  gap:0 18px;
  align-items:start;
}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-avatar-row{grid-area:avatar;min-height:205px}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-profile-fields{grid-area:fields}
.modal.account-modal:has(.profile-editor) .profile-editor .editor-actions{grid-area:actions}
.modal.account-modal:has(.profile-editor) .profile-editor .avatar-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-layout{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"avatar" "fields" "actions";
  }
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-avatar-row{grid-area:avatar;min-height:0}
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-profile-fields{grid-area:fields}
  .modal.account-modal:has(.profile-editor) .profile-editor .editor-actions{grid-area:actions}
}
