/**
 * 파일명: hmm-frontend.css
 * 파일 위치: /hc-members-manager/frontend/assets/hmm-frontend.css
 *
 * HC Members Manager — 프론트엔드 스타일
 * joyn-daily-schedule-manual.html 디자인 시스템 완전 적용
 * ─── 다크 네이비 테마 / Noto Serif KR / JetBrains Mono ───
 */

/* ══════════════════════════════════════════════
   0. GOOGLE FONTS IMPORT (fallback)
══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700;900&family=Noto+Sans+KR:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ══════════════════════════════════════════════
   1. 디자인 토큰 (joyn 동일 변수)
══════════════════════════════════════════════ */
:root {
  --fe-bg:          #07111e;
  --fe-bg2:         #0b1928;
  --fe-bg3:         #0f2035;
  --fe-card:        #0d1e30;
  --fe-border:      #1a3050;
  --fe-border2:     #1e3a5f;
  --fe-text:        #c9ddf0;
  --fe-text2:       #7fa3c0;
  --fe-text3:       #4a6a88;
  --fe-text-dim:    #334d66;
  --fe-accent:      #3b9eff;
  --fe-accent2:     #1a7de0;
  --fe-gold:        #f5a623;
  --fe-gold-bg:     rgba(245,166,35,.1);
  --fe-red:         #f87171;
  --fe-red-bg:      rgba(248,113,113,.1);
  --fe-purple:      #a78bfa;
  --fe-purple-bg:   rgba(167,139,250,.1);
  --fe-green:       #34d399;
  --fe-green-bg:    rgba(52,211,153,.1);
  --fe-mono:        'JetBrains Mono', 'Courier New', monospace;
  --fe-serif:       'Noto Serif KR', 'Georgia', serif;
  --fe-sans:        'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --fe-sidebar-w:   256px;
  --fe-radius:      8px;
  --fe-radius-lg:   12px;
  --fe-shadow:      0 2px 12px rgba(0,0,0,0.35);
  --fe-shadow-lg:   0 8px 32px rgba(0,0,0,0.5);
}

/* ══════════════════════════════════════════════
   2. 리셋 & 베이스
══════════════════════════════════════════════ */
.hmm-fe-wrap *,
.hmm-fe-wrap *::before,
.hmm-fe-wrap *::after {
  box-sizing: border-box;
}

.hmm-fe-wrap {
  display: grid;
  grid-template-columns: var(--fe-sidebar-w) 1fr;
  min-height: 100vh;
  font-family: var(--fe-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--fe-text);
  background: var(--fe-bg);
}

.hmm-fe-wrap a { color: var(--fe-accent); text-decoration: none; }
.hmm-fe-wrap a:hover { color: var(--fe-text); }

/* 스크롤바 */
.hmm-fe-wrap ::-webkit-scrollbar { width: 4px; height: 4px; }
.hmm-fe-wrap ::-webkit-scrollbar-track { background: var(--fe-bg); }
.hmm-fe-wrap ::-webkit-scrollbar-thumb { background: var(--fe-border2); border-radius: 2px; }

/* ══════════════════════════════════════════════
   3. 사이드바
══════════════════════════════════════════════ */
.hmm-fe-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--fe-bg2);
  border-right: 1px solid var(--fe-border);
  display: flex;
  flex-direction: column;
}

/* 로고 */
.hmm-fe-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--fe-border);
}
.hmm-fe-logo-product {
  font-family: var(--fe-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fe-accent);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hmm-fe-logo-version {
  display: inline-block;
  margin-top: 5px;
  font-family: var(--fe-mono);
  font-size: 10px;
  background: rgba(59,158,255,.14);
  color: var(--fe-accent);
  border: 1px solid rgba(59,158,255,.25);
  padding: 2px 8px;
  border-radius: 10px;
}
.hmm-fe-logo-sub {
  margin-top: 6px;
  font-size: 11px;
  color: var(--fe-text3);
}

/* 내비게이션 */
.hmm-fe-nav {
  padding: 10px 0 20px;
  flex: 1;
}
.hmm-fe-nav-section {
  padding: 16px 20px 4px;
  font-family: var(--fe-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--fe-text3);
  text-transform: uppercase;
}
.hmm-fe-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--fe-text2);
  text-decoration: none !important;
  transition: all .15s;
  border-left: 2px solid transparent;
  cursor: pointer;
}
.hmm-fe-nav-link:hover {
  color: var(--fe-text);
  background: rgba(255,255,255,.03);
}
.hmm-fe-nav-link.is-active {
  color: var(--fe-accent) !important;
  border-left-color: var(--fe-accent);
  background: rgba(59,158,255,.07);
  font-weight: 500;
}
.hmm-fe-nav-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-style: normal;
}

/* 연동 상태 (사이드바) */
.hmm-fe-intg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 20px;
  font-size: 12px;
  color: var(--fe-text3);
}
.hmm-fe-intg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hmm-fe-intg--on .hmm-fe-intg-dot { background: var(--fe-green); }
.hmm-fe-intg--off .hmm-fe-intg-dot { background: var(--fe-text3); }
.hmm-fe-intg--on  { color: var(--fe-text2); }

/* 사용자 바 */
.hmm-fe-user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--fe-border);
  background: var(--fe-bg3);
}
.hmm-fe-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  border: 2px solid var(--fe-border2);
  flex-shrink: 0;
}
.hmm-fe-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--fe-text);
  line-height: 1.3;
}
.hmm-fe-user-role {
  font-family: var(--fe-mono);
  font-size: 10px;
  color: var(--fe-text3);
}

/* ══════════════════════════════════════════════
   4. 메인 콘텐츠
══════════════════════════════════════════════ */
.hmm-fe-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--fe-bg);
}

/* 히어로 헤더 */
.hmm-fe-hero {
  background: linear-gradient(135deg, var(--fe-bg) 0%, #0b2040 55%, var(--fe-bg) 100%);
  padding: 44px 48px 36px;
  border-bottom: 1px solid var(--fe-border);
  position: relative;
  overflow: hidden;
}
.hmm-fe-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,158,255,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hmm-fe-hero::after {
  content: '';
  position: absolute;
  bottom: -70px;
  left: 22%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.05) 0%, transparent 70%);
  pointer-events: none;
}
.hmm-fe-hero-inner { position: relative; z-index: 1; }
.hmm-fe-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,158,255,.12);
  border: 1px solid rgba(59,158,255,.25);
  color: var(--fe-accent);
  font-family: var(--fe-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.hmm-fe-hero-title {
  font-family: var(--fe-serif) !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1.25 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
}
.hmm-fe-hero-desc {
  font-family: var(--fe-mono);
  font-size: 12px;
  color: var(--fe-text3);
  margin: 0;
}

/* 콘텐츠 */
.hmm-fe-content {
  padding: 32px 48px 64px;
  flex: 1;
}

/* ══════════════════════════════════════════════
   5. 카드
══════════════════════════════════════════════ */
.hmm-fe-card {
  background: var(--fe-card);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color .2s;
}
.hmm-fe-card:hover { border-color: var(--fe-border2); }

.hmm-fe-card--danger {
  border-color: rgba(248,113,113,.3);
}
.hmm-fe-card--danger:hover {
  border-color: rgba(248,113,113,.5);
}

.hmm-fe-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--fe-border);
  gap: 10px;
}
.hmm-fe-card-hd--danger {
  background: rgba(248,113,113,.06);
  border-bottom-color: rgba(248,113,113,.2);
}
.hmm-fe-card-title {
  font-family: var(--fe-serif);
  font-size: 14px;
  font-weight: 700;
  color: #e8f2ff;
}
.hmm-fe-card-bd {
  padding: 20px;
}

/* 2컬럼 그리드 */
.hmm-fe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .hmm-fe-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   6. 통계 카드
══════════════════════════════════════════════ */
.hmm-fe-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.hmm-fe-stat-card {
  background: var(--fe-card);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-lg);
  padding: 18px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--fe-text) !important;
}
.hmm-fe-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.hmm-fe-stat-card:hover { transform: translateY(-2px); box-shadow: var(--fe-shadow); }
.hmm-fe-stat-card--link { cursor: pointer; }

.hmm-fe-card--blue::before   { background: var(--fe-accent); }
.hmm-fe-card--green::before  { background: var(--fe-green); }
.hmm-fe-card--purple::before { background: var(--fe-purple); }
.hmm-fe-card--gold::before   { background: var(--fe-gold); }
.hmm-fe-card--red::before    { background: var(--fe-red); }

.hmm-fe-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hmm-fe-stat-label {
  font-size: 11px;
  color: var(--fe-text3);
  font-weight: 500;
  letter-spacing: .03em;
}
.hmm-fe-stat-icon {
  font-size: 16px;
  color: var(--fe-border2);
}
.hmm-fe-stat-value {
  font-family: var(--fe-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.hmm-fe-stat-sub {
  font-size: 11px;
  color: var(--fe-text3);
}

/* ══════════════════════════════════════════════
   7. 테이블
══════════════════════════════════════════════ */
.hmm-fe-table-wrap {
  overflow-x: auto;
}
.hmm-fe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hmm-fe-table th {
  background: var(--fe-bg3);
  color: var(--fe-text2);
  font-family: var(--fe-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--fe-border);
  white-space: nowrap;
}
.hmm-fe-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--fe-border);
  color: var(--fe-text);
  vertical-align: middle;
}
.hmm-fe-table tr:last-child td { border-bottom: none; }
.hmm-fe-table tbody tr:hover td { background: rgba(59,158,255,.03); }
.hmm-fe-table .hmm-fe-empty {
  text-align: center;
  padding: 32px;
  color: var(--fe-text3);
  font-size: 13px;
}

/* 회원 셀 */
.hmm-fe-member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hmm-fe-av-sm {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: 1px solid var(--fe-border2) !important;
  flex-shrink: 0;
}
.hmm-fe-member-name { font-weight: 500; font-size: 13px; color: var(--fe-text); }
.hmm-fe-member-login { font-size: 11px; color: var(--fe-text3); }
.hmm-fe-group-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}
.hmm-fe-group-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
  margin: 2px 2px 2px 0;
}

/* ══════════════════════════════════════════════
   8. 배지
══════════════════════════════════════════════ */
.hmm-fe-badge {
  display: inline-block;
  font-family: var(--fe-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}
.hmm-fe-badge--blue   { background: rgba(59,158,255,.12);  color: var(--fe-accent);  border-color: rgba(59,158,255,.25); }
.hmm-fe-badge--green  { background: rgba(52,211,153,.12);  color: var(--fe-green);   border-color: rgba(52,211,153,.25); }
.hmm-fe-badge--purple { background: rgba(167,139,250,.12); color: var(--fe-purple);  border-color: rgba(167,139,250,.25); }
.hmm-fe-badge--gold   { background: rgba(245,166,35,.12);  color: var(--fe-gold);    border-color: rgba(245,166,35,.25); }
.hmm-fe-badge--red    { background: rgba(248,113,113,.12); color: var(--fe-red);     border-color: rgba(248,113,113,.25); }

/* ══════════════════════════════════════════════
   9. 폼 요소
══════════════════════════════════════════════ */
.hmm-fe-input,
.hmm-fe-select,
.hmm-fe-wrap input[type="text"],
.hmm-fe-wrap input[type="number"],
.hmm-fe-wrap input[type="date"],
.hmm-fe-wrap input[type="email"],
.hmm-fe-wrap select,
.hmm-fe-wrap textarea {
  background: var(--fe-bg3) !important;
  border: 1px solid var(--fe-border2) !important;
  border-radius: var(--fe-radius) !important;
  color: var(--fe-text) !important;
  font-family: var(--fe-sans) !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
  transition: border-color .15s, box-shadow .15s !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
}
.hmm-fe-input:focus,
.hmm-fe-select:focus,
.hmm-fe-wrap input:focus,
.hmm-fe-wrap select:focus,
.hmm-fe-wrap textarea:focus {
  border-color: var(--fe-accent) !important;
  box-shadow: 0 0 0 3px rgba(59,158,255,.12) !important;
}
.hmm-fe-wrap select option { background: var(--fe-bg3); }
.hmm-fe-wrap textarea { resize: vertical; }

.hmm-fe-field {
  margin-bottom: 16px;
}
.hmm-fe-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fe-text2);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.hmm-fe-field-desc {
  font-size: 11px;
  color: var(--fe-text3);
  margin-top: 5px;
  line-height: 1.5;
}

/* 토글 스위치 */
.hmm-fe-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.hmm-fe-toggle-input { display: none; }
.hmm-fe-toggle {
  position: relative;
  width: 38px;
  height: 20px;
  background: var(--fe-bg3);
  border: 1px solid var(--fe-border2);
  border-radius: 20px;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.hmm-fe-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fe-text3);
  transition: transform .2s, background .2s;
}
.hmm-fe-toggle-input:checked + .hmm-fe-toggle {
  background: rgba(59,158,255,.2);
  border-color: var(--fe-accent);
}
.hmm-fe-toggle-input:checked + .hmm-fe-toggle::after {
  transform: translateX(18px);
  background: var(--fe-accent);
}
.hmm-fe-toggle--danger { }
.hmm-fe-toggle-input:checked + .hmm-fe-toggle--danger {
  background: rgba(248,113,113,.2);
  border-color: var(--fe-red);
}
.hmm-fe-toggle-input:checked + .hmm-fe-toggle--danger::after { background: var(--fe-red); }
.hmm-fe-toggle-text { font-size: 13px; color: var(--fe-text); }

/* ══════════════════════════════════════════════
   10. 버튼
══════════════════════════════════════════════ */
.hmm-fe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--fe-radius);
  font-family: var(--fe-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.hmm-fe-btn--primary {
  background: var(--fe-accent);
  color: #fff !important;
  border-color: var(--fe-accent);
}
.hmm-fe-btn--primary:hover {
  background: var(--fe-accent2);
  border-color: var(--fe-accent2);
  color: #fff !important;
}
.hmm-fe-btn--ghost {
  background: transparent;
  color: var(--fe-text2) !important;
  border-color: var(--fe-border2);
}
.hmm-fe-btn--ghost:hover {
  background: rgba(255,255,255,.04);
  color: var(--fe-text) !important;
  border-color: var(--fe-text3);
}
.hmm-fe-btn--lg {
  padding: 10px 24px;
  font-size: 14px;
}
.hmm-fe-btn--xs {
  padding: 4px 10px;
  font-size: 11px;
}
.hmm-fe-btn:disabled,
.hmm-fe-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════════
   11. 콜아웃 박스 (joyn 동일)
══════════════════════════════════════════════ */
.hmm-fe-callout {
  border-radius: var(--fe-radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid;
}
.hmm-fe-callout-icon {
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.hmm-fe-callout > div { flex: 1; }
.hmm-fe-callout > div strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}
.hmm-fe-callout > div p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--fe-text2);
}
.hmm-fe-callout--info    { background: rgba(59,158,255,.07);  border-color: rgba(59,158,255,.2);  }
.hmm-fe-callout--info    strong { color: var(--fe-accent); }
.hmm-fe-callout--warning { background: rgba(245,166,35,.07);  border-color: rgba(245,166,35,.2);  }
.hmm-fe-callout--warning strong { color: var(--fe-gold); }
.hmm-fe-callout--tip     { background: rgba(52,211,153,.07);  border-color: rgba(52,211,153,.2);  }
.hmm-fe-callout--tip     strong { color: var(--fe-green); }
.hmm-fe-callout--danger  { background: rgba(248,113,113,.07); border-color: rgba(248,113,113,.2); }
.hmm-fe-callout--danger  strong { color: var(--fe-red); }

/* ══════════════════════════════════════════════
   12. 필터 바 / 툴바
══════════════════════════════════════════════ */
.hmm-fe-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.hmm-fe-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════
   13. 페이지네이션
══════════════════════════════════════════════ */
.hmm-fe-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  border-top: 1px solid var(--fe-border);
  flex-wrap: wrap;
}
.hmm-fe-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--fe-border2);
  border-radius: 6px;
  font-family: var(--fe-mono);
  font-size: 12px;
  color: var(--fe-text2);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hmm-fe-page-btn:hover { background: rgba(59,158,255,.08); color: var(--fe-accent); border-color: rgba(59,158,255,.3); }
.hmm-fe-page-btn.is-active { background: var(--fe-accent); color: #fff; border-color: var(--fe-accent); }
.hmm-fe-page-more { font-family: var(--fe-mono); font-size: 12px; color: var(--fe-text3); }

/* ══════════════════════════════════════════════
   14. 그룹 카드 그리드
══════════════════════════════════════════════ */
.hmm-fe-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.hmm-fe-group-card {
  background: var(--fe-card);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.hmm-fe-group-card:hover { border-color: var(--fe-border2); transform: translateY(-1px); }
.hmm-fe-group-card-bar { height: 3px; }
.hmm-fe-group-card-body { padding: 16px; flex: 1; }
.hmm-fe-group-card-name {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--fe-text);
  margin-bottom: 6px;
}
.hmm-fe-group-card-desc {
  font-size: 12px;
  color: var(--fe-text3);
  margin-bottom: 10px;
  line-height: 1.5;
}
.hmm-fe-group-card-meta {
  display: flex;
  gap: 12px;
  font-family: var(--fe-mono);
  font-size: 11px;
  color: var(--fe-text2);
}
.hmm-fe-group-card-actions {
  padding: 10px 16px;
  border-top: 1px solid var(--fe-border);
  background: var(--fe-bg3);
  display: flex;
  gap: 6px;
}

/* 빈 상태 */
.hmm-fe-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
  gap: 12px;
  color: var(--fe-text3);
}
.hmm-fe-empty-icon { font-size: 2.5rem; opacity: .3; }

/* ══════════════════════════════════════════════
   15. 설정 그리드
══════════════════════════════════════════════ */
.hmm-fe-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1000px) {
  .hmm-fe-settings-grid { grid-template-columns: 1fr; }
}
.hmm-fe-settings-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

/* 연동 그리드 (설정 페이지) */
.hmm-fe-intg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 10px;
}
.hmm-fe-intg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fe-text2);
}
.hmm-fe-intg-status { font-size: 10px; }
.hmm-fe-intg-status--on  { color: var(--fe-green); }
.hmm-fe-intg-status--off { color: var(--fe-text3); }
.hmm-fe-intg-name { font-weight: 500; color: var(--fe-text); font-size: 13px; }
.hmm-fe-intg-desc { font-size: 11px; color: var(--fe-text3); }

/* ══════════════════════════════════════════════
   16. 모달
══════════════════════════════════════════════ */
.hmm-fe-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.hmm-fe-modal {
  background: var(--fe-bg2);
  border: 1px solid var(--fe-border2);
  border-radius: var(--fe-radius-lg);
  width: 480px;
  max-width: 95vw;
  box-shadow: var(--fe-shadow-lg);
}
.hmm-fe-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--fe-border);
  font-family: var(--fe-serif);
  font-size: 15px;
  font-weight: 700;
  color: #e8f2ff;
}
.hmm-fe-modal-close {
  background: none;
  border: none;
  color: var(--fe-text3);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s;
}
.hmm-fe-modal-close:hover { color: var(--fe-text); }
.hmm-fe-modal-bd { padding: 20px; }
.hmm-fe-modal-ft {
  padding: 14px 20px;
  border-top: 1px solid var(--fe-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--fe-bg3);
}

/* ══════════════════════════════════════════════
   17. 업로드 존
══════════════════════════════════════════════ */
.hmm-fe-upload-zone {
  border: 2px dashed var(--fe-border2);
  border-radius: var(--fe-radius-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.hmm-fe-upload-zone:hover,
.hmm-fe-upload-zone.is-drag {
  border-color: var(--fe-accent);
  background: rgba(59,158,255,.04);
}
.hmm-fe-upload-icon { font-size: 2rem; color: var(--fe-text3); margin-bottom: 10px; }
.hmm-fe-upload-label { font-size: 14px; color: var(--fe-text2); margin-bottom: 4px; }
.hmm-fe-upload-sub { font-size: 12px; color: var(--fe-text3); }

/* 진행 바 */
.hmm-fe-progress-bar {
  background: var(--fe-bg3);
  border-radius: 20px;
  height: 6px;
  overflow: hidden;
}
.hmm-fe-progress-fill {
  height: 100%;
  background: var(--fe-accent);
  border-radius: 20px;
  transition: width .4s ease;
}

/* ══════════════════════════════════════════════
   18. 코드 & 타이포
══════════════════════════════════════════════ */
.hmm-fe-mono  { font-family: var(--fe-mono) !important; }
.hmm-fe-text-sm  { font-size: 12px !important; }
.hmm-fe-text-dim { color: var(--fe-text-dim) !important; }
.hmm-fe-text2    { color: var(--fe-text2) !important; }
.hmm-fe-text3    { color: var(--fe-text3) !important; }
.hmm-fe-code {
  font-family: var(--fe-mono);
  font-size: 12px;
  background: rgba(59,158,255,.1);
  color: var(--fe-accent);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(59,158,255,.2);
}
.hmm-fe-link-sm {
  font-family: var(--fe-mono);
  font-size: 11px;
  color: var(--fe-accent);
  text-decoration: none;
}
.hmm-fe-link-sm:hover { color: var(--fe-text); }

.hmm-fe-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hmm-fe-list li {
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  font-size: 13px;
  color: var(--fe-text2);
  border-bottom: 1px solid var(--fe-border);
}
.hmm-fe-list li:last-child { border-bottom: none; }
.hmm-fe-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--fe-accent);
}

/* ══════════════════════════════════════════════
   19. 반응형
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hmm-fe-wrap {
    grid-template-columns: 1fr;
  }
  .hmm-fe-sidebar {
    position: static;
    height: auto;
  }
  .hmm-fe-hero { padding: 28px 20px 22px; }
  .hmm-fe-content { padding: 20px; }
  .hmm-fe-hero-title { font-size: 1.5rem !important; }
}

/* ══════════════════════════════════════════════
   20. WordPress 관리자 바 대응
══════════════════════════════════════════════ */
.admin-bar .hmm-fe-sidebar { top: 32px; height: calc(100vh - 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .hmm-fe-sidebar { top: 46px; height: calc(100vh - 46px); }
}

/* ══════════════════════════════════════════════
   21. 애니메이션
══════════════════════════════════════════════ */
@keyframes hmm-fe-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hmm-fe-content {
  animation: hmm-fe-fadein .3s ease both;
}
.hmm-fe-stat-card {
  animation: hmm-fe-fadein .35s ease both;
}
.hmm-fe-stat-card:nth-child(2) { animation-delay: .05s; }
.hmm-fe-stat-card:nth-child(3) { animation-delay: .10s; }
.hmm-fe-stat-card:nth-child(4) { animation-delay: .15s; }
.hmm-fe-stat-card:nth-child(5) { animation-delay: .20s; }
.hmm-fe-stat-card:nth-child(6) { animation-delay: .25s; }
