/* 운영 화면 UI 수정(2026-11-24): 기존 스타일 뒤에 불러와 필요한 부분만 덮어씁니다. */

/* 1. 졸업 시기: 2단 입력 칸 안에 끼어 연도·학기가 잘리던 문제. 한 줄 전체를 쓰고, 좁으면 연도 아래로 학기를 내립니다. */
.curriculum-date-settings .graduation-term,.campus-form-grid .graduation-term{grid-column:1/-1}
.graduation-term-row select{text-overflow:clip}
@media(max-width:440px){.graduation-term-row{grid-template-columns:1fr}}

/* 2. 진로 칩: 가로 스크롤로 오른쪽이 잘리던 칩을 줄바꿈합니다. */
.career-role-chips{flex-wrap:wrap;overflow:visible;scroll-snap-type:none;margin:0;padding:2px 0 4px}
.career-role-chips>*{max-width:100%;white-space:normal;text-align:center}

/* 3. 카드 보기의 고정 이전·다음 버튼이 카드 제목을 덮지 않게 고정을 풉니다. */
.career-card-nav{position:static!important}

/* 4. 하양이 버튼: 작게, 탭 바 바로 위 오른쪽 끝에. 스크롤하는 동안은 반투명. 본문 끝은 버튼에 가리지 않게 여백을 둡니다. */
.hy-fab{transition:opacity .2s ease,transform .2s ease}
.hy-fab.is-scrolling{opacity:.35}
.hy-fab.is-scrolling:hover,.hy-fab.is-scrolling:focus-visible{opacity:1}
@media(max-width:800px){
  .hy-fab{right:max(10px,env(safe-area-inset-right));bottom:calc(74px + env(safe-area-inset-bottom));min-width:42px;min-height:42px;width:42px;height:42px;padding:3px}
  .hy-fab .hy-face{width:34px;height:34px;font-size:15px}
  main{padding-bottom:56px}
}
@media(prefers-reduced-motion:reduce){.hy-fab{transition:none}}

/* 6. 언어 선택: 지구본 아이콘 하나로. 실제 목록은 투명한 기본 선택 상자가 열어 줍니다. */
#global-language .campus-field{position:relative;width:44px!important;height:44px;display:block;border:1px solid #e1e7ea;border-radius:50%;background:#fff;cursor:pointer}
#global-language .campus-field::before{content:"";position:absolute;inset:0;margin:auto;width:22px;height:22px;background:currentColor;color:#3c4f5d;pointer-events:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z'/%3E%3C/svg%3E") center/contain no-repeat}
#global-language .campus-field:focus-within{outline:3px solid #0b6f6b;outline-offset:2px}
#global-language select{position:absolute;inset:0;width:100%;height:100%;min-height:0;opacity:0;cursor:pointer;font-size:16px;border:0;padding:0}

/* 7. 진로 한눈에 보기 */
.career-view-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#eef3f3;border-radius:14px;margin:12px 0}
.career-view-option{min-height:42px;border:0;border-radius:10px;background:transparent;color:#4a5b69;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.career-view-option[aria-pressed="true"]{background:#fff;color:#0b5f5c;box-shadow:0 1px 3px #183b501f}
.career-overview{background:#fff;border:1px solid #dfe8e9;border-radius:22px;box-shadow:0 6px 22px #183b500d;padding:20px 18px;display:grid;gap:14px;min-width:0;border-top:5px solid #0b6f6b}
.career-ov-title .career-card-role{margin:0 0 2px}
.career-ov-title h3{margin:0;font-size:1.3rem;line-height:1.35;color:#14223b;word-break:keep-all;overflow-wrap:anywhere}
.career-ov-list{list-style:none;margin:0;padding:0;display:grid}
.career-ov-row{display:grid;gap:8px;padding:14px 0;border-top:1px solid #e6ecee;min-width:0}
.career-ov-head{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.career-ov-step{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#e6f3f0;color:#0b5f5c;font-size:13px;font-weight:800}
.career-ov-name{font-size:16px;font-weight:800;color:#14223b}
.career-ov-question{font-size:13px;color:#6c7a87;flex:1 1 auto;min-width:0}
.career-ov-done{flex:none;min-height:0;min-width:0;padding:0;line-height:1;margin-left:auto;width:32px;height:32px;border-radius:50%;border:2px solid #b9cdcb;background:#fff;color:#fff;font-weight:800;font-size:15px;cursor:pointer;position:relative}
.career-ov-done::after{content:"";position:absolute;inset:-6px}
.career-ov-done[aria-pressed="true"]{background:#0b6f6b;border-color:#0b6f6b}
.career-ov-row[data-done="true"] .career-ov-step{background:#0b6f6b;color:#fff}
.career-ov-body{display:grid;gap:10px;min-width:0}
.career-ov-lead{margin:0;font-size:15px;line-height:1.6;color:#2b3b4c;word-break:keep-all;overflow-wrap:anywhere}
.career-ov-group{display:grid;gap:6px;min-width:0}
.career-ov-label{font-size:12.5px;font-weight:750;color:#5c6b79}
.career-overview .career-chips{gap:6px}
.career-overview .career-chips li{padding:6px 11px;font-size:14px;border-radius:10px}
.career-ov-notices{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.career-ov-notice{display:grid;gap:3px;width:100%;min-height:44px;padding:9px 12px;border:1px solid #e1e9ea;border-radius:12px;background:#fbfcfd;text-align:left;font:inherit;cursor:pointer}
.career-ov-notices li[data-period="upcoming"] .career-notice-meta{color:#a94810;font-weight:700}
.career-ov-more{margin:0;font-size:13px;color:#6c7a87}
.career-ov-programs{min-height:48px;border:0;border-radius:14px;background:#0b6f6b;color:#fff;font:inherit;font-weight:750;font-size:15px;cursor:pointer}
@media(min-width:720px){
  .career-overview{padding:24px 26px}
  .career-ov-row{grid-template-columns:190px minmax(0,1fr);gap:16px;align-items:start}
  .career-ov-head{align-items:flex-start}
  .career-ov-question{flex-basis:100%;order:3;padding-left:32px}
  .career-ov-done{width:28px;height:28px}
}

/* 8. 관심·내 정보: 모바일에서는 하단 탭에서 빼고 헤더 지구본 옆 아이콘으로. 넓은 화면은 기존 상단 메뉴를 그대로 씁니다. */
.header-icons{display:none}
@media(max-width:800px){
  .header-icons{display:flex;gap:6px;flex:none}
  #global-language{margin-left:auto}
  .header-icon-btn{display:grid;place-items:center;width:44px;height:44px;min-height:0;padding:0;border:1px solid #e1e7ea;border-radius:50%;background:#fff;color:#3c4f5d;cursor:pointer}
  .header-icon-btn svg{width:22px;height:22px}
  .header-icon-btn[aria-current="page"]{background:#087c79;border-color:#087c79;color:#fff}
  .header-icon-btn:focus-visible{outline:3px solid #0b6f6b;outline-offset:2px}
  #mobile-nav{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  .topbar{gap:6px}
}

/* 9. 저장 일정 달력의 '확인할 달' 줄(2026-11-25): 좁은 화면에서 월 입력 칸이 양옆 버튼과 겹치고 '이번 달'이 잘리던 문제.
   월 입력 칸은 한 줄 전체를 쓰고, 이전·이번 달·다음 버튼은 그 아래 한 줄에 둡니다. */
.saved-notice-calendar .saved-calendar-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;justify-content:stretch;gap:8px;margin:16px 0}
.saved-notice-calendar .saved-calendar-controls .campus-field{grid-column:1/-1;grid-row:1;width:100%;max-width:none;min-width:0;margin:0}
.saved-notice-calendar .saved-calendar-controls input{width:100%;min-width:0;max-width:100%;text-align:center}
.saved-notice-calendar .saved-calendar-controls .info-arrow{grid-row:2;width:44px;padding:0}
.saved-notice-calendar .saved-calendar-controls .info-arrow:first-child{grid-column:1}
.saved-notice-calendar .saved-calendar-controls .campus-field+.info-arrow{grid-column:3}
.saved-notice-calendar .saved-calendar-controls .campus-btn{grid-column:2;grid-row:2;min-width:0;white-space:nowrap;font-size:14px;padding:8px 12px}

/* 10. 하양이 버튼이 저장 일정 달력의 날짜 칸(토요일 열, 예: 21일)을 덮던 문제(2026-11-25).
   달력이 버튼 자리에 오면 hayangi.js가 is-tucked를 붙이고, 버튼은 화면 오른쪽 끝에 20px만 남긴 손잡이가 됩니다. 손잡이를 눌러도 그대로 열립니다. */
.hy-fab.is-tucked{transform:translateX(calc(100% - 20px + max(10px,env(safe-area-inset-right))));opacity:.92;box-shadow:-2px 2px 8px #183b5033}
.hy-fab.is-tucked .hy-face{transform:translateX(-6px)}
@media(min-width:801px){.hy-fab.is-tucked{transform:translateX(calc(100% - 24px + max(16px,env(safe-area-inset-right))))}}
/* 11. 첫 방문 관심 설정 팝업(#sheet, 2026-11-25): 모바일에서 브라우저 기본 max-width 때문에 왼쪽에 붙고 오른쪽만 36px 비던 문제.
   양옆·아래 여백을 같게 띄운 카드로 만들고, 위쪽은 헤더가 보이게 남깁니다. 배경은 옅게 흐려 뒤에 메인 화면이 있다는 것이 보이게 합니다.
   제목은 가운데, 시작하기·나중에 버튼은 한 줄로 묶어 팝업 아래에 고정합니다. */
#sheet::backdrop{background:rgb(20 37 39 / 30%);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
#sheet{max-width:none;border:0;box-shadow:0 18px 50px #12303340,0 2px 8px #1230331f}
#sheet .dialog-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;padding:14px 16px}
#sheet .dialog-header h2{grid-column:2;text-align:center;font-size:clamp(1.05rem,4.6vw,1.3rem);word-break:keep-all}
#sheet .dialog-header h2:focus{outline:none}
#sheet .dialog-header .close-button{grid-column:3;border-radius:50%;font-size:1.4rem;line-height:1}
#sheet .io-survey .io-details{margin:0;padding:0;border-top:1px solid #dde6e4;border-bottom:1px solid #dde6e4}
#sheet .io-survey .io-details:not([hidden])+.io-details{border-top:0}
#sheet .io-survey .io-details>summary{min-height:48px;line-height:48px}
#sheet .io-survey .io-details[open]{padding-bottom:12px}
#sheet .io-survey>.campus-muted{text-align:center;font-size:.82rem}
#sheet .io-sheet-actions{position:sticky;bottom:0;z-index:1;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin:0 -24px -24px;padding:12px 24px max(14px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e3ebe8}
#sheet .io-sheet-actions button{min-height:48px;margin:0;font-weight:700;white-space:nowrap}
#sheet .io-sheet-actions .campus-btn{padding:0 18px}
#sheet .io-sheet-actions .campus-primary{padding:0 12px}
@media(max-width:360px){#sheet .io-sheet-actions button{font-size:14px}#sheet .io-sheet-actions .campus-btn{padding:0 12px}}
@media(max-width:600px){
  #sheet{width:calc(100% - 24px);max-height:calc(100dvh - 96px);margin:auto auto max(12px,env(safe-area-inset-bottom));border-radius:20px}
  #sheet .io-sheet-actions{margin:0 -16px -18px;padding:12px 16px max(14px,env(safe-area-inset-bottom))}
}

/* 12. iOS Safari 날짜·월 입력 칸 넘침(2026-11-25): Safari는 type=date·month 입력 칸에 자체 최소 폭과 기본 모양을 둬서
   width:100%를 줘도 카드 밖으로 튀어나갔습니다(저장 일정 달력의 '확인할 달', '날짜 직접 지정', 학사 일정 '확인할 월').
   기본 모양을 끄고 부모 폭 안에 가두며, 안쪽 값 표시 영역의 최소 폭도 없앱니다. 누르면 기존처럼 기기 달력 선택기가 열립니다. */
input[type=date],input[type=month]{-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;background-color:#fff;color:inherit}
input[type=date]::-webkit-date-and-time-value,input[type=month]::-webkit-date-and-time-value{min-width:0;margin:0;text-align:inherit}
.campus-field:has(>input[type=date]),.campus-field:has(>input[type=month]){min-width:0;max-width:100%}
/* iOS에서는 기본 모양을 끄면 누를 수 있다는 표시가 사라지므로 오른쪽에 달력 아이콘을 그립니다(크롬은 자체 아이콘이 있어 제외). */
@supports(-webkit-touch-callout:none){
  input[type=date],input[type=month]{padding-right:40px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6f7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") right 12px center/20px no-repeat}
  .saved-notice-calendar .saved-calendar-controls input{padding-left:40px}
}

/* 13. 공지 자세히 보기 본문(2026-11-25): 요약 상자·신청 카드를 빼고 공지 원문(포스터·글)을 그대로 보여 줍니다. */
.io-notice-body{display:grid;gap:14px;margin-top:18px;min-width:0}
.io-notice-body .io-body{margin:0;font-size:15px;line-height:1.75;color:#24384a;word-break:keep-all;overflow-wrap:anywhere}
