:root {
      --color-primary: #fac314; /* 에듀올랩 로고 옐로우 */
      --color-primary-light: #fff4cc;
      --color-primary-ink: #8a6200; /* 흰 배경 위 글자. 로고 옐로우와 같은 색, 대비 확보 */
      --color-secondary: #215E80;
      --color-white: #FFFFFF;
      --color-black: #222222;
      --color-gray: #666666;
      --color-light-gray: #F5F5F5;

      /* [신규] 콘텐츠 영역 최대 폭. 기존에는 1100px로 고정되어 있어
         데스크탑 큰 화면에서는 양옆 여백이 과도하게 비어 보이는 문제가
         있었습니다. 여러 곳(.s, .admin-stats, .admin-section)에 흩어져
         있던 동일한 값을 변수 하나로 통일하여, 이후 폭을 조정할 때
         한 곳만 고치면 전체에 일관되게 반영되도록 하였습니다. */
      --content-max-width: 1400px;

      /* 밍글 상태 배지용 컬러 */
      --status-new-bg: #fff4cc;
      --status-new-color: #8a6200;
      --status-read-bg: #e0f0ff;
      --status-read-color: #0066cc;
      --status-active-bg: #e0ffe0;
      --status-active-color: #00aa00;
      
      --font-primary: 'Noto Sans KR', sans-serif;
      --font-mono: 'Outfit', sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: var(--font-primary);
      color: var(--color-black);
      background-color: #FFFFFF; /* 흰색 바탕 */
      margin: 0;
      padding: 0;
      line-height: 1.6;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* 레이아웃 구조 (탑 네비게이션) */
    .admin-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 70px;
      background: #FFFFFF;
      border-bottom: 2px solid #222222;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 30px;
      z-index: 2000;
    }

    .admin-header__left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .admin-header__logo {
      font-family: 'Outfit', sans-serif;
      font-size: 24px;
      font-weight: 800;
      color: var(--color-primary-ink);
      text-decoration: none;
    }

    .admin-header__badge {
      background: #222222;
      color: #FFFFFF;
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 700;
      font-family: var(--font-mono);
      text-transform: uppercase;
    }

    .admin-header__nav {
      display: flex;
      align-items: stretch;
      align-self: stretch;
      gap: 4px;
      flex: 1;
      justify-content: center;
      min-width: 0;
      height: 100%;
    }

    .admin-header__nav-group {
      position: relative;
      display: flex;
      align-items: center;
    }

    .admin-header__nav-item {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 11px;
      color: #666666;
      text-decoration: none;
      font-weight: 700;
      font-size: 12.5px;
      border-radius: 6px;
      border: 1px solid transparent;
      transition: all 0.3s;
      cursor: pointer;
      white-space: nowrap;
    }

    .admin-header__nav-item:hover {
      background: #f5f5f5;
      color: #222222;
    }

    .admin-header__nav-item--active {
      background: var(--color-primary);
      color: #222222 !important;
    }

    .admin-header__nav-item--active:hover {
      background: #e6b000;
      color: #222222 !important;
    }

    .admin-header__nav-item--master {
      color: #6b4f00;
      background: #fff7d6;
      border-color: #ecd27a;
    }

    .admin-header__nav-item--master:hover {
      background: #ffe9a8;
      color: #6b4f00;
    }

    .admin-header__nav-item--master.admin-header__nav-item--active,
    .admin-header__nav-item--master.admin-header__nav-item--active:hover {
      background: #f5d76e;
      color: #6b4f00 !important;
    }

    .admin-header__nav-item--system {
      color: #4f46e5;
      background: #eef2ff;
      border-color: #c7d2fe;
    }

    .admin-header__nav-item--system:hover {
      background: #e0e7ff;
      color: #3730a3;
    }

    .admin-header__nav-item--system.admin-header__nav-item--active,
    .admin-header__nav-item--system.admin-header__nav-item--active:hover {
      background: #c7d2fe;
      color: #312e81 !important;
    }

    .admin-header__caret {
      font-size: 10px;
      opacity: .7;
    }

    .admin-header__dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 196px;
      padding-top: 0;
      z-index: 1200;
    }

    .admin-header__dropdown-panel {
      background: #fff;
      border: 2px solid #222;
      border-radius: 10px;
      box-shadow: 4px 4px 0 rgba(0,0,0,.12);
      padding: 6px;
    }

    .admin-header__nav-group:hover .admin-header__dropdown,
    .admin-header__nav-group:focus-within .admin-header__dropdown,
    .admin-header__nav-group.is-open .admin-header__dropdown {
      display: block;
    }

    .admin-header__dropdown a {
      display: block;
      padding: 8px 10px;
      border-radius: 6px;
      color: #444;
      text-decoration: none;
      font-size: 12px;
      font-weight: 700;
    }

    .admin-header__dropdown a:hover,
    .admin-header__dropdown a.is-active {
      background: #fff4cc;
      color: #8a6200;
    }

    .admin-header__logout {
      padding: 10px 20px;
      background: none;
      border: 2px solid #dddddd;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      color: #666666;
      cursor: pointer;
      transition: all 0.3s;
    }

    .admin-header__logout:hover {
      border-color: var(--color-primary);
      color: var(--color-primary-ink);
    }

    .admin-main {
      margin-top: 70px;
      flex: 1 0 auto;
      width: 100%;
      padding: 40px 0;
    }

    .admin-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 30px;
    }

    /* 메인 콘텐츠 바디 */
    .content-body {
      padding: 0;
    }

    /* 통계 카드 (탑 네비게이션용) */
    .admin-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 20px;
      margin-bottom: 30px;
      max-width: var(--content-max-width);
      margin-left: auto;
      margin-right: auto;
    }

    .admin-stat-card {
      background: #FFFFFF;
      border: 2px solid #222222;
      border-radius: 12px;
      padding: 20px 24px;
      display: flex;
      align-items: center;
      gap: 20px;
      box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .admin-stat-card:hover {
      transform: translateY(-2px);
      box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
    }

    .admin-stat-card__icon {
      width: 54px;
      height: 54px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #FFFFFF;
      font-size: 22px;
      border: 2px solid #222222;
    }

    .admin-stat-card__label {
      font-size: 12.5px;
      font-weight: 700;
      color: #666666;
      margin-bottom: 4px;
    }

    .admin-stat-card__value {
      font-size: 28px;
      font-weight: 800;
      color: #222222;
      font-family: var(--font-mono);
      line-height: 1.1;
    }

    /* 관리자 섹션 */
    .admin-section {
      max-width: var(--content-max-width);
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 30px;
    }

    .admin-section__header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .admin-section__link {
      font-size: 13px;
      color: var(--color-primary-ink);
      text-decoration: none;
      font-weight: 700;
      transition: color 0.2s;
    }

    .admin-section__link:hover {
      color: #8a6200;
      text-decoration: underline;
    }

    /* 페이지 전환 뷰 */
    .page-view {
      display: none;
    }

    .page-view.active {
      display: block;
    }

    /* 밍글 손그림풍 대단위 박스 */
    .s {
      background: var(--color-white);
      border: 2px solid #222222;
      border-radius: 12px;
      position: relative;
      box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
      padding: 24px 30px;
      margin-bottom: 30px;
      max-width: var(--content-max-width);
      margin-left: auto;
      margin-right: auto;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .s:hover {
      transform: translateY(-2px);
      box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
    }

    /* 밍글 관리자 뱃지 스타일의 스토리보드 ID */
    .h {
      display: inline-block;
      background: #222222;
      color: #FFFFFF;
      padding: 4px 12px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      font-family: var(--font-mono);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin: 0 0 10px;
    }

    .t {
      font-size: 20px;
      font-weight: 700;
      margin: 0 0 6px;
      color: #222;
    }

    .st {
      font-size: 13px;
      color: var(--color-gray);
      margin: 0 0 20px;
    }

    .sl {
      font-size: 13px;
      color: #222222;
      margin: 24px 0 10px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 6px;
      letter-spacing: 0.02em;
    }

    /* 통계 KPI 카드 그리드 */
    .k, .kpi {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 20px;
    }

    /* 입체형 스탯 카드 */
    .kc {
      background: var(--color-white);
      border: 2px solid #222222;
      border-radius: 12px;
      padding: 16px 20px;
      box-shadow: 3px 3px 0 rgba(0,0,0,0.08);
      display: flex;
      flex-direction: column;
      justify-content: center;
      transition: all 0.2s;
    }

    .kc:nth-child(1) { background: #ffe0e8; } /* 핑크 틴트 */
    .kc:nth-child(2) { background: #e0f0ff; } /* 블루 틴트 */
    .kc:nth-child(3) { background: #e0ffe0; } /* 그린 틴트 */
    .kc:nth-child(4) { background: #fffbe8; } /* 옐로우 틴트 */
    .kc:nth-child(5) { background: #FCEBEB; } /* 레드 틴트 */

    .kl {
      font-size: 12px;
      color: #555555;
      margin: 0 0 6px;
      font-weight: 600;
    }

    .kv {
      font-size: 26px;
      font-weight: 700;
      margin: 0;
      color: #222222;
      line-height: 1.1;
      display: flex;
      align-items: baseline;
    }

    .kvu {
      font-size: 14px;
      color: #555555;
      margin-left: 3px;
      font-weight: 500;
    }

    /* 밍글 관리자 테이블 */
    .tb {
      width: 100%;
      border-collapse: collapse;
      font-size: 12.5px;
      margin: 10px 0;
      background: #FFFFFF;
      border: 2px solid #222222;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
      table-layout: fixed;
    }

    .tb th, .tb td {
      padding: 12px 14px;
      text-align: left;
      border-bottom: 1px solid #EEEEEE;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .tb th {
      background: #F9F9F9;
      font-weight: 600;
      color: #555555;
      border-bottom: 2px solid #222222;
      font-size: 12px;
    }

    .tb tbody tr {
      cursor: pointer;
    }

    .tb tbody tr:hover {
      background: #FAF9F3;
    }

    /* 진행률 바 */
    .br {
      height: 12px;
      background: #EEEEEE;
      border: 2px solid #222222;
      border-radius: 6px;
      overflow: hidden;
      margin-bottom: 4px;
    }

    .br > i {
      display: block;
      height: 100%;
      background: var(--color-primary);
      border-radius: 4px;
    }

    .brw > i { background: #EF9F27; }
    .brd > i { background: #FF4444; }
    .brg > i { background: #10B981; }

    /* 밍글 서브 인포 카드 (DB 명세) */
    .db {
      margin-top: 24px;
      background: #FAF8ED;
      border: 2px solid #222222;
      border-radius: 8px;
      padding: 12px 16px;
      border-left: 6px solid var(--color-primary);
      box-shadow: 2px 2px 0 rgba(0,0,0,0.06);
    }

    .dbl {
      font-size: 11px;
      font-weight: 700;
      color: #222222;
      margin: 0 0 6px;
      letter-spacing: 0.04em;
    }

    .dbc {
      font-size: 12px;
      color: #555555;
      line-height: 1.6;
      margin: 0;
    }

    /* 밍글 프리미엄 배지 스타일 */
    .tag {
      display: inline-block;
      padding: 2px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      background: #EEEEEE;
      color: #444444;
      border: 1px solid #222222;
    }

    .tg-ok { background: var(--status-active-bg); color: var(--status-active-color); }
    .tg-w { background: #fffbe8; color: #b7791f; }
    .tg-d { background: #FCEBEB; color: #FF4444; }
    .tg-i { background: var(--status-read-bg); color: var(--status-read-color); }
    .tg-g { background: #F1EFE8; color: #444441; }
    .tg-p { background: var(--color-primary-light); color: var(--color-primary-ink); }

    /* 하위 위젯 3열 그리드 */
    .wd3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 16px;
      margin-bottom: 16px;
    }

    .wc {
      background: #FFFFFF;
      border: 2px solid #222222;
      border-radius: 12px;
      padding: 16px 18px;
      box-shadow: 3px 3px 0 rgba(0,0,0,0.08);
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    }

    .wc:hover {
      transform: translateY(-2px);
      box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
      background-color: #FAF9F3;
    }

    .wct {
      font-size: 12.5px;
      color: var(--color-primary-ink);
      margin: 0 0 6px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .wcv {
      font-size: 14px;
      margin: 0;
      color: #222222;
      font-weight: 600;
    }

    /* 기타 2열 및 리스트 요소 */
    .cl {
      display: grid;
      grid-template-columns: 60px 1fr 100px;
      gap: 8px;
      font-size: 12.5px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px dashed #DDDDDD;
    }

    .cl:last-child {
      border-bottom: none;
    }

    .clt { font-weight: 700; color: var(--color-primary-ink); }
    .cls { color: #666666; font-size: 11px; }
    .cla { text-align: right; font-weight: 600; color: #222222; }

    .bar2 {
      display: flex;
      height: 12px;
      border-radius: 6px;
      overflow: hidden;
      background: #EEEEEE;
      margin: 8px 0;
      border: 1.5px solid #222222;
    }

    .bar2 i { display: block; height: 100%; }

    .lg {
      display: flex;
      gap: 12px;
      font-size: 11.5px;
      color: #666666;
      margin-bottom: 8px;
    }

    .lg b {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-right: 4px;
      border: 1px solid #222222;
      vertical-align: middle;
    }

    .tc {
      display: grid;
      grid-template-columns: 80px 1fr;
      gap: 12px;
      padding: 12px;
      background: #FFFFFF;
      border: 2px solid #222222;
      border-radius: 12px;
      margin-bottom: 8px;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.06);
      align-items: center;
    }

    .tct {
      font-size: 14px;
      font-weight: 700;
      color: var(--color-primary-ink);
      text-align: center;
      line-height: 1.3;
    }

    .tcb {
      font-size: 12px;
      color: #666666;
      margin: 4px 0 0;
      line-height: 1.5;
    }

    .tcb b { color: #222222; font-weight: 600; }

    .row3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 16px;
    }

    .sec {
      padding: 16px;
      background: #FFFFFF;
      border: 2px solid #222222;
      border-radius: 12px;
      box-shadow: 3px 3px 0 rgba(0,0,0,0.08);
    }

    .sect {
      font-size: 13.5px;
      font-weight: 700;
      margin: 0 0 12px;
      color: #222222;
      display: flex;
      align-items: center;
      gap: 6px;
      border-bottom: 2px solid #222222;
      padding-bottom: 6px;
    }

    .secl {
      font-size: 12px;
      color: #555555;
      display: flex;
      justify-content: space-between;
      padding: 6px 0;
      border-bottom: 1px solid #EEEEEE;
    }

    .secl:last-child {
      border-bottom: none;
    }

    .secl b { font-weight: 700; color: #222222; }

    .star { color: #EF9F27; font-size: 13px; letter-spacing: -1px; }
    .starm { color: #D3D1C7; font-size: 13px; letter-spacing: -1px; }

    /* 필터 박스 */
    .fil {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 12px;
      align-items: center;
    }

    .fil input[type=text], .fil select {
      padding: 8px 12px;
      font-size: 12.5px;
      border: 2px solid #222222;
      background: var(--color-white);
      border-radius: 8px;
      color: var(--color-black);
      outline: none;
      transition: all 0.2s;
    }

    .fil select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      background-size: 10px;
      padding-right: 28px;
      appearance: none;
      cursor: pointer;
    }

    .fil input[type=text]:focus, .fil select:focus {
      border-color: var(--color-primary);
      box-shadow: 2px 2px 0 rgba(250, 195, 20, 0.35);
    }

    .fil input[type=text] {
      flex: 1;
      min-width: 160px;
    }

    /* 버튼 스타일 */
    .btn {
      padding: 8px 16px;
      font-size: 12.5px;
      border: 2px solid #222222;
      background: var(--color-white);
      border-radius: 20px; /* 둥글둥글한 알약 형태 */
      cursor: pointer;
      color: var(--color-black);
      font-weight: 600;
      transition: all 0.2s;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .btn:hover {
      transform: translateY(-1px);
      box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
      background-color: #FAF9F3;
    }

    .btn-p {
      background: #FFD25F; /* 크레용스쿨 시그니처 옐로우 */
      border-color: #222222;
      color: #222222;
    }

    .btn-p:hover {
      background: #FFCA3A;
    }

    /* 탭 메뉴 */
    .tabs {
      display: flex;
      gap: 6px;
      margin-bottom: 20px;
      border-bottom: 2px solid #222222;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .tab {
      padding: 10px 18px;
      font-size: 13px;
      color: #555555;
      font-weight: 600;
      border: 2px solid #222222;
      border-bottom: none;
      border-radius: 8px 8px 0 0;
      background: #FAF8ED;
      cursor: pointer;
      margin-bottom: -2px;
      white-space: nowrap;
      transition: all 0.2s;
    }

    .tab:hover {
      background: #FFFFFF;
      color: #222222;
    }

    .tab.act {
      color: #222222;
      background: var(--color-primary);
      border-bottom: 2px solid var(--color-primary);
    }

    /* 폼 영역 */
    .fr {
      margin-bottom: 16px;
    }

    .fl {
      font-size: 12px;
      color: #222222;
      margin: 0 0 6px;
      display: block;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .fl b {
      color: #FF4444;
      font-weight: 700;
      margin-left: 2px;
    }

    .fi {
      width: 100%;
      padding: 10px 14px;
      font-size: 13px;
      border: 2px solid #222222;
      background: #FFFFFF;
      border-radius: 8px;
      color: #222222;
      box-sizing: border-box;
      display: block;
      min-height: 42px;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
    }

    /* 실제 입력 폼 필드 */
    .fi-input {
      width: 100%;
      padding: 10px 14px;
      font-size: 13px;
      border: 2px solid #222222;
      background: #FFFFFF;
      border-radius: 8px;
      color: #222222;
      outline: none;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
      transition: border-color 0.2s;
    }

    .fi-input:focus {
      border-color: var(--color-primary);
    }

    .ft {
      min-height: 80px;
      line-height: 1.6;
      white-space: pre-wrap;
    }

    .fg {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
    }

    .fg3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 16px;
    }

    .req {
      color: #FF4444;
      font-weight: 700;
    }

    /* 칩 */
    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .chip {
      padding: 6px 14px;
      font-size: 12px;
      background: #FFFFFF;
      color: #555555;
      font-weight: 600;
      border-radius: 20px;
      border: 2px solid #222222;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.06);
      cursor: pointer;
      transition: all 0.2s;
    }

    .chip:hover {
      background: #FAF9F3;
      color: #222222;
    }

    .chip.on {
      background: #e0f0ff;
      color: #0066cc;
      border-color: #222222;
      box-shadow: 2px 2px 0 rgba(0,102,204,0.15);
    }

    .chip.cod {
      background: #fff4cc;
      color: #8a6200;
      border-color: #222222;
      box-shadow: 2px 2px 0 rgba(250, 195, 20, 0.35);
    }

    /* 강사 전용 컴포넌트 */
    .av {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: #FAF8ED;
      border: 2px solid #222222;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      font-weight: 700;
      color: var(--color-primary-ink);
      flex-shrink: 0;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.08);
    }

    .prof {
      display: flex;
      gap: 20px;
      align-items: center;
      margin-bottom: 20px;
      padding: 20px;
      background: #FFFFFF;
      border: 2px solid #222222;
      border-radius: 12px;
      box-shadow: 3px 3px 0 rgba(0,0,0,0.06);
    }

    .profi {
      flex: 1;
      font-size: 13px;
    }

    .profi h3 {
      font-size: 18px;
      font-weight: 700;
      margin: 0 0 6px;
      color: #222222;
    }

    .profi p {
      margin: 4px 0;
      color: #555555;
    }

    .profi p b {
      color: #222222;
      font-weight: 700;
      margin-right: 4px;
    }

    .up-doc {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px 20px;
      border: 2px solid #222222;
      border-radius: 10px;
      margin-bottom: 12px;
      background: #FFFFFF;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
      transition: all 0.2s;
    }

    .up-doc:hover {
      transform: translateY(-1px);
      box-shadow: 3px 3px 0 rgba(0,0,0,0.08);
    }

    .up-doc i.di {
      font-size: 26px;
      color: var(--color-primary-ink);
    }

    .up-doc .info {
      flex: 1;
      font-size: 13px;
    }

    .up-doc .info b {
      font-weight: 700;
      display: block;
      margin-bottom: 4px;
      color: #222222;
    }

    .up-doc .info span {
      color: #666666;
      font-size: 11.5px;
    }

    .up-doc.miss {
      border-color: #FF4444;
      background: #FCEBEB;
      box-shadow: 2px 2px 0 rgba(255, 68, 68, 0.1);
    }

    .up-doc.miss i.di {
      color: #FF4444;
    }

    .up-doc.miss .info b {
      color: #C02C2C;
    }

    .sec-note {
      background: #FFF9E6;
      border: 2px solid #222222;
      border-left: 6px solid #FFC107;
      border-radius: 8px;
      padding: 12px 18px;
      font-size: 12px;
      color: #664D03;
      margin-bottom: 16px;
      line-height: 1.6;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
    }

    /* 타임라인 */
    .tl {
      position: relative;
      padding-left: 24px;
      margin-bottom: 16px;
    }

    .tl::before {
      content: "";
      position: absolute;
      left: 6px;
      top: 6px;
      bottom: -22px;
      width: 2px;
      background: #222222;
    }

    .tl:last-of-type::before {
      display: none;
    }

    .tl::after {
      content: "";
      position: absolute;
      left: 2px;
      top: 5px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--color-primary);
      border: 2px solid #222222;
      box-shadow: 1px 1px 0 rgba(0,0,0,0.1);
    }

    .tl-y {
      font-size: 11.5px;
      color: #666666;
      font-weight: 700;
      font-family: var(--font-mono);
      margin: 0 0 4px;
    }

    .tl-t {
      font-size: 14px;
      font-weight: 700;
      color: #222222;
      margin: 0 0 4px;
    }

    .tl-d {
      font-size: 12.5px;
      color: #555555;
      margin: 0;
      line-height: 1.5;
    }

    /* 스케줄 매트릭스 (파스텔 톤) */
    .mat {
      display: grid;
      grid-template-columns: 60px repeat(7, minmax(0, 1fr));
      gap: 4px;
      font-size: 11px;
      text-align: center;
      margin: 12px 0;
      background: #E8E4F3;
      border: 2px solid #C9BFE8;
      border-radius: 8px;
      padding: 4px;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.04);
      overflow: hidden;
      width: 100%;
      box-sizing: border-box;
      max-width: 100%;
    }

    .mat .h {
      padding: 8px 4px;
      background: #FAF8ED;
      font-weight: 700;
      color: #7A6FA3;
      margin: 0;
      border-radius: 4px;
      font-size: 11px;
      font-family: inherit;
      min-width: 0;
      overflow: hidden;
      white-space: nowrap;
    }

    .mat .lab {
      padding: 8px 4px;
      background: #FAF8ED;
      font-weight: 700;
      color: #8B86A8;
      border-radius: 4px;
      font-size: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
      overflow: hidden;
      white-space: nowrap;
    }

    .mat .cell {
      padding: 8px 4px;
      background: #F4F1FA;
      border-radius: 4px;
      color: #B7B0CC;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      user-select: none;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
    }

    .mat .cell:hover {
      background: #ECE8F6;
      color: #7A6FA3;
    }

    .mat .cell.on {
      background: #D7F3E3;
      color: #2F9163;
      font-weight: 700;
    }

    .mat .cell.maybe {
      background: #FDF1D6;
      color: #B8862E;
      font-weight: 700;
    }

    /* [신규] 강의 개설 화면의 강좌/교육장/강사/교구재 검색창 */
    .search-box {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #FFFFFF;
      border: 1.5px solid #E2DCF0;
      border-radius: 8px;
      padding: 8px 12px;
      margin-bottom: 8px;
    }

    .search-box i {
      color: #B7B0CC;
      font-size: 14px;
    }

    .search-input {
      flex: 1;
      border: none;
      outline: none;
      font-size: 13px;
      font-family: inherit;
      color: #333333;
      background: transparent;
    }

    .search-input::placeholder {
      color: #B7B0CC;
    }

    /* [신규] 강좌/교육장/강사/교구재 선택 카드 그리드.
       기존에는 카드가 세로로 한 줄씩 쌓이는 구조라, 데이터가 많아질수록
       스크롤이 끝없이 길어지고 짧은 텍스트도 가로 전체를 차지해 비효율
       적으로 보였습니다. 데이터 양 증가를 고려하여 여러 칸으로 나눠
       배치하는 그리드 구조로 변경합니다. 카드 폭이 220px보다 좁아지면
       자동으로 줄바꿈되어, 화면 크기에 따라 한 줄에 보이는 카드 수가
       자연스럽게 달라집니다. */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 8px;
    }

    .card-grid > div {
      margin-bottom: 0 !important;
    }

    .card-grid .no-result {
      grid-column: 1 / -1;
    }

    .lgnd {
      display: flex;
      gap: 16px;
      font-size: 12px;
      color: #555555;
      margin: 12px 0 0;
      justify-content: center;
      font-weight: 600;
    }

    .lgnd b {
      display: inline-block;
      width: 12px;
      height: 12px;
      border-radius: 3px;
      vertical-align: middle;
      margin-right: 6px;
      border: 1px solid #222222;
    }

    /* 업로드 */
    .up {
      padding: 24px;
      border: 2px dashed #222222;
      border-radius: 8px;
      text-align: center;
      color: #555555;
      font-size: 13px;
      background: #FAF8ED;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.2s;
    }

    .up:hover {
      background: #FFFFFF;
      border-color: var(--color-primary);
      color: var(--color-primary-ink);
    }

    .up i {
      font-size: 28px;
      display: block;
      margin-bottom: 8px;
      color: var(--color-primary-ink);
    }

    /* 리스트 로우 */
    .row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 20px;
      background: #FFFFFF;
      border: 2px solid #222222;
      border-radius: 8px;
      margin-bottom: 10px;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.06);
      transition: all 0.2s;
    }

    .row:hover {
      transform: translateY(-1px);
      box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
      background-color: #FAF9F3;
    }

    .rowm {
      font-size: 13px;
      line-height: 1.5;
    }

    .rowm b {
      font-weight: 700;
      color: #222222;
      font-size: 14px;
    }

    .rowm span {
      color: #666666;
      font-size: 11.5px;
      margin-right: 8px;
    }

    .ses {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 24px;
      padding-top: 16px;
      border-top: 2px dashed #EEEEEE;
    }

    /* 커스텀 알림 토스트 */
    .toast-container {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 10000;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .toast {
      background: #FFFFFF;
      border: 2px solid #222222;
      border-radius: 8px;
      padding: 12px 20px;
      box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
      font-size: 13px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    .toast-success { border-left: 6px solid #10B981; }
    .toast-info { border-left: 6px solid var(--color-primary); }
    .toast-warn { border-left: 6px solid #FFC107; }

    /* 백 버튼 */
    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 700;
      color: #555555;
      cursor: pointer;
      margin-bottom: 16px;
      transition: color 0.2s;
    }

    .back-btn:hover {
      color: var(--color-primary-ink);
    }

    /* --- 교구재 관리 전용 추가 스타일 (Mingle Style) --- */
    .rad {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      margin-bottom: 20px;
    }
    .rc {
      padding: 16px;
      border: 2px solid #222222;
      border-radius: 12px;
      cursor: pointer;
      background: var(--color-white);
      transition: all 0.2s;
      box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    }
    .rc.on {
      border: 2px solid var(--color-primary);
      background: var(--color-primary-light);
      box-shadow: 4px 4px 0 rgba(250, 195, 20, 0.35);
    }
    .rc:hover:not(.on) {
      transform: translateY(-1px);
      box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
    }
    .rci {
      font-size: 26px;
      color: #222222;
      margin-bottom: 8px;
    }
    .rc.on .rci {
      color: var(--color-primary-ink);
    }
    .rcl {
      font-size: 14px;
      font-weight: 700;
      margin: 0 0 6px;
    }
    .rcd {
      font-size: 11.5px;
      color: var(--color-gray);
      margin: 0;
      line-height: 1.5;
    }
    .rc.on .rcd {
      color: #8a6200;
    }
    .opt {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 18px;
      background: var(--color-light-gray);
      border: 2px solid #222222;
      border-radius: 10px;
      margin-bottom: 12px;
    }
    .opt.act {
      background: var(--color-primary-light);
      border-color: var(--color-primary);
    }
    .optl {
      font-size: 13px;
      color: #222222;
    }
    .optl b {
      font-weight: 700;
    }
    .optl span {
      color: var(--color-gray);
      font-size: 11.5px;
      margin-left: 8px;
    }
    .tgl {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 24px;
      background: var(--color-primary);
      border: 2px solid #222222;
      border-radius: 12px;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    .tgl.off {
      background: #B4B2A9;
    }
    .tgl::after {
      content: "";
      position: absolute;
      top: 2px;
      left: 22px;
      width: 16px;
      height: 16px;
      background: #fff;
      border: 2px solid #222222;
      border-radius: 50%;
      transition: left 0.2s;
    }
    .tgl.off::after {
      left: 2px;
    }
    .dtbl {
      background: var(--color-light-gray);
      border: 2px solid #222222;
      padding: 14px 18px;
      border-radius: 10px;
      margin-bottom: 15px;
    }
    .dtbl-h {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
      font-size: 13px;
    }
    .dtbl-h b {
      font-weight: 700;
      font-size: 14px;
    }

    body.is-embed .admin-main {
      margin-top: 0;
      padding: 24px 0 48px;
    }
    body.is-workspace {
      overflow: hidden;
    }
    .workspace {
      position: fixed;
      top: 70px;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      flex-direction: row;
      background: #ececec;
      z-index: 1;
    }
    .workspace-rail {
      width: 188px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      background: #f4f4f4;
      border-right: 2px solid #222;
      min-height: 0;
    }
    .workspace-rail__hd {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 10px 10px 8px;
      border-bottom: 1px solid #ddd;
    }
    .workspace-rail__hd strong {
      font-size: 11px;
      letter-spacing: .04em;
      color: #666;
    }
    .workspace-tabs {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 8px;
      overflow-y: auto;
      flex: 1;
      min-height: 0;
    }
    .workspace-tab {
      display: flex;
      align-items: center;
      gap: 6px;
      width: 100%;
      text-align: left;
      padding: 8px 8px 8px 10px;
      border: 2px solid #222;
      border-radius: 8px;
      background: #fff;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
    }
    .workspace-tab.is-on {
      background: #222;
      color: #fff;
    }
    .workspace-tab.is-on .workspace-tab__x {
      color: #ccc;
    }
    .workspace-tab.is-dirty .workspace-tab__label::before {
      content: "● ";
      color: #fac314;
      font-size: 8px;
    }
    .workspace-tab__label {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .workspace-tab__x {
      font-size: 14px;
      line-height: 1;
      padding: 0 2px;
      color: #666;
      flex-shrink: 0;
    }
    .workspace-tab__x:hover {
      color: #9b1c1c;
    }
    .workspace-hint {
      margin: 0;
      padding: 8px 10px 12px;
      font-size: 11px;
      color: #888;
      line-height: 1.4;
    }
    .workspace-exit {
      font-size: 11px;
      font-weight: 700;
      color: #666;
      text-decoration: none;
      border: 1.5px solid #ccc;
      border-radius: 6px;
      padding: 3px 7px;
      background: #fff;
      white-space: nowrap;
    }
    .workspace-exit:hover {
      border-color: #222;
      color: #222;
    }
    .workspace-panes {
      flex: 1;
      position: relative;
      background: #fff;
      min-width: 0;
      min-height: 0;
    }
    .workspace-frame {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
      display: none;
      background: #fff;
    }
    .workspace-frame.is-on {
      display: block;
    }
    @media (max-width: 900px) {
      .workspace-rail { width: 148px; }
      .workspace-hint { display: none; }
    }

/* 2026 LMS renewal: shared admin shell */
:root {
  --admin-nav: #171a2d;
  --admin-nav-soft: #252940;
  --admin-canvas: #f5f6fa;
  --admin-line: #e6e8f0;
  --admin-muted: #72778c;
  --admin-green: #168465;
}
body:not(.is-embed) { background: var(--admin-canvas); display: block; color: #1d2033; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2100; width: 248px; padding: 24px 16px 18px; display: flex; flex-direction: column; color: #fff; background: var(--admin-nav); }
.admin-sidebar__brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 25px; color: #fff; text-decoration: none; font-size: 18px; font-weight: 850; line-height: 1.2; }
.admin-sidebar__brand small { display: block; margin-top: 4px; color: #858ba8; font-size: 9px; letter-spacing: .12em; }
.admin-sidebar__mark { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #2c2205; background: linear-gradient(135deg,#ffd64e,#efac00); box-shadow: 0 9px 25px rgba(245,189,25,.22); font-size: 19px; font-weight: 950; }
.admin-sidebar__nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.admin-sidebar__item { min-height: 42px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; color: #bdc1d4; text-decoration: none; font-size: 13px; font-weight: 700; }
.admin-sidebar__item:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-sidebar__item.is-active { position: relative; color: #fff; background: var(--admin-nav-soft); }
.admin-sidebar__item.is-active::before { content: ""; position: absolute; left: 0; width: 3px; height: 21px; border-radius: 3px; background: var(--color-primary); }
.admin-sidebar__children { margin: 2px 0 5px 18px; display: none; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.1); }
.admin-sidebar__group.is-active .admin-sidebar__children { display: grid; }
.admin-sidebar__children a { padding: 7px 9px; color: #858ba8; text-decoration: none; font-size: 11px; font-weight: 650; }
.admin-sidebar__children a:hover,.admin-sidebar__children a.is-active { color: #f3d674; }
.admin-sidebar__user { margin-top: auto; padding: 17px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar__user strong,.admin-sidebar__user span { display: block; }
.admin-sidebar__user strong { font-size: 13px; }
.admin-sidebar__user span { margin: 4px 0 11px; color: #858ba8; font-size: 10px; }
.admin-sidebar__user a { color: #e9c95f; font-size: 11px; font-weight: 700; text-decoration: none; }
.admin-topbar { position: fixed; inset: 0 0 auto 248px; z-index: 2000; height: 70px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--admin-line); backdrop-filter: blur(10px); }
.admin-topbar>div { display: flex; align-items: center; gap: 12px; }
.admin-topbar span { color: #80600c; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.admin-topbar strong { font-size: 13px; }
.admin-topbar em { padding: 7px 11px; color: var(--admin-green); background: #eaf7f2; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 750; }
.admin-menu-toggle { display: none; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
body:not(.is-embed) .admin-main { width: auto; min-height: 100vh; margin: 0 0 0 248px; padding: 100px 0 50px; }
body:not(.is-embed) .admin-container { max-width: 1460px; padding: 0 32px; }
body:not(.is-embed) .site-footer { display: none; }
body:not(.is-embed) .s { max-width: 1400px; padding: 20px; background: #fff; border: 1px solid var(--admin-line); border-radius: 15px; box-shadow: 0 8px 28px rgba(30,35,63,.05); }
body:not(.is-embed) .s>.h:first-child { color: #80600c; font-size: 10px; letter-spacing: .1em; }
body:not(.is-embed) .s>.t { font-size: 26px; line-height: 1.3; }
body:not(.is-embed) .s>.st { color: var(--admin-muted); font-size: 13px; }
body:not(.is-embed) .kpi { gap: 14px; }
body:not(.is-embed) .kc { border: 1px solid var(--admin-line); border-radius: 13px; box-shadow: none; }
body:not(.is-embed) .fil { padding: 12px; background: #fafafd; border: 1px solid var(--admin-line); border-radius: 12px; }
body:not(.is-embed) .fil input,body:not(.is-embed) .fil select,body:not(.is-embed) .fi-input { border: 1px solid var(--admin-line); border-radius: 9px; }
body:not(.is-embed) .btn { border-width: 1px; border-color: var(--admin-line); border-radius: 9px; box-shadow: none; }
body:not(.is-embed) .btn-p { color: #2f270b; background: var(--color-primary); border-color: #e8b614; }
body:not(.is-embed) .tb { border: 1px solid var(--admin-line); border-radius: 12px; box-shadow: none; }
body:not(.is-embed) .tb th { color: #888c9e; background: #fafafd; border-color: var(--admin-line); font-size: 10px; }
body:not(.is-embed) .tb td { border-color: #eff0f5; }
body:not(.is-embed) .tabs { padding: 5px; gap: 4px; background: #eceef4; border: 0; border-radius: 11px; }
body:not(.is-embed) .tab { border: 0; border-radius: 8px; color: var(--admin-muted); }
body:not(.is-embed) .tab.act { color: #1d2033; background: #fff; box-shadow: 0 3px 9px rgba(25,29,52,.07); }
.admin-info-split { display: grid; grid-template-columns: 1fr; gap: 16px; }
.admin-readonly { padding: 16px; background: #f8f9fc; border: 1px solid var(--admin-line); border-radius: 12px; }
.admin-readonly__label { margin: 0 0 12px; color: var(--admin-muted); font-size: 11px; font-weight: 800; }
.admin-type-tabs { display: flex; gap: 7px; margin: 14px 0; overflow-x: auto; }
.admin-type-tabs a { padding: 8px 13px; border: 1px solid var(--admin-line); border-radius: 999px; color: var(--admin-muted); background: #fff; text-decoration: none; white-space: nowrap; font-size: 11px; font-weight: 750; }
.admin-type-tabs a.is-active { color: #3d3008; background: #fff4cc; border-color: #e8c85c; }
@media(max-width:900px){
  .admin-sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: 18px 0 45px rgba(0,0,0,.2); }
  body.admin-nav-open .admin-sidebar { transform: none; }
  .admin-topbar { left: 0; padding: 0 17px; }
  .admin-menu-toggle { display: inline-grid; place-items: center; }
  .admin-topbar span,.admin-topbar em { display: none; }
  body:not(.is-embed) .admin-main { margin-left: 0; }
  body:not(.is-embed) .admin-container { padding: 0 14px; }
}

/* ── 관리 폼 정보 밀도 개선 ──────────────────────────────────
   짧은 필드가 화면 전체 폭을 차지하지 않게 하고, 데스크톱에서
   한 화면에 더 많은 정보를 보여준다. 모바일은 기존처럼 1열이다. */
.s select.fi-input:not([multiple]) {
  max-width: 320px;
}
.form-panel .fr {
  margin-bottom: 10px;
}
.form-panel .fl {
  margin-bottom: 4px;
}
.form-panel .fi-input {
  min-height: 36px;
  padding: 7px 10px;
}
.form-panel select.fi-input:not([multiple]) {
  width: min(100%, 320px) !important;
}
.form-panel input[type="date"].fi-input,
.form-panel input[type="time"].fi-input,
.form-panel input[type="number"].fi-input {
  max-width: 220px;
}
.form-panel .ft {
  min-height: 64px;
  line-height: 1.45;
}
.form-panel .fg,
.form-panel .fg3 {
  gap: 8px 14px;
}

@media (min-width: 1180px) {
  .form-panel .fg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .form-panel .fg3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* 여러 .fg 행으로 나뉜 기본정보를 하나의 4열 그리드처럼 배치 */
  .form-panel--compact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 14px;
    align-items: start;
  }
  .form-panel--compact-grid > .fg,
  .form-panel--compact-grid > .fg3 {
    display: contents;
  }
  .form-panel--compact-grid > .fr {
    grid-column: span 2;
  }
  .form-panel--compact-grid > .sl,
  .form-panel--compact-grid > .tb,
  .form-panel--compact-grid > table,
  .form-panel--compact-grid > .sec-note,
  .form-panel--compact-grid > script {
    grid-column: 1 / -1;
  }
  .form-panel--compact-grid .fr:has(textarea) {
    grid-column: span 2;
  }

  /* 회원: 계정·연락처는 한 화면에서 훑고 주소만 넓게 */
  .profile-fields-grid,
  .student-core-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 14px;
    align-items: start;
  }
  .profile-fields-grid > .fg,
  .profile-fields-grid > .fg3,
  .student-core-grid > .fg,
  .student-core-grid > .fg3 {
    display: contents;
  }
  .profile-fields-grid > .fr:has(#f-address),
  .profile-fields-grid > .fr:has(#f-socialid),
  .student-core-grid .fr:has(#f-address),
  .student-core-grid > .fr:has(#f-email) {
    grid-column: span 2;
  }
  .student-core-grid > #age-display {
    grid-column: 1 / -1;
    margin: -5px 0 0 !important;
  }

  /* 수강생: 보호자 3개 정보와 동의 상태를 같은 리듬으로 */
  .student-form-layout > .fg,
  .student-form-layout details .fg3,
  .student-form-layout #guardian-fields .fg,
  .student-form-layout #guardian-fields .fg3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .student-form-layout > .sl {
    margin-top: 14px !important;
  }

  .student-status-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1120px;
    margin: 14px 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }
  .student-status-summary > div { min-height: 92px; padding: 18px 20px; border-right: 1px solid #e5e7eb; }
  .student-status-summary > div:last-child { border-right: 0; }
  .student-status-summary span { display: block; margin-bottom: 10px; color: #667085; font-size: 11px; font-weight:700; }
  .student-status-summary strong { color: #172033; font-size: 18px; }
  .student-status-badge {
    padding: 4px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
  }
  .student-edit-section {
    max-width: 1120px;
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .student-card-head { display: flex; align-items: center; justify-content: space-between; margin: -18px -20px 16px; padding: 15px 20px; border-bottom: 1px solid #e5e7eb; }
  .student-card-head .student-section-title { margin: 0; }
  .student-card-head small { display: block; margin-top: 4px; color: #7b8495; font-size: 10px; }
  .student-section-title {
    margin: 0 0 14px;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
  }
  .student-section-title span {
    margin-left: 6px;
    color: #7b8495;
    font-size: 11px;
    font-weight: 500;
  }
  .student-edit-section .fr { margin-bottom: 10px; }
  .student-edit-section .fi-input { min-height: 42px; }
  .student-readonly-section { background: #fafbfc; }
  .student-consent-options { display: flex; gap: 8px; flex-wrap: wrap; }
  .student-consent-options label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    width: min(220px, 100%);
    padding: 11px 12px;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
  }
  .student-consent-options label > span strong,
  .student-consent-options label > span small { display: block; }
  .student-consent-options label > span strong { font-size: 12px; }
  .student-consent-options label > span small { margin-top: 3px; color: #7b8495; font-size: 10px; }
  .student-consent-options input { position: absolute; opacity: 0; pointer-events: none; }
  .student-consent-options i { width: 38px; height: 22px; flex: 0 0 auto; padding: 3px; border-radius: 999px; background: #cbd0db; transition: .2s; }
  .student-consent-options i::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #999; transition: .2s; }
  .student-consent-options input:checked + i { background: #168465; }
  .student-consent-options input:checked + i::after { transform: translateX(16px); }
  .student-radio-row { display: flex; gap: 6px; }
  .student-radio-row label { flex: 1; cursor: pointer; }
  .student-radio-row input { position: absolute; opacity: 0; pointer-events: none; }
  .student-radio-row span { min-height: 42px; display: grid; place-items: center; border: 1px solid #dfe3ea; border-radius: 8px; color: #667085; font-size: 12px; font-weight: 700; }
  .student-radio-row input:checked + span { color: #493a04; border-color: #e1b51e; background: #fff7dc; }
  .student-guardian-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
  .student-guardian-search { position: relative; margin: 0 !important; }
  .student-linked-box { min-height: 78px; padding: 12px; border-radius: 9px; background: #f7f8fb; }
  .student-linked-box > span { display: block; margin-bottom: 8px; color: #667085; font-size: 10px; font-weight: 700; }
  .student-linked-box .chips { margin: 0; }
  .student-guardian-consent { margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf0f4; }
  .student-check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
  .student-check-row > input { width: 17px; height: 17px; }
  .student-check-row strong,
  .student-check-row small { display: block; }
  .student-check-row strong { font-size: 12px; }
  .student-check-row small { margin-top: 3px; color: #7b8495; font-size: 10px; }
  .student-consent-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 12px; margin-top: 13px; padding: 13px; border-radius: 9px; background: #f7f8fb; }
  .student-consent-fields .fr { margin: 0; }
  .student-inline-details { margin-top: 12px; border-top: 1px solid #edf0f4; }
  .student-inline-details summary { padding: 12px 0 0; color: #667085; cursor: pointer; font-size: 11px; font-weight: 700; }
  .student-inline-details .fg3 { margin-top: 12px; }
  .student-low-frequency { padding: 0; overflow: hidden; }
  .student-low-frequency > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; cursor: pointer; }
  .student-low-frequency > summary::-webkit-details-marker { display: none; }
  .student-low-frequency > summary strong,
  .student-low-frequency > summary small { display: block; }
  .student-low-frequency > summary strong { font-size: 13px; }
  .student-low-frequency > summary small { margin-top: 3px; color: #7b8495; font-size: 10px; font-weight: 400; }
  .student-low-frequency > summary i { color: #7b8495; font-size: 11px; font-style: normal; }
  .student-low-frequency[open] > summary { border-bottom: 1px solid #e5e7eb; }
  .student-details-body { padding: 16px 20px; }

  @media (max-width: 900px) {
    .student-status-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .student-status-summary > div:nth-child(2) { border-right: 0; }
    .student-core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .student-guardian-layout { grid-template-columns: 1fr; }
  }

} /* @media (min-width: 1180px) 끝 — 아래 공통 규칙은 모든 화면 너비에 적용한다 */

/* ── 1차 UI 최종 통일: 모든 관리자 화면 공통 규칙 ───────────── */
.admin-page .content-body { color: #1d2033; }
.admin-page .content-body > .s,
.admin-page .content-body > form.s {
  max-width: 1460px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid #e6e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(30,35,63,.045);
}
.admin-page .content-body > .s:first-child { margin-top: 0; }
.admin-page .h { color: #8b6a09; font-size: 10px; font-weight: 850; letter-spacing: .11em; }
.admin-page .t { margin-top: 4px; color: #1d2033; font-size: 25px; line-height: 1.3; }
.admin-page .st { max-width: 900px; margin-top: 6px; color: #72778c; font-size: 12px; line-height: 1.55; }
.admin-page .sl { color: #25293b; font-size: 14px; font-weight: 800; }
.admin-page .back-btn { width: max-content; margin-bottom: 13px; color: #72778c; font-size: 11px; }

.admin-page .kpi { gap: 10px; margin: 16px 0; }
.admin-page .kpi .kc {
  min-height: 92px;
  padding: 15px 16px;
  border: 1px solid #e6e8f0 !important;
  border-radius: 12px;
  background: #fafbfc !important;
  box-shadow: none !important;
}
.admin-page .kpi .kc:hover { border-color: #dec15d !important; background: #fffdf6 !important; }
.admin-page .kpi .kc-filter {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.admin-page .kpi .kc-filter:hover { transform: translateY(-1px); }
.admin-page .kpi .kc-filter:focus-visible {
  outline: 3px solid rgba(194, 145, 16, .22);
  outline-offset: 2px;
}
.admin-page .kpi .kc-filter.is-active {
  border-color: #d9ad32 !important;
  background: #fff9e8 !important;
  box-shadow: inset 0 3px 0 #d9ad32 !important;
}
.admin-page .kpi .kc-filter.is-active .kl { color: #765813 !important; }
.admin-page .kpi .kc-filter.is-active .kv { color: #382a09 !important; }
.admin-page .member-list-kpi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-page .admin-stat-card--filter {
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.admin-page .admin-stat-card--filter:focus-visible {
  outline: 3px solid rgba(194, 145, 16, .22);
  outline-offset: 2px;
}
.admin-page .admin-stat-card--filter.is-active {
  border-color: #d9ad32 !important;
  background: #fff9e8 !important;
  box-shadow: inset 0 3px 0 #d9ad32 !important;
}
.admin-page .kpi .kl { color: #72778c !important; font-size: 10px; font-weight: 750; }
.admin-page .kpi .kv { margin-top: 7px; color: #1d2033 !important; font-size: 22px; }

.admin-page .fil {
  gap: 8px;
  margin: 12px 0;
  padding: 11px 12px;
  border: 1px solid #e6e8f0;
  border-radius: 11px;
  background: #fafbfc;
}
.admin-page .fil + .fil { padding: 0; border: 0; background: transparent; }
.admin-page .fil input,
.admin-page .fil select { min-height: 39px; border-color: #dfe2ea; border-radius: 8px; background: #fff; }
.admin-page .btn { min-height: 37px; border-color: #dfe2ea; border-radius: 8px; box-shadow: none; font-size: 11px; }
.admin-page .btn-p { color: #332a09; border-color: #efbd1a; background: #f5bd19; }

.admin-page .tabs { gap: 6px; margin: 14px 0; padding: 0; border: 0; overflow-x: auto; }
.admin-page .tabs .tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #e6e8f0;
  border-radius: 999px;
  color: #72778c;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}
.admin-page .tabs .tab.act { color: #3d3008; border-color: #e4c14d; background: #fff7dc; }

.admin-page .tb { border: 1px solid #e6e8f0; border-radius: 11px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.admin-page .tb th { padding: 11px 13px; color: #7c8193; background: #fafafd; border-color: #e6e8f0; font-size: 10px; }
.admin-page .tb td { padding: 12px 13px; color: #34384a; border-color: #eceef3; }
.admin-page .tb tbody tr:hover td { background: #fffdf7; }
.admin-page .tag { border: 1px solid rgba(80,86,105,.12); border-radius: 999px; box-shadow: none; }

.admin-page .form-panel {
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid #e6e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.admin-page .fr { margin-bottom: 10px; }
.admin-page .fl { margin-bottom: 6px; color: #34384a; font-size: 11px; }
.admin-page .fi-input { min-height: 42px; border-color: #dfe2ea; border-radius: 9px; box-shadow: none; }
.admin-page .fi-input:focus { border-color: #d9ad20; box-shadow: 0 0 0 3px rgba(245,189,25,.12); }
.admin-page textarea.fi-input { min-height: 78px; }
.admin-page .sec-note { border-radius: 9px; box-shadow: none; font-size: 11px; }
.admin-page .ses {
  position: sticky;
  bottom: 12px;
  z-index: 8;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid #e6e8f0;
  border-radius: 11px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 30px rgba(30,35,63,.10);
  backdrop-filter: blur(8px);
}

.admin-page [id$="-modal"] { backdrop-filter: blur(3px); }
.admin-page [id$="-modal"] > .s,
.admin-page [id$="-modal"] > div {
  border: 1px solid #e6e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 60px rgba(24,29,48,.22) !important;
}

.admin-page-access .content-body > .s:first-child,
.admin-page-companies .content-body > .s:first-child,
.admin-page-popups .content-body > .s:first-child { background: #fff; }
.admin-page-contacts .kpi .kc,
.admin-page-access .kpi .kc { border-top: 1px solid #e6e8f0 !important; }

@media (max-width: 900px) {
  .admin-page .content-body > .s { padding: 17px 15px; border-radius: 11px; }
  .admin-page .t { font-size: 22px; }
  .admin-page .kpi { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-page .fil { align-items: stretch; }
  .admin-page .fil input,
  .admin-page .fil select,
  .admin-page .fil .btn { width: 100%; }
}

/* 강의 개설·운영 상세: 긴 폼을 업무 밀도에 맞게 압축 */
.operations-form-layout { max-width: 1240px !important; }
.opening-form-layout .stepper { position:sticky; top:64px; z-index:18; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap: 0; margin: 16px 0; padding: 5px; border: 1px solid #e6e8f0; border-radius: 11px; background: rgba(247,248,251,.96); backdrop-filter:blur(8px); }
.opening-form-layout .stepper .step { display:flex; align-items:center; justify-content:center; gap:7px; min-height: 38px; border: 0; border-radius: 8px; color: #72778c; background: transparent; box-shadow: none; font-size: 11px; font-weight:750; cursor:pointer; }
.opening-form-layout .stepper .step.act { color: #493a04; background: #fff; box-shadow: 0 2px 8px rgba(30,35,63,.08); }
.opening-form-layout .stepper .step.is-current { background:#fff7d9; box-shadow:inset 0 -2px 0 #d9ad32; }
.opening-form-layout .stepper .step b { border: 0; background: #eceef3; }
.opening-form-layout .stepper .step.act b { background: #f5bd19; }
.opening-form-layout .wizard-panel { display:none; padding: 18px 20px; border: 1px solid #e6e8f0; border-radius: 12px; background: #fff; }
.opening-form-layout .wizard-panel.is-active { display:block; animation:opening-panel-in .18s ease-out; }
.opening-form-layout #panel-1.is-active { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.opening-form-layout .opening-choice-field { min-width:0; padding:14px; border:1px solid #e6e8f0; border-radius:10px; background:#fafbfc; }
.opening-form-layout .opening-choice-field > .sl { margin:0 0 9px; }
.opening-form-layout .opening-choice-field--optional { grid-column:1 / -1; max-width:calc(50% - 6px); }
.opening-form-layout .opening-operation-grid.is-active { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.opening-form-layout .opening-operation-grid[style*="display:none"] { display:none !important; }
.opening-form-layout .opening-sub-label { margin-top:14px !important; }
.opening-form-layout .opening-step-guide { grid-column:1/-1; display:flex; gap:8px; padding:11px 13px; border-left:3px solid #d9ad32; border-radius:8px; background:#fffaf0; font-size:11px; }
.opening-form-layout .opening-step-guide span { color:#6e7586; }
.opening-form-layout .opening-material-type { display:flex; align-items:center; gap:14px; margin-top:10px; padding:10px 12px; border-radius:8px; background:#fff; font-size:11px; }
.opening-form-layout .opening-material-type > span { color:#6f7688; font-weight:800; }
.opening-form-layout .opening-material-type label { cursor:pointer; }
.opening-form-layout .opening-room-select { position:absolute; width:1px !important; height:1px; padding:0; opacity:0; pointer-events:none; }
.opening-form-layout .opening-room-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.opening-form-layout .opening-room-card { position:relative; display:flex; flex-direction:row; align-items:center; gap:11px; min-height:88px; padding:11px 54px 11px 11px; border:1px solid #dfe3eb; border-radius:9px; color:#252b3d; background:#fff; text-align:left; cursor:pointer; }
.opening-form-layout .opening-room-card:hover { border-color:#d9ad32; background:#fffdf6; }
.opening-form-layout .opening-room-card b { font-size:12px; }
.opening-form-layout .opening-room-card span { color:#767e90; font-size:10px; }
.opening-form-layout .opening-room-card em { position:absolute; top:50%; right:12px; transform:translateY(-50%); color:#8a7280; font-size:10px; font-style:normal; }
.opening-form-layout .opening-room-card.is-selected { border-color:#d9ad32; background:#fff7d9; box-shadow:inset 3px 0 0 #d9ad32; }
.opening-form-layout .opening-room-card.is-selected em { color:#725508; font-weight:800; }
.opening-form-layout .opening-room-card img,.opening-room-placeholder { display:grid; place-items:center; flex:0 0 82px; width:82px; height:62px; border-radius:7px; background:#f0f2f6; color:#9aa1ae; object-fit:cover; overflow:hidden; }
.opening-form-layout .opening-room-card-copy { display:flex; flex-direction:column; gap:5px; min-width:0; }
.opening-form-layout .opening-short-field { max-width:280px; margin:0; }
.opening-form-layout .ses { position:sticky; bottom:0; z-index:17; margin-top:14px; padding:11px 0; background:rgba(255,255,255,.96); backdrop-filter:blur(8px); }
@keyframes opening-panel-in { from { opacity:.35; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
.opening-form-layout #panel-1 > input[type="hidden"] { display: none; }
.opening-form-layout .wizard-panel [style*="border:2px solid #222"],
.opening-form-layout .wizard-panel [style*="border:2px solid #e2e8f0"] { border: 1px solid #e6e8f0 !important; border-radius: 10px !important; background: #fafbfc !important; }
.opening-form-layout #panel-3 > div[style*="display:grid"] > div { border: 1px solid #e6e8f0 !important; border-radius: 9px !important; background: #fafbfc !important; }
.opening-form-layout #panel-5 > div[style*="display:grid"] > div { position:relative; padding-right:62px !important; }
.opening-form-layout .opening-summary-edit { position:absolute; top:10px; right:10px; padding:5px 9px; border:1px solid #dfe3eb; border-radius:7px; color:#596174; background:#fff; font-size:10px; font-weight:750; cursor:pointer; }
.opening-form-layout .opening-summary-edit:hover { border-color:#d9ad32; color:#654b08; background:#fffaf0; }

.running-detail-layout > div:first-of-type { gap: 16px; }
.running-detail-layout .tab-panel { padding: 18px 0 4px; }
.running-detail-layout #rn-panel-1 > div[style*="display:grid"] > div,
.running-detail-layout #rn-panel-1 > div[style*="display:grid"] #teacher-card { border: 1px solid #e6e8f0 !important; border-radius: 10px !important; background: #fafbfc !important; box-shadow: none !important; }
.running-detail-layout #rn-panel-1 > div[style*="display:grid"] #teacher-card:hover { border-color: #dec15d !important; background: #fffdf6 !important; }
.running-detail-layout .running-overview-grid,
.running-detail-layout .running-finance-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.running-detail-layout .running-overview-grid > div,
.running-detail-layout .running-finance-grid > div { min-width:0; min-height:72px; padding:12px !important; border:1px solid #e6e8f0 !important; border-radius:10px !important; background:#fafbfc !important; box-shadow:none !important; }
.running-detail-layout .running-overview-grid p:last-child,
.running-detail-layout .running-finance-grid p:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.running-detail-layout .sess-layout { gap: 12px; }
.running-detail-layout .sess-nav,
.running-detail-layout .sess-att { border: 1px solid #e6e8f0 !important; border-radius: 11px !important; box-shadow: none !important; }
.running-detail-layout [style*="border:2px solid #222"] { border: 1px solid #e6e8f0 !important; border-radius: 10px !important; box-shadow: none !important; }

.course-management-form .form-panel,
.material-management-form .form-panel { max-width: 1180px; }
.opening-schedule-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.opening-schedule-step { padding: 14px; border: 1px solid #e2e5ec; border-radius: 11px; background: #fafbfc; }
.opening-schedule-step__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #22283a; font-size: 13px; font-weight: 800; }
.opening-schedule-step__head b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #493a04; background: #ffe58a; font-size: 11px; }
.opening-schedule-step__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.opening-schedule-step__fields--single { grid-template-columns: minmax(0, 260px); }
.opening-schedule-step .fr { margin: 0; }
.opening-schedule-step small { display: block; margin-top: 5px; color: #7b8495; font-size: 10px; }
.settlement-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; }
.settlement-flow > div { padding: 14px; border: 1px solid #e1e4eb; border-radius: 11px; background: #fafbfc; }
.settlement-flow > div.is-current { border-color: #dfbd45; background: #fffaf0; }
/* 정산 > 예정 수입·지출 */
.settlement-forecast { margin: 14px 0 22px; padding: 16px 18px; border: 1px solid #e1e4eb; border-radius: 12px; background: #fff; }
.settlement-forecast h3 { margin: 0; font-size: 16px; }
.settlement-forecast h3 small { margin-left: 8px; color: #858c9a; font-size: 12px; font-weight: 500; }
.settlement-forecast .settlement-flow { margin: 12px 0 10px; }
.settlement-forecast-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 12.5px; font-weight: 700; }
.settlement-forecast-checks .is-ok { color: #087c62; }
.settlement-forecast-checks .is-ng { color: #b42318; }
.settlement-forecast-note { margin: 0 0 8px; color: #8a6200; font-size: 12px; }
.settlement-forecast details summary { cursor: pointer; font-size: 13px; font-weight: 700; margin: 6px 0; }
.settlement-forecast .tb td small { display: block; }
.settlement-flow span, .settlement-flow small { display: block; color: #7b8495; font-size: 10px; }
.settlement-flow strong { display: block; margin: 7px 0 4px; color: #202638; font-size: 18px; }
.settlement-ledger-sides { display: grid; grid-template-columns: minmax(0,1fr) 190px minmax(0,1fr); gap: 12px; align-items: stretch; margin-bottom: 14px; }
.settlement-ledger-card, .settlement-resource-card { padding: 17px; border: 1px solid #e1e4eb; border-radius: 12px; background: #fff; }
.settlement-ledger-card--income { border-top: 3px solid #168465; }
.settlement-ledger-card--expense { border-top: 3px solid #c85b5b; }
.settlement-ledger-card > span { color: #596174; font-size: 11px; font-weight: 800; }
.settlement-ledger-card > strong { display: block; margin-top: 6px; color: #202638; font-size: 22px; }
.settlement-ledger-card > p { margin: 7px 0 12px; color: #7b8495; font-size: 11px; }
.settlement-ledger-card dl { margin: 0 0 13px; }
.settlement-ledger-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #edf0f4; font-size: 11px; }
.settlement-ledger-card dt { color: #7b8495; }
.settlement-ledger-card dd { margin: 0; color: #2c3346; font-weight: 750; }
.settlement-resource-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #f7f8fb; }
.settlement-resource-card span, .settlement-resource-card small { color: #7b8495; font-size: 10px; }
.settlement-resource-card strong { margin: 7px 0 4px; font-size: 12px; }
.settlement-resource-card b { color: #168465; font-size: 19px; }
.settlement-principle { display: flex; gap: 12px; margin-bottom: 18px; padding: 12px 14px; border-left: 3px solid #d9b436; border-radius: 8px; background: #fffaf0; font-size: 11px; }
.settlement-principle span { color: #626b7e; }
.settlement-ledger-tabs { position: sticky; top: 70px; z-index: 20; display: flex; gap: 7px; margin: 14px 0; padding: 7px; border: 1px solid #e1e4eb; border-radius: 11px; background: rgba(255,255,255,.96); }
.settlement-ledger-tabs button { padding: 8px 12px; border: 0; border-radius: 8px; color: #596174; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.settlement-ledger-tabs button:hover, .settlement-ledger-tabs button.is-active { color: #332a0b; background: #fff4cc; }
.settlement-tab-count { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; margin-left:6px; padding:0 5px; border-radius:999px; color:#fff; background:#b7791f; font-size:9px; }
.management-page-actions { display:flex; justify-content:flex-end; gap:8px; margin:-34px 0 14px; }
.order-period-shortcuts { justify-content:center; gap:12px; margin-top:14px; }
.order-period-shortcuts strong { min-width:190px; text-align:center; font-size:12px; color:#3f4655; }
.order-payment-filter { align-items:flex-end; }
.order-date-field { display:grid; gap:4px; color:#6b7280; font-size:10px; font-weight:700; }
.order-date-field input { min-width:132px; }
.settlement-summary-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:18px; }
.settlement-summary-title .sl { margin:0; }
.settlement-summary-title .sl small { margin-left:8px; color:#8a929c; font-size:11px; font-weight:500; }
.settlement-detail-action { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:22px 0 8px; padding:14px 16px; scroll-margin-top:24px; border:1px solid #dfe3ea; border-radius:11px; background:#fafbfc; }
.settlement-detail-action strong,.settlement-detail-action small { display:block; }
.settlement-detail-action strong { color:#1d2033; font-size:14px; }
.settlement-detail-action small { margin-top:4px; color:#7b8494; font-size:11px; }
.settlement-detail-action .fil { margin:0; padding:0; border:0; background:transparent; }
.settlement-ledger-view { display: none; }
.settlement-ledger-view.is-active { display: block; }
.settlement-period-filter { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 12px; }
.settlement-period-filter label { color: #596174; font-size: 11px; font-weight: 800; }
.settlement-period-filter select { min-width: 100px; min-height: 36px; }
.settlement-product-dashboard { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.settlement-product-card { position: relative; padding: 15px 17px; border: 1px solid #e1e4eb; border-radius: 12px; color: inherit; background: #fafbfc; text-decoration: none; transition: .16s ease; }
.settlement-product-card:hover { border-color: #d5bc60; transform: translateY(-1px); }
.settlement-product-card.is-active { border-color: #d8ad1b; background: #fff9e8; box-shadow: 0 6px 18px rgba(109,85,7,.08); }
.settlement-product-card.is-active::after { content: "선택됨"; position: absolute; top: 12px; right: 13px; padding: 4px 7px; border-radius: 999px; color: #5e4905; background: #ffe58a; font-size: 9px; font-weight: 800; }
.settlement-product-card span, .settlement-product-card small { display: block; }
.settlement-product-card span { color: #596174; font-size: 11px; font-weight: 800; }
.settlement-product-card strong { display: block; margin: 9px 0 5px; color: #202638; font-size: 20px; }
.settlement-product-card small { color: #858c9b; font-size: 10px; }
.settlement-data-pending { padding: 28px; border: 1px dashed #d8bd62; border-radius: 12px; background: #fffaf0; text-align: center; }
.settlement-data-pending strong { color: #4f4114; font-size: 14px; }
.settlement-data-pending p { max-width: 650px; margin: 8px auto 0; color: #766a45; font-size: 11px; line-height: 1.7; }
.settlement-ledger-section { margin: 18px 0; padding-top: 6px; scroll-margin-top: 130px; }
.settlement-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.settlement-section-head strong, .settlement-section-head small { display: block; }
.settlement-section-head strong { color: #202638; font-size: 14px; }
.settlement-section-head small { margin-top: 4px; color: #7b8495; font-size: 10px; }
.settlement-section-head > span { color: #596174; font-size: 11px; font-weight: 750; }
.settlement-party { display:flex; flex-direction:column; gap:5px; min-width:145px; }
.settlement-party b { line-height:1.25; }
.settlement-party small { display:block; color:#7b8495; font-size:11px; line-height:1.2; }
.settlement-product-summary { display:flex; align-items:center; gap:5px; min-width:150px; }
.settlement-product-summary span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:180px; }
.settlement-product-summary small { flex:none; margin:0; color:#7b8495; font-size:11px; }
.personal-summary-row { transition:background-color .16s ease, box-shadow .16s ease; }
.personal-summary-row.is-selected { background:#fff8df; box-shadow:inset 3px 0 #e4ae22; }
.settlement-order-detail-head { margin-top:28px; padding-top:20px; border-top:1px solid #e5e9f0; align-items:center; }
.settlement-order-detail-actions { display:flex; align-items:center; gap:10px; }
.settlement-order-detail-actions > span { color:#596174; font-size:11px; font-weight:750; }
.settlement-adjustment-kpi { grid-template-columns:repeat(4,minmax(0,1fr)); }
.settlement-adjustment-list { display:grid; gap:10px; }
.settlement-adjustment-card { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 18px; border:1px solid #e1e4eb; border-radius:12px; background:#fff; }
.settlement-adjustment-main { min-width:0; flex:1; }
.settlement-adjustment-title { display:flex; align-items:center; gap:8px; min-width:0; }
.settlement-adjustment-title b { overflow:hidden; color:#252a3a; text-overflow:ellipsis; white-space:nowrap; }
.settlement-adjustment-title small { color:#9298a6; }
.settlement-adjustment-values { display:grid; grid-template-columns:minmax(120px,1fr) 20px minmax(150px,1fr) minmax(110px,.7fr); align-items:center; gap:10px; max-width:720px; margin:13px 0 9px; }
.settlement-adjustment-values span { padding:10px 12px; border-radius:9px; color:#7b8290; background:#f7f8fa; font-size:10px; }
.settlement-adjustment-values strong,.settlement-adjustment-values small { display:block; margin-top:4px; }
.settlement-adjustment-values strong { color:#252a3a; font-size:15px; }
.settlement-adjustment-values small { color:#858c9a; font-size:9px; }
.settlement-adjustment-values i { color:#a8aebb; text-align:center; }
.settlement-adjustment-values .is-increase strong { color:#b02a3a; }
.settlement-adjustment-values .is-decrease strong { color:#17634e; }
.settlement-adjustment-main > p { margin:0 0 5px; color:#454b5d; font-size:12px; }
.settlement-adjustment-main > small { color:#8b92a0; font-size:10px; }
.settlement-adjustment-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; flex:0 0 auto; min-width:150px; }
.settlement-adjustment-actions > span,.settlement-adjustment-actions > small { display:block; max-width:190px; color:#6f7685; font-size:10px; }
.settlement-review-modal[hidden] { display:none; }
.settlement-review-modal { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(20,24,38,.46); }
.settlement-review-dialog { width:min(100%,480px); padding:24px; border-radius:14px; background:#fff; box-shadow:0 20px 60px rgba(20,24,38,.22); }
.settlement-review-dialog h3 { margin:5px 0; color:#1f2433; font-size:20px; }
.settlement-review-dialog > div:first-child > span,.settlement-review-dialog > div:first-child > p { color:#858c9a; font-size:11px; }
.settlement-review-dialog textarea { width:100%; min-height:100px; margin-top:7px; }
.settlement-review-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.btn-danger { color:#fff !important; border-color:#a9293c !important; background:#b02a3a !important; }
.settlement-ledger-section td small { display: block; margin-top: 3px; color: #8a91a0; font-size: 10px; }
.settlement-amount { text-align: right; font-weight: 800; white-space: nowrap; }
.settlement-empty { padding: 28px !important; color: #8a91a0; text-align: center !important; }

@media (max-width: 760px) {
  .opening-form-layout #panel-1 { grid-template-columns: 1fr; }
  .opening-form-layout #panel-1 > .sl { margin-bottom: -4px; }
  .running-detail-layout > div:first-of-type { align-items: flex-start !important; flex-direction: column; }
}

/* 시스템 관리 */
.system-list-page .admin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 10px; margin: 16px 0; }
.system-list-page .admin-stat-card { padding: 15px 16px; border: 1px solid #e6e8f0; border-radius: 11px; background: #fafbfc; box-shadow: none; }
.system-list-page .stat-label { color: #72778c; font-size: 10px; }
.system-list-page .stat-value { margin-top: 6px; color: #1d2033; font-size: 22px; font-weight: 800; }
.system-list-section { margin-top: 12px; padding-top: 15px; border-top: 1px solid #eceef3; }
.system-list-section .admin-section__header { margin-bottom: 12px; }
.system-list-section .admin-section__title { font-size: 15px; }
.system-form-layout { max-width: 960px !important; }
.system-form-layout .fg2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; }
.system-editor-page { max-width: 1180px !important; }
.system-popup-form { margin-bottom: 18px; }
.system-popup-form .checkbox-grid label { border: 1px solid #dfe2ea !important; background: #fafbfc; }
.access-matrix-page .tb td:not(:first-child) { font-size: 11px; }
.access-account-page > div:first-child { padding-bottom: 12px; border-bottom: 1px solid #eceef3; }
.access-user-modal { padding: 20px !important; }
.access-user-modal .t { font-size: 20px; }
.admin-empty-state { display:flex; min-height:120px; flex-direction:column; align-items:center; justify-content:center; gap:7px; color:#8b90a1; background:#fafbfc; font-size:12px; }
/* hidden 속성을 준 빈 상태 안내는 숨긴다(위 display:flex가 hidden을 덮어 '등록된 차시가 없습니다'가 늘 보이던 문제) */
.admin-empty-state[hidden] { display:none; }
.admin-empty-state i { font-size:24px; color:#b4b8c5; }
.admin-empty-state--compact { min-height:82px; }

/* 운영 강의와 강사 마이페이지가 함께 쓰는 차시·출결 작업 영역 */
.sess-layout{display:grid;grid-template-columns:minmax(240px,320px) 1fr;gap:16px;align-items:start}
.sess-nav{border:2px solid #222;border-radius:12px;background:#fafafa;overflow:hidden}
.sess-nav__hd{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;border-bottom:2px solid #222;background:#fff}
.sess-nav__hd h4{margin:0;font-size:14px;font-weight:800}
.sess-item{width:100%;text-align:left;padding:12px 14px;border:0;border-bottom:1px solid #ececec;background:transparent;cursor:pointer}
.sess-item:last-child{border-bottom:0}.sess-item:hover{background:#fff4cc}.sess-item.is-active{background:#fff4cc;box-shadow:inset 3px 0 0 #fac314}
.sess-item__round{font-size:12px;font-weight:800;color:#8a6200}.sess-item__title{font-size:13px;font-weight:800;margin:2px 0 4px;color:#222}.sess-item__meta{font-size:11px;color:#888;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.sess-att{border:2px solid #222;border-radius:12px;background:#fff;padding:16px;min-height:360px}.sess-att__hd{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.sess-sum{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}.sess-sum span{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:#f5f5f5}
.att-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #f0f0f0}.att-row:last-child{border-bottom:0}.att-btns{display:flex;gap:6px;flex-wrap:wrap}
.att-btn{min-width:64px;padding:7px 10px;border:2px solid #ddd;border-radius:8px;background:#fff;font-size:12px;font-weight:800;cursor:pointer;color:#888}.att-btn.is-on.att-ok{background:#e8f7f1;border-color:#085041;color:#085041}.att-btn.is-on.att-late{background:#fff4e5;border-color:#b45309;color:#b45309}.att-btn.is-on.att-no{background:#fdecef;border-color:#c7254e;color:#c7254e}.att-btn.is-on.att-empty{background:#f5f5f5;border-color:#aaa;color:#666}
@media(max-width:860px){.sess-layout{grid-template-columns:1fr}.att-row{align-items:flex-start;flex-direction:column}}
.system-list-section .tb,
.system-editor-page > .tb { margin-top:10px; }
.system-list-section .tb td:last-child,
.system-editor-page > .tb td:last-child { white-space:nowrap; }
.access-user-modal .fr { margin-bottom:10px; }
.access-user-modal .fi-input { min-height:40px; }
.running-detail-layout #student-reg-search-box { border:1px solid #e6e8f0 !important; background:#fafbfc !important; }
.running-detail-layout > div[style*="margin-top:30px"] { margin-top:18px !important; border:1px solid #e6e8f0 !important; border-radius:11px !important; padding:18px !important; }
@media (max-width:700px) {
  .system-form-layout .fg2,
  .system-list-page .admin-stats { grid-template-columns: 1fr; }
}

/* 넓은 화면(1180px 이상) 전용 배치 이어서. 위 공통 규칙이 이 블록 안에 끼어 있어 1180px 미만에서 공통 규칙이 통째로 빠지던 문제를 바로잡았다(2026-11-13). */
@media (min-width: 1180px) {
  /* 회원관리: 고정정보·수정정보·유형별 연결을 분리한 실무형 폼 */
  .member-practical-form { max-width: 1120px; }
  .member-fixed-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 14px 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }
  .member-fixed-summary > div { min-height: 92px; padding: 18px 20px; border-right: 1px solid #e5e7eb; }
  .member-fixed-summary > div:last-child { border-right: 0; }
  .member-fixed-summary > div > span { display: block; margin-bottom: 10px; color: #667085; font-size: 11px; font-weight:700; }
  .member-fixed-summary > div > strong { font-size: 18px; }
  .member-fixed-summary .member-type-badge,
  .member-fixed-summary .member-site-badge { margin-left: 0; }
  .member-edit-card {
    max-width: 1120px;
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }
  .member-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -18px -20px 16px; padding: 15px 20px; border-bottom: 1px solid #e5e7eb; }
  .member-card-head h2 { margin: 0; color: #172033; font-size: 15px; }
  .member-card-head small { display: block; margin-top: 4px; color: #7b8495; font-size: 10px; }
  .member-edit-card .fr { margin-bottom: 10px; }
  .member-edit-card .fi-input { min-height: 42px; }
  .member-detail-tabs { margin-top: 16px; }
  .member-detail-tabs .tab { cursor: pointer; }
  .member-tab-panel { display: none; }
  .member-tab-panel.active { display: block; }
  .member-tab-panel .member-edit-card { margin-top: 0; }
  .member-linked-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; padding: 12px; border-radius: 9px; background: #f7f8fb; }
  .member-linked-summary > div { padding: 2px 12px; border-right: 1px solid #e5e7eb; }
  .member-linked-summary > div:last-child { border-right: 0; }
  .member-linked-summary span,
  .member-linked-summary strong { display: block; }
  .member-linked-summary span { margin-bottom: 4px; color: #7b8495; font-size: 9px; }
  .member-linked-summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .member-consent-switches { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 8px; }
  .member-consent-switches label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid #dfe3ea; border-radius: 9px; background: #fafbfc; cursor: pointer; }
  .member-consent-switches span strong,
  .member-consent-switches span small { display: block; }
  .member-consent-switches span strong { font-size: 12px; }
  .member-consent-switches span small { margin-top: 3px; color: #7b8495; font-size: 10px; }
  .member-consent-switches input { position: absolute; opacity: 0; pointer-events: none; }
  .member-consent-switches i { width: 38px; height: 22px; flex: 0 0 auto; padding: 3px; border-radius: 999px; background: #cbd0db; transition: .2s; }
  .member-consent-switches i::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #999; transition: .2s; }
  .member-consent-switches input:checked + i { background: #168465; }
  .member-consent-switches input:checked + i::after { transform: translateX(16px); }
  .member-relation-card { max-width: 1120px; border-color: #e5e7eb !important; background: #fff !important; }
  .member-filter-tabs { align-items: center; }
  .member-filter-tabs .member-consent-filter { margin-left: auto; color: #765a17; background: #fffaf0; }
  .member-filter-tabs .member-consent-filter b { margin-left: 4px; }
  @media (max-width: 900px) {
    .member-fixed-summary,
    .member-linked-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-fixed-summary > div:nth-child(2),
    .member-linked-summary > div:nth-child(2) { border-right: 0; }
    .member-consent-switches { grid-template-columns: 1fr; }
    .member-filter-tabs .member-consent-filter { margin-left: 0; }
  }

  /* 강사·교육장 실무형 상세 폼 */
  .management-form-layout { max-width: 1180px; }
  .management-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 14px 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }
  .management-summary > div { min-height: 92px; padding: 18px 20px; border-right: 1px solid #e5e7eb; }
  .management-summary > div:last-child { border-right: 0; }
  .management-summary span { display: block; margin-bottom: 10px; color: #667085; font-size: 11px; font-weight:700; }
  .management-summary strong { display: block; overflow: hidden; color: #172033; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
  .management-status-badge { display: inline-flex !important; width: max-content; padding: 4px 9px; border: 1px solid #bfe4d6; border-radius: 999px; color: #17634e !important; background: #eaf7f2; font-size: 10px !important; }
  .management-tabs { display: flex; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; overflow-x: auto; }
  /* 기본 .tab의 margin-bottom:-2px가 남으면 overflow-x:auto 줄에 세로 스크롤이 생긴다 */
  .management-tabs .tab { flex: 0 0 auto; margin-bottom: 0; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 999px; color: #667085; background: #fff; font-size: 11px; font-weight: 700; }
  .management-tabs .tab.act { color: #493a04; border-color: #e1b51e; background: #fff7dc; }
  .management-form-layout .form-panel { max-width: 1180px; padding: 18px 20px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
  .management-panel-head { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; margin: -18px -20px 16px; padding: 15px 20px; border-bottom: 1px solid #e5e7eb; }
  .management-panel-head h2 { margin: 0; color: #172033; font-size: 15px; }
  .management-panel-head p { margin: 4px 0 0; color: #7b8495; font-size: 10px; }
  .management-form-layout .form-panel .fi-input { min-height: 42px; }
  .management-form-layout .form-panel .fr { margin-bottom: 10px; }
  .teacher-management-form .prof { display: none; }
  .teacher-management-form #tc-panel-5 #availability-list > div { padding: 10px; border: 1px solid #e5e7eb; border-radius: 9px; background: #f8fafc; }
  .organ-management-form #og-panel-2 .organ-doc-settlement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .organ-management-form #og-panel-4,
  .organ-management-form #og-panel-5 { background: #fafbfc; }
  @media (max-width: 900px) {
    .management-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .management-summary > div:nth-child(2) { border-right: 0; }
    .organ-management-form #og-panel-2 .organ-doc-settlement-grid { grid-template-columns: 1fr; }
  }

  /* 개설강의: 일정·인원·비용은 짧은 값이므로 4열 */
  .opening-form-layout .wizard-panel .fg,
  .opening-form-layout .wizard-panel .fg3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 14px;
  }
  .opening-form-layout .wizard-panel .fr {
    margin-bottom: 8px;
  }
  .opening-form-layout .wizard-panel > .sl {
    margin: 14px 0 8px;
  }

  /* 강사 출강옵션: 기본 조건은 한 행, 선택 목록은 전체 폭 */
  .teacher-options-layout > .fg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .teacher-options-layout #availability-list {
    max-width: 920px;
  }

  /* 강좌 운영·공급 조건은 숫자/선택 항목 중심의 4열 */
  .course-operation-layout .fg,
  .course-operation-layout .fg3,
  .course-supply-layout .fg,
  .course-supply-layout .fg3,
  .material-price-layout .fg3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1179px) and (min-width: 701px) {
  .form-panel .fg,
  .form-panel .fg3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .form-panel .fg,
  .form-panel .fg3 {
    grid-template-columns: 1fr;
  }
  .form-panel select.fi-input:not([multiple]),
  .form-panel input[type="date"].fi-input,
  .form-panel input[type="time"].fi-input,
  .form-panel input[type="number"].fi-input {
    width: 100% !important;
    max-width: none;
  }
}

/* 회원·상담: 유학생 LMS와 같은 중립 팔레트 + 단일 포인트 */
.members-ui .kc,
.contacts-ui .kc,
.contact-detail-ui .kc,
.contact-detail-ui.contact-surface {
  background: #fff !important;
  border-color: var(--admin-line) !important;
  color: #1d2033 !important;
}
.contacts-ui .s {
  background: #fff !important;
  border-color: var(--admin-line) !important;
}
.members-ui .kv,
.contacts-ui .kv,
.contact-detail-ui .kv,
.members-ui .tag,
.contacts-ui .tag,
.contact-detail-ui .tag {
  color: #343849 !important;
}
.members-ui .tag,
.contacts-ui .tag,
.contact-detail-ui .tag {
  background: #f1f2f6 !important;
  border-color: #dfe1e8 !important;
  box-shadow: none !important;
}
.contacts-ui > div[style*="background"],
.contact-detail-ui div[style*="background:#faf8ff"],
.contact-detail-ui div[style*="background:#fff8e6"],
.contact-detail-ui div[style*="background:#fff4cc"] {
  background: #f8f9fc !important;
  border-color: var(--admin-line) !important;
  color: #4b5062 !important;
}
.contacts-ui > div[style*="background"] *,
.contact-detail-ui div[style*="background:#faf8ff"] *,
.contact-detail-ui div[style*="background:#fff8e6"] *,
.contact-detail-ui div[style*="background:#fff4cc"] * {
  color: inherit !important;
}
.contact-detail-ui .step,
.contact-detail-ui [style*="background:#fac314"] {
  background: #eef0f5 !important;
  color: #4b5062 !important;
}

/* 강사 기본정보: 화면 폭이 좁아져도 한 줄 한 필드로 돌아가지 않게 유지 */
@media (min-width: 800px) {
  #tc-panel-1.form-panel--compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 14px;
    align-items: start;
  }
  #tc-panel-1.form-panel--compact-grid > .fg,
  #tc-panel-1.form-panel--compact-grid > .fg3 {
    display: contents;
  }
  #tc-panel-1.form-panel--compact-grid > .prof,
  #tc-panel-1.form-panel--compact-grid > .fr:has(textarea) {
    grid-column: 1 / -1;
  }
  #tc-panel-1 .fi-input {
    width: 100% !important;
    max-width: none !important;
  }
}

/* 회원 목록: 큰 카드 배경은 중립, 식별 정보만 저채도 색상으로 구분 */
.member-type-badge,
.member-site-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}
.member-type-badge.type-student { color: #285f8f; background: #edf5fb; border-color: #c9dfef; }
.member-type-badge.type-parent  { color: #725b19; background: #faf6e8; border-color: #e8ddb8; }
.member-type-badge.type-teacher { color: #31705c; background: #edf7f3; border-color: #c9e5da; }
.member-type-badge.type-organ   { color: #67538a; background: #f4f0f8; border-color: #ddd2e9; }
.member-site-badge { margin-left: 6px; color: #555b6f; background: #f2f3f6; border-color: #dfe1e8; }
.member-site-badge.site-crayon { color: #795b08; background: #fff8df; border-color: #ead993; }
.member-site-badge.site-mingle { color: #285f8f; background: #edf5fb; border-color: #c9dfef; }
.member-site-badge.site-edumall { color: #31705c; background: #edf7f3; border-color: #c9e5da; }
.parent-detail-context .member-fixed-summary { margin-bottom:16px; }
.parent-detail-context .member-edit-card { max-width:1120px; }

/* 회원 계정에서 연결된 강사·교육장 업무 화면으로 이동하는 주요 동선 */
.member-management-link-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  max-width:1120px;
  min-height:82px;
  margin:14px 0 18px;
  padding:17px 20px;
  border:1px solid #e3d59f;
  border-left:5px solid #d9ad32;
  border-radius:13px;
  background:#fffaf0;
}
.member-management-link-main { display:flex; align-items:center; gap:14px; min-width:0; }
.member-management-link-icon {
  display:grid;
  place-items:center;
  flex:0 0 48px;
  width:48px;
  height:48px;
  border-radius:12px;
  background:#242424;
  color:#f5bd19;
  font-size:22px;
}
.member-management-link-copy { min-width:0; }
.member-management-link-copy strong { display:block; color:#1d2033; font-size:16px; line-height:1.35; }
.member-management-link-copy span { display:block; margin-top:5px; color:#697184; font-size:12px; line-height:1.4; }
.member-management-link-action {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex:0 0 auto;
  min-width:166px;
  min-height:44px;
  padding:10px 17px !important;
  font-weight:750;
}
.member-management-link-card.is-unlinked { border-color:#dfe2e8; border-left-color:#aeb5c0; background:#f8f9fb; }
.member-management-link-card.is-unlinked .member-management-link-icon { background:#697184; color:#fff; }

/* 강사 기본정보는 기존 fg 행 구조와 무관하게 항상 실제 다열 배치 */
.teacher-basic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: start;
}
.teacher-basic-grid > .fg,
.teacher-basic-grid > .fg3 {
  display: contents !important;
}
.teacher-basic-grid .fr {
  min-width: 0;
  margin-bottom: 0;
}
.teacher-basic-grid .fi-input {
  width: 100% !important;
  max-width: none !important;
}
.teacher-basic-grid .fr:has(#f-address) {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .teacher-basic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .teacher-basic-grid { grid-template-columns: 1fr; }
  .teacher-basic-grid .fr:has(#f-address) { grid-column: auto; }
}

/* 교육장 상세: 촘촘한 업무형 폼과 선택형 시설 옵션 */
.facility-options { display:flex; flex-wrap:wrap; gap:6px; min-width:240px; }
.facility-options label { cursor:pointer; }
.facility-options input { position:absolute; opacity:0; pointer-events:none; }
.facility-options span { display:inline-flex; align-items:center; min-height:30px; padding:4px 9px; border:1px solid #dfe3e8; border-radius:7px; background:#fff; color:#59636f; font-size:12px; white-space:nowrap; }
.facility-options input:checked + span { border-color:#9cb3a9; background:#eef5f1; color:#285b49; font-weight:700; }
.organ-class-table td { vertical-align:middle; }
.empty-state { padding:42px 16px; text-align:center; color:#8b949e; border:1px dashed #dfe3e8; border-radius:10px; background:#fafbfc; font-size:13px; }
.organ-basic-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
.organ-basic-grid > .fg,
.organ-basic-grid > .fg3 { display:contents !important; }
.organ-basic-grid > .sl { grid-column:1/-1 !important; margin:12px 0 0 !important; }
.organ-basic-grid > .fr { grid-column:auto !important; min-width:0; }
.organ-basic-grid > .fr:has(textarea) { grid-column:span 2 !important; }
.organ-basic-grid .fi-input { width:100% !important; max-width:none !important; }
.organ-doc-settlement-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:18px; }
.organ-image-field { grid-column:1/-1; width:min(100%,656px); }
.organ-image-uploader { display:flex; align-items:center; gap:16px; padding:14px; border:1px solid #e0e4eb; border-radius:12px; background:#fafbfc; }
.organ-image-preview { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:5px; width:150px; height:96px; overflow:hidden; border:1px dashed #ccd2dc; border-radius:9px; background:#fff; color:#9299a7; font-size:11px; }
.organ-image-preview i { font-size:24px; }
.organ-image-preview img { width:100%; height:100%; object-fit:cover; }
.organ-image-remove { margin-left:5px; color:#8b4450; }
.organ-room-editor tbody tr { border-bottom:12px solid #fff; background:#fafbfc; }
.organ-room-editor tbody td { padding:16px 12px; vertical-align:top; border-top:1px solid #e1e5ec; border-bottom:1px solid #e1e5ec; }
.organ-room-editor tbody td:first-child { border-left:1px solid #e1e5ec; border-radius:11px 0 0 11px; }
.organ-room-editor tbody td:last-child { border-right:1px solid #e1e5ec; border-radius:0 11px 11px 0; }
.room-field-label { display:block; margin:0 0 6px; color:#626a7b; font-size:10px; font-weight:750; }
.room-limit-label,.room-facility-label { margin-top:12px; }
.room-capacity { display:flex; align-items:center; gap:6px; }
.room-capacity .fi-input { width:72px !important; padding:6px 8px !important; }
.room-capacity span { color:#747c8c; font-size:11px; }
.room-image-uploader .organ-image-preview { width:108px; height:76px; margin-bottom:7px; }
.room-image-button { width:108px; padding:6px 8px !important; font-size:11px; }
.room-image-uploader .organ-image-remove { display:block; width:108px; margin:5px 0 0; padding:5px !important; font-size:10px; }
.room-image-uploader .organ-image-remove[hidden] { display:none; }
.room-seating-options { display:flex; gap:5px; }
.room-seating-options input { position:absolute; opacity:0; pointer-events:none; }
.room-seating-options span { display:inline-flex; align-items:center; justify-content:center; min-width:52px; min-height:31px; padding:4px 8px; border:1px solid #dfe3e8; border-radius:7px; background:#fff; color:#59636f; font-size:11px; cursor:pointer; }
.room-seating-options input:checked + span { border-color:#d9ad32; background:#fff7dc; color:#604a08; font-weight:750; }

/* 강좌 기본정보 + 상품 상세 정보 통합 편집 */
.course-product-panel { padding:0 !important; overflow:hidden; }
.course-product-panel .course-section-head { margin:0; padding:18px 20px; border-bottom:1px solid #e7e9ee; }
.course-product-panel .course-product-detail-head { margin-top:6px; border-top:1px solid #e7e9ee; }
.course-product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; padding:18px 20px; }
.course-product-grid .fr,.course-selling-grid .fr { min-width:0; margin:0; }
.course-product-grid .fi-input,.course-selling-grid .fi-input { width:100%; max-width:none; box-sizing:border-box; }
.course-product-grid .course-grid-wide { grid-column:1/-1; }
.course-selling-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:0 20px 22px; }
.course-short-textarea { min-height:82px !important; }
.course-operation-layout { max-width:1120px; }
.course-operation-layout > .fg3 { display:grid; grid-template-columns:repeat(3,minmax(0,240px)); gap:14px; justify-content:start; }
.course-operation-layout > .fr { max-width:748px; }

/* 강의 개설: 주 횟수에 맞춘 요일·시간 및 신청·렌탈 조건 */
.opening-weekly-schedule { display:grid; gap:8px; }
.weekly-schedule-row { display:grid; grid-template-columns:54px minmax(110px,150px) minmax(130px,160px) 18px minmax(130px,160px); align-items:center; gap:8px; padding:10px; border:1px solid #e1e5ec; border-radius:9px; background:#fff; }
.weekly-schedule-row.is-monthly { grid-template-columns:54px minmax(105px,135px) minmax(110px,150px) minmax(130px,160px) 18px minmax(130px,160px); }
/* ③ 요일은 회차 줄(몇째 주·요일·시작~종료)이 길어 일정 영역 가로 전체를 쓴다. */
.opening-schedule-step:has(#weekly-schedule-rows) { grid-column:1 / -1; }
/* 좁은 화면: 월 단위는 [회차·주·요일] / [시작 ~ 종료] 두 줄로. */
@media (max-width: 760px) {
  .weekly-schedule-row.is-monthly { grid-template-columns:54px minmax(0,1fr) 18px minmax(0,1fr); }
  .weekly-schedule-row.is-monthly .ws-day { grid-column:4; }
  .weekly-schedule-row.is-monthly .ws-start { grid-column:1 / 3; }
}
.weekly-schedule-row b { color:#765b0b; font-size:11px; }
.weekly-schedule-row span { color:#7a8291; text-align:center; }
.opening-application-card { margin-top:14px; padding:14px; border:1px solid #e2e5ec; border-radius:11px; background:#fafbfc; }
.opening-application-grid { display:grid; grid-template-columns:repeat(3,minmax(0,220px)); gap:12px; }
.opening-application-grid .fr { margin:0; }
/* 교구 선택은 칸 너비를 다 쓴다(교구 이름이 길다) */
.s #f-material.fi-input { max-width:none; }
/* 렌탈 조건: 위에 기간·재고 한 줄, 아래에 수량 두 칸 */
.opening-rental-condition { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:12px; margin-top:12px; padding:13px; border:1px solid #d9ad32; border-radius:9px; background:#fffaf0; }
.opening-rental-condition[hidden] { display:none; }
.opening-rental-plan { grid-column:1 / -1; padding-bottom:10px; border-bottom:1px dashed #ead18a; }
.opening-rental-plan > span,.opening-rental-condition label { display:block; color:#676f80; font-size:10px; font-weight:750; }
.opening-rental-plan #rental-plan { margin-top:6px; color:#5f4a0c; font-size:12.5px; line-height:1.55; }
.opening-rental-plan #rental-plan strong { display:block; color:#765b0b; font-size:15px; }
.opening-rental-plan #rental-plan p { margin:2px 0 0; }
.opening-rental-plan #rental-plan .is-short { color:#b42318; font-weight:700; }
.opening-rental-condition label { min-width:0; }
.opening-rental-condition label .fi-input { margin-top:5px; width:100%; box-sizing:border-box; }
.opening-rental-condition label > small { display:block; margin-top:4px; color:#8a8f9c; font-size:10.5px; font-weight:500; line-height:1.4; }
/* 지급 안 함 체크, 강사 사전 확인용 렌탈 */
.opening-unpaid-check { display:flex !important; flex-wrap:wrap; align-items:center; gap:2px 6px; margin-top:6px; color:#4b5064 !important; font-size:12px !important; font-weight:700 !important; cursor:pointer; }
.opening-unpaid-check > span { flex-basis:100%; padding-left:22px; color:#8a8f9c; font-size:11px; font-weight:500; }
.opening-teacher-preview { grid-column:1 / -1; padding-top:10px; border-top:1px dashed #ead18a; }
.opening-teacher-preview__fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:8px; }
.opening-teacher-preview__fields[hidden] { display:none; }
.opening-auto-cost .fi-input[readonly] { color:#343b4d; background:#f3f5f8; cursor:default; }
.opening-auto-cost.is-manual .fi-input { border-color:#d9ad32; background:#fffdf7; }
.auto-cost-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:6px; }
.auto-cost-meta span { color:#768092; font-size:10px; }
.auto-cost-meta .btn { flex:0 0 auto; padding:4px 8px !important; font-size:10px; }
.cost-override-reason { max-width:740px; margin:14px 0; padding:13px; border-left:4px solid #d9ad32; border-radius:8px; background:#fffaf0; }
.cost-override-reason[hidden] { display:none; }
.cost-override-reason textarea { min-height:72px !important; }
.field-help { margin:6px 0 0; color:#8a929c; font-size:11px; line-height:1.45; }
.od-fname { display:inline-block; max-width:220px; margin-left:8px; overflow:hidden; color:#606975; font-size:12px; text-overflow:ellipsis; vertical-align:middle; white-space:nowrap; }
@media (max-width:900px) {
  .organ-basic-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .organ-doc-settlement-grid { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .organ-basic-grid { grid-template-columns:1fr !important; }
  .organ-basic-grid > .fr:has(textarea) { grid-column:auto !important; }
}

/* 관리자 메모: 기본 약 10줄, 내용만큼 늘어나고 최대 약 25줄부터 스크롤. field-sizing 미지원 브라우저는 10줄에서 스크롤. */
.admin-page textarea.fi-input.admin-memo {
  min-height: 210px;
  max-height: 480px;
  field-sizing: content;
  overflow-y: auto;
  resize: vertical;
}

/* 정산 줄 보조 동작(금액 조정·확정 취소)은 ⋯ 를 눌렀을 때만 펼친다 */
.settlement-more { position:relative; display:inline-block; vertical-align:middle; }
.settlement-more > summary { list-style:none; cursor:pointer; }
.settlement-more > summary::-webkit-details-marker { display:none; }
.settlement-more[open] > summary { background:#f1f3f6; }
.settlement-more-menu { position:absolute; right:calc(100% + 4px); top:50%; transform:translateY(-50%); z-index:20; display:grid; grid-auto-flow:column; gap:4px; padding:6px; background:#fff; border:1px solid #e2e5eb; border-radius:8px; box-shadow:0 6px 18px rgba(20,30,50,.12); }
.settlement-more-menu .btn { width:100%; white-space:nowrap; }
.tb td:has(> .settlement-more) { overflow:visible; }

/* 금액·날짜를 잘리지 않게 보여야 하는 표(정산 근거 등): 칸 너비를 내용에 맞추고 글자 칸만 줄바꿈한다. 숫자 칸은 .tb-num으로 한 줄 유지 */
.tb.tb-fit { table-layout:auto; }
.tb.tb-fit th, .tb.tb-fit td { overflow:visible; text-overflow:clip; white-space:normal; word-break:keep-all; }
.tb.tb-fit .tb-num { white-space:nowrap; }

/* 회원 기본정보: 이름·연락처·이메일 / 상태·생년월일·비밀번호 / 기본주소·상세주소 3줄 */
.member-basic-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px 14px; align-items:start; }
.member-basic-grid > .fr { grid-column:span 2; margin-bottom:0; }
.member-basic-grid > .fr.member-basic-half { grid-column:span 3; }
@media (max-width:900px) {
  .member-basic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .member-basic-grid > .fr, .member-basic-grid > .fr.member-basic-half { grid-column:span 1; }
}
@media (max-width:620px) {
  .member-basic-grid { grid-template-columns:1fr; }
}

/* 수신 동의 탭 바로 옆의 개별 관리 화면 이동 링크: 탭과 같은 모양 */
.member-tab-link { display:inline-flex; align-items:center; gap:4px; text-decoration:none; }

/* 상세 화면 공통 문의 이력 요약(최근 3건) */
.contact-history-card { grid-column:1 / -1; margin-top:14px; padding:16px 18px; background:#fff; border:1px solid #e5e7eb; border-radius:12px; }
.contact-history-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.contact-history-head h2 { margin:0 0 2px; font-size:14px; }
.contact-history-head small { color:#667085; font-size:11px; }

/* 사이드 메뉴 하위 항목 옆 작은 표시(예: AI 자동화 예정) */
.admin-sidebar__badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid rgba(255,214,78,.45); border-radius: 999px; color: #ffd64e; font-size: 9.5px; font-weight: 700; line-height: 1.5; vertical-align: middle; white-space: nowrap; }


/* 강의 개설 1단계: 이용 사이트 아이콘 카드, 강좌 분류 칩·검색·목록 한 상자 */
.opening-site-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:8px; }
.opening-site-card { display:flex; flex-direction:column; align-items:center; gap:6px; padding:14px 10px; border:1px solid #e2e5eb; border-radius:12px; background:#fff; color:#344054; cursor:pointer; font:inherit; }
.opening-site-card i { font-size:24px; color:#8a6200; }
.opening-site-card b { font-size:12.5px; }
.opening-site-card:hover { border-color:#e1b51e; }
.opening-site-card.is-selected { border-color:#e1b51e; background:#fff7dc; box-shadow:0 0 0 2px rgba(225,181,30,.25) inset; }
.opening-course-box { display:grid; gap:8px; }
.opening-category-chips { display:flex; flex-wrap:wrap; gap:6px; }
.opening-chip { padding:6px 11px; border:1px solid #e2e5eb; border-radius:999px; background:#fff; color:#667085; font:inherit; font-size:11.5px; font-weight:700; cursor:pointer; }
.opening-chip.is-active { border-color:#e1b51e; background:#fff7dc; color:#493a04; }
.opening-course-list { display:grid; gap:4px; max-height:320px; overflow-y:auto; padding:2px; }
.opening-course-item { display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:9px 12px; border:1px solid #eceef3; border-radius:9px; background:#fff; text-align:left; font:inherit; cursor:pointer; }
.opening-course-item b { font-size:13px; color:#172033; }
.opening-course-item span { font-size:11px; color:#888; }
.opening-course-item:hover { border-color:#e1b51e; }
.opening-course-item.is-selected { border-color:#e1b51e; background:#fff7dc; }

/* 강의 개설: 지역 칩과 섹션 제목 옆 바로가기 */
.opening-region-chips { margin-bottom:2px; }
.opening-inline-link { margin-left:6px; font-size:11px; font-weight:600; }

/* 강의 개설: 교구비 별도 청구 체크 */
.opening-material-charge { display:flex; align-items:center; gap:6px; margin:8px 0 4px; font-size:12.5px; font-weight:600; }

/* 강의 개설 목록 묶음 제목(예: 서울시 출강 가능) */
.opening-list-head { margin:8px 4px 2px; font-size:11px; font-weight:800; color:#8a6200; }

/* 만족도 설문 배포(링크·QR)와 결과 */
.survey-share { padding:16px 18px; border:1px solid #ead9a0; border-radius:12px; background:#fffdf4; margin-bottom:14px; }
.survey-share__head h3 { margin:0 0 4px; font-size:15px; }
.survey-share__head p { margin:0; color:#667085; font-size:12px; }
.survey-share__body { display:flex; gap:16px; align-items:flex-start; margin-top:12px; flex-wrap:wrap; }
.survey-qr { width:164px; height:164px; border:1px solid #e5e7eb; border-radius:10px; background:#fff; image-rendering:pixelated; }
.survey-share__actions { flex:1 1 260px; min-width:0; display:grid; gap:8px; }
.survey-share__buttons { display:flex; flex-wrap:wrap; gap:6px; }
.survey-comment { padding:10px 12px; border:1px solid #eceef3; border-radius:10px; margin-bottom:6px; background:#fff; }
.survey-comment p { margin:6px 0 0; font-size:13px; }

/* 강사 마이페이지 수강생 등록 */
.teacher-student-form { padding:14px; border:1px solid #e6e8f0; border-radius:10px; background:#fafbfc; }
.teacher-student-bulk { margin-top:10px; padding:10px 14px; border:1px solid #e6e8f0; border-radius:10px; }
.teacher-student-bulk summary { cursor:pointer; font-weight:700; font-size:13px; }

/* 교육장 상세 교육장 메모 입력, CRM 수강생 펼침 */
.organ-note-form { display:grid; grid-template-columns:120px 1fr auto; gap:8px; align-items:start; margin-bottom:10px; }
@media (max-width:700px){ .organ-note-form { grid-template-columns:1fr; } }
.crm-customer__toggle { display:inline-flex; align-items:center; gap:4px; max-width:calc(100% - 44px); padding:0; border:0; background:none; color:inherit; font:inherit; cursor:pointer; vertical-align:middle; }
.crm-customer__toggle b { overflow:hidden; text-overflow:ellipsis; }
.crm-customer__toggle i { flex:none; transition:transform .15s; }
.crm-customer__toggle[aria-expanded="true"] i { transform:rotate(90deg); }
.crm-customers td.crm-customers__wrap, .crm-customers__classes td { white-space:normal; word-break:keep-all; overflow-wrap:anywhere; }
.crm-customers__detail > td { padding:4px 14px 14px 20px; background:#fafbfc; }
.crm-customers__classes { margin:0; }
