/* ===================================================================
   SessionHub · Dark Theme (design.pen 퍼블리싱)
   디자인 토큰 + 공통 컴포넌트
   =================================================================== */

/* 기본 폰트: Pretendard (한글/영문). 숫자는 JetBrains Mono(--font-data) 유지 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
  /* surfaces */
  --d-bg:        #0E1220;
  --d-surface:   #161C2E;
  --d-surface2:  #1C2338;
  --d-border:    #28304A;
  /* text */
  --d-fg:        #EAECF4;
  --d-fg2:       #9AA3BC;
  --d-muted:     #5C6580;
  /* accents */
  --d-primary:      #8B7CFF;
  --d-primary-soft: #2A2952;
  --d-cyan:         #35D6E6;
  --d-cyan-soft:    #13384A;
  --d-success:      #34D399;
  --d-success-soft: #123A30;
  --d-danger:       #F87171;
  --d-warning:      #FBBF24;
  --d-warning-soft: #3D3416;
  /* radius */
  --d-radius:    12px;
  --d-radius-lg: 16px;
  --d-radius-full: 9999px;
  /* fonts */
  --pretendard:   "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  --font-heading: "Space Grotesk", var(--pretendard);
  --font-body:    var(--pretendard);
  --font-data:    "JetBrains Mono", monospace;
  /* gradient (purple -> cyan, 60deg) */
  --grad-pc: linear-gradient(60deg, #8B7CFF 0%, #35D6E6 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--d-bg);
  color: var(--d-fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* lucide icons */
[data-lucide] { stroke-width: 2; width: 18px; height: 18px; }

/* -------------------------------------------------------------------
   Auth layout (로그인 / 회원가입)
   ------------------------------------------------------------------- */
.auth-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px;
}

/* 배경 글로우 */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.glow--purple { width: 620px; height: 620px; background: #8B7CFF; opacity: .14; top: -120px; right: 8%; }
.glow--cyan   { width: 560px; height: 560px; background: #35D6E6; opacity: .12; bottom: -60px; left: -80px; }

/* 카드 */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius-lg);
  box-shadow: 0 24px 60px #8B7CFF22;
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.auth-card--sm { max-width: 440px; gap: 22px; }
.auth-card--lg { max-width: 560px; gap: 20px; }

/* 로고 */
.brand {
  display: flex;
  justify-content: center;
  gap: 1px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -.3px;
}
.brand--lg { font-size: 22px; }
.brand--md { font-size: 20px; }
.brand .b-a { color: var(--d-fg); }
.brand .b-b { color: var(--d-primary); }

/* 타이틀 블록 */
.auth-head { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.auth-head h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--d-fg);
}
.auth-head p { margin: 0; font-size: 14px; font-weight: 500; color: var(--d-fg2); }

/* 폼 */
.form { display: flex; flex-direction: column; }
.form--login { gap: 16px; }
.form--register { gap: 13px; }

.field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.field--tight { gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--d-fg2); }
.field--tight > label { font-size: 12.5px; }

/* 입력 박스 */
.input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--d-surface2);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input--tight { padding: 11px 14px; }
.input:focus-within {
  border-color: var(--d-primary);
  box-shadow: 0 0 0 3px #8B7CFF22;
}
.input [data-lucide] { color: var(--d-muted); flex: none; width: 17px; height: 17px; }
.input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  color: var(--d-fg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}
.input--tight input { font-size: 13.5px; }
.input input::placeholder { color: var(--d-muted); font-weight: 500; }

/* 가로 묶음 (회원가입 2열) */
.row { display: flex; gap: 14px; }

/* 회원가입 역할별 추가 항목 셀렉트 */
.fselect {
  width: 100%;
  background: var(--d-surface2);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 11px 14px;
  color: var(--d-fg);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}
.fselect:focus { border-color: var(--d-primary); box-shadow: 0 0 0 3px #8B7CFF22; }
.role-extra { display: flex; flex-direction: column; gap: 16px; }
.role-extra[hidden] { display: none !important; }

/* 세그먼트 (역할 선택) */
.segment {
  display: flex;
  background: var(--d-surface2);
  border-radius: var(--d-radius);
  padding: 4px;
}
.segment button {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: var(--d-radius);
  padding: 9px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--d-fg2);
  transition: background .15s ease, color .15s ease;
}
.segment button.is-active {
  background: var(--d-primary-soft);
  color: var(--d-primary);
  font-weight: 600;
}

/* 안내 노트 */
.note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--d-primary-soft);
  border-radius: var(--d-radius);
  padding: 12px 14px;
  color: var(--d-primary);
  font-size: 12.5px;
  font-weight: 500;
}
.note [data-lucide] { flex: none; color: var(--d-primary); width: 16px; height: 16px; }

/* 그라데이션 버튼 */
.btn-grad {
  width: 100%;
  border: none;
  border-radius: var(--d-radius);
  padding: 13px 0;
  background: var(--grad-pc);
  color: #0E1220;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 16px #8B7CFF55;
  transition: filter .15s ease, transform .05s ease;
}
.btn-grad:hover { filter: brightness(1.06); }
.btn-grad:active { transform: translateY(1px); }

/* 하단 링크 줄 */
.auth-foot { display: flex; font-size: 13px; }
.auth-foot--between { justify-content: space-between; }
.auth-foot--center { justify-content: center; gap: 5px; }
.auth-foot .muted { color: var(--d-muted); font-weight: 500; }
.auth-foot .dim   { color: var(--d-fg2); font-weight: 500; }
.auth-foot .link  { color: var(--d-primary); font-weight: 600; }
.auth-foot .link:hover { text-decoration: underline; }

/* 인증 화면 오류 배너 (비밀번호 찾기/재설정) */
.auth-err {
    display: flex; align-items: center; gap: 8px;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .28);
    color: #fca5a5; border-radius: 12px;
    padding: 11px 14px; font-size: 13px; font-weight: 500;
}
.auth-err svg { width: 16px; height: 16px; flex: none; }

/* ===================================================================
   App Shell (입교생 화면 공통: TopBar · Content · Footer · FAB)
   =================================================================== */
.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--d-bg); }

.wrap { width: 1440px; max-width: calc(100% - 48px); margin: 0 auto; }

/* TopBar */
.topbar { background: var(--d-surface); border-bottom: 1px solid var(--d-border); height: 68px; display: flex; justify-content: center; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 15px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--d-fg2); transition: background .15s, color .15s; }
.nav a:hover { color: var(--d-fg); }
.nav a.is-active { background: var(--d-primary-soft); color: var(--d-primary); font-weight: 600; }
.topbar__right { display: flex; gap: 12px; }
.iconbtn { width: 38px; height: 38px; border-radius: 12px; background: var(--d-surface2); display: flex; align-items: center; justify-content: center; color: var(--d-fg2); border: none; transition: color .15s; }
.iconbtn:hover { color: var(--d-fg); }
.iconbtn.is-active { background: var(--d-primary-soft); color: var(--d-primary); }

/* 알림 패널 (벨 클릭) */
.noti-wrap { position: relative; }
.noti-wrap .iconbtn { position: relative; }
.noti-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--d-danger); border: 2px solid var(--d-surface); }
.noti-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 360px; max-width: calc(100vw - 32px); background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 14px; box-shadow: 0 20px 50px #00000099; z-index: 200; overflow: hidden; }
.noti-panel[hidden] { display: none; }
.noti-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--d-border); }
.noti-panel__head .t { font-family: var(--font-heading); font-size: 15px; font-weight: 700; }
.noti-panel__head .noti-count { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--d-primary); color: #0E1220; font-family: var(--font-data); font-size: 11px; font-weight: 700; text-align: center; vertical-align: middle; }
.noti-panel__head .acts { display: flex; gap: 10px; }
.noti-panel__head .acts button { border: none; background: transparent; color: var(--d-fg2); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.noti-panel__head .acts button:hover { color: var(--d-primary); }
/* 작은 화면: 알림 패널을 종 기준 오른쪽(헤더 우측 끝 근처)으로 이동 */
@media (max-width: 768px) { .noti-panel { right: -88px; } }
@media (max-width: 360px) { .noti-panel { right: -78px; } }
.noti-box { margin: 10px 12px 12px; background: var(--d-bg); border: 1px solid var(--d-border); border-radius: 12px; overflow: hidden; }
.noti-list { max-height: 318px; overflow-y: auto; }
/* 다크 테마 얇은 스크롤바 */
.noti-list, .chat__msgs { scrollbar-width: thin; scrollbar-color: var(--d-border) transparent; }
.noti-list::-webkit-scrollbar, .chat__msgs::-webkit-scrollbar { width: 8px; }
.noti-list::-webkit-scrollbar-track, .chat__msgs::-webkit-scrollbar-track { background: transparent; }
.noti-list::-webkit-scrollbar-thumb, .chat__msgs::-webkit-scrollbar-thumb { background: var(--d-border); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.noti-list::-webkit-scrollbar-thumb:hover, .chat__msgs::-webkit-scrollbar-thumb:hover { background: var(--d-muted); }
.noti-item { display: flex; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--d-border); }
.noti-item:last-child { border-bottom: none; }
.noti-item.is-unread { background: #181F33; }
.noti-item__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--d-surface2); display: flex; align-items: center; justify-content: center; flex: none; }
.noti-item__ic [data-lucide] { width: 17px; height: 17px; }
.noti-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.noti-item__title { font-size: 13.5px; font-weight: 600; color: var(--d-fg); }
.noti-item__desc { font-size: 12.5px; color: var(--d-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noti-item__time { font-size: 11.5px; color: var(--d-muted); margin-top: 1px; }
.noti-empty { padding: 40px 16px; text-align: center; color: var(--d-muted); font-size: 13px; }

/* 리스트 페이지네이션 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pager:empty { display: none; }
.pager__info { color: var(--d-fg2); font-size: 12.5px; font-weight: 500; }
.pager__btns { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pager__b { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--d-border); border-radius: 9px; background: var(--d-surface); color: var(--d-fg2); font-family: var(--font-data); font-size: 13px; font-weight: 600; cursor: pointer; }
.pager__b:hover:not([disabled]):not(.is-active) { border-color: var(--d-primary); color: var(--d-fg); }
.pager__b.is-active { background: var(--d-primary); border-color: var(--d-primary); color: #0E1220; cursor: default; }
.pager__b[disabled] { opacity: .4; cursor: default; }
.pager__gap { color: var(--d-muted); padding: 0 2px; }

/* 목록 하단 액션바 (엑셀 등록) */
.list-foot { margin-top: 14px; }
.list-foot__l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-foot__l .btn-soft { display: inline-flex; align-items: center; gap: 6px; }
.list-foot__l .btn-soft [data-lucide] { width: 15px; height: 15px; }
.list-foot__hint { color: var(--d-muted); font-size: 12.5px; }
/* 엑셀 등록 안내 박스 */
.excel-guide { background: var(--d-surface2); border: 1px solid var(--d-border); border-radius: 12px; padding: 14px 16px; }
.excel-guide__t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--d-fg); margin-bottom: 8px; }
.excel-guide__t [data-lucide] { width: 15px; height: 15px; color: var(--d-primary); }
.excel-guide ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.excel-guide li { color: var(--d-fg2); font-size: 12.5px; line-height: 1.5; }
.excel-guide code { background: var(--d-surface); padding: 1px 5px; border-radius: 4px; font-family: var(--font-data); font-size: 12px; }
/* 커스텀 파일 선택 드롭존 */
.filepick { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--d-border); border-radius: 12px; background: var(--d-surface2); cursor: pointer; transition: border-color .15s, background .15s; }
.filepick:hover, .filepick:focus { border-color: var(--d-primary); outline: none; }
.filepick.is-drag { border-color: var(--d-primary); background: var(--d-primary-soft); }
.filepick.has-file { border-style: solid; border-color: var(--d-primary); }
.filepick__ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--d-surface); display: inline-flex; align-items: center; justify-content: center; }
.filepick__ic [data-lucide] { width: 20px; height: 20px; color: var(--d-primary); }
.filepick.has-file .filepick__ic { background: var(--grad-pc); }
.filepick.has-file .filepick__ic [data-lucide] { color: #0E1220; }
.filepick__tx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.filepick__main { font-size: 13.5px; font-weight: 600; color: var(--d-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filepick__sub { font-size: 12px; color: var(--d-muted); }
.filepick__btn { flex: none; padding: 7px 14px; border-radius: 9px; background: var(--d-surface); border: 1px solid var(--d-border); color: var(--d-fg2); font-size: 12.5px; font-weight: 600; }
.filepick:hover .filepick__btn { color: var(--d-fg); border-color: var(--d-primary); }
/* 업로드 진행률 바 */
.prog-wrap { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 4px; }
.prog__top { display: flex; align-items: center; justify-content: space-between; }
.prog__label { font-weight: 700; font-size: 14px; color: var(--d-fg); }
.prog__pct { font-family: var(--font-data); font-size: 13px; font-weight: 700; color: var(--d-primary); }
.prog { height: 10px; background: var(--d-surface2); border-radius: 999px; overflow: hidden; }
.prog__bar { height: 100%; width: 0; background: var(--grad-pc); border-radius: 999px; transition: width .25s ease; }
.prog__sub { font-size: 12.5px; color: var(--d-fg2); font-family: var(--font-data); }
/* 안읽음 점 / 읽음은 흐리게 / hover */
.noti-item__udot { width: 8px; height: 8px; border-radius: 50%; background: var(--d-primary); flex: none; align-self: center; }
.noti-item:not(.is-unread) .noti-item__udot { display: none; }
.noti-item:not(.is-unread) .noti-item__title { color: var(--d-fg2); font-weight: 500; }
.noti-item { cursor: pointer; }
.noti-item:hover { background: var(--d-surface2); }

/* Content */
.content { flex: 1; display: flex; justify-content: center; padding: 28px 0 100px; }
.container { display: flex; flex-direction: column; gap: 24px; }

/* Profile glass */
.profile { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: 0 6px 18px #00000040; }
.profile__left { display: flex; align-items: center; gap: 16px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--d-primary); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 16px #8B7CFF66; flex: none; }
.avatar [data-lucide] { width: 26px; height: 26px; }
.profile__name { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.profile__meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.cohort { color: var(--d-fg2); font-size: 13px; font-weight: 500; }

.stats { display: flex; align-items: center; gap: 22px; }
.stat { display: flex; align-items: center; gap: 9px; }
.stat__icon { width: 36px; height: 36px; border-radius: 12px; background: var(--d-surface2); display: flex; align-items: center; justify-content: center; }
.stat__icon [data-lucide] { width: 17px; height: 17px; }
.stat__label { color: var(--d-fg2); font-size: 13px; font-weight: 500; }
.stat__value { font-family: var(--font-data); font-size: 16px; font-weight: 700; color: var(--d-fg); }
.divider-v { width: 1px; height: 36px; background: var(--d-border); }

/* pills / badges */
.pill { border-radius: 9999px; padding: 3px 10px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.pill--purple { background: var(--d-primary-soft); color: var(--d-primary); }
.pill--cyan   { background: var(--d-cyan-soft);    color: var(--d-cyan); }
.pill--green  { background: var(--d-success-soft); color: var(--d-success); }
.pill--amber  { background: var(--d-warning-soft); color: var(--d-warning); }

/* gradient inline button */
.btn-grad.btn-grad--inline { width: auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: 14px; }

/* Main row layout */
.mainrow { display: flex; gap: 24px; align-items: flex-start; }
.col-side { width: 440px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.col-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* generic card */
.card { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; }

/* Calendar */
.cal { overflow: hidden; }
.cal__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; background: var(--d-surface2); border-radius: 10px; padding: 14px 16px; }
.cal__month { font-family: var(--font-data); font-size: 14px; font-weight: 700; }
.cal__navbtns { display: flex; gap: 10px; color: var(--d-fg2); }
.cal__navbtns [data-lucide] { width: 16px; height: 16px; cursor: pointer; }
.cal__weekdays { display: flex; }
.cal__weekdays span { flex: 1; text-align: center; padding: 2px 0; font-size: 12px; font-weight: 600; color: var(--d-muted); }
.cal__weekdays .sun { color: var(--d-danger); }
.cal__weekdays .sat { color: var(--d-cyan); }
.cal__grid { display: flex; flex-direction: column; gap: 3px; }
.cal__week { display: flex; gap: 3px; }
.cal__cell { flex: 1; height: 36px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.cal__cell .num { font-family: var(--font-data); font-size: 12.5px; font-weight: 500; color: var(--d-fg2); }
.cal__cell .dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.cal__cell.is-muted .num { color: var(--d-muted); }
.cal__cell.ev-ir   .num { color: var(--d-primary); font-weight: 700; }
.cal__cell.ev-ir   .dot { background: var(--d-primary); }
.cal__cell.ev-con  .num { color: var(--d-cyan); font-weight: 700; }
.cal__cell.ev-con  .dot { background: var(--d-cyan); }
.cal__cell.ev-wait .num { color: var(--d-warning); font-weight: 700; }
.cal__cell.ev-wait .dot { background: var(--d-warning); }
.cal__today { width: 26px; height: 26px; border-radius: 12px; background: var(--d-primary); display: flex; align-items: center; justify-content: center; }
.cal__today .num { color: #fff; font-weight: 700; }
.cal__legend { display: flex; gap: 14px; padding: 4px 2px 0; }
.cal__legend span { display: flex; align-items: center; gap: 6px; color: var(--d-fg2); font-size: 12px; font-weight: 500; }
.cal__legend .d { width: 7px; height: 7px; border-radius: 50%; }

/* AI promo */
.aipromo { background: var(--d-surface); border: 1px solid var(--d-primary); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 0 22px #8B7CFF33; }
.aipromo__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-pc); display: flex; align-items: center; justify-content: center; color: #0E1220; }
.aipromo__ic [data-lucide] { width: 24px; height: 24px; }
.aipromo h3 { margin: 0; font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.aipromo p { margin: 0; color: var(--d-fg2); font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.aipromo .btn-grad { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 0; font-size: 13.5px; }
.aipromo .btn-grad [data-lucide] { width: 15px; height: 15px; }

/* Section head */
.sec-head { display: flex; align-items: center; flex-wrap: wrap; row-gap: 2px; gap: 8px; padding: 4px 2px 0; }
.sec-head [data-lucide] { width: 18px; height: 18px; }
.sec-head h2 { margin: 0; font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--d-fg); }
.sec-head .i-green { color: var(--d-success); }
.sec-head .i-amber { color: var(--d-warning); }

/* Booking card */
.booking { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; }
.booking-empty { background: var(--d-surface); border: 1px dashed var(--d-border); border-radius: 16px; padding: 28px 18px; min-height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.booking-empty [data-lucide] { width: 26px; height: 26px; color: var(--d-fg2); opacity: .55; }
.booking-empty p { margin: 0; color: var(--d-fg2); font-size: 13px; font-weight: 500; }
/* 예약(캘린더-우선) 화면 보조 스타일 */
.cal-reset { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--d-primary); font-weight: 600; }
.cal-reset [data-lucide] { width: 13px; height: 13px; }
.modal-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--d-fg2); font-size: 12.5px; font-weight: 500; }
.modal-note [data-lucide] { width: 15px; height: 15px; flex: none; }
.avail-slot .booking__rc { width: auto; }
.avail-slot[hidden], .booking-empty[hidden], .booking[hidden] { display: none !important; }
.pick-sec { margin-top: 10px; }
.pick-hint { color: var(--d-fg2); font-size: 13px; text-align: center; padding: 18px 16px; background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 12px; }
.pick-hint b { color: var(--d-fg); }
.time-row__label { color: var(--d-fg2); font-size: 12.5px; font-weight: 600; margin: 2px 2px 8px; }
.time-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.time-opt { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--d-surface); border: 1px solid var(--d-border); color: var(--d-fg); font-family: var(--font-data); font-weight: 600; cursor: pointer; }
.time-opt:hover { border-color: var(--d-fg2); }
.time-opt.is-sel { border-color: var(--d-primary); background: var(--d-primary-soft); color: var(--d-primary); }
.time-opt__cnt { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--d-fg2); }
.time-opt.is-sel .time-opt__cnt { color: var(--d-primary); }
.time-opt[hidden] { display: none !important; }
.time-row[hidden], .expert-row[hidden] { display: none !important; }
.expert-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.expert-row .coach { flex: none; }
@media (max-width: 720px) { .expert-row { grid-template-columns: 1fr; } }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.slot[data-time] { cursor: pointer; }
.slot[hidden] { display: none !important; }
.time-day[hidden] { display: none !important; }
.time-day__label { display: none; }
.sec-head__sub { color: var(--d-fg2); font-size: 13.5px; font-weight: 600; min-width: 0; }
.sec-head__sub[hidden] { display: none; }
.cal__cell.is-off { opacity: .28; }
.cal__cell.is-off .dot { background: transparent !important; }
/* 코치 일정 등록 보조 */
.cs-flash { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cs-flash [data-lucide] { width: 16px; height: 16px; flex: none; }
.cs-flash--ok { background: var(--d-success-soft); color: var(--d-success); }
.cs-flash--err { background: rgba(239,68,68,.14); color: var(--d-danger); }
.reg-slot__st { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.reg-slot__st--green { background: var(--d-success-soft); color: var(--d-success); }
.reg-slot__st--amber { background: var(--d-warning-soft); color: var(--d-warning); }
.reg-slot__st--dim   { background: var(--d-surface2); color: var(--d-fg2); }
.reg-slot__st--muted { background: var(--d-surface2); color: var(--d-muted); }
.time-chip.is-off { opacity: .3; cursor: not-allowed; pointer-events: none; }
.date-tile { width: 54px; height: 54px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.date-tile--purple { background: var(--d-primary-soft); color: var(--d-primary); }
.date-tile--cyan   { background: var(--d-cyan-soft); color: var(--d-cyan); }
.date-tile--amber  { background: var(--d-warning-soft); color: var(--d-warning); }
.date-tile .m { font-size: 11px; font-weight: 600; }
.date-tile .d { font-family: var(--font-data); font-size: 19px; font-weight: 700; }
.booking__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.booking__tags { display: flex; align-items: center; gap: 6px; }
.cat { border-radius: 9999px; padding: 3px 9px; font-size: 11px; font-weight: 600; }
.cat--purple { background: var(--d-primary-soft); color: var(--d-primary); }
.cat--cyan   { background: var(--d-cyan-soft); color: var(--d-cyan); }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 9999px; padding: 3px 9px; font-size: 11px; font-weight: 600; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; }
.status--green { background: var(--d-success-soft); color: var(--d-success); }
.status--green .dot { background: var(--d-success); }
.status--amber { background: var(--d-warning-soft); color: var(--d-warning); }
.status--amber .dot { background: var(--d-warning); }
.booking__name { font-family: var(--font-heading); font-size: 15.5px; font-weight: 700; }
.booking__meta { color: var(--d-fg2); font-size: 12.5px; font-weight: 500; }
.booking__time { display: flex; align-items: center; gap: 6px; color: var(--d-fg2); font-size: 13px; font-weight: 500; }
.booking__time [data-lucide] { width: 14px; height: 14px; color: var(--d-muted); }
.booking__rc { width: 128px; flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.btn-zoom { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--d-primary); color: #0E1220; border: none; border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 700; }
.btn-zoom [data-lucide] { width: 15px; height: 15px; }
.btn-wait { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--d-surface2); color: var(--d-muted); border: none; border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 600; }
.btn-wait [data-lucide] { width: 14px; height: 14px; }
.btn-cancel { background: transparent; color: var(--d-fg2); border: 1px solid var(--d-border); border-radius: 12px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; }
.btn-cancel:hover { border-color: var(--d-muted); }

/* Footer */
.footer { background: var(--d-surface); border-top: 1px solid var(--d-border); padding: 34px 0; display: flex; justify-content: center; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__left { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.footer__tag { color: var(--d-muted); font-size: 13px; font-weight: 500; line-height: 1.6; }
.footer__cp { color: var(--d-muted); font-size: 12.5px; font-weight: 500; }
.footer__support { display: flex; flex-direction: column; gap: 12px; }
.footer__support h4 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--d-fg); }
.footer__support a { display: flex; align-items: center; gap: 8px; color: var(--d-fg2); font-size: 13px; font-weight: 500; }
.footer__support [data-lucide] { width: 15px; height: 15px; color: var(--d-muted); }

/* AI FAB */
.fab { position: fixed; right: 32px; bottom: 32px; width: 58px; height: 58px; border-radius: 9999px; background: var(--grad-pc); display: flex; align-items: center; justify-content: center; color: #0E1220; box-shadow: 0 6px 20px #8B7CFF66; border: none; z-index: 50; }
.fab [data-lucide] { width: 27px; height: 27px; }

/* ===================================================================
   IR코칭 / 컨설팅 — 전문가 카드 그리드
   =================================================================== */
.sec-head .i-purple { color: var(--d-primary); }
.sec-head .i-cyan   { color: var(--d-cyan); }

.coach-section { display: flex; flex-direction: column; gap: 16px; }
.coach-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.coach {
  flex: 1; min-width: 0;
  background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px;
  padding: 20px 22px; display: flex; align-items: center; gap: 16px;
}
.coach__av { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.coach__av--purple { background: var(--d-primary-soft); color: var(--d-primary); }
.coach__av--cyan   { background: var(--d-cyan-soft);    color: var(--d-cyan); }
.coach__av [data-lucide] { width: 24px; height: 24px; }
.coach__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.coach__nr { display: flex; align-items: center; gap: 9px; }
.coach__name { font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.coach__rate { display: flex; align-items: center; gap: 4px; }
.coach__rate .star { color: var(--d-warning); font-size: 14px; line-height: 1; }
.coach__rate b { font-size: 13.5px; font-weight: 700; color: var(--d-fg); }
.coach__meta { color: var(--d-fg2); font-size: 13px; font-weight: 500; }
.coach__tags { display: flex; gap: 7px; }
.tag { border-radius: 9999px; background: var(--d-surface2); color: var(--d-fg2); font-size: 11.5px; font-weight: 500; padding: 4px 10px; }
.coach__book { display: inline-flex; align-items: center; gap: 6px; background: var(--d-surface2); color: var(--d-fg); border: none; border-radius: 12px; padding: 9px 16px; font-size: 13px; font-weight: 700; flex: none; }
.coach__book [data-lucide] { width: 15px; height: 15px; }
.coach__book:hover { background: var(--d-primary-soft); color: var(--d-primary); }

/* ===================================================================
   AI 매칭 요청 폼 (전문가 컨설팅)
   =================================================================== */
.match-card {
  background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px;
  padding: 34px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 0 26px #8B7CFF22;
}
.match-card__head { display: flex; align-items: center; gap: 14px; }
.match-card__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--grad-pc); display: flex; align-items: center; justify-content: center; color: #0E1220; flex: none; }
.match-card__ic [data-lucide] { width: 24px; height: 24px; }
.match-card__head h2 { margin: 0; font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.match-card__head p { margin: 2px 0 0; color: var(--d-fg2); font-size: 13.5px; font-weight: 500; }
.match-field { display: flex; flex-direction: column; gap: 9px; }
.field-label { font-size: 13.5px; font-weight: 600; color: var(--d-fg2); }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 130px)); gap: 10px; }
.chip { text-align: center; padding: 11px 8px; border-radius: 12px; background: var(--d-surface2); border: 1px solid var(--d-border); color: var(--d-fg2); font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.is-active { background: var(--d-primary-soft); border-color: var(--d-primary); color: var(--d-primary); font-weight: 700; }
/* 칩 영역 실제 폭 기준으로 5개→3개 단계 전환 (뷰포트 아닌 컨테이너 기준) */
.match-field, .aimatch__f { container-type: inline-size; }
@container (max-width: 560px) { .chips { grid-template-columns: repeat(3, minmax(0, 130px)); } }
/* 예약 페이지 분야 칩(4개)은 모바일에서도 항상 한 줄(4열) 유지 */
#fieldChips { grid-template-columns: repeat(4, minmax(0, 130px)); }
@container (max-width: 360px) { #fieldChips .chip { font-size: 13px; padding: 11px 4px; } }
.textarea {
  width: 100%; min-height: 130px; resize: vertical;
  background: var(--d-surface2); border: 1px solid var(--d-border); border-radius: 12px;
  padding: 14px 16px; color: var(--d-fg); font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 1.5;
}
.textarea:focus { outline: none; border-color: var(--d-primary); box-shadow: 0 0 0 3px #8B7CFF22; }
.textarea::placeholder { color: var(--d-muted); }
.btn-grad.btn-grad--lg { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0; font-size: 15px; }
.btn-grad.btn-grad--lg [data-lucide] { width: 17px; height: 17px; }

/* ===================================================================
   AI 매칭 결과 (요청 요약 + 추천 전문가)
   =================================================================== */
.request-card { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.request-card__head { display: flex; align-items: center; justify-content: space-between; }
.request-card__head .hl { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--d-fg); }
.request-card__head .hl [data-lucide] { width: 18px; height: 18px; }
.btn-edit { display: inline-flex; align-items: center; gap: 6px; background: var(--d-surface2); border: none; border-radius: 12px; padding: 7px 13px; color: var(--d-fg2); font-size: 13px; font-weight: 600; }
.btn-edit [data-lucide] { width: 14px; height: 14px; }
.btn-edit:hover { color: var(--d-fg); }
.request-row { display: flex; gap: 12px; align-items: flex-start; }
.request-row .rl { width: 72px; flex: none; color: var(--d-muted); font-size: 13px; font-weight: 500; padding-top: 2px; }
.request-row .rv { flex: 1; color: var(--d-fg); font-size: 14px; font-weight: 500; line-height: 1.5; }

/* 추천 카드 강조 + 리뷰수 + 배지 + 그라데이션 버튼 */
.coach--best { border-color: var(--d-primary); box-shadow: 0 0 22px #8B7CFF33; }
.coach__rate .rc { color: var(--d-muted); font-size: 12.5px; font-weight: 500; }
.coach__best { display: inline-flex; align-items: center; gap: 4px; background: var(--d-primary-soft); color: var(--d-primary); border-radius: 9999px; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.coach__best [data-lucide] { width: 12px; height: 12px; }
.coach__book--grad { background: var(--grad-pc); color: #0E1220; }
.coach__book--grad [data-lucide] { color: #0E1220; }
.coach__book--grad:hover { background: var(--grad-pc); color: #0E1220; filter: brightness(1.06); }

/* AI 매칭 입력 카드 (eh7P5 · AIMatchCard) */
.aimatch { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 0 26px #8B7CFF22; }
.aimatch__head { display: flex; align-items: center; gap: 14px; }
.aimatch__ic { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--grad-pc); display: inline-flex; align-items: center; justify-content: center; }
.aimatch__ic [data-lucide] { width: 24px; height: 24px; color: #0E1220; }
.aimatch__ht h2 { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--d-fg); }
.aimatch__ht p { margin: 4px 0 0; font-size: 13.5px; font-weight: 500; color: var(--d-fg2); }
.aimatch__f { display: flex; flex-direction: column; gap: 9px; }
.aimatch__ta { width: 100%; box-sizing: border-box; resize: vertical; min-height: 110px; background: var(--d-surface2); border: 1px solid var(--d-border); border-radius: 12px; padding: 14px 16px; color: var(--d-fg); font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 1.5; }
.aimatch__ta::placeholder { color: var(--d-muted); }
.aimatch__ta:focus { outline: none; border-color: var(--d-primary); }
.aimatch__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.aimatch-or { display: flex; align-items: center; gap: 14px; color: var(--d-muted); font-size: 12.5px; font-weight: 600; }
.aimatch-or::before, .aimatch-or::after { content: ""; flex: 1; height: 1px; background: var(--d-border); }

/* 직접 선택 ↔ AI 매칭 모드 전환 배너 */
.mode-switch { display: flex; align-items: center; gap: 14px; background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; }
.mode-switch:hover { border-color: var(--d-primary); }
.mode-switch__ic { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--grad-pc); display: inline-flex; align-items: center; justify-content: center; }
.mode-switch__ic [data-lucide] { width: 20px; height: 20px; color: #0E1220; }
.mode-switch--alt .mode-switch__ic { background: var(--d-surface2); }
.mode-switch--alt .mode-switch__ic [data-lucide] { color: var(--d-fg); }
.mode-switch__tx { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 500; color: var(--d-fg2); line-height: 1.4; }
.mode-switch__tx b { font-family: var(--font-heading); font-weight: 700; font-size: 14.5px; color: var(--d-fg); }
.mode-switch__go { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--d-primary); font-size: 13px; font-weight: 700; }
.mode-switch__go [data-lucide] { width: 15px; height: 15px; }
.mode-switch--alt { margin-top: 16px; margin-bottom: 0; }

/* ===================================================================
   일정 선택 (코치 요약 + 슬롯 그리드)
   =================================================================== */
.back-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--d-surface2); border: none; border-radius: 12px; padding: 9px 14px; color: var(--d-fg2); font-size: 13.5px; font-weight: 600; align-self: flex-start; }
.back-btn [data-lucide] { width: 15px; height: 15px; }
.back-btn:hover { color: var(--d-fg); }
.slot-section { display: flex; flex-direction: column; gap: 18px; }
.slot-main { display: flex; gap: 24px; align-items: flex-start; }
.coach-summary { width: 320px; flex: none; background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.coach-summary__av { width: 64px; height: 64px; border-radius: 50%; background: var(--d-primary-soft); color: var(--d-primary); display: flex; align-items: center; justify-content: center; }
.coach-summary__av [data-lucide] { width: 28px; height: 28px; }
.coach-summary__name { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.coach-summary__role { color: var(--d-fg2); font-size: 13.5px; font-weight: 500; margin-top: 4px; }
.coach-summary__org, .coach-summary__rate { display: flex; align-items: center; gap: 7px; color: var(--d-fg2); font-size: 13px; font-weight: 500; }
.coach-summary__org [data-lucide] { width: 15px; height: 15px; color: var(--d-muted); }
.coach-summary__rate .star { color: var(--d-warning); font-size: 14px; }
.coach-summary__rate b { color: var(--d-fg); font-size: 14px; font-weight: 700; }
.coach-summary__rate .rc { color: var(--d-muted); font-size: 12.5px; }
.coach-summary__tags { display: flex; gap: 7px; }
.coach-summary__div { height: 1px; background: var(--d-border); }
.coach-summary__hint { display: flex; align-items: flex-start; gap: 7px; color: var(--d-fg2); font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.coach-summary__hint [data-lucide] { width: 14px; height: 14px; color: var(--d-primary); flex: none; margin-top: 2px; }
.slot-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.slot-col h2 { margin: 0; font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.slot-row { display: flex; gap: 16px; }
.slot { flex: 1; min-width: 0; background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 20px 0; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.slot.is-selected { border-color: var(--d-primary); box-shadow: 0 0 18px #8B7CFF33; }
.slot__date { color: var(--d-fg2); font-size: 13px; font-weight: 600; }
.slot__time { font-family: var(--font-data); font-size: 22px; font-weight: 700; color: var(--d-fg); }
.slot.is-selected .slot__time { color: var(--d-primary); }
.slot:hover { border-color: var(--d-primary); box-shadow: 0 0 18px #8B7CFF33; }
.slot:hover .slot__time { color: var(--d-primary); }
.slot__status { background: var(--d-success-soft); color: var(--d-success); border-radius: 9999px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.slot { cursor: pointer; transition: border-color .15s, box-shadow .15s; }

/* ===================================================================
   모달 (예약확정 / 예약완료) · AI 챗
   =================================================================== */
.overlay { position: fixed; inset: 0; background: #080B16CC; backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.overlay[hidden] { display: none; }
.modal { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; box-shadow: 0 20px 60px #00000080; }
/* 모든 모달: 뷰포트(좌우·상하) 초과 방지 + 넘치면 모달 내부 스크롤 (알림 모달과 동일 스크롤바) */
.modal { max-width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--d-border) transparent; }
.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--d-border); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.modal::-webkit-scrollbar-thumb:hover { background: var(--d-muted); }
/* 예약 추가/변경 모달은 날짜/시간 팝오버가 모달 밖으로 펼쳐지므로 내부 스크롤(클리핑) 제외 */
#addBooking .modal, #editBooking .modal { overflow: visible; max-height: none; }
.modal--confirm { width: 600px; max-width: 100%; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; }
.modal__head h2 { margin: 0; font-family: var(--font-heading); font-size: 19px; font-weight: 700; }
.modal__close { background: none; border: none; color: var(--d-fg2); cursor: pointer; display: flex; }
.modal__close [data-lucide] { width: 20px; height: 20px; }
.modal-info { display: flex; flex-direction: column; gap: 12px; }
.modal-info .ir { display: flex; gap: 14px; align-items: center; }
.modal-info .ir .l { width: 64px; flex: none; color: var(--d-muted); font-size: 13.5px; font-weight: 500; }
.modal-info .ir .v { color: var(--d-fg); font-size: 14.5px; font-weight: 600; }

.modal--done { width: 480px; max-width: 100%; padding: 32px 40px 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.modal__close--end { align-self: flex-end; }
.modal-done__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-pc); color: #0E1220; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px #8B7CFF66; }
.modal-done__ic [data-lucide] { width: 32px; height: 32px; }
.modal--done h2 { margin: 0; font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.modal--done p { margin: 0; color: var(--d-fg2); font-size: 14px; font-weight: 500; }
.modal-done__sum { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--d-surface2); border-radius: 12px; padding: 14px 18px; color: var(--d-fg); font-size: 13.5px; font-weight: 600; }
.modal-done__sum [data-lucide] { width: 16px; height: 16px; color: var(--d-primary); }
.modal--done .btn-grad { width: 100%; }

/* Zoom 안내 모달 / 예약 취소 확인 모달 */
.zoom-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--d-surface2); border: 1px solid var(--d-border); border-radius: 12px; padding: 12px 14px; color: var(--d-fg2); font-family: var(--font-data); font-size: 13px; }
.zoom-link [data-lucide] { width: 15px; height: 15px; color: var(--d-fg2); }
.modal-cancel__ic { width: 56px; height: 56px; border-radius: 50%; background: #000; color: var(--d-danger); display: flex; align-items: center; justify-content: center; }
.modal-cancel__ic [data-lucide] { width: 26px; height: 26px; }
.modal-btns { display: flex; gap: 10px; width: 100%; }
.modal-btns button { flex: 1; border: none; border-radius: 12px; padding: 13px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-soft { background: var(--d-surface2); color: var(--d-fg); }
.btn-redfill { background: var(--d-danger); color: #fff; }

/* 링크 준비 중: 클릭 대상 아님 (기본 커서) */
.btn-wait { cursor: default; }

/* 캘린더 날짜 클릭 — 오늘(.cal__today)은 유지, 선택 날짜는 셀 배경으로 구분 */
.card.cal .cal__cell:not(.is-muted) { cursor: pointer; }
.cal__cell.is-sel { background: var(--d-primary-soft); }

/* 전문가 카드: hover 테두리 강조 + 카드 전체 클릭 */
.coach { transition: border-color .15s ease, box-shadow .15s ease; }
.coach:hover { border-color: var(--d-primary); box-shadow: 0 0 14px #8B7CFF22; }
.coach.avail-slot { cursor: pointer; }
a.coach { text-decoration: none; color: inherit; }
/* 카드 전체 hover 시 '예약하기' 버튼 hover 효과도 동반 */
.coach__book { transition: background .15s ease, color .15s ease, filter .15s ease; }
.coach:hover .coach__book { background: var(--d-primary-soft); color: var(--d-primary); }
.coach:hover .coach__book--grad { background: var(--grad-pc); color: #0E1220; filter: brightness(1.06); }

/* Chat */
.chat { position: fixed; right: 106px; bottom: 32px; width: 460px; max-width: calc(100vw - 138px); height: 660px; max-height: calc(100vh - 140px); background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; box-shadow: 0 0 30px #8B7CFF33; display: flex; flex-direction: column; overflow: hidden; z-index: 90; }
.chat[hidden] { display: none; }
.chat__head { display: flex; align-items: center; justify-content: space-between; background: var(--d-surface2); border-bottom: 1px solid var(--d-border); padding: 14px 18px; }
.chat__head .hl { display: flex; align-items: center; gap: 10px; }
.chat__ic { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-pc); color: #0E1220; display: flex; align-items: center; justify-content: center; flex: none; }
.chat__ic [data-lucide] { width: 20px; height: 20px; }
.chat__title { font-family: var(--font-heading); font-size: 15px; font-weight: 700; }
.chat__on { display: flex; align-items: center; gap: 5px; color: var(--d-success); font-size: 11.5px; font-weight: 500; margin-top: 2px; }
.chat__on .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--d-success); }
.chat__close { background: none; border: none; color: var(--d-fg2); cursor: pointer; display: flex; }
.chat__close [data-lucide] { width: 18px; height: 18px; }
.chat__msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.msg { display: flex; gap: 9px; }
.msg--user { justify-content: flex-end; }
.msg__av { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-pc); color: #0E1220; display: flex; align-items: center; justify-content: center; flex: none; }
.msg__av [data-lucide] { width: 16px; height: 16px; }
.msg__bubble { background: var(--d-surface2); border-radius: 12px; padding: 11px 14px; color: var(--d-fg); font-size: 13.5px; font-weight: 500; line-height: 1.5; max-width: 320px; }
.msg--user .msg__bubble { background: var(--d-primary); color: #0E1220; font-weight: 600; max-width: 240px; }
.chat__sug { display: flex; flex-direction: column; gap: 8px; padding-left: 39px; }
.chat__sug button { display: flex; align-items: center; gap: 7px; background: var(--d-surface2); border: 1px solid var(--d-border); border-radius: 12px; padding: 9px 13px; color: var(--d-fg2); font-size: 13px; font-weight: 600; text-align: left; }
.chat__sug [data-lucide] { width: 14px; height: 14px; color: var(--d-primary); flex: none; }
.chat__input { display: flex; align-items: center; gap: 10px; background: var(--d-surface2); border-top: 1px solid var(--d-border); padding: 12px 14px; }
.chat__input input { flex: 1; min-width: 0; background: var(--d-bg); border: 1px solid var(--d-border); border-radius: 9999px; padding: 10px 14px; color: var(--d-fg); font-family: var(--font-body); font-size: 13.5px; outline: none; }
.chat__input input::placeholder { color: var(--d-muted); }
.chat__send { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-pc); color: #0E1220; border: none; display: flex; align-items: center; justify-content: center; flex: none; }
.chat__send [data-lucide] { width: 17px; height: 17px; }

/* ===================================================================
   코치 화면 (가능일정등록 / 내일정조회 / 신청현황)
   =================================================================== */
.coach-main { display: flex; gap: 24px; align-items: flex-start; }

/* 새 일정 추가 카드 */
.add-card { width: 440px; flex: none; background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.add-card h3 { margin: 0; font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.field-col { display: flex; flex-direction: column; gap: 8px; }
.field-col > label { font-size: 13px; font-weight: 600; color: var(--d-fg2); }
.timegrid { display: flex; flex-direction: column; gap: 8px; }
.time-row { display: flex; gap: 8px; }
.time-chip { flex: 1; text-align: center; padding: 9px 0; border-radius: 12px; background: var(--d-surface2); border: 1px solid var(--d-border); color: var(--d-fg2); font-family: var(--font-data); font-size: 13px; font-weight: 500; }
.time-chip.is-selected { background: var(--d-primary-soft); border-color: var(--d-primary); color: var(--d-primary); font-weight: 700; }

/* 등록된 일정 슬롯 */
.reg-grid { display: flex; flex-direction: column; gap: 16px; }
/* 최대 4열, 폭 줄면 4→3→2열로 떨어지며 매 행이 1fr로 우측 여백 없이 꽉 참 */
.reg-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(175px, (100% - 48px) / 4), 1fr)); gap: 16px; }
.reg-slot { min-width: 0; background: var(--d-surface2); border: 1px solid var(--d-border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.reg-slot__top { display: flex; align-items: center; justify-content: space-between; }
.reg-slot__date { color: var(--d-fg2); font-size: 12.5px; font-weight: 600; }
.reg-slot__x { background: none; border: none; color: var(--d-muted); cursor: pointer; display: flex; padding: 0; }
.reg-slot__x [data-lucide] { width: 15px; height: 15px; }
.reg-slot__time { font-family: var(--font-data); font-size: 18px; font-weight: 700; color: var(--d-primary); }

/* 코치 calendar (날짜 picker) — 학생 .cal 재사용, 셀만 살짝 조정 */
.cal--pick .cal__head { background: transparent; padding: 0 0 4px; }
.cal--pick .cal__month { font-family: var(--font-heading); }
.cal--pick .cal__weekdays span { font-size: 11.5px; }
.cal--pick .cal__grid { gap: 2px; }
.cal--pick .cal__cell { height: 34px; }

/* 코치 세션/신청 카드 (내일정조회 · 신청현황) — 학생 booking 재사용 + 추가 변형 */
.sess-list { display: flex; flex-direction: column; gap: 14px; }
.req-actions { display: flex; gap: 8px; }
.btn-approve { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--d-primary); color: #0E1220; border: none; border-radius: 12px; padding: 9px 16px; font-size: 13px; font-weight: 700; }
.btn-approve [data-lucide] { width: 15px; height: 15px; }
.btn-reject { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; color: var(--d-fg2); border: 1px solid var(--d-border); border-radius: 12px; padding: 9px 16px; font-size: 13px; font-weight: 600; }
.btn-reject:hover { border-color: var(--d-danger); color: var(--d-danger); }

/* ===================================================================
   운영진(admin) 화면 — 데이터 테이블 · KPI · 가이드 · 패널
   =================================================================== */
.admin-cols { display: flex; gap: 24px; align-items: flex-start; }
.admin-cols .left { flex: 1; min-width: 0; }
.admin-cols .right { width: 440px; flex: none; display: flex; flex-direction: column; gap: 20px; }

/* 패널 (헤더 + 본문) */
.panel { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--d-border); }
.panel__head .hl { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.panel__head .hl [data-lucide] { width: 17px; height: 17px; color: var(--d-primary); }
.panel__head .more { color: var(--d-primary); font-size: 13px; font-weight: 600; }

/* 데이터 테이블 */
.adt { display: flex; flex-direction: column; }
.adt__th { display: flex; background: var(--d-surface2); padding: 10px 18px; }
.adt__th .c { color: var(--d-muted); font-size: 12px; font-weight: 600; }
.adt__row { display: flex; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--d-border); }
.adt__row:last-child { border-bottom: none; }
.adt .c { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.adt .c--fix { flex: none; width: 110px; }
.adt .c--left { justify-content: flex-start; text-align: left; }
.adt .nm  { color: var(--d-fg);  font-size: 13.5px; font-weight: 600; }
.adt .nm2 { color: var(--d-fg2); font-size: 13.5px; font-weight: 500; }
.adt .dt  { font-family: var(--font-data); font-size: 12.5px; font-weight: 500; color: var(--d-fg2); }
.tbadge { border-radius: 9999px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; }
.tbadge--ir  { background: var(--d-primary-soft); color: var(--d-primary); }
.tbadge--con { background: var(--d-cyan-soft);    color: var(--d-cyan); }
.tbadge--student { background: var(--d-success-soft); color: var(--d-success); }
.tbadge--admin   { background: var(--d-warning-soft); color: var(--d-warning); }
.sbadge { border-radius: 9999px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; }
.sbadge--ok     { background: var(--d-success-soft); color: var(--d-success); }
.sbadge--wait   { background: var(--d-warning-soft); color: var(--d-warning); }
.sbadge--cancel { background: #3A1F22; color: var(--d-danger); }

/* KPI 카드 */
.kpi-grid { display: flex; flex-direction: column; gap: 12px; }
.kpi-row { display: flex; gap: 12px; }
.kpi { flex: 1; min-width: 0; background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 18px; display: flex; align-items: center; gap: 14px; }
.kpi__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--d-surface2); display: flex; align-items: center; justify-content: center; flex: none; }
.kpi__ic [data-lucide] { width: 24px; height: 24px; }
.kpi__txt { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi__label { color: var(--d-fg2); font-size: 14px; font-weight: 500; }
.kpi__val { font-family: var(--font-data); font-size: 32px; font-weight: 700; color: var(--d-fg); line-height: 1; }

/* 가이드 카드 */
.guide { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.guide__head { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.guide__head [data-lucide] { width: 16px; height: 16px; color: var(--d-primary); }
.guide__row { display: flex; align-items: flex-start; gap: 9px; color: var(--d-fg2); font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.guide__row [data-lucide] { width: 16px; height: 16px; color: var(--d-success); flex: none; margin-top: 1px; }

/* 섹션 헤더 + 검색/툴바 (예약·전문가·계정 관리 공통) */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-head h2 { margin: 0; font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.admin-tools { display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--d-surface2); border: 1px solid var(--d-border); border-radius: 12px; padding: 9px 14px; min-width: 240px; }
.search [data-lucide] { width: 16px; height: 16px; color: var(--d-muted); flex: none; }
.search input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; color: var(--d-fg); font-family: var(--font-body); font-size: 13.5px; }
.search input::placeholder { color: var(--d-muted); }
.seg-filter { display: flex; background: var(--d-surface2); border-radius: 12px; padding: 4px; gap: 2px; }
.seg-filter button { border: none; background: transparent; border-radius: 9px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--d-fg2); }
.seg-filter button.is-active { background: var(--d-primary-soft); color: var(--d-primary); }
.btn-row-act { display: inline-flex; align-items: center; gap: 5px; border: none; border-radius: 9px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.btn-row-act [data-lucide] { width: 13px; height: 13px; }
.btn-row-act--ok { background: var(--d-primary); color: #0E1220; }
.btn-row-act--ghost { background: var(--d-surface2); color: var(--d-fg2); }

/* CSV / 작업 버튼 / 상태 드롭다운 / 모달 폼 */
.btn-csv { display: inline-flex; align-items: center; gap: 7px; background: var(--d-surface2); border: 1px solid var(--d-border); border-radius: 12px; padding: 10px 16px; color: var(--d-fg); font-size: 13.5px; font-weight: 600; }
.btn-csv [data-lucide] { width: 15px; height: 15px; color: var(--d-fg2); }
.rowbtn { border: none; border-radius: 12px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rowbtn--edit { background: var(--d-surface2); color: var(--d-fg); }
.rowbtn--del  { background: #3A1A1F; color: var(--d-danger); }
.statsel { display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; padding: 6px 11px; font-size: 12px; font-weight: 600; }
.statsel [data-lucide] { width: 13px; height: 13px; }
.statsel--ok     { background: var(--d-success-soft); color: var(--d-success); }
.statsel--wait   { background: var(--d-warning-soft); color: var(--d-warning); }
.statsel--cancel { background: #3A1A1F; color: var(--d-danger); }

.modal--form { width: 540px; max-width: 100%; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.modal--form .modal__head h2 { font-size: 18px; }
.modal__x { width: 30px; height: 30px; border-radius: 12px; background: var(--d-surface2); display: flex; align-items: center; justify-content: center; border: none; color: var(--d-fg2); cursor: pointer; }
.modal__x [data-lucide] { width: 16px; height: 16px; }
.mform { display: flex; flex-direction: column; gap: 16px; }
/* 모달 폼: 필드 영역(.mform)과 저장 버튼 사이 여백 (전 모달 일괄 적용) */
.mform + button { margin-top: 14px; }
.mfield { display: flex; flex-direction: column; gap: 7px; }
.mfield[hidden] { display: none !important; }
.mfield > label { font-size: 13px; font-weight: 600; color: var(--d-fg2); }
.mfield input, .mselect { width: 100%; background: var(--d-bg); border: 1px solid var(--d-border); border-radius: 12px; padding: 11px 14px; color: var(--d-fg); font-size: 13.5px; font-family: var(--font-body); outline: none; }
.mfield input::placeholder { color: var(--d-muted); }
.mfield input:focus, .mselect:focus-within { border-color: var(--d-primary); }
.mfield select { width: 100%; background: var(--d-bg); border: 1px solid var(--d-border); border-radius: 12px; padding: 11px 14px; color: var(--d-fg); font-size: 13.5px; font-family: var(--font-body); outline: none; }
.mfield select:focus { border-color: var(--d-primary); }
.mfield input[readonly] { color: var(--d-fg2); background: var(--d-surface2); }
/* 검색 자동완성 (학생/전문가) */
.ac { position: relative; }
.ac__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--d-surface2); border: 1px solid var(--d-border); border-radius: 12px; max-height: 220px; overflow-y: auto; box-shadow: 0 10px 26px #00000066; }
.ac__item { padding: 9px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.ac__item:hover { background: var(--d-primary-soft); }
.ac__item .nm { color: var(--d-fg); font-weight: 600; font-size: 13.5px; }
.ac__item .sub { color: var(--d-fg2); font-size: 11.5px; }
.ac__empty { padding: 10px 14px; color: var(--d-fg2); font-size: 12.5px; }
.mselect { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; }
.mselect.is-ph { color: var(--d-muted); font-weight: 500; }
.mselect [data-lucide] { width: 16px; height: 16px; color: var(--d-fg2); flex: none; }
.mrow2 { display: flex; flex-direction: column; gap: 16px; }
.mrow2 .mfield { flex: none; }
.modal--form.modal--wide { width: 560px; }

/* 모달 날짜/시간 피커 팝오버 */
.mfield.has-pop { position: relative; }
.mselect.is-active { border-color: var(--d-primary); }
.picker-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--d-surface2); border: 1px solid var(--d-border); border-radius: 12px; box-shadow: 0 12px 30px #00000088; z-index: 20; padding: 12px; }
.picker-pop[hidden] { display: none; }
.time-pop { max-height: 196px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 0; }
.time-pop button { text-align: center; background: transparent; border: none; color: var(--d-fg2); padding: 9px 12px; border-radius: 8px; font-family: var(--font-data); font-size: 13.5px; cursor: pointer; }
.time-pop button:hover, .time-pop button.is-sel { background: var(--d-primary-soft); color: var(--d-primary); font-weight: 700; }
/* 미니 캘린더 (날짜 피커) */
.minical__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.minical__month { font-family: var(--font-heading); font-size: 13.5px; font-weight: 700; }
.minical__nav { display: flex; gap: 10px; color: var(--d-fg2); }
.minical__nav [data-lucide] { width: 15px; height: 15px; }
.minical__wd { display: flex; }
.minical__wd span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--d-muted); padding: 2px 0; }
.minical__grid { display: flex; flex-direction: column; gap: 2px; }
.minical__week { display: flex; gap: 2px; }
.minical__cell { flex: 1; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-family: var(--font-data); font-size: 12px; color: var(--d-fg2); cursor: pointer; }
.minical__cell.is-muted { color: var(--d-muted); opacity: .45; cursor: default; }
.minical__cell:not(.is-muted):hover { background: var(--d-primary-soft); color: var(--d-primary); }
.minical__cell.is-sel { background: var(--d-primary); color: #fff; }

/* 범용 셀렉트 드롭다운 (유형·상태·역할·분야·프로필) */
.opt-pop { max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 0; }
.opt-pop button { text-align: left; background: transparent; border: none; color: var(--d-fg2); padding: 10px 12px; border-radius: 8px; font-family: var(--font-body); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.opt-pop button:hover, .opt-pop button.is-sel { background: var(--d-primary-soft); color: var(--d-primary); }
/* 팝오버 스크롤바 (알림 모달과 동일) */
.opt-pop, .time-pop { scrollbar-width: thin; scrollbar-color: var(--d-border) transparent; }
.opt-pop::-webkit-scrollbar, .time-pop::-webkit-scrollbar { width: 8px; }
.opt-pop::-webkit-scrollbar-track, .time-pop::-webkit-scrollbar-track { background: transparent; }
.opt-pop::-webkit-scrollbar-thumb, .time-pop::-webkit-scrollbar-thumb { background: var(--d-border); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.opt-pop::-webkit-scrollbar-thumb:hover, .time-pop::-webkit-scrollbar-thumb:hover { background: var(--d-muted); }
/* 강조 셀렉트 (프로필 연결 · 분야) */
.mselect--hl { background: var(--d-primary-soft); border-color: var(--d-primary); }
.mselect--hl [data-lucide] { color: var(--d-primary); }
.mfield .mhint { color: var(--d-muted); font-size: 11.5px; font-weight: 500; }
.mfield .mlabel--hl { color: var(--d-primary); }

/* 필터 칩 (전문가 관리) */
.pfilter { display: flex; gap: 8px; }
.pfilter button { border: none; border-radius: 9999px; padding: 8px 16px; font-size: 13px; font-weight: 600; background: var(--d-surface2); color: var(--d-fg2); }
.pfilter button.is-active { background: var(--d-primary-soft); color: var(--d-primary); font-weight: 700; }
.pfilter a { display: inline-flex; align-items: center; border-radius: 9999px; padding: 8px 16px; font-size: 13px; font-weight: 600; background: var(--d-surface2); color: var(--d-fg2); text-decoration: none; }
.pfilter a.is-active { background: var(--d-primary-soft); color: var(--d-primary); font-weight: 700; }
.rowbtn--ok { background: var(--d-success-soft); color: var(--d-success); }
.rowbtn--link { background: var(--d-surface2); color: var(--d-fg); text-decoration: none; display: inline-flex; align-items: center; }
.admin-head .sub { color: var(--d-muted); font-size: 13px; font-weight: 500; margin: 3px 0 0; }
.admin-head h2 + .sub { margin-top: 3px; }
.adt .rate { display: inline-flex; align-items: center; gap: 4px; }
.adt .rate .star { color: var(--d-warning); font-size: 13px; }
.adt .rate b { color: var(--d-fg); font-size: 13.5px; font-weight: 700; }
.adt .tags { display: flex; gap: 6px; justify-content: center; }

/* 설정 화면 */
.set-card { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.set-card > h2 { margin: 0; font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.set-sub { font-family: var(--font-heading); font-size: 15.5px; font-weight: 700; }
.danger-card { background: #241319; border: 1px solid var(--d-danger); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.danger-card .dh { display: flex; align-items: center; gap: 8px; color: var(--d-danger); font-family: var(--font-heading); font-size: 14.5px; font-weight: 700; }
.danger-card .dh [data-lucide] { width: 17px; height: 17px; }
.danger-card p { margin: 0; color: var(--d-fg2); font-size: 13px; line-height: 1.5; }
.btn-danger { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; background: var(--d-danger); color: #0E1220; border: none; border-radius: 12px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; }
.btn-danger [data-lucide] { width: 15px; height: 15px; }
.info-card { background: var(--d-cyan-soft); border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 12px; }
.info-card [data-lucide] { width: 18px; height: 18px; color: var(--d-cyan); flex: none; }
.info-card .t { font-size: 14px; font-weight: 700; color: var(--d-fg); }
.info-card .s { font-size: 13px; color: var(--d-fg2); }

/* 운영진 월간 캘린더 */
.bigcal { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bigcal__head { display: flex; align-items: center; justify-content: space-between; }
.bigcal__month { font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.bigcal__nav { display: flex; gap: 10px; color: var(--d-fg2); }
.bigcal__nav [data-lucide] { width: 18px; height: 18px; cursor: pointer; }
.bigcal__wd { display: flex; }
.bigcal__wd span { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--d-muted); padding: 4px 0; }
.bigcal__wd .sun { color: var(--d-danger); }
.bigcal__wd .sat { color: var(--d-cyan); }
.bigcal__grid { display: flex; flex-direction: column; gap: 6px; }
.bigcal__week { display: flex; gap: 6px; }
.bigcal__cell { flex: 1; min-width: 0; min-height: 100px; background: var(--d-surface2); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.bigcal__cell.is-muted { opacity: .35; }
.bigcal__num { font-family: var(--font-data); font-size: 12.5px; font-weight: 600; color: var(--d-fg2); }
.bigcal__cell.is-today .bigcal__num { color: #fff; background: var(--d-primary); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bigcal__ev { border-radius: 6px; padding: 3px 7px; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bigcal__ev--ir   { background: var(--d-primary-soft); color: var(--d-primary); }
.bigcal__ev--con  { background: var(--d-cyan-soft); color: var(--d-cyan); }
.bigcal__ev--wait { background: var(--d-warning-soft); color: var(--d-warning); }

/* 내 정보 페이지 (톱니바퀴 진입) */
.acc-grid { display: flex; gap: 24px; align-items: flex-start; }
.acc-id { width: 340px; flex: none; background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 6px 18px #00000040; }
.acc-id__avwrap { position: relative; margin-bottom: 12px; }
.acc-id__av { width: 76px; height: 76px; border-radius: 50%; background: var(--grad-pc); display: flex; align-items: center; justify-content: center; color: #0E1220; box-shadow: 0 0 20px #8B7CFF66; background-size: cover; background-position: center; }
.acc-id__av [data-lucide] { width: 34px; height: 34px; }
.acc-id__av.has-img [data-lucide] { display: none; }
.acc-id__avbtn { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--d-surface2); border: 2px solid var(--d-surface); color: var(--d-fg); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s; }
.acc-id__avbtn:hover { background: var(--d-primary); color: #fff; }
.acc-id__avbtn [data-lucide] { width: 14px; height: 14px; }
.acc-id__avhint { color: var(--d-muted); font-size: 11px; font-weight: 500; margin-top: 8px; }
.acc-id__name { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.acc-id__badge { margin: 8px 0 6px; }
.acc-id__sub { color: var(--d-fg2); font-size: 13px; font-weight: 500; }
.acc-id__list { width: 100%; margin-top: 18px; display: flex; flex-direction: column; }
.acc-id__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--d-border); }
.acc-id__row .k { color: var(--d-muted); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.acc-id__row .k [data-lucide] { width: 15px; height: 15px; }
.acc-id__row .v { color: var(--d-fg); font-size: 13px; font-weight: 600; font-family: var(--font-data); }
.acc-logout { width: 100%; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 0; border-radius: 12px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.acc-logout [data-lucide] { width: 16px; height: 16px; }

.acc-form { flex: 1; min-width: 0; background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.acc-form__h { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.acc-form__h [data-lucide] { width: 17px; height: 17px; color: var(--d-primary); }
.acc-divider { height: 1px; background: var(--d-border); }
.acc-form input.is-lock { background: var(--d-surface2); color: var(--d-fg2); cursor: not-allowed; }
.acc-form .mhint { color: var(--d-muted); font-size: 11.5px; font-weight: 500; }
.acc-form textarea { width: 100%; background: var(--d-bg); border: 1px solid var(--d-border); border-radius: 12px; padding: 11px 14px; color: var(--d-fg); font-size: 13.5px; font-family: var(--font-body); outline: none; resize: vertical; min-height: 78px; line-height: 1.5; }
.acc-form textarea:focus { border-color: var(--d-primary); }
.acc-form textarea::placeholder { color: var(--d-muted); }

/* ============================================================
   반응형 (1920px → 320px)
   ============================================================ */

/* ── 헤더 GNB를 2번째 줄로 (일정 넓이 이하) ── */
@media (max-width: 1024px) {
    .topbar { height: auto; }
    .topbar__inner { flex-wrap: wrap; padding: 11px 0; row-gap: 9px; }
    .nav { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; gap: 5px; }
    .nav a { padding: 7px 14px; }
}

/* ── 본문 2단: 1024px 이하부터 좌측 440px 고정 해제 → 좌4:우6 비율 ── */
@media (min-width: 901px) and (max-width: 1024px) {
    .mainrow .col-side, .coach-main .add-card { flex: 4 1 0; width: auto; }
    .mainrow .col-main, .coach-main .col-main { flex: 6 1 0; }
}

/* ── 2단 레이아웃 → 세로 스택 / 표 가로 스크롤 ── */
@media (max-width: 900px) {
    .mainrow, .coach-main, .acc-grid, .slot-main, .admin-cols { flex-direction: column; align-items: stretch; }
    .col-side, .add-card, .acc-id, .acc-form, .coach-summary, .col-main, .slot-col,
    .admin-cols .right, .admin-cols .left { width: 100%; }
    .coach-row { grid-template-columns: 1fr; }
    /* 스택될 때 AI 어시스턴트 박스 숨김 (우측 하단 AI 퀵버튼으로 대체) */
    .aipromo { display: none; }
    /* 현황: 통계4개+운영안내(right)를 최근예약(left)보다 먼저 */
    .admin-cols .right { order: -1; }

    /* 캘린더: 어떤 크기에서도 가로 스크롤 없이 맞춤 (셀이 균등 축소) */
    .bigcal__cell { min-height: 84px; padding: 6px; }
    .bigcal__ev { font-size: 10px; padding: 2px 5px; }
}

/* 표: 유연 폭 + 열별 폭/폰트 조정 (641~900px · 카드 전환 전 구간) */
@media (min-width: 641px) and (max-width: 900px) {
    .adt { min-width: 0; }
    .adt .c { flex: 1 1 0 !important; width: auto !important; min-width: 0; word-break: keep-all; }
    .adt .c:first-child { flex-grow: 0.6 !important; }                                    /* 유형/역할 배지 */
    .adt .c[data-label="상태"], .adt .c[data-label="평점"] { flex: 0 0 76px !important; }  /* 상태·평점 배지 */
    .adt .c[data-label="작업"] { flex: 0 0 112px !important; }                            /* 수정·삭제 */
    .adt .nm, .adt .nm2, .adt .dt { font-size: 12.5px; }
    .adt .rate b { font-size: 12px; }
    .adt .rate .star { font-size: 11px; }
    .adt .tag { font-size: 10.5px; padding: 2px 7px; }
}

/* ── 프로필 밴드 2줄 (656~890px): 1행=아바타+이름+우측 메타, 2행=통계+CTA ── */
@media (min-width: 641px) and (max-width: 890px) {
    .profile { flex-wrap: wrap; }
    .profile__left { width: 100%; }
    .profile__left > div:not(.avatar) { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
    .profile__meta { margin-top: 0; flex: none; }
}

/* ── 태블릿~모바일 ── */
@media (max-width: 640px) {
    .wrap { max-width: calc(100% - 28px); }
    .content { padding: 18px 0 92px; }
    .container { gap: 16px; }

    .profile { flex-direction: column; align-items: flex-start; }
    .stats { width: 100%; justify-content: space-between; gap: 10px; }
    /* 좁은 화면: 통계 라벨이 줄바꿈/깨지지 않게 크기 축소 + 한 줄 고정 */
    .stat { gap: 6px; }
    .stat__icon { width: 30px; height: 30px; border-radius: 10px; }
    .stat__icon [data-lucide] { width: 15px; height: 15px; }
    .stat__label { font-size: 12px; white-space: nowrap; }
    .stat__value { font-size: 14px; }
    .btn-grad.btn-grad--inline { width: 100%; justify-content: center; }

    .mrow2, .row { flex-direction: column; gap: 14px; }
    .coach-row { gap: 12px; }
    .slot-row, .time-row, .pfilter { flex-wrap: wrap; }

    .kpi-row { flex-wrap: wrap; }
    .kpi { flex: 1 1 calc(50% - 6px); min-width: calc(50% - 6px); }

    .bigcal { padding: 14px; }
    .bigcal__head { flex-wrap: wrap; row-gap: 6px; }
    .bigcal__cell { min-height: 62px; padding: 5px; gap: 3px; }
    .bigcal__num { font-size: 11px; }
    .bigcal__wd span { font-size: 10px; padding: 2px 0; }
    .bigcal__ev { font-size: 9px; padding: 1px 4px; }

    .chat { right: 14px; left: 14px; width: auto; max-width: none; height: 62vh; max-height: 62vh; }
    .fab { right: 16px; }

    .acc-form, .acc-id { padding: 22px 18px; }
    .modal--form, .modal--confirm { padding: 26px 20px; }

    /* 가로로 긴 표 → 카드형 (모바일: 가로 스크롤 대신 라벨:값) */
    .panel { overflow: visible; }
    .adt { min-width: 0; padding-top: 14px; }
    .adt__th { display: none; }
    .adt__row { flex-direction: column; align-items: stretch; padding: 0; margin: 0 12px 12px; border: 1px solid var(--d-border); border-radius: 12px; background: var(--d-surface2); overflow: hidden; }
    .adt__row:last-child { margin-bottom: 14px; }
    .adt .c { width: 100% !important; flex: none !important; justify-content: space-between; gap: 14px; text-align: right; padding: 10px 14px; border-top: 1px solid var(--d-border); }
    .adt__row .c:first-child { border-top: none; background: var(--d-surface); }
    .adt .c::before { content: attr(data-label); color: var(--d-muted); font-size: 12px; font-weight: 600; flex: none; white-space: nowrap; }
    .adt .c .tags { justify-content: flex-end; flex-wrap: wrap; }
}

/* ── 소형 모바일 (≤420px, 320px 포함) ── */
@media (max-width: 420px) {
    .wrap { max-width: calc(100% - 20px); }
    .topbar__right { gap: 8px; }
    .brand--md { font-size: 18px; }
    .nav a { padding: 6px 11px; font-size: 13px; }

    .stats { flex-wrap: wrap; gap: 10px 14px; }
    .divider-v { display: none; }
    .kpi-row { flex-direction: column; }
    .kpi { flex: 1 1 auto; min-width: 0; }

    .profile__name, .acc-id__name { font-size: 18px; }
    .modal--form, .modal--confirm, .modal--done { padding: 22px 16px; }
    .sec-head h2 { font-size: 16px; }

    /* 캘린더 더 축소 (가로 스크롤 없이 유지) */
    .bigcal { padding: 10px; }
    .bigcal__cell { min-height: 50px; padding: 4px; border-radius: 7px; }
    .bigcal__num { font-size: 10px; }
    .bigcal__week, .bigcal__grid { gap: 4px; }
    .bigcal__ev { font-size: 8.5px; padding: 1px 3px; }
}
