/* ==========================================================
   우리동네 선생님 · Design System v3
   차분한 세이지 그린 + 따뜻한 살구 포인트, 종이 질감의 웜 뉴트럴
   ========================================================== */
:root {
  --bg: #f6f3ee;
  --bg-2: #efeae2;
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #1b2420;
  --ink-2: #3c4843;
  --muted: #7a847f;
  --faint: #a7aea9;
  --line: #e6e0d6;
  --line-2: #f0ebe4;

  --brand: #2e6a55;
  --brand-600: #285c4a;
  --brand-700: #1f4a3b;
  --brand-900: #142f26;
  --brand-50: #eef5f1;
  --brand-100: #dbeae2;
  --accent: #e8875a;
  --accent-600: #d4703f;
  --accent-50: #fdf1e9;

  --urgent: #cf4636;
  --urgent-50: #fcebe7;
  --warn: #a8701a;
  --warn-50: #faf2e1;
  --fav: #c0517a;
  --fav-50: #fbecf2;
  --info: #3b67a3;
  --info-50: #ebf1f9;

  --r-xl: 28px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --sh-xs: 0 1px 2px rgba(27, 36, 32, .05);
  --sh: 0 1px 2px rgba(27, 36, 32, .04), 0 12px 32px -14px rgba(27, 36, 32, .14);
  --sh-lg: 0 2px 4px rgba(27, 36, 32, .04), 0 32px 64px -24px rgba(20, 47, 38, .28);
  --ring: 0 0 0 4px rgba(46, 106, 85, .14);
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 15px; letter-spacing: -.005em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.03em; line-height: 1.3; }
h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 .35rem; }
h2 { font-size: 1.15rem; font-weight: 750; margin: 0 0 .9rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin: .3rem 0 .4rem; }
p { margin: .35rem 0 .8rem; }
strong, b { font-weight: 700; }
::selection { background: var(--brand-100); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }

.ic { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; }
.section { margin-top: 28px; margin-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center-text { text-align: center; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }

/* ---------- 테스트 안내 ---------- */
.test-banner { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand-900); color: #f2d9c7; font-size: .76rem; padding: 6px 16px; text-align: center; letter-spacing: 0; }
.test-banner .ic { width: 14px; height: 14px; color: var(--accent); }

/* ---------- 로고 ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -.04em; font-size: 1.06rem; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 10px rgba(46, 106, 85, .25)); }
.lm-bg { fill: var(--brand); }
.lm-heart { fill: #f6b896; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: .94rem; padding: 10px 18px; border-radius: 14px; cursor: pointer; line-height: 1.2; text-decoration: none; letter-spacing: -.01em; box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 6px 16px -8px rgba(31, 74, 59, .6); transition: transform .15s var(--ease), background .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 10px 22px -10px rgba(31, 74, 59, .7); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-ghost { background: var(--card); color: var(--ink-2); border-color: var(--line); box-shadow: var(--sh-xs); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: #d8d1c6; box-shadow: var(--sh-xs); }
.btn-accent { background: var(--accent); box-shadow: 0 6px 16px -8px rgba(212, 112, 63, .7); }
.btn-accent:hover { background: var(--accent-600); }
.btn-danger { background: var(--card); color: var(--urgent); border-color: #f1cdc6; box-shadow: none; }
.btn-danger:hover { background: var(--urgent-50); color: var(--urgent); box-shadow: none; }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: #f4f1ec; color: var(--brand-900); }
.btn-sm { padding: 7px 13px; font-size: .84rem; border-radius: 11px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.linklike { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- 카드 ---------- */
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 22px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card-head h1, .card-head h2 { margin: 0; }
.card-head > a { font-size: .86rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.card-head > a:hover { color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.layout-side > aside { position: sticky; top: 20px; }

/* ---------- 아바타 ---------- */
.av { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; font-weight: 800; font-size: .95rem; flex: none; letter-spacing: 0; }
.av-sm { width: 30px; height: 30px; border-radius: 10px; font-size: .8rem; }
.av-md { width: 42px; height: 42px; }
.av-lg { width: 52px; height: 52px; border-radius: 18px; font-size: 1.15rem; }
.av-1 { background: #e3efe8; color: #2e6a55; }
.av-2 { background: #fbe7dc; color: #b85d33; }
.av-3 { background: #e6ecf6; color: #3b67a3; }
.av-4 { background: #f6e4ec; color: #a8436b; }
.av-5 { background: #f3ecd9; color: #8a6a1d; }
.av-6 { background: #ebe6f4; color: #6450a0; }
.person { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.person > div { min-width: 0; flex: 1; }

/* ---------- 앱 레이아웃 (로그인 후) ---------- */
.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: calc(100vh - 29px); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; z-index: 40; }
.sidebar .brand { padding: 4px 8px 6px; }
.me { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-xs); }
.me strong { display: block; font-size: .95rem; line-height: 1.3; }
.me span { font-size: .78rem; color: var(--muted); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: .94rem; transition: background .15s, color .15s; }
.side-nav a .ic { color: var(--faint); transition: color .15s; }
.side-nav a:hover { background: var(--bg-2); color: var(--ink); }
.side-nav a:hover .ic { color: var(--ink-2); }
.side-nav a.active { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(31, 74, 59, .8); }
.side-nav a.active .ic { color: #fff; }
.count { margin-left: auto; font-style: normal; min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; }
.side-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.side-link { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 9px 12px; border-radius: 10px; color: var(--muted); font: inherit; font-size: .86rem; cursor: pointer; text-align: left; }
.side-link .ic { width: 18px; height: 18px; }
.side-link:hover { background: var(--bg-2); color: var(--ink); }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.main { flex: 1; padding: 8px 0 24px; }
.is-app .wrap { max-width: 1100px; padding: 0 32px; }
.appbar { display: none; }
.scrim { display: none; }
.tabbar { display: none; }
.app-foot { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--faint); padding-top: 18px !important; padding-bottom: 28px !important; }
.app-foot a { color: var(--muted); }

/* ---------- 사이트 상단 (비로그인) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(246, 243, 238, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(230, 224, 214, .7); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top-nav a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: 8px 14px; border-radius: 12px; }
.top-nav a:not(.btn):hover, .top-nav a.active { background: rgba(255, 255, 255, .7); color: var(--ink); }
.top-nav .btn { margin-left: 6px; }

/* ---------- 화면 제목 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 26px 0 22px; }
.page-head h1 { font-size: 1.85rem; margin: 2px 0 4px; }
.page-head .lead { color: var(--muted); margin: 0; max-width: 46em; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--brand); letter-spacing: .02em; }
.lead { font-size: 1rem; color: var(--ink-2); }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 22px 0 4px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.back:hover { color: var(--ink); }
.sub { margin-top: 26px; display: flex; align-items: center; gap: 8px; }

/* ---------- 숫자 카드 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-xs); }
.stat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--brand-50); color: var(--brand); flex: none; }
.stat-ic .ic { width: 22px; height: 22px; }
.stat-label { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat strong { display: block; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.04em; }
.stat.tone-accent .stat-ic { background: var(--accent-50); color: var(--accent-600); }
.stat.tone-fav .stat-ic { background: var(--fav-50); color: var(--fav); }
.stat.tone-info .stat-ic { background: var(--info-50); color: var(--info); }
.stat.tone-warn { border-color: #f0dcb4; background: linear-gradient(180deg, #fffaf0, #fff); }
.stat.tone-warn .stat-ic { background: var(--warn-50); color: var(--warn); }

/* ---------- 목록 행 ---------- */
.item { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line-2); color: inherit; border-radius: 0; }
.item:first-of-type { border-top: 0; }
a.item:hover, .item.link:hover { background: var(--paper); color: inherit; border-radius: 14px; }
.item.compact { padding: 10px 0; }
.item-body { flex: 1; min-width: 0; }
.item-body > strong { font-size: .97rem; }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.muted-row { opacity: .6; }
.date-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; min-height: 60px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); line-height: 1.15; flex: none; }
.date-chip small { font-size: .68rem; color: var(--muted); font-weight: 600; }
.date-chip b { font-size: 1.3rem; letter-spacing: -.04em; color: var(--ink); }
.date-chip.is-soon { background: var(--brand-50); border-color: var(--brand-100); }
.date-chip.is-soon small:first-child { color: var(--brand); font-weight: 800; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 20px; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); font-size: .92rem; }
.empty .ic { color: var(--faint); width: 24px; height: 24px; }

.notif { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px; border-radius: 14px; color: var(--ink-2); font-size: .93rem; }
.notif + .notif { margin-top: 2px; }
.notif:hover { background: var(--paper); color: var(--ink); }
.notif.unread { background: var(--brand-50); color: var(--ink); font-weight: 600; }
.notif.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }
.notif span { flex: 1; }
.notif small { white-space: nowrap; font-size: .78rem; }

/* ---------- 배지·태그 ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 4px 10px 4px 9px; border-radius: 99px; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); letter-spacing: 0; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-open, .ap-applied, .ms-pending { background: var(--warn-50); color: var(--warn); }
.st-matched, .ap-confirmed, .ms-approved { background: var(--brand-50); color: var(--brand); }
.st-done { background: var(--info-50); color: var(--info); }
.st-cancelled, .ap-closed, .ap-declined, .ms-suspended { background: #f1efeb; color: var(--muted); }
.ap-offered { background: var(--fav-50); color: var(--fav); }
.badge-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 8px; background: var(--bg-2); color: var(--ink-2); vertical-align: 1px; }
.tag-urgent { background: var(--urgent-50); color: var(--urgent); font-weight: 800; }
.tag-fav { background: var(--fav-50); color: var(--fav); font-weight: 700; }

/* ---------- 요청 카드 ---------- */
.list { display: grid; gap: 14px; margin-bottom: 24px; }
.req { position: relative; margin: 0; transition: transform .2s var(--ease), box-shadow .2s; }
.req:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.req.is-urgent, .req-detail.is-urgent { background: linear-gradient(180deg, #fff8f6 0, #fff 90px); border-color: #f6d9d3; }
.req.is-urgent::before, .req-detail.is-urgent::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: var(--urgent); }
.req-detail { position: relative; }
.req-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.req-info { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.req-info span { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 10px; }
.req-info b { color: var(--ink); }
.req-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.memo { background: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: .88rem; color: var(--ink-2); margin: 10px 0 0; border: 1px solid var(--line-2); }
.progress-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 4px; counter-reset: s; }
.progress-steps span { position: relative; text-align: center; font-size: .8rem; font-weight: 600; padding: 9px 6px; border-radius: 12px; background: var(--paper); color: var(--faint); border: 1px solid var(--line-2); }
.progress-steps .done { background: var(--brand); color: #fff; border-color: var(--brand); }
.progress-steps .now { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }

/* ---------- 필터·탭 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 16px; }
.filters input, .filters select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: .9rem; background: var(--card); color: var(--ink); }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 13px; padding: 4px; gap: 2px; }
.seg a { padding: 6px 13px; border-radius: 10px; color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.seg a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.seg a.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(27, 36, 32, .12); }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 16px; color: var(--ink-2); border-radius: 99px; white-space: nowrap; font-weight: 600; font-size: .9rem; background: var(--card); border: 1px solid var(--line); }
.tabs a:hover { border-color: #d2cabd; color: var(--ink); }
.tabs a.active { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ---------- 폼 ---------- */
.form { display: grid; gap: 16px; margin-top: 14px; }
.form label { display: grid; gap: 7px; font-weight: 650; font-size: .88rem; color: var(--ink-2); }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; font: inherit; font-size: .95rem; font-weight: 400; background: var(--paper); color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #d6cfc4; }
.form input:focus, .form select:focus, .form textarea:focus, .filters input:focus, .filters select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: var(--ring); }
.form input[type=file] { font-size: .85rem; color: var(--muted); }
.form small { font-weight: 400; font-size: .8rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; color: var(--ink-2) !important; line-height: 1.5; }
.check input, .switch input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.agree { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px 16px; display: grid; gap: 10px; background: var(--paper); margin: 0; }
.agree legend { font-weight: 750; padding: 0 6px; font-size: .9rem; }
.switch { display: flex !important; align-items: center; gap: 12px; font-weight: 500 !important; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-2); color: var(--ink) !important; cursor: pointer; }
.switch input { margin: 0; }
.form-links { margin-top: 16px; font-size: .86rem; text-align: center; }
.cancel-form { display: inline-flex; gap: 6px; align-items: center; }
.cancel-form select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .84rem; background: var(--paper); }

/* ---------- 알림 메시지 ---------- */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 14px; margin: 18px 0 0; font-size: .92rem; font-weight: 500; border: 1px solid; }
.flash .ic { width: 19px; height: 19px; margin-top: 1px; }
.flash-ok { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.flash-err { background: var(--urgent-50); color: #9b2f22; border-color: #f4cec6; display: block; }
.flash-err > div + div { margin-top: 2px; }
.flash-info { background: var(--info-50); color: #2e5384; border-color: #d3e0f1; }
.wrap > .flash { margin-bottom: 0; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child { border-radius: 12px 0 0 12px; }
.table th:last-child { border-radius: 0 12px 12px 0; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fdfcfa; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 0; margin: 18px 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.dl dt, .dl dd { padding: 12px 16px; border-bottom: 1px solid var(--line-2); margin: 0; }
.dl dt { color: var(--muted); background: var(--paper); font-size: .86rem; font-weight: 600; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }
.checklist { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ic { color: var(--brand); width: 18px; height: 18px; margin-top: 3px; }
.doc h2 { margin-top: 26px; font-size: 1.05rem; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: f; }
.flow li { position: relative; padding: 12px 0 12px 48px; counter-increment: f; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; border-radius: 11px; background: var(--brand-50); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 48px; bottom: -4px; width: 1px; background: var(--line); }
details { border-top: 1px solid var(--line-2); padding: 16px 2px; }
details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* ---------- 달력 ---------- */
.cal { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 14px; }
.cal-head strong { font-size: 1.1rem; letter-spacing: -.03em; }
.cal-head .btn { width: 36px; height: 36px; padding: 0; border-radius: 12px; font-size: 1.1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-w { text-align: center; font-size: .76rem; color: var(--muted); font-weight: 600; padding: 2px 0 4px; }
.cal-w.sun { color: var(--urgent); }
.cal-w.sat { color: var(--info); }
.cal-d { position: relative; min-height: 92px; border-radius: 14px; background: var(--paper); padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: .76rem; border: 1px solid transparent; min-width: 0; transition: background .15s; }
.cal-d.blank { background: transparent; }
.cal-d.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal-d.today .cal-n { color: var(--brand); }
.cal-d.past { opacity: .45; }
.cal-n { font-weight: 700; font-size: .84rem; color: var(--ink-2); }
.cal-d.is-on { background: var(--brand-50); }
.cal-d.is-booked { background: linear-gradient(160deg, #fff3ec, #fde9de); }
.cal-d.is-done { background: var(--info-50); }
.cal-d.is-open { background: var(--warn-50); }
.cal-form { margin: auto 0 0; }
.cal-toggle { position: relative; width: 100%; height: 26px; border: 0; border-radius: 99px; background: #e4ded4; cursor: pointer; font: inherit; font-size: 0; transition: background .2s; }
.cal-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .2s var(--ease); }
.cal-toggle[aria-pressed=true] { background: var(--brand); }
.cal-toggle[aria-pressed=true]::after { left: calc(100% - 23px); }
.cal-toggle:hover { filter: brightness(.97); }
.cal-ev { display: block; background: rgba(255, 255, 255, .85); border-radius: 8px; padding: 4px 6px; line-height: 1.3; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: .72rem; }
a.cal-ev:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--brand); }
.is-booked .cal-ev { color: var(--accent-600); }
.ev-open { color: var(--warn) !important; }
.ev-done { color: var(--info) !important; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; color: var(--muted); margin: 14px 4px 0; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.lg-on { background: var(--brand); }
.lg-off { background: #e4ded4; }
.lg-booked { background: #f6c4a8; }
.lg-done { background: #c9d8ee; }
.lg-open { background: #ecd29e; }

/* ==========================================================
   메인 화면
   ========================================================== */
.is-site .main { padding: 0; }
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(46, 106, 85, .09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 85%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); padding: 6px 14px 6px 10px; border-radius: 99px; font-size: .84rem; color: var(--ink-2); box-shadow: var(--sh-xs); }
.live-pill b { color: var(--brand); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3fae7f; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3fae7f; opacity: .4; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.16; letter-spacing: -.055em; margin: 22px 0 18px; font-weight: 850; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, #fbd9c6 62%, #fbd9c6 92%, transparent 92%); padding: 0 .06em; }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 30em; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: .88rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ic { width: 17px; height: 17px; color: var(--brand); }

.hero-visual { position: relative; min-height: 470px; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob.b1 { width: 380px; height: 380px; right: -40px; top: 10px; background: radial-gradient(circle at 35% 35%, #dcebe2, #c3dccf 60%, transparent 70%); }
.blob.b2 { width: 220px; height: 220px; left: 10px; bottom: 0; background: radial-gradient(circle at 50% 50%, #fde3d4, transparent 70%); }
.pv { position: absolute; background: rgba(255, 255, 255, .94); border: 1px solid rgba(230, 224, 214, .8); border-radius: 22px; box-shadow: var(--sh-lg); padding: 18px; backdrop-filter: blur(8px); }
.pv-request { left: 0; top: 18px; width: 290px; animation: float 7s ease-in-out infinite; }
.pv-teachers { right: 0; top: 140px; width: 330px; animation: float 8s ease-in-out -2s infinite; }
.pv-toast { left: 34px; bottom: 6px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; animation: float 6s ease-in-out -1s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pv-label { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: var(--urgent); background: var(--urgent-50); padding: 3px 10px; border-radius: 99px; }
.pv-label .ic { width: 14px; height: 14px; }
.pv-title { font-weight: 800; font-size: 1.15rem; margin: 10px 0 2px; letter-spacing: -.03em; }
.pv-meta { display: flex; gap: 12px; color: var(--muted); font-size: .82rem; }
.pv-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pv-meta .ic { width: 14px; height: 14px; }
.pv-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .82rem; }
.pv-avs { display: flex; }
.pv-avs .av { border: 2px solid #fff; margin-left: -8px; }
.pv-avs .av:first-child { margin-left: 0; }
.pv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 800; font-size: .95rem; }
.pv-chips { display: flex; gap: 4px; }
.pv-chips span { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--bg-2); color: var(--muted); }
.pv-chips span.on { background: var(--ink); color: #fff; }
.pv-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.pv-row:first-of-type { border-top: 0; }
.pv-row div { flex: 1; min-width: 0; line-height: 1.35; }
.pv-row strong { font-size: .88rem; }
.pv-row small { display: block; color: var(--muted); font-size: .74rem; }
.pv-km { font-size: .74rem; font-weight: 800; color: var(--brand); background: var(--brand-50); padding: 3px 8px; border-radius: 8px; }
.pv-heart { color: var(--fav); }
.pv-heart .ic { width: 16px; height: 16px; fill: currentColor; }
.pv-check { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--brand); color: #fff; }
.pv-toast strong { display: block; font-size: .9rem; }
.pv-toast small { color: var(--muted); font-size: .78rem; }

.sec { padding: 72px 0; }
.sec-tight { padding: 40px 0; }
.sec-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.045em; margin: 10px 0 10px; font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 1.02rem; }
.sec-alt { background: var(--paper); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

.steps { counter-reset: st; }
.step { position: relative; padding: 28px; min-height: 220px; overflow: hidden; }
.step-no { position: absolute; right: 18px; top: 4px; font-size: 5rem; font-weight: 900; color: var(--bg-2); letter-spacing: -.06em; line-height: 1; }
.step-ic { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: var(--brand-50); color: var(--brand); margin-bottom: 18px; }
.step-ic .ic { width: 26px; height: 26px; }
.step:nth-child(2) .step-ic { background: var(--accent-50); color: var(--accent-600); }
.step:nth-child(3) .step-ic { background: var(--info-50); color: var(--info); }
.step h3 { position: relative; font-size: 1.15rem; }
.step p { position: relative; color: var(--muted); margin: 0; }
.step .who { position: relative; font-size: .76rem; font-weight: 800; color: var(--brand); letter-spacing: .04em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split-card { padding: 34px; border-radius: var(--r-xl); position: relative; overflow: hidden; }
.split-card h3 { font-size: 1.4rem; letter-spacing: -.04em; margin: 12px 0 14px; }
.split-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.split-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.split-card li .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.split-teacher { background: linear-gradient(160deg, #eef5f1, #fff 70%); border: 1px solid var(--brand-100); }
.split-center { background: linear-gradient(160deg, #fdf1e9, #fff 70%); border: 1px solid #f6dccd; }
.split-center li .ic { color: var(--accent-600); }
.split-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: #fff; box-shadow: var(--sh); color: var(--brand); }
.split-center .split-ic { color: var(--accent-600); }
.split-ic .ic { width: 26px; height: 26px; }

.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(190px, auto); gap: 18px; }
.bento .tile { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; margin: 0; }
.bento .tile-big { grid-row: span 2; background: linear-gradient(170deg, var(--brand-700), var(--brand-900)); color: #e8f1ec; border: 0; }
.bento .tile-big h3 { color: #fff; font-size: 1.5rem; letter-spacing: -.04em; }
.bento .tile-big p { color: #b9d1c5; }
.tile-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--brand-50); color: var(--brand); }
.tile-big .tile-ic { background: rgba(255, 255, 255, .1); color: #f6b896; }
.tile p { color: var(--muted); margin: 0; }
.mutual { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 14px; }
.mutual .av { border: 2px solid var(--brand-700); }
.mutual .pv-heart { color: #f6b896; }
.mutual span { font-size: .84rem; color: #d6e6dd; }

.avail-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 0; }
.mini div { min-width: 0; line-height: 1.4; }
.mini strong { display: block; font-size: .95rem; }
.mini small { display: block; color: var(--muted); font-size: .8rem; }
.mini .tag { margin-top: 4px; }

.cta-band { padding: 0 0 80px; }
.cta-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; border-radius: var(--r-xl); background: radial-gradient(600px 300px at 90% 0%, rgba(232, 135, 90, .35), transparent 60%), linear-gradient(140deg, var(--brand-700), var(--brand-900)); color: #fff; box-shadow: var(--sh-lg); }
.cta-card h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -.045em; margin: 0 0 8px; }
.cta-card p { color: #c5dace; margin: 0; }

/* ---------- 바닥글 ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0 0; font-size: .88rem; color: var(--muted); }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand p { margin: 12px 0 0; }
.footer-cols { display: flex; gap: 56px; }
.footer-cols h4 { font-size: .8rem; color: var(--ink); margin: 0 0 10px; letter-spacing: 0; }
.footer-cols a { display: block; color: var(--muted); padding: 3px 0; }
.footer-cols a:hover { color: var(--ink); }
.footer-copy { border-top: 1px solid var(--line); padding-top: 18px !important; padding-bottom: 28px !important; font-size: .8rem; color: var(--faint); }

/* ---------- 로그인·가입 ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1040px; margin: 40px auto 64px; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; border: 1px solid var(--line-2); }
.auth-side { position: relative; padding: 48px 44px; background: radial-gradient(500px 260px at 100% 100%, rgba(232, 135, 90, .3), transparent 60%), linear-gradient(160deg, var(--brand-700), var(--brand-900)); color: #d6e6dd; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 1.9rem; letter-spacing: -.05em; margin: 22px 0 12px; line-height: 1.3; }
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: center; }
.auth-side li span:first-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: rgba(255, 255, 255, .09); color: #f6b896; flex: none; }
.auth-side .brand { color: #fff; }
.auth-side .lm-bg { fill: rgba(255, 255, 255, .14); }
.auth-main { padding: 44px; }
.auth-main h1 { font-size: 1.6rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .8rem; margin: 26px 0 16px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.role-cards { display: grid; gap: 10px; }
.role-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); font: inherit; text-align: left; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s, transform .15s var(--ease); }
.role-card:hover { border-color: var(--brand); background: #fff; transform: translateY(-1px); }
.role-card .rc-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--brand-50); color: var(--brand); flex: none; }
.role-card.center .rc-ic { background: var(--accent-50); color: var(--accent-600); }
.role-card div { flex: 1; line-height: 1.35; }
.role-card strong { display: block; font-size: .95rem; }
.role-card small { color: var(--muted); font-size: .8rem; }
.role-card > .ic { color: var(--faint); }
.note { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* ==========================================================
   반응형
   ========================================================== */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; max-width: 560px; width: 100%; margin: 0 auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .tile-big { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 960px) {
  .shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 290px; height: 100%; transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: var(--sh-lg); }
  .sidebar.open { transform: translateX(0); }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(20, 30, 26, .35); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 35; }
  .sidebar.open + .scrim { opacity: 1; pointer-events: auto; }
  .appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: rgba(246, 243, 238, .85); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(230, 224, 214, .7); }
  .brand-sm { font-size: .98rem; }
  .brand-sm .logo-mark { width: 30px; height: 30px; }
  .icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
  .icon-btn:hover { background: var(--bg-2); color: var(--ink); }
  .icon-btn .ic { width: 22px; height: 22px; }
  .icon-btn.ghost { visibility: hidden; }
  .dot-count { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-style: normal; font-size: .66rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
  .is-app .wrap { padding: 0 18px; }
  .is-app .main { padding-bottom: 96px; }
  .app-foot { padding-bottom: 100px !important; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 14px; color: var(--faint); font-size: .68rem; font-weight: 700; }
  .tabbar a .ic { width: 23px; height: 23px; }
  .tabbar a.active { color: var(--brand); }
  .tabbar a.active .ic { stroke-width: 2.2; }
  .grid-2, .grid-3, .layout-side, .split { grid-template-columns: 1fr; }
  .layout-side > aside { position: static; }
  .auth { grid-template-columns: 1fr; margin: 20px 16px 40px; }
  .auth-side { padding: 32px 28px; }
  .auth-side ul { display: none; }
  .auth-main { padding: 28px; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .sec { padding: 52px 0; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .is-app .wrap { padding: 0 16px; }
  h1, .page-head h1 { font-size: 1.45rem; }
  .page-head { margin: 18px 0 16px; }
  .card { padding: 18px; border-radius: 20px; }
  .row-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .stat-ic { width: 38px; height: 38px; border-radius: 12px; }
  .stat strong { font-size: 1.3rem; }
  .topbar-in { min-height: 60px; }
  .top-nav a:not(.btn) { padding: 8px 10px; }
  .top-nav a[href$="guide.php"] { display: none; }
  .hero { padding: 32px 0 48px; }
  .hero-visual { min-height: 400px; }
  .pv-request { width: 250px; }
  .pv-teachers { width: 280px; top: 120px; }
  .pv-toast { left: 0; }
  .blob.b1 { width: 280px; height: 280px; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile-big { grid-column: auto; }
  .split-card { padding: 26px; }
  .cal { padding: 10px; border-radius: 18px; }
  .cal-grid { gap: 3px; }
  .cal-d { min-height: 66px; padding: 5px; border-radius: 10px; font-size: .66rem; }
  .cal-n { font-size: .74rem; }
  .cal-toggle { height: 20px; }
  .cal-toggle::after { width: 14px; height: 14px; }
  .cal-toggle[aria-pressed=true]::after { left: calc(100% - 17px); }
  .cal-ev { padding: 2px 3px; font-size: .62rem; border-radius: 6px; }
  .item { flex-wrap: wrap; }
  .item-side { flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; }
  .dl { grid-template-columns: 92px 1fr; }
  .footer-cols { gap: 36px; }
  .req-top { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 보정 ---------- */
.wrap.section > .page-head:first-child { margin-top: 4px; }
.req-info .ic { width: 15px; height: 15px; color: var(--faint); }
.page-actions .btn .ic { width: 18px; height: 18px; }
.is-site .wrap.section { margin-top: 40px; margin-bottom: 56px; }
.doc { padding: 34px; }
@media (max-width: 600px) {
  .hero-visual { min-height: 0; display: grid; gap: 14px; margin-top: 8px; }
  .hero-visual .blob { display: none; }
  .pv { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto !important; animation: none; }
  .pv-request { margin-right: 36px; }
  .pv-teachers { margin-left: 24px; margin-top: -40px; }
  .pv-toast { margin: -26px 12px 0 0; }
  .hero h1 { margin-top: 18px; }
  .test-banner { font-size: .7rem; }
}

/* ---------- 사진 ---------- */
img { max-width: 100%; }
.hero-visual { min-height: 540px; }
.hero-photo { position: absolute; top: 0; right: 10px; bottom: 56px; left: 70px; border-radius: 32px; overflow: hidden; box-shadow: var(--sh-lg); background: var(--bg-2); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 47, 38, 0) 55%, rgba(20, 47, 38, .28)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.hero-visual .pv-request { left: 0; top: 36px; width: 268px; z-index: 2; }
.hero-visual .pv-teachers { right: -14px; top: auto; bottom: 92px; width: 300px; z-index: 2; }
.hero-visual .pv-toast { left: 24px; bottom: 0; z-index: 3; }

.split-card { padding-top: 0; }
.split-photo { margin: 0 -34px 0; height: 250px; overflow: hidden; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.split-card:hover .split-photo img { transform: scale(1.03); }
.split-card .split-ic { position: relative; margin-top: -27px; border: 3px solid #fff; }

.auth-side > * { position: relative; z-index: 1; }
.auth-side > .auth-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .32; mix-blend-mode: luminosity; }
.auth-side::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(170deg, rgba(31, 74, 59, .55), rgba(20, 47, 38, .92) 70%); }

@media (max-width: 1100px) {
  .hero-visual { min-height: 520px; }
}
@media (max-width: 600px) {
  .hero-visual { display: block; min-height: 0; }
  .hero-photo { position: relative; inset: auto; aspect-ratio: 4 / 3.4; border-radius: 24px; }
  .hero-visual .pv { position: relative; inset: auto; width: auto; }
  .hero-visual .pv-request { margin: -70px 40px 0 12px; }
  .hero-visual .pv-teachers { margin: 12px 0 0 28px; }
  .hero-visual .pv-toast { margin: -20px 24px 0 0; }
  .split-card { padding-top: 0; }
  .split-photo { margin: 0 -26px; height: 200px; }
}
@media (max-width: 760px) {
  .table { min-width: 680px; }
  .table td, .table th { white-space: nowrap; }
  .table td:has(> .person) .person strong { white-space: nowrap; }
}
