/* =========================================================
   research.ebiweb.co.kr — 연구실(/lab) 페이지 전용 스타일
   공통 변수·base·헤더·푸터는 common.css 에 있음 (먼저 로드됨)
   모든 선택자는 .lab 로 스코프 (body class="lab") → common과 충돌 방지
   ========================================================= */

/* ---------- 페이지 스코프: 변수 · 배경 (연구실 고유) ---------- */
body.lab { --base: #F4F5F8; --lab: #8F98D9; --center: #A9BCE5; --lab-deep: var(--brand-deep); --center-deep: #8E84E6; --dept: #A9CEC8; --cta: #D98FA8; --text: #272A38; --muted: #7F8495; --white: #FFFFFF; --glass: rgba(255, 255, 255, .58); --glass-strong: rgba(255, 255, 255, .72); --line: rgba(143, 152, 217, .22); --dark1: #383D6A; --dark2: #262A4A; --shadow: 0 24px 70px rgba(72, 80, 130, .16); background: radial-gradient(circle at 14% 6%, rgba(143,152,217,.22), transparent 36%), radial-gradient(circle at 88% 14%, rgba(238,206,184,.18), transparent 32%), radial-gradient(circle at 76% 66%, rgba(217,143,168,.12), transparent 34%), var(--base); overflow-x: hidden; }

.decoimg {display: block; border-radius: clamp(16px, 2vw, 24px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .64);}

/* ---------- 타이포 ---------- */
.lab h1, .lab h2, .lab h3, .lab p { margin-top: 0; }
.lab h1 { margin-bottom: 24px; font-size: clamp(42px, 5vw, 50px); line-height: 1.3; letter-spacing: -.03em; font-weight: 800; }
.lab h1 span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: var(--brand-deep); -webkit-text-fill-color: transparent; }
.lab h2 { margin-bottom: 20px; font-size: clamp(24px,2vw,32px); line-height: 1.3; letter-spacing: -.03em; font-weight: 700; }
.lab h3 { margin-bottom: 12px; font-size: clamp(16px,1.5vw,20px); line-height: 1.35; letter-spacing: -.03em; font-weight: 600; }

/* ---------- 레이아웃 ---------- */
.lab .section-pad { padding: 100px 0; }
.lab .section-pad.logo-section { padding-top: 0; }
.lab .section-tight { padding: 28px 0; }

/* ---------- hero ---------- */
.lab .hero { position: relative; display: flex; align-items: center; justify-content: center;   height: calc(100vh - 80px); padding: 100px 0; background: radial-gradient(circle at 18% 24%, rgba(226,221,245,.85), transparent 42%), radial-gradient(circle at 82% 22%, rgba(245,227,217,.70), transparent 42%), radial-gradient(circle at 50% 86%, rgba(219,224,240,.75), transparent 46%), linear-gradient(180deg, #F5F4F8 0%, #EEEFF4 60%, #F6F5F9 100%); }
.lab .bg-orb { position: absolute; z-index: -1; border-radius: 1000px; filter: blur(8px); opacity: .65; }
.lab .orb-1 { width: 340px; height: 340px; left: 4%; top: 120px; background: rgba(143, 152, 217, .14); }
.lab .orb-2 { width: 420px; height: 420px; right: 0; top: 220px; background: rgba(238, 206, 184, .14); }
.lab .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: 70px; }
.lab .eyebrow { margin: 0 0 16px; color: var(--brand-eyebrow); font-size: 14px; line-height: 1.3; font-weight: 800; letter-spacing: .08em; }
.lab .lead { max-width: 680px; margin-bottom: clamp(40px, 10vh, 80px); color: #4B5066; font-size: 18px; line-height: 1.6; letter-spacing: -.02em; }
.lab .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.lab .hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lab .hero-points li { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 1000px; background: rgba(255, 255, 255, .48); color: #5E647A; font-size: 14px; line-height: 1.3; font-weight: 600; }
.lab .hero-panel { position: relative; }

.lab .hero-visual { position: relative; }
.lab .hero-image-frame { position: relative; overflow: hidden; }
.lab .hero-image-frame img { display: block; width: 100%; height: 100%; min-height: 540px; object-fit: cover; }
.lab .hero-image-frame.contain img { object-fit: contain; padding: 40px; }
.lab .hero-image-frame.is-transparent { display: grid; place-items: center; }
.lab .hero-image-frame.is-transparent img { width: min(100%, 620px); height: auto; min-height: 0; object-fit: contain; }

/* ---------- 버튼 ---------- */
.lab .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 1000px; font-weight: 700; letter-spacing: -.02em; }
.lab .btn.primary { color: var(--white); background: var(--hot2); box-shadow: 0 18px 40px var(--hot2-shadow); }
.lab .btn.ghost { border: 1px solid rgba(143, 152, 217, .26); background: rgba(255, 255, 255, .50); backdrop-filter: blur(10px); }

/* ---------- 글래스 카드 공통 ---------- */
.lab .glass-window, .lab .glass-card, .lab .info-card { background: rgba(255, 255, 255, .3); box-shadow: var(--shadow); }

/* ---------- hero 미리보기 창 ---------- */
.lab .glass-window { position: relative; min-height: 540px; padding: 28px; border-radius: var(--radius-xl); overflow: hidden; }
.lab .glass-window::before { content: ""; position: absolute; inset: auto -70px -90px auto; width: 280px; height: 280px; border-radius: 50%; background: rgba(217, 143, 168, .19); }
.lab .window-bar { display: flex; gap: 8px; margin-bottom: 36px; }
.lab .window-bar span { width: 12px; height: 12px; border-radius: 50%; background: rgba(143, 152, 217, .42); }
.lab .lab-profile { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .62); }
.lab .lab-badge { display: grid; place-items: center; width: 74px; height: 74px; border-radius: var(--radius-lg); color: var(--white); font-weight: 800; background: var(--brand-fill); }
.lab .lab-profile strong { display: block; font-size: 23px; letter-spacing: -.03em; }
.lab .lab-profile p { margin: 4px 0 0; color: var(--muted); }
.lab .mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.lab .mini-grid div { padding: 24px 20px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .52); }
.lab .mini-grid span { display: block; color: var(--muted); font-size: 14px; line-height: 1.3; font-weight: 700; }
.lab .mini-grid strong { display: block; margin-top: 8px; color: var(--lab); font-size: 34px; line-height: 1; }
.lab .paper-list { display: grid; gap: 12px; }
.lab .paper-list p { margin: 0; padding: 16px 20px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .46); color: #5D6378; }
.lab .paper-list b { color: var(--text); margin-right: 12px; }

/* ---------- 퀵 이동 ---------- */
.lab .quick-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.lab .quick-list a { display: flex; justify-content: center; align-items: center; min-height: 62px; border: 1px solid rgba(255, 255, 255, .72); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .54); color: #555B72; font-weight: 700; box-shadow: 0 14px 32px rgba(79, 88, 143, .08); }


/* ---------- 본문 좌측 고정 카테고리 ---------- */
.lab .quick { display: none; }
.lab .lab-page-body { padding: 100px 0; }
.lab .lab-body-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 70px; align-items: start; }
.lab .lab-side-nav { position: sticky; top: 110px; z-index: 10; display: grid; gap: 10px; padding: 20px; border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-lg); background: rgba(255,255,255,.54); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(72,80,130,.12); }
.lab .lab-side-nav a { display: flex; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 16px; color: #555B72; font-weight: 750; letter-spacing: -.02em; transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
.lab .lab-side-nav a:hover { background: rgba(143,152,217,.14); color: var(--dark1); transform: translateX(4px); }
.lab .lab-side-nav a.is-active { color: #fff; background: var(--brand-fill); box-shadow: 0 12px 28px rgba(143,152,217,.28); }
.lab .lab-body-content { display: grid; gap: 0; min-width: 0; }
.lab .content-section { padding: 96px 0; scroll-margin-top: 126px; }
.lab .content-section:first-child { padding-top: 0; }
.lab .lab-body-content .section-pad { padding: 96px 0; scroll-margin-top: 126px; }
.lab .lab-body-content .section-pad:first-child { padding-top: 0; }
.lab .lab-body-content .wrap, .lab .content-inner { width: 100%; max-width: none; margin: 0; padding: 0; }

/* ---------- 섹션 헤드 / 2단 레이아웃 ---------- */
.lab .two-col, .lab .admin-layout, .lab .price-layout, .lab .faq-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: start; }
.lab .section-head p { color: var(--muted); font-size: 16px; letter-spacing: -.02em; }
.lab .sticky-head { position: sticky; top: 130px; }
.lab .center { max-width: 820px; margin: 0 auto 48px; text-align: center; }

/* ---------- 사이트맵 ---------- */
.lab .sitemap-card { padding: var(--pad-box-lg); border-radius: var(--radius-xl); }
.lab .site-tree { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.lab .site-tree div { min-height: 56px; padding: 16px 20px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .58); color: #555B72; font-weight: 700; }
.lab .notice-box { padding: 24px; border-radius: var(--radius-lg); background: rgba(143, 152, 217, .12); }
.lab .notice-box p { margin-bottom: 0; color: #5A6077; }

.lab .sitemap-desc { margin: 0 0 28px; color: #656B80; font-size: 16px; line-height: 1.7; }
.lab .sitemap-detail-grid { display: grid; gap: 16px; margin-top: 28px; }
.lab .sitemap-detail-item { padding: 24px; border-radius: var(--radius-lg); background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.64); }
.lab .sitemap-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lab .sitemap-title span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 12px; color: #fff; background: var(--brand-fill); font-size: 14px; line-height: 1.3; font-weight: 800; }
.lab .sitemap-title strong { color: var(--text); font-size: 20px; letter-spacing: -.03em; }
.lab .sitemap-sub-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lab .sitemap-sub-list li { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 1000px; background: rgba(255,255,255,.76); color: #4F566D; font-size: 14px; line-height: 1.3; font-weight: 650; }
.lab .sitemap-sub-list li.optional { background: rgba(143,152,217,.10); color: #858BA0; border: 1px dashed rgba(143,152,217,.38); }
.lab .sitemap-sub-list li.optional::before { content: "선택"; margin-right: 8px; padding: 4px 8px; border-radius: 1000px; background: rgba(143,152,217,.15); color: var(--lab); font-size: 14px; line-height: 1.3; font-weight: 800; }
.lab .sitemap-guide-box { margin-top: 24px; }

/* ---------- 신규: 연구실 유형별 추천 구조 ---------- */
.lab .lab-type-section { background: transparent; }
.lab .lab-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.lab .lab-type-card { padding: var(--pad-box); border-radius: var(--radius-lg); }
.lab .lab-type-card .type-label { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; margin-bottom: 20px; border-radius: 1000px; background: rgba(143, 152, 217, .13); color: var(--lab); font-size: 14px; line-height: 1.3; font-weight: 800; letter-spacing: .06em; }
.lab .lab-type-card h3 { margin: 0 0 16px; color: var(--text); font-size: 22px; line-height: 1.35; }
.lab .lab-type-card p { margin: 0 0 24px; color: #5F6479; font-size: 16px; line-height: 1.75; letter-spacing: -.02em; }
.lab .lab-type-card dl { display: grid; gap: 14px; margin: 0; padding-top: 20px; border-top: 1px solid rgba(143, 152, 217, .16); }
.lab .lab-type-card dl div { display: grid; gap: 5px; }
.lab .lab-type-card dt { color: var(--lab); font-size: 14px; line-height: 1.3; font-weight: 800; }
.lab .lab-type-card dd { margin: 0; color: #555B72; font-size: 15px; line-height: 1.55; }
.lab .lab-type-card.highlight { background: linear-gradient(135deg, rgba(94, 105, 194, .94), rgba(217, 143, 168, .78)); color: var(--white); }
.lab .lab-type-card.highlight .type-label { background: rgba(255, 255, 255, .18); color: var(--white); }
.lab .lab-type-card.highlight h3, .lab .lab-type-card.highlight p, .lab .lab-type-card.highlight dt, .lab .lab-type-card.highlight dd { color: var(--white); }
.lab .lab-type-card.highlight dl { border-top-color: rgba(255, 255, 255, .24); }
.lab .lab-type-card.highlight .mini-link { display: inline-flex; margin-top: 20px; color: var(--white); font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 자료 준비 ---------- */
.lab .soft-section { background: transparent; }
.lab .content-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lab .info-card { min-height: 290px; padding: var(--pad-box); border-radius: var(--radius-lg); }
.lab .info-card .num { display: inline-flex; margin-bottom: 28px; color: var(--lab); font-size: 14px; line-height: 1.3; font-weight: 800; letter-spacing: .08em; }
.lab .info-card p, .lab .price-card p { margin-bottom: 0; color: #656B80; }

/* ---------- 신규: 제작 전 준비 자료 체크리스트 ---------- */
.lab .checklist-section { background: transparent; }
.lab .checklist-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: start; }
.lab .checklist-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lab .checklist-card { padding: var(--pad-box); border-radius: var(--radius-lg); }
.lab .checklist-card h3 { margin: 0 0 20px; color: var(--text); font-size: 21px; }
.lab .checklist-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lab .checklist-card li { position: relative; padding-left: 24px; color: #596074; font-size: 15.5px; line-height: 1.55; }
.lab .checklist-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--dept); }

/* ---------- 관리자 테이블 ---------- */
.lab .admin-table { display: grid; border-radius: var(--radius-xl); overflow: hidden; }
.lab .admin-table [role="row"] { display: grid; grid-template-columns: 1.1fr 2.4fr 1fr; border-bottom: 1px solid rgba(143, 152, 217, .16); font-size:clamp(14px,1.5vw,16px); line-height:1.4; }
.lab .admin-table [role="row"]:last-child { border-bottom: 0; }
.lab .admin-table span { padding: 10px 20px; }
.lab .table-head { color: var(--white); background: var(--brand-fill); font-weight: 750; }
.lab .admin-table .col-check { display: flex; align-items: center; justify-content: center; text-align: center; }
.lab .admin-table .admin-check { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; background: none; box-shadow: none; }
.lab .admin-table .admin-check::before { content: "✓"; font-size: 20px; font-weight: 900; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: var(--brand-deep); -webkit-text-fill-color: transparent; }
.lab .admin-table-head { margin: 56px 0 24px; }
.lab .admin-table-head h3 { margin-bottom: 10px; font-size: 22px; }
.lab .admin-table-head p { margin: 0; color: #5F6479; font-size: 16px; line-height: 1.7; letter-spacing: -.02em; word-break: keep-all; }
.lab .self-edit-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 1000px; background: linear-gradient(135deg, #D98FA8, #C985A7); color: var(--white); font-size: 14px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 8px 20px rgba(185, 118, 151, .32); }
.lab .self-edit-badge::before { content: "✓"; font-size: 14px; line-height: 1.3; font-weight: 900; }
.lab .admin-table [role="cell"] small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.3; font-weight: 600; letter-spacing: .02em; }

/* ---------- 신규: 관리자 기능 상세 ---------- */
.lab .admin-detail-section { background: transparent; }
.lab .admin-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.lab .admin-detail-card { padding: var(--pad-box); border-radius: var(--radius-xl); }
.lab .admin-detail-card .admin-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 24px; border-radius: var(--radius-md); background: var(--brand-fill); color: var(--white); font-size: 22px; font-weight: 900; }
.lab .admin-detail-card h3 { margin: 0 0 16px; color: var(--text); font-size: clamp(18px,1.5vw,23px); }
.lab .admin-detail-card img { mix-blend-mode: multiply; }
.lab .admin-detail-card p { margin: 0 0 24px; color: #5F6479; font-size: 16px; line-height: 1.75; letter-spacing: -.02em; }
.lab .admin-detail-card ul { display: grid; gap: 10px; margin: 0; padding: 20px 0 0; border-top: 1px solid rgba(143, 152, 217, .16); list-style: none; }
.lab .admin-detail-card li { position: relative; padding-left: 24px; color: #555B72; font-size: 15.5px; line-height: 1.55; }
.lab .admin-detail-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--lab); font-weight: 900; }
.lab .admin-flow { display: grid; grid-template-columns: 1fr 42px 1fr 42px 1fr; gap: 20px; align-items: center; margin-top: 28px; padding: 32px; border-radius: var(--radius-lg); }
.lab .admin-flow div { text-align: center; }
.lab .admin-flow strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 18px; }
.lab .admin-flow p { margin: 0; color: #656B80; font-size: 15px; line-height: 1.6; }
.lab .admin-flow span { display: block; height: 2px; background: linear-gradient(90deg, rgba(143, 152, 217, 0), rgba(143, 152, 217, .55), rgba(143, 152, 217, 0)); }

/* ---------- 프로세스 (다크 섹션) ---------- */
.lab .dark-section { color: var(--text); background: transparent; border-radius: 0; }
.lab .section-head.light p, .lab .section-head.light .eyebrow { color: rgba(255, 255, 255, .72); }
.lab .process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lab .process-list li { padding: var(--pad-box); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .08); }
.lab .process-list span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; border-radius: 50%; color: var(--dark2); background: rgba(255, 255, 255, .86); font-weight: 800; }
.lab .process-list strong { display: block; margin-bottom: 12px; font-size: 20px; }
.lab .process-list p { margin-bottom: 0; color: rgba(255, 255, 255, .72); }

/* ---------- 가격 ---------- */
.lab .price-cards { }
.lab .price-cards.two { margin: 0 auto; }
.lab .price-cards.one { justify-content: center; margin: 0 auto; }
.lab .price-card { display: flex; flex-direction: column; padding: var(--pad-box-lg); border-radius: var(--radius-lg); }
.lab .price-card strong { display: block; margin-bottom: 8px; font-size: 24px; }
.lab .price-card strong small { font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.lab .price-card .price-tag { margin: 0 0 22px; color: #656B80; font-size: 15px; line-height: 1.55; letter-spacing: -.02em; word-break: keep-all; }
.lab .price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(143, 152, 217, .18); color: var(--text); font-size: clamp(24px,2vw,48px); font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.lab .price-amount em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--muted); }
.lab .price-amount .amt { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: var(--brand-deep); -webkit-text-fill-color: transparent; }
.lab .price-feature-list { display: grid; gap: 11px; margin: 0 0 26px; padding: 0; list-style: none; }
.lab .price-feature-list li { position: relative; padding-left: 24px; color: #555B72; font-size: 15px; line-height: 1.5; letter-spacing: -.02em; word-break: keep-all; }
.lab .price-feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--lab); font-weight: 900; }
.lab .price-card .price-merit { margin: auto 0 0; padding: 16px 18px; border-radius: var(--radius-md); background: rgba(143, 152, 217, .10); color: var(--dark1); font-size: 14.5px; line-height: 1.55; font-weight: 700; letter-spacing: -.02em; word-break: keep-all; }
.lab .price-card .price-merit::before { content: "MERIT"; display: block; margin-bottom: 6px; color: var(--lab); font-size: 14px; line-height: 1.3; font-weight: 850; letter-spacing: .08em; }
.lab .price-note { margin: 20px auto 0; color: var(--muted); font-size: 14px; line-height: 1.3; letter-spacing: -.02em; }

/* ---------- 제작 기간 (타임라인) ---------- */
.lab .timeline-cards { }
.lab .timeline-cards.one { justify-content: center; margin: 0 auto; }
.lab .timeline-card { display: flex; flex-direction: column; padding: var(--pad-box-lg); border-radius: var(--radius-lg); }
.lab .timeline-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid rgba(143, 152, 217, .18); }
.lab .timeline-card-head strong { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.lab .timeline-card-head strong small { font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.lab .timeline-total { font-size: 28px; font-weight: 850; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.lab .timeline-total em { font-style: normal; font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--muted); margin-right: 4px; }
.lab .timeline-total .amt { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: var(--brand-deep); -webkit-text-fill-color: transparent; }
.lab .timeline-phase-list { display: grid; margin: 0; padding: 0; list-style: none; }
.lab .timeline-phase-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed rgba(143, 152, 217, .22); }
.lab .timeline-phase-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.lab .timeline-phase-list .ph-step { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-fill); color: #fff; font-size: 14px; line-height: 1.3; font-weight: 800; }
.lab .timeline-phase-list .ph-body { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; }
.lab .timeline-phase-list .ph-name { flex: none; color: var(--text); font-size: 15.5px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.lab .timeline-phase-list .ph-desc { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; line-height: 1.3; letter-spacing: -.02em; word-break: keep-all; }
.lab .timeline-phase-list .ph-dur { flex: none; color: var(--lab-deep); font-size: 14px; line-height: 1.3; font-weight: 800; white-space: nowrap; }
.lab .timeline-factors { margin-top: 24px; padding: 28px 32px; border-radius: var(--radius-lg); }
.lab .timeline-factors > strong { display: block; margin-bottom: 16px; color: var(--text); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.lab .timeline-factors ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.lab .timeline-factors li { position: relative; padding-left: 22px; color: #555B72; font-size: 14.5px; line-height: 1.55; letter-spacing: -.02em; word-break: keep-all; }
.lab .timeline-factors li::before { content: "•"; position: absolute; left: 5px; top: -1px; color: var(--lab-deep); font-weight: 900; }
.lab .timeline-factors-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(143, 152, 217, .16); color: var(--muted); font-size: 14px; line-height: 1.3; letter-spacing: -.02em; word-break: keep-all; }

/* ---------- 반응형 디바이스 ---------- */
.lab .device-card { position: relative; display: flex; align-items: flex-end; justify-content: center; border-radius: var(--radius-xl); overflow: hidden; }
.lab .responsive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.lab .responsive-card { padding: var(--pad-box); border-radius: var(--radius-lg); }
.lab .responsive-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; margin-bottom: 16px; border-radius: 1000px; background: rgba(143, 152, 217, .13); color: var(--lab-deep); font-size: 14px; line-height: 1.3; font-weight: 800; letter-spacing: .06em; }
.lab .responsive-card h3 { margin-bottom: 10px; }
.lab .responsive-card p { margin: 0; color: #5F6479; font-size: 15px; line-height: 1.65; letter-spacing: -.02em; word-break: keep-all; }
.lab .responsive-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin: 16px 0 0; padding: 28px 32px; border-radius: var(--radius-lg); background: rgba(143, 152, 217, .06); border: 1px solid rgba(143, 152, 217, .14); list-style: none; }
.lab .responsive-points li { position: relative; padding-left: 26px; color: #555B72; font-size: 15px; line-height: 1.55; letter-spacing: -.02em; word-break: keep-all; }
.lab .responsive-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--lab-deep); font-weight: 900; }

/* ---------- DIRECT ANSWER (AEO 즉답) ---------- */
.lab .lab-answer-section { position: relative; overflow: hidden; background: #000; }
.lab .lab-answer-section::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("/images/lab_direct.webp") center / cover no-repeat; opacity: .3; pointer-events: none; }
.lab .lab-answer-section > .wrap { position: relative; z-index: 1; }
.lab .lab-answer-box { padding: var(--pad-box-lg); border-radius: var(--radius-xl); background:#fff; text-align:center; }
.lab .lab-answer-box h2 { margin: 8px 0 16px; }
.lab .lab-answer-box > p { margin: 0 0 24px; color: #4B5066; font-size: clamp(14px,1.5vw,17px); line-height: 1.4; letter-spacing: -.02em; word-break: keep-all; }
.lab .lab-answer-box ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.lab .lab-answer-box li { padding: 18px 20px; border-radius: var(--radius-md); background: rgba(143, 152, 217, .10); color: #555B72; font-size: 15px; line-height: 1.55; font-weight: 650; letter-spacing: -.02em; word-break: keep-all; }

/* ---------- GEO 신뢰 근거 ---------- */
.lab .lab-trust-section {padding-top:0;}
.lab .lab-trust-grid { background:#fff; padding:var(--pad-box-lg); border-radius: var(--radius-xl); box-shadow: var(--shadow);}
.lab .lab-trust-copy { margin-bottom: 44px; text-align:center;}
.lab .lab-trust-copy h2 { margin-bottom: 16px; }
.lab .lab-trust-copy p { margin: 0; color: #4B5066; font-size: 17px; line-height: 1.8; letter-spacing: -.02em; word-break: keep-all; }
.lab .lab-trust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lab .lab-trust-stats article { padding: 28px; border-radius: var(--radius-lg); border: 1px solid rgba(143, 152, 217, .22); background: linear-gradient(150deg, rgba(143, 152, 217, .20), rgba(169, 188, 229, .10)); box-shadow: 0 14px 40px rgba(72, 80, 130, .08); }
.lab .lab-trust-stats strong { display: block; margin-bottom: 8px; color: var(--lab-deep); font-size: 34px; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.lab .lab-trust-stats span { display: block; color: var(--muted); font-size: 15px; font-weight: 700; letter-spacing: -.02em; word-break: keep-all; }
.lab .device { border: 10px solid rgba(255, 255, 255, .86); background: linear-gradient(135deg, rgba(143, 152, 217, .70), rgba(169, 206, 200, .56)); box-shadow: 0 24px 50px rgba(72, 80, 130, .16); }
.lab .device span { display: block; width: 42%; height: 8px; margin: 28px auto; border-radius: 1000px; background: rgba(255, 255, 255, .82); }
.lab .device.desktop { width: 520px; height: 300px; border-radius: var(--radius-xl); }
.lab .device.tablet { width: 160px; height: 230px; border-radius: var(--radius-lg); }
.lab .device.phone { width: 90px; height: 180px; border-radius: var(--radius-lg); }

/* ---------- FAQ ---------- */
/* FAQ 리스트 스타일은 common.css .faq-list 공용 사용 */

/* ---------- 로고 마퀴 ---------- */
.lab .logo-marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.lab .logo-track { display: flex; width: max-content; gap: 14px; animation: lab-marquee 28s linear infinite; }
.lab .logo-track span { display: grid; place-items: center; min-width: 132px; height: 76px; border: 1px solid rgba(255, 255, 255, .76); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .52); color: #61677D; font-weight: 850; }
@keyframes lab-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CTA (연구소 CTA 스타일로 통일 — lab·center·dept 공통 톤) ---------- */
.lab .cta { padding: 112px 0; background: var(--cta-bg); }
.lab .cta-box { max-width: 960px; margin: 0 auto; text-align: center; color: #FFFFFF; }
.lab .cta-box .eyebrow { color: rgba(255,255,255,.72); }
.lab .cta-box h2 { margin-bottom: 20px; color: #FFFFFF; font-size: clamp(32px,4vw,42px); line-height: 1.25; letter-spacing: -.03em; font-weight: 800; }
.lab .cta-box p:not(.eyebrow) { max-width: 720px; margin: 0 auto 36px; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.8; word-break: keep-all; }
.lab .cta-box .center-actions { justify-content: center; }
.lab .cta-box .btn.ghost { color: #FFFFFF; border-color: rgba(255,255,255,.30); background: rgba(255,255,255,.12); }

/* ---------- 최종: 본문 우측 콘텐츠 세로형 정리 ---------- */
.lab .lab-body-content > section { border-top: 1px solid rgba(143, 152, 217, .18); background: transparent; }
.lab .lab-body-content > section:first-child { border-top: 0; }
.lab .lab-body-content .two-col, .lab .lab-body-content .admin-layout, .lab .lab-body-content .price-layout, .lab .lab-body-content .faq-layout, .lab .lab-body-content .checklist-layout { grid-template-columns: 1fr; gap: 30px; }
.lab .lab-body-content .section-head { max-width: 880px; margin: 0 0 36px; text-align: left; }
.lab .lab-body-content .section-head.center, .lab .lab-body-content .center { max-width: 880px; margin: 0 0 36px; text-align: left; }
.lab .lab-body-content .sticky-head { position: static; top: auto; }
.lab .lab-body-content .lab-type-grid { grid-template-columns: repeat(1, 1fr); margin-top: 36px; }
.lab .lab-body-content .admin-detail-grid { grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
.lab .lab-body-content .process-list { grid-template-columns: repeat(5, 1fr); }
.lab .dark-section .section-head.light p, .lab .dark-section .section-head.light .eyebrow { color: var(--muted); }
.lab .dark-section .process-list li { border-color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .56); color: var(--text); box-shadow: 0 14px 36px rgba(79, 88, 143, .08); }
.lab .dark-section .process-list span { color: var(--white); background: var(--brand-fill); }
.lab .dark-section .process-list strong { color: var(--text); }
.lab .dark-section .process-list p { color: #656B80; }

/* ---------- 최종 보정: 좌측 내비 + 우측 콘텐츠 상하형 정리 ---------- */
.lab .lab-body-content .content-inner { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.lab .lab-body-content .content-stack { display: block; }
.lab .lab-body-content .two-col, .lab .lab-body-content .admin-layout, .lab .lab-body-content .price-layout, .lab .lab-body-content .faq-layout, .lab .lab-body-content .checklist-layout { display: block; grid-template-columns: none; gap: 0; }
.lab .lab-body-content .section-head { max-width: 900px; margin: 0 0 36px; text-align: left; }
.lab .lab-body-content .section-head.center, .lab .lab-body-content .center { max-width: 900px; margin: 0 0 36px; text-align: left; }
.lab .lab-body-content .sticky-head { position: static; top: auto; }
.lab .lab-body-content > section { border-top: 1px solid rgba(143, 152, 217, .16); background: transparent; }
.lab .lab-body-content > section:first-child { border-top: 0; }
.lab .lab-body-content .section-pad { padding: 92px 0; scroll-margin-top: 126px; }
.lab .lab-body-content .section-pad:first-child { padding-top: 0; }
.lab .soft-section, .lab .lab-type-section, .lab .checklist-section, .lab .admin-detail-section, .lab .dark-section { background: transparent; color: var(--text); border-radius: 0; }
.lab .section-head.light p, .lab .section-head.light .eyebrow { color: var(--muted); }
.lab .process-list li { border: 1px solid rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .56); color: var(--text); box-shadow: 0 14px 36px rgba(79, 88, 143, .08); }
.lab .process-list span { color: var(--white); background: var(--brand-fill); }
.lab .process-list strong { color: var(--text); }
.lab .process-list p { color: #656B80; }
.lab .lab-body-content .site-tree { margin-top: 0; }
.lab .lab-body-content .lab-type-grid, .lab .lab-body-content .content-grid, .lab .lab-body-content .checklist-wrap, .lab .lab-body-content .admin-detail-grid, .lab .lab-body-content .process-list { margin-top: 0; }

/* ---------- 최종 보정: 추천 구조 섹션 상단 요약/하단 안내 박스 ---------- */
.lab .structure-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 28px; padding: 28px 32px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.78); background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.46)); backdrop-filter: blur(18px); box-shadow: 0 18px 46px rgba(72,80,130,.10); }
.lab .structure-summary+.decoimg {margin-bottom: 26px; box-shadow: 0 18px 48px rgba(72, 80, 130, .10);}
.lab .structure-summary-copy { display: grid; gap: 10px; min-width: 0; }
.lab .structure-summary-copy strong { display: inline-flex; align-items: center; width: fit-content; min-height: 30px; padding: 0 12px; border-radius: 1000px; background: rgba(143,152,217,.13); color: var(--lab); font-size: 14px; line-height: 1.3; font-weight: 850; letter-spacing: -.02em; }
.lab .structure-summary-copy p { margin: 0; color: var(--text); font-size: 18px; line-height: 1.55; font-weight: 750; letter-spacing: -.03em; word-break: keep-all; }
.lab .structure-legend { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.lab .structure-legend span { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 16px; border-radius: 1000px; font-size: 14px; line-height: 1.3; font-weight: 850; letter-spacing: -.02em; }
.lab .structure-legend span.core { color: #fff; background: var(--brand-fill); box-shadow: 0 10px 22px rgba(143,152,217,.25); }
.lab .structure-legend span.optional { color: #858BA0; background: rgba(143,152,217,.10); border: 1px dashed rgba(143,152,217,.46); }
.lab .structure-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 32px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.76); background: linear-gradient(135deg, rgba(255,255,255,.68), rgba(143,152,217,.13)); backdrop-filter: blur(18px); box-shadow: 0 18px 46px rgba(72,80,130,.10); }
.lab .structure-note div { min-width: 0; }
.lab .structure-note strong { display: block; margin-bottom: 12px; color: var(--text); font-size: 20px; line-height: 1.4; font-weight: 800; letter-spacing: -.03em; }
.lab .structure-note p { max-width: 840px; margin: 0; color: #5F6479; font-size: 16px; line-height: 1.75; letter-spacing: -.02em; word-break: keep-all; }
.lab .structure-note .mini-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 46px; padding: 0 20px; border-radius: 1000px; color: #fff; background: var(--brand-fill); font-size: 15px; font-weight: 850; letter-spacing: -.02em; box-shadow: 0 14px 30px rgba(143,152,217,.26); }

.lab .structure-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0; padding: 28px 32px; border-radius: var(--radius-lg); background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 18px 48px rgba(72,80,130,.10); }
.lab .structure-summary-copy strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 18px; font-weight: 800; }
.lab .structure-summary-copy p { margin: 0; color: #555B72; font-size: 16px; line-height: 1.6; }
.lab .structure-legend { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.lab .structure-legend span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 1000px; font-size: 14px; line-height: 1.3; font-weight: 800; }
.lab .structure-legend .core { color: #fff; background: var(--brand-fill); }
.lab .structure-legend .optional { color: var(--lab); background: rgba(143,152,217,.12); border: 1px dashed rgba(143,152,217,.42); }
.lab .structure-menu-box { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(143,152,217,.16); }
.lab .structure-menu-box strong, .lab .structure-sub-box strong { display: block; margin-bottom: 12px; color: var(--text); font-size: 16px; font-weight: 800; }
.lab .structure-menu-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lab .structure-menu-list li { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 1000px; color: #fff; background: var(--brand-fill); font-size: 14px; line-height: 1.3; font-weight: 750; box-shadow: 0 10px 22px rgba(94,105,194,.24); }
.lab .structure-sub-box { margin-top: 24px; }
.lab .structure-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lab .structure-tag-list li { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 1000px; background: rgba(255,255,255,.78); color: #4F566D; font-size: 14px; line-height: 1.3; font-weight: 650; border: 1px solid rgba(255,255,255,.66); }
.lab .structure-tag-list li.optional { background: rgba(143,152,217,.10); color: #858BA0; border: 1px dashed rgba(143,152,217,.42); }
.lab .structure-tag-list li.optional::before { content: "선택"; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; padding: 4px 8px; border-radius: 1000px; background: rgba(143,152,217,.15); color: var(--lab); font-size: 14px; font-weight: 800; line-height: 1.3; }
.lab .structure-note { display: flex; flex-direction:column; align-items: center; justify-content: space-between; gap: 28px; margin-top: 28px; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(255,255,255,.64), rgba(143,152,217,.16)); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 18px 48px rgba(72,80,130,.10); }
.lab .structure-note strong { display: block; margin-bottom: 12px; color: var(--text); font-size: 18px; font-weight: 850; }
.lab .structure-note p { margin: 0; color: #5A6077; font-size: 16px; line-height: 1.7; }
.lab .structure-note .mini-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 0 20px; border-radius: 1000px; color: #fff; background: var(--brand-fill); font-weight: 800; box-shadow: 0 14px 30px rgba(143,152,217,.24); }

/* =========================================================
   반응형 — 전 미디어쿼리 통합 (1180 → 768)
   ⚠️ 같은 화면폭에서 뒤 규칙이 우선하므로 768은 항상 마지막
   ========================================================= */
@media (max-width: 1180px) {
  .lab .hero-grid, .lab .two-col, .lab .admin-layout, .lab .price-layout, .lab .faq-layout { grid-template-columns: 1fr; }
  .lab .lab-body-layout { grid-template-columns: 1fr; gap: 38px; }
  .lab .lab-side-nav { display:none;}
  .lab .lab-side-nav a { flex: 0 0 auto; min-height: 46px; white-space: nowrap; }
  .lab .lab-side-nav a:hover { transform: none; }
  .lab .sticky-head { position: static; }
  .lab .content-grid, .lab .process-list, .lab .lab-type-grid, .lab .admin-detail-grid, .lab .price-cards, .lab .responsive-grid { grid-template-columns: repeat(2, 1fr); }
  .lab .checklist-layout { grid-template-columns: 1fr; gap: 40px; }
  .lab .lab-body-content .content-grid, .lab .lab-body-content .lab-type-grid, .lab .lab-body-content .checklist-wrap, .lab .lab-body-content .admin-detail-grid, .lab .lab-body-content .process-list { grid-template-columns: repeat(2, 1fr); }
  .lab .structure-summary { flex-direction: column; }
}

@media (max-width: 768px) {
  /* 핵심 안내 · 신뢰 통계 */
  .lab .lab-answer-box ul { grid-template-columns: 1fr; }
  .lab .lab-trust-stats { grid-template-columns: 1fr; }
  /* 히어로 · 타이포 · 본문 */
  .lab .section-pad { padding: 50px 0; }
  .lab .hero { padding-top: 72px; min-height: auto; }
  .lab .hero-grid { gap: 38px; }
  .lab h1 { font-size: 40px; }
  .lab .lead, .lab .section-head p { font-size: 16px; }
  .lab .hero-actions, .lab .hero-points { flex-direction: column; }
  .lab .btn, .lab .hero-points li { width: 100%; }
  .lab .glass-window { min-height: auto; padding: 20px; border-radius: var(--radius-xl); }
  .lab .hero-image-frame { min-height: 320px; border-radius: var(--radius-xl); }
  .lab .hero-image-frame img { min-height: 320px; }
  .lab .hero-image-frame.contain img, .lab .hero-image-frame.is-transparent { padding: 24px; }
  .lab .lab-page-body { padding: 50px 0; }
  .lab .content-section, .lab .lab-body-content .section-pad { padding: 50px 0; scroll-margin-top: 110px; }
  /* 그리드 1열 정리 */
  .lab .mini-grid, .lab .quick-list, .lab .site-tree, .lab .content-grid, .lab .process-list, .lab .lab-type-grid, .lab .checklist-wrap, .lab .admin-detail-grid, .lab .price-cards, .lab .price-cards.two, .lab .timeline-cards, .lab .responsive-grid, .lab .responsive-points, .lab .timeline-factors ul { grid-template-columns: 1fr; }
  .lab .sitemap-card {padding:0; background:transparent; border:0; box-shadow:none;}
  .lab .sitemap-detail-grid { grid-template-columns: 1fr; }
  .lab .lab-body-content .content-grid, .lab .lab-body-content .lab-type-grid, .lab .lab-body-content .checklist-wrap, .lab .lab-body-content .admin-detail-grid, .lab .lab-body-content .process-list { grid-template-columns: 1fr; }
  /* 컴포넌트 보정 */
  .lab .quick-list a { min-height: 54px; }
  .lab .timeline-phase-list li { align-items: flex-start; }
  .lab .timeline-phase-list .ph-body { flex-direction: column; gap: 4px; }
  .lab .timeline-phase-list .ph-name { white-space: normal; }
  .lab .admin-table span { padding: 10px 10px; }
  .lab .admin-table .col-check { word-break: keep-all; }
  .lab .lab-type-card, .lab .checklist-card, .lab .admin-detail-card { border-radius: var(--radius-lg); }
  .lab .admin-flow { grid-template-columns: 1fr; gap: 18px; }
  .lab .admin-flow span { width: 2px; height: 28px; margin: 0 auto; background: linear-gradient(180deg, rgba(143, 152, 217, 0), rgba(143, 152, 217, .55), rgba(143, 152, 217, 0)); }
  .lab .device-card { padding: 28px; gap: 14px; }
  .lab .device.desktop { width: 220px; height: 150px; border-radius: var(--radius-lg); }
  .lab .device.tablet { width: 82px; height: 128px; border-radius: var(--radius-md); }
  .lab .device.phone { width: 54px; height: 108px; border-radius: var(--radius-md); }
  /* 추천 구조 박스 */
  .lab .structure-summary { display: block; padding: 24px; }
  .lab .structure-legend { margin-top: 20px; }
  .lab .structure-note { display: block; padding: 24px; }
  .lab .structure-note .mini-link { width: 100%; margin-top: 20px; }
  
  
}