.profile-summary{display:grid;grid-template-columns:136px minmax(0,1fr);gap:20px;align-items:start;margin-bottom:24px}
#profile-panel #choose-tambay{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;height:auto;padding:12px;border-radius:10px;cursor:pointer}
#choose-tambay img{width:100%;height:136px;object-fit:contain}
#choose-tambay span{font-size:15px;line-height:1.3;text-align:center}
.profile-identity{min-width:0}.profile-identity .field:first-child{margin-top:0}.profile-identity input{box-sizing:border-box}
#tambay-chooser{box-sizing:border-box;width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid var(--paper-line);border-radius:22px;background:var(--paper);color:var(--paper-ink);overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
#tambay-chooser::-webkit-scrollbar{display:none}#tambay-chooser::backdrop{background:var(--paper-dim)}
#tambay-chooser header{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:20px}#tambay-chooser h2{font:400 28px Maragsa,Georgia,serif;margin:0}
#tambay-chooser button{position:static;inset:auto;opacity:1;transform:none;box-sizing:border-box;background:var(--paper-field);color:var(--paper-ink);border:1px solid var(--paper-line);backdrop-filter:none;font:inherit;cursor:pointer}
#tambay-chooser .chooser-close{width:44px;height:44px;flex:none;border-radius:50%;font-size:24px;background:transparent}
#tambay-chooser .peep-choice{width:100%;height:120px;padding:8px;border-radius:10px;display:grid;place-items:center}
#tambay-chooser .peep-choice img{width:100%;height:104px;object-fit:contain}
/* Edit avatar fills the free cells after the last Peep, as a tile the same height as the Peeps. */
#tambay-chooser .peep-edit{grid-column:auto/span 2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;height:120px;margin:0;border-radius:10px;font-weight:600}
#tambay-chooser .peep-edit svg{width:26px;height:26px}#tambay-chooser .peep-edit:hover{border-color:var(--paper-ink)}
#profile-interests{margin-top:24px;padding-top:20px;border-top:1px dashed var(--paper-line)}#profile-interests[hidden]{display:none}
#profile-interests>label{font-weight:600}#profile-interests label span{font-weight:400;margin-left:8px}#profile-interests p{font-size:14px;margin:8px 0 12px;line-height:1.4}
.interest-entry{display:flex;gap:8px;margin:12px 0}.interest-entry input{box-sizing:border-box;width:100%;min-width:0;min-height:44px}
#profile-panel #interest-input,#profile-panel #peep-motion{background:var(--paper-field);color:var(--paper-ink);border:1px solid var(--paper-line);border-radius:10px;padding:10px;font:inherit;box-sizing:border-box}
#profile-panel #peep-motion{appearance:none;-webkit-appearance:none;color-scheme:light}
:root[data-time="night"] #profile-panel #peep-motion{color-scheme:dark}
.interest-chips{display:flex;flex-wrap:wrap;gap:8px}
#profile-panel #profile-interests button{width:auto;height:auto;min-height:44px;padding:8px 14px;border-radius:24px;white-space:normal;cursor:pointer}
#profile-panel #profile-interests button:disabled{opacity:.55;cursor:default}
#profile-panel #profile-interests .interest-chip{min-height:36px;padding:6px 12px;overflow-wrap:anywhere;max-width:100%}
#profile-panel .motion-choice{margin-top:24px}#profile-panel #profile-error:empty{display:none}
#tambay-chooser button:focus-visible,#choose-tambay:focus-visible,#profile-interests button:focus-visible{outline:2px solid var(--paper-ink);outline-offset:3px}
@media(max-width:480px){.profile-summary{grid-template-columns:100px minmax(0,1fr);gap:12px}#choose-tambay img{height:104px}#profile-panel #choose-tambay{padding:8px}#tambay-chooser{padding:18px}#tambay-chooser .peep-choice{height:96px}#tambay-chooser .peep-choice img{height:80px}}
