/* 프로필(profile.js) — 동그란 사진 · 계정 메뉴 맨 위 줄 · 프로필 창 · 동그랗게 맞추기. 토큰은 보관함(styles.css/theme.css)과 같다. */
.isle-avatar{flex:0 0 auto;width:var(--size,32px);height:var(--size,32px);border-radius:50%;overflow:hidden;display:inline-grid;place-items:center;background:var(--fill,#1c1c22);color:var(--ink,#f4f4f6);font-weight:800;font-size:calc(var(--size,32px) * .4);line-height:1}
.isle-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.mobile-account-btn.has-profile{padding:0}
.mobile-account-btn.has-profile .isle-avatar{box-shadow:0 0 0 1px var(--line-strong,#383842)}

/* 계정 메뉴 맨 위 줄 */
.isle-profile-row{display:flex!important;align-items:center;gap:10px;width:100%;padding:10px!important;margin-bottom:4px;border:0;border-radius:12px;background:var(--fill,#1c1c22)!important;text-align:left;color:inherit}
.isle-profile-row-text{min-width:0;display:grid;gap:1px}
.isle-profile-row-text b{font-size:15px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.isle-profile-row-text small{font-size:12px;color:var(--muted,#9c9ca6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 컴퓨터 상단 줄의 프로필 단추 */
.profile-button .profile-btn-face{display:inline-grid}

/* 창 */
.isle-profile{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line-strong,#383842);border-radius:22px;background:var(--surface,#101014);color:var(--ink,#f4f4f6);overflow:hidden}
.isle-profile[open]{display:flex;flex-direction:column}
.isle-profile::backdrop{background:rgba(0,0,0,.6)}
.isle-profile-inner{display:flex;flex-direction:column;min-height:0}
.isle-profile-head{display:flex;align-items:baseline;gap:8px;padding:16px 16px 12px;border-bottom:1px solid var(--line,#26262d)}
.isle-profile-head h2{margin:0;font-size:17px;font-weight:800}
.isle-profile-head small{flex:1;color:var(--muted,#9c9ca6);font-size:12.5px}
.isle-profile-x{order:-1;align-self:center;width:34px;height:34px;border:0;border-radius:50%;background:var(--fill,#1c1c22);color:inherit;display:grid;place-items:center;padding:0;cursor:pointer}
.isle-profile-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.isle-profile-body{overflow-y:auto;padding:18px 16px 20px;display:grid;gap:14px;justify-items:center}
.isle-profile-photo{position:relative;width:112px;height:112px;border:0;padding:0;background:none;cursor:pointer}
.isle-profile-cam{position:absolute;right:2px;bottom:2px;width:34px;height:34px;border-radius:50%;background:var(--ink,#f4f4f6);color:var(--bg,#08080a);display:grid;place-items:center;box-shadow:0 0 0 3px var(--surface,#101014)}
.isle-profile-cam svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.isle-profile-name{display:grid;justify-items:center;gap:2px}
.isle-profile-name b{font-size:20px;font-weight:800}
.isle-profile-name span{font-size:12.5px;color:var(--muted,#9c9ca6)}
.isle-profile-field{justify-self:stretch;display:grid;gap:6px}
.isle-profile-field > span{display:flex;justify-content:space-between;font-size:13px;font-weight:700}
.isle-profile-field em{font-style:normal;font-weight:500;color:var(--ink-mute,#6c6c76)}
.isle-profile-field input{height:46px;padding:0 14px;border:1px solid var(--line-strong,#383842);border-radius:14px;background:var(--surface-2,#16161b);color:inherit;font:inherit;font-size:15px;outline:none}
.isle-profile-field input:focus{border-color:var(--ink-dim,#9c9ca6)}
.isle-profile-preview{justify-self:stretch;display:grid;gap:6px}
.isle-profile-preview small{font-size:12px;color:var(--muted,#9c9ca6)}
.isle-profile-preview-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px dashed var(--line-strong,#383842);border-radius:14px}
.isle-profile-preview-row > span:last-child{min-width:0;display:grid;gap:2px}
.isle-profile-preview-row b{font-size:15px;font-weight:800}
.isle-profile-preview-row em{font-style:normal;font-size:13px;color:var(--muted,#9c9ca6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.isle-profile-status{margin:0;justify-self:stretch;font-size:12.5px;color:var(--muted,#9c9ca6)}
.isle-profile-status:empty{display:none}
.isle-profile-status.is-error{color:var(--danger,#f87171)}
.isle-profile-buttons{justify-self:stretch;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.isle-profile-btn{min-height:46px;border:1px solid var(--line-strong,#383842);border-radius:14px;background:transparent;color:inherit;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.isle-profile-btn.is-primary{border-color:var(--ink,#f4f4f6);background:var(--ink,#f4f4f6);color:var(--bg,#08080a);font-weight:800}
.isle-profile-btn.is-danger{color:var(--danger,#f87171)}
.isle-profile-btn:disabled{opacity:.4;cursor:default}

/* 동그랗게 맞추기 */
.isle-profile-crop{display:flex;flex-direction:column;background:#000;color:#f4f4f6}
.isle-profile-crop[hidden]{display:none}
.isle-profile-crop-head{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 8px}
.isle-profile-crop-head button{height:40px;padding:0 10px;border:0;background:none;color:inherit;font:inherit;font-size:15px;cursor:pointer}
.isle-profile-crop-head button[data-crop-use]{font-weight:800}
.isle-profile-stage{position:relative;height:min(62vh,420px);overflow:hidden;touch-action:none;cursor:grab}
.isle-profile-stage canvas{position:absolute;inset:0}
.isle-profile-ring{position:absolute;left:50%;top:50%;width:280px;height:280px;transform:translate(-50%,-50%);border-radius:50%;box-shadow:0 0 0 999px rgba(0,0,0,.62);border:2px solid rgba(255,255,255,.9);pointer-events:none}
.isle-profile-stage small{position:absolute;left:0;right:0;bottom:10px;text-align:center;font-size:12px;color:#c9c9d1;pointer-events:none}
.isle-profile-crop-foot{padding:14px 16px calc(18px + env(safe-area-inset-bottom))}
.isle-profile-crop-foot input{width:100%}
@media (max-width:620px){
  .isle-profile{position:fixed;inset:auto 0 0 0;width:100%;max-width:100%;max-height:92%;margin:0;border-radius:22px 22px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom,0px)}
}
.isle-profile-inner[hidden]{display:none}
