/* Owner portraits always preserve the entire uploaded photograph. */
@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Noto+Serif+KR:wght@500;600;700&display=swap');

.font-sans{font-family:'Noto Sans KR',sans-serif}
.font-serif{font-family:'Noto Serif KR','Batang',serif}
.font-rounded{font-family:'Gowun Dodum','Malgun Gothic',sans-serif}
.owner-profile-main{border:1px solid #cfb6ef;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 8px 32px #44216d07;margin:24px 0 30px}
.owner-profile-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 28px;background:linear-gradient(110deg,#f1e8fc,#faf7ff);border-bottom:1px solid #dfcff1;color:#3f196d}
.owner-profile-heading h2{font-size:30px;line-height:1.35;font-weight:800;overflow-wrap:anywhere}
.owner-profile-heading p{font-size:14px;font-weight:600;text-align:right;overflow-wrap:anywhere}
.owner-profile-body{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:34px;padding:24px;align-items:stretch}
.owner-profile-body>*{min-width:0}
.owner-portrait-stage{position:relative;width:100%;aspect-ratio:4/5;min-height:480px;border-radius:12px;background:#f6f4f8;overflow:hidden;isolation:isolate}
.owner-portrait-stage .owner-portrait-image{position:absolute;max-width:100%;object-fit:contain;border-radius:0;display:block}
.owner-portrait-placeholder{height:100%;min-height:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;color:#9d8db0;padding:28px;background:linear-gradient(145deg,#f5f0fc,#eeebf1)}
.owner-portrait-placeholder svg{width:74px;height:74px;color:#b5a3c8;stroke-width:1.2}
.owner-portrait-placeholder p,.owner-portrait-placeholder span{font-size:13px}
.owner-guidance{display:flex;flex-direction:column;justify-content:center;padding:18px 6px 10px 0}
.owner-guidance-title{font-size:clamp(27px,3vw,40px);font-weight:800;line-height:1.5;color:#401477;letter-spacing:-.05em;overflow-wrap:anywhere;white-space:pre-line;margin:0 0 30px;text-decoration:underline;text-decoration-color:#eee3fb;text-decoration-thickness:10px;text-underline-offset:-2px;text-decoration-skip-ink:none}
.owner-principles{list-style:none;display:grid;gap:16px;padding:0;margin:0;counter-reset:principle}
.owner-principles li{display:flex;align-items:center;gap:17px;min-height:82px;padding:16px 18px;border:1px solid #e3d3f5;background:linear-gradient(100deg,#fcfaff,#f6f1fb);border-radius:13px;font-size:clamp(18px,2vw,24px);line-height:1.6;font-weight:700;overflow-wrap:anywhere;white-space:pre-line}
.owner-principle-number,.owner-principles li>span:first-child{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#9453ce,#6d2caf);color:white;font-family:'Noto Sans KR',sans-serif;font-size:23px;font-weight:800}
.owner-principles li>span:last-child:not(:first-child){min-width:0}
.owner-principles .muted{font-size:16px;font-weight:400;color:#8c8098}
.owner-profile-edit-action{display:flex;justify-content:flex-end;margin-top:28px}
.owner-profile-edit-action button{border-color:#8650c7;background:#fff;min-height:44px}
.owner-profile-credentials{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:26px 0 0;padding:20px 0 0;border-top:1px solid #eee5f6}
.owner-profile-credentials>*{min-width:0;white-space:pre-line;overflow-wrap:anywhere}
.owner-profile-credentials dt{font-size:14px;color:#5c347e;margin-bottom:8px}
.owner-profile-credentials dd{margin:0;font-size:14px;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}
.owner-profile-details{min-width:0}
.owner-subprofile{display:flex;align-items:center;gap:20px;min-width:0;border:1px solid #d8c3ef;border-radius:14px;padding:20px;background:#fff;transition:border-color .18s,box-shadow .18s;text-decoration:none}
.owner-subprofile:hover{border-color:#a678d7;box-shadow:0 5px 18px #5d2c9210}
.owner-subprofile .owner-portrait-stage{flex:0 0 92px;width:92px;min-height:115px;aspect-ratio:4/5;border-radius:9px;align-self:center}
.owner-subprofile .owner-portrait-placeholder{min-height:115px;padding:12px;gap:4px}
.owner-subprofile .owner-portrait-placeholder svg{width:34px;height:34px}
.owner-subprofile .owner-portrait-placeholder p,.owner-subprofile .owner-portrait-placeholder span{font-size:10px}
.owner-subprofile-info{min-width:0;flex:1}
.owner-subprofile-photo{flex:0 0 92px;min-width:0}
.owner-subprofile-info h3,.owner-subprofile-info strong{font-size:19px;color:#382342;line-height:1.5;overflow-wrap:anywhere}
.owner-subprofile-info p{font-size:12px;line-height:1.8;overflow-wrap:anywhere;color:#766783;white-space:pre-line}
.owner-subprofile-info ul{margin:7px 0 0;padding-left:17px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.owner-subprofile-info li::marker{color:var(--primary)}
.owner-subprofile-link{display:block;margin-top:9px;color:var(--primary);font-size:11px;font-weight:600}
.academy-people-list>.owner-subprofile{grid-column:1/-1}
.academy-people .owner-subprofile{gap:17px;padding:15px}
.modal:has(.owner-profile-editor){width:min(1100px,calc(100vw - 32px));max-width:1100px;padding:28px;max-height:calc(100dvh - 32px)}
.owner-profile-editor>p{margin:8px 0 23px}
.owner-editor-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:28px;align-items:start}
.owner-editor-layout>*{min-width:0}
.owner-profile-editor .form-field{margin-bottom:18px;font-size:13px;font-weight:600}
.owner-profile-editor .form-field>input,.owner-profile-editor .form-field>select,.owner-profile-editor .form-field>textarea{margin-top:7px;font-size:13px;font-weight:400}
.owner-profile-editor input[type=file]{font-size:12px;padding:11px;background:#faf7fe}
.owner-profile-editor input[type=range]{height:30px;padding:0;border:none;accent-color:var(--primary);background:transparent;box-shadow:none}
.owner-profile-editor textarea{min-height:82px}
.owner-profile-editor .owner-profile-main{margin:12px 0}
.owner-profile-editor .owner-profile-heading{padding:15px 18px;gap:12px}
.owner-profile-editor .owner-profile-heading h2{font-size:21px}
.owner-profile-editor .owner-profile-heading p{font-size:11px}
.owner-profile-editor .owner-profile-body{gap:18px;padding:16px}
.owner-profile-editor .owner-portrait-stage{min-height:260px}
.owner-profile-editor .owner-guidance{padding:5px 0}
.owner-profile-editor .owner-guidance-title{font-size:23px;margin-bottom:18px;text-decoration-thickness:7px}
.owner-profile-editor .owner-principles{gap:10px}
.owner-profile-editor .owner-principles li{min-height:55px;gap:10px;padding:10px;font-size:14px;border-radius:9px}
.owner-profile-editor .owner-principles li>span:first-child{flex-basis:28px;width:28px;height:28px;border-radius:8px;font-size:16px}
.owner-profile-editor .owner-profile-credentials{padding:16px 18px;gap:15px}
.owner-profile-editor .owner-profile-credentials dd{font-size:12px}
.owner-profile-editor .form-actions{flex-wrap:wrap;gap:10px;margin-top:20px}
.owner-editor-photo-controls{padding:16px;border:1px solid var(--border);border-radius:12px;background:#fcfaff;margin:14px 0 22px}
.owner-editor-photo-controls .form-field:last-child{margin-bottom:0}
.owner-editor-live-preview>h3{font-size:14px;color:#64467e;margin-bottom:10px}
.owner-editor-live-preview{position:sticky;top:0}
.owner-editor-confirm>h3{font-size:19px;margin-bottom:6px;color:#4f267c}
.owner-editor-sub-preview{max-width:560px;margin:22px 0}
.owner-editor-sub-preview h4{font-size:14px;margin-bottom:12px;color:#64467e}
.owner-editor-confirm .owner-profile-main .owner-portrait-stage{min-height:400px}
.owner-editor-confirm .owner-profile-main .owner-guidance-title{font-size:32px}
.owner-editor-confirm .owner-principles li{font-size:20px;min-height:72px}
.owner-profile-editor .owner-subprofile .owner-portrait-stage{min-height:115px}
@media(max-width:900px){
  .owner-profile-body{gap:24px;padding:20px;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
  .owner-portrait-stage{min-height:420px}
  .owner-guidance-title{font-size:29px}
  .owner-principles li{font-size:19px;padding:14px;gap:12px}
  .owner-editor-layout{grid-template-columns:1fr}
}
@media(max-width:640px){
  .owner-profile-main{margin-top:20px;border-radius:16px}
  .owner-profile-heading{align-items:flex-start;flex-direction:column;gap:8px;padding:19px 20px}
  .owner-profile-heading h2{font-size:26px}
  .owner-profile-heading p{text-align:left;font-size:12px}
  .owner-profile-body{grid-template-columns:1fr;gap:27px;padding:16px}
  .owner-portrait-stage{min-height:390px;aspect-ratio:3/4}
  .owner-guidance{padding:0 2px 7px}
  .owner-guidance-title{font-size:27px;margin-bottom:23px}
  .owner-principles{gap:12px}
  .owner-principles li{min-height:72px;font-size:18px;gap:13px;padding:14px}
  .owner-principles li>span:first-child{flex-basis:35px;width:35px;height:35px;font-size:20px;border-radius:10px}
  .owner-profile-edit-action{margin-top:22px}
  .owner-profile-credentials{grid-template-columns:1fr;padding:20px;gap:18px}
  .owner-subprofile{gap:16px;padding:16px}
  .owner-subprofile .owner-portrait-stage{flex-basis:80px;width:80px;min-height:105px;aspect-ratio:4/5}
  .owner-subprofile-photo{flex-basis:80px}
  .owner-subprofile-info h3,.owner-subprofile-info strong{font-size:17px}
  .modal:has(.owner-profile-editor){width:calc(100vw - 20px);padding:20px;max-height:calc(100dvh - 20px)}
  .owner-profile-editor .owner-profile-heading{gap:5px}
  .owner-profile-editor .owner-profile-body{grid-template-columns:1fr}
  .owner-profile-editor .owner-portrait-stage{min-height:320px}
  .owner-profile-editor .owner-subprofile .owner-portrait-stage{min-height:105px}
  .owner-profile-editor .owner-guidance-title{font-size:25px}
  .owner-profile-editor .owner-principles li{font-size:16px}
  .owner-profile-editor .form-actions button{flex:1}
}

.owner-photo-gallery,.owner-editor-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.owner-photo-gallery img,.owner-editor-gallery img{width:100%;height:110px;object-fit:contain;border-radius:8px;background:#f7f4fc}.owner-editor-gallery>div{display:flex;flex-direction:column;align-items:center}.owner-photo-gallery a:focus-visible{outline:3px solid #7136ef}

.owner-photo-carousel [data-owner-slide][hidden]{display:none}.owner-photo-carousel .owner-portrait-stage:has([data-owner-step]){cursor:pointer}.owner-photo-prev,.owner-photo-next{position:absolute;z-index:2;top:calc(50% - 22px);width:40px;height:44px;border:0;border-radius:10px;background:#ffffffdd;color:#40206b;font-size:30px;cursor:pointer}.owner-photo-prev{left:8px}.owner-photo-next{right:8px}.owner-photo-gallery button{padding:0;border:2px solid transparent;border-radius:8px;background:transparent;cursor:pointer}.owner-photo-gallery button[aria-pressed="true"]{border-color:#7c3aed}.owner-photo-gallery button img{width:62px;height:70px;object-fit:cover;border-radius:6px}
