/* ============================================================
   티음 (TIUM) — 디자인 시스템 (전체 통일안)
   "종이 위 잉크, 그리고 이음 점"
   교무실 책상의 정돈된 온기: 웜 페이퍼 캔버스 + 잉크 텍스트,
   로고의 오렌지 점(#FF3D00)을 유일한 액센트로 사용한다.

   구성 규칙
   - 이 파일: 토큰·베이스·2개 이상 페이지에서 쓰이는 컴포넌트
   - assets/css/pages/*.css: 해당 페이지에서만 쓰이는 스타일
   - 인라인 style 사용 금지 — 필요한 스타일은 반드시 클래스로

   깊이 전략: 헤어라인 링 + 저소음 이중 섀도 (단일 전략)
   간격: 4px 그리드 · 타입: Pretendard, 1.25 스케일, 웨이트 주도
   ============================================================ */

/* ---------- 1. 토큰 ---------- */
:root {
  /* 캔버스와 표면 */
  --paper: #FAF9F7;
  --sheet: #FFFFFF;
  --well: #F4F2EF;              /* 인풋·움푹한 면 — 주변보다 어둡게 */

  /* 잉크 4단계 */
  --ink: #1C1D2B;               /* 구 브랜드 #121331 계승 */
  --ink-2: rgba(28, 29, 43, .74);
  --ink-3: rgba(28, 29, 43, .55);
  --ink-4: rgba(28, 29, 43, .38);

  /* 경계 */
  --line: rgba(28, 29, 43, .08);
  --line-strong: rgba(28, 29, 43, .16);

  /* 이음 점 — 브랜드 액센트 */
  --dot: #FF3D00;
  --dot-deep: #DE3400;
  --dot-wash: #FFF1EB;
  --dot-ink: #B32A00;           /* 밝은 배경 위 오렌지 텍스트용 */

  /* 시맨틱 */
  --leaf: #1B7F55;   --leaf-wash: #E9F5EF;   /* 수락 */
  --clay: #C23A31;   --clay-wash: #FAEDEB;   /* 거절 */
  --amber: #94660A;  --amber-wash: #FBF3DF;  /* 대기 */

  /* 주말 — 캘린더 요일/날짜 색 (차분한 톤, 빨강은 오렌지와 혼동되지 않게 더 붉은 계열) */
  --cal-sat: #3B6EA5;
  --cal-sun: #CB352E;

  /* 깊이 — 링 + 저소음 이중 섀도 */
  --lift-1: 0 0 0 1px rgba(28,29,43,.05), 0 1px 2px -1px rgba(28,29,43,.06), 0 2px 6px rgba(28,29,43,.04);
  --lift-2: 0 0 0 1px rgba(28,29,43,.05), 0 4px 10px -2px rgba(28,29,43,.07), 0 14px 36px -10px rgba(28,29,43,.12);
  --lift-3: 0 0 0 1px rgba(28,29,43,.06), 0 10px 24px -6px rgba(28,29,43,.12), 0 32px 72px -18px rgba(28,29,43,.20);

  /* 모서리 — 로고의 둥근 획 계승 */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-pill: 999px;

  /* 모션 */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --fast: 150ms;
  --std: 220ms;
}

/* ---------- 2. 리셋·베이스 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: -0.011em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.025em; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--dot); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--dot-wash); color: var(--dot-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 3. 타이포 유틸 ---------- */
.t-display { font-size: 44px; font-weight: 800; line-height: 1.16; letter-spacing: -0.035em; }
.t-h1 { font-size: 31px; font-weight: 750; line-height: 1.25; }
.t-h2 { font-size: 25px; font-weight: 700; line-height: 1.3; }
.t-h3 { font-size: 19px; font-weight: 650; line-height: 1.4; }
.t-body { font-size: 15px; }
.t-sub { font-size: 14px; color: var(--ink-2); }
.t-meta { font-size: 13px; color: var(--ink-3); }
.t-cap { font-size: 12px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* 시그니처: 이음 점 키커 */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; letter-spacing: .12em;
  color: var(--ink-3); text-transform: uppercase;
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dot); flex: none;
}
.kicker-s { font-size: 11px; }

/* ---------- 4. 레이아웃 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.page-main { min-height: calc(100vh - 400px); padding-bottom: 96px; }

.page-head { padding: 48px 0 8px; }
.page-head .page-title { font-size: 31px; font-weight: 750; letter-spacing: -0.03em; margin-top: 10px; }
.page-head .page-desc { margin-top: 10px; max-width: 640px; color: var(--ink-2); font-size: 15px; }

.section { padding: 72px 0; }
.section-head { margin-bottom: 36px; }
.section-head .t-h2 { margin-top: 10px; }
.section-head .sec-desc { margin-top: 10px; color: var(--ink-2); max-width: 560px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .t-display { font-size: 34px; }
  .page-head { padding-top: 32px; }
  .page-head .page-title { font-size: 26px; }
  .section { padding: 48px 0; }
}

/* ---------- 5. 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250, 249, 247, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; flex: none; color: var(--ink); }
.brand svg { height: 26px; width: auto; display: block; }

.gnb { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.gnb a {
  position: relative;
  padding: 8px 12px; border-radius: var(--r-s);
  font-size: 14.5px; font-weight: 550; color: var(--ink-2);
  transition: color var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out);
  white-space: nowrap;
}
.gnb a:hover { color: var(--ink); background: rgba(28,29,43,.045); }
.gnb a[aria-current="page"] { color: var(--ink); font-weight: 650; }
/* 활성 점은 상단 GNB 직계 링크에만 — 드롭다운 메뉴 항목은 좌측 점(별도 규칙) 사용 */
.gnb > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--dot); transform: translateX(-50%);
}
.gnb .gnb-divider { width: 1px; height: 18px; background: var(--line-strong); margin: 0 8px; flex: none; }
.gnb a.gnb-master { color: var(--dot-ink); font-weight: 650; }
.gnb a.gnb-master:hover { background: var(--dot-wash); color: var(--dot-ink); }

/* 강사 전용 메뉴 드롭다운 */
.gnb-drop { position: relative; }
.gnb-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r-s);
  font-size: 14.5px; font-weight: 550; color: var(--ink-2);
  transition: color var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out);
  white-space: nowrap;
}
.gnb-drop-btn svg { transition: transform var(--std) var(--ease-out); color: var(--ink-4); }
.gnb-drop:hover .gnb-drop-btn, .gnb-drop.open .gnb-drop-btn, .gnb-drop:focus-within .gnb-drop-btn {
  color: var(--ink); background: rgba(28,29,43,.045);
}
.gnb-drop:hover .gnb-drop-btn svg, .gnb-drop.open .gnb-drop-btn svg { transform: rotate(180deg); }
.gnb-drop.is-here .gnb-drop-btn { position: relative; color: var(--ink); font-weight: 650; }
.gnb-drop.is-here .gnb-drop-btn::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--dot); transform: translateX(-50%);
}
.gnb-drop-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 100;
  min-width: 216px;
  background: var(--sheet); border-radius: var(--r-m);
  box-shadow: var(--lift-3);
  padding: 8px;
  opacity: 0; pointer-events: none;
  transform: scale(.96) translateY(-4px); transform-origin: top left;
  transition: opacity var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
/* 버튼과 메뉴 사이 호버 브리지 */
.gnb-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.gnb-drop:hover .gnb-drop-menu, .gnb-drop.open .gnb-drop-menu, .gnb-drop:focus-within .gnb-drop-menu {
  opacity: 1; pointer-events: auto; transform: none;
}
.gnb-drop-menu a[role="menuitem"] {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-s);
  font-size: 14px; font-weight: 550; color: var(--ink-2);
  transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
}
.gnb-drop-menu a[role="menuitem"]:hover { background: var(--well); color: var(--ink); }
.gnb-drop-menu a[role="menuitem"][aria-current="page"] {
  color: var(--ink); font-weight: 650;
  position: relative; padding-left: 26px;
}
.gnb-drop-menu a[role="menuitem"][aria-current="page"]::before {
  content: ""; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--dot);
}
.gnb-drop-menu .drop-core {
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--dot-ink); background: var(--dot-wash);
  padding: 2px 7px; border-radius: var(--r-pill);
}
.gnb-drop-menu .drop-cta { padding: 8px 4px 4px; margin-top: 4px; border-top: 1px solid var(--line); }
/* 드롭다운 CTA 버튼 — .gnb a(색·호버·패딩·radius) 규칙이 .btn-*보다 특이도가 높아 버튼 본색을 되찾아준다 */
.gnb .drop-cta a.btn { padding: 0 13px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; }
.gnb .drop-cta a.btn-primary { color: #fff; }
.gnb .drop-cta a.btn-primary:hover { color: #fff; background: var(--dot-deep); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip .hello { font-size: 14px; color: var(--ink-2); }
.user-chip .hello strong { font-weight: 650; color: var(--ink); }

/* 이용권 플랜 배지 */
.plan-badge {
  display: inline-flex; align-items: center; flex: none;
  height: 20px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
}
.plan-basic { background: var(--well); color: var(--ink-3); }
.plan-basic:hover { color: var(--ink-2); }
.plan-plus { background: var(--dot-wash); color: var(--dot-ink); }
.plan-plus:hover { background: #FFE6DC; }
.plan-pro { background: var(--dot); color: #fff; }
.plan-pro:hover { background: var(--dot-deep); }

/* 프로필 아바타 드롭다운 */
.profile-drop { position: relative; flex: none; }
.profile-trigger {
  display: inline-flex; border-radius: 50%;
  transition: box-shadow var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
.profile-trigger:hover { box-shadow: 0 0 0 3px var(--well); }
.profile-trigger:active { transform: scale(.96); }
.profile-drop.open .profile-trigger { box-shadow: 0 0 0 3px var(--dot-wash); }
.profile-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 100;
  width: 268px; max-width: calc(100vw - 24px);
  background: var(--sheet); border-radius: var(--r-l);
  box-shadow: var(--lift-3);
  padding: 8px;
  opacity: 0; pointer-events: none;
  transform: scale(.96) translateY(-4px); transform-origin: top right;
  transition: opacity var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
.profile-drop.open .profile-menu { opacity: 1; pointer-events: auto; transform: none; }
.pm-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; }
.pm-id { min-width: 0; }
.pm-name {
  display: flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 650; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pm-email { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-list { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
.pm-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border-radius: var(--r-s);
  font-size: 14px; font-weight: 550; color: var(--ink-2); text-align: left;
  transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
}
.pm-item:hover { background: var(--well); color: var(--ink); }
.pm-item .pm-ico { display: inline-flex; color: var(--ink-3); transition: color var(--fast) var(--ease-out); }
.pm-item:hover .pm-ico { color: var(--dot); }
.pm-sep { height: 1px; background: var(--line); margin: 4px 8px; }
.pm-logout { color: var(--ink-3); }
.pm-logout:hover { color: var(--clay); background: var(--clay-wash); }

.menu-toggle { display: none; }

@media (max-width: 920px) {
  .gnb {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--sheet); border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
    box-shadow: var(--lift-2);
    display: none;
  }
  .gnb.open { display: flex; }
  .gnb a { padding: 12px 14px; font-size: 15.5px; }
  .gnb > a[aria-current="page"]::after { left: 2px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .gnb > a[aria-current="page"] { padding-left: 18px; }
  .gnb .gnb-divider { width: auto; height: 1px; margin: 8px 4px; }
  /* 모바일: 드롭다운을 항상 펼친 섹션으로 */
  .gnb-drop-btn { width: 100%; padding: 12px 14px; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
  .gnb-drop-btn svg { display: none; }
  .gnb-drop-menu {
    position: static; opacity: 1; pointer-events: auto; transform: none;
    box-shadow: none; padding: 0 0 4px; min-width: 0;
  }
  .gnb-drop-menu a[role="menuitem"] { padding: 12px 14px 12px 24px; font-size: 15.5px; }
  .gnb-drop-menu .drop-cta { padding: 10px 14px 6px; border-top: 0; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--r-s);
    color: var(--ink-2);
  }
  .menu-toggle:hover { background: rgba(28,29,43,.05); }
  .header-actions { margin-left: auto; }   /* 아바타·로그인 버튼을 우측(햄버거 옆)으로 */
  .header-actions .hello { display: none; }
  .site-header .bar { gap: 12px; }
}

/* ---------- 6. 푸터 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sheet);
  padding: 56px 0 40px;
  margin-top: 96px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .f-brand { color: var(--ink); }
.site-footer .f-brand svg { height: 22px; width: auto; }
.site-footer .f-tag { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); max-width: 240px; }
.site-footer .f-col .f-title {
  font-size: 11.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.site-footer .f-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.site-footer .f-col a:hover { color: var(--dot-ink); }
.footer-legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-4); line-height: 1.9;
}
.footer-legal .cr { margin-top: 8px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 7. 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background-color var(--fast) var(--ease-out),
              color var(--fast) var(--ease-out),
              box-shadow var(--fast) var(--ease-out),
              transform var(--fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--dot); color: #fff; }
.btn-primary:hover { background: var(--dot-deep); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); background: var(--sheet); }
.btn-ghost:hover { background: var(--well); }
.btn-ghost-inverse { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn-ghost-inverse:hover { background: rgba(255,255,255,.1); }
.btn-soft { background: var(--dot-wash); color: var(--dot-ink); }
.btn-soft:hover { background: #FFE6DC; }
.btn-quiet { color: var(--ink-3); }
.btn-quiet:hover { color: var(--ink); background: rgba(28,29,43,.05); }
.btn-danger { background: var(--clay-wash); color: var(--clay); }
.btn-danger:hover { background: #F5DDDA; }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: #156A47; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15.5px; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- 8. 칩 (필터·다중 선택) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px;
  border-radius: var(--r-pill);
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: all var(--fast) var(--ease-out);
  user-select: none;
  position: relative;
}
.chip:hover { background: var(--well); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink); color: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
  font-weight: 600;
}
.chip[aria-pressed="true"]::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot);
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 768px) {
  .chip { min-height: 38px; padding: 0 15px; }
  .chip::after {
    content: ""; position: absolute; left: 0; right: 0; top: 50%;
    height: 44px; transform: translateY(-50%);
  }
  .chip-group {
    flex-wrap: nowrap; overflow-x: auto;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -20px; padding: 2px 20px;
  }
  .chip-group::-webkit-scrollbar { display: none; }
  .chip-group > * { scroll-snap-align: start; flex: 0 0 auto; }
}

/* ---------- 9. 배지 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-cat { background: var(--well); color: var(--ink-2); }
.badge-dot { background: var(--dot-wash); color: var(--dot-ink); }
.badge-leaf { background: var(--leaf-wash); color: var(--leaf); }
.badge-clay { background: var(--clay-wash); color: var(--clay); }
.badge-amber { background: var(--amber-wash); color: var(--amber); }
.badge .st-ico { font-size: 11px; line-height: 1; }
.badge-self-start { align-self: flex-start; }

/* ---------- 10. 카드 ---------- */
.card {
  background: var(--sheet);
  border-radius: var(--r-l);
  box-shadow: var(--lift-1);
}
.card-hover { transition: box-shadow var(--std) var(--ease-out), transform var(--std) var(--ease-out); }
.card-hover:hover { box-shadow: var(--lift-2); transform: translateY(-2px); }

/* ---------- 11. 폼 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field > label .req { color: var(--dot); margin-left: 2px; }
.field .hint { font-size: 12.5px; color: var(--ink-4); }
.field-hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; margin-top: -1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.input, .select, .textarea {
  width: 100%; border: 0; border-radius: var(--r-m);
  background: var(--well);
  box-shadow: inset 0 0 0 1px transparent;
  padding: 0 14px; height: 44px;
  font-size: 14.5px; color: var(--ink);
  transition: box-shadow var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out);
}
.textarea { padding: 12px 14px; height: auto; min-height: 110px; resize: vertical; line-height: 1.6; }
.textarea-s { min-height: 80px; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { background: #EFEDE9; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background: var(--sheet);
  box-shadow: inset 0 0 0 1.5px var(--dot);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236E6F7B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.radio-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--well); border-radius: var(--r-m);
  cursor: pointer; font-size: 14px;
}
.radio-option input { accent-color: var(--dot); }

.upload-box {
  border-radius: var(--r-m); background: var(--well);
  border: 1.5px dashed var(--line-strong);
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: all var(--fast) var(--ease-out);
  color: var(--ink-3); font-size: 13.5px;
}
.upload-box:hover { border-color: var(--dot); color: var(--dot-ink); background: var(--dot-wash); }
.upload-box .u-ico { font-size: 22px; margin-bottom: 6px; }
.upload-box-slim { padding: 18px; flex: 1; }

/* 등록 폼 레이아웃 (강의 등록·프로필 수정) */
.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; margin-top: 32px; }
.form-card { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.form-card-narrow { max-width: 720px; }
.form-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; }
@media (max-width: 920px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; order: -1; }
}
@media (max-width: 640px) { .form-card { padding: 22px; } }

/* ---------- 12. 테이블 ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--r-l); }
.table { width: 100%; border-collapse: collapse; background: var(--sheet); font-size: 14px; min-width: 640px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 650; letter-spacing: .06em;
  color: var(--ink-3); text-transform: uppercase;
  padding: 12px 16px; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--fast) var(--ease-out); }
.table tbody tr:hover { background: rgba(28,29,43,.02); }
.td-strong { font-weight: 600; }
.td-nowrap { white-space: nowrap; }
.td-muted { color: var(--ink-3); }
.td-sub { color: var(--ink-2); }
.td-right { text-align: right; }
.td-center-empty { text-align: center; color: var(--ink-3); padding: 32px !important; }

/* ---------- 13. 아바타 ---------- */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  background: var(--ink);
  outline: 1px solid rgba(0,0,0,.08); outline-offset: -1px;
  position: relative; overflow: hidden;
}
.avatar-lg { width: 72px; height: 72px; font-size: 24px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-photo { background: var(--well); }
.avatar-photo img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
.avatar-photo .avatar-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
/* 배경 제거 프로필 아이콘 — 투명 PNG 뒤에 배경지 받침(경로는 avatarHTML inline).
   이미지 로드 실패 시 img가 사라져 .avatar-fallback(잉크 이니셜)이 그대로 노출된다. */
.avatar-cutout { background-size: cover; background-position: center; }

/* ---------- 14. 탭 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); }
.tab {
  position: relative; padding: 11px 16px;
  font-size: 15px; font-weight: 550; color: var(--ink-3);
  transition: color var(--fast) var(--ease-out);
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 650; }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2.5px; border-radius: 2px; background: var(--dot);
}
.tab .count {
  margin-left: 6px; font-size: 12px; font-weight: 650;
  color: var(--ink-3); background: var(--well);
  border-radius: var(--r-pill); padding: 2px 8px;
  font-variant-numeric: tabular-nums;
}
.tab[aria-selected="true"] .count { background: var(--dot-wash); color: var(--dot-ink); }

/* ---------- 15. 모달 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 29, 43, .40);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 20px 40px;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity var(--std) var(--ease-out);
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 640px;
  background: var(--sheet); border-radius: 20px;
  box-shadow: var(--lift-3);
  transform: scale(.96) translateY(8px); opacity: 0;
  transition: transform var(--std) var(--ease-out), opacity var(--std) var(--ease-out);
}
/* 모달 내부 콘텐츠가 프레임을 넘지 않게 — img는 전역 리셋에 있고 canvas가 빈틈이었다 */
.modal canvas { max-width: 100%; height: auto; }
/* 모바일: 팝업이 실제 화면(동적 뷰포트)보다 커지지 않게 — 모달 자체를 화면 안에 가두고 내부 스크롤.
   iOS 사파리는 body overflow:hidden 잠금이 어긋나 backdrop 스크롤이 먹지 않는 경우가 있어
   backdrop 스크롤 대신 모달 내부 스크롤로 항상 화면 안에 담는다. */
@media (max-width: 560px) {
  .modal-backdrop { padding: 12px 12px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .modal {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }
}
.modal-backdrop.show .modal { transform: none; opacity: 1; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 28px 0;
}
.modal-head .modal-title { margin-top: 10px; }
.modal-head .modal-title-sub { margin-top: 4px; }
.modal-body { padding: 20px 28px 28px; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); background: var(--well);
  transition: all var(--fast) var(--ease-out);
}
.modal-close:hover { background: #EAE7E2; color: var(--ink); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* 프로필 수정 모달 */
.pe-photo { display: flex; align-items: center; gap: 18px; }
.pe-photo-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pe-danger { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pe-danger-head {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 10px;
}
.pe-danger-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pe-danger-txt { min-width: 0; }
.pe-danger-label { font-size: 14px; font-weight: 650; color: var(--ink); margin-bottom: 2px; }

/* 구독 정보 모달 */
.plan-status { padding: 18px 20px; border-radius: var(--r-l); background: var(--well); }
.plan-status-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-status-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.plan-status-desc { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.55; }
.plan-status-meta { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.plan-renews { color: var(--ink-3); }
.plan-upsell { margin-top: 18px; }
.plan-promo { padding: 14px 16px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; }
.plan-promo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.plan-promo-price { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.plan-promo-list { list-style: none; display: grid; gap: 6px; }
.plan-promo-list li { position: relative; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.plan-promo-list li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--dot);
}
.plan-manage { margin-top: 18px; }
.plan-block { margin-top: 24px; }
.plan-block-title { font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 10px; }

/* 이용권 코드 등록 폼 (공용 — 구독 모달·이용권 페이지 공유) */
.code-redeem { display: flex; gap: 8px; }
.code-redeem .input { flex: 1; }

/* 결제 이력 */
.plan-pays { display: flex; flex-direction: column; gap: 8px; }
.pay-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line);
}
.pay-main { flex: 1; min-width: 0; }
.pay-item { font-size: 14px; font-weight: 600; color: var(--ink); }
.pay-date { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pay-amt { font-size: 14px; font-weight: 650; color: var(--ink); flex: none; }
.pay-stat { flex: none; }
.pay-acts { display: flex; align-items: center; gap: 4px; flex: none; }
@media (max-width: 560px) {
  .pay-row { flex-wrap: wrap; }
  .pay-main { flex-basis: 55%; }
  .pay-acts { margin-left: auto; }
}

/* 로그인 모달 */
.login-desc { max-width: 420px; }
.login-terms { margin-top: 16px; text-align: center; }
.login-terms a { text-decoration: underline; }

/* 이용권 업그레이드 안내 모달 */
.upgrade-lead { font-weight: 650; color: var(--ink); }
.upgrade-feature { margin-top: 8px; }

/* 회원 유형 선택 모달 */
.mtype-desc { margin-bottom: 20px; }
.mtype-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mtype-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 20px; text-align: left;
  background: var(--sheet); border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow var(--fast) var(--ease-out),
              background-color var(--fast) var(--ease-out),
              transform var(--fast) var(--ease-out);
}
.mtype-card:hover { background: var(--well); box-shadow: inset 0 0 0 1.5px var(--dot); }
.mtype-card:active { transform: scale(.98); }
.mtype-card .mtype-ico { color: var(--dot); line-height: 0; margin-bottom: 4px; }
.mtype-card .mtype-t { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.mtype-card .mtype-d { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.mtype-org { margin-top: 16px; }
.mtype-foot { margin-top: 16px; display: flex; justify-content: center; }
@media (max-width: 480px) { .mtype-grid { grid-template-columns: 1fr; } }

/* ---------- 강사 프로필 모달 (강의·강사 찾기 공용) ---------- */
.ip-head { display: flex; gap: 16px; align-items: center; min-width: 0; }
.ip-head > div { min-width: 0; }
.ip-head h3, .ip-head .ip-org { word-break: keep-all; }
.ip-head .ip-org { margin-top: 2px; }
.ip-head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 640px) {
  /* 좁은 화면: 액션(프로필 열기·닫기)을 윗줄로 올리고 아바타+이름은 전체 폭 사용 */
  .modal-head { flex-wrap: wrap; }
  .ip-head { order: 2; flex-basis: 100%; }
  .ip-head-actions { order: 1; margin-left: auto; }
}
.ip-facts { margin-top: 20px; }
.ip-facts .fv { white-space: pre-line; }
.ip-groups { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.ip-lectures { margin-top: 24px; }
.ip-lecture-grid {
  margin-top: 12px; display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
.ip-lec-card {
  display: flex; flex-direction: column;
  background: var(--sheet); border-radius: var(--r-m); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
.ip-lec-card:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--lift-1); transform: translateY(-2px); }
.ip-lec-card .thumb { border-radius: 0; }
.ip-lec-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ip-lec-title {
  font-size: 14px; font-weight: 650; line-height: 1.4; letter-spacing: -0.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 560px) { .ip-lecture-grid { grid-template-columns: 1fr; } }

/* 모바일: 모달 → 하단 시트 */
@media (max-width: 640px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal {
    max-width: none !important; width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 85vh; overflow-y: auto;
    transform: translateY(100%);
  }
  .modal-backdrop.show .modal { transform: none; }
  .input, .select, .textarea { font-size: 16px; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .modal { transform: none; }
}

/* ---------- 프로필 사진 파이프라인 모달 (bgr-*) ----------
   profile-photo.js(TIUM_PHOTO) 전용 — 배경 제거·비교·배경지 선택·1:1 얼굴 크롭.
   instructor.css에서 승격(2026-07-13): 개인 프로필 수정 모달 등 전 페이지 공용. */
/* 배경 제거 실패 시 강등 안내 문구 */
.bgr-fallback-note {
  text-align: center; margin-bottom: 14px;
  font-size: 13.5px; color: var(--ink-3); line-height: 1.5;
}

/* 1) 선택 미리보기 */
.bgr-preview {
  display: flex; justify-content: center;
  margin-bottom: 20px;
}
.bgr-thumb {
  max-width: 100%; max-height: 320px;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--well);
}

/* 2) 진행 상태 */
.bgr-progress {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 24px 8px;
}
.bgr-note {
  font-size: 14px; color: var(--ink-3);
}
.bgr-bar {
  width: 100%; height: 8px;
  border-radius: var(--r-pill);
  background: var(--well);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bgr-bar-fill {
  height: 100%; width: 0;
  background: var(--dot);
  border-radius: var(--r-pill);
  transition: width var(--fast) linear;
}
.bgr-pct {
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* 3) 결과 비교 */
.bgr-result {
  display: flex; gap: 12px;
  margin-bottom: 20px;
}
.bgr-cell {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  margin: 0;
}
.bgr-checker,
.bgr-plain {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.bgr-plain { background: var(--well); }
/* 투명 영역이 보이도록 한 옅은 종이 톤 체커보드 */
.bgr-checker {
  background-color: var(--sheet);
  background-image:
    conic-gradient(from 90deg at 50% 50%, var(--well) 25%, transparent 0 50%, var(--well) 0 75%, transparent 0);
  background-size: 16px 16px;
  background-position: 0 0;
}
.bgr-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.bgr-cap {
  text-align: center;
  font-size: 13px; color: var(--ink-3);
}

/* 액션: 모바일에서 세로로 쌓아 터치 타깃(>=44px, .btn) 확보 */
.bgr-actions {
  display: flex; gap: 10px;
}
.bgr-actions .btn { flex: 1 1 0; min-height: 44px; }

@media (max-width: 480px) {
  .bgr-actions { flex-direction: column-reverse; }
  .bgr-actions .btn { width: 100%; }
}

/* 2b) 처리 중 — 리본 loading 아이콘 + 순환 텍스트 로더 */
.bgr-loading {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 28px 8px 30px;
}
.bgr-loading-ico { display: flex; }
/* 문장 한 줄만 노출 — 높이를 고정해 문장 교체 시 레이아웃이 흔들리지 않게 한다 */
.bgr-steps {
  min-height: 1.5em; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.bgr-step {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.5;
}
.bgr-step-in { animation: bgr-step-fade 220ms var(--ease-out); }
@keyframes bgr-step-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bgr-step-in { animation: none; }   /* 전환 없이 즉시 교체 */
}

/* 3b) 배경지 선택 — 컷아웃 미리보기 + 스와치 그리드 */
.bgr-bg-note {
  text-align: center; margin-bottom: 16px;
  font-size: 13.5px; color: var(--ink-3); line-height: 1.5;
}
.bgr-bg-preview {
  display: flex; justify-content: center;
  margin-bottom: 20px;
}
.bgr-swatches {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 8px; margin-bottom: 20px;
}
.bgr-swatch {
  position: relative; aspect-ratio: 1 / 1;
  padding: 0; border: 2px solid transparent; border-radius: 50%;
  background-color: var(--well); background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
  transition: transform var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out), border-color var(--fast) var(--ease-out);
}
/* 히트 영역 확장(작은 원형 스와치의 터치 타깃 보정) */
.bgr-swatch::after { content: ""; position: absolute; inset: -6px; }
.bgr-swatch:hover { transform: translateY(-1px); }
.bgr-swatch.is-on { border-color: var(--dot); box-shadow: 0 0 0 2px var(--dot); }
/* '자동' 스와치의 라벨 */
.bgr-swatch-lbl {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55); pointer-events: none;
}
/* 좁은 화면: 8개를 한 줄로 두기엔 작아지므로 4×2로 재배치 */
@media (max-width: 420px) {
  .bgr-swatches { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}

/* 4) 크롭 — 얼굴 중심 1:1 (뷰포트 팬·줌 + 원형 가이드 + 줌 슬라이더) */
.bgr-crop-note {
  text-align: center; margin-bottom: 16px;
  font-size: 13.5px; color: var(--ink-3); line-height: 1.5;
}
.bgr-crop {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; margin-bottom: 20px;
}
/* 정사각 뷰포트 — 컷아웃이면 배경지(inline background-image), 원본이면 well 받침.
   touch-action: none으로 팬·핀치 제스처를 브라우저 스크롤과 분리한다. */
.bgr-crop-view {
  position: relative; width: min(280px, 100%); aspect-ratio: 1 / 1;
  border-radius: var(--r-m); border: 1px solid var(--line);
  overflow: hidden;
  background: var(--well) center / cover no-repeat;
  touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.bgr-crop-view:active { cursor: grabbing; }
/* 이미지는 transform(translate+scale)만으로 배치 — transform-origin은 좌상단 고정 */
.bgr-crop-img {
  position: absolute; top: 0; left: 0;
  max-width: none; transform-origin: 0 0;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
/* 원형 가이드 — 내접 원 밖은 살짝 딤(뷰포트 overflow가 사각 밖을 잘라낸다) */
.bgr-crop-overlay { position: absolute; inset: 0; pointer-events: none; }
.bgr-crop-overlay::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .65), 0 0 0 999px rgba(28, 29, 43, .28);
}
/* 줌 슬라이더 행 */
.bgr-crop-zoom {
  display: flex; align-items: center; gap: 10px;
  width: min(280px, 100%);
}
.bgr-crop-zoom-ico { display: flex; flex: none; }
.bgr-crop-range {
  flex: 1; height: 28px; cursor: pointer;
  accent-color: var(--dot);
}
/* 모바일(바텀 시트): 뷰포트를 가로 꽉 차게 */
@media (max-width: 480px) {
  .bgr-crop-view, .bgr-crop-zoom { width: 100%; }
}

/* ---------- 16. 토스트 ---------- */
.toast-zone {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 550;
  box-shadow: var(--lift-3);
  animation: toast-in var(--std) var(--ease-out);
  transition: opacity var(--std) var(--ease-out), transform var(--std) var(--ease-out);
}
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex: none; }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- 17. 빈 상태·접근 제한 ---------- */
.empty { text-align: center; padding: 72px 24px; color: var(--ink-3); }
.empty-tight { padding: 48px 16px; }
.empty .empty-mark {
  width: auto; height: auto; margin: 0 auto 18px;
  line-height: 0; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.empty .empty-title { font-size: 16px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.empty p { font-size: 14px; }

.guard-card { padding: 56px 32px; text-align: center; max-width: 560px; margin: 64px auto; }
.guard-mark {
  width: auto; height: auto; margin: 0 auto 16px;
  line-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.guard-desc { max-width: 380px; margin: 8px auto 0; }
.guard-actions { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 모바일 하단 탭바 ---------- */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--sheet);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 44px; padding: 7px 0 6px;
  position: relative;
  color: var(--ink-3);
  transition: transform var(--fast) var(--ease-out);
}
.tabbar .tab-item .tab-label { font-size: 11px; font-weight: 550; line-height: 1; }
.tabbar .tab-item svg, .tabbar .tab-item .tab-ico { color: var(--ink-3); }
.tabbar .tab-item.is-active { color: var(--ink); }
.tabbar .tab-item.is-active svg, .tabbar .tab-item.is-active .tab-ico { color: var(--ink); }
.tabbar .tab-item.is-active::before {
  content: ""; position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--dot);
}
.tabbar .tab-item:active { transform: scale(.94); }
@media (max-width: 768px) {
  .tabbar { display: flex; }
  body:not([data-page="portfolio"]):not([data-page="portfolio-public"]) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
  .toast-zone { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- 18. 파인더 (강의·강사 찾기 공용) ---------- */
.finder { display: grid; grid-template-columns: 264px 1fr; gap: 32px; align-items: start; margin-top: 32px; }
.finder > * { min-width: 0; }
.filter-rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }
.filter-block { display: flex; flex-direction: column; gap: 10px; }
.filter-block .f-label {
  font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 7px;
}
.filter-block .f-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.filter-clear { align-self: flex-start; font-size: 13px; color: var(--ink-3); font-weight: 550; }
.filter-clear:hover { color: var(--dot-ink); }

@media (max-width: 920px) {
  .finder { grid-template-columns: 1fr; gap: 20px; }
  .filter-rail { position: static; }
}

.searchbar { position: relative; }
.searchbar .input { padding-left: 42px; }
.searchbar svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-4); }

.result-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.result-head .cnt { font-size: 14px; color: var(--ink-3); }
.result-head .cnt strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 19. 강의 카드 (찾기·홈·미리보기 공용) ---------- */
.lecture-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 20px;
}
@media (max-width: 560px) {
  .lecture-grid { grid-template-columns: 1fr; }
}
.lecture-card {
  display: flex; flex-direction: column; overflow: hidden; text-align: left;
  background: var(--sheet); border-radius: var(--r-l);
  box-shadow: var(--lift-1);
  transition: box-shadow var(--std) var(--ease-out), transform var(--std) var(--ease-out);
  cursor: pointer;
}
.lecture-card:hover { box-shadow: var(--lift-2); transform: translateY(-3px); }
.lecture-card-static { cursor: default; }
.thumb {
  aspect-ratio: 16 / 9; position: relative;
  display: flex; align-items: flex-end;
  padding: 16px; color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.thumb .thumb-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
/* 썸네일 사진이 실제로 표시될 때만 제목·점을 감춘다. hidden 처리된 img(강의 등록 미리보기의
   배경지 모드)는 제외해 제목 오버레이가 그대로 보이게 한다. */
.thumb .thumb-img:not([hidden]) ~ .thumb-title,
.thumb .thumb-img:not([hidden]) ~ .thumb-dot { visibility: hidden; }
.thumb .thumb-title {
  position: relative; font-size: 16.5px; font-weight: 700; line-height: 1.35;
  letter-spacing: -0.02em; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 배경지 썸네일 — 밝은 파스텔 배경지 위에 흰 제목이 읽히도록 하단 잉크 스크림을 깐다.
   배경 경로는 데이터 기반 동적 값으로 인라인(thumbHTML). 이미지 로드 실패 시 .thumb 기본 잉크색이 남는다. */
.thumb-bg { background-size: cover; background-position: center; }
.thumb-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(28,29,43,.55) 0%, rgba(28,29,43,0) 62%);
}
.thumb-bg .thumb-title, .thumb-bg .thumb-dot { z-index: 3; }
.thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px;
  border-radius: inherit; pointer-events: none;
}
.thumb .thumb-dot {
  position: absolute; top: 14px; left: 16px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--dot);
}

/* ---------- 파트너 기관 배지 (강의 카드 썸네일 · 포트폴리오 시트 공용) ----------
   흰 1:1 칩 위 파트너 듀오톤 마크(contain). 마크업은 TIUM_PARTNERS.badgeHTML로만 생성(중복 구현 금지).
   2개 이상 페이지에서 재사용하는 컴포넌트라 tium.css에 둔다. */
.partner-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sheet); border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line), var(--lift-1);
  width: 34px; height: 34px; padding: 5px;   /* 고정 1:1 — aspect-ratio는 static 배치에서 콘텐츠에 밀려 세로가 늘어난다 */
}
.partner-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* 썸네일 변형 — 좌상단 모서리 칩(썸네일 이미지·헤어라인 링 위) */
.thumb-partner { position: absolute; top: 12px; left: 12px; z-index: 4; }
/* 배지가 있으면 시그니처 오렌지 점을 배지 오른쪽으로 밀어 겹침 방지(제목 가독성 유지) */
.thumb.has-partner .thumb-dot { left: 52px; }

.lecture-card .card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lecture-card .l-title {
  font-size: 15.5px; font-weight: 650; line-height: 1.4; letter-spacing: -0.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lecture-card .l-meta { display: flex; align-items: center; gap: 8px; }
.lecture-card .l-meta .name { font-size: 13.5px; font-weight: 600; }
.lecture-card .l-meta .org { font-size: 12.5px; color: var(--ink-3); }
.lecture-card .l-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.lecture-card .l-tags .t {
  font-size: 11.5px; font-weight: 550; color: var(--ink-3);
  background: var(--well); border-radius: var(--r-pill); padding: 3px 9px;
}

/* 썸네일 잉크 팔레트 — 이미지 없는 강의의 폴백 커버 */
.thumb.v1 { background: linear-gradient(135deg, #23243A 0%, #191A2B 100%); }
.thumb.v2 { background: linear-gradient(135deg, #2C2D45 0%, #1C1D2E 100%); }
.thumb.v3 { background: linear-gradient(135deg, #303150 0%, #20213A 100%); }
.thumb.v4 { background: radial-gradient(120% 140% at 100% 0%, #34355600 0%, transparent 60%), linear-gradient(135deg, #262740 0%, #16172A 100%); }

/* ---------- 20. 팩트 그리드 (상세 정보 공용) ---------- */
.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 20px; padding: 14px 0;
  border-top: 1px solid var(--line);
}
.fact .fk { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.fact .fv { font-size: 14px; font-weight: 550; margin-top: 2px; }
.fv-leaf { color: var(--leaf); font-weight: 650; }
.fv-muted { color: var(--ink-4); }

/* ---------- 강의 상세 모달 (공용) — 강의 찾기 · 포트폴리오 booking 공유 ---------- */
/* 최상단 가로 히어로 — thumbHTML의 .thumb(16:9)를 배너 높이로 캡. .modal은 overflow:hidden이
   없으므로(border-radius 20) 히어로 자체가 상단 모서리를 클립한다. */
.ld-hero { border-radius: 20px 20px 0 0; overflow: hidden; }
.ld-hero .thumb { aspect-ratio: auto; height: clamp(160px, 26vw, 210px); border-radius: 0; }
.ld-desc { color: var(--ink-2); }
.ld-outline { margin-top: 24px; }
.ld-outline ol {
  margin: 12px 0 0; padding-left: 22px;
  color: var(--ink-2); font-size: 14.5px;
  display: flex; flex-direction: column; gap: 6px;
}
.ld-facts { margin-top: 24px; }
.ld-keys { margin-top: 24px; }
.ld-keywords { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.ld-keywords .t {
  font-size: 11.5px; font-weight: 550; color: var(--ink-3);
  background: var(--well); border-radius: var(--r-pill); padding: 3px 9px;
}
/* 강사 카드(상세 모달 하단) */
.ld-instructor {
  margin-top: 24px; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--well); border-radius: var(--r-m);
}
.ld-instructor .ld-who { flex: 1; min-width: 0; }
.ld-instructor .ld-name { font-weight: 650; }
.ld-instructor .btn { flex: none; }

/* ---------- 21. 스탯 타일 (대시보드 공용) ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-tile { padding: 20px 22px; background: var(--sheet); border-radius: var(--r-l); box-shadow: var(--lift-1); }
.stat-tile .s-label {
  font-size: 11.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
}
.stat-tile .s-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.stat-tile .s-value {
  font-size: 30px; font-weight: 750; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1.1;
}
.stat-tile .s-value .unit { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.stat-tile .s-delta { font-size: 12.5px; font-weight: 550; color: var(--ink-3); margin-top: 6px; }
.stat-tile .s-delta.up { color: var(--leaf); }
.stat-tile .s-delta a { color: var(--dot-ink); font-weight: 600; }

/* ---------- 22. 패널·대시보드 (관리 화면 공용) ---------- */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.dash-grid > * { min-width: 0; }
@media (max-width: 920px) { .dash-grid { grid-template-columns: 1fr; } }
.panel { background: var(--sheet); border-radius: var(--r-l); box-shadow: var(--lift-1); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 24px 0;
}
.panel-head .p-title {
  font-size: 16px; font-weight: 700; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.panel-head .p-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.panel-head .p-title .p-title-sub { font-weight: 500; }
.panel-head .p-meta { white-space: nowrap; }
.panel-body { padding: 18px 24px 24px; }

.manage-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.manage-row:last-child { border-bottom: 0; }
.manage-row .m-main { flex: 1; min-width: 0; }
.manage-row .m-title { font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manage-row .m-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.manage-row .m-actions { display: flex; gap: 6px; flex: none; }

/* ---------- 23. FAQ (홈·이용 안내 공용) ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-size: 15.5px; font-weight: 600;
  transition: color var(--fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--dot-ink); }
.faq summary .q-mark { color: var(--ink-4); transition: transform var(--std) var(--ease-out); flex: none; }
.faq details[open] summary .q-mark { transform: rotate(45deg); color: var(--dot); }
.faq .a { padding: 0 4px 22px; color: var(--ink-2); font-size: 14.5px; max-width: 640px; }

/* ---------- 24. CTA 밴드 (홈·이용 안내 공용) ---------- */
.cta-band {
  background: var(--ink); color: #fff;
  border-radius: 24px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: 27px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.3; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,.66); font-size: 15px; }
.cta-band .band-dot { position: absolute; border-radius: 50%; background: var(--dot); }
.cta-band .band-dot-lg { width: 220px; height: 220px; right: -60px; top: -80px; opacity: .9; }
.cta-band .band-dot-md { width: 180px; height: 180px; right: -50px; top: -70px; }
.cta-band .band-dot-sm { width: 14px; height: 14px; right: 200px; bottom: 48px; }
.cta-band .band-content { position: relative; }
.cta-band .band-actions { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { padding: 40px 28px; } }

/* ---------- 25. 인포 노트 ---------- */
.info-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--dot-wash); color: var(--dot-ink);
  border-radius: var(--r-m); padding: 14px 18px;
  font-size: 13.5px; line-height: 1.6;
}
.info-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex: none; margin-top: 7px; }

/* ---------- 26. 체험 모드 스위처 (프로토타입 전용) ---------- */
.role-switch {
  position: fixed; right: 20px; bottom: 20px; z-index: 400;
  background: var(--ink); color: #fff;
  border-radius: var(--r-l); padding: 12px 14px;
  box-shadow: var(--lift-3);
  font-size: 12px;
  width: 196px;
}
.role-switch .rs-title {
  font-size: 10.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.role-switch .rs-title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.role-switch .rs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.role-switch button {
  height: 30px; border-radius: 7px; font-size: 12px; font-weight: 550;
  color: rgba(255,255,255,.66); background: rgba(255,255,255,.07);
  transition: all var(--fast) var(--ease-out);
}
.role-switch button:hover { background: rgba(255,255,255,.14); color: #fff; }
.role-switch button[aria-pressed="true"] { background: var(--dot); color: #fff; font-weight: 650; }
.role-switch .rs-min {
  position: absolute; top: 8px; right: 10px; color: rgba(255,255,255,.4);
  font-size: 14px; line-height: 1;
}
.role-switch.min { width: auto; padding: 10px 14px; cursor: pointer; }
.role-switch.min .rs-grid, .role-switch.min .rs-min { display: none; }
.role-switch.min .rs-title { margin: 0; }

/* ---------- 27. 유틸리티 ---------- */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.hidden { display: none !important; }
.stack-v { display: flex; flex-direction: column; }
.stack-v-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-v-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-v-12 { display: flex; flex-direction: column; gap: 12px; }
.row-center-12 { display: flex; align-items: center; gap: 12px; }
.row-center-16 { display: flex; align-items: center; gap: 16px; }

/* ---------- 28. 행 리스트 (pf-row-*) — instructor.css에서 승격(2026-07-13, lecture-new 목차 재사용) ----------
   반복 입력 행 primitives: 필드 그룹 + 행별 [−] 삭제 + [＋ 추가]. 필드는 flex-wrap으로 폭이 부족하면 다음 줄로 접혀 가로 넘침이 없다. 페이지별 필드 폭은 각 페이지 CSS가 담당한다. */
.pf-row-list { display: flex; flex-direction: column; gap: 10px; }
.pf-row-list:empty { display: none; }
.pf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px; align-items: center;
}
.pf-row-fields {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0;
}
/* 행별 삭제 — .tag-chip-x와 같은 방식: 작은 원형 글리프 + ::after로 44px 히트 확장 */
.pf-row-del {
  position: relative; flex: none;
  width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-3); font-size: 20px; line-height: 1; border-radius: 50%;
  transition: color var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out);
}
.pf-row-del::after { content: ""; position: absolute; inset: -8px; }
.pf-row-del:hover { color: var(--clay); background: var(--well); }
/* [＋ 추가하기] — btn-soft btn-sm 조형, 좌측 정렬 */
.pf-row-add { align-self: flex-start; }

/* ---------- 29. 스위치 (.switch) — instructor.css에서 승격(2026-07-13). portfolio.css의 aria형 .switch는 별개 구현으로 잔존 ----------
   checkbox+label 조형: 화면에서 숨긴 체크박스(.switch-input) + 라벨(.switch-row) 안의 트랙(.switch). label[for]로 접근성 연결을 보장한다. */
.pf-consent { margin-top: 10px; }
/* 실제 form 컨트롤은 checkbox — 화면에서만 숨기고 포커스는 유지 */
.switch-input {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.switch-row {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2);
}
.switch {
  width: 36px; height: 21px; border-radius: var(--r-pill); flex: none;
  background: var(--line-strong); position: relative;
  transition: background-color var(--fast) var(--ease-out);
}
.switch::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform var(--fast) var(--ease-out);
}
.switch-input:checked ~ .switch-row .switch { background: var(--dot); }
.switch-input:checked ~ .switch-row .switch::after { transform: translateX(15px); }
.switch-input:focus-visible ~ .switch-row .switch { outline: 2px solid var(--dot); outline-offset: 2px; }
.switch-input:disabled ~ .switch-row { opacity: .5; cursor: not-allowed; }

/* ---------- 30. 일정 공용 primitives (일정 관리 + 공개 포트폴리오) ---------- */
.switch[role="switch"] {
  display: inline-block; padding: 0; border: 0; cursor: pointer;
}
.switch[role="switch"][aria-checked="true"] { background: var(--dot); }
.switch[role="switch"][aria-checked="true"]::after { transform: translateX(15px); }
.switch[role="switch"]:focus-visible { outline: 2px solid var(--dot); outline-offset: 2px; }

.calendar-month { width: 100%; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays { margin-bottom: 6px; }
.calendar-weekdays span { padding: 5px 0; text-align: center; color: var(--ink-3); font-size: 11px; font-weight: 650; }
/* 주말색 — 월요일 시작 7열 그리드: 6열=토(파랑) · 7열=일(빨강). 일정관리·강의요청 캘린더 공통 */
.calendar-weekdays span:nth-child(6) { color: var(--cal-sat); }
.calendar-weekdays span:nth-child(7) { color: var(--cal-sun); }
.calendar-day {
  min-width: 0; min-height: 54px; padding: 7px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-2); background: var(--sheet); border: 1px solid var(--line);
  border-radius: var(--r-s); font-size: 12px;
  transition: border-color var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
}
.calendar-day:hover:not(:disabled) { border-color: var(--line-strong); }
.calendar-day:focus-visible, .calendar-day.is-selected { outline: 2px solid var(--dot); outline-offset: 2px; }
.calendar-day.is-adjacent { opacity: .45; }
.calendar-day:disabled { cursor: not-allowed; }
.calendar-day-num { font-weight: 700; }
.calendar-day-hours { font-size: 10px; font-weight: 650; }
.calendar-day.capacity-full { background: #000; border-color: #000; color: #fff; }
.calendar-day.capacity-80 { background: rgba(0,0,0,.8); border-color: transparent; color: #fff; }
.calendar-day.capacity-60 { background: rgba(0,0,0,.6); border-color: transparent; color: #fff; }
.calendar-day.capacity-40 { background: rgba(0,0,0,.4); border-color: transparent; color: var(--ink); }
.calendar-day.capacity-open { background: #fff; border-color: rgba(0,0,0,.16); color: #111; }
/* 주말 날짜 숫자색 — 어두운 배경·흰 글자 셀(full/80/60)은 가독성을 위해 제외 */
.calendar-days .calendar-day:nth-child(7n+6):not(.capacity-full):not(.capacity-80):not(.capacity-60) .calendar-day-num { color: var(--cal-sat); }
.calendar-days .calendar-day:nth-child(7n):not(.capacity-full):not(.capacity-80):not(.capacity-60) .calendar-day-num { color: var(--cal-sun); }

.calendar-slot {
  min-width: 0; min-height: 44px; padding: 8px 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  color: var(--ink-2); background: var(--sheet); font-size: 12.5px; font-weight: 650;
  transition: border-color var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
}
.calendar-slot:hover:not(:disabled) { border-color: var(--dot); }
.calendar-slot.is-selected, .calendar-slot[aria-pressed="true"] { border: 2px solid var(--dot); background: var(--dot-wash); color: var(--dot-ink); }
.calendar-slot.is-blocked, .calendar-slot:disabled { background: var(--well); color: var(--ink-4); border-color: var(--line); cursor: not-allowed; }
.calendar-slot.is-tium { border-color: var(--dot); color: var(--dot-ink); cursor: pointer; }
.calendar-slot:focus-visible { outline: 2px solid var(--dot); outline-offset: 2px; }

/* ---------- 예약 가용성 피커 (강의 요청 캘린더 — 공개 포트폴리오 카드·강의 요청 모달 공용) ----------
   --booking-* 기본값을 셸에 직접 정의해 .booking-card 조상 없이(모달 등)도 단독 렌더된다.
   포트폴리오의 .booking-card 도 같은 값을 정의하지만, 셸이 더 가까운 정의라 충돌 없이 이긴다. */
.booking-calendar-shell {
  --booking-well: #f4f2ef;
  --booking-ink: #1c1d2b;
  --booking-muted: rgba(28,29,43,.65);
  --booking-line: rgba(28,29,43,.12);
  margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--booking-line);
}
.booking-month-toolbar { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; max-width: 620px; margin: 0 auto 14px; }
.booking-month-label { text-align: center; font-size: 16px; }
.booking-month-move { width: 44px; height: 44px; border-radius: 50%; color: var(--booking-ink); font-size: 24px; }
.booking-month-move:hover:not(:disabled) { background: var(--booking-well); color: var(--dot-ink); }
.booking-month-move:disabled { opacity: .28; cursor: not-allowed; }
.booking-calendar-shell .calendar-month { max-width: 620px; margin: 0 auto; }
.booking-guidance { margin-top: 14px; color: var(--booking-muted); font-size: 13px; text-align: center; }
.booking-guidance.is-error { color: var(--clay); font-weight: 650; }

.booking-week-wrap { margin-top: 26px; overflow-x: auto; }
.booking-week {
  min-width: 760px;
  display: grid; grid-template-columns: 68px repeat(7, minmax(88px, 1fr)); gap: 5px;
}
.booking-week-row { display: contents; }
.booking-week-corner, .booking-week-head, .booking-week-time, .booking-week-cell { min-width: 0; }
.booking-week-corner, .booking-week-head { min-height: 48px; display: flex; align-items: center; justify-content: center; }
.booking-week-corner { color: var(--booking-muted); font-size: 11px; }
.booking-week-head { flex-direction: column; color: var(--booking-muted); font-size: 11px; }
.booking-week-head strong { color: var(--booking-ink); font-size: 12px; }
.booking-week-time { display: flex; align-items: center; color: var(--booking-muted); font-size: 11px; }
.booking-week-cell .calendar-slot { width: 100%; height: 100%; min-height: 44px; padding: 6px 4px; }
.booking-day-wrap { display: none; }
.booking-day-slots { display: grid; gap: 22px; }
.booking-day-slots h4 { margin-bottom: 8px; color: var(--booking-ink); font-size: 13px; }
.booking-slot-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.booking-slot-list .calendar-slot { min-height: 44px; }
/* 모달 등 좁은 컨테이너용 변형 — 뷰포트와 무관하게 주간 격자를 접고 일간 슬롯만 노출 */
.booking-calendar-shell.is-compact .booking-week-wrap { display: none; }
.booking-calendar-shell.is-compact .booking-day-wrap { display: block; }
@media (max-width: 720px) {
  .booking-week-wrap { display: none; }
  .booking-day-wrap { display: block; margin-top: 24px; }
  .booking-slot-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .booking-slot-list .calendar-slot { min-height: 44px; padding: 7px 3px; }
}
@media (max-width: 390px) {
  .booking-slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .booking-month-move { transition: none !important; }
}

/* ---------- 소속 지도 검색 드롭다운 (org-search.js · 강의 요청·강사 프로필 공용) ---------- */
.org-search { position: relative; display: block; }
.org-search-list {
  display: none; position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none;
  background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--r-m);
  box-shadow: 0 12px 28px rgba(28,29,43,.14); max-height: 264px; overflow-y: auto;
}
.org-search-list.is-open { display: block; }
.org-search-item {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 44px; padding: 8px 12px;
  border-radius: var(--r-s); cursor: pointer; color: var(--ink);
}
.org-search-item.is-active, .org-search-item:hover { background: var(--well); }
.org-search-main { font-size: 14px; font-weight: 600; }
.org-search-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 강의 요청 모달 (.rq-*) — lectures.css에서 승격(2026-07-23, lectures·partner 재사용) ----------
   TIUM_REQUEST(request-modal.js)가 여는 요청서 모달 전용 스타일. 마크업·클래스명은 승격 전과 동일하다.
   가용성 피커(.booking-*)·소속 검색(.org-search-*)은 위에 이미 공용으로 있어 함께 승격할 필요가 없다. */
.rq-form { display: flex; flex-direction: column; gap: 18px; }
/* 피커 announce 라이브 리전 — 비어 있으면 자리를 차지하지 않는다(포트폴리오 .booking-live 대응) */
.rq-live { min-height: 0; margin-top: 8px; color: var(--dot-ink); font-size: 12.5px; font-weight: 600; }
.rq-live:empty { display: none; }
/* 선택 요약 캡션을 액션 줄 왼쪽에 두고 취소·전송 버튼은 오른쪽으로 민다 */
.rq-form .modal-actions .rq-summary { margin: 0 auto 0 0; align-self: center; }
/* 요청서 개인정보 제3자 제공 동의 — .radio-option 재사용, 여러 줄 라벨이라 상단 정렬로 보정 */
.rq-consent { gap: 8px; }
.rq-consent .radio-option { align-items: flex-start; line-height: 1.55; }
.rq-consent .radio-option input { margin-top: 2px; flex: none; }
.rq-consent .radio-option a { color: var(--dot-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; white-space: nowrap; }

.sync-badge {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 24px; padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 650; white-space: nowrap;
}
.sync-badge > span { font-size: 8px; }
.sync-pending { color: var(--amber); background: var(--amber-wash); }
.sync-reconnect, .sync-failed { color: var(--clay); background: var(--clay-wash); }
.sync-synced { color: var(--leaf); background: var(--leaf-wash); }
.sync-local { color: var(--ink-3); background: var(--well); }

@media (max-width: 640px) {
  .calendar-weekdays, .calendar-days { gap: 4px; }
  .calendar-day { min-height: 48px; padding: 5px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .calendar-day, .calendar-slot, .switch, .switch::after { transition: none !important; }
}
.center-text { text-align: center; }

/* ---------- 31. 후원 밴드 (.support-band) — pricing.css에서 승격(2026-07-18, pricing·subscribe 재사용) ----------
   Buy Me a Coffee 후원 안내 밴드. 마크업·클래스명은 승격 전과 동일하게 유지한다. */
.support-section { margin-top: 26px; }
.support-band {
  display: flex; align-items: center; gap: 20px;
  background: var(--dot-wash);
  border-radius: var(--r-l);
  padding: 24px 28px;
}
.support-band .support-ico { flex: none; line-height: 0; }
.support-copy { min-width: 0; flex: 1; }
.support-copy p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.support-copy .support-note { color: var(--ink-4); font-size: 12.5px; }
.support-action { flex: none; }
.support-ext { margin-left: 6px; font-weight: 700; }
@media (max-width: 720px) {
  .support-band { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 20px; }
  .support-action { width: 100%; }
  .support-action .btn { width: 100%; }
}

/* ---------- 32. 포트폴리오 공유 모달 (portfolio.html · p.html 공용) ----------
   QR + 링크 복사 + navigator.share를 통합한 공유 모달. TIUM_PF.openShareModal이 렌더한다.
   편집 화면은 '나만의 주소'(slug) 설정 UI(.pf-share-slug)를 함께 노출한다. ---------- */
.pf-share { text-align: center; }
.pf-share-url {
  display: inline-flex; max-width: 100%;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--well); color: var(--ink-2); font-size: 13px;
}
.pf-share-url .u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-share-qr {
  width: 200px; height: 200px; margin: 18px auto 0;
  background: #fff; border-radius: var(--r-m);
  box-shadow: var(--lift-1); padding: 14px;
  display: flex; align-items: center; justify-content: center;
}
.pf-share-qr svg, .pf-share-qr img { width: 100%; height: 100%; display: block; }
.pf-share-cap { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.pf-share-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.pf-share-actions .btn { min-width: 132px; }
.pf-share-slug { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; }
.pf-share-note { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
@media (max-width: 480px) {
  .pf-share-actions { flex-direction: column; }
  .pf-share-actions .btn { width: 100%; }
}
