:root { --ink: #0b1930; --blue: #113b61; --blue-dark: #061d35; --green: #417d59; --green-light: #eaf4ec; --muted: #687989; --line: #dce4e7; --surface: #f4f7f6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 8% 12%, rgba(114,175,134,.14), transparent 28%), var(--surface); color: var(--ink); font-family: "Noto Sans KR", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 6px; background: var(--blue-dark); color: #fff; }
.skip-link:focus { top: 16px; }
.mypage-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(11,25,48,.08); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.mypage-header-inner { width: min(1120px, calc(100% - 40px)); height: 82px; display: flex; align-items: center; justify-content: space-between; margin: auto; }
.mypage-logo img { display: block; width: 172px; height: auto; max-height: 46px; object-fit: contain; }
.mypage-header-actions { display: flex; align-items: center; gap: 9px; }
.mypage-header-actions a, .mypage-header-actions button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.mypage-header-actions button { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; }
.mypage-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 66px 0 90px; }
.mypage-intro { margin-bottom: 34px; }
.mypage-intro > p, .profile-info-heading p { margin: 0 0 7px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.mypage-intro h1 { margin: 0 0 10px; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.06em; }
.mypage-intro > span { color: var(--muted); font-size: 14px; }
.mypage-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: start; gap: 24px; }
.mypage-layout[hidden], .mypage-toast[hidden] { display: none; }
.profile-photo-card, .profile-info-card { border: 1px solid rgba(11,25,48,.09); border-radius: 20px; background: #fff; box-shadow: 0 22px 55px rgba(11,25,48,.08); }
.profile-photo-card { display: flex; flex-direction: column; align-items: center; padding: 34px 28px; text-align: center; }
.profile-photo-card h2 { align-self: flex-start; margin: 0 0 28px; font-size: 18px; }
.profile-photo { width: 150px; height: 150px; display: grid; place-items: center; overflow: hidden; margin-bottom: 18px; border: 5px solid #fff; border-radius: 50%; background: linear-gradient(145deg, var(--green), #6aa67d); color: #fff; box-shadow: 0 18px 42px rgba(65,125,89,.24), 0 0 0 1px var(--line); font-size: 48px; font-weight: 900; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo img[hidden], .profile-photo span[hidden] { display: none; }
.profile-photo-card > strong { font-size: 20px; }
.profile-photo-card > span { max-width: 100%; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-photo-actions { display: flex; gap: 8px; margin-top: 24px; }
.profile-photo-actions label, .profile-photo-actions button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 0; border-radius: 8px; background: var(--blue-dark); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.profile-photo-actions button { background: #edf1f3; color: #526474; }
.profile-photo-actions button[hidden] { display: none; }
.profile-photo-card > p { margin: 12px 0 0; color: #8a98a6; font-size: 10px; }
.profile-photo-card .profile-photo-status { min-height: 18px; margin-top: 8px; color: var(--green); font-size: 11px; font-weight: 700; }
.profile-info-card { padding: 38px 42px 40px; }
.profile-info-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.profile-info-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.profile-info-heading > span { color: var(--muted); font-size: 11px; }
#profile-form { display: grid; gap: 20px; padding-top: 28px; }
#profile-form label { display: grid; gap: 8px; }
#profile-form label > span { color: #304257; font-size: 12px; font-weight: 800; }
#profile-form input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #ccd7dd; border-radius: 8px; outline: 0; color: var(--ink); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
#profile-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,59,97,.1); }
#profile-form small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.profile-save { height: 52px; margin-top: 4px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font-weight: 850; cursor: pointer; transition: transform .2s, background .2s; }
.profile-save:hover { background: #316d49; transform: translateY(-1px); }
.profile-save:disabled { opacity: .6; cursor: wait; transform: none; }
.profile-form-status { min-height: 20px; margin: -3px 0 0; color: var(--green); font-size: 12px; font-weight: 700; text-align: center; }
.profile-form-status.error, .profile-photo-status.error { color: #bd2d38; }
.mypage-loading { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); }
.mypage-loading[hidden] { display: none; }
.mypage-loading span { width: 34px; height: 34px; border: 3px solid #dce5e1; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.mypage-loading p { margin: 0; font-size: 13px; }
.mypage-toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: min(360px, calc(100% - 48px)); padding: 14px 18px; border-radius: 10px; background: var(--blue-dark); color: #fff; box-shadow: 0 16px 40px rgba(3,19,37,.25); font-size: 13px; font-weight: 750; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
    .mypage-header-inner, .mypage-main { width: min(100% - 28px, 1120px); }
    .mypage-header-inner { height: 70px; }
    .mypage-logo img { width: 145px; }
    .mypage-header-actions a { display: none; }
    .mypage-main { padding: 42px 0 65px; }
    .mypage-layout { grid-template-columns: 1fr; }
    .profile-info-card { padding: 30px 22px; }
    .profile-info-heading { align-items: flex-start; flex-direction: column; }
}
