/* 자동 생성: node scripts/scope-css.mjs  (원본 styles/legacy-output.css 를 .out-scope 안으로 묶음). 직접 고치지 말 것. */
/* ══════════════════════════════════════════════════════════════════
   반응형 브레이크포인트 정책 (현황 기록 — 2026-08)

   이 파일에는 성격이 다른 반응형 기준이 두 종류 섞여 있다. 둘 다 "모바일"을
   뜻하지만 발동 조건이 달라서, 서로 안 맞물리는 화면(대표적으로 아이패드 세로)이
   생긴다. 수정 전 아래를 먼저 읽을 것.

   [A] @media (max-aspect-ratio:3/4)  — 가로세로비 0.75 이하(세로로 긴 화면)
       기준이 "폭"이 아니라 "화면 모양"이다. 뷰포트 폭은 보지 않는다.
       원본 사이트(첫 커밋)부터 있던 기반 전략이며 max- 8곳 + min- 1곳에서 쓰인다.
       (각 사용처에는 "[A] 세로비 기준" 주석을 달아뒀다. grep 하면 찾을 수 있다.)
         .container       max-width 1040 -> 720px, padding 16 -> 20px
         .brand-img img   큰 로고 120px (min-width:768px와 OR 조건)
         .grid            퀴즈 카드 2열 -> 1열
         .tabs-grid       탭 목록 2열 -> 1열
         .tabs-grid       (min- 조건) 가로일 때 내체표 2열
         .header          헤더 폭 제한 해제 + 패딩 재계산
         .brand-img img   작은 로고 28px (min-width:768px와 OR 조건)
         .grid            gap 16px
         #tabs input      font-size 16px (iOS 입력 시 자동확대 방지)
       주의: 폭이 아닌 비율 기준이라 폰 가로모드(비율 2.1)에서는 데스크톱
       레이아웃(카드 2열)이 나오고, 반대로 창을 세로로 길게 늘리면 폭이 넉넉해도
       1열이 된다. "몇 px부터"라는 답이 존재하지 않는다.

   [B] @media (max-width:720px)  — 뷰포트 폭 720px 이하
       나중에 추가된 폭 기준. 4곳에서 쓰인다.
       (각 사용처에는 "[B] 폭 기준" 주석을 달아뒀다.)
         .board-head      게시판 헤더/검색 축소
         #boardToolbarList 게시판 툴바 세로 전환, PC용 표 숨기고 모바일 카드 목록 표시
         .m-post          모바일 카드 스타일
         .home-extras     홈 위젯 세로 전환 + 순서 재배치 + 폭 100%
         .cboard-*        커뮤니티 한마디 위젯 — 폰에서 버튼 숨김/카드 236px

   [사각지대 - 홈 위젯은 2026-08-13 해소, 나머지는 유지]
   - (해소) 아이패드 세로와 데스크톱 창 721~815px에서 홈 위젯이 한 줄에도 못 들어가고
     정돈된 세로 스택도 아닌 어중간한 줄바꿈이 되던 문제. flex-wrap:nowrap + flex-shrink로
     "좁아지면 두 위젯이 같이 줄어들되 줄바꿈은 안 함"으로 바꿔서 없앴다.
     결과: 폰(<=720px)만 세로 스택, 그 위는 항상 한 줄.
   - 중요: 아이패드 세로의 컨텐츠 폭은 기기와 무관하게 **일괄 680px**이다.
     [A]가 .container를 720px로 캡하고 padding 20px를 주기 때문(뷰포트 744든 1024든 동일).
     "뷰포트 - 패딩"으로 계산하면 틀린다.
   - (유지) [A]는 비율 기준이라 폰 가로모드에서는 화면이 좁아도 데스크톱 레이아웃이 나온다.
     카드/탭 열수가 이에 해당. 폰 가로모드 사용 빈도가 낮아 수용 중.

   [참고] 전체 폭이 넓은 모니터에서 가운데만 차는 것은 위 두 규칙과 무관하다.
   .container의 max-width:1040px + margin:0 auto 때문이며 의도된 설계다(좌우 광고 영역).
   ══════════════════════════════════════════════════════════════════ */

/* ── Toss Design Tokens ──────────────────────────────────────────── */
.out-scope {
  /* Brand */
  --toss-brand:        #F0527A;
  --toss-brand-dark:   #D4405F;
  --toss-brand-tint:   #FFF0F4;
  --toss-brand-10:     rgba(240, 82, 122, 0.12);
  --toss-brand-focus:  rgba(240, 82, 122, 0.45);

  /* Text — 5-level grayscale */
  --toss-text-strong:    #2A2A2A;
  --toss-text-primary:   #3C3C3C;
  --toss-text-secondary: #6A6A6A;
  --toss-text-tertiary:  #7A7A7A;
  --toss-text-disabled:  #9B9B9B;

  /* Backgrounds */
  --toss-bg-page:       #FFFFFF;
  --toss-bg-card:       #FAFAFA;
  --toss-bg-input:      #F4F4F4;
  --toss-surface-muted: #E8E6E1;

  /* Semantic / Status */
  --toss-up:          #10B981;
  --toss-down:        #FB7185;
  --toss-warning:     #F59E0B;
  --toss-info:        #3B82F6;
  --toss-success:     #10B981;

  /* Typography */
  --toss-font:        "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --toss-fw-normal:   400;
  --toss-fw-medium:   500;
  --toss-fw-semibold: 600;
  --toss-fw-bold:     700;

  /* Spacing (6px 배수) */
  --toss-sp-1:  6px;
  --toss-sp-2:  12px;
  --toss-sp-3:  18px;
  --toss-sp-4:  24px;  /* 섹션 간격 */
  --toss-sp-6:  36px;
  --toss-sp-8:  48px;  /* 히어로 패딩 */
  --toss-mx:    24px;  /* 카드 좌우 마진 (mx-6) */

  /* Border Radius */
  --toss-radius-card:  16px;    /* 카드 */
  --toss-radius-xl:    12px;    /* 큰 버튼 */
  --toss-radius-lg:    8px;     /* 일반 버튼 */
  --toss-radius-input: 12px;    /* 입력창 */
  --toss-radius-pill:  9999px;  /* 필 토글 */

  /* Shadows (불투명도 ≤ 8%) */
  --toss-shadow-card:     0 1px 4px rgba(0, 0, 0, 0.06);
  --toss-shadow-btn:      0 1px 3px rgba(0, 0, 0, 0.06);
  --toss-shadow-hover:    0 2px 4px rgba(0, 0, 0, 0.08);
  --toss-shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.08);
  --toss-shadow-modal:    0 8px 24px rgba(0, 0, 0, 0.12);

  /* Layout */
  --toss-max-w:   430px;
  --toss-pb-nav:  96px;   /* 바텀 네비 위 여유 공간 */
  --toss-touch:   44px;   /* 최소 터치 타깃 */

  /* Dividers & Borders */
  --toss-line:         rgba(0, 0, 0, 0.06);  /* 구분선 */
  --toss-border:       rgba(0, 0, 0, 0.10);  /* 인터랙티브 요소 테두리 */

  /* Brand opacity variants */
  --toss-brand-row:    rgba(240, 82, 122, 0.04);  /* 테이블 행 hover */
  --toss-brand-hover:  rgba(240, 82, 122, 0.15);  /* 버튼 hover 배경 */
  --toss-brand-border: rgba(240, 82, 122, 0.25);  /* 필/탭 테두리 */

  /* Status opacity variants */
  --toss-up-tint:   rgba(16, 185, 129, 0.08);    /* 정답 입력 배경 */
  --toss-up-border: rgba(16, 185, 129, 0.35);   /* tab-success 테두리 */
  --toss-down-tint: rgba(251, 113, 133, 0.10);  /* 오답 입력 배경 */
}

.out-scope {
  color-scheme: only light;
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #111827;
  --green: #16a34a;
  --green-bg: #dcfce7;
  --chip: #f8fafc;
  --chip-border: #e5e7eb;
  --headbar-overlap: -61px;
  --nav-lift: 51px;
  --headbar-fine: -118px;
  --btn-write-min: 81px;
  --board-post-font-size: 14px;
  --board-post-title-pad-left: 8px
}

.out-scope, .out-scope * {
  box-sizing: border-box
}

/* scrollbar-gutter: stable both-edges 제거 — 커뮤니티는 이 예약이 없어서
   페이지 전체가 좌우 15px씩 안쪽으로 들어가 보이는 차이의 원인이었음(헤더 정렬과 무관, 전역 이슈) */

@media (pointer:fine) {
  :where(.out-scope) [hidden] {
    display: none !important
  }
  /* body { overflow-y: scroll } 제거 — 커뮤니티처럼 필요할 때만 스크롤바가 뜨게(기본값).
     이전엔 짧은 페이지(홈 등)에서도 항상 스크롤바를 강제해 커뮤니티와 폭이 달라 보였음 */
}

html:has(.out-scope), .out-scope {
  min-height: 100%
}

.out-scope {
  margin: 0;
  background: var(--toss-bg-page);
  color: var(--text);
  font-family: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

:where(.out-scope) .container {
  width: 100%;
  max-width: 1040px; /* 커뮤니티(.ik-wrap)와 폭 통일 */
  margin: 0 auto;
  padding: 0 16px
}

/* [A] 세로비 기준 — 폭이 아니라 화면 모양. 아이패드 세로도 여기 걸려 컨테이너가
   720px로 좁아진다(홈 위젯이 한 줄에 못 들어가는 직접 원인). 상단 정책 주석 참고 */
@media (max-aspect-ratio:3/4) {
  :where(.out-scope) .container {
    max-width: 720px;
    padding: 0 20px
  }
}

/* [A] 세로비 기준 (OR 조건) — 폭 768 이상이거나 세로로 긴 화면이면 큰 로고 */

:where(.out-scope) .nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 2px;
  padding-bottom: 6px;
  margin-top: calc(-1 * var(--nav-lift));
  position: relative;
  z-index: 1
}

:where(.out-scope) .nav-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 6px 0
}

:where(.out-scope) .nav-row.scroll-x {
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  will-change: scroll-position
}

:where(.out-scope) .nav-row.scroll-x::-webkit-scrollbar {
  display: none
}

:where(.out-scope) .nav-row.scroll-x.overflow {
  justify-content: flex-start
}

:where(.out-scope) .nav-row.scroll-x.dragging {
  cursor: grabbing;
  user-select: none
}

:where(.out-scope) .nav-row a {
  text-decoration: none
}

:where(.out-scope) .chip, :where(.out-scope) .subchip {
  background: var(--chip);
  border: 1px solid var(--chip-border);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s;
  flex: 0 0 auto
}

:where(.out-scope) .subchip {
  border-radius: 8px
}

:where(.out-scope) .chip:hover, :where(.out-scope) .subchip:hover {
  transform: translateY(-1px)
}

:where(.out-scope) .chip.active, :where(.out-scope) .subchip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand)
}

:where(.out-scope) .section {
  padding: 18px 0
}

:where(.out-scope) .grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, 1fr)
}

/* [A] 세로비 기준 — 퀴즈 카드 2열 -> 1열. 폭 기준이 아니라서 "몇 px부터 1열"이라는
   답이 없다. 폰 가로모드에서는 화면이 좁아도 2열로 나온다 */
@media (max-aspect-ratio:3/4) {
  :where(.out-scope) .grid {
    grid-template-columns: 1fr;
    gap: 24px
  }
}

:where(.out-scope) .card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  background: #fafafa
}

:where(.out-scope) .card h2 {
  margin: 0 0 10px;
  font-size: 22px
}

:where(.out-scope) .row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0
}

:where(.out-scope) label {
  font-size: 13px;
  font-weight: 600;
  color: var(--toss-text-secondary)
}

:where(.out-scope) .substeps {
  margin: 6px 0 10px 14px;
  padding-left: 12px;
  border-left: 2px solid var(--line)
}

:where(.out-scope) .substeps .row {
  margin: 8px 0
}

:where(.out-scope) input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  font-size: 17px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, background-color .15s
}

:where(.out-scope) input[type="text"]:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .2)
}

:where(.out-scope) input[type="text"].ok {
  border-color: var(--toss-up);
  background: var(--toss-up-tint)
}

:where(.out-scope) input[type="text"].bad {
  border-color: var(--toss-down);
  background: var(--toss-down-tint)
}

:where(.out-scope) input::-webkit-contacts-auto-fill-button, :where(.out-scope) input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute
}

:where(.out-scope) .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

:where(.out-scope) #tabs {
  display: none
}

.out-scope.is-home #home {
  display: flex
}

.out-scope.is-home #grid, .out-scope.is-home #tabs {
  display: none
}

.out-scope.is-tab #home, .out-scope.is-tab #grid {
  display: none
}

.out-scope.is-tab #tabs {
  display: block
}

:where(.out-scope) #home[hidden], :where(.out-scope) #tabs[hidden] {
  display: none !important
}

:where(.out-scope) .tabs-grid {
  column-count: 2;
  column-gap: 28px
}

/* [A] 세로비 기준 — 탭 목록 1열 */
@media (max-aspect-ratio:3/4) {
  :where(.out-scope) .tabs-grid {
    column-count: 1;
    column-gap: 24px
  }
}

:where(.out-scope) #tabs[data-ctx="nae"] .tabs-grid {
  column-count: 1;
  column-gap: 24px
}

/* [A] 세로비 기준 (min- 반대 조건) — 가로로 넓은 화면일 때만 내체표 2열 */
@media (min-aspect-ratio:3/4) {
  :where(.out-scope) #tabs[data-ctx="nae"].nae-2col .tabs-grid {
    column-count: 2;
    column-gap: 28px
  }
}

/* 2열 배치 과목은 카드 폭이 좁으므로 표의 범주(첫째) 열을 슬림하게.
   범주 라벨은 모두 가운뎃점·줄갈이로 세로 스택되며(핵심→아이→디어 포함) 좁은 폭에 들어간다. */
:where(.out-scope) #tabs[data-ctx="nae"].nae-2col .matrix-table .cat {
  width: 38px;
  padding-left: 7px;
  padding-right: 7px
}

:where(.out-scope) #tabs.edu-1col .tabs-grid {
  column-count: 1;
  column-gap: 24px
}

/* 통합 표의 범주(첫째) 열도 빈칸 입력이라 60px 기본폭으로는 옹색해 넓힌다 */
:where(.out-scope) #tabs[data-ctx="edu"][data-item="통합"] .matrix-table .cat {
  width: 170px
}

:where(.out-scope) .tabs-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 28px;
  border: 1px solid var(--toss-border);
  border-radius: 16px;
  padding: 20px 24px;
  background: #fafafa
}

:where(.out-scope) .tabs-card h2 {
  margin: 0 0 10px;
  font-size: 20px
}

:where(.out-scope) .tabs-muted {
  color: var(--muted);
  font-size: 14px
}

:where(.out-scope) .actions {
  display: flex;
  gap: 8px;
  margin-top: 12px
}

:where(.out-scope) .btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--toss-radius-xl);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: var(--toss-fw-semibold);
  cursor: pointer;
  transition: filter .15s, background .15s
}

:where(.out-scope) .btn-green {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff
}

:where(.out-scope) .btn-red {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff
}

:where(.out-scope) .btn-green:hover, :where(.out-scope) .btn-red:hover {
  filter: brightness(.95)
}

:where(.out-scope) #tabs .global-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin: 16px 0 28px;
  column-span: all
}

:where(.out-scope) #tabs .global-actions .btn-camera {
  background: #374151;
  border-color: #374151;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  position: relative;
  top: -1px
}

:where(.out-scope) #tabs[data-loading="1"] .global-actions {
  display: none !important
}

:where(.out-scope) .input-wrap {
  position: relative;
  display: block;
  width: 100%
}

:where(.out-scope) .input-wrap>input[type="text"] {
  width: 100%;
  padding-right: 12px
}

:where(.out-scope) .ghost-in {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  max-width: min(38%, 220px);
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  color: #ef4444;
  opacity: .65;
  font-size: 13px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1
}

:where(.out-scope) #tabs[data-ctx="mo"] .ghost-in {
  color: var(--muted) !important;
  opacity: .8 !important;
  font-size: 12px
}

:where(.out-scope) #tabs[data-ctx="mo"]:not([data-item="전과목 역량"]):not([data-item="전과목 모형 이름"]) .ghost-in {
  position: static;
  display: block;
  transform: none;
  max-width: none;
  margin: 5px 2px 0;
  overflow: visible;
  text-overflow: clip;
  text-align: left;
  white-space: normal;
  line-height: 1.35;
  pointer-events: none
}

:where(.out-scope) .matrix-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff
}

:where(.out-scope) .tabs-card .matrix-table {
  margin-top: 18px;
  margin-bottom: 8px;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08)
}

:where(.out-scope) .tabs-card .matrix-table th, :where(.out-scope) .tabs-card .matrix-table td {
  padding: 14px 16px;
  line-height: 1.85
}

:where(.out-scope) .tabs-card .matrix-table .content {
  vertical-align: middle
}

:where(.out-scope) .tabs-card .matrix-table .content:has(.cell-text) {
  vertical-align: top;
  padding-top: 8px
}

:where(.out-scope) #tabs[data-ctx="nae"] .matrix-table .content {
  vertical-align: top
}

:where(.out-scope) #tabs[data-ctx="nae"] .matrix-table {
  box-shadow: none;
  border-color: var(--line)
}

:where(.out-scope) .tabs-card .matrix-table .content:has(.cell-text) .line {
  margin-top: 0
}

:where(.out-scope) .tabs-card .matrix-table .content input[type="text"] {
  text-align: center
}

:where(.out-scope) .tabs-card .matrix-table .content .cell-text {
  margin-top: 10px;
  text-align: left
}

:where(.out-scope) .tabs-card .matrix-table thead th {
  padding-top: 4px;
  padding-bottom: 4px
}


:where(.out-scope) .tabs-card .matrix-table.detail .cat {
  width: 150px
}

:where(.out-scope) .tabs-card .matrix-table.detail td:nth-child(2) {
  width: 200px
}

:where(.out-scope) .matrix-table th, :where(.out-scope) .matrix-table td {
  padding: 10px 12px;
  border-bottom: 2px solid #cbd5e1;
  border-right: 2px solid #cbd5e1;
  vertical-align: top;
  font-size: 14px
}

:where(.out-scope) .matrix-table tr:last-child td, :where(.out-scope) .matrix-table tr:last-child th {
  border-bottom: none
}

:where(.out-scope) .matrix-table th:last-child, :where(.out-scope) .matrix-table td:last-child {
  border-right: none
}

:where(.out-scope) .matrix-table thead th {
  background: #e5e7eb;
  text-align: center;
  font-weight: 700;
  color: #111
}

:where(.out-scope) .matrix-table tbody tr:first-child td {
  border-top: 2px solid #cbd5e1
}

:where(.out-scope) .matrix-table .cat {
  background: #e5e7eb;
  font-weight: 600;
  width: 60px;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.4
}

:where(.out-scope) .matrix-table .content {
  background: #f7f7f7
}

:where(.out-scope) .matrix-table .content .line {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 6px 0
}

:where(.out-scope) .matrix-table .bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #747474;
  flex: 0 0 6px
}

:where(.out-scope) .matrix-table .content .line--desc {
  display: block;
  margin: 6px 0
}

:where(.out-scope) .matrix-table .content .line--desc .line-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap
}

:where(.out-scope) .matrix-table .content .line--desc input[type="text"] {
  flex: 0 0 auto !important;
  min-width: 70px;
  height: 30px !important;
  font-size: 13px !important
}

:where(.out-scope) .matrix-table .content .line--desc .line-desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--toss-text-primary)
}

:where(.out-scope) .matrix-table .content input[type="text"] {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 40px;
  font-size: 14px
}

:where(.out-scope) .matrix-table .input-wrap {
  position: relative;
  display: block;
  width: 100%
}

:where(.out-scope) .matrix-table .input-wrap>input[type="text"] {
  width: 100%;
  padding-right: 72px !important
}

:where(.out-scope) .matrix-table .ghost-in {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  max-width: min(40%, 220px);
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  opacity: .8;
  z-index: 1
}

:where(.out-scope) #tabs[data-ctx="nae"] .input-wrap > input[type="text"], :where(.out-scope) #tabs[data-ctx="edu"] .input-wrap > input[type="text"] {
  padding-right: 14px !important
}
:where(.out-scope) #tabs[data-ctx="nae"] .ghost-in, :where(.out-scope) #tabs[data-ctx="edu"] .ghost-in {
  left: 12px;
  right: 12px;
  max-width: none !important;
  overflow: auto !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  -ms-overflow-style: none;
  scrollbar-width: none
}

:where(.out-scope) #tabs[data-ctx="nae"] .ghost-in::-webkit-scrollbar, :where(.out-scope) #tabs[data-ctx="edu"] .ghost-in::-webkit-scrollbar {
  display: none
}

:where(.out-scope) #tabs[data-ctx="mo"]:not([data-item="전과목 역량"]):not([data-item="전과목 모형 이름"]) .input-wrap > .ghost-in {
  position: static;
  display: block;
  transform: none;
  max-width: none !important;
  margin: 5px 2px 0;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: right;
  white-space: normal !important;
  line-height: 1.35;
  pointer-events: none
}

:where(.out-scope) #tabs[data-ctx="mo"]:not([data-item="전과목 역량"]):not([data-item="전과목 모형 이름"]) .row > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%
}

:where(.out-scope) #tabs[data-ctx="mo"]:not([data-item="전과목 역량"]):not([data-item="전과목 모형 이름"]) .row > label .ghost-in {
  position: static;
  display: block;
  flex: 1 1 auto;
  max-width: 70% !important;
  margin: 0 0 0 auto;
  transform: none;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: right;
  white-space: nowrap !important;
  line-height: inherit;
  color: var(--muted) !important;
  opacity: .8 !important;
  pointer-events: none
}

:where(.out-scope) #tabs[data-ctx="mo"][data-item="전과목 역량"] .input-wrap > input[type="text"], :where(.out-scope) #tabs[data-ctx="mo"][data-item="전과목 모형 이름"] .input-wrap > input[type="text"] {
  padding-right: 90px
}


:where(.out-scope) .home-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 46vh;
  padding: 12px 0 18px
}

:where(.out-scope) .home-hero img {
  width: min(96%, 980px);
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-bottom: 12px
}

/* ── Home carousel ── */

/* ── Home community boxes ── */
:where(.out-scope) .cbx { width: min(96%, 1120px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 8px 0 16px }
:where(.out-scope) .cbx-box { border: 1px solid #E5E8EB; border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; background: #fff; min-width: 0 }
:where(.out-scope) .cbx-head { display: flex; justify-content: space-between; align-items: center; gap: 12px }
:where(.out-scope) .cbx-title { font-size: 17px; font-weight: 700; color: var(--toss-text-strong); text-decoration: none }
:where(.out-scope) .cbx-write { font-size: 12px; font-weight: 600; color: #3C3C3C; background: #fff; border: 1px solid #E5E8EB; padding: 5px 11px; border-radius: 6px; text-decoration: none }
:where(.out-scope) .cbx-write:hover { background: var(--toss-bg-input) }
:where(.out-scope) .cbx-list { display: flex; flex-direction: column; gap: 10px; min-height: 140px }
:where(.out-scope) .cbx-row { display: flex; align-items: center; gap: 2px; font-size: 14px; color: #3C3C3C; text-decoration: none }
:where(.out-scope) .cbx-row:hover .cbx-t { text-decoration: underline }
:where(.out-scope) .cbx-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
:where(.out-scope) .cbx-c { flex: none; font-variant-numeric: tabular-nums; color: var(--toss-brand) }
:where(.out-scope) .cbx-sk { display: block; height: 18px; border-radius: 4px; background: #F2F2F2 }
:where(.out-scope) .cbx-empty { margin: 0; font-size: 14px; color: var(--toss-text-tertiary) }
@media (max-width: 1080px) { :where(.out-scope) .cbx { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 640px) { :where(.out-scope) .cbx { grid-template-columns: minmax(0, 1fr) } }

.out-scope.is-board #home, .out-scope.is-board #grid, .out-scope.is-board #tabs {
  display: none !important
}

@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0 }
  100% { background-position: 400px 0 }
}

/* [B] 폭 기준 720px — 게시판 헤더/검색 축소 */

:where(.out-scope) #tabs.loading-lock {
  overflow: hidden
}

:where(.out-scope) #tabs.loading-fade {
  opacity: 0;
  transition: opacity .12s
}

:where(.out-scope) #tabs[data-ctx="nae"] .tabs-card.shrink-1-2 {
  width: 66%;
  display: block;
  margin: 0 auto 28px
}

.out-scope.is-board #board.container, .out-scope.is-board #boardWritePage.board-page.container, .out-scope.is-board #boardDetailPage.board-page.container {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto
}

:where(.out-scope) .line-prefix {
  display: inline-block;
  margin-right: 2px;
  font-weight: 600;
  white-space: nowrap
}

.out-scope.js-loading #home, .out-scope.js-loading #grid, .out-scope.js-loading #tabs, .out-scope.js-loading #boardToolbarShell, .out-scope.js-loading #board, .out-scope.js-loading #boardWritePage, .out-scope.js-loading #boardDetailPage {
  display: none !important
}

:where(.out-scope) [hidden] {
  display: none !important
}

:where(.out-scope) .matrix-table td .group-block+.group-block {
  margin-top: 18px
}

:where(.out-scope) .matrix-table td .group-parent-line {
  margin-bottom: 10px
}

:where(.out-scope) .matrix-table td .group-parent-line input {
  width: 100%
}

:where(.out-scope) .matrix-table td .group-children {
  margin-left: 28px;
  padding-left: 18px;
  border-left: 2px solid rgba(0, 0, 0, 0.10)
}

/* [B] 폭 기준 720px — 게시판 툴바 세로 전환, PC용 표 숨기고 모바일 카드 목록 표시 */

/* ══════════════════════════════════════════════════════════════════
   Toss-style Header & Nav
   ══════════════════════════════════════════════════════════════════ */

/* ─── Header ─────────────────────────────────────────────────── */
/* 커뮤니티(ImgoCommunity.jsx .ik-header 계열)와 픽셀 단위 동일 스펙.
   값 바꿀 때 양쪽 함께 변경할 것: 높이 52 / 로고 28 / 폰트 14·600 / 색 #8B95A1·#191F28 / 선 #E5E8EB */

/* header 엘리먼트는 class="header container"라 .container의 max-width/margin(폭 좁힘+중앙정렬)이
   같이 걸림 — 구분선은 풀폭, 내용물만 1040px 중앙이어야 하므로(.ik-header/.ik-wrap과 동일 구조)
   더 높은 특정도로 .container 쪽 규칙을 취소 */

/* [A] 세로비 기준 — 헤더만 컨테이너 폭 제한을 풀고 패딩으로 정렬을 맞춘다 */

/* [A] 세로비 기준 (OR 조건) — 글로벌 헤더의 작은 로고 */

.out-scope.is-board .nav {
  display: none
}

/* ─── Nav ────────────────────────────────────────────────────── */
:where(.out-scope) .nav {
  position: relative;
  top: auto;
  z-index: 99;
  background: #FFFFFF;
  border-top: none;
  border-bottom: 1px solid var(--toss-line);
  padding: 0;
  margin-top: 0
}

:where(.out-scope) .nav-row {
  padding: 0 var(--toss-mx);
  gap: 0
}

/* topNav / subNav — 컴팩트 pill 칩 */
:where(.out-scope) #topNav.nav-row {
  padding: 8px var(--toss-mx);
  border-bottom: 1px solid var(--toss-line);
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap
}

:where(.out-scope) #subNav.nav-row, :where(.out-scope) #eduNav.nav-row, :where(.out-scope) #commNav.nav-row {
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap
}

:where(.out-scope) #subNav.nav-row, :where(.out-scope) #commNav.nav-row {
  border-bottom: 1px solid var(--toss-line)
}

:where(.out-scope) #topNav.nav-row.overflow, :where(.out-scope) #subNav.nav-row.overflow, :where(.out-scope) #eduNav.nav-row.overflow, :where(.out-scope) #commNav.nav-row.overflow {
  justify-content: flex-start
}

:where(.out-scope) .nav-chips-scroll {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none
}

:where(.out-scope) .nav-chips-scroll::-webkit-scrollbar {
  display: none
}

:where(.out-scope) .nav-chips-scroll.overflow {
  justify-content: flex-start
}

:where(.out-scope) .nav-cat-label {
  flex-shrink: 0;
  color: var(--toss-text-tertiary);
  font-size: 12px;
  font-weight: var(--toss-fw-medium);
  padding-right: 6px;
  white-space: nowrap;
  align-self: center
}

:where(.out-scope) #topNav .chip, :where(.out-scope) #subNav .subchip, :where(.out-scope) #eduNav .subchip, :where(.out-scope) #commNav .subchip {
  background: transparent;
  border: 1px solid var(--toss-border);
  border-radius: var(--toss-radius-pill);
  color: var(--toss-text-primary);
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: var(--toss-fw-medium);
  display: flex;
  align-items: center;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap
}

:where(.out-scope) #topNav .chip:hover, :where(.out-scope) #subNav .subchip:hover, :where(.out-scope) #eduNav .subchip:hover, :where(.out-scope) #commNav .subchip:hover {
  background: var(--toss-brand-tint);
  color: var(--toss-brand);
  border-color: var(--toss-brand-border);
  transform: none
}

:where(.out-scope) #topNav .chip.active, :where(.out-scope) #subNav .subchip.active, :where(.out-scope) #eduNav .subchip.active, :where(.out-scope) #commNav .subchip.active {
  background: rgba(240, 82, 122, 0.15);
  color: var(--toss-brand);
  border-color: var(--toss-brand-border);
  font-weight: var(--toss-fw-semibold)
}

/* ══════════════════════════════════════════════════════════════════
   Toss-style Grid Cards & Inputs
   ══════════════════════════════════════════════════════════════════ */

.out-scope {
  background: var(--toss-bg-page)
}

/* ─── Grid layout ─────────────────────────────────────────────── */
:where(.out-scope) .grid {
  gap: 20px
}

/* [A] 세로비 기준 — 카드 간격만 좁힌다(위 .grid 1열 규칙과 짝) */
@media (max-aspect-ratio: 3/4) {
  :where(.out-scope) .grid {
    gap: 16px
  }
}

/* ─── Card ─────────────────────────────────────────────────────── */
:where(.out-scope) #grid .card {
  border: none;
  background: var(--toss-bg-card);
  box-shadow: var(--toss-shadow-card)
}

:where(.out-scope) #grid .card h2 {
  font-size: 11px;
  font-weight: var(--toss-fw-bold);
  color: var(--toss-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 14px
}

/* ─── Row & Label ──────────────────────────────────────────────── */
:where(.out-scope) #grid .row {
  gap: 6px;
  margin: 10px 0
}

:where(.out-scope) #grid .row:first-of-type {
  margin-top: 0
}

:where(.out-scope) #grid label {
  font-size: 14px;
  color: var(--toss-text-primary);
  line-height: 1.55
}

:where(.out-scope) #grid .substeps {
  border-left-color: var(--toss-surface-muted)
}

/* ─── Input ────────────────────────────────────────────────────── */
:where(.out-scope) #grid input[type="text"] {
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  background: var(--toss-bg-card);
  border: 1.5px solid var(--toss-border);
  border-radius: var(--toss-radius-input);
  color: var(--toss-text-strong);
  transition: border-color .15s, background .15s, box-shadow .15s
}

:where(.out-scope) #grid .input-wrap > input[type="text"] {
  padding-right: 90px
}

:where(.out-scope) #grid input[type="text"]:focus {
  background: var(--toss-bg-card);
  border-color: var(--toss-brand);
  box-shadow: 0 0 0 3px var(--toss-brand-10);
  outline: none
}

:where(.out-scope) #grid input[type="text"].ok {
  background: var(--toss-up-tint);
  border-color: var(--toss-up);
  box-shadow: none
}

:where(.out-scope) #grid input[type="text"].bad {
  background: var(--toss-down-tint);
  border-color: var(--toss-down);
  box-shadow: none
}

/* ─── 줄글 빈칸 ─────────────────────────────────────────────────── */
:where(.out-scope) .passage-block {
  margin: 10px 0;
  font-size: 14px;
  color: var(--toss-text-primary);
  line-height: 2.8;
  word-break: keep-all
}

:where(.out-scope) #tabs[data-ctx="edu"] .tabs-card.is-passage {
  background: #fff;
  padding: 28px 26px;
  box-shadow: var(--toss-shadow-card)
}

:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block {
  --passage-marker-col: 26px;
  --passage-marker-gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  border-bottom: none;
  font-size: 15px;
  line-height: 2.1
}

:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block.has-marker {
  display: grid;
  grid-template-columns: var(--passage-marker-col) minmax(0, 1fr);
  column-gap: var(--passage-marker-gap);
  align-items: start
}

:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block.is-indented {
  padding-left: 20px
}

:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block.is-deep {
  padding-left: 44px
}

:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block.indent-lv-1 {
  padding-left: 24px
}

:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block.indent-lv-2 {
  padding-left: 56px
}

:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0
}

:where(.out-scope) #tabs[data-ctx="edu"] .tabs-card.is-passage h2 + .passage-block {
  padding-top: 8px
}

:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-marker {
  line-height: 2.1;
  color: var(--toss-text-strong);
  text-align: left
}

:where(.out-scope) .passage-marker {
  display: block;
  color: var(--toss-text-primary);
  font-weight: 800;
  line-height: 2.8;
  text-align: right
}

:where(.out-scope) .passage-body {
  display: inline
}

:where(.out-scope) .passage-leading {
  margin-right: 8px;
  color: var(--toss-text-primary);
  font-weight: 800
}

:where(.out-scope) .passage-inline-marker {
  margin-right: 8px;
  color: var(--toss-text-primary);
  font-weight: 800
}

:where(.out-scope) .passage-block .input-wrap {
  display: inline-block !important;
  width: auto !important;
  margin-right: 1px;
  vertical-align: middle
}
:where(.out-scope) .passage-block .input-wrap > input[type="text"] {
  padding-right: 8px !important
}
:where(.out-scope) .passage-block .ghost-in {
  display: none
}
:where(.out-scope) input[type="text"].inline-blank {
  position: relative;
  top: -4px;
  height: 30px;
  padding: 0 8px;
  font-size: 13px;
  border-radius: 8px;
  vertical-align: middle;
  text-align: center
}
:where(.out-scope) #tabs input[type="text"].inline-blank {
  height: 30px !important;
  padding: 0 8px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  text-align: center !important;
  background: var(--toss-bg-input);
  border: 1.5px solid var(--toss-border);
  color: var(--toss-text-strong)
}
:where(.out-scope) #tabs[data-ctx="edu"] .passage-block .input-wrap > input[type="text"].inline-blank {
  padding-left: 8px !important;
  padding-right: 8px !important;
  text-align: center !important
}
:where(.out-scope) #tabs input[type="text"].inline-blank.ok {
  background: var(--toss-up-tint);
  border-color: var(--toss-up);
  box-shadow: none
}
:where(.out-scope) #tabs input[type="text"].inline-blank.bad {
  background: var(--toss-down-tint);
  border-color: var(--toss-down);
  box-shadow: none
}

:where(.out-scope) #tabs[data-ctx="edu"] .is-passage input[type="text"].inline-blank {
  height: 26px !important;
  padding: 0 2px !important;
  font-size: 15px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(0, 0, 0, .18) !important;
  top: 0 !important;
  vertical-align: 3px !important;
  min-width: 48px
}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage input[type="text"].inline-blank:focus {
  border-bottom-color: var(--toss-brand-focus) !important;
  box-shadow: none !important
}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage input[type="text"].inline-blank.ok {
  background: transparent !important;
  border-bottom-color: var(--toss-up) !important
}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage input[type="text"].inline-blank.bad {
  background: transparent !important;
  border-bottom-color: var(--toss-down) !important
}

/* ══════════════════════════════════════════════════════════════════
   Toss-style Board
   ══════════════════════════════════════════════════════════════════ */

/* ─── Toolbar ─────────────────────────────────────────────────── */

/* ─── Tabbar — 언더라인 탭 ────────────────────────────────────── */

/* ─── 글쓰기 버튼 ─────────────────────────────────────────────── */

/* ─── 검색 input ──────────────────────────────────────────────── */

/* ─── 목록 테이블 ─────────────────────────────────────────────── */

/* ─── 탭 뱃지 ────────────────────────────────────────────────── */

/* ─── 글쓰기 폼 ───────────────────────────────────────────────── */

/* ─── 게시글 상세 ─────────────────────────────────────────────── */

/* ─── 페이지네이션 ────────────────────────────────────────────── */

/* [A] 세로비 기준 — iOS는 폰트 16px 미만 input에 포커스하면 화면을 자동확대한다.
   자동확대는 폭이 아니라 세로 화면에서 문제가 되므로 여기서는 비율 기준이 적절 */
@media (max-aspect-ratio: 3/4) {
  :where(.out-scope) #tabs input[type="text"] {
    font-size: 16px;
    height: 40px
  }
}

/* ─── 모바일 목록 ─────────────────────────────────────────────── */
/* [B] 폭 기준 720px — 모바일 카드 스타일 */

/* ─── 모바일 대문 위젯 순서: 문의 → 페이지 → 선생님 ──────────────── */
/* [B] 폭 기준 720px — 홈 위젯 세로 스택.
   주의: 이 규칙은 뷰포트 폭만 보므로 아이패드 세로(744~1024)에서는 발동하지 않는다.
   그런데 [A]는 이미 컨테이너를 720px로 좁혀놔서, 한 줄(816px 필요)에도 못 들어가고
   이 스택도 적용 안 되는 어중간한 구간이 생긴다. 상단 정책 주석의 [알려진 사각지대] 참고 */
@media (max-width: 720px) {
  :where(.out-scope) .home-extras {
    flex-direction: column
  }

  /* column 전환 시 flex-basis는 높이로 해석되고 min-width는 좁은 폰에서 넘치므로,
     가로 배치용으로 준 flex/min-width를 여기서 되돌린다 */
  :where(.out-scope) .home-extras-side, :where(.out-scope) .city-widget {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%
  }

  :where(.out-scope) .home-extras-side {
    order: 1
  }

  :where(.out-scope) .city-widget {
    order: 2
  }
}

/* ══════════════════════════════════════════════════════════════════
   Toss-style Common Elements
   ══════════════════════════════════════════════════════════════════ */

/* ─── 버튼 ─────────────────────────────────────────────────────── */
:where(.out-scope) .btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: auto;
  min-height: unset;
  padding: 8px 12px;
  border: 1.5px solid transparent;
  border-radius: var(--toss-radius-lg);
  font-size: 14px;
  font-weight: var(--toss-fw-semibold);
  cursor: pointer;
  background: var(--toss-bg-input);
  color: var(--toss-text-primary);
  transition: filter .15s, background .15s
}

:where(.out-scope) .btn:hover {
  filter: brightness(.96)
}

:where(.out-scope) .btn-green {
  background: var(--toss-brand);
  border-color: var(--toss-brand);
  color: #fff
}

:where(.out-scope) .btn-red {
  background: transparent;
  border-color: var(--toss-border);
  color: var(--toss-text-secondary)
}

:where(.out-scope) .btn-green:hover {
  filter: brightness(.92)
}

:where(.out-scope) .btn-red:hover {
  background: var(--toss-surface-muted);
  filter: none
}

/* ─── 전역 input / select ──────────────────────────────────────── */
:where(.out-scope) input[type="text"], :where(.out-scope) input[type="password"] {
  background: var(--toss-bg-input);
  border: 1.5px solid transparent;
  border-radius: var(--toss-radius-input);
  color: var(--toss-text-strong);
  transition: border-color .15s, background .15s, box-shadow .15s
}

:where(.out-scope) input[type="text"]:focus, :where(.out-scope) input[type="password"]:focus {
  background: var(--toss-bg-card);
  border-color: var(--toss-brand);
  box-shadow: 0 0 0 3px var(--toss-brand-10);
  outline: none
}

:where(.out-scope) #grid input[type="text"], :where(.out-scope) #tabs input[type="text"] {
  width: 100%;
  min-width: 0;
  background: #FFFFFF;
  border: 1.5px solid var(--toss-border);
  border-radius: var(--toss-radius-input);
  color: var(--toss-text-strong);
  text-align: left;
  -webkit-appearance: none;
  appearance: none
}

:where(.out-scope) #grid input[type="text"]:focus, :where(.out-scope) #tabs input[type="text"]:focus {
  background: #FFFFFF;
  border-color: var(--toss-brand-focus);
  box-shadow: 0 0 0 3px var(--toss-brand-10);
  outline: none
}

:where(.out-scope) #tabs .capture-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin: 4px 0 18px
}


:where(.out-scope) #tabs input[type="text"].ok {
  background: var(--toss-up-tint);
  border-color: var(--toss-up);
  box-shadow: none
}

:where(.out-scope) #tabs input[type="text"].bad {
  background: var(--toss-down-tint);
  border-color: var(--toss-down);
  box-shadow: none
}

:where(.out-scope) select {
  background: var(--toss-bg-input);
  border: 1.5px solid transparent;
  border-radius: var(--toss-radius-lg);
  color: var(--toss-text-primary);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s
}

:where(.out-scope) select:focus {
  background: var(--toss-bg-card);
  border-color: var(--toss-brand);
  box-shadow: 0 0 0 3px var(--toss-brand-10);
  outline: none
}

/* ─── 안내 텍스트 ───────────────────────────────────────────────── */


/* 위젯 두 개는 줄바꿈하지 않고 좁아지면 함께 줄어든다(nowrap + flex-shrink).
   폭이 모자랄 때 어중간하게 두 줄로 쪼개지던 문제를 없앤다 — 진짜 세로 스택은
   아래 [B] 720px 규칙이 폰에서만 담당한다. 상단 정책 주석 참고 */
:where(.out-scope) .home-extras {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    width: 100%
}

/* 기본 480px, 좁아지면 360px까지 줄어든다(늘어나지는 않음 - flex-grow 0) */
:where(.out-scope) .home-extras-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 1 480px;
    min-width: 360px
}

/* 나의 공부 기록 — 데이터는 js/theme.js의 ImgoStudy */
:where(.out-scope) .study-widget { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid var(--toss-line); border-radius: 12px; background: #fff; min-width: 0; box-sizing: border-box }
:where(.out-scope) .study-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px }
:where(.out-scope) .study-widget { position: relative }
:where(.out-scope) .study-widget.is-guest .study-wk, :where(.out-scope) .study-widget.is-guest .study-grid { filter: blur(4px); opacity: .7; pointer-events: none; user-select: none }
:where(.out-scope) .study-guest { display: none }
:where(.out-scope) .study-widget.is-guest .study-guest { position: absolute; inset: 40px 0 0; display: flex; align-items: center; justify-content: center; text-align: center }
:where(.out-scope) .study-guest-card { display: flex; flex-direction: column; align-items: center; gap: 12px }
:where(.out-scope) .study-guest p { margin: 0; font-size: 14px; font-weight: 700; color: #191F28 }
:where(.out-scope) .study-login { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 10px; background: var(--toss-brand); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none }
:where(.out-scope) .study-login:hover { background: #d43d64; color: #fff }
:root[data-theme="dark"] :where(.out-scope) .study-guest p { color: #ECECEC }
:where(.out-scope) .study-title { font-size: 13px; font-weight: 600; color: var(--toss-text-secondary, #4E5968) }
:where(.out-scope) .study-streak { font-size: 13px; font-weight: 700; color: var(--toss-brand); white-space: nowrap }
:where(.out-scope) .study-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 11px; color: var(--toss-text-tertiary) }
:where(.out-scope) .study-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 4px; flex: 1; min-height: 180px }
:where(.out-scope) .study-grid > div { border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; overflow: hidden; color: #4E5968 }
:where(.out-scope) .study-grid > div span { font-size: 9px; line-height: 1.2; opacity: .7 }
:where(.out-scope) .study-grid > div b { font-size: 14px; font-weight: 700; line-height: 1.2 }
:where(.out-scope) .study-grid > .f { opacity: .35 }
:where(.out-scope) .study-grid > .t { outline: 2px solid #191F28; outline-offset: 1px }
:where(.out-scope) .study-grid .l0 { background: #EEF0F3 }
:where(.out-scope) .study-grid .l1 { background: #FCD5E0 }
:where(.out-scope) .study-grid .l2 { background: #F7A1B8 }
:where(.out-scope) .study-grid .l3 { background: #F0527A; color: #fff }
:where(.out-scope) .study-grid .l4 { background: #C42F58; color: #fff }
:root[data-theme="dark"] :where(.out-scope) .study-widget { background: #202020 }
:root[data-theme="dark"] :where(.out-scope) .study-title { color: #D4D4D4 }
:root[data-theme="dark"] :where(.out-scope) .study-grid > div { color: #D4D4D4 }
:root[data-theme="dark"] :where(.out-scope) .study-grid > .t { outline-color: #ECECEC }
:root[data-theme="dark"] :where(.out-scope) .study-grid .l0 { background: #2F2F2F }
:root[data-theme="dark"] :where(.out-scope) .study-grid .l1 { background: #5A2636 }
:root[data-theme="dark"] :where(.out-scope) .study-grid .l2 { background: #8F3551 }
:root[data-theme="dark"] :where(.out-scope) .study-grid .l3 { background: #D2496F; color: #fff }
:root[data-theme="dark"] :where(.out-scope) .study-grid .l4 { background: #FF84A4; color: #191F28 }

/* 상단 캐러셀·커뮤니티 박스(1120px, 3단)에 맞춰 폭 정렬: 도시 1칸 + 우측 2칸 */
@media (min-width: 721px) {
  :where(.out-scope) .home-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; width: min(96%, 1120px) }
  :where(.out-scope) .home-extras > .city-widget { grid-column: span 1; min-width: 0; width: auto; height: auto; box-sizing: border-box }
  :where(.out-scope) .home-extras > .home-extras-side { grid-column: span 2; min-width: 0; height: auto }
  :where(.out-scope) .home-extras-side .side-widget { height: auto; min-height: 0 }
  :where(.out-scope) .home-extras-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 16px }
  :where(.out-scope) .home-extras-side .study-widget { grid-column: 1; grid-row: 1 / span 2 }
  :where(.out-scope) .home-extras-side .feedback-box, :where(.out-scope) .home-extras-side .side-widget { grid-column: 2; width: auto; min-width: 0; box-sizing: border-box }
}

/* ─── 커뮤니티에 남기는 마지막 한마디(자유게시판 최신 글) ─────────────────
   폭은 home-extras(320+16+480=816)와 맞춘다. 좁아지면 100%로 함께 줄어든다. */
:where(.out-scope) .cboard-widget {
    width: 100%;
    max-width: 816px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px
}

:where(.out-scope) .cboard-widget[hidden] {
    display: none
}

:where(.out-scope) .cboard-head {
    display: flex;
    align-items: center;
    gap: 10px
}

:where(.out-scope) .cboard-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--toss-label)
}

:where(.out-scope) .cboard-write {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--toss-brand);
    border-radius: var(--toss-radius-pill);
    padding: 4px 10px;
    text-decoration: none
}

:where(.out-scope) .cboard-write:hover {
    background: #E64870
}

:where(.out-scope) .cboard-spacer {
    flex: 1
}

:where(.out-scope) .cboard-nav {
    width: 28px;
    height: 28px;
    border: 1px solid var(--toss-border);
    border-radius: var(--toss-radius-pill);
    background: #fff;
    color: #4E5968;
    font-size: 14px;
    cursor: pointer
}

:where(.out-scope) .cboard-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none
}

:where(.out-scope) .cboard-strip::-webkit-scrollbar {
    display: none
}

/* PC: 한 화면에 4장 */
:where(.out-scope) .cboard-card {
    flex: 0 0 calc((100% - 36px) / 4);
    min-width: 0;
    height: 128px;
    box-sizing: border-box;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--toss-line);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: background .15s, border-color .15s
}

:where(.out-scope) .cboard-card:hover {
    background: var(--toss-brand-row);
    border-color: var(--toss-brand-border)
}

:where(.out-scope) .cboard-meta-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 18px;
    font-size: 12px;
    color: #8B95A1
}

:where(.out-scope) .cboard-hot {
    font-size: 11px;
    font-weight: 800;
    color: #F04452;
    background: #FFEEF0;
    border-radius: 2px;
    padding: 2px 4px
}

:where(.out-scope) .cboard-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #191F28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    overflow-wrap: anywhere
}

:where(.out-scope) .cboard-meta {
    margin-top: auto;
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #8B95A1;
    min-width: 0
}

:where(.out-scope) .cboard-nick {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

:where(.out-scope) .cboard-cmt {
    margin-left: auto;
    flex-shrink: 0;
    font-weight: 800;
    color: var(--toss-brand)
}

:where(.out-scope) .cboard-up {
    flex-shrink: 0
}

/* [B] 폭 기준 720px — 폰: 스와이프 전용(버튼 숨김), 다음 카드가 살짝 보이게 */
@media (max-width: 720px) {
    :where(.out-scope) .cboard-nav {
        display: none
    }

    :where(.out-scope) .cboard-card {
        flex: 0 0 236px;
        height: 124px
    }

    :where(.out-scope) .cboard-card-title {
        font-size: 15px
    }

    :where(.out-scope) .cboard-up {
        display: none
    }
}

:where(.out-scope) .side-widget {
    flex: 1;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--toss-line);
    border-radius: 12px;
    background: #fff
}

:where(.out-scope) .page-widget-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px
}

:where(.out-scope) .page-widget-total {
    margin: 0;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--toss-text-secondary)
}

/* 기본 320px, 좁아지면 240px까지 줄어든다(늘어나지는 않음 - flex-grow 0) */
:where(.out-scope) .city-widget {
    flex: 0 1 320px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--toss-line);
    border-radius: 12px;
    background: #fff
}

:where(.out-scope) .city-widget-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--toss-label);
    margin: 0
}

:where(.out-scope) .city-widget-list {
    display: flex;
    flex-direction: column;
    gap: 6px
}

:where(.out-scope) .city-widget-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px
}

:where(.out-scope) .city-widget-name {
    flex-shrink: 0;
    width: 64px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--toss-label)
}

:where(.out-scope) .city-widget-bar-track {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #f1f3f5;
    overflow: hidden
}

:where(.out-scope) .city-widget-bar-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--toss-brand)
}

:where(.out-scope) .page-widget-chart {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    gap: 6px
}

:where(.out-scope) .page-widget-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px
}

:where(.out-scope) .page-widget-value {
    font-size: 10px;
    font-weight: 600;
    color: var(--toss-text-secondary)
}

:where(.out-scope) .page-widget-bar-track {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    background: #f1f3f5;
    border-radius: 4px;
    overflow: hidden
}

:where(.out-scope) .page-widget-bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: var(--toss-brand)
}

:where(.out-scope) .page-widget-label {
    width: 100%;
    flex-shrink: 0;
    height: 26px;
    display: block;
    align-content: center;
    text-align: center;
    font-size: 10px;
    line-height: 1.3;
    color: var(--toss-label);
    word-break: keep-all;
    text-decoration: none
}

:where(.out-scope) .page-widget-label:hover {
    text-decoration: underline
}

:where(.out-scope) .page-widget-col:nth-child(n+10) .page-widget-value {
    white-space: nowrap;
    letter-spacing: -0.03em
}

:where(.out-scope) .city-widget-count {
    flex-shrink: 0;
    width: 34px;
    text-align: right;
    font-weight: 600
}

:where(.out-scope) .city-widget-date {
    margin: 0;
    text-align: left;
    font-size: 11px;
    line-height: 1.4;
    color: var(--toss-text-tertiary)
}

:where(.out-scope) .site-footer {
    max-width: 1080px;
    margin: 24px auto 0;
    padding: 16px 20px 32px;
    text-align: center;
    font-size: 12px;
    color: var(--toss-text-tertiary)
}

:where(.out-scope) .site-footer a {
    color: var(--toss-text-tertiary);
    text-decoration: none
}

:where(.out-scope) .site-footer a:hover {
    text-decoration: underline
}

/* ── 칩별 모드 툴바 (feat/chip-modes) ─────────────────────────────────── */
:where(.out-scope) #tabs .mode-toolbar {
  column-span: all;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 20px 10px;
  padding: 10px 16px;
  background: var(--toss-bg-card);
  border-radius: var(--toss-radius-card);
  box-shadow: var(--toss-shadow-card);
}

:where(.out-scope) #tabs .mode-toolbar .mt-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--toss-text-tertiary);
  flex-shrink: 0;
}

:where(.out-scope) #tabs .mode-toolbar .mt-level-wrap, :where(.out-scope) #tabs .mode-toolbar .mt-shuffle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

:where(.out-scope) #tabs .mode-toolbar .mt-seg {
  display: flex;
  background: #EFEFF1;
  border-radius: var(--toss-radius-pill);
  padding: 3px;
  flex-shrink: 0;
}

:where(.out-scope) #tabs .mode-toolbar .mt-seg > button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--toss-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--toss-text-secondary);
  white-space: nowrap;
  transition: background .15s, color .15s;
}

:where(.out-scope) #tabs .mode-toolbar .mt-seg > button.is-on {
  background: #fff;
  color: var(--toss-brand);
  font-weight: var(--toss-fw-bold);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .10);
}

:where(.out-scope) #tabs .mode-toolbar .mt-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: var(--toss-radius-pill);
  background: rgba(0, 0, 0, .16);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}

:where(.out-scope) #tabs .mode-toolbar .mt-toggle.is-on {
  background: var(--toss-brand);
}

:where(.out-scope) #tabs .mode-toolbar .mt-toggle i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: left .15s;
}

:where(.out-scope) #tabs .mode-toolbar .mt-toggle.is-on i {
  left: 18px;
}

:where(.out-scope) #tabs .mode-toolbar .mt-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

:where(.out-scope) #tabs .mode-toolbar .mt-actions .btn {
  white-space: nowrap;
}

/* 모바일에서만 쓰는 "설정" 버튼(2b 시안) — 데스크톱은 항상 숨김 */
:where(.out-scope) #tabs .mode-toolbar .mt-settings-btn {
  position: relative;
  display: none;
  border: 0;
  background: #EFEFF1;
  color: var(--toss-text-secondary);
  border-radius: var(--toss-radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}

:where(.out-scope) #tabs .mode-toolbar .mt-settings-btn .mt-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--toss-brand);
  display: none;
}

:where(.out-scope) #tabs .mode-toolbar .mt-settings-btn.has-change .mt-badge {
  display: block;
}

/* 난이도 '상': 힌트(ghost-in) 숨김. '하'는 보류(다음 단계) */
:where(.out-scope) #tabs.mode-hard .ghost-in {
  display: none;
}

/* [B] 폭 720px 이하 — 2b: 채점방식 칩 + "설정" 버튼만 한 줄, 난이도/순서섞기는 설정 시트로 */
@media (max-width: 720px) {
  :where(.out-scope) #tabs .mode-toolbar {
    gap: 10px;
    margin: 12px 12px 8px;
    padding: 8px 12px;
  }
  :where(.out-scope) #tabs .mode-toolbar .mt-settings-btn {
    display: inline-flex;
    align-items: center;
  }
  :where(.out-scope) #tabs .mode-toolbar .mt-level-wrap, :where(.out-scope) #tabs .mode-toolbar .mt-shuffle-wrap {
    display: none;
    width: 100%;
    order: 10;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, .06);
  }
  :where(.out-scope) #tabs .mode-toolbar.sheet-open .mt-level-wrap, :where(.out-scope) #tabs .mode-toolbar.sheet-open .mt-shuffle-wrap {
    display: flex;
  }
  :where(.out-scope) #tabs .mode-toolbar .mt-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    order: 20;
  }
}

/* 교육과정 디자인 시안: 4f 탭 / 5b 지문 카드 */
:where(.out-scope) #tabs .edu-subtabs{column-span:all;margin:14px 20px 0;border-bottom:1px solid rgba(0,0,0,.08)}
:where(.out-scope) #tabs .est-tabs{display:flex;overflow-x:auto;scrollbar-width:none}
:where(.out-scope) #tabs .est-tabs::-webkit-scrollbar{display:none}
:where(.out-scope) #tabs .est-tab{padding:10px 16px;margin-bottom:-1px;border-bottom:2px solid transparent;font-size:14px;font-weight:var(--toss-fw-medium);color:#7a7a7a;white-space:nowrap;text-decoration:none}
:where(.out-scope) #tabs .est-tab:hover{color:var(--toss-text-primary)}
:where(.out-scope) #tabs .est-tab:focus-visible{outline:2px solid var(--toss-brand);outline-offset:-3px}
:where(.out-scope) #tabs .est-tab.is-on{color:var(--toss-brand);font-weight:var(--toss-fw-bold);border-bottom-color:var(--toss-brand)}
:where(.out-scope) #tabs.edu-1col .tabs-grid{column-count:1;column-gap:24px}
:where(.out-scope) #tabs[data-ctx="edu"] .tabs-card.is-passage{background:#fff;padding:0;border:1px solid rgba(0,0,0,.08);border-radius:16px;box-shadow:0 2px 12px rgba(0,0,0,.06);overflow:hidden}
:where(.out-scope) #tabs[data-ctx="edu"] .pc-head{padding:20px 28px 16px;border-bottom:1px solid rgba(0,0,0,.06);display:flex;flex-direction:column;gap:4px}
:where(.out-scope) #tabs[data-ctx="edu"] .pc-eyebrow{font-size:12px;font-weight:600;color:var(--toss-brand)}
:where(.out-scope) #tabs[data-ctx="edu"] .pc-head h2{margin:0;font-size:19px;line-height:1.4;font-weight:700;color:#1f1f1f;text-wrap:pretty}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block{margin:0;padding:14px 28px;border-bottom:1px solid rgba(0,0,0,.05);font-size:15px;line-height:2.05;color:#333;word-break:keep-all}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block:last-child{border-bottom:0}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block.has-marker{display:grid;grid-template-columns:minmax(32px,max-content) minmax(0,1fr);column-gap:12px}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-marker{font-weight:700;color:#9b9b9b;line-height:2.05;text-align:left;white-space:nowrap}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block.is-indented{padding-left:48px}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block.is-deep{padding-left:72px}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block.indent-lv-1{padding-left:52px}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block.indent-lv-2{padding-left:84px}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage .actions{padding:14px 28px 20px}
:where(.out-scope) #tabs[data-ctx="edu"] .is-passage > .matrix-table{width:calc(100% - 56px);margin:14px 28px}
:where(.out-scope) #tabs .edu-empty{padding:32px 28px;box-shadow:none;border:1px solid rgba(0,0,0,.08)}
:where(.out-scope) #tabs .edu-empty h2{font-size:18px;margin:0 0 8px}
@media(max-width:720px){:where(.out-scope) #tabs .edu-subtabs{margin:12px 12px 0}:where(.out-scope) #tabs .est-tab{padding:10px 13px}:where(.out-scope) #tabs .mode-toolbar{flex-wrap:wrap}}


/* 학습 정답은 기본 접힘. JS 없이도 같은 HTML을 펼쳐 읽을 수 있다. */
:where(.out-scope) .learning-reference { margin: 24px 0; color: #243047; }
:where(.out-scope) .learning-reference summary { padding: 8px 0; cursor: pointer; font-size: 13px; font-weight: 400; color: #737373; }
:where(.out-scope) .learning-reference summary:focus-visible { outline: 3px solid #4263eb; outline-offset: 3px; }
:where(.out-scope) .reference-content { padding: 0 16px 16px; overflow-x: auto; }
:where(.out-scope) .reference-content p { line-height: 1.7; }
:where(.out-scope) .reference-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
:where(.out-scope) .reference-content th, :where(.out-scope) .reference-content td { border: 1px solid #d8dee6; padding: 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
:where(.out-scope) .reference-content th { background: #f4f6f9; }
:where(.out-scope) .reference-content .tabs-grid { display: block; }
:where(.out-scope) .reference-content .tabs-card { margin: 16px 0; overflow: visible; }
:where(.out-scope) .reference-content .row { display: block; }
:where(.out-scope) .reference-content .reference-answer { font-weight: 500; }
:where(.out-scope) .reference-content .matrix-table { min-width: 600px; }

:where(.out-scope) .site-footer .learning-reference { display: inline; margin: 0; }
:where(.out-scope) .site-footer .learning-reference summary { display: inline-block; margin-left: 12px; padding: 0; font-size: inherit; color: var(--toss-text-tertiary); }
:where(.out-scope) .site-footer .reference-content { margin-top: 16px; text-align: left; font-size: 14px; }
html.reference-loading :where(.out-scope) .site-footer .learning-reference { display: none; }

/* 신규 과목 자료의 항목 번호만 강조. 총론·창체의 번호 스타일은 유지한다. */
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .is-passage .passage-marker, :where(.out-scope) #tabs[data-ctx="edu"].edu-content .is-passage .passage-inline-marker {
  font-weight: 800;
  color: var(--toss-text-primary);
  white-space: nowrap;
}

/* 신규 과목 교학방·평가: 항목 번호와 하위 문단을 왼쪽에 두고 굵은 대시로 위계를 표시한다. */
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .is-passage .passage-block.has-marker {
  grid-template-columns: minmax(28px, max-content) minmax(0, 1fr);
  column-gap: 8px;
  padding-left: 20px;
}
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .is-passage .passage-block.indent-lv-1 {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 8px;
  padding-left: 28px;
}
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .is-passage .passage-block.indent-lv-1::before {
  content: "-";
  font-weight: 800;
  color: var(--toss-text-primary);
  line-height: inherit;
}

/* 신규 과목 카드: 반복 과목 라벨을 생략하고 제목의 위쪽 여백을 줄인다. */
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .pc-eyebrow {
  display: none;
}
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .pc-head {
  padding-top: 14px;
  gap: 0;
}

/* 사회 내체표: 영역별 표와 명시적 학년군으로 표시 */
:where(.out-scope) #tabs.edu-content .social-content-card{break-inside:auto}
:where(.out-scope) #tabs.edu-content .sct-scroll{overflow-x:auto}
:where(.out-scope) #tabs.edu-content .social-content-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:580px}
:where(.out-scope) #tabs.edu-content .social-content-table thead th{padding:12px 16px;background:#fafafa;font-size:13px;color:#666;text-align:left;border-bottom:1px solid rgba(0,0,0,.08)}
:where(.out-scope) #tabs.edu-content .social-content-table thead th:first-child{width:170px}
:where(.out-scope) #tabs.edu-content .social-content-table thead th:nth-child(2){width:120px}
:where(.out-scope) #tabs.edu-content .social-content-table tbody th, :where(.out-scope) #tabs.edu-content .social-content-table tbody td{vertical-align:top;text-align:left;border-bottom:1px solid rgba(0,0,0,.06);border-right:1px solid rgba(0,0,0,.05);font-weight:400}
:where(.out-scope) #tabs.edu-content .social-content-table tbody th{background:#fcfcfc}
:where(.out-scope) #tabs.edu-content .social-content-table tr:last-child>*{border-bottom:0}
:where(.out-scope) #tabs.edu-content .social-content-table .passage-block{padding:14px 16px;border:0;font-size:14px;line-height:1.9}
:where(.out-scope) #tabs.edu-content .social-content-table .passage-body{white-space:pre-line}
:where(.out-scope) #tabs.edu-content .social-content-table .sct-grade{color:#777}

/* 성취기준 통 모드: 코드 오른쪽에 본문 전체를 입력하는 한 줄 */
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .standard-full-row{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:12px;align-items:baseline}
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .standard-full-row>.input-wrap{display:block!important;width:100%!important;min-width:0;margin:0}
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .standard-full-row .standard-full-input{display:block;width:100%!important;min-width:0;max-width:100%;height:32px;padding:0 4px!important;border:0;border-bottom:2px solid rgba(0,0,0,.18);border-radius:0;background:transparent;font-size:15px;text-align:left}
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .standard-full-input:focus{border-bottom-color:var(--toss-brand-focus);box-shadow:none}
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .standard-full-input.ok{border-bottom-color:var(--toss-up)}
:where(.out-scope) #tabs[data-ctx="edu"].edu-content .standard-full-input.bad{border-bottom-color:var(--toss-down)}


.out-scope.js-loading .site-footer, .out-scope.content-loading .site-footer {
  visibility: hidden;
}

/* ══ DARK MODE (auto-generated) — START ══ */
/* css/app.css 본문에서 색 관련 선언만 뽑아 어두운 값으로 바꾼 블록. 본문 색을 바꾸면 다시 생성할 것.
   색 기준: 토스 다크 그레이 스케일(푸른기 회색) — 배경 #202020 / 카드 #292929 / 입력 #323232 / 선 #404040 / 글자 #EEEEEE·#C4C4C4·#A0A0A0·#818181 */
html.theme-switching .out-scope, html.theme-switching :where(.out-scope) *, html.theme-switching :where(.out-scope) *::before, html.theme-switching :where(.out-scope) *::after { transition: none !important }

:root[data-theme="dark"] .out-scope {
  color-scheme: dark;
  --toss-brand-dark: #F4779A;
  --toss-brand-tint: #3D2630;
  --toss-text-strong: #EEEEEE;
  --toss-text-primary: #E1E1E1;
  --toss-text-secondary: #B3B3B3;
  --toss-text-tertiary: #A0A0A0;
  --toss-text-disabled: #818181;
  --toss-bg-page: #202020;
  --toss-bg-card: #292929;
  --toss-bg-input: #323232;
  --toss-surface-muted: #404040;
  --toss-shadow-card: 0 1px 4px rgba(0, 0, 0, 0.3);
  --toss-shadow-btn: 0 1px 3px rgba(0, 0, 0, 0.3);
  --toss-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35);
  --toss-shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.4);
  --toss-shadow-modal: 0 8px 24px rgba(0, 0, 0, 0.5);
  --toss-line: rgba(255, 255, 255, 0.11);
  --toss-border: rgba(255, 255, 255, 0.18);
  --bg: #202020;
  --text: #EEEEEE;
  --muted: #B3B3B3;
  --line: #404040;
  --brand: #EEEEEE;
  --green-bg: #1C3A2A;
  --chip: #292929;
  --chip-border: #404040;
}
:root[data-theme="dark"] .out-scope { background: var(--toss-bg-page); color: var(--text) }
:root[data-theme="dark"] :where(.out-scope) .nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
:root[data-theme="dark"] :where(.out-scope) .nav-row a { text-decoration: none }
:root[data-theme="dark"] :where(.out-scope) .chip, :root[data-theme="dark"] :where(.out-scope) .subchip { background: var(--chip); border: 1px solid var(--chip-border); color: var(--text) }
:root[data-theme="dark"] :where(.out-scope) .chip.active, :root[data-theme="dark"] :where(.out-scope) .subchip.active { background: var(--brand); color: #202020; border-color: var(--brand) }
:root[data-theme="dark"] :where(.out-scope) .card { border: 1px solid var(--line); background: #262626 }
:root[data-theme="dark"] :where(.out-scope) label { color: var(--toss-text-secondary) }
:root[data-theme="dark"] :where(.out-scope) .substeps { border-left: 2px solid var(--line) }
:root[data-theme="dark"] :where(.out-scope) input[type="text"] { border: 1px solid #4C4C5B; outline: none }
:root[data-theme="dark"] :where(.out-scope) input[type="text"]:focus { border-color: #60a5fa }
:root[data-theme="dark"] :where(.out-scope) input[type="text"].ok { border-color: var(--toss-up); background: var(--toss-up-tint) }
:root[data-theme="dark"] :where(.out-scope) input[type="text"].bad { border-color: var(--toss-down); background: var(--toss-down-tint) }
:root[data-theme="dark"] :where(.out-scope) .sr-only { border: 0 }
:root[data-theme="dark"] :where(.out-scope) .tabs-card { border: 1px solid var(--toss-border); background: #262626 }
:root[data-theme="dark"] :where(.out-scope) .tabs-muted { color: var(--muted) }
:root[data-theme="dark"] :where(.out-scope) .btn { border: 1px solid transparent }
:root[data-theme="dark"] :where(.out-scope) .btn-green { background: #16a34a; border-color: #16a34a; color: #fff }
:root[data-theme="dark"] :where(.out-scope) .btn-red { background: #ef4444; border-color: #ef4444; color: #fff }
:root[data-theme="dark"] :where(.out-scope) #tabs .global-actions .btn-camera { background: #B4B4B4; border-color: #C7C7C7; color: #202020 }
:root[data-theme="dark"] :where(.out-scope) .ghost-in { color: #ef4444 }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="mo"] .ghost-in { color: var(--muted) !important }
:root[data-theme="dark"] :where(.out-scope) .matrix-table { border: 1px solid var(--line); background: #202020 }
:root[data-theme="dark"] :where(.out-scope) .tabs-card .matrix-table { border: 1px solid #4C4C5B }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="nae"] .matrix-table { border-color: var(--line) }
:root[data-theme="dark"] :where(.out-scope) .matrix-table th, :root[data-theme="dark"] :where(.out-scope) .matrix-table td { border-bottom: 2px solid #4C4C5B; border-right: 2px solid #4C4C5B }
:root[data-theme="dark"] :where(.out-scope) .matrix-table tr:last-child td, :root[data-theme="dark"] :where(.out-scope) .matrix-table tr:last-child th { border-bottom: none }
:root[data-theme="dark"] :where(.out-scope) .matrix-table th:last-child, :root[data-theme="dark"] :where(.out-scope) .matrix-table td:last-child { border-right: none }
:root[data-theme="dark"] :where(.out-scope) .matrix-table thead th { background: #3C3C3C; color: #E5E5E5 }
:root[data-theme="dark"] :where(.out-scope) .matrix-table tbody tr:first-child td { border-top: 2px solid #4C4C5B }
:root[data-theme="dark"] :where(.out-scope) .matrix-table .cat { background: #3C3C3C }
:root[data-theme="dark"] :where(.out-scope) .matrix-table .content { background: #2A2A2A }
:root[data-theme="dark"] :where(.out-scope) .matrix-table .bullet { background: #86869A }
:root[data-theme="dark"] :where(.out-scope) .matrix-table .content .line--desc .line-desc { color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) .matrix-table .ghost-in { color: var(--muted) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="mo"]:not([data-item="전과목 역량"]):not([data-item="전과목 모형 이름"]) .row > label .ghost-in { color: var(--muted) !important }
:root[data-theme="dark"] :where(.out-scope) .cbx-box { border: 1px solid #4E4E4E; background: #202020 }
:root[data-theme="dark"] :where(.out-scope) .cbx-title { color: var(--toss-text-strong); text-decoration: none }
:root[data-theme="dark"] :where(.out-scope) .cbx-write { color: #C5C5C5; background: #202020; border: 1px solid #4E4E4E; text-decoration: none }
:root[data-theme="dark"] :where(.out-scope) .cbx-write:hover { background: var(--toss-bg-input) }
:root[data-theme="dark"] :where(.out-scope) .cbx-row { color: #C5C5C5; text-decoration: none }
:root[data-theme="dark"] :where(.out-scope) .cbx-row:hover .cbx-t { text-decoration: underline }
:root[data-theme="dark"] :where(.out-scope) .cbx-c { color: var(--toss-brand) }
:root[data-theme="dark"] :where(.out-scope) .cbx-sk { background: #303030 }
:root[data-theme="dark"] :where(.out-scope) .cbx-empty { color: var(--toss-text-tertiary) }
:root[data-theme="dark"] :where(.out-scope) .matrix-table td .group-children { border-left: 2px solid rgba(255, 255, 255, 0.14) }
:root[data-theme="dark"] :where(.out-scope) .nav { background: #202020; border-top: none; border-bottom: 1px solid var(--toss-line) }
:root[data-theme="dark"] :where(.out-scope) #topNav.nav-row { border-bottom: 1px solid var(--toss-line) }
:root[data-theme="dark"] :where(.out-scope) #subNav.nav-row, :root[data-theme="dark"] :where(.out-scope) #commNav.nav-row { border-bottom: 1px solid var(--toss-line) }
:root[data-theme="dark"] :where(.out-scope) .nav-cat-label { color: var(--toss-text-tertiary) }
:root[data-theme="dark"] :where(.out-scope) #topNav .chip, :root[data-theme="dark"] :where(.out-scope) #subNav .subchip, :root[data-theme="dark"] :where(.out-scope) #eduNav .subchip, :root[data-theme="dark"] :where(.out-scope) #commNav .subchip { background: transparent; border: 1px solid var(--toss-border); color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) #topNav .chip:hover, :root[data-theme="dark"] :where(.out-scope) #subNav .subchip:hover, :root[data-theme="dark"] :where(.out-scope) #eduNav .subchip:hover, :root[data-theme="dark"] :where(.out-scope) #commNav .subchip:hover { background: var(--toss-brand-tint); color: var(--toss-brand); border-color: var(--toss-brand-border) }
:root[data-theme="dark"] :where(.out-scope) #topNav .chip.active, :root[data-theme="dark"] :where(.out-scope) #subNav .subchip.active, :root[data-theme="dark"] :where(.out-scope) #eduNav .subchip.active, :root[data-theme="dark"] :where(.out-scope) #commNav .subchip.active { background: rgba(240, 82, 122, 0.15); color: var(--toss-brand); border-color: var(--toss-brand-border) }
:root[data-theme="dark"] .out-scope { background: var(--toss-bg-page) }
:root[data-theme="dark"] :where(.out-scope) #grid .card { border: none; background: var(--toss-bg-card) }
:root[data-theme="dark"] :where(.out-scope) #grid .card h2 { color: var(--toss-text-tertiary) }
:root[data-theme="dark"] :where(.out-scope) #grid label { color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) #grid .substeps { border-left-color: var(--toss-surface-muted) }
:root[data-theme="dark"] :where(.out-scope) #grid input[type="text"] { background: var(--toss-bg-card); border: 1.5px solid var(--toss-border); color: var(--toss-text-strong) }
:root[data-theme="dark"] :where(.out-scope) #grid input[type="text"]:focus { background: var(--toss-bg-card); border-color: var(--toss-brand); outline: none }
:root[data-theme="dark"] :where(.out-scope) #grid input[type="text"].ok { background: var(--toss-up-tint); border-color: var(--toss-up) }
:root[data-theme="dark"] :where(.out-scope) #grid input[type="text"].bad { background: var(--toss-down-tint); border-color: var(--toss-down) }
:root[data-theme="dark"] :where(.out-scope) .passage-block { color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .tabs-card.is-passage { background: #202020 }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block { border-bottom: none }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block:last-child { border-bottom: 0 }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-marker { color: var(--toss-text-strong) }
:root[data-theme="dark"] :where(.out-scope) .passage-marker { color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) .passage-leading { color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) .passage-inline-marker { color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) #tabs input[type="text"].inline-blank { background: var(--toss-bg-input); border: 1.5px solid var(--toss-border); color: var(--toss-text-strong) }
:root[data-theme="dark"] :where(.out-scope) #tabs input[type="text"].inline-blank.ok { background: var(--toss-up-tint); border-color: var(--toss-up) }
:root[data-theme="dark"] :where(.out-scope) #tabs input[type="text"].inline-blank.bad { background: var(--toss-down-tint); border-color: var(--toss-down) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .is-passage input[type="text"].inline-blank { background: transparent !important; border: none !important; border-bottom: 2px solid rgba(255, 255, 255, 0.252) !important }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .is-passage input[type="text"].inline-blank:focus { border-bottom-color: var(--toss-brand-focus) !important }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .is-passage input[type="text"].inline-blank.ok { background: transparent !important; border-bottom-color: var(--toss-up) !important }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .is-passage input[type="text"].inline-blank.bad { background: transparent !important; border-bottom-color: var(--toss-down) !important }
:root[data-theme="dark"] :where(.out-scope) .btn { border: 1.5px solid transparent; background: var(--toss-bg-input); color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) .btn-green { background: var(--toss-brand); border-color: var(--toss-brand); color: #fff }
:root[data-theme="dark"] :where(.out-scope) .btn-red { background: transparent; border-color: var(--toss-border); color: var(--toss-text-secondary) }
:root[data-theme="dark"] :where(.out-scope) .btn-red:hover { background: var(--toss-surface-muted) }
:root[data-theme="dark"] :where(.out-scope) input[type="text"], :root[data-theme="dark"] :where(.out-scope) input[type="password"] { background: var(--toss-bg-input); border: 1.5px solid transparent; color: var(--toss-text-strong) }
:root[data-theme="dark"] :where(.out-scope) input[type="text"]:focus, :root[data-theme="dark"] :where(.out-scope) input[type="password"]:focus { background: var(--toss-bg-card); border-color: var(--toss-brand); outline: none }
:root[data-theme="dark"] :where(.out-scope) #grid input[type="text"], :root[data-theme="dark"] :where(.out-scope) #tabs input[type="text"] { background: #202020; border: 1.5px solid var(--toss-border); color: var(--toss-text-strong) }
:root[data-theme="dark"] :where(.out-scope) #grid input[type="text"]:focus, :root[data-theme="dark"] :where(.out-scope) #tabs input[type="text"]:focus { background: #202020; border-color: var(--toss-brand-focus); outline: none }
:root[data-theme="dark"] :where(.out-scope) #tabs .capture-title { color: #E5E5E5 }
:root[data-theme="dark"] :where(.out-scope) #tabs input[type="text"].ok { background: var(--toss-up-tint); border-color: var(--toss-up) }
:root[data-theme="dark"] :where(.out-scope) #tabs input[type="text"].bad { background: var(--toss-down-tint); border-color: var(--toss-down) }
:root[data-theme="dark"] :where(.out-scope) select { background: var(--toss-bg-input); border: 1.5px solid transparent; color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) select:focus { background: var(--toss-bg-card); border-color: var(--toss-brand); outline: none }
:root[data-theme="dark"] :where(.out-scope) .cboard-title { color: var(--toss-label) }
:root[data-theme="dark"] :where(.out-scope) .cboard-write { color: #fff; background: var(--toss-brand); text-decoration: none }
:root[data-theme="dark"] :where(.out-scope) .cboard-write:hover { background: #E64870 }
:root[data-theme="dark"] :where(.out-scope) .cboard-nav { border: 1px solid var(--toss-border); background: #202020; color: #B7B7B7 }
:root[data-theme="dark"] :where(.out-scope) .cboard-card { border: 1px solid var(--toss-line); background: #202020; text-decoration: none }
:root[data-theme="dark"] :where(.out-scope) .cboard-card:hover { background: var(--toss-brand-row); border-color: var(--toss-brand-border) }
:root[data-theme="dark"] :where(.out-scope) .cboard-meta-top { color: #A7A7A7 }
:root[data-theme="dark"] :where(.out-scope) .cboard-hot { color: #F04452; background: #3B1C20 }
:root[data-theme="dark"] :where(.out-scope) .cboard-card-title { color: #DCDCDC }
:root[data-theme="dark"] :where(.out-scope) .cboard-meta { color: #A7A7A7 }
:root[data-theme="dark"] :where(.out-scope) .cboard-cmt { color: var(--toss-brand) }
:root[data-theme="dark"] :where(.out-scope) .side-widget { border: 1px solid var(--toss-line); background: #202020 }
:root[data-theme="dark"] :where(.out-scope) .page-widget-total { color: var(--toss-text-secondary) }
:root[data-theme="dark"] :where(.out-scope) .city-widget { border: 1px solid var(--toss-line); background: #202020 }
:root[data-theme="dark"] :where(.out-scope) .city-widget-title { color: var(--toss-label) }
:root[data-theme="dark"] :where(.out-scope) .city-widget-name { color: var(--toss-label) }
:root[data-theme="dark"] :where(.out-scope) .city-widget-bar-track { background: #2F2F2F }
:root[data-theme="dark"] :where(.out-scope) .city-widget-bar-fill { background: var(--toss-brand) }
:root[data-theme="dark"] :where(.out-scope) .page-widget-value { color: var(--toss-text-secondary) }
:root[data-theme="dark"] :where(.out-scope) .page-widget-bar-track { background: #2F2F2F }
:root[data-theme="dark"] :where(.out-scope) .page-widget-bar-fill { background: var(--toss-brand) }
:root[data-theme="dark"] :where(.out-scope) .page-widget-label { color: var(--toss-label); text-decoration: none }
:root[data-theme="dark"] :where(.out-scope) .page-widget-label:hover { text-decoration: underline }
:root[data-theme="dark"] :where(.out-scope) .city-widget-date { color: var(--toss-text-tertiary) }
:root[data-theme="dark"] :where(.out-scope) .site-footer a { color: var(--toss-text-tertiary); text-decoration: none }
:root[data-theme="dark"] :where(.out-scope) .site-footer a:hover { text-decoration: underline }
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar { background: var(--toss-bg-card) }
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-label { color: var(--toss-text-tertiary) }
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-seg { background: #323232 }
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-seg > button { border: 0; background: transparent; color: var(--toss-text-secondary) }
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-seg > button.is-on { background: #202020; color: var(--toss-brand) }
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-toggle { border: 0; background: rgba(255, 255, 255, 0.16) }
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-toggle.is-on { background: var(--toss-brand) }
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-toggle i { background: #202020 }
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-settings-btn { border: 0; background: #323232; color: var(--toss-text-secondary) }
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-settings-btn .mt-badge { background: var(--toss-brand) }
@media (max-width: 720px) {
  :root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-level-wrap, :root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-shuffle-wrap { border-top: 1px solid rgba(255, 255, 255, 0.084) }
}
:root[data-theme="dark"] :where(.out-scope) #tabs .edu-subtabs { border-bottom: 1px solid rgba(255, 255, 255, 0.112) }
:root[data-theme="dark"] :where(.out-scope) #tabs .est-tab { border-bottom: 2px solid transparent; color: #8D8D8D; text-decoration: none }
:root[data-theme="dark"] :where(.out-scope) #tabs .est-tab:hover { color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) #tabs .est-tab:focus-visible { outline: 2px solid var(--toss-brand) }
:root[data-theme="dark"] :where(.out-scope) #tabs .est-tab.is-on { color: var(--toss-brand); border-bottom-color: var(--toss-brand) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .tabs-card.is-passage { background: #202020; border: 1px solid rgba(255, 255, 255, 0.112) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .pc-head { border-bottom: 1px solid rgba(255, 255, 255, 0.084) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .pc-eyebrow { color: var(--toss-brand) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .pc-head h2 { color: #DDDDDD }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block { border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #CDCDCD }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-block:last-child { border-bottom: 0 }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"] .is-passage .passage-marker { color: #A7A7A7 }
:root[data-theme="dark"] :where(.out-scope) #tabs .edu-empty { border: 1px solid rgba(255, 255, 255, 0.112) }
:root[data-theme="dark"] :where(.out-scope) .learning-reference { color: #CACACA }
:root[data-theme="dark"] :where(.out-scope) .learning-reference summary { color: #868686 }
:root[data-theme="dark"] :where(.out-scope) .learning-reference summary:focus-visible { outline: 3px solid #4263eb }
:root[data-theme="dark"] :where(.out-scope) .reference-content th, :root[data-theme="dark"] :where(.out-scope) .reference-content td { border: 1px solid #47586F }
:root[data-theme="dark"] :where(.out-scope) .reference-content th { background: #2B2B2B }
:root[data-theme="dark"] :where(.out-scope) .site-footer .learning-reference summary { color: var(--toss-text-tertiary) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"].edu-content .is-passage .passage-marker, :root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"].edu-content .is-passage .passage-inline-marker { color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"].edu-content .is-passage .passage-block.indent-lv-1::before { color: var(--toss-text-primary) }
:root[data-theme="dark"] :where(.out-scope) #tabs.edu-content .social-content-table thead th { background: #262626; color: #797979; border-bottom: 1px solid rgba(255, 255, 255, 0.112) }
:root[data-theme="dark"] :where(.out-scope) #tabs.edu-content .social-content-table tbody th, :root[data-theme="dark"] :where(.out-scope) #tabs.edu-content .social-content-table tbody td { border-bottom: 1px solid rgba(255, 255, 255, 0.084); border-right: 1px solid rgba(255, 255, 255, 0.07) }
:root[data-theme="dark"] :where(.out-scope) #tabs.edu-content .social-content-table tbody th { background: #242424 }
:root[data-theme="dark"] :where(.out-scope) #tabs.edu-content .social-content-table tr:last-child>* { border-bottom: 0 }
:root[data-theme="dark"] :where(.out-scope) #tabs.edu-content .social-content-table .passage-block { border: 0 }
:root[data-theme="dark"] :where(.out-scope) #tabs.edu-content .social-content-table .sct-grade { color: #8A8A8A }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"].edu-content .standard-full-row .standard-full-input { border: 0; border-bottom: 2px solid rgba(255, 255, 255, 0.252); background: transparent }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"].edu-content .standard-full-input:focus { border-bottom-color: var(--toss-brand-focus) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"].edu-content .standard-full-input.ok { border-bottom-color: var(--toss-up) }
:root[data-theme="dark"] :where(.out-scope) #tabs[data-ctx="edu"].edu-content .standard-full-input.bad { border-bottom-color: var(--toss-down) }

/* 다크모드 전용 보정 */
:root[data-theme="dark"] :where(.out-scope) #tabs .mode-toolbar .mt-toggle i { background: #F2F2F2 }

/* ══ DARK MODE — END ══ */

/* 헤더 커뮤니티 게시판 바 — 글자 + 세로 구분선, 로고 옆 왼쪽 정렬 */

/* ── 홈 커뮤니티 (캐러셀·4칸 박스 대체) ── */
:where(.out-scope) .chome { width: min(96%, 1120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 250px; gap: 16px; margin: 8px 0 16px; align-items: start }
:where(.out-scope) .ch-col { display: flex; flex-direction: column; gap: 16px; min-width: 0 }
:where(.out-scope) .ch-card { border: 1px solid #E5E8EB; border-radius: 10px; padding: 20px 22px; background: #fff; display: flex; flex-direction: column; gap: 12px; min-width: 0 }
:where(.out-scope) .ch-notice { background: #FFF3E0; border-color: #FFF3E0 }
:where(.out-scope) .ch-best { background: #F8F9FB }
:where(.out-scope) .ch-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid #191F28 }
:where(.out-scope) .ch-notice .ch-head { border-bottom-color: #F29A1F }
:where(.out-scope) .ch-title { font-size: 16px; font-weight: 700; color: #333D4B; text-decoration: none }
:where(.out-scope) .ch-more { font-size: 12px; font-weight: 600; color: #6B7684; text-decoration: none }
:where(.out-scope) .ch-list { display: flex; flex-direction: column; min-height: 40px }
:where(.out-scope) .ch-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 14px; color: #333D4B; text-decoration: none; border-bottom: 1px solid #F2F4F6 }
:where(.out-scope) .ch-row:last-child { border-bottom: 0 }
:where(.out-scope) .ch-row:hover .ch-t { text-decoration: underline }
:where(.out-scope) .ch-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
:where(.out-scope) .ch-rank { flex: none; width: 14px; font-size: 13px; font-weight: 700; color: #8B95A1 }
:where(.out-scope) .ch-rank.hot { color: #F04452 }
:where(.out-scope) .ch-tag { flex: none; padding: 1px 6px; border-radius: 4px; background: #fff; font-size: 11px; font-weight: 700; color: #E8890C }
:where(.out-scope) .ch-cm { flex: none; font-size: 13px; font-weight: 700; color: #3182F6 }
:where(.out-scope) .ch-up { flex: none; min-width: 20px; text-align: right; font-size: 13px; font-weight: 700; color: #F04452 }
:where(.out-scope) .ch-time { flex: none; font-size: 12px; color: #8B95A1; font-variant-numeric: tabular-nums }
:where(.out-scope) .ch-sk { display: block; flex: none; height: 17px; margin: 8px 0; border-radius: 4px; background: #F2F4F6 } /* 8+17+8 = 글 한 줄(.ch-row) 33px */
:where(.out-scope) .ch-empty { margin: 8px 0; font-size: 14px; color: #8B95A1 }
:where(.out-scope) .ch-side-t { font-size: 14px; font-weight: 700; color: #191F28 }
:where(.out-scope) .ch-card p { margin: 0; font-size: 13px; line-height: 1.5; color: #4E5968 }
:where(.out-scope) .ch-card p span { font-size: 12px; white-space: nowrap; letter-spacing: -.3px }
:where(.out-scope) .ch-btn { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; background: #191F28; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none }
:where(.out-scope) .ch-btn:hover { background: #333D4B; color: #fff }
:where(.out-scope) .ch-info { background: #E8F3FF; border-color: #E8F3FF }
@media (max-width: 720px) { :where(.out-scope) .chome { grid-template-columns: repeat(2, minmax(0, 1fr)) } :where(.out-scope) .ch-side { grid-column: 1 / -1; flex-direction: row } :where(.out-scope) .ch-side .ch-card { flex: 1 } }
@media (max-width: 640px) { :where(.out-scope) .chome { grid-template-columns: minmax(0, 1fr) } :where(.out-scope) .ch-side { flex-direction: column } }
:root[data-theme="dark"] :where(.out-scope) .ch-card { background: #202020; border-color: #404040 }
:root[data-theme="dark"] :where(.out-scope) .ch-notice { background: #3A2F1E; border-color: #3A2F1E }
:root[data-theme="dark"] :where(.out-scope) .ch-best { background: #262626; border-color: #404040 }
:root[data-theme="dark"] :where(.out-scope) .ch-head { border-bottom-color: #ECECEC }
:root[data-theme="dark"] :where(.out-scope) .ch-notice .ch-head { border-bottom-color: #F29A1F }
:root[data-theme="dark"] :where(.out-scope) .ch-title, :root[data-theme="dark"] :where(.out-scope) .ch-row, :root[data-theme="dark"] :where(.out-scope) .ch-side-t { color: #ECECEC }
:root[data-theme="dark"] :where(.out-scope) .ch-more, :root[data-theme="dark"] :where(.out-scope) .ch-time, :root[data-theme="dark"] :where(.out-scope) .ch-empty, :root[data-theme="dark"] :where(.out-scope) .ch-rank { color: #A3A3A3 }
:root[data-theme="dark"] :where(.out-scope) .ch-rank.hot { color: #FF6B78 }
:root[data-theme="dark"] :where(.out-scope) .ch-row { border-bottom-color: #303030 }
:root[data-theme="dark"] :where(.out-scope) .ch-card p { color: #BDBDBD }
:root[data-theme="dark"] :where(.out-scope) .ch-tag { background: #202020 }
:root[data-theme="dark"] :where(.out-scope) .ch-sk { background: #303030 }
:root[data-theme="dark"] :where(.out-scope) .ch-btn { background: #D2D2D2; color: #202020 }
:root[data-theme="dark"] :where(.out-scope) .ch-btn:hover { background: #E4E4E4; color: #202020 }
:root[data-theme="dark"] :where(.out-scope) .ch-info { background: #1F2A3A; border-color: #1F2A3A }

:where(.out-scope) .ch-banner { position: relative; overflow: hidden; border-radius: 10px; background: #F4F4F4; aspect-ratio: 3 / 1 }
:where(.out-scope) .chb-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4, 0, .2, 1) }
:where(.out-scope) .chb-slide { flex: 0 0 100%; min-width: 0; display: block; height: 100% }
:where(.out-scope) .chb-slide img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0 }
:where(.out-scope) .chb-ctl { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 0; padding: 2px 2px 2px 10px; border-radius: 999px; background: rgba(42, 42, 42, .55); color: #fff; font-size: 11px }
:where(.out-scope) .chb-ctl[hidden] { display: none }
:where(.out-scope) .chb-btn { width: 22px; height: 20px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 15px; line-height: 1; cursor: pointer }
:where(.out-scope) .chb-btn:hover { background: rgba(255, 255, 255, .15) }

:where(.out-scope) .chome { align-items: stretch }
:where(.out-scope) .ch-col > :last-child { flex: 1 }
:where(.out-scope) .ch-col .ch-card:last-child .ch-list { flex: 1 }
@media (max-width: 960px) { :where(.out-scope) .ch-side > :last-child { flex: 1 } }

@media (min-width: 721px) {
  :where(.out-scope) .chome { grid-template-rows: auto auto 1fr; row-gap: 16px }
  :where(.out-scope) .chome > .ch-col { display: contents }
  :where(.out-scope) .chome > .ch-col:nth-child(1) > :nth-child(1) { grid-column: 1; grid-row: 1 }
  :where(.out-scope) .chome > .ch-col:nth-child(1) > :nth-child(2) { grid-column: 1; grid-row: 2 }
  :where(.out-scope) .chome > .ch-col:nth-child(1) > :nth-child(3) { grid-column: 1; grid-row: 3 }
  :where(.out-scope) .chome > .ch-col:nth-child(2) > :nth-child(1) { grid-column: 2; grid-row: 1 }
  :where(.out-scope) .chome > .ch-col:nth-child(2) > :nth-child(2) { grid-column: 2; grid-row: 2 }
  :where(.out-scope) .chome > .ch-col:nth-child(2) > :nth-child(3) { grid-column: 2; grid-row: 3 }
  :where(.out-scope) .chome > .ch-col:nth-child(3) > :nth-child(1) { grid-column: 3; grid-row: 1 }
  :where(.out-scope) .chome > .ch-col:nth-child(3) > :nth-child(2) { grid-column: 3; grid-row: 2 / span 2 }
  :where(.out-scope) .ch-banner { aspect-ratio: auto; min-height: 110px }
}

@media (min-width: 721px) { :where(.out-scope) .chome { grid-template-rows: var(--ch-r1, 285px) auto 1fr } :where(.out-scope) .ch-banner { min-height: 0 } }

@media (min-width: 721px) {
  :where(.out-scope) .chome { grid-template-rows: minmax(var(--ch-r1, 130px), auto) auto 1fr }
  :where(.out-scope) .chome > .ch-col:nth-child(1) > .ch-notice, :where(.out-scope) .chome > .ch-col:nth-child(3) > .ch-login { padding: 14px 22px; gap: 8px }
  :where(.out-scope) .ch-notice .ch-row { padding: 6px 0 }
  :where(.out-scope) .ch-login p { font-size: 12px; line-height: 1.4 }
  :where(.out-scope) .ch-login .ch-btn { height: 36px }
}

:where(.out-scope) .ch-card, :where(.out-scope) .ch-banner, :where(.out-scope) .ch-btn, :where(.out-scope) .ch-tag { border-radius: 0 }

:where(.out-scope) .city-widget, :where(.out-scope) .study-widget, :where(.out-scope) .side-widget, :where(.out-scope) .feedback-box, :where(.out-scope) .feedback-row input[type="text"], :where(.out-scope) .feedback-row button, :where(.out-scope) .cboard-widget, :where(.out-scope) .study-login, :where(.out-scope) .study-grid > div { border-radius: 0 !important }

:where(.out-scope) .ch-card, :where(.out-scope) .ch-banner { border-radius: 6px }
:where(.out-scope) .ch-btn { border-radius: 6px }
:where(.out-scope) .ch-tag { border-radius: 4px }
:where(.out-scope) .city-widget, :where(.out-scope) .study-widget, :where(.out-scope) .side-widget, :where(.out-scope) .feedback-box, :where(.out-scope) .cboard-widget { border-radius: 6px !important }
:where(.out-scope) .feedback-row input[type="text"], :where(.out-scope) .feedback-row button, :where(.out-scope) .study-login { border-radius: 6px !important }
:where(.out-scope) .study-grid > div { border-radius: 3px !important }

:where(.out-scope) .ch-card { padding: 12px 14px; gap: 8px }
:where(.out-scope) .ch-head { padding-bottom: 8px }
:where(.out-scope) .ch-row { padding: 6px 0 }
:where(.out-scope) .chome > .ch-col:nth-child(1) > .ch-notice, :where(.out-scope) .chome > .ch-col:nth-child(3) > .ch-login { padding: 12px 14px; gap: 6px }
:where(.out-scope) .ch-notice .ch-row { padding: 4px 0 }
:where(.out-scope) .ch-empty { margin: 4px 0 }

:where(.out-scope) .ch-card { padding: 16px 16px; gap: 10px }
:where(.out-scope) .ch-head { padding-bottom: 10px }
:where(.out-scope) .ch-row { padding: 8px 0 }
:where(.out-scope) .chome > .ch-col:nth-child(1) > .ch-notice, :where(.out-scope) .chome > .ch-col:nth-child(3) > .ch-login { padding: 14px 16px; gap: 8px }
:where(.out-scope) .ch-notice .ch-row { padding: 5px 0 }
:where(.out-scope) .ch-empty { margin: 6px 0 }

:where(.out-scope) .ch-card { padding: 14px }
:where(.out-scope) .chome > .ch-col:nth-child(1) > .ch-notice, :where(.out-scope) .chome > .ch-col:nth-child(3) > .ch-login { padding: 14px }

:where(.out-scope) .ch-card { padding: 12px }
:where(.out-scope) .chome > .ch-col:nth-child(1) > .ch-notice, :where(.out-scope) .chome > .ch-col:nth-child(3) > .ch-login { padding: 12px }

:where(.out-scope) .ch-head { padding-left: 6px; padding-right: 6px }

:where(.out-scope) .ch-head { padding-left: 3px; padding-right: 3px }

:where(.out-scope) .ch-head { padding-left: 2px; padding-right: 2px }

:where(.out-scope) .ch-up { min-width: 0 }

.out-scope.is-home #content { padding-top: 8px }
.out-scope.is-home #home { padding-top: 0 }
:where(.out-scope) .chome { margin-top: 0 }

:where(.out-scope) .ch-row { gap: 3px }
:where(.out-scope) .ch-t { flex: 0 1 auto }
:where(.out-scope) .ch-cm { margin-left: 1px }
:where(.out-scope) .ch-notice .ch-cm { margin-left: auto }
:where(.out-scope) .ch-r { margin-left: auto; padding-left: 8px; display: flex; align-items: center; gap: 8px; flex: none }
:where(.out-scope) .ch-rank { margin-right: 5px }
:where(.out-scope) .ch-tag { margin-right: 5px }

@media (min-width: 721px) {
  :where(.out-scope) .chome { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--ch-right, 260px); grid-template-rows: auto auto }
  :where(.out-scope) .chome > .ch-col:nth-child(1) > :nth-child(1) { grid-column: 1; grid-row: 1 }
  :where(.out-scope) .chome > .ch-col:nth-child(1) > :nth-child(2) { grid-column: 1; grid-row: 2 }
  :where(.out-scope) .chome > .ch-col:nth-child(2) > :nth-child(1) { grid-column: 2; grid-row: 1 }
  :where(.out-scope) .chome > .ch-col:nth-child(2) > :nth-child(2) { grid-column: 2; grid-row: 2 }
  :where(.out-scope) .chome > .ch-side { display: flex; grid-column: 3; grid-row: 1 / span 2 }
  :where(.out-scope) .chome > .ch-side > * { grid-column: auto; grid-row: auto }
  :where(.out-scope) .chome > .ch-side > .ch-notice { padding: 12px; gap: 6px }
  :where(.out-scope) .chome > .ch-col:nth-child(1) > :nth-child(1), :where(.out-scope) .chome > .ch-col:nth-child(2) > :nth-child(1) { padding: 12px }
  :where(.out-scope) .ch-banner { aspect-ratio: 3 / 1; min-height: 0; flex: none }
  :where(.out-scope) .ch-side > .ch-notice { flex: 1 }
}

.out-scope.is-home #content { padding-top: 24px }

.out-scope.is-home #content { padding-top: 16px }

.out-scope.is-home #content { padding-top: 14px }

@media (min-width: 721px) {
  :where(.out-scope) .home-extras { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--ch-right, 260px); grid-template-rows: auto 1fr; gap: 16px }
  :where(.out-scope) .home-extras > .city-widget { grid-column: 1; grid-row: 1 / span 2 }
  :where(.out-scope) .home-extras > .home-extras-side { display: contents }
  :where(.out-scope) .home-extras-side .study-widget { grid-column: 2; grid-row: 1 / span 2 }
  :where(.out-scope) .home-extras-side .side-widget { grid-column: 3; grid-row: 2 }
}

:where(.out-scope) .ch-login { border: 0 !important; background: transparent !important; padding: 0 !important; gap: 0 }
:where(.out-scope) .ch-login .ch-btn { height: 40px }

:where(.out-scope) .ch-side > .ch-notice { flex: none !important }
:where(.out-scope) .ch-side > .ch-notice .ch-list { min-height: 0 }

:where(.out-scope) [data-sec="job"] .ch-list { min-height: 108px }

:where(.out-scope) [data-sec="job"] .ch-list { min-height: 0 }

:where(.out-scope) [data-sec="job"] .ch-list { min-height: 98px }

@media (min-width: 721px) {
  :where(.out-scope) .home-extras > .city-widget { grid-column: 3; grid-row: 2 }
  :where(.out-scope) .home-extras-side .side-widget { grid-column: 1; grid-row: 1 / span 2 }
}

@media (min-width: 721px) {
  :where(.out-scope) .home-extras { grid-template-rows: auto auto }
  :where(.out-scope) .home-extras-side .side-widget { grid-column: 1; grid-row: 1 }
  :where(.out-scope) .home-extras-side .study-widget { grid-column: 2; grid-row: 1 }
  :where(.out-scope) .home-extras > .city-widget { grid-column: 3; grid-row: 1 }
}

@media (min-width: 721px) {
  :where(.out-scope) .chome .ch-side > .ch-banner { flex: none; aspect-ratio: 3.5 / 1; height: auto }
}

:where(.out-scope) .ch-side { gap: 12px }
:where(.out-scope) .ch-bn { display: block; flex: none; aspect-ratio: 3.5 / 1; overflow: hidden; border-radius: 6px; background: #F4F4F4 }
:where(.out-scope) .ch-bn img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0 }

:where(.out-scope) .chome .ch-side > .ch-bn { flex: none !important; height: auto; aspect-ratio: 3.5 / 1 }

:where(.out-scope) .chome .ch-side > .ch-bn { flex: 1 1 0 !important; aspect-ratio: auto; min-height: 60px }

@media (min-width: 721px) {
  :where(.out-scope) .home-extras { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}

:where(.out-scope) .city-widget-bar-fill, :where(.out-scope) .page-widget-bar-fill, :root[data-theme="dark"] :where(.out-scope) .city-widget-bar-fill, :root[data-theme="dark"] :where(.out-scope) .page-widget-bar-fill { background: #F27A95 }
:where(.out-scope) .study-grid .l1 { background: #FCD9E1 }
:where(.out-scope) .study-grid .l2 { background: #F7AABD }
:where(.out-scope) .study-grid .l3 { background: #F27A95; color: #fff }
:where(.out-scope) .study-grid .l4 { background: #D94F75; color: #fff }
:where(.out-scope) .study-streak { color: #D94F75 }
:root[data-theme="dark"] :where(.out-scope) .study-grid .l1 { background: #5A2636 }
:root[data-theme="dark"] :where(.out-scope) .study-grid .l2 { background: #8F3551 }
:root[data-theme="dark"] :where(.out-scope) .study-grid .l3 { background: #D2496F; color: #fff }
:root[data-theme="dark"] :where(.out-scope) .study-grid .l4 { background: #FF84A4; color: #191F28 }
:root[data-theme="dark"] :where(.out-scope) .study-streak { color: #FF84A4 }

:where(.out-scope) .page-widget-bar-track { width: 8px; align-self: center; background: transparent !important; border-radius: 4px }
:where(.out-scope) .home-extras .page-widget-bar-fill, :root[data-theme="dark"] :where(.out-scope) .home-extras .page-widget-bar-fill { background: #D5D9DF; border-radius: 4px }
:where(.out-scope) .home-extras .page-widget-col:first-child .page-widget-bar-fill, :root[data-theme="dark"] :where(.out-scope) .home-extras .page-widget-col:first-child .page-widget-bar-fill { background: #F27A95 }
:root[data-theme="dark"] :where(.out-scope) .home-extras .page-widget-bar-fill { background: #4A4A4A }
:root[data-theme="dark"] :where(.out-scope) .home-extras .page-widget-col:first-child .page-widget-bar-fill { background: #F27A95 }
:where(.out-scope) .page-widget-value { color: #8B95A1 }

:where(.out-scope) .page-widget-bar-track { width: 16px; border-radius: 4px 4px 0 0 }
:where(.out-scope) .home-extras .page-widget-bar-fill, :root[data-theme="dark"] :where(.out-scope) .home-extras .page-widget-bar-fill { border-radius: 4px 4px 0 0 }

@media (min-width: 721px) {
  :where(.out-scope) .page-widget-chart { gap: 0 }
  :where(.out-scope) .page-widget-label { font-size: 10px; letter-spacing: -0.06em }
  :where(.out-scope) .page-widget-value { font-size: 9px; letter-spacing: -0.06em; white-space: nowrap }
}

@media (min-width: 721px) {
  :where(.out-scope) .home-extras .side-widget { container-type: inline-size }
  @container (max-width: 329px) { :where(.out-scope) .page-widget-col:nth-child(n+11) { display: none } }
}

@media (min-width: 721px) {
  @container (max-width: 329px) {
    :where(.out-scope) .page-widget-col:nth-child(n+11) { display: flex }
    :where(.out-scope) .page-widget-label { font-size: 8px; letter-spacing: -0.1em; word-break: break-all }
    :where(.out-scope) .page-widget-value { font-size: 8px; letter-spacing: -0.1em }
    :where(.out-scope) .page-widget-bar-track { width: 100%; max-width: 16px }
  }
}

@media (min-width: 721px) {
  @container (max-width: 329px) {
    :where(.out-scope) .page-widget-label { font-size: 9px; letter-spacing: -0.08em }
    :where(.out-scope) .page-widget-value { font-size: 9px; letter-spacing: -0.08em }
  }
}

@media (max-width: 720px) {
  :where(.out-scope) .home-extras, :where(.out-scope) .ch-login, :where(.out-scope) .ch-side .feedback-box, :where(.out-scope) .ch-side > a.ch-bn:nth-of-type(n+2), :where(.out-scope) .chome [data-sec="study"] { display: none !important }
  :where(.out-scope) .chome { display: flex; flex-direction: column; gap: 12px }
  :where(.out-scope) .chome > .ch-col, :where(.out-scope) .chome > .ch-side { display: contents }
  :where(.out-scope) .ch-side > a.ch-bn:nth-of-type(1) { order: -1; flex: none !important; aspect-ratio: 3 / 1; width: 100%; height: auto }
  :where(.out-scope) .chome [data-sec="free"] { order: 0 }
  :where(.out-scope) .chome [data-sec="dp"] { order: 1 }
  :where(.out-scope) .chome [data-sec="job"] { order: 2 }
}

@media (min-width: 721px) {
  :where(.out-scope) .home-extras > .city-widget { grid-column: 1; grid-row: 1 }
  :where(.out-scope) .home-extras-side .side-widget { grid-column: 3; grid-row: 1 }
}

:where(.out-scope) .chome .ch-login.chl { display: flex; flex-direction: column; gap: 10px; padding: 12px !important; border: 1px solid #E5E8EB !important; border-radius: 6px; background: #fff !important }
:where(.out-scope) .chl-t { margin: 0; font-size: 13px; color: #4E5968 }
:where(.out-scope) .chl-t b { color: #191F28 }
:where(.out-scope) .chl-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 6px; background: #FDECF0; color: #D94F75; font-size: 15px; font-weight: 700; text-decoration: none }
:where(.out-scope) .chl-btn:hover { background: #FBDCE4; color: #D94F75 }
:where(.out-scope) .chl-links { display: flex; justify-content: space-between; align-items: center; font-size: 12px }
:where(.out-scope) .chl-links a { color: #6B7684; text-decoration: none }
:where(.out-scope) .chl-links a:hover { color: #191F28 }
:where(.out-scope) .chl-links .chl-join { color: #D94F75; font-weight: 600 }
:root[data-theme="dark"] :where(.out-scope) .chome .ch-login.chl { background: #202020 !important; border-color: #404040 !important }
:root[data-theme="dark"] :where(.out-scope) .chl-t { color: #BDBDBD }
:root[data-theme="dark"] :where(.out-scope) .chl-t b { color: #ECECEC }
:root[data-theme="dark"] :where(.out-scope) .chl-btn { background: rgba(255, 132, 164, .16); color: #FF84A4 }
:root[data-theme="dark"] :where(.out-scope) .chl-links a { color: #A3A3A3 }
:root[data-theme="dark"] :where(.out-scope) .chl-links .chl-join { color: #FF84A4 }

:where(.out-scope) .ch-card, :where(.out-scope) .ch-banner, :where(.out-scope) .ch-btn, :where(.out-scope) .ch-bn, :where(.out-scope) .chl-btn, :where(.out-scope) .chome .ch-login.chl, :where(.out-scope) .city-widget, :where(.out-scope) .study-widget, :where(.out-scope) .side-widget, :where(.out-scope) .feedback-box, :where(.out-scope) .cboard-widget, :where(.out-scope) .study-login { border-radius: 4px !important }
:where(.out-scope) .ch-tag { border-radius: 3px }

html:has(.out-scope) { overflow-y: scroll; scrollbar-gutter: stable }

@media (max-width: 720px) {
  :where(.out-scope) .chome [data-sec="study"] { display: flex !important }
  :where(.out-scope) .chome [data-sec="free"] { order: 0 }
  :where(.out-scope) .chome [data-sec="study"] { order: 1 }
  :where(.out-scope) .chome [data-sec="dp"] { order: 2 }
  :where(.out-scope) .chome [data-sec="job"] { order: 3 }
}

/* 홈 위쪽 카드·로그인 상자 높이 고정(PC 폭). 오른쪽 광고판 3개는 오른쪽 칸 높이를 나눠 쓰므로, 글이 도착하거나(줄 수),
   이모지 줄(더 높음)·웹 글꼴 적용·로그인 상태 확인(로그인 전/후 상자 높이 차이)으로 카드·상자 높이가 바뀌면 광고판이 커졌다 작아진다.
   높이를 모두 고정해 광고판이 1px도 움직이지 않게 한다(2026-11-23). 값은 기존에 글이 다 찼을 때의 높이와 같다. */
@media (min-width: 721px) {
  :where(.out-scope) .chome .ch-card .ch-head { flex: none; height: 31px; box-sizing: border-box; overflow: hidden }
  :where(.out-scope) .chome .ch-card .ch-list { flex: none !important; min-height: 0 !important; overflow: hidden }
  :where(.out-scope) .chome [data-sec="free"] .ch-list, :where(.out-scope) .chome [data-sec="dp"] .ch-list { height: 131px }
  :where(.out-scope) .chome [data-sec="study"] .ch-list, :where(.out-scope) .chome [data-sec="job"] .ch-list { height: 98px }
  :where(.out-scope) .chome .ch-row { flex: none; height: 33px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; overflow: hidden }
  :where(.out-scope) .chome .ch-side > .ch-login { flex: none; height: 95px; box-sizing: border-box; overflow: hidden }
}

/* 홈 첫 화면 로딩(2026-11-29): js-loading 동안에도 진짜 홈(#home)을 보이고, 글 카드의 줄만 회색 막대로 가린다.
   오른쪽 칸(내 정보/로그인·광고)은 그대로 보이고, 줄 높이가 같아 로딩이 끝나도 화면이 뛰지 않는다. 아래 위젯(.home-extras)은 로딩 동안만 숨긴다. */
.out-scope.js-loading.is-home #home { display: flex !important }
.out-scope.js-loading.is-home #home .home-extras { display: none }
.out-scope.js-loading.is-home #home .ch-col:not(.ch-side) .ch-row { position: relative }
.out-scope.js-loading.is-home #home .ch-col:not(.ch-side) .ch-row > * { visibility: hidden }
.out-scope.js-loading.is-home #home .ch-col:not(.ch-side) .ch-row::after { content: ""; position: absolute; left: 0; right: 25%; top: 50%; height: 17px; margin-top: -8px; border-radius: 4px; background: linear-gradient(90deg, #F2F4F6 25%, #E5E8EB 37%, #F2F4F6 63%); background-size: 800px 100%; animation: skeleton-shimmer 1.4s linear infinite }
:root[data-theme="dark"] .out-scope.js-loading.is-home #home .ch-col:not(.ch-side) .ch-row::after { background: linear-gradient(90deg, #303030 25%, #3A3A3A 37%, #303030 63%); background-size: 800px 100% }

body:has(.out-scope) { font-family: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif }
html:has(.out-scope) { background: #FFFFFF }
:root[data-theme="dark"]:has(.out-scope) { background: #202020 }
