/* 배추밭 초록 바탕 + 고추 빨강 하나만 강조색. 모서리: 카드 14px, 입력 10px, 버튼 둥근 알약 */
:root {
  --bg: #f4f6f1; --surface: #fcfdfb; --ink: #17201a; --muted: #4a574e; --line: #d6ded3;
  --green: #1f4d32; --green-soft: #e3ece2; --accent: #c0261d; --accent-ink: #fff;
  --r: 14px; --r-in: 10px; --shadow: 0 10px 30px -12px rgb(31 77 50 / .25);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1511; --surface: #161e18; --ink: #edf2eb; --muted: #a8b5ab; --line: #2a362d;
    --green: #93c9a1; --green-soft: #1c2a20; --accent: #ec5a4c; --accent-ink: #1a0d0b;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / .6); color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.7 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a, button, summary, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
dialog { overscroll-behavior: contain; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 750; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-sm { padding: 40px 0 80px; }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 34ch; }
.help { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.error { color: var(--accent); font-weight: 600; min-height: 1.2em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.tnum, .pprice, .buy-price, .olines { font-variant-numeric: tabular-nums; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s ease-out, box-shadow .2s ease-out, opacity .2s;
}
.btn:hover { box-shadow: 0 8px 20px -8px rgb(192 38 29 / .55); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn.sm { min-height: 46px; padding: 0 18px; font-size: 16px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: block; flex: none; line-height: 0; text-decoration: none; border-radius: 6px; }
.logo img { display: block; height: 52px; width: auto; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 16px; font-weight: 600; transition: background-color .18s ease-out; }
.top nav a:hover { background: var(--green-soft); }
.cart-link { background: var(--green); color: var(--bg) !important; }
.cart-link:hover { background: var(--green) !important; opacity: .9; }
#cart-count:not(:empty) { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; }
/* 휴대폰: 첫 줄에 로고와 장바구니, 둘째 줄에 메뉴 — 좁은 화면(320)에서도 장바구니가 혼자 셋째 줄로 내려가지 않게 */
@media (max-width: 640px) {
  .top-in { position: relative; flex-direction: column; align-items: flex-start; padding: 10px 0; gap: 6px; }
  .logo img { height: 44px; }
  .top nav { justify-content: flex-start; flex-wrap: nowrap; margin-left: -10px; }
  .top nav a { padding: 6px 10px; font-size: 15px; white-space: nowrap; }
  .top nav .cart-link { position: absolute; right: 0; top: 14px; }
}
@media (max-width: 340px) { .top nav a { padding: 6px 8px; } }

/* 첫 화면 */
/* 사진을 화면 폭 가득 깔고 글은 그 위 왼쪽. 사진 왼쪽을 바탕색으로 덮어 글이 읽히게 한다(어두운 화면이면 어두운 바탕색으로).
   사진은 두 장이 번갈아 나온다(app.js heroSlides) — 1 산 · 배추밭, 2 해 질 녘 농부.
   2번은 농부가 화면 가운데쯤이라 글과 겹치지 않게 사진 왼쪽 끝을 글 칸(.wrap) 왼쪽 끝에 맞추고 왼쪽을 흐리게 이어 붙인다 */
.hero { --wl: max(0px, (100% - 1200px) / 2); position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(520px, 72vh, 760px); padding: clamp(40px, 6vw, 80px) 0; }
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.hero-slide { position: absolute; inset: 0; overflow: hidden; background: var(--bg); opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide.is-prev { opacity: 1; z-index: 1; transition: none; }
.hero-slide picture, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--fade); }
.hero-slide.s1 { --fade: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 32%, transparent 66%); }
.hero-slide.s1 img { object-position: 60% 55%; }
.hero-slide.s2 { --fade: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0, color-mix(in srgb, var(--bg) 86%, transparent) calc(var(--wl) + 360px),
  color-mix(in srgb, var(--bg) 50%, transparent) calc(var(--wl) + 520px), transparent calc(var(--wl) + 660px)); }
.hero-slide.s2 picture { left: var(--wl); width: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.hero-slide.s2 img { object-position: 45% 30%; }
.hero-text { max-width: 600px; }
.hero h1 { color: var(--green); }
.hero .lead { margin-bottom: 28px; color: var(--ink); }

/* 사진은 6초마다 저절로 넘어간다(넘기는 단추는 두지 않는다 — 사용자 지시 2026-10-29). 마우스를 올리면 멈춤 */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active img, .hero-slide.is-prev img { animation: hero-zoom 8s ease-out both; }
  .hero.is-paused .hero-slide img { animation-play-state: paused; }
}
@keyframes hero-zoom { from { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* 휴대폰 · 세로로 긴 화면: 글을 위에, 사진은 그 아래 폭 가득(위쪽 끝을 바탕색으로 흐리게) — 사진 속 농부 얼굴이 글에 가리지 않게 */
@media (max-width: 760px), (max-aspect-ratio: 5/4) {
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 32px 0 0; }
  .hero-in { order: 1; }
  .hero-slides { position: relative; inset: auto; order: 2; width: 100%; height: clamp(280px, 86vw, 520px); margin-top: 28px; }
  .hero-slide.s2 picture { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-slide::after { background: linear-gradient(180deg, var(--bg) 0, transparent 16%); }
  .hero-slide.s1 img { object-position: 50% 40%; }
  .hero-slide.s2 img { object-position: 55% 18%; }
}

/* 상품 목록: 첫 상품(절임배추)이 크게, 나머지 셋이 옆에 */
.pgrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 28px; }
.pcard:not(.big) { flex-direction: row; }
.pcard:not(.big) .pimg { width: 40%; flex: none; aspect-ratio: auto; min-height: 168px; position: relative; }
/* 작은 칸 사진은 칸을 덮기만 한다 — 세로로 긴 사진(청양 고춧가루)이 와도 그 칸만 길어지지 않게 */
.pcard:not(.big) .pimg img { position: absolute; inset: 0; }
@media (min-width: 861px) { .pgrid { grid-auto-rows: 1fr; } }
.pcard:not(.big) .pbody { justify-content: center; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .22s var(--ease), box-shadow .22s ease-out; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard.big { grid-row: span var(--rows, 1); }
.pimg { display: block; aspect-ratio: 1; overflow: hidden; background: var(--green-soft); }
.pcard.big .pimg { aspect-ratio: auto; flex: 1; min-height: 320px; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pimg img { transform: scale(1.04); }
.pbody { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.pname { font-weight: 750; font-size: 19px; }
.pcard.big .pname { font-size: 24px; }
.psum { color: var(--muted); font-size: 15px; line-height: 1.5; }
.pprice { font-weight: 800; font-size: 20px; color: var(--accent); margin-top: 4px; }
.sold { font-style: normal; color: var(--muted); }
@media (max-width: 860px) { .pgrid { grid-template-columns: 1fr; } .pcard.big { grid-row: auto; } .pcard.big .pimg { aspect-ratio: 4 / 3; flex: none; min-height: 0; } }
@media (max-width: 420px) { .pcard:not(.big) .pimg { width: 36%; min-height: 140px; } .pname { font-size: 17px; } }

/* 만드는 과정: 큰 사진 하나 + 작은 사진 둘 */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; margin-top: 28px; }
.step { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--green-soft); }
.step img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.step.s1 { grid-row: span 2; }
.step.s1 img { aspect-ratio: auto; height: 100%; min-height: 420px; }
.step figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; color: #fff; font-size: 16px; line-height: 1.5;
  background: linear-gradient(to top, rgb(10 20 12 / .82), rgb(10 20 12 / 0)); }
.step figcaption b { display: block; font-size: 21px; margin-bottom: 2px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; grid-template-rows: none; } .step.s1 { grid-row: auto; } .step.s1 img { min-height: 0; aspect-ratio: 4 / 3; } }

/* 날짜 안내 띠 */
.band { background: var(--green); color: #f1f6ef; padding: clamp(40px, 6vw, 72px) 0; }
@media (prefers-color-scheme: dark) { .band { background: #1d3a27; } }
.band-title { font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; margin-bottom: 10px; }
.band p:last-child { margin: 0; opacity: .88; }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; }
/* 흰 선 택배차 — 바퀴 속은 띠 바탕색으로 칠해 차체 아랫선을 가린다 */
.truck { display: block; width: clamp(220px, 24vw, 320px); height: auto; overflow: visible; color: #f1f6ef; --truck-bg: var(--green); }
@media (prefers-color-scheme: dark) { .truck { --truck-bg: #1d3a27; } }
.truck path, .truck circle { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.truck .t-wheel { fill: var(--truck-bg); }
.truck .t-hub { fill: currentColor; stroke: none; }
.truck .t-road { stroke-width: 4; stroke-dasharray: 26 24; opacity: .55; }
.truck .t-speed { stroke-width: 5; }
@media (max-width: 760px) { .band-in { grid-template-columns: 1fr; } .truck { width: 200px; justify-self: center; } }
@media (prefers-reduced-motion: no-preference) {
  .truck .t-body { animation: truck-bob .34s ease-in-out infinite alternate; }
  .truck .t-speed { animation: truck-speed 1s linear infinite; }
  .truck .t-speed:nth-child(2) { animation-delay: -.33s; }
  .truck .t-speed:nth-child(3) { animation-delay: -.66s; }
  .truck .t-road { animation: truck-road .5s linear infinite; }
}
@keyframes truck-bob { to { transform: translateY(-3px); } }
@keyframes truck-speed { 0% { transform: translateX(14px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: .9; } 100% { transform: translateX(-30px); opacity: 0; } }
@keyframes truck-road { to { stroke-dashoffset: 50; } }

/* 농장 이야기 */
.story-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.story figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; }
.story figure img { width: 100%; height: 100%; object-fit: cover; }
/* 같은 자리에서 찍은 모종 · 다 자란 밭 사진 — 마우스가 있는 화면은 사진에 마우스를 올리면 다 자란 밭으로 바뀌고(사용자 지시),
   손가락 화면은 6초마다 천천히 겹쳐 바뀐다(app.js). 밭이 자라는 것처럼 보인다 */
.story-slides { position: relative; }
.story-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease-in-out; }
.story-slide.is-active { opacity: 1; z-index: 2; }
.story-slide.is-prev { opacity: 1; z-index: 1; transition: none; }
.story-slides.hover-swap .story-slide { transition-duration: .6s; }
.story-slides.hover-swap:hover .story-slide:not(.is-active) { opacity: 1; z-index: 3; }
@media (prefers-reduced-motion: reduce) { .story-slide { transition: none; } }
.story-text p { max-width: 42ch; }
.sign { font-weight: 700; color: var(--green); }
@media (max-width: 760px) { .story-in { grid-template-columns: 1fr; } .story figure { aspect-ratio: 4 / 3; } .story figure img { object-position: 50% 45%; } }

/* 자주 묻는 질문 */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 26px; font-weight: 400; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }
.ask { margin-top: 24px; }

/* 상품 화면 */
.crumb { font-size: 15px; color: var(--muted); padding: 20px 0; }
.crumb a { text-decoration: none; }
.prod-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
/* 격자 칸은 기본으로 안의 내용보다 좁아지지 않는다 — 작은 사진 줄(6장)이 칸을 화면 밖까지 넓히던 것을 막는다.
   사진 줄은 칸 안에서 옆으로 밀어 넘긴다(.gthumbs) */
.prod-in > *, .co-in > *, .pgrid > *, .steps > *, .story-in > *, .band-in > * { min-width: 0; }
.gmain { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--green-soft); }
.gmain img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease-out; }
.gthumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.gthumb { scroll-snap-align: start; }
@media (max-width: 560px) { .gthumbs { gap: 8px; } .gthumb { width: 64px; height: 64px; } }
.gthumb { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--r-in); overflow: hidden; cursor: pointer; background: none; transition: border-color .18s ease-out, transform .18s var(--ease); }
.gthumb:hover { transform: translateY(-2px); }
.gthumb.on { border-color: var(--accent); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: sticky; top: 92px; }
.buy-sum { color: var(--muted); }
.buy-price { font-size: 34px; font-weight: 800; color: var(--accent); margin: 8px 0 18px; }
.buy-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 22px; padding: 16px 0; border-block: 1px solid var(--line); font-size: 16px; }
.buy-info dt { color: var(--muted); }
.buy-info dd { margin: 0; }
.qty { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-weight: 700; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { width: 52px; height: 52px; border: 0; background: none; font-size: 24px; color: var(--ink); cursor: pointer; transition: background-color .15s ease-out; }
.stepper button:hover { background: var(--green-soft); }
.stepper input { width: 56px; height: 52px; border: 0; text-align: center; font: inherit; font-weight: 700; background: none; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btns .btn { flex: 1; }
.naver { display: block; margin-top: 14px; text-align: center; color: #03a94d; font-weight: 700; text-decoration: none; padding: 12px; border-radius: 999px; border: 1px solid currentColor; transition: background-color .18s ease-out; }
.naver:hover { background: rgb(3 199 90 / .08); }
.soldout { padding: 16px; border-radius: var(--r-in); background: var(--green-soft); }
.desc { max-width: 760px; margin: clamp(48px, 7vw, 88px) auto 0; padding-bottom: 80px; }
.desc h2 { margin-top: 48px; }
.desc-imgs { display: grid; gap: 14px; margin: 28px 0; }
.desc-imgs img { border-radius: var(--r); width: 100%; }
/* 상세 이미지(세로로 긴 그림을 조각내 이어 붙임) — 조각 사이에 바탕이 실선으로 비치지 않게 1px 겹친다(자른 줄은 한 색이라 티 안 남) */
.desc.has-detail { max-width: 860px; }
.detail { margin: 28px 0 0; border-radius: var(--r); overflow: hidden; line-height: 0; background: #fff; }
.detail img { display: block; width: 100%; height: auto; }
.detail img + img { margin-top: -1px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 860px) { .prod-in { grid-template-columns: 1fr; } .buy { position: static; } }

/* 장바구니 · 주문 */
.cart-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-in); }
.cart-row .nm { font-weight: 700; }
.cart-row .stepper button, .cart-row .stepper input { height: 42px; width: 42px; font-size: 18px; }
.cart-row .rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 15px; padding: 6px 0; }
.cart-row > div { min-width: 0; }
.cart-row .stepper { width: max-content; }
/* 금액은 줄을 바꾸지 않는다("96, / 000 / 원" 처럼 쪼개지지 않게) */
.cart-row > b, .sumline > :last-child, .olines li > :last-child { white-space: nowrap; }
.sumline { gap: 12px; }
@media (max-width: 420px) {
  .cart-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
  .cart-row img { width: 64px; height: 64px; }
  .cart-row .stepper button, .cart-row .stepper input { height: 38px; width: 38px; font-size: 17px; }
}
.cart-sum { margin: 24px 0; }
.sumline { display: flex; justify-content: space-between; padding: 6px 0; }
.sumline.tot { font-weight: 800; font-size: 22px; border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 14px; }
.empty { padding: 48px 0; color: var(--muted); }
.checkout .co-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.co-sum { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.co-sum h2 { font-size: 22px; }
@media (max-width: 860px) { .checkout .co-in { grid-template-columns: 1fr; } .co-sum { position: static; } }
fieldset { border: 0; padding: 0; margin: 0 0 32px; }
legend { font-size: 22px; font-weight: 750; margin-bottom: 12px; }
label { display: block; font-weight: 650; margin: 16px 0 6px; }
input:not([type=checkbox]), textarea, select {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #9aa79d; border-radius: var(--r-in);
  background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
@media (prefers-color-scheme: dark) { input:not([type=checkbox]), textarea, select { border-color: #4b5a4f; } }
input::placeholder, textarea::placeholder { color: #6b776e; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
input[readonly] { background: var(--green-soft); }
fieldset > input + input { margin-top: 8px; }
.row { display: flex; gap: 8px; margin-bottom: 8px; }
.row input { flex: 1; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.agree input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.lookup { margin-bottom: 32px; }
.lookup .btn { margin-top: 20px; }
.obox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 24px 0; }
.ostatus { display: inline-block; background: var(--green); color: var(--bg); padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.olines { list-style: none; padding: 0; margin: 12px 0; }
.olines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.olines .tot { font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal p { color: var(--muted); }

/* 바닥 */
.foot { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 15px; color: var(--muted); }
.foot-name { margin: 0 0 14px; line-height: 0; }
.foot-name img { height: 46px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* 불러오는 중 */
.skel { height: 64px; border-radius: var(--r-in); margin: 12px 0; background: linear-gradient(90deg, var(--green-soft) 25%, var(--surface) 50%, var(--green-soft) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* 알림 */
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; translate: -50% 0; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .22s ease-out, transform .22s var(--ease); }
#toast.on { opacity: 1; transform: none; pointer-events: auto; }
#toast a { color: inherit; margin-left: 10px; }

/* 스크롤하면 나타나기 */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 관리자 */
.admin { padding: 24px 0 80px; font-size: 16px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.tabs button { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .15s ease-out; }
.tabs button.on { background: var(--green); color: var(--bg); border-color: var(--green); }
.tabs .sp { flex: 1; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-height: 44px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--green-soft); }
.tbl tr.click { cursor: pointer; transition: background-color .12s ease-out; }
.tbl tr.click:hover { background: var(--green-soft); }
.tag { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--green-soft); font-weight: 700; white-space: nowrap; }
.tag.n { background: #03c75a; color: #fff; }
.tag.paid { background: var(--accent); color: #fff; }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); overscroll-behavior-x: contain; }
/* 표 칸 안 글자는 낱자로 쪼개지지 않게(본문의 overflow-wrap: anywhere 를 표에서는 끈다).
   휴대폰에서는 표를 화면 폭에 욱여넣지 않고 최소 폭을 두어 표 상자 안에서 옆으로 밀어 본다 */
.tbl th, .tbl .tnum { white-space: nowrap; }
.tbl td { overflow-wrap: normal; word-break: keep-all; }
.tbl td small { overflow-wrap: anywhere; }
@media (max-width: 760px) { .tbl { min-width: 560px; } }
@media (max-width: 360px) { .tabs { gap: 6px; } .tabs button { padding: 8px 14px; } .tabs > a { font-size: 15px; } }
dialog { border: 0; border-radius: var(--r); padding: 0; width: min(720px, 100% - 24px); max-height: 92dvh; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .5); }
dialog[open] { animation: pop .24s var(--ease); }
dialog::backdrop { background: rgb(10 15 12 / .55); animation: fade .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.dlg { padding: 24px; }
.dlg h2 { font-size: 22px; }
.dlg .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dlg .checks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; }
.dlg .checks label { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; }
.dlg .checks input { width: 20px; height: 20px; accent-color: var(--green); }
.dlg .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.dlg .acts .danger { margin-right: auto; border-color: var(--accent); color: var(--accent); }
.imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.imgs figure { margin: 0; position: relative; width: 92px; }
.imgs img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-in); }
.imgs button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 999px; border: 0; background: rgb(0 0 0 / .65); color: #fff; cursor: pointer; }
.imgs .first { position: absolute; left: 4px; bottom: 4px; font-size: 12px; background: var(--accent); color: #fff; padding: 0 6px; border-radius: 6px; }
@media (max-width: 560px) { .dlg .grid2 { grid-template-columns: 1fr; } }
