/* ==========================================================================
   Gradecut — 설명 탭 (Apple Sticky Scrollytelling · 시안 B 클린 화이트 스튜디오)
   100% Current Site Design System + Dark Mode Compatible
   ========================================================================== */

.show-guide body {
  background: var(--bg-page);
}
.show-guide .layout,
.show-guide .crumbs,
.show-guide #home,
.show-guide #ai-cuts,
.show-guide #admissions,
.show-guide #install {
  display: none !important;
}
.show-guide #guide {
  display: block !important;
  transform: none !important;
}
.show-guide .top .meta {
  display: none !important;
}

/* Ensure 6 GNB tabs fit comfortably across desktop widths (961px–1440px) */
@media (min-width: 961px) and (max-width: 1140px) {
  .site-views {
    gap: 3px;
  }
  .site-views a {
    padding: 7px 10px;
    font-size: 13.5px;
    gap: 5px;
  }
  .pc-search-wrap {
    width: 176px;
  }
}

/* Mobile 6-tab bottom bar (홈 · AI 등급컷 · AI 라인 · 등급컷 · 설명 · 앱 설치) */
@media (max-width: 960px) {
  .mobile-bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    padding-left: 2px;
    padding-right: 2px;
  }
  .mobile-bottom-nav a {
    font-size: 10px;
    letter-spacing: -0.025em;
    white-space: nowrap;
    gap: 2.5px;
  }
  .mobile-bottom-nav a svg {
    width: 19px;
    height: 19px;
  }
}

/* Guide View Shell */
.guide-view {
  background: var(--bg-page);
  min-height: calc(100dvh - 60px);
}

/* Sticky Subheader: Track Switcher (AI 등급컷 이용하기 / AI 라인 이용하기) + 5-Step Rail */
.gd-subbar {
  position: sticky;
  top: 60px;
  z-index: 28;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hp-hairline);
}
@media (max-width: 960px) {
  .gd-subbar {
    top: 54px;
  }
}
.gd-subbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 20px 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.gd-track-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3.5px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--line);
}
.gd-track-btn {
  border: none;
  background: transparent;
  color: var(--grey);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.gd-track-btn:hover {
  color: var(--ink);
}
.gd-track-btn[aria-selected="true"] {
  background: var(--blue-solid);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

/* Top Step Jumper + Linear Progress Rail (Proposal B Signature) */
.gd-step-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gd-step-nav::-webkit-scrollbar { display: none; }
.gd-step-chip {
  border: 1px solid transparent;
  background: transparent;
  color: var(--faint);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 160ms ease;
}
.gd-step-mob {
  display: none;
}
.gd-step-chip:hover {
  color: var(--ink);
  background: var(--bg-page);
}
.gd-step-chip.is-active {
  color: var(--blue);
  background: var(--ai-bg);
  border-color: var(--ai-border);
  font-weight: 700;
}

@media (max-width: 720px) {
  .gd-subbar-inner {
    padding: 5px 10px 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .gd-track-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding: 2.5px;
  }
  .gd-track-btn {
    padding: 4.5px 8px;
    font-size: 12px;
    text-align: center;
  }
  .gd-step-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow: visible;
  }
  .gd-step-chip {
    padding: 3px 2px;
    font-size: 10.5px;
    text-align: center;
  }
  .gd-step-full {
    display: none;
  }
  .gd-step-mob {
    display: inline;
  }
}

.gd-rail {
  height: 2.5px;
  width: 100%;
  background: var(--hp-hairline);
  overflow: hidden;
}
.gd-rail-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  transition: width 60ms linear;
}

/* 1080vh Sticky Scrollytelling Runway (PC & Mobile 넉넉한 챕터 홀드 포함) */
.gd-runway {
  position: relative;
  height: 1080vh;
}
.gd-sticky {
  position: sticky;
  top: var(--gd-sticky-top, 112px);
  height: calc(100dvh - var(--gd-sticky-top, 112px));
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 20px 76px;
  overflow-x: hidden;
  overflow-y: auto;
}
@media (max-width: 960px) {
  .gd-runway {
    height: 960vh;
  }
  .gd-sticky {
    top: var(--gd-sticky-top, 132px);
    height: calc(100dvh - var(--gd-sticky-top, 132px) - var(--bottom-nav-h));
    min-height: 0;
    padding: 6px 10px 50px;
  }
}

.gd-stage-wrap {
  width: 100%;
  max-width: 880px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Scene Copy Header */
.gd-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.gd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ai-bg);
  border: 1px solid var(--ai-border);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.gd-headline {
  margin: 0;
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.32;
  color: var(--ink);
  word-break: keep-all;
}
.gd-subcopy {
  margin: 0;
  font-size: 13px;
  color: var(--grey);
  line-height: 1.45;
  word-break: keep-all;
}

/* Clean White Studio Showcase Window */
.gd-window {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07), 0 2px 10px rgba(15, 23, 42, 0.03);
  padding: 22px 24px;
  min-height: 332px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .gd-window {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}
@media (max-width: 640px) {
  .gd-window {
    padding: 11px 11px;
    border-radius: 18px;
    min-height: 0;
  }
  .gd-subcopy {
    font-size: 12px;
  }
}

/* Simulated Pointer + Click Shockwave */
.gd-pointer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.gd-pointer-ring {
  position: absolute;
  left: -14px;
  top: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  background: rgba(37, 99, 235, 0.2);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

/* Blinking Keyboard Caret */
@keyframes gdCaretBlink {
  0%, 48% { opacity: 1; }
  52%, 100% { opacity: 0; }
}
.gd-caret {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: var(--blue-solid);
  margin-left: 1.5px;
  vertical-align: -2px;
  animation: gdCaretBlink 760ms infinite;
}

/* ==========================================================================
   Scene 1-1 & 2-1: Authentic Site Clean Ledger Sheet (#ai-calc / #adm-calc)
   ========================================================================== */
.gd-ledger-card {
  border: 1px solid var(--hp-hairline);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}
.gd-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px 11px;
  border-bottom: 1px solid var(--hp-hairline);
}
.gd-ledger-head > div:first-child {
  min-width: 0;
}
.gd-ledger-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.gd-ledger-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--faint);
  word-break: keep-all;
}
.gd-ledger-head-r {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--faint);
  flex-shrink: 0;
  white-space: nowrap;
}
.gd-provider-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.gd-prov-mob {
  display: none;
}
.gd-preset-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--hp-hairline);
  font-size: 11.5px;
  color: var(--faint);
}
.gd-preset-pills {
  display: flex;
  gap: 5px;
}
.gd-preset-pills span {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--grey);
  font-size: 11px;
  font-weight: 600;
}

.gd-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--hp-hairline);
}
.gd-ledger-row:last-child {
  border-bottom: none;
}
.gd-ledger-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gd-ledger-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  min-width: 42px;
  white-space: nowrap;
}
.gd-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2.5px;
  border-radius: 9px;
  background: var(--bg-page);
}
.gd-seg span {
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--grey);
  white-space: nowrap;
}
.gd-seg span.is-on {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.09);
}
.gd-select-mock {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--bg-page);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.gd-ledger-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.gd-input-box {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 33px;
  min-width: 82px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1.5px solid transparent;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.gd-input-box.is-wide {
  min-width: 114px;
}
.gd-input-box.is-focus {
  background: var(--paper);
  border-color: var(--blue-solid);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.gd-input-cap {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
  white-space: nowrap;
}
.gd-input-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  min-width: 22px;
  text-align: right;
  white-space: nowrap;
}
.gd-plus {
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
}
.gd-sum {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  min-width: 24px;
  text-align: right;
}
.gd-grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--bg-page);
  color: var(--faint);
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}
.gd-grade-pill.is-g1 {
  background: var(--ai-bg);
  color: var(--blue);
}
.gd-ledger-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--panel);
  border-top: 1px solid var(--hp-hairline);
  font-size: 12px;
  color: var(--faint);
}
.gd-submit-mock {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--blue-solid);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.gd-submit-mock.is-ready {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.36);
}

@media (max-width: 640px) {
  .gd-ledger-head, .gd-ledger-row, .gd-ledger-foot, .gd-preset-strip {
    padding-left: 11px;
    padding-right: 11px;
  }
  .gd-ledger-head {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .gd-ledger-head h3 { font-size: 13.5px; }
  .gd-ledger-head p { display: none; }
  .gd-prov-full { display: none; }
  .gd-prov-mob { display: inline; }
  .gd-provider-chip { height: 24px; padding: 0 7px; font-size: 10.5px; }
  .gd-ledger-head-r { gap: 6px; font-size: 11px; }
  .gd-ledger-row {
    padding-top: 5.5px;
    padding-bottom: 5.5px;
    gap: 6px;
  }
  .gd-ledger-left {
    gap: 6px;
    flex-shrink: 0;
  }
  .gd-ledger-name { font-size: 12px; min-width: 32px; }
  /* 모바일 국어·수학 행에서는 비활성 선택지를 접고 홈 미니 계산기처럼 선택된 과목 칩만 깔끔히 표시해 입력칸 겹침을 원천 차단 */
  .gd-ledger-row .gd-seg {
    padding: 0;
    background: transparent;
  }
  .gd-ledger-row .gd-seg span:not(.is-on) {
    display: none;
  }
  .gd-ledger-row .gd-seg span.is-on {
    background: var(--bg-page);
    box-shadow: none;
    padding: 3.5px 7px;
    border-radius: 7px;
    font-size: 10.5px;
  }
  .gd-ledger-row .gd-seg span.is-on::after {
    content: " ▾";
    font-size: 10px;
    color: var(--faint);
  }
  .gd-select-mock { font-size: 10.5px; padding: 0 7px; height: 25px; }
  .gd-ledger-right { gap: 4px; }
  .gd-input-box { min-width: 55px; height: 26px; padding: 0 6px; gap: 3px; border-radius: 8px; }
  .gd-input-box.is-wide { min-width: 84px; }
  .gd-input-cap { font-size: 10px; }
  .gd-input-val { font-size: 11.5px; min-width: 15px; }
  .gd-plus { font-size: 11px; }
  .gd-sum { min-width: 19px; font-size: 12px; }
  .gd-grade-pill { min-width: 37px; height: 19px; font-size: 10px; padding: 0 5px; }
  .gd-preset-strip { display: none; }
  .gd-ledger-foot { padding-top: 6.5px; padding-bottom: 6.5px; font-size: 10.5px; }
  .gd-submit-mock { height: 26px; padding: 0 10px; font-size: 11px; }
}
@media (max-width: 390px) {
  .gd-eh-sub { display: none; }
  .gd-input-box { min-width: 50px; padding: 0 5px; }
  .gd-input-box.is-wide { min-width: 78px; }
}

/* ==========================================================================
   Scene 1-2: Authentic .ai-cut-table (Slow Gentle My-Subject Reveal)
   ========================================================================== */
.gd-cut-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gd-cut-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gd-cut-top-l {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gd-cut-top-l h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.gd-cut-table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}
.gd-cut-mine-row th {
  position: relative;
}
.gd-cut-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue-solid);
  transform-origin: center;
  opacity: 0;
}
.gd-cut-subj-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gd-my-subj-pill {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 8px;
  border-radius: 999px;
  background: var(--blue-solid);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
  opacity: 0;
}
.gd-cut-summary {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ai-bg);
  border: 1px solid var(--ai-border);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
}

/* ==========================================================================
   Scene 1-3: Home Briefing .hp-hist Vertical Bar Chart (0% -> Rise -> Blue)
   ========================================================================== */
.gd-prob-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gd-hist-stage {
  height: 176px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 14px;
  padding: 18px 24px 10px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.gd-hist-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}
.gd-hist-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}
.gd-hist-bar {
  width: 38px;
  max-width: 100%;
  border-radius: 8px;
  min-height: 0;
  background: #cbd5e1;
}
.gd-hist-lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  white-space: nowrap;
}
.gd-hist-col.is-peak .gd-hist-lbl {
  color: var(--ink);
  font-weight: 800;
}
@media (max-width: 640px) {
  .gd-prob-card {
    gap: 7px;
  }
  .gd-hist-stage {
    height: 132px;
    padding: 10px 10px 6px;
    gap: 6px;
  }
  .gd-hist-col { gap: 4px; }
  .gd-hist-pct { font-size: 11px; }
  .gd-hist-lbl { font-size: 11px; }
  .gd-hist-bar { width: 26px; }
}

/* ==========================================================================
   Scene 2-4: Department Scroll Viewport with Guaranteed 100% Track + Thumb
   ========================================================================== */
.gd-dept-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gd-dept-viewport {
  position: relative;
  height: 224px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 16px 8px 8px;
}
@media (max-width: 640px) {
  .gd-dept-viewport {
    height: 204px;
    padding: 6px 13px 6px 6px;
  }
}
.gd-dept-track {
  display: flex;
  flex-direction: column;
  gap: 7px;
  will-change: transform;
}
.gd-scroll-rail {
  position: absolute;
  right: 5px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.gd-scroll-thumb {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26%;
  border-radius: 999px;
  background: var(--blue-solid);
  will-change: top;
}

/* Scene 1-2 ~ 2-5 Responsive Studio Polish */
.gd-sky-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin-top: 12px;
}
.gd-dept-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}
.gd-dept-head-l {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gd-dept-head-l strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.gd-dept-head-sub {
  font-size: 12px;
  color: var(--grey);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .gd-stage-wrap {
    gap: 7px;
  }
  .gd-copy {
    gap: 3px;
  }
  .gd-eyebrow {
    padding: 2px 8px;
    font-size: 10px;
  }
  .gd-headline {
    font-size: 15px;
    line-height: 1.28;
  }
  .gd-subcopy {
    display: none;
  }

  /* 1-2: 등급컷 표 모바일 압축 (과목열 줄바꿈·깨짐 방지) */
  #guide-canvas .gd-cut-box {
    gap: 6px;
  }
  #guide-canvas .gd-cut-top .ai-std {
    display: none;
  }
  #guide-canvas .gd-cut-summary {
    font-size: 10.5px;
    padding: 2px 7px;
  }
  #guide-canvas .gd-cut-top-l h3 {
    font-size: 14.5px;
  }
  #guide-canvas .gd-cut-top .gd-seg span {
    padding: 3px 7px;
    font-size: 11px;
  }
  #guide-canvas .gd-cut-ref-sub {
    display: none;
  }
  #guide-canvas .ai-cut-table th,
  #guide-canvas .ai-cut-table td {
    padding: 6.5px 4px;
    white-space: nowrap;
  }
  #guide-canvas .ai-cut-table thead th:first-child,
  #guide-canvas .ai-cut-table tbody th.ai-cut-name {
    text-align: center;
    vertical-align: middle;
    padding-left: 8px;
    padding-right: 6px;
  }
  #guide-canvas .ai-cut-table td {
    vertical-align: middle;
  }
  #guide-canvas .ai-cut-table td strong {
    font-size: 15px;
  }
  #guide-canvas .ai-cut-table small {
    font-size: 10px;
    line-height: 1.25;
  }
  #guide-canvas .gd-cut-subj-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5px;
  }
  #guide-canvas .gd-my-subj-pill {
    margin: 0;
    padding: 1px 6px;
    font-size: 9.5px;
  }

  /* 1-3: 확률 그래프 상단 보조칩 정리 */
  #guide-canvas .hp-prob-quick {
    display: none;
  }
  #guide-canvas .hp-prob-sub {
    font-size: 11.5px;
  }
  #guide-canvas .hp-data-foot {
    font-size: 11px;
  }

  /* 1-4: 도수분포표 모바일 압축 */
  #guide-canvas .ai-find {
    padding: 6px 9px;
    gap: 3px;
  }
  #guide-canvas .ai-find strong {
    font-size: 12.5px;
  }
  #guide-canvas .ai-find-status {
    font-size: 10.5px;
    line-height: 1.25;
    margin-top: 1px;
  }
  #guide-canvas .ai-freq-table .ai-count {
    display: none;
  }
  #guide-canvas .ai-freq-table th,
  #guide-canvas .ai-freq-table td {
    padding: 3px 2.5px;
    font-size: 10.5px;
    white-space: nowrap;
  }

  /* 1-5: 예상 성적표 모바일 압축 (6과목 전체 한눈에 노출) */
  #guide-canvas .ai-report-actions span:not(#gd-rep-save) {
    display: none;
  }
  #guide-canvas .ai-report-sheet {
    padding: 9px 10px 7px;
    border-radius: 12px;
  }
  #guide-canvas .ai-report-sheet h3 {
    font-size: 12.5px;
    line-height: 1.25;
    margin: 0;
  }
  #guide-canvas .ai-report-sub {
    font-size: 10px;
    margin: 2px 0 5px;
  }
  #guide-canvas .ai-report-tall th,
  #guide-canvas .ai-report-tall td {
    padding: 3px 4px;
    font-size: 10.5px;
    line-height: 1.22;
  }
  #guide-canvas .ai-report-tall .ai-gnum {
    width: 17px;
    height: 17px;
    font-size: 10px;
    line-height: 17px;
  }
  #guide-canvas .ai-report-foot {
    margin-top: 5px;
    padding-top: 4px;
    font-size: 9.5px;
  }

  /* 2-2 & 2-3: 누백 룰러 + SKY 카드 */
  .gd-sky-cards {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 5px;
    margin-top: 6px;
  }
  #guide-canvas .admission-ruler-panel {
    padding: 9px 10px;
  }
  #guide-canvas .admission-spectrum-head-right,
  #guide-canvas .admission-ruler-sub {
    display: none;
  }
  #guide-canvas .admission-ruler-pct {
    font-size: 15.5px;
  }
  #guide-canvas .admission-ruler-boundary {
    font-size: 10.5px;
    padding: 2px 7px;
  }
  #guide-canvas .admission-ruler-track-wrap {
    margin-top: 5px;
    padding-top: 19px;
  }
  #guide-canvas .admission-ruler-card {
    padding: 5.5px 10px;
    min-height: 0;
  }
  #guide-canvas .admission-ruler-card strong {
    font-size: 12.5px;
  }
  #guide-canvas .admission-ruler-card small {
    font-size: 10.5px;
  }
  #guide-canvas .admission-active-filter {
    padding: 4.5px 9px;
    font-size: 11px;
    margin-top: 5px !important;
  }
  #guide-canvas .admission-active-filter button {
    padding: 2.5px 8px;
    font-size: 10.5px;
    height: auto;
  }

  /* 2-4: 학과 스크롤 헤더 */
  .gd-dept-head-l strong {
    font-size: 13.5px;
  }
  .gd-dept-head-sub {
    display: none;
  }

  /* 2-5: 가·나·다군 3장 포트폴리오 모바일 압축 */
  #guide-canvas .admission-portfolio {
    padding: 8px 10px;
    border-radius: 14px;
  }
  #guide-canvas .admission-portfolio-head {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    align-items: center;
  }
  #guide-canvas .admission-portfolio-head > div:first-child {
    min-width: 0;
    flex: 1;
  }
  #guide-canvas .admission-portfolio-head h3 {
    font-size: 13px;
    margin: 0;
  }
  #guide-canvas .admission-portfolio-head p {
    font-size: 10.5px;
    line-height: 1.22;
    margin: 1px 0 0;
  }
  #guide-canvas .admission-portfolio-actions {
    display: inline-flex;
    width: auto;
    gap: 4px;
    flex-shrink: 0;
  }
  #guide-canvas .admission-portfolio-actions .gd-port-aux {
    display: none;
  }
  #guide-canvas #gd-rec-btn {
    padding: 4.5px 9px;
    font-size: 11px;
    height: auto;
    white-space: nowrap;
  }
  #guide-canvas .admission-portfolio-prob {
    margin-top: 5px;
    padding: 4.5px 8px;
    font-size: 10.5px;
    line-height: 1.25;
  }
  #guide-canvas .admission-portfolio-prob .faint {
    display: none;
  }
  #guide-canvas .admission-portfolio-slots {
    grid-template-columns: minmax(0, 1fr);
    gap: 4.5px;
    margin-top: 5px;
  }
  #guide-canvas .admission-slot {
    padding: 5px 8px;
    min-height: 0 !important;
    border-radius: 9px;
    gap: 1px;
    font-size: 11px;
  }
  #guide-canvas .admission-slot-head {
    margin: 0;
  }
  #guide-canvas .admission-slot-round {
    font-size: 9.5px;
    padding: 1px 5px;
  }
  #guide-canvas .admission-slot strong {
    font-size: 11.5px;
    line-height: 1.22;
    margin: 0;
  }
  #guide-canvas .admission-slot-meta {
    font-size: 10px;
    gap: 5px;
    margin: 0;
  }
  #guide-canvas .admission-slot .admission-badge {
    font-size: 9.5px;
    padding: 1px 5px;
  }
  #guide-canvas .admission-slot-empty {
    font-size: 10.5px;
    line-height: 1.22;
    margin: 0;
  }
}

/* ==========================================================================
   Floating Apple Frosted Playback Dock
   ========================================================================== */
.gd-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
  z-index: 38;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 8px;
  border-radius: 999px;
  background: rgba(25, 31, 40, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  color: #f8fafc;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
html:not(.show-guide) .gd-dock {
  display: none !important;
}
@media (max-width: 960px) {
  .gd-dock {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 6px);
    padding: 4.5px 8px 4.5px 6px;
    gap: 5px;
    max-width: calc(100vw - 20px);
  }
}
.gd-dock-play {
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease;
}
.gd-dock-play:hover {
  background: #1d4ed8;
}
.gd-dock-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gd-dock-dot {
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  min-width: 24px;
  padding: 0 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 160ms ease;
}
.gd-dock-dot:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.gd-dock-dot.is-active {
  background: #ffffff;
  color: #0f172a;
}
.gd-dock-pct {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  min-width: 36px;
  text-align: right;
  padding-right: 4px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .gd-dock-play {
    padding: 4.5px 10px;
    font-size: 11px;
  }
  .gd-dock-dot {
    height: 21px;
    min-width: 21px;
    padding: 0 5.5px;
    font-size: 10.5px;
  }
  .gd-dock-pct {
    font-size: 10.5px;
    min-width: 34px;
  }
}

/* ==========================================================================
   End-of-Guide Action & Next-Track Bridge Section
   ========================================================================== */
.gd-outro {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 20px 96px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 680px) {
  .gd-outro {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px 110px;
  }
}
.gd-outro-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--hp-card-shadow);
}
.gd-outro-card.is-primary {
  background: var(--blue-solid);
  border-color: var(--blue-solid);
  color: #ffffff;
}
.gd-outro-card small {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}
.gd-outro-card strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3px;
}
.gd-outro-card p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.88;
}
.gd-outro-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, opacity 140ms ease;
}
.gd-outro-card.is-primary .gd-outro-btn {
  background: #ffffff;
  color: #1d4ed8;
}
.gd-outro-card:not(.is-primary) .gd-outro-btn {
  background: var(--ai-bg);
  color: var(--blue);
}
.gd-outro-btn:hover {
  transform: translateY(-1px);
}

/* U02: 모든 장면에 고정되는 모의 예시 표시(작은 화면·스크린리더 포함) */
.gd-mock-note {
  position: relative;
  z-index: 5;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  background: var(--panel);
  color: var(--grey);
  font-size: 11.5px;
  line-height: 1.5;
  word-break: keep-all;
}
.gd-mock-note strong { color: var(--ink); font-weight: 800; }
.gd-mock-mob { display: none; }
@media (max-width: 640px) {
  .gd-mock-note { margin-bottom: 8px; font-size: 11px; }
  .gd-mock-full { display: none; }
  .gd-mock-mob { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  #guide .gd-caret { animation: none; }
  #guide *, #guide *::before, #guide *::after { transition-duration: 0.01ms !important; }
}
/* 좁은 화면에서 모의 학과 카드의 '여유' 값이 잘리지 않게 줄바꿈 허용 */
@media (max-width: 640px) {
  #guide .gd-dept-track .dept-card-meta { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 2px; }
  #guide .gd-dept-track .dept-card-meta > span { white-space: nowrap; }
}
