/* EnviroView 마켓 디자인 시스템 v2
   브랜드: 지구와 나뭇잎 심볼, 초록(Enviro)과 파랑(View). 현대적인 쇼핑몰 구성: 흰 바탕, 큰 상품 사진,
   둥근 모서리, 고정 머리말, 배너, 아이콘 카테고리, 모바일 하단 탭바. 후기·별점·할인율처럼 실제 데이터가 없는 요소는 쓰지 않는다. */

@font-face {
  font-family: "Pretendard Variable";
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920; font-style: normal; font-display: swap;
}

:root {
  --bg: #ffffff;
  --paper: #f5f8f9;
  --surface: #ffffff;
  --ink: #101c21;
  --ink-2: #44555e;
  --mute: #76878f;
  --line: #e4eaed;
  --line-strong: #cbd5da;

  --green: #075b32;
  --green-hover: #05492a;
  --green-50: #eef7f1;
  --green-100: #d9eee0;
  --blue: #075d9c;
  --blue-hover: #054b7e;
  --blue-50: #eef5fb;
  --blue-100: #d8e9f6;

  --signal: #b3740a;
  --signal-soft: #fdf1d6;
  --crit: #b3261e;
  --crit-soft: #fbe7e5;
  --ok: #1f7a43;
  --ok-soft: #e1f3e8;

  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "D2Coding", "SF Mono", ui-monospace, Consolas, "Courier New", monospace;

  --r-sm: 8px; --r: 12px; --r-lg: 20px;
  --sh-1: 0 1px 2px rgba(16, 28, 33, .06);
  --sh-2: 0 6px 24px rgba(16, 28, 33, .08);
  --sh-3: 0 14px 44px rgba(16, 28, 33, .14);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15.5px/1.7 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.005em;
  min-height: 100vh; display: flex; flex-direction: column;
  word-break: keep-all; overflow-wrap: break-word;
}
main { flex: 1; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.025em; }
h1 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 750; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 .9em; }
:focus-visible { outline: 3px solid #5aa0d4; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); font-variant-numeric: normal; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.m0 { margin: 0; }
.mt { margin-top: 16px; }
.pre { white-space: pre-line; }
.gap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }

/* ───────── 운영 상태 띠 ───────── */
.notice { background: var(--ink); color: #dbe6ea; font-size: 12.5px; line-height: 1.5; }
.notice .container { display: flex; flex-wrap: wrap; gap: 2px 18px; justify-content: center; padding-top: 6px; padding-bottom: 6px; }
.notice b { color: #fff; font-weight: 650; }
.notice .tag { background: #f1b83c; color: #3d2900; font-weight: 700; padding: 0 7px; border-radius: 4px; margin-right: 6px; }

/* ───────── 머리말 ───────── */
.util { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.util .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.util a, .util button { color: var(--ink-2); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.util a:hover, .util button:hover { color: var(--green); }
.util nav { display: flex; gap: 16px; align-items: center; }
.util form { display: inline; }
.util .esc { display: inline-flex; gap: 6px; align-items: center; color: var(--green); font-weight: 600; }

.site-header { background: var(--surface); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.header-main { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: 44px; }
.brand .word { font-size: 25px; font-weight: 850; letter-spacing: -.045em; line-height: 1; }
.brand .word .e { color: #075b32; }
.brand .word .v { color: #075d9c; }
.brand .word .m { color: var(--ink); font-weight: 650; font-size: 20px; margin-left: 6px; letter-spacing: -.02em; }
.search { flex: 1; display: flex; max-width: 620px; position: relative; }
.search input { flex: 1; min-width: 0; height: 48px; border: 2px solid var(--green); border-radius: 999px; padding: 0 56px 0 22px; font: inherit; font-size: 15.5px; background: #fff; }
.search input::placeholder { color: var(--mute); }
.search input:focus { outline: 3px solid #bfe3cf; outline-offset: 0; }
.search button { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--green); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--green-hover); }
.search button .ico { width: 20px; height: 20px; }
.hdr-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hdr-actions a { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; color: var(--ink-2); text-decoration: none; padding: 4px 12px; border-radius: var(--r-sm); position: relative; line-height: 1.3; }
.hdr-actions a:hover { background: var(--paper); color: var(--green); }
.hdr-actions .ico { width: 26px; height: 26px; }
.cart-count { position: absolute; top: -2px; right: 6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.cat-bar { border-top: 1px solid var(--line); background: var(--surface); }
.cat-bar .container { display: flex; align-items: stretch; gap: 4px; }
.allcats { position: relative; }
.allcats summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 0; font-weight: 700; color: var(--ink); }
.allcats summary::-webkit-details-marker { display: none; }
.allcats[open] summary, .allcats summary:hover { color: var(--green); }
.allcats .panel-drop { position: absolute; top: 100%; left: 0; z-index: 40; width: 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 8px; }
.allcats .panel-drop a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.allcats .panel-drop a:hover { background: var(--green-50); }
.allcats .panel-drop .ci { width: 38px; height: 38px; border-radius: 10px; background: var(--green-50); color: var(--green); display: grid; place-items: center; flex: none; }
.allcats .panel-drop small { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.4; }
.cat-bar ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.cat-bar li { flex: none; }
.cat-bar ul a { display: flex; align-items: center; gap: 7px; padding: 12px 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; border-bottom: 3px solid transparent; }
.cat-bar ul a:hover { color: var(--green); }
.cat-bar ul a.on { color: var(--green); border-bottom-color: var(--green); }
.cat-bar ul a .ico { width: 19px; height: 19px; }

/* ───────── 버튼, 알림, 배지 ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 22px; border-radius: 10px; border: 1px solid var(--green); background: var(--green); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.3; transition: background .15s, box-shadow .15s, transform .1s; }
.btn:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; box-shadow: var(--sh-2); }
.btn:active { transform: translateY(1px); }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--paper); border-color: var(--ink-2); color: var(--ink); box-shadow: none; }
.btn.danger { background: #fff; color: var(--crit); border-color: #e0aaa6; }
.btn.danger:hover { background: var(--crit-soft); border-color: var(--crit); color: var(--crit); box-shadow: none; }
.btn.light { background: #fff; color: var(--green); border-color: #fff; }
.btn.light:hover { background: var(--green-50); color: var(--green-hover); }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }

.flash { padding: 13px 18px; border-radius: var(--r); margin: 16px 0; border: 1px solid; font-size: 14.5px; }
.flash.ok { background: var(--ok-soft); border-color: #b4dcc3; color: #17562f; }
.flash.err { background: var(--crit-soft); border-color: #eab6b2; color: #7d1f1a; }
.flash.info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-hover); }
.flash.warn { background: var(--signal-soft); border-color: #efd699; color: #6b4503; }

.badge { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--blue-50); color: var(--blue); line-height: 1.6; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--signal-soft); color: #7a4f06; }
.badge.crit { background: var(--crit-soft); color: var(--crit); }
.badge.mute { background: #e9eff2; color: var(--ink-2); }
.badge.dark { background: var(--ink); color: #e9f3f2; }
.badge.green { background: var(--green-50); color: var(--green); }

/* ───────── 홈: 배너 ───────── */
.banner-wrap { padding-top: 20px; }
.banners { position: relative; }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; border-radius: var(--r-lg); }
.banner-track::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: start; border-radius: var(--r-lg); min-height: 330px; padding: 44px 52px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center; position: relative; overflow: hidden; color: #fff; }
.banner h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 850; line-height: 1.25; margin-bottom: 12px; letter-spacing: -.035em; }
.banner p { font-size: 16.5px; opacity: .92; max-width: 30em; margin-bottom: 22px; }
.banner .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; background: rgba(255,255,255,.18); padding: 3px 12px; border-radius: 999px; margin-bottom: 14px; }
.banner .art { display: grid; place-items: center; position: relative; }
/* 배너: 사진(있으면) 위에 왼쪽만 어둡게 눌러 글자를 읽기 쉽게 한다 */
.banner { background-color: #0d2a1d; }
.banner .banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: 0; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.banner > .banner-copy { position: relative; z-index: 2; }
.banner.t-green { background-image: linear-gradient(120deg, #055a30 0%, #0a7a56 55%, #075d9c 100%); }
.banner.t-blue { background-image: linear-gradient(120deg, #07457a 0%, #075d9c 55%, #1b86c7 100%); }
.banner.t-dark { background-image: linear-gradient(120deg, #063b2a 0%, #0a5d52 55%, #075d9c 100%); }
.banner.has-img.t-green::before { background: linear-gradient(90deg, rgba(5, 40, 24, .92) 0%, rgba(5, 40, 24, .78) 38%, rgba(5, 40, 24, .15) 72%, rgba(5, 40, 24, 0) 100%); }
.banner.has-img.t-blue::before { background: linear-gradient(90deg, rgba(6, 42, 74, .93) 0%, rgba(6, 42, 74, .78) 38%, rgba(6, 42, 74, .12) 72%, rgba(6, 42, 74, 0) 100%); }
.banner.has-img.t-dark::before { background: linear-gradient(90deg, rgba(5, 50, 36, .93) 0%, rgba(5, 50, 36, .78) 38%, rgba(5, 50, 36, .1) 72%, rgba(5, 50, 36, 0) 100%); }
.banner h2, .banner p { text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.banner-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.banner-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .2s, background .2s; }
.banner-dots button[aria-current="true"] { width: 26px; border-radius: 6px; background: #fff; }
.banner-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--sh-2); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.banner-nav.prev { left: 14px; } .banner-nav.next { right: 14px; }
.banner-nav .ico { width: 20px; height: 20px; }
.banner-nav.prev .ico { transform: rotate(180deg); }

/* 카테고리 아이콘 레일 */
.cat-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 26px 0 6px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); text-align: center; padding: 8px 4px; border-radius: var(--r); }
.cat-item .circle { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); transition: transform .2s, background .2s, box-shadow .2s; }
.cat-item:nth-child(even) .circle { background: var(--blue-50); color: var(--blue); }
.cat-item .circle .ico { width: 34px; height: 34px; }
.cat-item:hover .circle { transform: translateY(-3px); box-shadow: var(--sh-2); }
.cat-item b { font-size: 14.5px; font-weight: 700; }
.cat-item small { color: var(--mute); font-size: 12.5px; margin-top: -6px; }

/* 혜택 줄 */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--paper); border-radius: var(--r-lg); margin-top: 28px; }
.perk { display: flex; gap: 14px; padding: 22px 24px; align-items: flex-start; border-left: 1px solid var(--line); }
.perk:first-child { border-left: 0; }
.perk .pi { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--green); display: grid; place-items: center; flex: none; box-shadow: var(--sh-1); }
.perk:nth-child(even) .pi { color: var(--blue); }
.perk b { display: block; font-size: 15px; line-height: 1.4; margin-bottom: 2px; }
.perk span { font-size: 13px; color: var(--ink-2); line-height: 1.55; display: block; }

/* 섹션 */
.section { padding-top: 46px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.section-head p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.section-head .more { font-size: 14px; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.section-head .more .ico { width: 16px; height: 16px; }
.page { padding-top: 28px; padding-bottom: 60px; }
.page-head { margin-bottom: 22px; }
.page-head p { color: var(--mute); margin: 0; }
.crumbs { font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }

/* 입점 안내 띠 */
.seller-cta { margin-top: 56px; border-radius: var(--r-lg); background: linear-gradient(115deg, #043d22 0%, #075b32 50%, #075d9c 100%); color: #fff; padding: 42px 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.seller-cta::after { content: ""; position: absolute; right: -50px; top: -60px; width: 300px; height: 300px; background: url("/img/symbol-512.png") center/contain no-repeat; opacity: .13; }
.seller-cta h2 { font-size: 28px; font-weight: 850; margin-bottom: 6px; }
.seller-cta p { margin: 0; opacity: .9; max-width: 38em; }
.seller-cta .btn { position: relative; z-index: 1; }

/* ───────── 상품 카드 ───────── */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 26px 20px; }
.pcard { display: flex; flex-direction: column; }
.pcard .media { position: relative; }
.pcard .cover { display: block; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--green-50); position: relative; }
.pcard .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pcard:hover .cover img { transform: scale(1.045); }
.pcard .chips { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 1; }
.pcard .chips .badge { background: rgba(255,255,255,.94); box-shadow: var(--sh-1); }
.pcard .chips .badge.new { background: var(--blue); color: #fff; }
.pcard .quick { position: absolute; right: 10px; bottom: 10px; z-index: 2; margin: 0; }
.pcard .quick button, .pcard .quick a { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--green); box-shadow: var(--sh-2); cursor: pointer; display: grid; place-items: center; text-decoration: none; transition: background .15s, color .15s, transform .15s; }
.pcard .quick button:hover, .pcard .quick a:hover { background: var(--green); color: #fff; transform: scale(1.06); }
.pcard .quick .ico { width: 21px; height: 21px; }
.pcard .body { padding: 13px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard .seller { font-size: 12.5px; color: var(--mute); font-weight: 550; }
.pcard h3 { font-size: 15.5px; margin: 0; line-height: 1.45; font-weight: 600; letter-spacing: -.015em; }
.pcard h3 a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard h3 a:hover { color: var(--green); }
.pcard .sum { font-size: 13px; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .price-row { margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.price small { font-weight: 600; font-size: 14px; margin-left: 1px; }
.pcard .ship { font-size: 12.5px; color: var(--green); font-weight: 600; margin-top: 1px; display: flex; align-items: center; gap: 4px; }
.pcard .ship .ico { width: 15px; height: 15px; }

/* ───────── 목록 ───────── */
.list-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.filter { position: sticky; top: 150px; }
.filter h3 { font-size: 15px; margin-bottom: 8px; }
.filter ul { list-style: none; margin: 0 0 22px; padding: 0; }
.filter li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 14.5px; }
.filter li a:hover { background: var(--paper); color: var(--ink); }
.filter li a.on { background: var(--green-50); color: var(--green); font-weight: 700; }
.filter li a .n { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.filter li a .l { display: flex; align-items: center; gap: 8px; }
.filter li a .ico { width: 18px; height: 18px; }
.filter .box { background: var(--paper); border-radius: var(--r); padding: 14px 16px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.filter .box b { color: var(--green); display: block; margin-bottom: 4px; }
.list-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.list-top select { font: inherit; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 7px 15px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--ink-2); background: #fff; white-space: nowrap; font-weight: 550; }
.chip:hover { background: var(--paper); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.m-chips { display: none; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; text-align: center; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: #fff; color: var(--ink-2); font-weight: 550; }
.pagination a:hover { background: var(--paper); }
.pagination .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 64px 20px; text-align: center; color: var(--mute); background: var(--paper); border-radius: var(--r-lg); }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* ───────── 상품 상세 ───────── */
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
.gallery { border-radius: var(--r-lg); overflow: hidden; background: var(--green-50); aspect-ratio: 1 / 1; position: relative; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .chips { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; }
.gallery .chips .badge { background: rgba(255,255,255,.95); box-shadow: var(--sh-1); font-size: 12.5px; padding: 3px 11px; }
.buy-box { position: sticky; top: 150px; }
.buy-box .seller-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.buy-box .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--green-100); color: var(--green); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.buy-box h1 { font-size: clamp(23px, 2.8vw, 30px); margin-bottom: 8px; font-weight: 800; }
.buy-box .lead { color: var(--ink-2); margin-bottom: 4px; }
.buy-price { font-size: 36px; font-weight: 850; letter-spacing: -.04em; margin: 18px 0 2px; padding-top: 18px; border-top: 1px solid var(--line); }
.buy-price small { font-size: 18px; font-weight: 650; }
.info-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.info-list li { display: flex; gap: 12px; padding: 13px 16px; font-size: 14px; line-height: 1.55; border-top: 1px solid var(--line); align-items: flex-start; }
.info-list li:first-child { border-top: 0; }
.info-list .ii { color: var(--green); flex: none; margin-top: 1px; }
.info-list li:nth-child(even) .ii { color: var(--blue); }
.info-list b { display: block; font-size: 14px; }
.info-list span { color: var(--ink-2); font-size: 13px; }
.escrow-note { display: flex; gap: 10px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--r); padding: 13px 16px; font-size: 13.5px; line-height: 1.65; margin: 16px 0; color: #0b4a2a; }
.escrow-note svg { flex: none; width: 21px; height: 21px; margin-top: 2px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; overflow: hidden; }
.qty input { width: 54px; text-align: center; border: 0; font: inherit; font-weight: 650; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty button { width: 40px; border: 0; background: var(--paper); font-size: 19px; cursor: pointer; color: var(--ink-2); }
.qty button:hover { background: var(--green-100); color: var(--green); }
.buy-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.buy-actions .btn { flex: 1; min-width: 140px; }
.tabs-nav { position: sticky; top: 112px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); margin-top: 48px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs-nav a { padding: 15px 22px; font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs-nav a:hover { color: var(--green); border-bottom-color: var(--green); }
.tab-sec { padding-top: 34px; scroll-margin-top: 170px; }
.tab-sec h2 { font-size: 21px; margin-bottom: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin-bottom: 10px; }
.m-buybar { display: none; }

/* 사양표 */
.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec th, .spec td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 32%; color: var(--ink-2); font-weight: 600; background: var(--paper); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line); }

/* 표 */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.t.compact { min-width: 0; }
table.t th { text-align: left; padding: 11px 14px; background: var(--paper); color: var(--ink-2); font-size: 12.5px; font-weight: 650; letter-spacing: .02em; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; }
table.t td .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* 폼 */
.form { display: grid; gap: 16px; max-width: 640px; }
.form.wide { max-width: 820px; }
.field label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--mute); margin-top: 5px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=number], .field input[type=file], .field select, .field textarea, .inline-input {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-input:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 3px #cbe8d6; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .error, .error-text { color: var(--crit); font-size: 13px; margin-top: 5px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 5px; accent-color: var(--green); width: 16px; height: 16px; }
.inline-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-input { width: auto; min-width: 130px; padding: 8px 12px; font-size: 13.5px; }

/* 로그인·가입 */
.auth-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: 980px; margin: 8px auto 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); background: #fff; }
.auth-brand { background: linear-gradient(150deg, #043d22 0%, #075b32 48%, #075d9c 100%); color: #fff; padding: 44px 40px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.auth-brand::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 320px; height: 320px; background: url("/img/symbol-512.png") center/contain no-repeat; opacity: .16; }
.auth-brand h2 { font-size: 26px; font-weight: 850; margin-bottom: 18px; line-height: 1.3; }
.auth-brand ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.auth-brand li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; opacity: .95; }
.auth-brand li .ico { margin-top: 2px; width: 22px; height: 22px; }
.auth-main { padding: 44px 44px 36px; }
.auth-main h1 { font-size: 26px; margin-bottom: 20px; }
.auth { max-width: 460px; margin: 0 auto; }
.auth .panel { padding: 28px; }
.alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--mute); }

/* 주문 요약, 장바구니 */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.summary { position: sticky; top: 150px; box-shadow: var(--sh-2); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.sum-row.total { border-top: 1px solid var(--line-strong); margin-top: 10px; padding-top: 16px; font-weight: 800; font-size: 20px; }
.sum-row .mono { font-weight: 650; font-family: var(--font); }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; overflow: hidden; }
.group-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px 18px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; background: var(--green-50); }
.line .name { font-weight: 650; line-height: 1.4; }
.line .name a { color: var(--ink); text-decoration: none; }
.line .name a:hover { color: var(--green); }
.line .meta { font-size: 13px; color: var(--mute); }
.line .amount { text-align: right; font-weight: 750; }
.line .ctrl { display: flex; gap: 8px; align-items: center; margin-top: 9px; flex-wrap: wrap; }
.group-foot { padding: 12px 18px; font-size: 13.5px; color: var(--ink-2); background: var(--paper); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 진행 상태, 이력 */
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 4px 0 8px; overflow-x: auto; }
.steps li { flex: 1; min-width: 92px; text-align: center; font-size: 12.5px; color: var(--mute); position: relative; padding-top: 24px; }
.steps li::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 3px; background: var(--line); }
.steps li::after { content: ""; position: absolute; top: 2px; left: 50%; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--line-strong); }
.steps li.done { color: var(--green); font-weight: 650; }
.steps li.done::before { background: var(--green); }
.steps li.done::after { background: var(--green); border-color: var(--green); }
.steps li.now::after { border-color: var(--green); background: #fff; box-shadow: 0 0 0 5px var(--green-100); }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.timeline li { padding: 8px 0 8px 20px; border-left: 2px solid var(--line); position: relative; margin-left: 4px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.timeline time { font-size: 12px; color: var(--mute); display: block; }

/* 대시보드 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat .k { font-size: 13px; color: var(--ink-2); }
.stat .v { font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.stat.alert { border-color: #e6bb63; background: var(--signal-soft); }
.stat.alert .v { color: #7a4f06; }
a.stat { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--green); box-shadow: var(--sh-2); }
.side-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.side-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 150px; }
.side-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.side-nav a:hover { background: var(--paper); color: var(--ink); }
.side-nav a.on { background: var(--green-50); color: var(--green); font-weight: 700; }
.side-nav .grp { font-size: 12px; color: var(--mute); letter-spacing: .08em; padding: 14px 14px 6px; }

/* 문의 */
.qa { border-top: 1px solid var(--line); padding: 16px 0; }
.qa .q { font-weight: 550; }
.qa .a { margin-top: 10px; padding: 12px 16px; background: var(--green-50); border-radius: 10px; font-size: 14px; }
.qa .who { font-size: 12.5px; color: var(--mute); }

/* ───────── 꼬리말 ───────── */
.site-footer { background: #0f1c22; color: #aebfc7; margin-top: 72px; font-size: 13.5px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 44px; padding-bottom: 32px; }
.site-footer a { color: #d6e4ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; letter-spacing: 0; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand .word .e { color: #5bd08f; }
.site-footer .brand .word .v { color: #62b5ec; }
.site-footer .brand .word .m { color: #fff; }
.site-footer dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.site-footer dt { color: #7f98a3; }
.site-footer dd { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.broker { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 28px; font-size: 12.5px; line-height: 1.75; color: #86a0ab; }

/* 약관 문서 */
.doc { max-width: 780px; }
.doc h2 { font-size: 19px; margin-top: 1.9em; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }

/* 시험 결제 */
.methods { display: grid; gap: 10px; }
.method { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: #fff; cursor: pointer; }
.method:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.method input { accent-color: var(--green); }

/* ───────── 모바일 하단 탭바 ───────── */
.tabbar { display: none; }

/* ───────── 반응형 ───────── */
@media (max-width: 1000px) {
  .banner { grid-template-columns: minmax(0, 1fr); padding: 34px 28px 54px; min-height: 0; }
  .banner .art { display: none; }
  .banner.has-img::before { background: linear-gradient(180deg, rgba(5, 30, 40, .86), rgba(5, 30, 40, .68)); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .list-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filter { display: none; }
  .m-chips { display: flex; margin-bottom: 14px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .detail, .cols, .side-layout, .footer-top, .auth-split { grid-template-columns: minmax(0, 1fr); }
  .detail { gap: 24px; }
  .buy-box, .summary, .side-nav { position: static; }
  .tabs-nav { top: 0; }
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-nav a { border: 1px solid var(--line-strong); background: #fff; }
  .side-nav .grp { display: none; }
  .auth-brand { padding: 28px 26px; }
  .auth-brand h2 { font-size: 21px; }
  .seller-cta { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
  .site-header { position: static; }
  .header-main { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hdr-actions a span.t { display: none; }
  .hdr-actions a { padding: 4px 8px; }
  .util nav .hide-m { display: none; }
  .allcats { display: none; }
  .cat-bar .container { padding-left: 0; padding-right: 0; }
  .cat-bar ul { padding: 0 var(--gutter); }
}
@media (max-width: 700px) {
  body { padding-bottom: 66px; }
  .notice .container { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; gap: 22px; }
  .notice span { white-space: nowrap; }
  .brand img { width: 38px; height: 38px; }
  .brand .word { font-size: 22px; }
  .brand .word .m { font-size: 17px; }
  .cat-rail { grid-template-columns: repeat(5, minmax(72px, 1fr)); overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .cat-item .circle { width: 62px; height: 62px; }
  .cat-item .circle .ico { width: 28px; height: 28px; }
  .banner h2 { font-size: 25px; }
  .banner p { font-size: 14.5px; }
  .banner-nav { display: none; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perk { border-left: 0; border-top: 1px solid var(--line); }
  .perk:first-child { border-top: 0; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .price { font-size: 17px; }
  .pcard h3 { font-size: 14.5px; }
  .pcard .quick button, .pcard .quick a { width: 38px; height: 38px; }
  .field.row { grid-template-columns: 1fr; }
  .line { grid-template-columns: 60px minmax(0, 1fr); }
  .line img { width: 60px; height: 60px; }
  .line .amount { grid-column: 2; text-align: left; }
  .section { padding-top: 36px; }
  .section-head h2 { font-size: 21px; }
  .buy-price { font-size: 30px; }
  .auth-main { padding: 28px 22px; }
  .auth-brand { display: none; }
  .util .esc { display: none; }
  .util .container { justify-content: flex-end; }
  .m-buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 56px; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16,28,33,.08); padding: 10px var(--gutter); gap: 10px; align-items: center; }
  .m-buybar .p { font-size: 19px; font-weight: 850; white-space: nowrap; }
  .m-buybar .btn { flex: 1; padding: 12px 14px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11px; color: var(--mute); text-decoration: none; position: relative; font-weight: 600; }
  .tabbar a .ico { width: 24px; height: 24px; }
  .tabbar a.on, .tabbar a:hover { color: var(--green); }
  .tabbar .cart-count { top: 2px; right: calc(50% - 22px); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .pcard:hover .cover img { transform: none; }
}

/* ===== 운영 화면: 분류 관리 ===== */
.page-head.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.stat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-pill { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-2); }
.stat-pill b { color: var(--green); font-size: 16px; margin-right: 3px; }

.cat-admin { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cat-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cat-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
.cat-row:hover, .cat-row:focus-within { border-color: var(--line-strong); box-shadow: var(--sh-1, 0 1px 3px rgba(16,28,33,.08)); }
.cat-row-main { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.cat-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.cat-ico .ico { width: 26px; height: 26px; }
.cat-info { flex: 1; min-width: 0; }
.cat-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat-title b { font-size: 16.5px; }
.cat-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.cat-meta code { font-family: var(--mono); background: var(--paper); border: 1px solid var(--line); padding: 0 6px; border-radius: 5px; font-size: 12px; }
.cat-desc { margin: 6px 0 0; font-size: 13.5px; color: var(--mute); }

.cat-edit { border-top: 1px solid var(--line); }
.cat-edit > summary { list-style: none; cursor: pointer; padding: 10px 18px; font-size: 13.5px; font-weight: 650; color: var(--green); display: flex; align-items: center; gap: 6px; border-radius: 0 0 var(--r) var(--r); }
.cat-edit > summary::-webkit-details-marker { display: none; }
.cat-edit > summary::after { content: "▾"; font-size: 11px; transition: transform .15s; }
.cat-edit[open] > summary::after { transform: rotate(180deg); }
.cat-edit > summary:hover { background: var(--green-50); }
.cat-edit > summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.cat-edit-form { padding: 6px 18px 4px; max-width: none; }
.cat-actions { display: flex; gap: 8px; }
.cat-delete { display: flex; align-items: center; gap: 12px; padding: 12px 18px 16px; margin-top: 4px; border-top: 1px dashed var(--line); }

.cat-new { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 6px 24px rgba(7,91,50,.07); }
.cat-new h2 { font-size: 17px; margin: 0 0 14px; }
.cat-new .form { gap: 14px; max-width: none; }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-weight: 650; font-size: 14px; margin-bottom: 7px; padding: 0; }

.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.icon-opt { position: relative; display: block; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.icon-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.icon-tile { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); transition: border-color .12s, background .12s, color .12s; }
.icon-tile .ico { width: 22px; height: 22px; }
.icon-tile small { font-size: 10.5px; color: var(--mute); }
.icon-opt:hover .icon-tile { border-color: var(--line-strong); background: var(--paper); }
.icon-opt input:checked + .icon-tile { border-color: var(--green); background: var(--green-50); color: var(--green); box-shadow: 0 0 0 2px #cbe8d6; }
.icon-opt input:checked + .icon-tile small { color: var(--green); font-weight: 650; }
.icon-opt input:focus-visible + .icon-tile { outline: 2px solid var(--blue); outline-offset: 2px; }

.field .kind-opt, .kind-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; margin: 0 0 6px !important; cursor: pointer; font-weight: 400 !important; transition: border-color .12s, background .12s; }
.kind-opt:hover { background: var(--paper); }
.kind-opt input { flex: none; width: auto; margin-top: 4px; accent-color: var(--green); }
.kind-opt b { display: block; font-size: 14px; }
.kind-opt small { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.45; }
.kind-opt:has(input:checked) { border-color: var(--green); background: var(--green-50); }

@media (max-width: 1000px) {
  .cat-admin { grid-template-columns: minmax(0, 1fr); }
  .cat-new { position: static; order: -1; }
}
@media (max-width: 700px) {
  .cat-row-main { align-items: flex-start; flex-wrap: wrap; }
  .cat-row-main .btn { margin-left: 68px; }
  .cat-edit-form .field.row { grid-template-columns: 1fr; }
}

/* ===== 운영 화면: 배너 관리 ===== */
.bn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bn-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bn-item.off { opacity: .72; }
.bn-prev { position: relative; min-height: 130px; padding: 18px 22px; color: #fff; display: flex; align-items: center; overflow: hidden; }
.bn-prev .banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.bn-prev .banner-bg { z-index: 0; }
.bn-prev::before { content: ""; z-index: 1; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 40, 24, .85), rgba(5, 40, 24, .3) 70%, rgba(5, 40, 24, 0)); }
.bn-prev.t-green { background: linear-gradient(120deg, #055a30, #075d9c); }
.bn-prev.t-blue { background: linear-gradient(120deg, #07457a, #1b86c7); }
.bn-prev.t-dark { background: linear-gradient(120deg, #063b2a, #075d9c); }
.bn-prev .bn-copy { position: relative; z-index: 2; max-width: 28em; }
.bn-prev .eyebrow { font-size: 11.5px; background: rgba(255,255,255,.2); padding: 1px 9px; border-radius: 999px; }
.bn-prev b { display: block; font-size: 17px; line-height: 1.35; margin: 6px 0 2px; white-space: pre-line; }
.bn-prev span.t { font-size: 13px; opacity: .9; }
.bn-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.bn-bar .grow { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); }
.bn-bar form { margin: 0; }
.bn-edit { border-top: 1px solid var(--line); }
.bn-edit > summary { list-style: none; cursor: pointer; padding: 10px 16px; font-size: 13.5px; font-weight: 650; color: var(--green); }
.bn-edit > summary::-webkit-details-marker { display: none; }
.bn-edit > summary:hover { background: var(--green-50); }
.bn-edit .form { padding: 6px 16px 16px; max-width: none; }
.bn-new { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 22px; box-shadow: 0 6px 24px rgba(7,91,50,.07); }
.bn-new h2 { font-size: 17px; margin: 0 0 14px; }
.bn-new .form { max-width: none; }
.theme-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-opt { position: relative; margin: 0 !important; font-weight: 400 !important; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.theme-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13.5px; }
.theme-opt i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.theme-opt i.t-green { background: linear-gradient(120deg, #055a30, #075d9c); }
.theme-opt i.t-blue { background: linear-gradient(120deg, #07457a, #1b86c7); }
.theme-opt i.t-dark { background: linear-gradient(120deg, #063b2a, #075d9c); }
.theme-opt input:checked + span { border-color: var(--green); background: var(--green-50); font-weight: 650; }
.theme-opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }


/* ===== 운영 화면 공통 ===== */
.page-head.split h1 { margin-bottom: 4px; }
.adm-h { font-size: 15px; font-weight: 750; color: var(--ink-2); letter-spacing: .02em; margin: 26px 0 10px; }
.nav-count { display: inline-block; min-width: 20px; margin-left: 7px; padding: 0 6px; border-radius: 999px; background: var(--signal); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; }
.nav-count.crit { background: var(--crit); }
.side-nav a { display: flex; align-items: center; justify-content: space-between; }

.todo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.todo { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.todo:hover { border-color: var(--green); box-shadow: var(--sh-2); transform: translateY(-1px); }
.todo b { font-size: 30px; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.todo span { font-size: 13px; color: var(--ink-2); }
.todo.hot { background: var(--signal-soft); border-color: #e6bb63; }
.todo.hot b { color: #7a4f06; }
.todo.hot.crit { background: var(--crit-soft); border-color: #e3a29d; }
.todo.hot.crit b { color: var(--crit); }

.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; background: linear-gradient(160deg, #fff 0%, var(--green-50) 140%); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
a.kpi:hover { border-color: var(--green); }
.kpi .k { font-size: 12.5px; color: var(--ink-2); font-weight: 650; }
.kpi b { font-size: 22px; font-weight: 850; letter-spacing: -.025em; overflow-wrap: anywhere; }
.kpi small { font-size: 12.5px; color: var(--mute); }

.chart-panel { margin-top: 22px; }
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; padding-top: 6px; }
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bar-fill { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--green) 0%, #2d9a63 100%); min-height: 2px; opacity: .92; transition: opacity .15s; }
.bar:hover .bar-fill { opacity: 1; background: var(--blue); }
.bar-val { font-size: 11px; font-weight: 700; color: var(--green); height: 16px; }
.bar-lbl { font-size: 10.5px; color: var(--mute); margin-top: 6px; white-space: nowrap; }

.bar-fill.h-0 { height: 0%; }
.bar-fill.h-5 { height: 5%; }
.bar-fill.h-10 { height: 10%; }
.bar-fill.h-15 { height: 15%; }
.bar-fill.h-20 { height: 20%; }
.bar-fill.h-25 { height: 25%; }
.bar-fill.h-30 { height: 30%; }
.bar-fill.h-35 { height: 35%; }
.bar-fill.h-40 { height: 40%; }
.bar-fill.h-45 { height: 45%; }
.bar-fill.h-50 { height: 50%; }
.bar-fill.h-55 { height: 55%; }
.bar-fill.h-60 { height: 60%; }
.bar-fill.h-65 { height: 65%; }
.bar-fill.h-70 { height: 70%; }
.bar-fill.h-75 { height: 75%; }
.bar-fill.h-80 { height: 80%; }
.bar-fill.h-85 { height: 85%; }
.bar-fill.h-90 { height: 90%; }
.bar-fill.h-95 { height: 95%; }
.bar-fill.h-100 { height: 100%; }

.tabs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.tabs-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.tabs-chips a b { font-size: 12px; background: var(--paper); border-radius: 999px; padding: 0 7px; color: var(--ink-2); }
.tabs-chips a:hover { border-color: var(--green); color: var(--green); }
.tabs-chips a.on { background: var(--green); border-color: var(--green); color: #fff; }
.tabs-chips a.on b { background: rgba(255,255,255,.22); color: #fff; }
.adm-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-search .inline-input { min-width: 0; }
.adm-search input[type=search] { width: 230px; }
table.t tbody tr:hover td { background: #fafcfb; }
.panel + .panel { margin-top: 18px; }
@media (max-width: 700px) {
  .todo-grid, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bars { gap: 3px; height: 150px; }
  .bar-lbl { font-size: 9px; }
  .bar:nth-child(even) .bar-lbl { visibility: hidden; }
  .adm-search input[type=search] { width: 100%; flex: 1; }
}


/* 세로형 사진: 배너 오른쪽 면에 두고 왼쪽 글자 영역과 자연스럽게 이어 붙인다 */
.banner.photo-side .banner-bg { left: auto; right: 0; width: 54%; object-position: center 30%; }
.banner.photo-side.has-img.t-green::before, .banner.photo-side.has-img.t-blue::before, .banner.photo-side.has-img.t-dark::before { background: linear-gradient(90deg, rgba(5, 40, 24, 1) 0%, rgba(5, 40, 24, 1) 42%, rgba(5, 40, 24, .55) 50%, rgba(5, 40, 24, 0) 62%); }
.banner.photo-side.has-img.t-blue::before { background: linear-gradient(90deg, rgba(6, 42, 74, 1) 0%, rgba(6, 42, 74, 1) 42%, rgba(6, 42, 74, .55) 50%, rgba(6, 42, 74, 0) 62%); }
.banner.photo-side.has-img.t-dark::before { background: linear-gradient(90deg, rgba(5, 50, 36, 1) 0%, rgba(5, 50, 36, 1) 42%, rgba(5, 50, 36, .55) 50%, rgba(5, 50, 36, 0) 62%); }
@media (max-width: 1000px) {
  .banner.photo-side .banner-bg { width: 100%; object-position: center 25%; }
  .banner.photo-side.has-img::before, .banner.photo-side.has-img.t-blue::before, .banner.photo-side.has-img.t-dark::before { background: linear-gradient(180deg, rgba(5, 30, 40, .96) 0%, rgba(5, 30, 40, .92) 62%, rgba(5, 30, 40, .55) 100%); }
}
