.profiles-open .secondary-nav{display:none}.profiles-view{width:min(1180px,calc(100% - 32px));margin:clamp(20px,4vw,56px) auto;min-height:60vh}.profiles-view button{min-height:44px}.profiles-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}.profiles-heading h1{margin:.15em 0;font-size:clamp(2rem,5vw,3.7rem);color:#0f2d4a}.profiles-heading p{max-width:650px}.profile-count{background:#e7f7f5;color:#0b6e7b;border:2px solid #83cbc5;padding:10px 16px;border-radius:999px;font-weight:800;white-space:nowrap}.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.profile-card,.profile-add,.guest-card,.profile-form,.profile-tools,.profile-confirm>div{background:#fffdf6;border:2px solid #d9e6df;border-radius:24px;box-shadow:0 10px 30px rgba(15,45,74,.1)}.profile-card{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:20px;align-items:center}.profile-card h2{margin:0;color:#0f2d4a;overflow-wrap:anywhere}.profile-card .primary{grid-column:1/-1}.profile-summary{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}.profile-summary span{font-size:.78rem;background:#eef7f4;padding:4px 7px;border-radius:8px}.profile-avatar{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:linear-gradient(145deg,#fff1b9,#f7b239);border:3px solid #0b6e7b;font-size:1.45rem;flex:none}.profile-avatar.large{width:76px;height:76px;font-size:2.2rem}.profile-add{min-height:220px;display:grid;place-content:center;text-align:center;gap:6px;border-style:dashed;color:#0b6e7b}.profile-add span{font-size:2rem}.guest-card{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px;padding:18px 22px}.guest-card>div{display:flex;align-items:center;gap:14px}.guest-card h2,.guest-card p{margin:2px 0}.profile-message,.profile-error,.profile-conflict{padding:13px 16px;border-radius:12px}.profile-message{background:#e7f7f5}.profile-error{background:#fff0ee;color:#8e2631}.profile-form-view{max-width:850px}.profile-form{padding:clamp(20px,4vw,38px)}.profile-form>label{display:grid;gap:7px;font-weight:800}.profile-form input[type=text],.profile-form input[name=profileName]{min-height:48px;border:2px solid #9ab8b5;border-radius:12px;padding:8px 12px;font:inherit}.profile-form fieldset{border:0;padding:24px 0}.profile-form legend{font-weight:900;color:#0f2d4a}.avatar-options{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.avatar-options label{display:grid;place-items:center;gap:6px;padding:10px;border:2px solid #d9e6df;border-radius:14px;cursor:pointer}.avatar-options label:has(input:checked){border-color:#0b6e7b;background:#e7f7f5}.avatar-options input{position:absolute;opacity:0}.avatar-options label:focus-within{outline:3px solid #f7b239;outline-offset:2px}.profile-tools{padding:20px;margin-top:18px}.profile-tools div,.parent-profiles div{display:flex;gap:10px;flex-wrap:wrap}.profile-confirm{display:grid;place-items:center}.profile-confirm>div{max-width:520px;padding:36px;text-align:center}.profile-confirm .profile-avatar{margin:auto}.profile-confirm>div>div{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.active-profile-pill{display:flex;align-items:center;gap:10px;margin:0 auto 15px;padding:7px 13px;border-radius:16px;background:rgba(255,253,246,.94);color:#0f2d4a}.active-profile-pill .profile-avatar{width:38px;height:38px;font-size:1.1rem}.active-profile-pill span:not(.profile-avatar){display:grid;text-align:left;font-size:.65rem}.active-profile-pill b{font-size:.95rem}.active-profile-pill small{color:#0b6e7b;font-weight:800}.profile-conflict{display:flex;align-items:center;gap:12px;background:#fff0cf;color:#633e00;border:2px solid #f7b239;margin:12px}.profile-conflict span{flex:1}#profile-nav{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.parent-profiles{border-color:#0b6e7b!important}
@media(max-width:850px){.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.avatar-options{grid-template-columns:repeat(3,1fr)}.profiles-heading{align-items:start;flex-direction:column}.profile-count{align-self:start}}
@media(max-width:520px){.profiles-view{width:min(100% - 20px,1180px);margin:16px auto}.profile-grid{grid-template-columns:1fr}.profile-card{grid-template-columns:auto 1fr}.guest-card{align-items:stretch;flex-direction:column}.guest-card>button{width:100%}.avatar-options{grid-template-columns:repeat(2,1fr)}.profile-conflict{align-items:stretch;flex-direction:column}.profiles-heading h1{font-size:2rem}}

/* v2.14.0 — premium Detektif Cilik portraits */
.profile-avatar-portrait{overflow:hidden;background:linear-gradient(145deg,#dff5f2,#fff3c8);font-size:0}.profile-avatar-portrait img{display:block;width:100%;height:100%;object-fit:contain}.avatar-image-fallback{display:none;font-size:1.3rem}.profile-avatar-portrait.avatar-load-failed img{display:none}.profile-avatar-portrait.avatar-load-failed .avatar-image-fallback{display:grid;place-items:center;width:100%;height:100%}.profile-card .profile-avatar-portrait.large{width:88px;height:88px}.active-profile-pill .profile-avatar-portrait{width:42px;height:42px}.avatar-preview{display:grid;justify-items:center;gap:5px;min-width:116px;padding:12px 16px;border-radius:20px;background:#fffdf6;border:2px solid #83cbc5;box-shadow:0 8px 20px rgba(15,45,74,.1)}.avatar-preview>span{font-size:.68rem;font-weight:900;letter-spacing:.12em;color:#0b6e7b}.avatar-preview .profile-avatar{width:84px;height:84px}.avatar-preview>b{font-size:.82rem;color:#0f2d4a}.avatar-picker{display:grid;gap:24px}.avatar-category{padding:18px;border:2px solid #d9e6df;border-radius:20px;background:#fafffc}.avatar-category>div:first-child{margin-bottom:14px}.avatar-category h2,.avatar-category p{margin:2px 0}.avatar-category h2{font-size:1.1rem;color:#0f2d4a}.avatar-category p{font-size:.84rem;color:#52666d}.portrait-options{grid-template-columns:repeat(4,minmax(0,1fr))}.classic-options{grid-template-columns:repeat(6,minmax(0,1fr))}.avatar-option{position:relative;min-height:126px}.avatar-option .profile-avatar{width:72px;height:72px}.avatar-option.classic-option{min-height:100px}.avatar-option.classic-option .profile-avatar{width:52px;height:52px}.avatar-selected{position:absolute;right:7px;top:7px;display:none;width:24px;height:24px;border-radius:50%;place-items:center;background:#0b6e7b;color:white;font-weight:900;box-shadow:0 2px 6px rgba(15,45,74,.25)}.avatar-option:has(input:checked) .avatar-selected{display:grid}.avatar-option b{font-size:.76rem}.profile-form-view{max-width:980px}
.profile-avatar-portrait{overflow:hidden;background:linear-gradient(145deg,#dff5f2,#fff3c8);font-size:0}.profile-avatar-portrait img{display:block;width:100%;height:100%;object-fit:contain}.avatar-image-fallback{display:none;font-size:1.3rem}.profile-avatar-portrait.avatar-load-failed img{display:none}.profile-avatar-portrait.avatar-load-failed .avatar-image-fallback{display:grid;place-items:center;width:100%;height:100%}.profile-card .profile-avatar-portrait.large{width:88px;height:88px}.active-profile-pill .profile-avatar-portrait{width:42px;height:42px}#profile-nav .profile-avatar{display:inline-grid;width:28px;height:28px;border-width:2px;vertical-align:middle;margin-right:5px}.avatar-preview{display:grid;justify-items:center;gap:5px;min-width:116px;padding:12px 16px;border-radius:20px;background:#fffdf6;border:2px solid #83cbc5;box-shadow:0 8px 20px rgba(15,45,74,.1)}.avatar-preview>span{font-size:.68rem;font-weight:900;letter-spacing:.12em;color:#0b6e7b}.avatar-preview .profile-avatar{width:84px;height:84px}.avatar-preview>b{font-size:.82rem;color:#0f2d4a}.avatar-picker{display:grid;gap:24px}.avatar-category{padding:18px;border:2px solid #d9e6df;border-radius:20px;background:#fafffc}.avatar-category>div:first-child{margin-bottom:14px}.avatar-category h2,.avatar-category p{margin:2px 0}.avatar-category h2{font-size:1.1rem;color:#0f2d4a}.avatar-category p{font-size:.84rem;color:#52666d}.portrait-options{grid-template-columns:repeat(4,minmax(0,1fr))}.classic-options{grid-template-columns:repeat(6,minmax(0,1fr))}.avatar-option{position:relative;min-height:126px}.avatar-option .profile-avatar{width:72px;height:72px}.avatar-option.classic-option{min-height:100px}.avatar-option.classic-option .profile-avatar{width:52px;height:52px}.avatar-selected{position:absolute;right:7px;top:7px;display:none;width:24px;height:24px;border-radius:50%;place-items:center;background:#0b6e7b;color:white;font-weight:900;box-shadow:0 2px 6px rgba(15,45,74,.25)}.avatar-option:has(input:checked) .avatar-selected{display:grid}.avatar-option b{font-size:.76rem}.profile-form-view{max-width:980px}
@media(max-width:850px){.portrait-options{grid-template-columns:repeat(3,minmax(0,1fr))}.classic-options{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-form-view .profiles-heading{display:grid;grid-template-columns:1fr auto;align-items:center}.profile-form-view .profiles-heading>div:first-child{min-width:0}}
@media(max-width:520px){.profile-form-view .profiles-heading{grid-template-columns:1fr}.avatar-preview{grid-template-columns:auto 1fr;justify-items:start;align-items:center;width:100%;box-sizing:border-box}.avatar-preview .profile-avatar{width:58px;height:58px;grid-column:1;grid-row:1/3}.avatar-preview>span:not(.profile-avatar),.avatar-preview>b{grid-column:2}.portrait-options{grid-template-columns:repeat(2,minmax(0,1fr))}.classic-options{grid-template-columns:repeat(3,minmax(0,1fr))}.avatar-category{padding:12px}.avatar-option{min-height:118px}.avatar-option .profile-avatar{width:64px;height:64px}.profile-form{padding:16px}.profile-card .profile-avatar-portrait.large{width:76px;height:76px}}
@media(max-height:540px) and (orientation:landscape){.profiles-view{margin:10px auto}.profile-form-view .profiles-heading{margin-bottom:12px}.profile-form{padding:14px}.avatar-picker{gap:12px}.avatar-category{padding:10px}.avatar-option{min-height:104px}.avatar-option .profile-avatar{width:58px;height:58px}}
