/* =========================================================
   도시락모바일 메인 (Figma "01_메인페이지 개선_Front 1차 완료")
   - 기존 public/css/style.css 와 완전히 분리된 독립 스타일
   - 브레이크포인트: MO ~767 / TA 768~1024 / PC 1025~  (Description_Common)
   - PC 섹션 최대 폭 1240px
   ========================================================= */

@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap;
  src: url("/lib/assets/fonts/Pretendard-1.3.9/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap;
  src: url("/lib/assets/fonts/Pretendard-1.3.9/Pretendard-Medium.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap;
  src: url("/lib/assets/fonts/Pretendard-1.3.9/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap;
  src: url("/lib/assets/fonts/Pretendard-1.3.9/Pretendard-Bold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-display: swap;
  src: url("/lib/assets/fonts/Pretendard-1.3.9/Pretendard-ExtraBold.subset.woff2") format("woff2"); }

:root {
  /* Figma variables */
  --brand-primary: #3d62ac;
  --brand-secondary: #fdd855;
  --brand-kt: #226068;
  --content-primary: #1b1c1e;
  --content-secondary: #2b2c2e;
  --content-tertiary: #414447;
  --content-soft: #73777c;
  --content-muted: #a2a5aa;
  --content-subtle: #d4d6d8;
  --content-orange: #ff8b3d;
  --content-green: #00c951;
  --content-purple: #ad46ff;
  --label-strong: #0f172a;
  --fill-default: #fff;
  --fill-faint: #f9fafb;
  --fill-subtle: #f5f6f7;
  --fill-muted: #e8eaed;
  --fill-overlay: rgba(0, 0, 0, .4);
  --fill-blue-subtle: #e7edf7;
  --fill-blue-faint: #f0f3f8;
  --fill-kt-subtle: #d5f8f7;
  --fill-green-subtle: #dcfce7;
  --fill-purple-subtle: #efdefc;
  --border-default: #e8eaed;
  /* 디자인 시스템(d9ZaSrbzlKeFCbEMDvesde) 상태값 — 11-25 QA #2·3·7·9 */
  --border-disabled: #d4d6d8;
  --content-disabled: #a2a5aa;
  --fill-weak: #d4d6d8;
  --fill-blue-strong: #395494;
  --fill-blue-bold: #2e426b;
  --shadow-small: 0 2px 12px rgba(149, 157, 165, .2);
  --shadow-small-strong: 0 2px 12px rgba(149, 157, 165, .24);
  --shadow-brand-small: 0 4px 12px rgba(61, 98, 172, .2);
  --shadow-medium-strong: 0 2px 12px rgba(149, 157, 165, .56);
  --banner-bg: #6ea2e5;
  --kakao: #fae700;
  --status-warning: #fc5f66;
  --shadow-xs: 0 4px 16px rgba(0, 0, 0, .04);
  --radius-d: 16px;
  --radius-s: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fill-default);
  color: var(--content-primary);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 20px;
}
p, h1, h2, h3, ul, ol, li, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: none; }
.blind { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 디바이스 노출 토글 */
.only-pc { display: none !important; }
.only-mo { }
.hide-mo { }

/* ---------- 공통 컴포넌트 ---------- */
.ic24 { width: 24px; height: 24px; flex: none; }
.ic18 { width: 18px; height: 18px; flex: none; }

.sec-title {
  flex: 1 1 0; min-width: 0;
  font-size: 18px; line-height: 28px; font-weight: 700; color: var(--label-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sec-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* btn/text (전체보기 >) */
.btn-text {
  display: inline-flex; align-items: center; height: 24px; flex: none;
  font-size: 14px; line-height: 18px; font-weight: 600; color: var(--content-soft); white-space: nowrap;
}
.btn-text .label { display: none; }
.btn-text .ic24 { display: block; }

/* tab/tab (텍스트 pill) */
.tabs-scroll {
  width: 100%;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 8px; width: max-content; }
/* tab/tab style=outline — 높이 38(Figma inside stroke → padding 9/15 + 1px 테두리) */
.tab-pill {
  display: flex; align-items: center; justify-content: center; height: 38px;
  padding: 9px 15px; border: 1px solid var(--border-default); border-radius: 999px;
  font-size: 14px; line-height: 18px; font-weight: 500; color: var(--content-soft); white-space: nowrap;
  background: var(--fill-default);
}
.tab-pill[aria-selected="true"] {
  background: var(--fill-blue-subtle); border-color: var(--brand-primary);
  color: var(--brand-primary); font-weight: 600;
}
@media (hover: hover) { .tab-pill:not([aria-selected="true"]):not(:disabled):hover { background: var(--fill-faint); color: var(--content-tertiary); } }
.tab-pill:not([aria-selected="true"]):not(:disabled):active { background: var(--fill-subtle); color: var(--content-secondary); }
.tab-pill:disabled { border-color: var(--border-disabled); color: var(--content-disabled); cursor: default; }

/* tab/tab (이미지형) */
.tab-img {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 72px; height: 86px; flex: none;
}
.tab-img .img {
  width: 60px; height: 60px; border-radius: 999px; overflow: hidden; flex: none;
  box-shadow: var(--shadow-xs); position: relative;
}
.tab-img .img img { width: 100%; height: 100%; object-fit: cover; }
.tab-img[aria-selected="true"] .img::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--brand-primary); border-radius: 999px;
}
.tab-img .name {
  width: 100%; text-align: center;
  font-size: 14px; line-height: 18px; font-weight: 500; color: var(--content-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tab-img[aria-selected="true"] .name { font-weight: 700; color: var(--content-primary); }
/* tab/tab style=img 상태 — hover(PC)·pressed·disabled */
@media (hover: hover) {
  .tab-img:not([aria-selected="true"]):not(:disabled):hover .img { box-shadow: var(--shadow-small); }
  .tab-img:not([aria-selected="true"]):not(:disabled):hover .name { color: var(--content-tertiary); }
}
.tab-img:not([aria-selected="true"]):not(:disabled):active .img { box-shadow: var(--shadow-small-strong); }
.tab-img:not([aria-selected="true"]):not(:disabled):active .name { color: var(--content-secondary); }
.tab-img:disabled { cursor: default; }
.tab-img:disabled .name { color: var(--content-disabled); }

/* badge/card */
.badges { display: flex; flex-wrap: wrap; gap: 4px; height: 24px; overflow: hidden; } /* 12-02 요금제 목록과 같은 뱃지(개수 가변) — 한 줄만, 넘치는 뱃지는 통째로 숨김(다음 줄로 밀려 안 보임) */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 8px; border-radius: 100px;
  font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
}
/* badge/card type 12종 (디자인 시스템 87:44) */
.badge--primary { background: var(--brand-primary); color: #fff; }
.badge--all { background: #5e92d3; color: #fff; }
.badge--light { background: var(--fill-blue-subtle); color: var(--brand-primary); }
.badge--black { background: var(--fill-subtle); color: var(--content-tertiary); }
.badge--red { background: #ffe2e2; color: #fb2c36; }
.badge--yellow { background: #fef4d2; color: #9e7d05; }
.badge--green { background: var(--fill-green-subtle); color: var(--content-green); }
.badge--blue { background: #dbeafe; color: #2b7fff; }
.badge--purple { background: var(--fill-purple-subtle); color: var(--content-purple); }
.badge--skt { background: #e7e7ff; color: #3617ce; }
.badge--kt { background: var(--fill-kt-subtle); color: var(--brand-kt); }
.badge--lgu { background: #ffe4f7; color: #e6007e; }

/* card/plan/main */
.plan-card {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 23px; width: 100%; /* Figma inside stroke 보정: 24 - 1 */
  background: var(--fill-default); border: 1px solid var(--border-default); border-radius: var(--radius-d);
  box-shadow: var(--shadow-xs); overflow: hidden;
}
/* card/plan/main 상태(디자인 시스템 755:3414): hover = 흰 배경+brand 그림자, pressed = faint 배경+진한 회색 그림자 */
@media (hover: hover) { .plan-card:hover { box-shadow: var(--shadow-brand-small); } }
.plan-card:active { background: var(--fill-faint); box-shadow: var(--shadow-medium-strong); }
.plan-card .spec { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.plan-card .name {
  font-size: 13px; line-height: 20px; color: var(--content-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plan-card .data { display: flex; align-items: center; gap: 4px; white-space: nowrap; min-width: 0; }
.plan-card .dv { display: flex; align-items: center; white-space: pre; min-width: 0; overflow: hidden; }
.plan-card .data b { font-size: 16px; line-height: 24px; font-weight: 700; }
.plan-card .data span { font-size: 14px; line-height: 20px; font-weight: 500; }
.ic-data { position: relative; width: 18px; height: 18px; flex: none; }
.ic-data i { position: absolute; bottom: 4px; width: 2.5px; border-radius: .5px; background: var(--content-tertiary); }
.ic-data i:nth-child(1) { left: 1.5px; height: 3px; }
.ic-data i:nth-child(2) { left: 5px; height: 6px; }
.ic-data i:nth-child(3) { left: 8.5px; height: 9px; }
.ic-data i:nth-child(4) { left: 12px; height: 12px; }
.plan-card .voice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan-card .voice > span {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-soft); white-space: nowrap;
}
.plan-card .voice .bar { width: 1px; height: 18px; flex: none; }
.plan-card .price {
  text-align: right; font-size: 20px; line-height: 28px; font-weight: 800; color: var(--brand-primary);
}

/* btn/btn type=outline style=grey-round size=medium (더 많은 요금제 보러가기) — 높이 48(inside stroke → padding 11/15) */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 48px;
  padding: 11px 15px; border: 1px solid var(--border-default); border-radius: 999px;
  font-size: 16px; line-height: 24px; font-weight: 600; color: var(--content-soft); background: var(--fill-default);
}
.btn-line img { width: 8.8px; height: 19.8px; }
@media (hover: hover) { .btn-line:hover { background: var(--fill-faint); } }
.btn-line:active { background: var(--fill-subtle); }
.btn-line[aria-disabled="true"] { border-color: var(--border-disabled); color: var(--content-disabled); background: var(--fill-default); pointer-events: none; }

/* ---------- GNB ----------
   11-25 QA #10 "기존 페이지 GNB와 상이" — 시안 PC GNB 자리도 기존 GNB 캡처라, 기존 페이지 헤더
   (components/layout/Header.tsx + public/css/style.css .header_content·.gnb·.snb, 1rem=10px) 값을 그대로 옮김.
   MO·TA(~1199): 로고 32px + 메뉴 아이콘, 높이 61 / PC(1200~): 로고 40px + 메뉴·하위메뉴·로그인·메뉴 아이콘, 높이 103 */
.gnb {
  position: sticky; top: 0; z-index: 50;
  background: var(--fill-default); border-bottom: 1px solid #e2e8f0;
}
.gnb-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.gnb .logo { display: inline-block; }
.gnb .logo img { height: 32px; width: auto; }
.gnb .right { display: flex; align-items: center; }
.gnb .menu-btn { display: flex; margin-left: 16px; }
.gnb .menu-btn img { width: 24px; height: auto;
  filter: brightness(0) saturate(100%) invert(52%) sepia(4%) saturate(2238%) hue-rotate(176deg) brightness(83%) contrast(84%); }
.gnb nav, .gnb .login { display: none; }
@media (min-width: 1200px) {
  .gnb-inner { max-width: 1240px; margin: 0 auto; }
  .gnb .logo img { height: 40px; }
  .gnb nav { display: block; }
  .gnb .nav { display: flex; gap: 0 40px; margin-right: 12px; }
  /* 원본 padding 2.4rem 0 이지만 기존 화면 실측 li 74px·글자 y+26 (부트스트랩 줄상자) → 같은 위치가 되도록 26/28 */
  .gnb .nav > li { position: relative; padding: 26px 0 28px; font-size: 17px; font-weight: 600; line-height: normal; cursor: pointer; }
  .gnb .nav > li > a { color: #64748b; transition: all .3s; }
  .gnb .nav > li > a:hover { color: #0f172a; }
  .gnb .snb {
    position: absolute; top: 80%; left: 50%; transform: translateX(-50%); z-index: 10;
    padding: 16px 24px; border-radius: 12px; background: #fff; box-shadow: 0 2px 12px 0 rgba(149, 157, 165, .2);
    visibility: hidden; opacity: 0;
  }
  .gnb .snb li { padding: 12px 0; }
  .gnb .snb li a { display: inline-block; width: 100%; font-size: 15px; font-weight: 400; color: #334155; text-align: left; white-space: nowrap; }
  .gnb .snb li a:hover { color: #5e92d3; }
  .gnb .nav > li:hover > .snb { visibility: visible; opacity: 1; }
  .gnb .login {
    display: inline-block; margin-left: 16px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; font-size: 15px; line-height: 1.5; color: #334155;
  }
  .gnb .login:hover { background: #f7f9fb; }
}

/* ---------- 레이아웃 (MO 기준) ---------- */
.top {
  display: grid;
  grid-template-areas: "banner" "quick" "usage";
  grid-template-columns: minmax(0, 1fr); /* 11-27 로그인 카드 요금제명(nowrap 마퀴)이 열을 넓히지 않게 */
}
.sec-banner { grid-area: banner; padding: 20px 20px 0; }
.sec-quick  { grid-area: quick;  padding: 20px 20px 0; }
.sec-usage  { grid-area: usage;  padding: 20px 20px 0; }

/* section_mainbanner */
.carousel {
  position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden;
  border-radius: 12px; background: var(--banner-bg);
}
.carousel .track { display: flex; height: 100%; transition: transform .4s ease; }
.carousel .slide { flex: 0 0 100%; height: 100%; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.indicator {
  position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px;
}
.indicator .pager {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 4px; border-radius: 999px; background: var(--fill-overlay);
  font-size: 12px; line-height: 16px; color: #fff; white-space: nowrap;
}
.indicator .prev img { width: 20px; height: 20px; }
.indicator .next img { width: 24px; height: 24px; }
.indicator .pause {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 999px; background: var(--fill-overlay);
}
.ic-pause { display: flex; gap: 2px; }
.ic-pause i { width: 2px; height: 9px; border-radius: .5px; background: #fff; }
/* QA #17(12-01) — 디자인 시스템 indicator(922:4485) 기준: 순번 칸 폭 36px 고정·가운데, 재생 아이콘은 시안 SVG,
   MO/TA 일시정지 상태는 다음 화살표 20px·칸 높이 24px(PC 는 기본과 같음) */
.indicator .count { width: 36px; text-align: center; }
.indicator .prev, .indicator .next { display: flex; } /* 아이콘 img 가 인라인 줄 높이를 먹어 PC 칸이 36px 로 커지던 것 → 시안 32px */
.indicator .next .ic-next20 { display: none; width: 20px; height: 20px; }
.indicator.is-paused .pager { height: 24px; }
.indicator.is-paused .next .ic-next24 { display: none; }
.indicator.is-paused .next .ic-next20 { display: block; }
.ic-play { width: 20px; height: 20px; }
.indicator .pause .ic-play { display: none; }
.indicator.is-paused .pause .ic-play { display: block; }
.indicator.is-paused .pause .ic-pause { display: none; }
.carousel.single .indicator { display: none; }

/* section_quickmenu (menu/quick) */
.quick { display: flex; gap: 16px; align-items: flex-start; }
.quick .item {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.quick .icon {
  position: relative; display: flex; padding: 8px; border-radius: 999px; background: var(--fill-subtle);
}
.quick .icon.png { padding: 0; background: none; }
.quick .icon.png img { width: 52px; height: 52px; }
.quick .badge-hot {
  position: absolute; left: calc(50% - 14.73px); top: calc(50% - 20.8px); transform: translate(-50%, -50%);
  padding: 1.733px 3.467px; border-radius: 999px; background: var(--brand-secondary);
  font-size: 10px; line-height: 14px; font-weight: 500; color: var(--brand-primary); white-space: nowrap;
}
.quick .label { display: flex; flex-direction: column; align-items: center; }
.quick .tit { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--content-primary); white-space: nowrap; }
.quick .sub { display: none; }
.quick .divider { display: none; }

/* icon/contents (36px 일러스트 — Figma 레이어 그대로) */
.illust { position: relative; width: 36px; height: 36px; overflow: hidden; flex: none; }
.illust > * { position: absolute; }
.illust .rot { display: flex; align-items: center; justify-content: center; }
.illust .rot > * { flex: none; position: relative; }
.illust img { width: 100%; height: 100%; }

/* section_usage (card/usage/main) */
.usage-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 23px; border: 1px solid var(--border-default); border-radius: var(--radius-d);
  background: var(--fill-default); text-align: left;
}
.usage-card .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.usage-card .label, .usage-card .msg { display: block; }
.usage-card .label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--content-soft); }
.usage-card .msg { margin-top: 4px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--content-primary); }
.usage-card .msg .br { display: block; }
.usage-detail { display: none; }

/* section_plan */
.sec-plan, .sec-partner { padding-top: 48px; }
.sec-plan .inner, .sec-partner .inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 20px;
}
.plan-list { display: flex; flex-direction: column; gap: 12px; width: 100%; }

/* section_partnerplan */
.partner-group {
  display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%;
  padding: 16px; border-radius: var(--radius-d); background: var(--fill-blue-subtle); overflow: hidden;
}
.benefit { display: flex; align-items: center; gap: 4px; width: 100%; }
.benefit img { width: 20px; height: 20px; border-radius: 999px; object-fit: cover; flex: none; }
.benefit-imgs { display: flex; flex: none; } /* 혜택 이미지 2~3개 — 8px 씩 겹침(Figma 1415:3569·3572, 뒤 이미지가 위) */
.benefit-imgs img + img { margin-left: -8px; }
.benefit p { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--content-secondary); }

/* section_review */
.sec-review { padding: 48px 0 60px; }
.sec-review .inner { display: flex; flex-direction: column; gap: 16px; padding: 0 20px; }
.review-roll {
  position: relative; display: block; height: 108px; padding: 20px; overflow: hidden;
  /* Figma inside stroke → 높이에 포함되지 않도록 inset 그림자로 */
  box-shadow: inset 0 0 0 1px var(--border-default); border-radius: var(--radius-d); background: var(--fill-default);
}
.review-roll .viewport { height: 68px; overflow: hidden; }
.review-roll .track { display: flex; flex-direction: column; gap: 20px; transition: transform .5s ease; }
.review-item { display: flex; flex-direction: column; gap: 8px; height: 68px; }
.review-item .head { display: flex; align-items: center; gap: 8px; line-height: 16px; white-space: nowrap; }
.stars { display: flex; color: var(--content-orange); font-size: 11px; }
.stars .off { color: var(--content-subtle); } /* 11-25 QA #4 — 빈 별은 회색 채운 별(card/review 1242:3348) */
.review-item .info {
  flex: 1 1 0; min-width: 0; display: flex; justify-content: space-between;
  font-size: 12px; color: var(--content-soft);
}
.review-item .txt {
  font-size: 14px; line-height: 22px; color: var(--content-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 한 번에 1건(별점줄 16 + 8 + 본문 2줄 44 = 68px) 노출 */
.review-grid { display: none; }

/* section_cs (PC 전용) */
.sec-cs { display: none; }

/* ---------- footer ---------- */
.footer {
  padding: 48px 0 80px; background: var(--fill-muted); border-top: 1px solid var(--border-default);
}
.footer .inner { display: flex; flex-direction: column; gap: 32px; padding: 0 20px; }
.footer .policy-row { display: flex; flex-direction: column; gap: 32px; }
.policy { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--content-tertiary); }
.policy a { white-space: nowrap; }
.policy .em { font-weight: 700; color: var(--content-primary); }
.family {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 12px 20px; border: 1px solid var(--border-default); border-radius: var(--radius-d); background: var(--fill-default);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-tertiary);
}
.family select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.company { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 16px; color: var(--content-soft); }
.company .row { display: contents; }
.company .row > p { white-space: pre-wrap; }

/* ---------- navigation/bottom ----------
   12-02 모든 화면 공용으로 옮김 — components/common/BottomNav.tsx + public/common/bnav.css.
   메인은 예전 층 순서 그대로(GNB 50 위 탭바 50, 메인 팝업 110·맞춤 요금제 찾기 120 이 탭바를 덮음, 고객지원 시트 120). */
.bnav { z-index: 50; }
.bnav-dim { z-index: 120; }
body { padding-bottom: 60px; } /* 하이드레이션 전(has-bnav 붙기 전) 여백 */
/* 12-02 Figma navigation/bottom 수정 — MO/TA 는 GNB 전체메뉴 아이콘 삭제(하단 [전체]로 이동). 하단 탭바가 없는 1025~ 는 그대로 */
.gnb .menu-btn { display: none; }
@media (min-width: 1025px) { .gnb .menu-btn { display: flex; } }

/* =========================================================
   TABLET 768 ~ 1024
   ========================================================= */
@media (min-width: 768px) {
  .usage-card { height: 88px; overflow: hidden; }
  .usage-card .msg .br { display: inline; }

  .sec-plan .inner, .sec-partner .inner { padding: 0; }
  .sec-plan .sec-head, .sec-plan .tabs-scroll,
  .sec-partner .sec-head, .sec-partner .tabs-scroll { padding: 0 20px; }
  .sec-plan .tabs-scroll, .sec-partner .tabs-scroll { width: 100%; }
  .sec-partner .partner-group { width: calc(100% - 40px); }

  /* 화면 폭 넘으면 캐러셀 (1개 단위 이동) */
  .plan-list {
    flex-direction: row; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 20px 16px; margin-bottom: -16px; scrollbar-width: none; scroll-padding: 0 20px;
  }
  .plan-list::-webkit-scrollbar { display: none; }
  .plan-list .plan-card { flex: 0 0 360px; scroll-snap-align: start; }
  .partner-group .plan-list { padding: 0 0 16px; scroll-padding: 0; gap: 10px; }
  .partner-group .plan-list .plan-card { flex-basis: 358px; }
  /* QA #16(12-01, 12-02 무한 루프 뺌) — 카드가 목록 폭을 넘으면 HomeScripts 가 is-slide 를 붙여 1개 단위 슬라이드(끝↔처음 되감기)로. 스크롤 대신 transform */
  .plan-list.is-slide { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .plan-list.is-slide .plan-card { -webkit-user-drag: none; }
  .sec-plan .plan-list.is-slide { clip-path: inset(0 0 0 20px); } /* 인기 목록은 화면 끝까지라 넘긴 뒤 왼쪽 여백 20px 에 이전 카드가 보이지 않게 */

  .btn-text .label { display: inline; }
  .sec-partner .btn-text, .sec-review .btn-text { gap: 0; }

  .review-item .txt { -webkit-line-clamp: 2; }
}

/* =========================================================
   PC 1025 ~
   ========================================================= */
@media (min-width: 1025px) {
  .only-pc { display: revert !important; }
  .hide-pc { display: none !important; }
  body { padding-bottom: 0; }

  .wrap { max-width: 1240px; margin: 0 auto; }

  /* layout_top: [배너 | 사용량] + 퀵메뉴 */
  .top {
    max-width: 1240px; margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas: "banner usage" "quick quick";
  }
  .sec-banner { padding: 40px 10px 0 20px; display: flex; }
  .sec-banner .carousel { aspect-ratio: auto; flex: 1; height: 368px; }
  .sec-usage { padding: 40px 20px 0 10px; }
  .sec-quick { padding: 20px 20px 0; }

  .indicator { right: 16px; bottom: 16px; }
  .indicator .pager { padding: 4px 8px; }
  .indicator .prev img, .indicator .next img { width: 24px; height: 24px; }
  .indicator .pause { width: 28px; height: 28px; padding: 4px; }
  .indicator.is-paused .pager { height: auto; }
  .indicator.is-paused .next .ic-next24 { display: block; }
  .indicator.is-paused .next .ic-next20 { display: none; }

  .quick { height: 93.143px; gap: 0; align-items: center; background: #fff; border-radius: 16px; }
  .quick .item { flex-direction: row; gap: 12px; height: 100%; }
  .quick .divider { display: block; width: 1px; height: 100%; flex: none; }
  .quick .label { align-items: flex-start; gap: 4px; }
  .quick .tit { font-size: 14px; line-height: 20px; font-weight: 700; }
  .quick .sub { display: block; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--content-soft); white-space: nowrap; }

  /* card/usage/main — PC 비로그인 */
  .usage-card { height: 368px; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; cursor: default; }
  .usage-card .head { display: flex; align-items: center; justify-content: space-between; }
  .usage-card .msg .br { display: inline; }
  .usage-detail { display: flex; flex-direction: column; gap: 12px; }
  .usage-detail .hr { height: 1px; background: var(--border-default); }
  .usage-plan {
    display: flex; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-s);
    background: var(--fill-blue-faint); font-size: 12px; line-height: 16px; white-space: nowrap;
  }
  .usage-plan span:first-child { color: var(--content-soft); }
  .usage-plan span:last-child { font-weight: 500; }
  .progress-list { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
  .progress { display: flex; flex-direction: column; gap: 4px; }
  .progress .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; line-height: 16px; }
  .progress .row > span { color: var(--content-soft); }
  .progress .val { display: flex; align-items: center; gap: 4px; padding: 2px 0; }
  .progress .val em { font-style: normal; }
  .progress .val i { width: 1px; height: 8px; background: var(--border-default); }
  .progress .val em + i + em { color: var(--content-soft); }
  .progress .bar-row { display: flex; align-items: center; gap: 4px; }
  .progress .pct { width: 40px; text-align: right; font-size: 14px; line-height: 20px; font-weight: 700; }
  .progress .bar { position: relative; flex: 1; height: 8px; border-radius: 99px; overflow: hidden; background: var(--fill-muted); }
  .progress .bar i { position: absolute; inset: 0; border-radius: 999px; background: var(--content-subtle); }

  /* 섹션 공통 (PC: 80px 간격, 24px 타이틀) */
  .sec-plan, .sec-partner, .sec-review { padding: 80px 0 0; }
  .usage-card { overflow: visible; }
  .sec-plan .inner, .sec-partner .inner, .sec-review .inner {
    max-width: 1240px; margin: 0 auto; padding: 0 20px; gap: 20px;
  }
  .sec-plan .sec-head, .sec-plan .tabs-scroll,
  .sec-partner .sec-head, .sec-partner .tabs-scroll { padding: 0; }
  .sec-title { font-size: 24px; line-height: 34px; }

  .plan-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
    overflow: visible; padding: 0; margin: 0;
  }
  .plan-list .plan-card { flex: none; }
  .sec-partner .partner-group { width: 100%; padding: 20px; gap: 16px; }
  .partner-group .plan-list { gap: 12px; padding: 0; } /* 11-25 QA #2 — 시안 group 284 = 20 + 혜택 24 + 16 + 카드 204 + 20 (예전 -8px 넘침 제거) */
  .benefit { gap: 8px; }
  .benefit p { font-size: 16px; line-height: 24px; }

  .review-roll { display: none; }
  .review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .review-card {
    display: flex; flex-direction: column; gap: 12px; padding: 20px;
    background: var(--fill-default); border: 1px solid var(--border-default); border-radius: var(--radius-d);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .04));
  }
  .review-card .head { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
  .review-card .stars { font-size: 16px; line-height: normal; }
  .review-card .info { flex: 1; min-width: 0; display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--content-soft); }
  .review-card .body { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
  .review-card .tit { font-weight: 700; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .review-card .txt {
    line-height: 22px; color: var(--content-soft);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* section_cs */
  .sec-cs { display: block; padding: 80px 20px; }
  .sec-cs .inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
  .cs-layout { display: flex; gap: 20px; align-items: stretch; }
  .cs-left { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
  .notice-bar {
    display: flex; align-items: center; gap: 16px; padding: 20px;
    border: 1px solid var(--border-default); border-radius: var(--radius-d);
  }
  .notice-bar .h { font-size: 16px; line-height: 24px; font-weight: 700; white-space: nowrap; }
  .notice-bar .info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
  .notice-bar .info a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-tertiary); }
  .notice-bar .info time { font-size: 12px; line-height: 16px; color: var(--content-muted); }
  .cs-cards { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
  .cs-card {
    display: flex; align-items: center; gap: 8px; padding: 16px 20px;
    border: 1px solid var(--border-default); border-radius: 16px;
  }
  @media (hover: hover) { .cs-card:hover { background: var(--fill-faint); } }
  .cs-card .icon { display: flex; padding: 8px; border-radius: 999px; background: var(--fill-subtle); flex: none; }
  .cs-card .t { flex: 1; font-size: 15px; line-height: 22px; font-weight: 500; white-space: nowrap; }
  .cs-ic { position: relative; width: 24px; height: 24px; }
  .cs-ic > * { position: absolute; }
  .cs-ic img { display: block; width: 100%; height: 100%; }
  .hotline {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px;
    border: 1px solid var(--border-default); border-radius: var(--radius-d); overflow: hidden;
  }
  .hotline .rows { display: flex; flex-direction: column; gap: 12px; }
  .hotline .h { font-size: 16px; line-height: 24px; font-weight: 700; }
  .hotline .h em { font-style: normal; color: var(--brand-primary); }
  .hotline .row { display: flex; align-items: center; gap: 16px; }
  .hotline .row > b { width: 72px; flex: none; font-size: 14px; line-height: 20px; color: var(--content-tertiary); }
  .hotline .contact { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 22px; color: var(--content-tertiary); white-space: nowrap; }
  .hotline .contact i { width: 1px; height: 8px; background: var(--border-default); }
  .hotline .kakao { display: flex; align-items: center; gap: 8px; }
  /* kakao-icon 889:9653 — 11-25 QA #8 로고 이미지. 11-27 재요청("일부 깨져 보임"): 447px 원본을 브라우저가 28px로 줄이며 테두리가 거칠어짐
     → 28/56/84px로 미리 줄인 이미지(srcset 1x·2x·3x)를 28×28 그대로(시안의 29px cover 늘림 제거) */
  .hotline .kakao i { position: relative; width: 28px; height: 28px; flex: none; border-radius: 6px; background: var(--kakao); overflow: hidden; }
  .hotline .kakao i img { display: block; width: 28px; height: 28px; }
  .hotline .kakao a { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--content-secondary); text-decoration: underline; }
  .hotline .hours {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px;
    border-radius: var(--radius-s); background: var(--fill-faint); text-align: center; white-space: nowrap;
  }
  .hotline .hours b { font-size: 16px; line-height: 24px; }
  .hotline .hours span { font-size: 14px; line-height: 22px; color: var(--content-soft); }

  /* footer PC */
  .footer { padding: 32px 0 80px; }
  .footer .inner { max-width: 1240px; margin: 0 auto; }
  .footer .policy-row { flex-direction: row; align-items: center; }
  .footer .policy { flex: 1 1 0; min-width: 0; }
  .footer .family { flex: 1 1 0; max-width: 400px; }
  .footer .company-row { display: flex; align-items: flex-end; gap: 32px; }
  .company { flex: 1 1 0; min-width: 0; }
  .company .row { display: flex; gap: 8px; white-space: nowrap; }
  .company .copy-mo { display: none; }
  .copy-pc { display: block !important; font-size: 12px; line-height: 16px; color: var(--content-soft); white-space: nowrap; }
}
.copy-pc { display: none; }

/* 맞춤 요금제 찾기 — Figma 553:1599. MO/TA 바텀시트(위 모서리 20), PC(1025~) 가운데 팝업 468px(네 모서리 20) */
.pf-dim { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; background: var(--fill-overlay); }
.pf {
  display: flex; flex-direction: column; width: 100%; max-height: calc(100% - 40px);
  border-radius: 20px 20px 0 0; background: var(--fill-default);
  padding-bottom: env(safe-area-inset-bottom);
}
.pf-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; flex: none; }
.pf-head p { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--content-primary); white-space: nowrap; }
.pf-close { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.pf-body { display: flex; flex-direction: column; gap: 8px; padding: 0 24px; overflow-y: auto; min-height: 0; }
.pf-label { padding: 12px 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-primary); }
.pf-list { display: flex; flex-direction: column; gap: 8px; }
.pf-item {
  display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 20px; text-align: left;
  border: 1px solid var(--border-default); border-radius: var(--radius-s); background: var(--fill-default);
}
.pf-item .t { width: 88px; flex: none; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--content-primary); }
.pf-item .d { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-soft); white-space: nowrap; }
.pf-item[aria-checked="true"] { background: var(--fill-blue-subtle); border-color: var(--brand-primary); }
.pf-item[aria-checked="true"] .t { font-weight: 700; color: var(--brand-primary); }
.pf-item[aria-checked="true"] .d { color: var(--brand-primary); }
.pf-item:focus-visible, .pf-btn:focus-visible, .pf-close:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.pf-btns { display: grid; padding: 20px; flex: none; }
.pf-btns.half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pf-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 12px 16px; border-radius: var(--radius-s);
  font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap;
}
/* btn/btn solid grey / solid primary (medium) 상태 — 디자인 시스템 317:1344~1414 */
.pf-btn.sub { background: var(--fill-subtle); color: var(--content-tertiary); }
.pf-btn.main { background: var(--brand-primary); color: #fff; }
@media (hover: hover) {
  .pf-btn.sub:not(:disabled):hover { background: var(--fill-muted); }
  .pf-btn.main:not(:disabled):hover { background: var(--fill-blue-strong); }
}
.pf-btn.sub:not(:disabled):active { background: var(--fill-weak); }
.pf-btn.main:not(:disabled):active { background: var(--fill-blue-bold); }
.pf-btn:disabled { background: var(--fill-muted); color: var(--content-disabled); cursor: default; }
@media (min-width: 1025px) {
  .pf-dim { align-items: center; }
  .pf { width: 468px; border-radius: 20px; padding-bottom: 0; }
}

/* =========================================================
   Next 이식 추가분 (11-18) — 정적 시안에 없던 데이터·상태 표현
   ========================================================= */
/* 배너: 원본처럼 디바이스별 이미지·링크 3벌(MO ~767 / TA 768~1024 / PC 1025~) */
.carousel .slide { display: block; }
.carousel .slide .bn { display: none; width: 100%; height: 100%; }
.carousel .slide .bn-mo { display: block; }
@media (min-width: 768px) { .carousel .slide .bn-mo { display: none; } .carousel .slide .bn-ta { display: block; } }
@media (min-width: 1025px) { .carousel .slide .bn-ta { display: none; } .carousel .slide .bn-pc { display: block; } }

/* 요금제 뱃지: 통신사는 위 badge/card SKT·KT·LGU, 후불/선불은 type=black(11-25 QA #7) */

/* 사용량 카드 — 로그인(Figma 553:1634, 상태 553:1621 _progress/usage) — 11-27 QA #13·#14.
   MO 세로 3줄 / TA 2열(통화|문자, 데이터) / PC 세로(높이 368 고정). 비로그인 카드는 위 기존 규칙 그대로 */
.usage-card.is-login {
  flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px;
  height: auto; overflow: visible; cursor: auto; box-shadow: var(--shadow-xs);
}
.usage-card.is-login .head { align-items: center; }
.usage-refresh { display: flex; flex: none; width: 24px; height: 24px; }
.usage-refresh img { display: block; width: 24px; height: 24px; }
.usage-refresh.is-loading img { animation: usage-spin .8s linear infinite; }
.usage-refresh:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: 4px; }
@keyframes usage-spin { to { transform: rotate(360deg); } }
.usage-card.is-login .usage-detail { display: flex; flex-direction: column; gap: 12px; }
.usage-card.is-login .usage-detail .hr { display: block; height: 1px; background: var(--border-default); }
.usage-card.is-login .usage-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px;
  border-radius: var(--radius-s); background: var(--fill-blue-faint); font-size: 12px; line-height: 16px; white-space: nowrap;
}
.usage-card.is-login .usage-plan > span:first-child { flex: none; color: var(--content-soft); }
/* 요금제명: 넘치면 UsageCard 가 루프 마퀴(시작·끝 1초 멈춤) */
.usage-card.is-login .mq { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; overflow: hidden; }
.usage-card.is-login .mq.is-over { justify-content: flex-start; }
.usage-card.is-login .mq-in { flex: none; font-weight: 500; color: var(--content-primary); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .usage-card.is-login .mq-in { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } }
.usage-card.is-login .progress-list { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
.usage-card.is-login .progress { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.usage-card.is-login .progress .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; }
.usage-card.is-login .progress .row > span:first-child { color: var(--content-soft); white-space: nowrap; }
.usage-card.is-login .progress .val { display: flex; align-items: center; gap: 4px; padding: 2px 0; white-space: nowrap; color: var(--content-primary); }
.usage-card.is-login .progress .val em { font-style: normal; }
.usage-card.is-login .progress .val i { width: 1px; height: 8px; background: var(--border-default); }
.usage-card.is-login .progress .val .tot { color: var(--content-soft); }
.usage-card.is-login .progress .val .hl { font-weight: 500; color: var(--brand-primary); }
.usage-card.is-login .progress.is-unlimited .val .hl { font-weight: 600; }
.usage-card.is-login .progress .val .warn { color: var(--status-warning); }
.usage-card.is-login .progress .bar-row { display: flex; align-items: center; gap: 4px; min-height: 18px; }
.usage-card.is-login .progress .pct { width: 40px; flex: none; text-align: right; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--content-primary); }
.usage-card.is-login .progress .bar { position: relative; flex: 1; height: 8px; border-radius: 99px; overflow: hidden; background: var(--fill-muted); }
.usage-card.is-login .progress .bar i { position: absolute; left: 0; right: auto; top: 0; bottom: 0; border-radius: 999px; background: var(--brand-primary); }
.usage-card.is-login .progress.is-exhausted .pct, .usage-card.is-login .progress.is-warn .pct { color: var(--status-warning); }
.usage-card.is-login .progress.is-exhausted .bar i { background: var(--content-soft); }
.usage-card.is-login .progress.is-warn .bar i { background: var(--status-warning); }
.usage-card.is-login .progress.is-none .pct { color: var(--content-soft); }
@media (min-width: 768px) {
  .usage-card.is-login { box-shadow: none; }
  .usage-card.is-login .usage-plan { padding: 12px 16px; }
  .usage-card.is-login .progress-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 20px; }
}
@media (min-width: 1025px) {
  .usage-card.is-login { height: 368px; }
  .usage-card.is-login .progress-list { display: flex; flex-direction: column; gap: 12px; }
}

/* KT 로그인(Figma 1392:3612, 11-27) — 사용량 조회 준비 중 안내. MO/TA: 문구만(py 24) / PC: 흐린 사용량 줄 위 흰 80% 막 + 가운데 문구 */
.usage-guide-wrap { position: relative; display: block; }
.usage-card.is-login .progress-list.is-ghost { display: none; }
.usage-guide { display: flex; align-items: center; justify-content: center; padding: 24px 4px; }
.usage-guide > span { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-soft); text-align: center; }
.usage-card.is-login .progress-list.is-ghost .val em { color: var(--content-primary); }
.usage-card.is-login .progress-list.is-ghost .val .tot { color: var(--content-soft); }
.usage-card.is-login .progress-list.is-ghost .bar i { background: var(--content-subtle); }
@media (min-width: 1025px) {
  .usage-card.is-login.is-kt { height: auto; min-height: 368px; }
  .usage-card.is-login .progress-list.is-ghost { display: flex; }
  .usage-guide { position: absolute; inset: 0; padding: 0 4px; background: rgba(255, 255, 255, .8); }
  .usage-guide > span { white-space: nowrap; }
}

/* 11-26 QA #11 — PC 배너 리사이즈: 배너 칸이 시안 carousel 810×368 보다 좁으면 비율(810:368) 유지하며 축소, 세로 가운데 정렬.
   (예전: 높이 368 고정 + cover → 좁은 화면에서 좌우가 잘림) */
@media (min-width: 1025px) {
  .sec-banner { align-items: center; container-type: inline-size; }
  .sec-banner .carousel { height: min(368px, calc(100cqw * 368 / 810)); }
}

/* 11-26 QA #10 — GNB 글자: 기존 페이지(public/css/style.css "* { letter-spacing: -.08px }")와 같은 자간. 전체메뉴도 같은 화면 이식분이라 함께 */
.gnb, .gnb *, .fm, .fm * { letter-spacing: -.08px; }
/* 11-30 QA #10 — 하위 메뉴(snb) 줄 높이: 기존 style.css "* { line-height: 150% }"를 받던 값(15px → 22.5px). 없으면 항목마다 2.5px 좁음 */
.gnb .snb li a { line-height: 150%; }
.plan-empty { width: 100%; padding: 40px 0; text-align: center; color: var(--content-soft); }

/* 전체메뉴(GNB 메뉴 아이콘) — 11-25 "원본처럼": 기존 페이지 풀메뉴(Header.tsx .full_menu_modal = bootstrap 5.2 modal
   modal-xl·modal-fullscreen-xl-down·centered·scrollable + style.css "fullmenu new", 1rem=10px) 실측값 그대로 */
.fm-back { position: fixed; inset: 0; z-index: 1050; background: #000; opacity: .5; }
.fm { position: fixed; inset: 0; z-index: 1055; overflow-x: hidden; overflow-y: auto; outline: 0; }
.fm-dialog { position: relative; display: flex; width: 100vw; max-width: none; height: 100%; margin: 0; pointer-events: none; }
.fm-content {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden;
  pointer-events: auto; background: #fff; color: #212529; font-size: 10px; line-height: 1.5;
}
.fm-header { display: flex; flex-shrink: 0; align-items: center; padding: 20px; }
.fm-sign { display: inline-flex; align-items: center; gap: 8px; }
.fm-sign .home { display: inline-block; line-height: 0; }
.fm-sign .home img { width: 24px; height: 24px; }
.fm-sign .title { display: block; font-size: 18px; line-height: 1.5; font-weight: 600; color: #0f172a; text-decoration: underline; }
.fm-sign .out { font-size: 14px; line-height: 1.5; font-weight: 400; color: #64748b; }
.fm-close {
  box-sizing: content-box; width: 24px; height: 24px; padding: 0; margin: -5px -5px -5px auto; border: 0; border-radius: 3.75px; opacity: .5;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/50% auto no-repeat;
}
.fm-close:hover { opacity: .75; }
.fm-close:focus { outline: 0; box-shadow: 0 0 0 2.5px rgba(13, 110, 253, .25); opacity: 1; }
.fm-body { position: relative; flex: 1 1 auto; padding: 0; overflow-y: auto; }
.fm-list > li { padding: 0 20px; border-bottom: 1px solid #e2e8f0; }
.fm-list .title { position: relative; display: inline-block; width: 100%; padding: 20px 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: #0f172a; }
.fm-sub { padding-bottom: 12px; }
.fm-sub > li > a { display: inline-block; padding: 8px 0; font-size: 14px; line-height: 1.5; color: #334155; }
@media (min-width: 1200px) {
  .fm-dialog {
    align-items: center; width: auto; max-width: 1140px; height: calc(100% - 35px); min-height: calc(100% - 35px); margin: 17.5px auto;
  }
  .fm-content { height: auto; max-height: 100%; border: 1px solid rgba(0, 0, 0, .175); border-radius: 20px; }
  .fm-header { padding: 32px; }
  .fm-sign { gap: 12px; }
  .fm-sign .title { font-size: 16px; }
  .fm-list { padding: 0 32px 32px; }
  .fm-list > li { display: flex; justify-content: space-between; gap: 40px; padding: 32px 0; }
  .fm-list > li:last-child { border-bottom: 0; }
  .fm-list .title { width: auto; padding: 0; font-size: 18px; }
  .fm-list .title.nodepth::after {
    content: ""; position: absolute; top: 50%; right: -16px; transform: translateY(-50%); display: block; width: 20px; height: 20px;
    background: url(/svg/chevron-right.svg) no-repeat center/100%;
  }
  .fm-sub { display: flex; gap: 40px; width: 85%; padding-bottom: 0; }
  .fm-sub > li > a { padding: 0; font-size: 18px; }
}

/* 메인 레이어 팝업(원본 home.jsp #mainPopup — 오늘 하루 보지 않기/닫기).
   규격은 원본 style.css .main_pop_layer 그대로(11-24 QA #1 "규격·UI 기존과 상이"):
   폭 = 화면-40px·최대 504px, 본문 = 정사각형(pop_container padding-top:100%), 이미지 width:100%(작은 이미지도 늘림),
   점 표시는 이미지 위 하단 20px, 하단 버튼은 구분선 없이 padding 20px. 1200px 이상 모서리 20px·글자 16px. */
.main-pop { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--fill-overlay); }
.main-pop .box { width: 100%; max-width: 504px; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; }
.main-pop .body { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
/* Swiper(코어만 — swiper.css 는 안 불러와 필요한 규칙만): .pop_container > swiper(정사각형) > wrapper(flex) > slide(.pop_editor overflow:auto) */
.main-pop .swiper { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.main-pop .swiper-wrapper { position: relative; z-index: 1; display: flex; width: 100%; height: 100%; transition-property: transform; transition-timing-function: ease; box-sizing: content-box; }
.main-pop .slide { position: relative; flex-shrink: 0; width: 100%; height: 100%; overflow: auto; }
/* 이미지는 원본처럼 줄 안(inline, bootstrap reboot vertical-align: middle) — block 으로 두면 에디터 본문 <p><img><br>&nbsp;</p> 의
   <br> 이 이미지 아래 빈 줄을 만들어 정사각형을 넘고 스크롤이 생긴다(11-25 확인) */
.main-pop .slide img { display: inline; vertical-align: middle; width: 100%; height: auto; }
/* 점 = 원본 style.css:611-612 .swiper-pagination-bullet(.6rem, 좌우 .3rem, gray-900 .3) / -active(폭 2rem 알약, 불투명) + :372 bottom 2rem */
.main-pop .dots { position: absolute; z-index: 10; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; }
.main-pop .dots button { width: 6px; height: 6px; margin: 0 3px; padding: 0; border-radius: 999px; background: #0f172a; opacity: .3; }
.main-pop .dots button[aria-current="true"] { width: 20px; opacity: 1; }
.main-pop .foot { display: flex; align-items: center; background: #fff; }
.main-pop .foot button { flex: 1; padding: 20px; font-size: 14px; font-weight: 500; line-height: 1.25; background: transparent; }
.main-pop .foot .v2 { font-weight: 400; color: var(--content-soft); }
@media (min-width: 1200px) {
  .main-pop .box { border-radius: 20px; }
  .main-pop .foot button { font-size: 16px; }
}

/* 관리자 탭 패널(11-26) — .plan-list·.partner-group 의 display 가 [hidden] 을 이기지 않게 */
[role="tabpanel"][hidden] { display: none !important; }
