/* app.css - Bootstrap 5.3.8 보조 스타일 (CSP style-src 'self': 인라인 style 대신 클래스 사용) */
.admin-nav { min-height: calc(100vh - 56px); }
@media (max-width: 767.98px) { .admin-nav { min-height: 0; border-right: 0 !important; } }
.navbar .dropdown-menu { margin-top: 0; }

/* 페이지 빌더 블록 */
.block-hero { color: #fff; }
.block-hero .lead { opacity: .9; }
.hero-primary { background: #0d6efd; }
.hero-dark { background: #212529; }
.hero-gradient { background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%); color: #fff; }
.hero-light { background: #f1f4f9; color: #212529; }
.block-inactive { opacity: .45; outline: 2px dashed #dc3545; outline-offset: -2px; }
.pricing-table thead th { vertical-align: top; min-width: 9rem; }
.pricing-featured { background: rgba(13, 110, 253, .06) !important; }
.builder-table th, .builder-table td { min-width: 9rem; }
/* (r17) 블록 간격 (사이트 설정 > 페이지 블록 간격). 블록 = 위아래 여백만, 표 아래 여백 없음 */
.page-blocks .block .table { margin-bottom: 0; }
.page-blocks.gap-compact .block:not(.block-hero) > .container { padding-top: .6rem !important; padding-bottom: .6rem !important; }   /* py-4 유틸리티(!important) 덮어쓰기 */
.page-blocks.gap-compact .block h2 { margin-bottom: .6rem !important; }
.page-blocks.gap-compact .block .table > :not(caption) > * > * { padding: .4rem .6rem; }
.page-blocks.gap-normal .block:not(.block-hero) > .container { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.page-blocks.gap-wide .block .table { margin-bottom: 1rem; }
.border-dashed { border-style: dashed !important; }
.builder-table th:first-child { min-width: 10rem; }

/* 위지윅 본문 (Sanitizer 허용 클래스와 동일) */
.content-body { overflow-wrap: anywhere; }
.content-body img { max-width: 100%; height: auto; }
.content-body img.img-left { float: left; margin: 0 1rem .5rem 0; }
.content-body img.img-right { float: right; margin: 0 0 .5rem 1rem; }
.content-body img.img-center { display: block; margin: 0 auto .5rem; }
.content-body::after { content: ""; display: table; clear: both; }
.content-body blockquote { border-left: 4px solid #dee2e6; padding-left: 1rem; color: #6c757d; }
.content-body pre { background: #f8f9fa; padding: .75rem; border-radius: .375rem; }
.content-body table { width: auto; max-width: 100%; }
.content-body > :last-child { margin-bottom: 0; }
.ticket-note .content-body { background: #fffbea; }
.card .badge { vertical-align: middle; }

:where(:root) { --brand: #8b2b1c; --brand-dark: #6f2216; --brand-light: #f3eae8; --brand-contrast: #fff; --brand-rgb: 139, 43, 28; }  /* /theme.css 가 덮어씀 */

/* ===================================================================
   사이트 레이아웃 (호스팅 포털형) - 대표 색은 /theme.css 의 CSS 변수
   =================================================================== */
.site { font-size: .95rem; color: #222; background: #fff; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--brand-contrast); }
.link-brand { color: var(--brand); }
.site a { text-decoration: none; }
.site a:hover { text-decoration: underline; }

/* 상단 작은 링크 */
.site-topbar { background: #f4f4f4; border-bottom: 1px solid #e3e3e3; font-size: .8rem; }
.topbar-link { display: inline-block; padding: .3rem .7rem; color: #555; border-left: 1px solid #ddd; font-size: .8rem; line-height: 1.4; }
.topbar-link:first-child { border-left: 0; }
.topbar-login { background: var(--brand); color: var(--brand-contrast) !important; border-left: 0; }

/* 헤더 */
.site-header { padding: 1rem 0 .8rem; }
.site-logo img { max-height: 54px; width: auto; }
.logo-text { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; color: var(--brand); }
.site-slogan { font-size: 1.25rem; font-weight: 700; color: #333; flex: 1; text-align: center; }
.site-note { text-align: right; font-weight: 700; color: var(--brand); font-size: .9rem; line-height: 1.35; }

/* 주 메뉴 (GNB) - 데스크톱: 마우스를 올리면 모든 하위메뉴가 한 번에 펼쳐짐 */
.gnb-bar { background: var(--brand); position: relative; z-index: 1020; }
.gnb { list-style: none; margin: 0; padding: 0; }
.gnb-link { display: block; color: var(--brand-contrast); font-weight: 700; padding: .75rem 1rem; white-space: nowrap; }
.gnb-link:hover, .gnb-link:focus { color: var(--brand-contrast); text-decoration: none; background: var(--brand-dark); }
.gnb-sub { list-style: none; margin: 0; padding: .6rem 1rem; display: none; }
.gnb-sub a { display: block; padding: .18rem 0; color: #333; font-size: .85rem; }
.menu-em-bold { font-weight: 700; }
.menu-em-red { color: #d6261b !important; font-weight: 700; }
.menu-em-blue { color: #1557c0 !important; font-weight: 700; }
.menu-em-green { color: #2e8b28 !important; font-weight: 700; }
.menu-em-orange { color: #e06c00 !important; font-weight: 700; }
.menu-badge { display: inline-block; font-size: .62rem; font-weight: 700; line-height: 1; padding: .18em .35em; border-radius: .2rem; vertical-align: 1px; color: #fff; background: #e8590c; }
.menu-badge-new { background: #e03131; }
.menu-badge-hot { background: #f08c00; }
.menu-badge-best { background: var(--brand); color: var(--brand-contrast); }
.menu-badge-free { background: #2f9e44; }
.menu-badge-event { background: #7048e8; }
@media (min-width: 992px) {
  .gnb { display: flex !important; }
  .gnb-item { flex: 1 1 0; position: relative; border-left: 1px solid rgba(255, 255, 255, .15); }
  .gnb-item:last-child { border-right: 1px solid rgba(255, 255, 255, .15); }
  .gnb-sub { position: absolute; top: 100%; left: 0; right: 0; min-height: var(--gnb-panel-h, 200px); background: #fff; border-left: 1px solid #eee; }
  .gnb-bar:hover .gnb-sub, .gnb-bar:focus-within .gnb-sub { display: block; }
  .gnb-bar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--gnb-panel-h, 200px) + 3px); background: #fff;
    border-bottom: 3px solid var(--brand); box-shadow: 0 8px 16px rgba(0, 0, 0, .12); display: none; z-index: -1; }
  .gnb-bar:hover::after, .gnb-bar:focus-within::after { display: block; }
  .gnb-bar.no-sub::after { display: none !important; }
}
/* 모바일: 햄버거 → 세로 메뉴, 대메뉴 옆 ▼ 로 하위메뉴 */
.gnb-toggler { border: 1px solid #ccc; background: #fff; border-radius: .3rem; padding: .45rem .5rem; }
.gnb-toggler span { display: block; width: 22px; height: 2px; background: #333; margin: 4px 0; }
@media (max-width: 991.98px) {
  .gnb { display: none; padding: .3rem 0; }
  .gnb-bar.is-open .gnb { display: block; }
  .gnb-item { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .gnb-toggle-sub { position: absolute; right: 0; top: 0; width: 3rem; height: 2.9rem; border: 0; background: transparent; color: var(--brand-contrast); }
  .gnb-toggle-sub::after { content: "▾"; font-size: 1.1rem; }
  .gnb-item.is-open .gnb-toggle-sub::after { content: "▴"; }
  .gnb-item.is-open .gnb-sub { display: block; background: #fff; }
}

/* 메인 */
.home-stage { position: relative; }
.wing { display: none; position: absolute; top: 1rem; width: 110px; }
.wing-left { right: 100%; margin-right: 14px; }
.wing-right { left: 100%; margin-left: 14px; }
@media (min-width: 1440px) { .wing { display: block; } }
.wing-banner { display: block; margin-bottom: .6rem; border: 1px solid #e5e5e5; background: #fff; }
.wing-banner img { display: block; width: 100%; height: auto; }

.notice-ticker { display: flex; align-items: center; border: 1px solid #ddd; height: 2.4rem; overflow: hidden; font-size: .85rem; }
.ticker-label { background: var(--brand); color: var(--brand-contrast); padding: 0 .8rem; height: 100%; display: flex; align-items: center; font-weight: 700; }
.ticker-list { list-style: none; margin: 0; padding: 0 .8rem; position: relative; flex: 1; height: 100%; }
.ticker-item { position: absolute; inset: 0 .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  opacity: 0; transform: translateY(100%); transition: opacity .4s, transform .4s; }
.ticker-item.is-on { opacity: 1; transform: none; }
.ticker-item a { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-cat { color: var(--brand); font-weight: 700; margin-right: .4rem; }
.ticker-date { color: #888; font-size: .8rem; }
.ticker-more { padding: 0 .8rem; font-size: .8rem; color: #666; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ticker-item { transition: none; } }

.side-box { border: 1px solid #ddd; padding: .8rem; margin-bottom: .8rem; background: #fff; }
.side-title { font-size: .9rem; font-weight: 700; margin-bottom: .6rem; color: #333; }
.side-login-btn { min-width: 4rem; }
.side-links { list-style: none; margin: .7rem 0 0; padding: 0; border-top: 1px solid #eee; }
.side-links li { border-bottom: 1px solid #eee; }
.side-links a { display: flex; justify-content: space-between; padding: .4rem .2rem; color: #444; font-size: .85rem; }
.side-links a::after { content: "+"; color: #aaa; }
.side-table { width: 100%; font-size: .8rem; }
.side-table th { width: 2.6rem; color: var(--brand); font-weight: 700; vertical-align: middle; }
.side-table td { padding: .25rem .1rem; border-bottom: 1px dotted #ddd; }
.ns-host { font-weight: 600; }
.ns-ip, .account-holder { color: #777; font-size: .78rem; }
.btn-copy { border: 1px solid #ccc; background: #fafafa; font-size: .65rem; padding: .1rem .35rem; color: #555; }
.account { padding: .35rem 0; border-bottom: 1px dotted #ddd; font-size: .85rem; }
.account:last-child { border-bottom: 0; }
.account-bank { font-weight: 700; }
.account-no { font-family: var(--bs-font-monospace); }
.side-cs { background: var(--brand-light); }
.cs-phone { font-size: 1.45rem; font-weight: 800; color: var(--brand); margin-bottom: .3rem; }
.cs-hours { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; font-size: .8rem; margin-bottom: .6rem; }
.cs-hours dt { font-weight: 700; }
.cs-hours dd { margin: 0; }

.main-slide { border: 1px solid #ddd; overflow: hidden; background: #f6f6f6; }
.main-slide img { display: block; width: 100%; height: auto; }
.slide-link { display: block; }
.banner-text { display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 1.4rem; min-height: 120px; height: 100%; }
.banner-text strong { font-size: 1.15rem; line-height: 1.3; }
.banner-text small { margin-top: .35rem; opacity: .9; }
.slide-text { min-height: 300px; padding: 2rem 4.5rem; }
.slide-text strong { font-size: 2rem; }
.slide-text small { font-size: 1.05rem; }
@media (max-width: 575.98px) {
  .slide-text { min-height: 200px; padding: 1.5rem 3rem; }
  .slide-text strong { font-size: 1.35rem; }
  .slide-text small { font-size: .9rem; }
  .site-topbar .container { flex-wrap: nowrap !important; overflow-x: auto; justify-content: flex-start !important; }
  .topbar-link { white-space: nowrap; }
  .logo-text { font-size: 1.6rem; }
}
.banner-theme-brand { background: var(--brand); color: var(--brand-contrast); }
.banner-theme-dark { background: #2b2f36; color: #fff; }
.banner-theme-blue { background: #1c64d1; color: #fff; }
.banner-theme-green { background: #2b8a3e; color: #fff; }
.banner-theme-orange { background: #e8590c; color: #fff; }
.banner-theme-purple { background: #6741d9; color: #fff; }
.banner-theme-light { background: #f1f3f5; color: #222; }
.side-banner, .tile-banner { display: block; border: 1px solid #e3e3e3; overflow: hidden; }
.side-banner img, .tile-banner img { display: block; width: 100%; height: auto; }
.tile-banner .banner-text { min-height: 110px; }
.side-banner:hover, .tile-banner:hover, .wing-banner:hover, .slide-link:hover { text-decoration: none; filter: brightness(1.03); }

.product-tabs .nav-link { font-size: .85rem; padding: .4rem .8rem; color: #555; }
.product-tabs .nav-link.active { font-weight: 700; color: var(--brand); border-top: 2px solid var(--brand); }
.product-tabs .tab-content { border: 1px solid #dee2e6; border-top: 0; }
.product-intro { padding: 1rem; border-right: 1px solid #eee; }
.product-heading { font-size: 1.1rem; font-weight: 800; color: var(--brand); }
.product-img { max-width: 100%; height: auto; display: block; margin: .5rem 0; }
.product-table th { width: 22%; vertical-align: middle; text-align: center; color: var(--brand); font-weight: 800; background: #fafafa; }
.product-table td { font-size: .8rem; vertical-align: middle; }
.product-table tr.is-featured th, .product-table tr.is-featured td { background: var(--brand-light); }
.plan-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .6rem; }
.plan-specs span { color: #1557c0; font-weight: 600; }
.plan-price { width: 24%; text-align: right; white-space: nowrap; }
.plan-price strong { font-size: 1rem; color: #d6261b; }

.notice-box .nav-link { font-size: .85rem; padding: .35rem .7rem; color: #555; }
.notice-box .nav-link.active { font-weight: 700; color: #222; }
.notice-more { font-size: .7rem; border: 1px solid #ccc; padding: .05rem .35rem; color: #666; margin-left: .4rem; margin-bottom: .3rem; }
.notice-list { list-style: none; margin: 0; padding: .4rem 0; border: 1px solid #dee2e6; border-top: 0; }
.notice-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .28rem .7rem; font-size: .83rem; }
.notice-list a { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list li > span { color: #999; font-size: .75rem; white-space: nowrap; }

/* (r22) 메인 오른쪽 열: 슬라이드 높이에 맞춰 공지 상자가 늘어나고, 아래 빠른 메뉴 */
@media (min-width: 1200px) {
  .home-right { display: flex; flex-direction: column; }
  .home-right .notice-box { flex: 1 1 auto; display: flex; flex-direction: column; }
  .home-right .notice-box .tab-content { flex: 1 1 auto; display: flex; flex-direction: column; }
  .home-right .notice-box .tab-pane.active { flex: 1 1 auto; }
  .home-right .quick-menu { margin-bottom: 0 !important; }
}
.notice-list .notice-empty { display: block; color: #888; text-align: center; padding: 1.4rem .7rem; line-height: 1.7; font-size: .8rem; }
.notice-list .faq-q { display: inline-block; color: var(--brand); font-weight: 800; margin-right: .35rem; }
.quick-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #dee2e6; border-width: 1px 0 0 1px; background: #fff; }
.quick-menu a { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; color: #444; font-size: .8rem; white-space: nowrap; border: 1px solid #dee2e6; border-width: 0 1px 1px 0; }
.quick-menu a:hover { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.quick-menu svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--brand); }
@media (max-width: 575.98px) { .quick-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); } .quick-menu a { flex-direction: column; gap: .25rem; padding: .55rem .1rem; font-size: .7rem; white-space: normal; text-align: center; word-break: keep-all; } }

/* (r22) 상품 탭 왼쪽 칸 안 "바로가기" (탭과 같은 카테고리, 자세히 보기와 중복 없음) */
.product-quick { margin-top: .9rem; padding-top: .6rem; border-top: 1px dashed #ddd; }
.product-quick-title { font-size: .76rem; font-weight: 700; color: #555; margin-bottom: .2rem; }
.product-quick ul { list-style: none; margin: 0; padding: 0; font-size: .76rem; }
.product-quick li a { color: #555; display: block; padding: .08rem 0; }
.product-quick li a::before { content: "› "; color: #aaa; }
.product-quick li a:hover { color: var(--brand); }

/* 하단 */
.site-footer { border-top: 3px solid var(--brand); background: #f7f7f7; margin-top: 2rem; color: #555; }
.footer-links { border-bottom: 1px solid #e3e3e3; padding: .6rem 0; font-size: .85rem; }
.footer-links a { color: #333; font-weight: 600; }
.footer-company span { display: inline-block; margin-right: 1rem; }

/* 관리자: 배너·로고 미리보기 */
.banner-thumb { width: 140px; }
.banner-thumb img { max-width: 120px; max-height: 60px; border: 1px solid #ddd; }
.banner-chip { display: inline-block; font-size: .7rem; padding: .2rem .4rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-preview img, .logo-preview img { max-width: 100%; max-height: 180px; border: 1px solid #ddd; }

/* ===================================================================
   (r6) 공통 레이아웃: Header / Sidebar + Content / Footer
   데스크톱: 왼쪽 사이드바(회원 상자 위, 안내 아래) + 오른쪽 본문
   모바일: 회원 상자 → 본문 → 안내 순서 (CSS grid 영역, 마크업 1벌)
   =================================================================== */
.site-stage { position: relative; }
.site-body { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "member" "main" "info"; }
.site-side-member { grid-area: member; }
.site-main { grid-area: main; min-width: 0; }
.site-side-info { grid-area: info; }
@media (min-width: 992px) {
  .site-body { grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "member main" "info main"; align-items: start; }
  .site-side-member .side-box { margin-bottom: 0; }
}
.site-main .page-blocks .container { padding-left: 0; padding-right: 0; max-width: none; }
.site-main .block-hero .container { padding-left: 1.5rem; padding-right: 1.5rem; }
.side-member .side-mfa { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.side-join { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .6rem; }
.side-hint { font-size: .72rem; color: #888; margin: .5rem 0 0; }

/* 메인: 제품 바로가기 */
.section-title { font-size: 1rem; font-weight: 800; margin: 0 0 .6rem; color: #333; }
.product-link-card { border: 1px solid #e3e3e3; padding: .8rem 1rem; height: 100%; background: #fff; }
.product-link-card h3 { font-size: .95rem; font-weight: 800; margin-bottom: .4rem; }
.product-link-card h3 a { color: var(--brand); }
.product-link-card ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.product-link-card li a { color: #444; display: block; padding: .12rem 0; }
.product-link-card li a::before { content: "› "; color: #aaa; }

/* 하단: 법정 표시 */
.footer-legal { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin: 0; }
.footer-legal > div { display: flex; gap: .3rem; }
.footer-legal dt { font-weight: 600; color: #444; }
.footer-legal dd { margin: 0; }
.footer-legal dt::after { content: ":"; }
.footer-ftc { border: 1px solid #ccc; padding: 0 .4rem; color: #555; font-size: .75rem; }
.footer-policy { color: #333 !important; }
.footer-policy-strong { font-weight: 800 !important; color: var(--brand) !important; }
.footer-policy-dates { color: #888; font-size: .75rem; }
.footer-policy-dates span:not(:last-child)::after { content: " · "; }

/* 회원가입 · 약관 */
.join-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.agree-item { border: 1px solid #e3e3e3; border-radius: .375rem; padding: .6rem .8rem; margin-bottom: .5rem; }
.agree-body summary { cursor: pointer; color: #666; }
.policy-scroll { max-height: 220px; overflow-y: auto; border: 1px solid #eee; padding: .6rem; margin-top: .4rem; background: #fafafa; font-size: .85rem; }
/* (r54) 회원가입 약관 동의 */
.agree-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .5rem 0 .75rem; }
.agree-title { font-size: 1.15rem; font-weight: 700; margin: 0; padding-left: .6rem; border-left: 4px solid var(--brand); line-height: 1.2; }
.agree-all { margin: 0; }
.agree-all .form-check-label { font-weight: 600; }
.agree-box { list-style: none; margin: 0 0 1.5rem; padding: .4rem 1.25rem; background: #f7f7f7; border: 1px solid #e3e3e3; border-radius: .25rem; }
.agree-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; }
/* (r56) 세부 항목 (받을 방법 · 야간 수신) */
.agree-opts { flex: 0 0 calc(100% - 1.6rem); box-sizing: border-box; margin: -.2rem 0 0 1.6rem; padding: .55rem .8rem; background: #fff; border: 1px solid #e3e3e3; border-radius: .25rem; font-size: .9rem; }
.agree-opts.is-off { opacity: .55; }
.agree-opt-group { margin: 0 0 .35rem; padding: 0; border: 0; }
.agree-opt-group legend { float: none; width: auto; font-size: .85rem; font-weight: 600; margin: 0 0 .15rem; color: #495057; }
.agree-opt-help { margin-top: .1rem; font-size: .8rem; }
.agree-opts .agree-opt-group .form-check-inline { margin: 0 1.4rem 0 0; }
.agree-opts-form .agree-opts { margin: .25rem 0 .5rem; flex-basis: auto; }
@media (max-width: 575px) { .agree-opts { margin-left: 0; flex-basis: 100%; } }
.agree-row + .agree-row { border-top: 1px dashed #e3e3e3; }
.agree-row .form-check { margin: 0; }
.agree-req { color: var(--brand); }
.agree-opt { color: #6c757d; }
.agree-view { flex: none; background: #fff; border: 1px solid #ced4da; font-size: .85rem; font-weight: 600; padding: .3rem .8rem; }
.agree-view:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
@media (max-width: 575px) { .agree-box { padding: .3rem .8rem; } .agree-view { padding: .25rem .55rem; font-size: .8rem; } }
.policy-body h3 { font-size: 1rem; font-weight: 700; margin-top: 1.2rem; }
.policy-summary { background: #f8f9fa; padding: .5rem .75rem; border-left: 3px solid var(--brand); }
.policy-diff { font-size: .88rem; border: 1px solid #e3e3e3; border-radius: .375rem; overflow: hidden; }
.diff-line { padding: .25rem .6rem; border-bottom: 1px solid #f1f1f1; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-line:last-child { border-bottom: 0; }
.diff-mark { display: inline-block; width: 1.1rem; font-family: var(--bs-font-monospace); color: #999; }
.diff-add { background: #e6f4ea; }
.diff-del { background: #fdecea; text-decoration: line-through; text-decoration-color: rgba(176, 0, 32, .45); }
.diff-legend span { padding: .05rem .4rem; margin-right: .4rem; }

/* 관리자: 설정 변경 이력 */
.last-change { display: block; font-size: .72rem; color: #8a8a8a; margin-top: .15rem; }
.history-pre { white-space: pre-wrap; font-size: .75rem; margin: .3rem 0 0; max-width: 28rem; }
.settings-history summary { cursor: pointer; }

/* (r7) 관리자 회원 상세 */
.ua-cell { max-width: 22rem; }

/* (r8) 거래기록 보존 */
.snapshot-pre { white-space: pre-wrap; font-size: .78rem; background: #f8f9fa; border: 1px solid #e3e3e3; border-radius: .375rem; padding: .75rem; max-height: 70vh; overflow: auto; }
.archive-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* (r9) 주문 */
.order-product .order-specs dd { word-break: keep-all; }
.order-price-table td, .order-price-table th, .order-period-table td { vertical-align: middle; }
.order-review th { color: var(--bs-secondary-color); font-weight: 500; }
.product-period { min-width: 4.5rem; }
/* (r15) 서비스 내부 메모 */
.memo-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; background: #fffbea; border: 1px solid #f1e3a6; border-radius: .375rem; padding: .5rem .65rem; margin: 0; max-height: 18rem; overflow: auto; }
/* (r16) 로그인 유지 시간 입력 */
.session-input { max-width: 16rem; }
/* (r18) 서버랙 */
.rack-wrap { overflow-x: auto; }
.rack-svg { max-width: 100%; height: auto; }
.rack-wrap-sm .rack-svg { width: 100%; max-width: 22rem; }
.rack-svg a { cursor: pointer; text-decoration: none; }
.rack-svg text { text-decoration: none; }
.rack-svg .rack-plus { opacity: 0; transition: opacity .12s; pointer-events: none; }
.rack-svg .rack-add:hover .rack-empty, .rack-svg .rack-add:focus .rack-empty { fill: #2563eb; fill-opacity: .55; }
.rack-svg .rack-add:hover .rack-plus, .rack-svg .rack-add:focus .rack-plus { opacity: 1; fill: #fff; }
.rack-svg .rack-dev:hover rect, .rack-svg .rack-dev:focus rect { filter: brightness(1.18); }
.rack-svg .rack-dev-off rect { fill-opacity: .45; }
.rack-svg .rack-dev-hl rect { stroke: #facc15; stroke-width: 3; }
.rack-legend { display: inline-block; padding: .1rem .45rem; border-radius: .3rem; color: #fff; font-size: .75rem; line-height: 1.4; white-space: nowrap; }
.rk-switch { background: #2563eb; } .rk-firewall { background: #dc2626; } .rk-l4 { background: #7c3aed; } .rk-server { background: #047857; }
.rk-patch { background: #475569; } .rk-pdu { background: #b45309; } .rk-etc { background: #6b7280; }
.rack-card:hover { border-color: var(--bs-primary); }
progress.rack-usage { width: 100%; height: .6rem; accent-color: #2563eb; }
.port-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: .3rem; }
.port { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 2.6rem; border-radius: .35rem; font-size: .72rem; text-decoration: none; border: 1px solid #cbd5e1; }
.port-free { background: #f8fafc; color: #94a3b8; }
.port-used { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.port-used:hover { background: #1d4ed8; color: #fff; }
.port-n { font-weight: 700; }
.port-s { font-size: .62rem; opacity: .9; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; padding: 0 .15rem; }
.rack-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
/* (r19) 랙 반대 면 반깊이 장비 표시 */
.rack-svg .rack-ghost { pointer-events: none; }

/* (r25) 방문 진행 단계 (회원 문의 화면) */
.visit-steps { display: flex; gap: .25rem; padding: 0; list-style: none; counter-reset: vs; }
.visit-steps li { flex: 1 1 0; text-align: center; padding: .3rem .2rem; background: #f1f3f5; color: #888; border-radius: .25rem; counter-increment: vs; }
.visit-steps li::before { content: counter(vs) ". "; }
.visit-steps li.done { background: var(--brand-light, #e7f1ff); color: var(--brand, #0d6efd); font-weight: 600; }

/* (r25) 방문 달력 (관리자) */
.visit-cal-wrap { overflow-x: auto; }
.visit-cal { table-layout: fixed; min-width: 760px; font-size: .78rem; }
.visit-cal th { text-align: center; background: #f8f9fa; }
.visit-cal th.sun, .visit-cal .cal-day.sun { color: #c0392b; }
.visit-cal th.sat, .visit-cal .cal-day.sat { color: #2058b5; }
.visit-cal td { height: 6.5rem; vertical-align: top; padding: .25rem .3rem; }
.visit-cal td.out { background: #fafafa; color: #bbb; }
.visit-cal td.today { box-shadow: inset 0 0 0 2px #0d6efd; }
.visit-cal td.busy { background: #fff4f4; }
.visit-cal .cal-day { font-weight: 700; }
.visit-cal .cal-item { display: block; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .15rem; }
.visit-cal .cal-item.cancelled { text-decoration: line-through; color: #999; }

/* (r27) 관리자 사이드 메뉴 폴더 */
.admin-nav-folder > summary { list-style: none; cursor: pointer; user-select: none; }
.admin-nav-folder > summary::-webkit-details-marker { display: none; }
.admin-nav-folder > summary .folder-ico { display: inline-block; width: 1em; transition: transform .15s; color: #888; }
.admin-nav-folder[open] > summary .folder-ico { transform: rotate(90deg); }
.nav-edit-link { text-decoration: none; }

/* (r27) 메뉴 정리 화면 */
.nav-tree { list-style: none; margin: 0; padding: 0; }
.nav-tree .nav-node { margin-bottom: .35rem; }
.nav-tree .nav-row { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem; }
.nav-tree .nav-handle { cursor: grab; color: #adb5bd; font-size: 1.1rem; line-height: 1; }
.nav-tree .nav-label { flex: 1 1 auto; min-width: 0; }
.nav-tree .nav-fname { flex: 1 1 auto; min-width: 6rem; font-weight: 600; }
.nav-tree .nav-btns { display: flex; gap: .25rem; flex: 0 0 auto; }
.nav-tree .nav-move { width: auto; max-width: 11rem; }
.nav-tree .nav-folder > .nav-row { background: #f1f5ff; border-color: #c7d6fe; }
.nav-tree .nav-sub { margin: .35rem 0 .1rem 1.5rem; min-height: 2.2rem; padding: .2rem; border: 1px dashed transparent; border-radius: .375rem; }
.nav-tree .nav-folder.is-empty > .nav-sub { border-color: #c7d6fe; }
.nav-tree .nav-folder.is-empty > .nav-sub::before { content: "여기로 메뉴를 끌어 놓으세요"; display: block; color: #8a94a6; font-size: .8rem; padding: .35rem .5rem; }
.nav-tree .nav-folder.drop-into > .nav-row { box-shadow: 0 0 0 2px #0d6efd; }
.nav-tree .dragging { opacity: .45; }
@media (max-width: 575.98px) { .nav-tree .nav-row { flex-wrap: wrap; } .nav-tree .nav-btns { width: 100%; justify-content: flex-end; } }


/* (r28) 목록 아래 페이지 이동 */
.list-pager .pagination { margin: 0 auto; }
.list-pager .pager-info, .list-pager .pager-per { min-width: 9rem; }
.list-pager .pager-per { text-align: right; }
.list-pager .pager-per a, .list-pager .pager-per strong { margin: 0 .15rem; }
@media (max-width: 575.98px) { .list-pager { justify-content: center !important; } .list-pager .pager-info, .list-pager .pager-per { min-width: 0; width: 100%; text-align: center; } }
.small-pager .list-pager { justify-content: center !important; }
.small-pager .list-pager .pager-info, .small-pager .list-pager .pager-per { width: 100%; min-width: 0; text-align: center; }

/* (r29) 세션을 열 수 없을 때 (503) 안내 화면 */
#session-busy-card { max-width: 32rem; }

/* (r30) 회원 상자: 이름 = 마이페이지 링크 */
.side-member-name { color: inherit; text-decoration: none; }
.side-member-name:hover, .side-member-name:focus { text-decoration: underline; }

/* (r30) 증빙 서류 신청: 고른 종류의 입력만 보임 (JS 꺼짐이면 둘 다 보임) */
.receipt-fs { border: 1px solid var(--bs-border-color); border-radius: .375rem; padding: .75rem; margin-bottom: .75rem; }
.receipt-fs legend { float: none; width: auto; padding: 0 .25rem; margin-bottom: .25rem; font-size: .95rem; }
.receipt-fs.is-hidden { display: none; }
/* (r61) 스크립트 없이도(CSP 차단 · 꺼짐) 고른 종류만 보이게 — 라디오 상태로 CSS 가 직접 전환 */
#receipt-form:has(#rk-tax:checked) .receipt-fs[data-kind="tax_invoice"],
#receipt-form:has(#rk-cash:checked) .receipt-fs[data-kind="cash_receipt"] { display: block; }
#receipt-form:has(#rk-tax:checked) .receipt-fs[data-kind="cash_receipt"],
#receipt-form:has(#rk-cash:checked) .receipt-fs[data-kind="tax_invoice"] { display: none; }

/* (r31) 위지윅 툴바: 글꼴 · 크기 이름이 잘리지 않게 */
.tox .tox-tbtn--select .tox-tbtn__select-label { width: auto; min-width: 2.6em; max-width: 7em; }

/* (r32) 히어로 꾸미기: 배경 이미지 · 덮개 · 여백 · 버튼 줄 · 밝은 배경 글자 */
.block-hero { position: relative; overflow: hidden; }
.block-hero .hero-inner { position: relative; z-index: 1; }
.block-hero .hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.block-hero.hero-has-img::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.block-hero.hero-ov-dark::after { background: rgba(0, 0, 0, .45); }
.block-hero.hero-ov-light::after { background: rgba(255, 255, 255, .6); }
.block-hero.hero-ov-light { color: #212529; }
.block-hero.hero-image:not(.hero-has-img) { background: #212529; }
.block-hero .hero-text-dark { color: #212529; }
.block-hero .hero-pad-wide { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.block-hero .hero-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.block-hero.text-center .hero-btns { justify-content: center; }
.block-hero.text-end .hero-btns { justify-content: flex-end; }
.block-hero .lead:last-child { margin-bottom: 0 !important; }
/* 관리자 미리보기 */
#hero-preview { border-radius: .5rem; }
#hero-preview .container { max-width: 100%; }
.hero-img-thumb { max-height: 72px; border-radius: .25rem; }

/* (r33) 마이페이지 = 서비스 조회 / 관리 (aroot 색) */
.mp-locbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .375rem; padding: .45rem .8rem; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 1.1rem; }
.mp-loc-title { font-size: .95rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .45rem; }
.mp-loc-dot { width: .95rem; height: .95rem; border-radius: 50%; background: var(--brand); display: inline-block; position: relative; }
.mp-loc-dot::after { content: ""; position: absolute; left: .34rem; top: .25rem; border-left: .34rem solid #fff; border-top: .24rem solid transparent; border-bottom: .24rem solid transparent; }
.mp-crumb { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; font-size: .85rem; color: var(--bs-secondary-color); }
.mp-crumb li + li::before { content: ">"; margin: 0 .4rem; }
.mp-crumb a { color: inherit; text-decoration: none; }
.mp-crumb a:hover { color: var(--brand); text-decoration: underline; }
.mp-crumb [aria-current] { color: var(--bs-body-color); }
.mp-head { margin: 0 0 1rem .2rem; }
.mp-title { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.mp-sub { margin: .15rem 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--bs-secondary-color); padding-bottom: .4rem; border-bottom: 2px solid var(--bs-border-color); display: inline-block; }
.mp-tabs { border-bottom: 2px solid var(--brand); gap: .2rem; flex-wrap: nowrap; overflow-x: auto; }
.mp-tabs .nav-link { border: 1px solid var(--bs-border-color); border-bottom: 0; border-radius: .375rem .375rem 0 0; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); padding: .45rem 1.1rem; white-space: nowrap; font-size: .92rem; }
.mp-tabs .nav-link:hover { color: var(--brand); }
.mp-tabs .nav-link.active { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); font-weight: 700; }
.mp-tab-n { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .2rem; border-radius: 1em; font-size: .75em; background: rgba(0,0,0,.08); text-align: center; }
.mp-tabs .nav-link.active .mp-tab-n { background: rgba(255,255,255,.25); }
.mp-panel { border: 1px solid var(--bs-border-color); border-top: 0; border-radius: 0 0 .375rem .375rem; background: #fff; }
.mp-table { font-size: .875rem; }
.mp-table thead th { background: var(--brand-light); border-bottom: 1px solid var(--bs-border-color); font-weight: 600; white-space: nowrap; padding: .55rem .5rem; }
.mp-table thead th + th { border-left: 1px solid rgba(0,0,0,.06); }
.mp-sort { color: inherit; text-decoration: none; }
.mp-sort span { font-size: .7em; color: var(--bs-secondary-color); }
.mp-sort:hover, .mp-sort.is-on { color: var(--brand); }
.mp-sort.is-on span { color: var(--brand); }
.mp-table td { padding: .6rem .5rem; }
.mp-sel { width: 3.2rem; text-align: center; }
.mp-row.is-picked td { background: var(--brand-light); }
.mp-row { cursor: pointer; }
.mp-name { display: block; font-weight: 600; cursor: pointer; }
.mp-no { font-size: .75rem; color: var(--bs-secondary-color); text-decoration: none; font-family: var(--bs-font-monospace); }
.mp-no:hover { color: var(--brand); text-decoration: underline; }
.mp-domain { word-break: break-all; min-width: 8rem; }
.mp-until { font-size: .72rem; color: var(--bs-secondary-color); }
.mp-notes { font-size: .78rem; color: var(--bs-secondary-color); min-width: 6rem; }
.mp-empty { text-align: center; color: var(--bs-secondary-color); padding: 2.2rem .5rem !important; }
.mp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .8rem; border-top: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); }
.mp-btn, .mp-btn-main { border-radius: .3rem; font-weight: 600; }
.mp-btn { background: #fff; border: 1px solid var(--bs-border-color); color: var(--bs-body-color); }
.mp-btn::before { content: "▸"; color: var(--brand); margin-right: .3rem; font-size: .8em; }
.mp-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.mp-btn-main { background: var(--brand); border: 1px solid var(--brand-dark); color: var(--brand-contrast); }
.mp-btn-main:hover:not(:disabled) { background: var(--brand-dark); color: var(--brand-contrast); }
.mp-btn:disabled, .mp-btn-main:disabled { opacity: .45; }
.mp-hint { font-size: .8rem; color: var(--bs-secondary-color); }
.mp-info { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; padding: .7rem .8rem; border-top: 1px dashed var(--bs-border-color); font-size: .85rem; }
.mp-help { text-align: right; margin: .35rem .1rem 1.5rem; font-size: .85rem; }
.mp-help a { color: #e8590c; font-weight: 700; text-decoration: none; }
.mp-help a:hover { text-decoration: underline; }
.mp-board { margin-bottom: 1.5rem; }

/* (r37) 비밀번호 변경 안내 화면 (로그인 직후) */
.pwr { max-width: 40rem; margin: 1.5rem auto 3rem; text-align: center; word-break: keep-all; }
.pwr-form, .pwr-later, .pwr-note, .pwr .alert { max-width: 27rem; margin-left: auto; margin-right: auto; }
.pwr-title { font-size: clamp(1.6rem, 4.4vw, 2.6rem); font-weight: 400; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.pwr-lead { color: var(--bs-secondary-color); font-size: .95rem; line-height: 1.7; margin-bottom: .4rem; }
.pwr-em { color: #2b7bd6; }
.pwr-since { font-size: .82rem; color: var(--bs-secondary-color); margin-bottom: 1.6rem; }
.pwr .alert { text-align: left; }
.pwr-form { text-align: left; margin-top: 1.4rem; }
.pwr-row { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid var(--bs-border-color); padding: .55rem 0; }
.pwr-row:focus-within { border-bottom-color: var(--brand); }
.pwr-label { flex: 0 0 6.6rem; margin: 0; font-size: .95rem; display: flex; align-items: center; gap: .35rem; }
.pwr-field { flex: 1; display: flex; align-items: center; min-width: 0; }
.pwr-input { flex: 1; min-width: 0; border: 0; outline: 0; padding: .55rem .2rem; font-size: .95rem; background: transparent; }
.pwr-input::placeholder { color: #9aa0a6; }
.pwr-eye { border: 0; background: transparent; color: #8a8f96; padding: .2rem .25rem; line-height: 0; border-radius: .25rem; }
.pwr-eye:hover, .pwr-eye:focus-visible { color: var(--bs-body-color); }
.pwr-eye .pwr-eye-on { display: none; }
.pwr-eye[aria-pressed="true"] .pwr-eye-on { display: inline; }
.pwr-eye[aria-pressed="true"] .pwr-eye-off { display: none; }
.pwr-info { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 0; background: #555; color: #fff; font-size: .7rem; font-weight: 700; line-height: 1; padding: 0; font-style: italic; }
.pwr-rule { font-size: .8rem; color: var(--bs-secondary-color); margin: .5rem 0 .2rem 7.4rem; padding-left: 1rem; }
.pwr-rule.is-hidden { display: none; }
.pwr-match { min-height: 1.2rem; font-size: .8rem; margin: .5rem 0 1.6rem 7.4rem; }
.pwr-match.is-bad { color: var(--bs-danger); }
.pwr-match.is-ok { color: var(--bs-success); }
.pwr-btn { display: block; width: 100%; padding: .95rem; font-size: 1rem; border-radius: .2rem; }
.pwr-btn-main { border: 0; background: var(--brand); color: var(--brand-contrast); }
.pwr-btn-main:disabled { background: #dcdde1; color: #9a9da3; }
.pwr-btn-later { margin-top: .8rem; border: 1px solid #b9bcc2; background: #fff; color: var(--bs-body-color); }
.pwr-btn-later:hover { border-color: var(--bs-body-color); }
.pwr-note { font-size: .8rem; color: var(--bs-secondary-color); margin-top: 1.2rem; }
@media (max-width: 575.98px) {
  .pwr-row { flex-wrap: wrap; gap: 0; }
  .pwr-label { flex-basis: 100%; font-size: .85rem; color: var(--bs-secondary-color); }
  .pwr-field { flex: 1 1 100%; max-width: 100%; }
  .pwr-input { width: 100%; }
  .pwr-rule, .pwr-match { margin-left: 0; }
}

/* (r38) 첫 화면 H1 = 로고 (모양은 그대로) */
.site-logo-h1 { display: flex; align-items: center; margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; }

/* (r39) 메인 "자주 묻는 질문": 질문 소제목 + 2~3문장 답변 */
.qa-card { border: 1px solid #e3e3e3; padding: .8rem 1rem; height: 100%; background: #fff; }
.qa-card .qa-q { font-size: 1rem; font-weight: 700; margin: 0 0 .35rem; line-height: 1.45; word-break: keep-all; }
.qa-card .faq-q { display: inline-block; color: var(--brand); font-weight: 800; margin-right: .35rem; }
.qa-card .qa-a { margin: 0 0 .35rem; color: #444; line-height: 1.6; word-break: keep-all; }
/* (r39) 페이지 빌더 질문 · 답변 블록 */
.block-qa .qa-item { border-bottom: 1px solid #eee; padding: .9rem 0; }
.block-qa .qa-item:last-child { border-bottom: 0; }
.block-qa .qa-q { font-size: 1.05rem; font-weight: 700; margin: 0 0 .4rem; word-break: keep-all; }
.block-qa .qa-q::before { content: "Q. "; color: var(--brand); }
.block-qa .qa-a { margin: 0; line-height: 1.7; word-break: keep-all; }

/* (r40) 신청서: 상품 업그레이드 + 결제 금액 계산 */
.order-upg-title { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.order-upg-icon, .order-calc-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border: 1px solid #adb5bd; border-radius: 50%; font-size: .8rem; color: #495057; }
.order-upg { padding: .25rem 1rem; }
.order-upg-row { display: grid; grid-template-columns: minmax(8rem, 1fr) 9rem minmax(7rem, auto); gap: .5rem 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid #eee; }
.order-upg-row:last-child { border-bottom: 0; }
.order-upg-name { margin: 0; }
.order-upg-name .form-check-label { font-weight: 600; }
.order-upg-price { text-align: right; font-size: .9rem; white-space: nowrap; }
.order-upg-row select:disabled { background-color: #f1f3f5; color: #868e96; }
@media (max-width: 575.98px) {
  .order-upg-row { grid-template-columns: 1fr auto; }
  .order-upg-row select { grid-column: 1; }
  .order-upg-price { grid-column: 2; grid-row: 2; }
}
.order-calc { position: sticky; top: 1rem; }
.order-calc-title { display: flex; align-items: center; gap: .4rem; margin: .25rem 0 .6rem; }
.order-calc-box { background: #eef3f8; padding: 1.1rem 1.25rem 1.25rem; }
.order-calc-line { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid #d8e0ea; font-size: .9rem; }
.order-calc-line.is-sub { padding-left: .9rem; font-size: .82rem; color: #555; }
.order-calc-line.is-sub .order-calc-name::before { content: "└ "; color: #999; }
.order-calc-name { word-break: keep-all; }
.order-calc-name small { display: block; color: #6c757d; font-size: .75rem; }
.order-calc-amt { white-space: nowrap; }
.order-calc-sum { margin-top: .25rem; }
.order-calc-sum > div { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid #d8e0ea; font-size: .9rem; }
.order-calc-sum dt { font-weight: 400; }
.order-calc-sum dd { margin: 0; }
.order-calc-total { text-align: right; margin-top: 1.4rem; }
.order-calc-total .small { display: block; color: var(--brand); }
.order-calc-total strong { font-size: 1.6rem; color: var(--brand); }
@media (max-width: 991.98px) { .order-calc { position: static; } }

/* (r41) 관리자: 메일 양식 미리보기 */
.mail-preview-frame { display: block; width: 100%; height: 680px; border: 1px solid #dee2e6; background: #f1f3f5; }
/* (r42) 사이트 설정: 저장 버튼이 항상 보이게 (화면 아래 붙음) */
.settings-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: .75rem; padding: .75rem 0; margin: 0; background: rgba(255,255,255,.96); border-top: 1px solid #dee2e6; }
.order-promo-badge { display: inline-block; margin-left: .35rem; background: #fff0f0; color: #c92a2a; border: 1px solid #ffc9c9; font-weight: 600; white-space: normal; text-align: left; }
.opt-promo-row td { background: #fafafa; border-top: 0; padding-top: 0; }
.opt-promo-pct { width: 6.5rem; }
.opt-promo-label { width: 13rem; }
.opt-promo-date { width: 9.5rem; }
.opt-promo-min { width: auto; }

/* (r46) 페이지 빌더 HTML 직접 편집 블록: 코드 편집기 + 미리보기 */
.html-block-editor .CodeMirror { border: 1px solid var(--bs-border-color); border-radius: .375rem; font-size: 13px; line-height: 1.5; }
.html-block-editor .CodeMirror-focused { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15); }
.html-block-editor .CodeMirror-activeline-background { background: #f1f3f5; }
.html-block-editor .cm-src { height: 460px; }
.html-block-editor .cm-css { height: 280px; }
.html-preview-wrap { background: #e9ecef; border: 1px solid var(--bs-border-color); border-radius: .375rem; padding: 8px; overflow: auto; }
.html-preview-frame { display: block; width: 100%; height: 760px; margin: 0 auto; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); transition: width .2s; }
.html-preview-frame.is-tablet { width: 768px; max-width: none; }
.html-preview-frame.is-mobile { width: 375px; max-width: none; }
.code-area { font-size: 13px; }

/* (r50) 견적서 — 화면 · A4 인쇄 공용 */
.quote-doc { --qd-line: #343a40; --qd-soft: #f1f3f5; --qd-accent: #1d4e89; background: #fff; color: #212529; max-width: 210mm; margin: 0 auto; padding: 14mm 12mm;
  border: 1px solid var(--bs-border-color); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); font-size: 13px; line-height: 1.5; }
.qd-head { text-align: center; border-bottom: 3px double var(--qd-line); padding-bottom: 6px; margin-bottom: 10px; }
.qd-title { font-size: 30px; font-weight: 800; letter-spacing: .35em; margin: 0; padding-left: .35em; }
.qd-sub { font-size: 11px; letter-spacing: .4em; color: #6c757d; }
.qd-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end; font-size: 12px; margin-bottom: 10px; }
.qd-meta span { color: #6c757d; margin-right: 4px; }
.qd-parties { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; margin-bottom: 12px; }
.qd-to { display: flex; flex-direction: column; justify-content: space-between; }
.qd-to-company { font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--qd-line); padding-bottom: 4px; }
.qd-honor { font-size: 14px; font-weight: 400; margin-left: 4px; }
.qd-to-info { margin: 6px 0; font-size: 12px; }
.qd-to-info div { display: flex; gap: 8px; }
.qd-to-info dt { width: 48px; color: #6c757d; font-weight: 400; }
.qd-to-info dd { margin: 0; }
.qd-lead { margin: 0; font-size: 12px; }
.qd-supplier { width: 100%; border-collapse: collapse; font-size: 12px; }
.qd-supplier th, .qd-supplier td { border: 1px solid var(--qd-line); padding: 3px 6px; vertical-align: middle; }
.qd-supplier th { background: var(--qd-soft); font-weight: 600; white-space: nowrap; width: 1%; text-align: center; }
.qd-supplier .qd-vert { line-height: 1.9; }
.qd-seal-cell { position: relative; padding-right: 44px !important; white-space: nowrap; }
.qd-seal { position: absolute; right: 4px; top: 50%; width: 40px; height: 40px; object-fit: contain; transform: translateY(-50%); opacity: .9; }
.qd-seal-text { color: #868e96; }
.qd-total { display: flex; align-items: stretch; border: 2px solid var(--qd-line); margin-bottom: 8px; }
.qd-total-label { background: var(--qd-soft); padding: 8px 12px; font-weight: 700; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--qd-line); white-space: nowrap; }
.qd-total-label small { font-weight: 400; font-size: 11px; color: #6c757d; }
.qd-total-value { padding: 8px 12px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.qd-total-num { font-weight: 700; color: var(--qd-accent); }
.qd-subject { font-size: 13px; margin-bottom: 6px; }
.qd-subject span { display: inline-block; background: var(--qd-soft); border: 1px solid var(--qd-line); padding: 1px 8px; margin-right: 6px; font-weight: 600; }
.qd-items { width: 100%; border-collapse: collapse; font-size: 12px; }
.qd-items th, .qd-items td { border: 1px solid var(--qd-line); padding: 4px 6px; }
.qd-items thead th { background: var(--qd-accent); color: #fff; text-align: center; font-weight: 600; }
.qd-items tfoot th { text-align: right; background: var(--qd-soft); font-weight: 600; }
.qd-items .qd-grand th, .qd-items .qd-grand td { font-size: 14px; font-weight: 800; background: #e7f1ff; }
.qd-c-no { width: 32px; text-align: center; }
.qd-c-num { text-align: right; white-space: nowrap; }
.qd-c-mid { text-align: center; white-space: nowrap; }
.qd-spec { color: #495057; font-size: 11px; }
.qd-name { font-weight: 600; min-width: 8.5em; }
.qd-unit { font-size: 11px; color: #6c757d; text-align: right; margin: 3px 0 10px; }
.qd-notes h2, .qd-bank h2 { font-size: 13px; font-weight: 700; border-left: 4px solid var(--qd-accent); padding-left: 6px; margin: 10px 0 4px; }
.qd-notes ol { margin: 0; padding-left: 20px; font-size: 12px; }
.qd-bank p { margin: 0; font-size: 12px; }
.qd-foot { margin-top: 14px; padding-top: 6px; border-top: 1px solid #ced4da; text-align: center; font-size: 11px; color: #6c757d; }
.quote-actions { max-width: 210mm; margin: 0 auto 12px; }
.seal-preview .seal-img { width: 80px; height: 80px; object-fit: contain; border: 1px dashed #ced4da; }
@media (max-width: 767px) {
  .quote-doc { padding: 16px 12px; font-size: 12px; }
  .qd-parties { grid-template-columns: 1fr; }
  .qd-items { display: block; overflow-x: auto; }
}
@media print {
  @page { size: A4; margin: 10mm; }
  body * { visibility: hidden !important; }
  .quote-doc, .quote-doc * { visibility: visible !important; }
  .quote-doc { position: absolute; left: 0; top: 0; width: 100%; max-width: none; border: 0; box-shadow: none; padding: 0; }
  .qd-items thead th { background: #1d4e89 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qd-supplier th, .qd-total-label, .qd-items tfoot th, .qd-subject span, .qd-grand th, .qd-grand td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
#quote-rows .qr-num { width: 70px; }
#quote-rows .qr-money { width: 120px; text-align: right; }
#quote-rows td { min-width: 70px; }
.qd-discount { color: #c92a2a; }
.og-preview .og-img { width: 300px; max-width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; border: 1px solid #dee2e6; border-radius: .25rem; }

/* (r59) 관리자: 스크립트가 CSP 등으로 막혔을 때만 3초 뒤 보이는 안내 (app.js 가 실행되면 요소가 지워짐) */
.csp-alarm { visibility: hidden; position: fixed; left: 0; right: 0; top: 0; z-index: 2000; padding: .6rem 1rem; background: #fff3cd; color: #664d03; border-bottom: 2px solid #ffc107; font-size: .9rem;
  animation: csp-alarm-show 0s linear 3s forwards; }
.csp-alarm code { color: #664d03; background: #fff8e1; padding: 0 .2rem; }
@keyframes csp-alarm-show { to { visibility: visible; } }
