:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c1f24;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2f5cff;        /* Studia 블루 */
  --brand-dark: #1a3fd6;
  --navy: #0b1227;         /* F45 딥네이비 */
  --navy-2: #1b2338;
  --navy-text: #dbe2ee;
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --warn: #b45309;
  --warn-bg: #fff7ed;
  --err: #b91c1c;
  --err-bg: #fef2f2;
  --info-bg: #eff6ff;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; width: 100%; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 48px; }
.topbar { background: var(--navy); border-bottom: 3px solid var(--brand); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 800; font-size: 17px; color: #fff; letter-spacing: -0.2px; display: inline-flex; align-items: center; gap: 8px; }
.brand .brand-mark { height: 24px; width: 24px; flex: none; display: block; }
.brand .brand-wm { display: inline-block; }
.brand .accent { color: #4f7bff; font-style: normal; }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: var(--navy-text); font-weight: 500; }
.topbar nav a:hover { color: #fff; text-decoration: none; }
.topbar button.link { color: var(--navy-text); }
.topbar button.link:hover { color: #fff; }
.topbar nav .admin-link { color: #ff7a8c; font-weight: 700; }
.footer { border-top: 1px solid var(--line); background: var(--navy); padding: 16px 0; font-size: 12.5px; color: #93a1bb; }
.footer a { color: #b9c3d6; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.tchip { background:#f3f4f6; border:1px solid #e5e7eb; border-radius:999px; padding:2px 10px; font-size:13.5px; cursor:pointer; color:var(--text); margin:1px 0; }
.tchip:hover { border-color: var(--brand); color: var(--brand-dark); background:#fff; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.3px; color: var(--navy); }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15.5px; margin: 0 0 8px; }
p { margin: 0 0 10px; }
.sub { color: var(--muted); margin-bottom: 20px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.card.narrow { max-width: 460px; margin: 30px auto; }
.card.tight { padding: 14px 16px; }
.grid { display: grid; gap: 14px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 12px; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.stat .label { color: var(--navy); font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.stat .label .hint { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 1px; }
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-top: auto; padding-top: 6px; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat.ok .value { color: var(--ok); }
.stat.warn .value { color: var(--warn); }
.stat.err .value { color: var(--err); }

label { display: block; font-size: 13.5px; font-weight: 600; margin: 12px 0 5px; }
label .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(47,92,255,.25); border-color: var(--brand); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 10px 0; }
.check input { width: 16px; height: 16px; }

.btn {
  display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; font-size: 14.5px; font-weight: 600;
  background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; line-height: 1.2;
  white-space: nowrap; /* 좁은 화면에서 "지난주"가 세로 한 글자씩 꺾이는 것 방지 (2026-08-28 데모 점검) */
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.secondary { background: #fff; color: var(--text); border-color: #d1d5db; }
.btn.secondary:hover { background: #f3f4f6; }
.btn.ghost { background: transparent; color: var(--brand-dark); border-color: transparent; padding-left: 6px; padding-right: 6px; }
.btn.small { padding: 6px 11px; font-size: 13px; }
.btn.block { display: block; width: 100%; text-align: center; margin-top: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
form.inline { display: inline; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.actions .spacer { flex: 1; }

.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-weight: 500; border: 1px solid transparent; }
.flash.success { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.flash.error { background: var(--err-bg); color: var(--err); border-color: #fecaca; }
.note { background: var(--info-bg); border: 1px solid #bfdbfe; padding: 12px 14px; border-radius: 8px; font-size: 14px; margin: 12px 0; }
.note.warn { background: var(--warn-bg); border-color: #fed7aa; }
.note ol, .note ul { margin: 6px 0 0 18px; padding: 0; }
.note li { margin: 3px 0; }
.error-text { color: var(--err); font-weight: 500; margin: 8px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: keep-all; }
th { white-space: nowrap; }
th { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: none; background: #fafafa; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.gray { background: #f3f4f6; color: var(--muted); }
.badge.info { background: var(--info-bg); color: #1d4ed8; }

.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps .s { flex: 1; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.steps .s.active { border-color: var(--brand); color: var(--brand-dark); font-weight: 700; box-shadow: 0 2px 8px rgba(47,92,255,.12); }
.steps .s.done { color: var(--ok); border-color: #bbf7d0; background: var(--ok-bg); }
.steps .s .n { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: #e5e7eb; color: #374151; text-align: center; font-size: 12px; line-height: 20px; margin-right: 6px; }
.steps .s.active .n { background: var(--brand); color: #fff; }
.steps .s.done .n { background: var(--ok); color: #fff; }

.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, #26314d 100%); color: #fff; padding: 46px 44px; border-radius: 16px; margin-top: 26px; position: relative; overflow: hidden; }
.hero::after { content: "REJOIN"; position: absolute; right: -30px; bottom: -34px; font-size: 110px; font-weight: 900; font-style: italic; color: rgba(47,92,255,.12); pointer-events: none; }
.hero h1 { font-size: 34px; line-height: 1.25; color: #fff; }
.hero p { font-size: 17px; color: #b9c3d6; max-width: 640px; }
.hero .muted, .hero .small { color: #93a1bb; }
.features { margin-top: 26px; }
.features .card { margin: 0; }
.price { font-size: 30px; font-weight: 800; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.kbd { background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 4px; padding: 0 5px; font-size: 12.5px; }
details summary { cursor: pointer; font-weight: 600; margin: 8px 0; }
.copybox { display: flex; gap: 8px; align-items: center; }
.copybox input { flex: 1; }
.month-nav { display: flex; gap: 8px; align-items: center; }

/* landing: 레벨 진단 + 번호형 기능 */
.lvl-list { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.lvl { display: flex; gap: 12px; align-items: baseline; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.lvl:last-child { border-bottom: none; }
.lvl-no { flex: 0 0 44px; font-weight: 800; color: var(--muted); font-size: 14px; }
.lvl.now { background: #fff8f0; border-radius: 8px; }
.lvl.top { background: #fdecee; border-radius: 8px; }
.lvl.top .lvl-no { color: var(--brand); }
.feat-no { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: 1px; margin-bottom: 4px; }

/* mobile */
@media (max-width: 720px) {
  .row { flex-direction: column; }
  .row > * { width: 100%; }
  /* 상단 메뉴: 줄바꿈 대신 한 줄 좌우 슬라이드 */
  .topbar .wrap { flex-direction: column; align-items: stretch; height: auto; padding: 10px 16px 0; gap: 2px; }
  .topbar nav { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; justify-content: flex-start; gap: 18px; font-size: 14.5px; padding: 6px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a, .topbar nav .inline { flex: 0 0 auto; }
  main.wrap { padding-top: 18px; }
  h1 { font-size: 21px; }
  .hero { padding: 28px 20px; margin-top: 14px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 15px; }
  .hero::after { font-size: 64px; right: -8px; bottom: -14px; }
  .price { font-size: 24px; }
  .card { padding: 16px 16px; }
  .stat .value { font-size: 24px; }
  .actions { gap: 8px; }
  .btn { padding: 10px 14px; }
  /* 표: 칸을 찌그러뜨리지 말고 표 안에서 좌우 스크롤 */
  .table-wrap table { min-width: 560px; }
  /* 스택 모드(.table-wrap.stack): 열이 많은 표는 좌우 스크롤 대신 행을 카드로 세로 배치.
     각 칸 왼쪽에 원래 열 이름(data-th, footer 스크립트가 thead에서 자동 주입)을 라벨로 표시. */
  .table-wrap.stack table { min-width: 0; width: 100%; }
  .table-wrap.stack thead { display: none; }
  .table-wrap.stack tbody { display: block; }
  .table-wrap.stack tr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--card); }
  .table-wrap.stack td { display: flex; gap: 10px; padding: 3px 0; border: 0; align-items: baseline; white-space: normal !important; }
  .table-wrap.stack td::before { content: attr(data-th); flex: 0 0 78px; color: var(--muted); font-size: 12px; line-height: 1.9; }
  .table-wrap.stack td:first-child { font-weight: 700; }
  .table-wrap.stack td:first-child::before { font-weight: 400; }
  .table-wrap.stack td:empty, .table-wrap.stack td[data-th-empty] { display: none; }
  .table-wrap.stack td[colspan]::before { display: none; }
  .table-wrap.stack td > div, .table-wrap.stack td form { min-width: 0; }
  /* 정보가 많은 칸(메모+세일즈 포인트+수정 등)은 가로 flex 대신 세로로 쌓아 가독성 확보 */
  .table-wrap.stack td.cell-rich { display: block; }
  .table-wrap.stack td.cell-rich::before { display: block; flex: none; margin-bottom: 3px; line-height: 1.4; }
  .table-wrap.stack td.cell-rich > * { width: 100%; }
}

/* ===== 클래스 스케줄 보드 ===== */
.sched-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.sched-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-height: 120px; }
.sched-col.today { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(47,92,255,.08); }
.sched-col.past { opacity: .72; }
.sched-day { font-weight: 800; font-size: 13.5px; color: var(--navy); margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.sched-item { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .12s; }
.sched-item:hover { border-color: var(--brand); text-decoration: none; }
.sched-item.full { background: #fff8f0; }
.sched-item.cancelled { background: #f3f4f6; color: var(--muted); text-decoration: line-through; }
.sched-item .t { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.sched-item .p { font-size: 12.5px; color: var(--navy); font-weight: 600; margin: 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-item .c { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.sched-item .c .n { font-weight: 700; color: var(--text); }
.sched-item .c .n.full { color: var(--brand-dark); }
.sched-item .bar { height: 4px; background: #eef0f3; border-radius: 4px; margin-top: 4px; overflow: hidden; }
.sched-item .bar i { display: block; height: 100%; background: var(--ok); }
.sched-item.full .bar i { background: var(--brand); }
@media (max-width: 900px) { .sched-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sched-grid { grid-template-columns: 1fr; } }

.picon { width:18px; height:18px; border-radius:5px; vertical-align:-4px; margin-right:4px; object-fit:cover; background:#0b1227; }
.picon.lg { width:40px; height:40px; border-radius:10px; vertical-align:middle; margin-right:8px; }

/* ===== 좌측 사이드바 (Glofox식) ===== */
body.has-sidebar { flex-direction: row; }
.sidebar { width: 232px; flex: 0 0 232px; background: var(--navy); color: var(--navy-text); min-height: 100vh; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; border-right: 3px solid var(--brand); transition: width .15s, flex-basis .15s; }
.sidebar::-webkit-scrollbar { width: 6px; } .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.sb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.sb-top .brand { font-size: 18px; }
.sb-collapse { background: rgba(255,255,255,.08); border: 0; color: #fff; width: 26px; height: 26px; border-radius: 7px; cursor: pointer; font-size: 16px; line-height: 1; }
.sb-tenant { display: flex; align-items: center; gap: 8px; padding: 6px 16px 10px; font-size: 12.5px; color: #93a1bb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-tenant .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: 0 0 8px; }
.sb-nav { flex: 1; padding: 4px 8px 10px; }
.sb-group { border-radius: 10px; margin-bottom: 2px; }
.sb-group-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--navy-text); font: inherit; font-weight: 700; font-size: 14px; padding: 9px 10px; border-radius: 10px; cursor: pointer; text-align: left; }
.sb-group-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.sb-group.active > .sb-group-btn { color: #fff; }
.sb-group .ic { width: 22px; text-align: center; font-size: 15px; flex: 0 0 22px; }
.sb-group .lb { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-group .chev { color: #6b7a99; transition: transform .15s; font-size: 16px; }
.sb-group.open .chev { transform: rotate(90deg); }
.sb-items { display: none; padding: 2px 0 6px 30px; }
.sb-group.open .sb-items { display: block; }
.sb-items a { display: block; padding: 6px 10px; border-radius: 8px; color: #b9c3d6; font-size: 13.5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-items a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.sb-items a.on { background: rgba(47,92,255,.18); color: #fff; font-weight: 700; border-left: 3px solid var(--brand); padding-left: 7px; }
/* 매일 쓰는 메뉴와 설정·본사를 눈으로 갈라준다 (2026-08-23 메뉴 재정리) */
.sb-sep { height: 1px; background: rgba(255,255,255,.09); margin: 8px 10px; }
html.sb-collapsed .sb-sep { margin: 8px 6px; }
.sb-bottom { padding: 8px 8px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sb-bottom button.link, .sb-bottom a.link { display: flex; align-items: center; gap: 10px; color: var(--navy-text); padding: 7px 10px; border-radius: 8px; width: 100%; font-size: 13.5px; }
.sb-bottom button.link:hover, .sb-bottom a.link:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.sb-bottom .ic { width: 22px; text-align: center; }
.sb-mask.on { color: #fbbf24; font-weight: 800; }
.sb-user { font-size: 11.5px; color: #6b7a99; padding: 4px 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.app-main .wrap { max-width: 1180px; }
.topbar.slim { border-bottom: 1px solid var(--line); background: #fff; }
.topbar.slim .wrap { height: 48px; }
.topbar.slim .topbar-title { font-weight: 800; color: var(--navy); font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 홈 바로가기 + 상위 메뉴 경로 (모바일에서 사이드바를 열지 않고도 이동) */
.topbar.slim .topbar-home { display: none; align-items: center; justify-content: center; width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); margin-right: 8px; flex: none; }
.topbar.slim .topbar-home:hover { color: var(--navy); border-color: var(--navy); }
/* 화면이 답하는 질문 한 줄 — 제목 옆 회색 보조 문장 (모바일에서는 공간상 숨김) */
.topbar.slim .tb-question { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 10px; }
.topbar.slim .tb-question::before { content: "—"; margin-right: 6px; color: var(--line); }
@media (max-width: 760px) { .topbar.slim .tb-question { display: none; } }
.topbar.slim .tb-parent { color: var(--muted); font-weight: 600; text-decoration: none; }
.topbar.slim .tb-parent:hover { color: var(--brand); text-decoration: underline; }
.topbar.slim .tb-sep { color: var(--line); margin: 0 5px; font-weight: 400; }
.topbar.slim nav { flex: 0 0 auto; }
.topbar.slim nav a { color: var(--muted); }
.topbar.slim nav .admin-link { color: var(--brand-dark); }
.sb-mobile-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 30px; font-size: 16px; cursor: pointer; margin-right: 10px; }
/* 접힘: 아이콘만 */
html.sb-collapsed .sidebar { width: 62px; flex-basis: 62px; }
html.sb-collapsed .sidebar .lb, html.sb-collapsed .sidebar .chev, html.sb-collapsed .sb-tenant, html.sb-collapsed .sb-items, html.sb-collapsed .sb-top .brand, html.sb-collapsed .sb-user { display: none; }
html.sb-collapsed .sb-group-btn { justify-content: center; padding: 10px 0; }
html.sb-collapsed .sb-group.open .sb-items { display: none; }
html.sb-collapsed .sb-top { justify-content: center; }
html.sb-collapsed .sb-collapse { transform: rotate(180deg); }
html.sb-collapsed .sb-bottom button.link { justify-content: center; }
/* ===== 아이콘·글로벌 검색·표 인터랙션 (이모지 → SVG, Glofox/Mindbody식 빠른 이동) ===== */
.ic-svg { vertical-align: -3px; flex: 0 0 auto; }
.btn .ic-svg, .tab .ic-svg { vertical-align: -3px; margin-right: 4px; }
.btn.icon-only { padding: 8px; line-height: 0; }
.sb-group .ic, .sb-bottom .ic { display: inline-flex; align-items: center; justify-content: center; }
.sb-collapse { display: inline-flex; align-items: center; justify-content: center; }
.sb-mobile-btn { display: none; align-items: center; justify-content: center; }
.gsearch { position: relative; display: flex; align-items: center; gap: 6px; background: #f3f4f6; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; height: 32px; width: 260px; }
.gsearch:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(47,92,255,.08); }
.gsearch .gs-ic { color: var(--muted); display: inline-flex; }
.gsearch input { border: 0; background: transparent; padding: 0; font-size: 13.5px; width: 100%; outline: none; color: var(--text); }
.gsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.gsearch .gs-kbd { font-size: 11px; color: var(--muted); border: 1px solid #d1d5db; border-radius: 4px; padding: 0 5px; background: #fff; line-height: 16px; }
.gsearch:focus-within .gs-kbd { display: none; }
.gs-menu { position: absolute; top: 36px; left: 0; right: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); z-index: 80; overflow: hidden; }
.gs-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.gs-item:hover, .gs-item.sel { background: #f6f7f9; text-decoration: none; }
.gs-item .gs-av { width: 26px; height: 26px; border-radius: 50%; background: #eef2ff; color: #3730a3; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; }
.gs-item .gs-nm { font-weight: 700; }
.gs-item .gs-ph { color: var(--muted); font-size: 12.5px; margin-left: auto; font-variant-numeric: tabular-nums; }
.gs-empty { padding: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.gs-more { display: block; padding: 8px 10px; font-size: 12.5px; border-top: 1px solid var(--line); background: #fafafa; }
@media (max-width: 720px) { .gsearch { display: none; } }
/* 표: 행 hover, 클릭 가능한 행, 상단 고정 헤더 */
tbody tr:hover td { background: #fafbfc; }
tr.clickable { cursor: pointer; }
.table-wrap.sticky thead th { position: sticky; top: 0; z-index: 1; }
/* 빈 상태 */
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty .ic-svg { color: #c4c9d2; margin-bottom: 8px; }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }
/* 포커스 링(키보드 접근성) */
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid rgba(47,92,255,.45); outline-offset: 2px; }
/* 배지 안 점 */
.badge .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
@media (max-width: 860px) {
  body.has-sidebar { flex-direction: column; }
  .sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 60; height: 100vh; width: 240px !important; flex-basis: 240px !important; transition: left .18s; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  html.sb-mobile-open .sidebar { left: 0; }
  html.sb-collapsed .sidebar .lb, html.sb-collapsed .sidebar .chev, html.sb-collapsed .sb-tenant, html.sb-collapsed .sb-top .brand, html.sb-collapsed .sb-user { display: initial; }
  html.sb-collapsed .sb-group.open .sb-items { display: block; }
  .sb-collapse { display: none; }
  .sb-mobile-btn { display: inline-flex; }
  .topbar.slim .topbar-home { display: inline-flex; } /* 모바일에서만 - 데스크톱은 사이드바 로고가 홈 역할 */
  .topbar.slim .topbar-title { font-size: 14.5px; }
  .topbar.slim .tb-sep { margin: 0 3px; }
  .topbar.slim .wrap { flex-direction: row; align-items: center; height: 48px; padding: 0 12px; }
  .topbar.slim nav { padding: 0; }
  .app-main { min-height: auto; }
}

/* ===== 페이지 하위 탭 (밑줄형, Glofox/Mindbody식) ===== */
.subtabs { display: flex; gap: 2px; align-items: center; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs > a:not(.btn) { padding: 9px 12px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.subtabs > a:not(.btn):hover { color: var(--text); text-decoration: none; }
.subtabs > a.on { color: var(--brand-dark); border-bottom-color: var(--brand); }
.subtabs .cnt { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; text-align: center; margin-left: 4px; }
.subtabs .sp { flex: 1; }
.subtabs .btn { margin: 0 0 6px 8px; flex: 0 0 auto; }

/* ===== 모듈 페이지 머리 (얇게) ===== */
.mod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.mod-head h1 { display: flex; align-items: center; gap: 8px; margin: 0; }
.mod-status { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.mod-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.mod-info { position: relative; display: inline-flex; color: var(--muted); cursor: help; }
.mod-info .mod-tip { display: none; position: absolute; left: 0; top: 24px; z-index: 20; width: 360px; max-width: 80vw; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.5; padding: 10px 12px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.mod-info:hover .mod-tip, .mod-info:focus .mod-tip { display: block; }
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.pg-head h1 { margin: 0; font-size: 20px; }
/* KPI 한 줄 스트립 (카드 대신) */
.kpi-strip { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 8px 4px 12px; font-size: 13.5px; color: var(--text); }
.kpi-strip b { font-size: 16px; font-variant-numeric: tabular-nums; }
.kpi-strip .sp { flex: 1; }
.rules-toc { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.rules-toc a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); }
.rules-toc a:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.card:target { box-shadow: 0 0 0 3px rgba(47,92,255,.15); }

/* ── 인력 임베드 (2026-08-27): 사장·매니저는 인력 화면을 본 사이트 레이아웃 안에서 본다 (staff-embed.ejs).
   body HTML은 폰 셸(staff.css)과 공유하므로, 폰 셸 클래스들을 여기서 본 사이트 토큰으로 재해석한다.
   폰 셸 쪽 룰과 이름은 같아도 스코프(.staff-embed)가 달라 서로 간섭하지 않는다. ── */
.staff-embed { max-width: 860px; }
.staff-embed h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 2px; }
.staff-embed .day { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.staff-embed h3 { font-size: 12.5px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; font-weight: 600; margin: 24px 0 10px; }
.staff-embed .card { margin-bottom: 12px; }
.staff-embed .card.hi { border-color: var(--brand); background: rgba(47,92,255,.04); }
.staff-embed .card.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.staff-embed .card.dark .s { color: var(--navy-text); }
.staff-embed .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.staff-embed .t { font-size: 15px; font-weight: 600; margin: 0; }
.staff-embed .s { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.staff-embed .pill { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.staff-embed .pill.blue { border-color: var(--brand); color: var(--brand-dark); }
.staff-embed .pill.warn { border-color: #f3ddb0; color: #b8720a; background: #fff8ec; }
.staff-embed .pill.done { background: var(--text); color: #fff; border-color: var(--text); }
.staff-embed .acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
/* 폰 셸의 .btn은 무채색 기본·.p만 파랑 — 본 사이트 .btn(파랑 기본)을 그대로 두면 전부 파래진다 */
.staff-embed .btn, .staff-embed .acts button { background: #fff; color: var(--text); border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 14px; font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: center; }
.staff-embed .btn:hover, .staff-embed .acts button:hover { background: #f3f4f6; text-decoration: none; }
.staff-embed .btn.p, .staff-embed .acts button.p { background: var(--brand); border-color: var(--brand); color: #fff; }
.staff-embed .btn.p:hover, .staff-embed .acts button.p:hover { background: var(--brand-dark); }
.staff-embed .acts button:disabled { opacity: .5; cursor: not-allowed; }
.staff-embed .stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 6px; }
.staff-embed .stat .card { margin: 0; text-align: center; padding: 18px 12px; }
.staff-embed .big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.staff-embed .lb { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.staff-embed .empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 30px 10px; }
.staff-embed .check { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; }
.staff-embed .check:last-child { border-bottom: 0; }
.staff-embed .bx { width: 19px; height: 19px; border: 1.5px solid var(--line); border-radius: 5px; flex: 0 0 auto; margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.staff-embed .check.on .bx { background: var(--brand); border-color: var(--brand); }
.staff-embed .check.on .t { color: var(--muted); text-decoration: line-through; }
.staff-embed .prog { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 4px 0 14px; }
.staff-embed .prog i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.staff-embed .doc { display: flex; gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.staff-embed .doc:last-child { border-bottom: 0; }
.staff-embed .doc .ic { width: 32px; height: 32px; border-radius: 6px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 auto; }
.staff-embed table.att { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 16px; }
.staff-embed .att th { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); font-weight: 600; text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.staff-embed .att td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.staff-embed .att tr:last-child td { border-bottom: 0; }
.staff-embed .att td.mono, .staff-embed .att td.num { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.staff-embed .att td.num { text-align: right; }
.staff-embed .att-sum { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; text-transform: none; letter-spacing: 0; }
.staff-embed details.sect { margin: 18px 0 2px; }
.staff-embed details.sect > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.staff-embed details.sect > summary::-webkit-details-marker { display: none; }
.staff-embed details.sect > summary::after { content: "▸"; color: var(--muted); font-size: 11px; margin-left: 8px; }
.staff-embed details.sect[open] > summary::after { content: "▾"; }
.staff-embed details.sect > summary .cnt { font-weight: 400; color: var(--muted); margin-left: auto; }
.staff-embed details.mrow { border-bottom: 1px solid var(--line); }
.staff-embed details.mrow:last-child { border-bottom: 0; }
.staff-embed details.mrow > summary { display: flex; gap: 9px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; }
.staff-embed details.mrow > summary::-webkit-details-marker { display: none; }
.staff-embed .mrow .nm { font-weight: 600; font-size: 14.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-embed .mrow .stt { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.staff-embed .mrow .stt.planned, .staff-embed .mrow .stt.contacted { color: var(--brand-dark); }
.staff-embed .mrow .stt.registered { color: var(--text); font-weight: 700; }
.staff-embed .mrow .stt.churned { color: #b8720a; }
.staff-embed .mbody { padding: 0 0 13px; }
.staff-embed .mtabs { display: flex; gap: 6px; margin: 0 0 14px; overflow-x: auto; padding-bottom: 2px; }
.staff-embed .mtab { flex: 0 0 auto; font-size: 13px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; background: #fff; }
.staff-embed .mtab.on { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }
.staff-embed .ming { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.staff-embed .mlbl { font-size: 11px; letter-spacing: .08em; color: var(--muted); display: block; margin-bottom: 6px; text-transform: uppercase; }
.staff-embed .mlog { font-size: 13.5px; margin: 0 0 5px; line-height: 1.6; }
.staff-embed .mlog.empty { color: var(--muted); font-size: 13px; padding: 0; text-align: left; }
.staff-embed .mwhen { font-size: 11px; color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.staff-embed .mwho { color: var(--muted); font-size: 12px; }
.staff-embed textarea, .staff-embed input[type=text] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; resize: vertical; }
