/* MetaPla 디자인 값. 캔버스 "컴포넌트 시트"와 같다. React로 옮길 때 이 파일을 그대로 가져간다. */
:root {
  --bg: #F3F4F1; --surface: #FCFCFA; --sidebar: #FAFBF8; --line: #DADDD6; --line-2: #E7E9E4;
  --control: #848D86; --ink: #17201B; --ink-2: #3C4540; --muted: #5A635D; --faint: #6B746E;
  --brand: #1F4B2C; --brand-dark: #163A21; --brand-soft: #DFEBE4; --brand-tint: #F1F6F2; --nav-on: #E1EAE4;
  --warn: #7A4F00; --warn-soft: #FBEFD6; --warn-tint: #FDF6E8; --danger: #9A3B12; --danger-soft: #FBEDE6;
  --radius: 6px; --radius-badge: 4px;
  --font: 'IBM Plex Sans KR', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wordmark: 'Schibsted Grotesk', 'IBM Plex Sans KR', sans-serif;
}
* { box-sizing: border-box; }
/* hidden 속성은 class 의 display 보다 앞선다 (숨긴 동작 단추가 .btn 때문에 보이지 않게) */
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); } a:hover { color: var(--brand-dark); }
h1, h2, h3 { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .ink2 { color: var(--ink-2); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mark { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wm { font-family: var(--wordmark); font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--brand); }
.lockup { display: inline-flex; align-items: center; gap: 9px; color: var(--brand); text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: 8px; align-items: center; } .col { display: flex; flex-direction: column; } .between { justify-content: space-between; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; } .gap24 { gap: 24px; }
.wrap { flex-wrap: wrap; } .grow { flex-grow: 1; } .center { text-align: center; }
/* x-show 를 쓰는 요소는 display 를 style 이 아니라 class 로 준다: Alpine 이 보일 때 style 의 display 를 지운다 */
.d-grid { display: grid; } .d-flex { display: flex; }

/* 배지: 테두리 = 시작 전, 옅은 그린 = 진행, 진한 그린 = 확정·완료, 앰버 = 주의 */
.b { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--radius-badge); font-size: 12px; font-weight: 500; white-space: nowrap; }
.b-n { background: #EAECE8; color: var(--ink-2); } .b-a { background: var(--brand-soft); color: var(--brand); }
.b-s { background: var(--brand); color: #F6F8F5; } .b-w { background: var(--warn-soft); color: var(--warn); }
.b-o { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--control); }

.btn { height: 40px; padding: 0 16px; border-radius: var(--radius); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; border: none; }
.btn-p { background: var(--brand); color: #F6F8F5; } .btn-p:hover { background: var(--brand-dark); color: #F6F8F5; }
.btn-s { background: var(--surface); color: var(--ink); border: 1px solid var(--control); } .btn-s:hover { color: var(--ink); border-color: var(--faint); }
.btn-d { background: var(--danger); color: #FBF4F0; } .btn-d:hover { background: #7E2F0D; color: #FBF4F0; }
.btn-lg { height: 52px; font-size: 16px; } .btn-sm { height: 34px; font-size: 13px; font-weight: 500; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn:active { transform: translateY(1px); }
.linkbtn { border: none; background: transparent; font: inherit; color: var(--brand); cursor: pointer; padding: 0; min-height: 44px; }

.chip { height: 34px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--control); background: var(--surface); font: inherit; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; }
.chip-on { background: var(--brand); border-color: var(--brand); color: #F6F8F5; font-weight: 600; }
.chip-on:hover { color: #F6F8F5; }

.fld { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--muted); }
.err { font-size: 13px; color: var(--danger); line-height: 1.5; }
.inp, .sel, .ta { padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--control); background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); width: 100%; }
.inp { height: 40px; } .sel { height: 36px; padding: 0 10px; font-size: 13px; width: auto; } .ta { min-height: 84px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.inp:focus, .sel:focus, .ta:focus, .btn:focus-visible, a:focus-visible, .chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.inp.is-err { border-color: var(--danger); }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 14px; line-height: 1.55; }
/* 안내 상자는 시안(C1 로그인)의 연한 초록 #DFEBE4 + 본문색. 배경과 거의 같은 #F1F6F2·#FDF6E8 은 잘 안 보여서 쓰지 않는다 */
.alert-err { background: var(--danger-soft); color: #6B2A0E; } .alert-warn { background: var(--warn-soft); color: #3E3000; } .alert-ok { background: var(--brand-soft); color: var(--ink); }
/* 비밀번호 보기/숨기기 (고객·직원 로그인 같은 단추). 칸 높이와 상관없이 세로 가운데 */
.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 64px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: 44px; padding: 0 12px; border: none; border-radius: var(--radius); background: transparent; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 18px 20px; } .pad-lg { padding: 22px 24px; }
.h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; } .h2 { font-size: 16px; font-weight: 600; }
.dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); row-gap: 12px; column-gap: 16px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
table.t { border-collapse: collapse; width: 100%; }
.t th { font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #F7F8F5; }
.t td { font-size: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t .num { text-align: right; }
.row-link { color: var(--ink); text-decoration: none; font-weight: 500; } .row-link:hover { color: var(--brand); text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); min-height: 48px; padding: 0 18px; display: flex; align-items: center; border-radius: var(--radius); background: var(--ink); color: #F3F6F2; font-size: 14px; box-shadow: 0 8px 24px rgba(15,30,22,.2); z-index: 50; }

/* ---------- 직원 화면 ---------- */
.admin { display: flex; min-height: 100dvh; }
.sidebar { width: 232px; flex-shrink: 0; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; gap: 28px; position: sticky; top: 0; height: 100dvh; }
.nav { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--radius); color: var(--ink-2); text-decoration: none; font-size: 14px; }
.nav:hover { background: #E9ECE7; color: var(--ink); } .nav.on { background: var(--nav-on); color: var(--brand); font-weight: 600; }
.nav .count { margin-left: auto; }
.avatar { width: 32px; height: 32px; border-radius: 16px; background: #DCE3DE; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--brand); }
.main { flex-grow: 1; padding: 28px 40px 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.crumb { display: flex; gap: 6px; font-size: 13px; color: var(--muted); } .crumb a { color: var(--muted); }
.stagebar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stagebar a { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line-2); }
.stagebar a:last-child { border-right: none; } .stagebar .n { font-family: var(--mono); font-size: 30px; font-weight: 500; }
.stagebar .late { color: var(--warn); background: var(--warn-tint); }
.tabs { display: flex; gap: 28px; padding: 0 24px; border-bottom: 1px solid #E2E5DF; }
.tab { height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--muted); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.tab.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
.stepper { list-style: none; margin: 0; padding: 18px 20px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.stepper li { display: flex; flex-direction: column; gap: 8px; }
.stepper .dot { width: 22px; height: 22px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--faint); background: var(--surface); color: #F6F8F5; }
.stepper .done .dot { background: var(--brand); border-color: var(--brand); } .stepper .now .dot { border: 2px solid var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.stepper .bar { flex-grow: 1; height: 2px; margin: 0 6px; background: var(--line); } .stepper .done .bar { background: var(--brand); }
.stepper .label { font-size: 13px; color: var(--muted); } .stepper .done .label { color: var(--ink); } .stepper .now .label { color: var(--brand); font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.banner { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--warn-tint); border: 1px solid #EBD8B0; border-radius: var(--radius); text-decoration: none; color: #3E3000; font-size: 14px; }

/* 대화상자 (가운데) */
.overlay { position: fixed; inset: 0; background: rgba(23, 32, 27, .48); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.dialog { width: 100%; max-width: 560px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(15,30,22,.28); }
.dialog-head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.dialog-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid #E2E5DF; }

/* 로그인 두 칸 화면. 고객 .c-auth 와 같은 틀: 브랜드 칸은 화면 폭의 39% (1440에서 560, 1920에서 750), 입력 칸 440 */
.auth-split { display: grid; grid-template-columns: minmax(360px, 38.9%) minmax(0, 1fr); min-height: 100dvh; }
.auth-panel { position: relative; background: var(--brand); color: #F3F6F2; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px; }
.auth-panel .pattern { position: absolute; inset: -10px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-content: space-around; opacity: .6; color: #2B5A39; pointer-events: none; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form > div { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 899px) { .auth-split { grid-template-columns: 1fr; } .auth-panel { display: none; } }

/* ---------- 고객 화면 (모바일 우선) ---------- */
.m { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; padding-bottom: 88px; }
.m-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px 20px; }
.m-bar { display: flex; align-items: center; gap: 4px; padding: 10px 8px; border-bottom: 1px solid #E2E5DF; background: var(--sidebar); }
.m-body { padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.m .b { height: 26px; padding: 0 9px; font-size: 13px; }
.iconlink { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink); position: relative; }
.iconlink .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 4px; background: var(--brand); }
.case { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.case:hover { border-color: var(--brand); color: var(--ink); }
.segs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.segs span { height: 4px; border-radius: 2px; background: var(--line); } .segs span.on { background: var(--brand); }
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.list > * { padding: 16px 18px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.list > *:last-child { border-bottom: none; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-top: 1px solid var(--line); padding: 4px 0 calc(10px + env(safe-area-inset-bottom)); z-index: 30; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; font-size: 12px; color: var(--muted); text-decoration: none; }
.tabbar a.on { color: var(--brand); font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #E6E9E3; border-radius: var(--radius); }
.seg a { height: 40px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.seg a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(23,32,27,.12); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 12px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .tdot { width: 14px; height: 14px; border-radius: 7px; margin-top: 4px; border: 1.5px solid var(--faint); background: var(--surface); }
.timeline .tline { width: 2px; flex-grow: 1; margin-top: 4px; background: var(--line); }
.timeline li:last-child .tline { display: none; }
.timeline .done .tdot { background: var(--brand); border-color: var(--brand); } .timeline .done .tline { background: var(--brand); }
.timeline .now .tdot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline .tlabel { font-size: 15px; color: var(--muted); padding-bottom: 16px; } .timeline .done .tlabel { color: var(--ink); font-weight: 500; } .timeline .now .tlabel { color: var(--brand); font-weight: 700; }
.metric { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--bg); border-radius: var(--radius); }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.keypad button { height: 64px; border: none; border-radius: 8px; background: var(--surface); font: inherit; font-size: 24px; font-weight: 500; color: var(--ink); cursor: pointer; }
.keypad button.fn { background: transparent; font-size: 15px; }
.keypad button:active { background: var(--brand-soft); }
.pins { display: flex; gap: 14px; justify-content: center; }
.pins span { width: 16px; height: 16px; border-radius: 8px; border: 2px solid var(--faint); }
.pins span.on { background: var(--brand); border-color: var(--brand); }
.pins.is-err span { border-color: var(--danger); }
.m-auth { padding: 48px 24px 28px; display: flex; flex-direction: column; gap: 24px; min-height: 100dvh; }
@media (prefers-reduced-motion: no-preference) { .fade-in { animation: fade .25s ease-out both; } @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } }

/* ---------- 홈페이지 ---------- */
.site-head { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 64px; border-bottom: 1px solid #E2E5DF; }
.site-nav { display: flex; gap: 32px; font-size: 15px; } .site-nav a { color: var(--ink); text-decoration: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); background: var(--brand); color: #F3F6F2; min-height: 560px; overflow: hidden; }
.hero-copy { padding: 96px 0 64px 64px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: 52px; line-height: 1.18; font-weight: 700; letter-spacing: -0.03em; max-width: 620px; }
.section { padding: 96px 64px; } .section h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.steps5 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.steps5 li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid #C9D3CC; }
.steps5 li:first-child { border-top-color: var(--brand); }
.site-foot { background: var(--brand); color: #CFE0D6; padding: 48px 64px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; font-size: 14px; line-height: 1.7; }
.site-foot a { color: #F3F6F2; }
@media (max-width: 860px) {
  .site-head { padding: 0 16px 0 20px; } .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; } .hero-art { display: none; } .hero-copy { padding: 40px 20px; } .hero h1 { font-size: 30px; }
  .section { padding: 48px 20px; } .section h2 { font-size: 24px; } .steps5 { grid-template-columns: 1fr; gap: 0; }
  .site-foot { flex-direction: column; align-items: flex-start; padding: 32px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .assemble .p1 { animation: inL 1.1s cubic-bezier(.2,.8,.2,1) both .2s; } .assemble .p2 { animation: inR 1.1s cubic-bezier(.2,.8,.2,1) both .35s; } .assemble .p3 { animation: inB 1.1s cubic-bezier(.2,.8,.2,1) both .5s; }
  @keyframes inL { from { transform: translate(-60px, -30px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes inR { from { transform: translate(60px, -30px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes inB { from { transform: translate(0, 50px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* 좁은 화면: 직원 화면은 넓은 화면 기준이지만 1100px 아래에서도 읽히게 */
.t td.mono, .t td .mono { white-space: nowrap; }
@media (max-width: 1100px) {
  .sidebar { width: 196px; } .main { padding: 24px 24px 40px; }
  .split { grid-template-columns: 1fr; }
  .stagebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stagebar a:nth-child(3) { border-right: none; }
  .stepper { overflow-x: auto; grid-template-columns: repeat(9, minmax(88px, 1fr)); }
}

/* ---------- 사이드바 사용자 영역: 이름이 길어도 로그아웃이 깨지지 않게 ---------- */
.who { display: flex; align-items: center; gap: 10px; padding: 12px 8px; border-top: 1px solid #E2E5DF; margin-top: auto; }
.who .who-text { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.who .who-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .logout { white-space: nowrap; flex-shrink: 0; font-size: 12px; color: var(--muted); min-height: 32px; padding: 0 4px; }
.who .logout:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 고객 화면: 데스크톱 웹 ---------- */
.c-top { display: none; }
/* 토양 단면: 초록 패널 위에서 토양색으로 확실히 구분되게 */
.c-panel .soil { display: flex; flex-direction: column; margin: 0 -56px -48px; position: relative; }
.soil-crop { height: 12px; background: repeating-linear-gradient(90deg, #8DBF6A 0 6px, #6FA552 6px 9px); }
.soil-layer { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 56px; }
.soil-name { display: flex; flex-direction: column; gap: 3px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.soil-name small { font-size: 13px; font-weight: 500; opacity: .9; }
.soil-depth { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 4px; }
.soil-layer.top { height: 96px; background: #5B4130 radial-gradient(circle at 20% 30%, rgba(255,255,255,.07) 0 2px, transparent 3px) 0 0 / 22px 18px; color: #F6EFE3; }
.soil-layer.top .soil-depth { background: #F6EFE3; color: #4A3424; }
.soil-layer.sub { height: 104px; background: #7A5B3D radial-gradient(circle at 60% 50%, rgba(0,0,0,.09) 0 2px, transparent 3px) 0 0 / 26px 20px; color: #FBF5EA; border-top: 2px dashed rgba(246,239,227,.45); }
.soil-layer.sub .soil-depth { background: #FBF5EA; color: #5E4430; }
.soil-layer.base { height: 72px; background: #B39873 radial-gradient(ellipse at 30% 60%, rgba(90,66,44,.28) 0 5px, transparent 6px) 0 0 / 40px 28px; color: #2E2117; }
@media (min-width: 900px) {
  .m { max-width: 1120px; padding: 0 40px 72px; background: transparent; }
  .m-head, .tabbar { display: none; }
  .c-top { display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 40px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .c-top nav { display: flex; gap: 4px; }
  .c-top nav a { height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-radius: var(--radius); color: var(--ink-2); text-decoration: none; font-size: 15px; }
  .c-top nav a:hover { background: #E9ECE7; color: var(--ink); }
  .c-top nav a.on { background: var(--nav-on); color: var(--brand); font-weight: 600; }
  .c-top .c-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
  .m-bar { background: transparent; border-bottom: none; padding: 24px 0 4px; }
  .m-body { padding: 16px 0 24px; }
  .c-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .c-grid > .col { gap: 20px; }
  .m-form { max-width: 600px; margin: 8px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px !important; }
  .m-page-title { font-size: 28px !important; }
  /* 고객 로그인·가입: 두 칸 */
  /* 브랜드 칸은 화면 폭의 39%: 1440 시안에서 560, 1920 화면에서 750. 화면 비율이 달라도 시안과 같은 나눔 */
  .c-auth { display: grid; grid-template-columns: minmax(360px, 38.9%) minmax(0, 1fr); min-height: 100dvh; }
  /* 넓은 화면 오른쪽 칸은 시안대로 440px 고정 (글 길이에 따라 줄어들지 않게) */
  .c-auth .m { width: 100%; max-width: 440px; margin: 0 auto; padding: 0; min-height: auto; align-self: center; }
  .c-auth .m-auth { min-height: auto; padding: 48px 0; gap: 22px; }
  /* 넓은 화면은 왼쪽 브랜드 칸에 로고가 있어 오른쪽 로고는 뺀다 (시안 C1w) */
  .c-auth .m-auth > .lockup { display: none; }
  .c-auth .m-bar { padding-top: 32px; }
}
@media (max-width: 899px) {
  .c-auth .auth-panel { display: none; }
}
.c-auth .auth-panel { position: relative; }

/* ---------- 홈페이지 (캔버스 H1·H2 시안) ---------- */
.site .site-head { background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site .site-nav a { padding: 8px 2px; } .site .site-nav a:hover { color: var(--brand); }
.site .hero { min-height: 620px; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); }
.site .hero-copy { padding: 104px 0 72px 64px; }
.site .hero h1 { font-size: 56px; }
.hero-sub { margin: 0; font-size: 18px; line-height: 1.6; color: #CFE0D6; max-width: 520px; }
.hero-btn { background: #F3F6F2; color: var(--brand); padding: 0 22px; } .hero-btn:hover { background: #FFFFFF; color: var(--brand-dark); }
.hero-ghost { color: #F3F6F2; border: 1px solid #8FB39B; padding: 0 22px; } .hero-ghost:hover { color: #FFFFFF; border-color: #F3F6F2; }
.hero-note { font-size: 14px; color: #CFE0D6; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-pattern { position: absolute; inset: -20px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: space-around; justify-items: center; opacity: .55; color: #2B5A39; }
.hero-mark { position: relative; stroke: #F3F6F2; stroke-width: 18; }
.site .section { padding: 104px 64px; }
.site .section h2 { font-size: 36px; }
.site .section > h2 { margin-bottom: 40px; }
/* 구간 바탕을 번갈아 깐다: 초록 첫 화면 → 연초록 진행 방식 → 밝은 N-Cut Bio → 연초록 기후 임팩트 → 밝은 회사 소개 → 초록 푸터.
   시안은 진행 방식과 N-Cut Bio 가 같은 바탕에 붙어 있어 스크롤할 때 한 구간처럼 보였다 */
.site .band { background: #E6EBE6; }
.steps5 strong { font-size: 18px; } .steps5 span:last-child { color: var(--ink-2); line-height: 1.6; font-size: 15px; }
/* 넓은 화면: 사진 왼쪽, 글 오른쪽(세로 가운데). 글이 먼저 오는 HTML 순서는 좁은 화면과 화면 읽기 프로그램용 */
.ncut { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "img ." "img head" "img facts" "img ."; column-gap: 64px; }
.ncut-head { grid-area: head; display: flex; flex-direction: column; gap: 22px; }
.ncut .facts { grid-area: facts; margin-top: 22px; }
.ncut-img { grid-area: img; align-self: center; margin: 0; border-radius: var(--radius); overflow: hidden; background: #E1E6E1; aspect-ratio: 16 / 10; }
.ncut-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 580px; }
.facts { margin: 0; } .facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); } .facts dt { font-weight: 700; } .facts dd { margin: 0; color: var(--ink-2); }
.impact { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; }
.site .impact { padding-top: 88px; padding-bottom: 88px; }
.hero-actions { gap: 10px; margin-top: 8px; }
.foot-end { align-items: flex-end; }
.impact > h2 { margin-bottom: 0 !important; line-height: 1.3; }
.impact-list > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid #C9D3CC; }
.impact-list > div:last-child { border-bottom: none; } .impact-list strong { font-size: 18px; } .impact-list span { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.company h2 { margin-bottom: 0 !important; }
.company .lead { max-width: 560px; }
.company-dl { margin: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); row-gap: 16px; column-gap: 20px; font-size: 16px; align-content: start; }
.company-dl dt { color: var(--muted); } .company-dl dd { margin: 0; }
@media (max-width: 1100px) { .site .hero h1 { font-size: 44px; } .impact-list > div { grid-template-columns: 160px minmax(0, 1fr); }
  .site .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .site .hero-mark { width: min(460px, 78%); height: auto; } }
/* 좁은 화면: 캔버스 H2 모바일 시안 (로고를 제목 위에 작게, 신청 버튼은 한 줄 가득, 단계는 번호 | 글) */
@media (max-width: 860px) {
  .site-cta { display: none; }
  .site .site-head { height: 60px; }
  .site .hero { display: flex; flex-direction: column; align-items: center; gap: 18px; min-height: 0; padding: 36px 20px 40px; }
  .site .hero-art { display: flex; order: -1; align-self: center; }
  .site .hero-pattern { display: none; }
  .site .hero-mark { width: 220px; height: auto; stroke-width: 20; }
  .site .hero-copy { padding: 0; gap: 18px; width: 100%; max-width: 560px; }
  .site .hero h1 { font-size: 30px; line-height: 1.3; letter-spacing: -0.025em; }
  .hero-sub { font-size: 16px; }
  .hero-actions { margin-top: 0; }
  .hero-ghost { display: none; }
  .hero-btn { flex: 1 1 100%; height: 52px; font-size: 16px; }
  .hero-note { font-size: 13px; text-align: center; margin-top: -8px; }
  .site .section { padding: 40px 20px 44px; } .site .section h2 { font-size: 22px; } .site .section > h2 { margin-bottom: 16px; }
  .steps5 li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 14px 0; border-top: 1px solid #C9D3CC; }
  .steps5 li:first-child { border-top-color: #C9D3CC; }
  .steps5 li > .mono { grid-row: 1 / span 2; font-size: 14px; }
  .steps5 li > :not(.mono) { grid-column: 2; }
  .steps5 strong { font-size: 16px; } .steps5 span:last-child { font-size: 14px; line-height: 1.55; }
  .ncut { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "img" "facts"; row-gap: 20px; }
  .ncut-head { gap: 12px; } .ncut .facts { margin-top: 0; }
  .ncut .lead { font-size: 15px; }
  .facts div { grid-template-columns: 88px minmax(0, 1fr); padding: 14px 0; }
  .impact, .company { grid-template-columns: 1fr; gap: 20px; }
  .site .impact { padding-top: 40px; padding-bottom: 44px; }
  .impact-list > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .company-dl { grid-template-columns: 110px minmax(0, 1fr); font-size: 15px; }
  .site-foot { padding: 28px 20px; gap: 12px; font-size: 13px; line-height: 1.6; }
  .foot-end { align-items: flex-start; }
}
/* 한국어는 단어 중간에서 줄바꿈하지 않는다 */
body { word-break: keep-all; overflow-wrap: break-word; }
.site .hero h1 { max-width: 600px; }

/* ---- 직원 입력 화면 ---- */
[x-cloak] { display: none !important; }
.work-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--brand-tint); box-shadow: inset 0 0 0 1px #CFE0D3; }
.work-bar strong { font-size: 15px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border: 1px dashed var(--control); border-radius: var(--radius); color: var(--ink-2); }
.empty p { margin: 0; line-height: 1.6; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); border: 1px solid #E2E5DF; display: block; }
.radio { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.t tr.row-added td { background: #EEF6EF; } .t tr.row-added td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.t tr.row-miss td { background: var(--danger-soft); }
.linkbtn.danger { color: var(--danger); }
.center { text-align: center; }
.tiny { font-size: 11px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } .work-bar { flex-direction: column; align-items: stretch; } }

/* 직원 일정 */
.day { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-bottom: 1px solid #EDEFEA; }
.day:last-child { border-bottom: 0; }
.day.today { background: var(--brand-tint); }
.day-head { display: flex; gap: 8px; align-items: center; padding: 14px 18px; font-weight: 600; }
.day-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 18px 10px 0; justify-content: center; }
.sched { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 1px #E2E5DF; }
.sched:hover { box-shadow: inset 0 0 0 1px var(--control); color: var(--ink); }
@media (max-width: 720px) { .day { grid-template-columns: 1fr; } .day-body { padding: 0 12px 12px; } .sched { flex-wrap: wrap; } }
.err-page { min-height: 100vh; max-width: 560px; margin: 0 auto; padding: 48px 20px; display: flex; flex-direction: column; justify-content: center; gap: 40px; color: var(--ink); }
.err-page .lockup { color: var(--brand); text-decoration: none; }
/* 직원 "고객 화면 미리보기" 띠 (읽기 전용) */
.pv-note { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #FDF6E8; border-bottom: 1px solid #EBD9B0; font-size: 13px; line-height: 1.5; color: #3E3000; }
@media (min-width: 900px) { .pv-note { padding: 10px 40px; } }
/* 시안 G5 오류 화면 */
.err-box { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; }
.err-code { font-size: 13px; color: #5A635D; }
.err-t { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; }
.err-d { margin: 0; font-size: 15px; line-height: 1.55; color: #3C4540; }
.err-btn { align-self: flex-start; height: 44px; margin-top: 6px; }

/* ---- 홈페이지 오른쪽 깊이 게이지 목차 ---- */
html { scroll-behavior: smooth; }
.site section[id] { scroll-margin-top: 24px; }
.site .site-head { position: static; }
.depth-rail { position: fixed; right: 32px; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column; gap: 22px; padding: 6px 0; }
.depth-track { position: absolute; right: 5px; top: 12px; bottom: 12px; width: 2px; background: #D6DCD5; border-radius: 1px; }
.depth-fill { position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--brand); border-radius: 1px; transition: height .35s ease; }
.depth-rail a { position: relative; display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; min-height: 24px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.depth-tick { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px #B9C2BA; flex: none; position: relative; z-index: 1; transition: box-shadow .2s, background .2s; }
.depth-lbl { padding: 3px 8px; border-radius: 4px; background: rgba(246, 247, 244, .92); white-space: nowrap; transition: color .2s; }
.depth-rail a.passed .depth-tick { background: var(--brand); box-shadow: none; }
.depth-rail a.on { color: var(--brand); font-weight: 700; }
.depth-rail a.on .depth-tick { background: var(--bg); box-shadow: inset 0 0 0 3px var(--brand), 0 0 0 4px rgba(31, 75, 44, .14); }
.depth-rail a:hover { color: var(--ink); }
.depth-rail a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
/* 어두운 구역(회사 소개 푸터 등) 위에서도 글자가 보이도록 배경을 둔다 */
@media (max-width: 1180px) { .depth-rail { right: 16px; } .depth-rail a:not(.on):not(:hover):not(:focus-visible) .depth-lbl { display: none; } }
@media (max-width: 720px) { .depth-rail { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .depth-fill, .depth-tick { transition: none; } }

/* ---- 검수 반영: 줄바꿈·창·좁은 화면 ---- */
.btn, .linkbtn, .chip, .b, .t th, .seg a, .nav { white-space: nowrap; }
.t td { overflow-wrap: normal; }
.seg-wide { display: inline-flex; flex-wrap: wrap; align-self: flex-start; }
.seg-wide a { padding: 0 16px; }
.dialog { max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.dialog-body { overflow-y: auto; }
.dialog:focus, [role="dialog"]:focus { outline: none; }
@media (max-width: 820px) {
  .admin { flex-direction: column; }
  .sidebar { width: auto; height: auto; position: sticky; top: 0; z-index: 30; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar > nav { order: 3; width: 100%; flex-direction: row !important; overflow-x: auto; gap: 4px !important; scrollbar-width: none; }
  .sidebar .nav { height: 36px; padding: 0 10px; flex: none; }
  .sidebar .who { margin: 0 0 0 auto; padding: 0; border-top: 0; }
  .sidebar .who .who-text { display: none; }
  .main { padding: 16px 16px 40px; }
  .main .card { overflow-x: auto !important; }
  .main header.row { flex-wrap: wrap; gap: 12px; }
  .main [style*="grid-template-columns: repeat(2"], .main [style*="grid-template-columns: 300px"], .main [style*="grid-template-columns: minmax(0, 2fr)"] { grid-template-columns: 1fr !important; }
}
.tabs { overflow-x: auto; scrollbar-width: none; } .tab { white-space: nowrap; flex: none; }
@media (max-width: 820px) { .main .row.gap16.small { flex-wrap: wrap; gap: 4px 14px !important; } .main .h1 { font-size: 22px; } }

/* 깊이 게이지 맨 아래: 다 내려오면 신청으로 이어진다 */
.depth-rail .depth-cta { margin-top: 10px; align-self: flex-end; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--brand); color: #F6F8F5; font-size: 13px; font-weight: 600; display: flex; align-items: center; box-shadow: 0 4px 12px rgba(31, 75, 44, .22); }
.depth-rail .depth-cta:hover { background: var(--brand-dark); color: #F6F8F5; }
.depth-track { bottom: 58px; }
/* 오른쪽 목차 자리만큼 본문을 비워 글자와 겹치지 않게 */
@media (min-width: 1181px) { .site .section { padding-right: 190px; } .site .hero { padding-right: 150px; } }
@media (min-width: 721px) and (max-width: 1180px) { .site .section { padding-right: 88px; } .site .hero { padding-right: 72px; } }
/* 제목이 한 단어만 다음 줄로 떨어지지 않게 줄 길이를 고르게 */
.site .hero h1, .site .section h2 { text-wrap: balance; }

/* 첫 화면엔 신청 버튼이 이미 있으니 목차 버튼은 그 아래로 내려온 뒤에 나타난다 */
.depth-rail .depth-cta { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s; }
.depth-rail.past-hero .depth-cta { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .depth-rail .depth-cta { transition: none; } }

/* =====================================================================
   시안 공통 조각 (G5 공통 상태와 피드백 · 캔버스 아트보드 그대로)
   ===================================================================== */
/* 표: 시안은 class 없는 table 을 쓴다 */
table { border-collapse: collapse; width: 100%; }
th { font-size: 12px; font-weight: 500; color: #5A635D; text-align: left; padding: 10px 14px; border-bottom: 1px solid #DADDD6; background: #F7F8F5; }
td { font-size: 14px; padding: 12px 14px; border-bottom: 1px solid #E7E9E4; vertical-align: middle; }

/* 관리자 대화상자: 가운데 */
.dlg-overlay { position: fixed; inset: 0; background: rgba(23, 32, 27, 0.48); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.dlg { width: 520px; max-width: 100%; max-height: calc(100dvh - 32px); background: #FCFCFA; border-radius: 6px; box-shadow: 0 24px 60px rgba(15, 30, 22, 0.28); display: flex; flex-direction: column; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 0; }
.dlg-head > div { display: flex; flex-direction: column; gap: 4px; }
.dlg-title { margin: 0; font-size: 20px; font-weight: 700; }
.dlg-sub { font-size: 13px; color: #5A635D; }
.dlg-x { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: #3C4540; flex-shrink: 0; background: transparent; border: none; cursor: pointer; border-radius: 6px; }
.dlg-x:hover { background: #EEF0EC; }
.dlg-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid #E2E5DF; }
.dlg-note { margin: 0; padding: 12px 14px; background: #F1F6F2; border-radius: 6px; font-size: 13px; line-height: 1.6; color: #163A21; }
.dlg-warn { margin: 0; padding: 12px 14px; background: #FBEDE6; border-radius: 6px; font-size: 13px; line-height: 1.6; color: #6B2A0E; }
.dlg-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.dlg-check input, .chk { width: 16px; height: 16px; accent-color: #1F4B2C; margin: 0; flex-shrink: 0; }

/* 고객 시트: 아래에서 올라온다 (넓은 화면에서는 가운데 카드) */
.sheet-overlay { position: fixed; inset: 0; background: rgba(23, 32, 27, 0.48); display: flex; flex-direction: column; justify-content: flex-end; z-index: 40; }
.sheet-away { flex-grow: 1; display: block; }
.sheet { background: #FCFCFA; border-radius: 12px 12px 0 0; padding: 10px 20px 28px; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 480px; margin: 0 auto; max-height: calc(100dvh - 40px); overflow-y: auto; }
.sheet-grip { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #848D86; flex-shrink: 0; }
.sheet-title { margin: 0; font-size: 19px; font-weight: 700; }
.sheet-text { margin: 0; font-size: 15px; line-height: 1.6; color: #3C4540; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; }
.sheet-actions .btn { height: 52px; font-size: 16px; }
@media (min-width: 900px) {
  .sheet-overlay { justify-content: center; align-items: center; padding: 16px; }
  .sheet-away { position: absolute; inset: 0; }
  .sheet { position: relative; border-radius: 12px; max-width: 440px; padding-top: 22px; }
  .sheet-grip { display: none; }
}

/* 토스트: 관리자 화면 아래 가운데, 고객은 하단 탭 위 */
.toast { justify-content: space-between; gap: 16px; padding: 0 16px; min-width: 280px; max-width: calc(100vw - 32px); }
.toast-err { background: #6B2A0E; color: #FBEDE6; }
.toast-undo { border: none; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: #BFE0CB; cursor: pointer; padding: 0; }
.toast form { margin: 0; }
/* 시안 G5 오프라인: 끊긴 채 보내면 아래에 남는 안내. 연결되면 저절로 다시 보낸다 */
.offline { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); z-index: 60; display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(15,30,22,.18); }
.offline-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.offline-t b { font-size: 15px; }
.offline-t span { font-size: 13px; line-height: 1.5; color: #3C4540; }
.offline-t .offline-c { font-size: 12px; color: #5A635D; }
.offline .btn { flex: none; height: 40px; }
/* 휴대폰은 아래 시트의 저장·취소 단추를 가리지 않게 위쪽에 */
@media (max-width: 899px) { .offline { top: calc(12px + env(safe-area-inset-top)); bottom: auto; } }
body:has(.tabbar) .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body:has(.tabbar) .toast { bottom: 28px; } }
/* 고객 화면 넓은 화면: 목록·상세는 가운데 한 줄 (폭 720) */
@media (min-width: 900px) { .c-col { max-width: 720px; margin: 0 auto; width: 100%; } }

/* 버튼 "저장 중" (중복 제출 방지) */
.btn[aria-busy="true"] { opacity: 0.85; cursor: progress; pointer-events: none; }
.btn .draw svg { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .draw path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.2s ease-in-out infinite; }
  @keyframes draw { 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -900; } }
}

/* 빈 상태: 항상 다음 행동 하나 */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px; text-align: center; }
.empty-state .es-title { font-size: 16px; font-weight: 600; }
.empty-state .es-text { font-size: 14px; line-height: 1.55; color: #3C4540; max-width: 300px; }

/* 불러오는 중 뼈대 */
.sk { display: block; height: 14px; border-radius: 4px; background: #E3E7E1; }
/* 사진 보기 (A9b): 화면 전체, 어두운 바탕 */
.pv { position: fixed; inset: 0; background: #0F1712; z-index: 50; display: flex; flex-direction: column; }
.pv .btn[disabled] { opacity: .35; }

/* =====================================================================
   접수 상세 (캔버스 A8-A13): 진행 단계, 탭 안 표, 고르기 목록
   ===================================================================== */
.iconbtn { width: 32px; height: 32px; border: none; background: transparent; color: #5A635D; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; }
.iconbtn:hover { background: #E9ECE7; color: #17201B; }
.iconbtn:disabled { opacity: .35; cursor: default; background: transparent; }
.grip { color: #7C857F; cursor: grab; display: inline-flex; border: none; background: transparent; padding: 0; }
.grip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
tr.added td { background: #F1F6F2; }
tr.is-err td { background: #FBF1EC; }
tr.dragging td { opacity: .5; }
.pick-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 110px 120px; gap: 10px; align-items: center; min-height: 44px; padding: 0 12px; border-bottom: 1px solid #EDEFEA; font-size: 14px; }
label.pick-row { cursor: pointer; } label.pick-row:hover { background: #F6F8F5; }
.pick-head { background: #F7F8F5; font-size: 12px; color: #5A635D; font-weight: 500; min-height: 34px; }
.pick-group { padding: 10px 12px 6px; font-size: 12px; font-weight: 600; color: #5A635D; background: #F7F8F5; }
.btn-sm34 { height: 34px; font-size: 13px; font-weight: 500; }
.steps9 { list-style: none; margin: 0; padding: 18px 20px; display: grid; grid-template-columns: repeat(9, minmax(72px, 1fr)); gap: 0; }
.steps9 li { display: flex; flex-direction: column; gap: 8px; }
.step-dot { width: 22px; height: 22px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; background: #FCFCFA; border: 1.5px solid #848D86; }
.step-dot.done { background: #1F4B2C; color: #F6F8F5; border: none; }
.step-dot.now { background: #FCFCFA; border: 2px solid #1F4B2C; box-shadow: 0 0 0 4px #DFEBE4; }
.step-bar { flex-grow: 1; height: 2px; margin: 0 6px; background: #DADDD6; }
.step-bar.on { background: #1F4B2C; }
.step-lbl { font-size: 13px; color: #5A635D; }
.step-lbl.done { color: #17201B; } .step-lbl.now { font-weight: 600; color: #1F4B2C; }
.step-date { font-size: 12px; color: #5A635D; min-height: 16px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.detail-grid.wide { grid-template-columns: minmax(0, 1fr); }
.seg2 { display: flex; gap: 4px; padding: 3px; background: #EDEFEA; border-radius: 6px; }
.seg2 button { height: 34px; padding: 0 14px; border: none; border-radius: 5px; background: transparent; font: inherit; font-size: 13px; color: #3C4540; cursor: pointer; }
.seg2 button[aria-checked="true"] { background: #FCFCFA; font-weight: 600; color: #17201B; box-shadow: 0 1px 2px rgba(23, 32, 27, .12); }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 6px; color: #17201B; border: 1px solid #848D86; background: #FCFCFA; cursor: pointer; text-align: left; }
.opt.on { border: 2px solid #1F4B2C; background: #F1F6F2; padding: 13px; }
.opt.off { border: 1px solid #E2E5DF; background: #F3F4F1; opacity: .7; cursor: not-allowed; }
.opt-dot { width: 16px; height: 16px; border-radius: 8px; margin-top: 2px; flex-shrink: 0; box-sizing: border-box; border: 1.5px solid #7C857F; }
.opt.on .opt-dot { border: 5px solid #1F4B2C; }
.opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.photo-tile { height: 110px; border-radius: 6px; background: #E6E9E3; border: none; padding: 0; overflow: hidden; cursor: pointer; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-add { height: 110px; border-radius: 6px; border: 1px dashed #B9C0B6; background: transparent; font-size: 13px; color: #3C4540; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-add:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.alert-soft-err { padding: 12px 16px; background: #FBEDE6; border-radius: 6px; font-size: 14px; color: #6B2A0E; }
.tab-empty { padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: #3C4540; }
.tab-empty h3 { margin: 0; font-size: 16px; font-weight: 600; color: #17201B; }
.tab-empty p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 440px; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .steps9 { overflow-x: auto; } }

/* =====================================================================
   고객 화면 (시안 C · 휴대폰 390) 과 넓은 화면 (시안 C·w · 1440)
   900px 이상: 위쪽 메뉴(ctop) + 본문 1200 가운데, 목록·상세는 본문 + 오른쪽 칸 380
   ===================================================================== */
@media (max-width: 899px) { .only-w { display: none !important; } }
@media (min-width: 900px) { .only-m { display: none !important; } }
.cm { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; }
.cb { padding: 8px 20px 96px; display: flex; flex-direction: column; gap: 28px; }
.cb.cb-list { gap: 16px; }
.cb.cb-detail { padding: 20px 20px 40px; gap: 16px; }
.cb.cb-one { padding: 20px 20px 40px; gap: 16px; }
body:has(.tabbar) .cb.cb-detail { padding-bottom: 96px; }
@media (min-width: 900px) {
  .cm { max-width: none; padding: 0 40px; }
  .cb, .cb.cb-list, .cb.cb-detail { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 0 64px; gap: 24px; }
  .cb.cb-one { width: 100%; max-width: 560px; margin: 0 auto; padding: 32px 0 64px; gap: 20px; }
}
/* 휴대폰 머리말: 로고 + 알림 (C5), 제목 (C8·C12·C13·C15), 뒤로 + 제목 (C9~C14) */
.chd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.chd .wm { font-size: 17px; }
.cht { padding: 20px 20px 8px; }
.cht h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.cbar { display: flex; align-items: center; gap: 4px; padding: 10px 8px; border-bottom: 1px solid #E2E5DF; background: #FAFBF8; }
.cbar a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.cbar span { font-size: 16px; font-weight: 600; }
.cback { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; color: var(--ink-2); text-decoration: none; align-self: flex-start; }
.cback:hover { color: var(--brand); }
.cbell { width: 44px; height: 44px; color: var(--ink); display: flex; align-items: center; justify-content: center; position: relative; }
.cbell .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 4px; background: var(--brand); }
/* 제목 줄: 휴대폰은 위아래, 넓은 화면은 제목 왼쪽 · 단추 오른쪽 */
.chead { display: flex; flex-direction: column; gap: 16px; }
.chead-t { display: flex; flex-direction: column; gap: 4px; }
.chead-t .sub { font-size: 14px; color: var(--muted); }
.chead-t h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.chead .ccta { height: 52px; font-size: 16px; }
@media (min-width: 900px) {
  .chead { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .chead-t h1 { font-size: 26px; }
  .chead .ccta { height: 44px; font-size: 15px; }
}
/* 카드 */
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ccard h2, .ch2 { margin: 0; font-size: 17px; font-weight: 600; }
.ccard .sp { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ccard .sp-b { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
@media (min-width: 900px) { .ccard { padding: 20px 22px; } }
.cm .b { height: 26px; padding: 0 9px; font-size: 13px; }
.cm .dl { grid-template-columns: 72px minmax(0, 1fr); font-size: 15px; }

/* ---- 홈 (C5 · C5w) ---- */
.ch-grid { display: flex; flex-direction: column; gap: 28px; }
.ch-main, .ch-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.ch-cases { display: flex; flex-direction: column; gap: 12px; }
.case .case-top { display: flex; justify-content: space-between; align-items: center; }
.case .case-t { display: flex; flex-direction: column; gap: 2px; }
.case .case-t b { font-size: 17px; font-weight: 600; }
.case .case-t span { font-size: 14px; color: var(--ink-2); }
.case .case-link { font-size: 14px; font-weight: 600; color: var(--brand); }
.cdv { gap: 10px; }
.cdv p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.cdv .btn { height: 44px; }
.cup { display: flex; flex-direction: column; gap: 12px; }
.cup-head { display: flex; justify-content: space-between; align-items: baseline; }
.cup-head a { font-size: 14px; }
.cup-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.cup-i { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.cup-i:last-child { border-bottom: none; }
.cup-d { display: flex; flex-direction: column; align-items: center; }
.cup-d span { font-size: 12px; color: var(--muted); }
.cup-d b { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.cup-t { display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.cup-t b { font-size: 15px; font-weight: 600; }
.cup-t span { font-size: 14px; color: var(--ink-2); }
.cup-empty { margin: 0; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .ch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  .ch-main, .ch-side { gap: 20px; }
  .ch-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cdv { gap: 14px; }
  .cup { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; gap: 0; overflow: hidden; }
  .cup-head { padding: 18px 18px 10px; }
  .cup-list { border: none; border-top: 1px solid var(--line-2); border-radius: 0; }
  .cup-i { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 18px; }
  .cup-empty { padding: 0 18px 18px; }
}

/* ---- 접수 내역 (C8 · C8w) ---- */
.ctabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #E6E9E3; border-radius: 6px; }
.ctab { height: 40px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.ctab.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(23, 32, 27, .12); }
.ctab:hover { color: var(--ink); }
@media (min-width: 900px) { .ctabs { width: 320px; } }
.clist { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.clist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.clist a:last-child { border-bottom: none; }
.clist .t1 { font-size: 16px; font-weight: 600; }
.clist .t2 { font-size: 14px; color: var(--ink-2); }
.clist .t3 { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.clist .chev { color: var(--muted); display: flex; align-items: center; }
.clist-empty { margin: 0; padding: 24px 18px; font-size: 14px; color: var(--muted); }
.cnote { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---- 접수 상세 (C9 · C9c · C10 · C11 · C11w) ---- */
.cd-head { display: flex; flex-direction: column; gap: 6px; }
.cd-head .top { display: flex; justify-content: space-between; align-items: center; }
.cd-head .code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cd-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.cd-head .line { font-size: 14px; color: var(--ink-2); }
.cd-grid { display: flex; flex-direction: column; gap: 16px; }
.cd-main, .cd-side { display: contents; }
/* 휴대폰에서는 두 칸을 풀어 시안 순서대로 (o1~o9), 넓은 화면은 칸 안의 원래 순서 */
@media (max-width: 899px) {
  .cd-grid > *, .cd-main > *, .cd-side > * { order: 5; }
  .o1 { order: 1 !important; } .o2 { order: 2 !important; } .o3 { order: 3 !important; } .o4 { order: 4 !important; }
  .o6 { order: 6 !important; } .o7 { order: 7 !important; } .o8 { order: 8 !important; } .o9 { order: 9 !important; }
}
.cbanner { padding: 16px; border-radius: 6px; display: flex; flex-direction: column; gap: 4px; }
.cbanner b { font-size: 15px; font-weight: 600; }
.cbanner span { font-size: 14px; line-height: 1.55; }
.cbanner.warn { background: #FDF6E8; color: #3E3000; }
.cbanner.ok { background: #F1F6F2; color: #163A21; }
.creject { background: #FDF6E8; border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 8px; color: #3E3000; }
.creject h2 { margin: 0; font-size: 16px; font-weight: 600; }
.creject p { margin: 0; font-size: 15px; line-height: 1.6; }
/* 시안 C9d 취소: 반려와 달리 회색 */
.ccancel { background: #EAECE8; color: #17201B; }
.ccancel p { color: #3C4540; }
.cmemo { margin: 0; padding: 12px; background: var(--bg); border-radius: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.ctl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ctl li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 12px; }
.ctl .rail { display: flex; flex-direction: column; align-items: center; }
.ctl .dot { width: 14px; height: 14px; border-radius: 7px; margin-top: 4px; flex-shrink: 0; box-sizing: border-box; background: var(--surface); border: 1.5px solid var(--control); }
.ctl .ln { width: 2px; flex-grow: 1; margin-top: 4px; background: var(--line); }
.ctl li:last-child .ln { display: none; }
.ctl .tx { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; }
.ctl .tx b { font-size: 15px; font-weight: 400; color: var(--muted); }
.ctl .tx span { font-size: 13px; color: var(--ink-2); }
.ctl .dt { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.ctl .done .dot { background: var(--brand); border: none; }
.ctl .done .ln { background: var(--brand); }
.ctl .done .tx b { font-weight: 500; color: var(--ink); }
.ctl .now .dot { background: var(--brand); border: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.ctl .now .tx b { font-weight: 700; color: var(--brand); }
.cmetrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cmetric { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--bg); border-radius: 6px; }
.cmetric .n { font-size: 13px; color: var(--ink-2); }
.cmetric .v { font-family: var(--mono); font-size: 20px; }
.cmetric .v small { font-size: 12px; color: var(--muted); }
.cmetric .b { align-self: flex-start; height: 22px; font-size: 12px; }
.cprods { display: flex; flex-direction: column; gap: 10px; }
.cprod { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid #E2E5DF; border-radius: 6px; }
.cprod b { font-size: 15px; font-weight: 600; }
.cprod span { font-size: 14px; color: var(--ink-2); }
.ccaution { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: #FDF6E8; border-radius: 6px; }
.ccaution b { font-size: 14px; font-weight: 600; color: #7A4F00; }
.ccaution span { font-size: 14px; line-height: 1.6; color: #3E3000; white-space: pre-line; }
.cword { display: flex; flex-direction: column; gap: 6px; }
.cword b { font-size: 14px; font-weight: 600; }
.cword p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.crounds { display: flex; flex-direction: column; }
.crounds a, .crounds > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.crounds > :last-child { border-bottom: none; }
.crounds .no { width: 20px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.crounds .w { flex-grow: 1; display: flex; flex-direction: column; }
.crounds .w b { font-size: 15px; font-weight: 600; }
.crounds .w span { font-size: 13px; color: var(--ink-2); }
.cphotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cphotos button { height: 110px; border: none; border-radius: 6px; background: #E6E9E3 center / cover no-repeat; cursor: pointer; padding: 0; }
.cactions { display: flex; flex-direction: column; gap: 8px; }
.cactions .btn { height: 48px; }
.cactions .note { font-size: 13px; color: var(--muted); text-align: center; }
.cbig { height: 52px; font-size: 15px; }
.ccontact { height: 52px; border-radius: 6px; border: 1px solid var(--control); background: var(--surface); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; font-family: inherit; width: 100%; }
.cpcard-flush { padding: 0 !important; gap: 0 !important; overflow: hidden; }
.cpcard-flush .sp-b { padding: 18px 22px 12px; }
@media (min-width: 900px) {
  .cd-head { gap: 6px; }
  .cd-head .top { justify-content: flex-start; gap: 10px; }
  .cd-head .code { font-size: 13px; }
  .cd-head h1 { font-size: 26px; }
  .cd-headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
  .cd-headrow .btn { height: 44px; font-size: 15px; }
  .cd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  .cd-main, .cd-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  .cmetrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cprods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- 고객 시트: 휴대폰은 아래에서 올라오고, 넓은 화면은 가운데 창 (C11b → C11bw) ---- */
.cs-over { position: fixed; inset: 0; background: rgba(23, 32, 27, 0.48); display: flex; flex-direction: column; justify-content: flex-end; z-index: 40; }
.cs-away { flex-grow: 1; min-height: 24px; display: block; }
.cs { background: #FCFCFA; border-radius: 12px 12px 0 0; padding: 10px 20px 28px; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 480px; margin: 0 auto;
      max-height: calc(100dvh - 40px); overflow-y: auto; box-sizing: border-box; }
.cs-grip { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #848D86; flex-shrink: 0; }
.cs-head, .cs-body { display: contents; }
.cs-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.cs-head .sub, .cs-head .dlg-x { display: none; }
.cs-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cs-foot { display: flex; flex-direction: column; gap: 8px; }
.cs-foot .btn { height: 52px; font-size: 16px; }
.cs h3 { margin: 0; font-size: 15px; font-weight: 600; }
.cs .dl { grid-template-columns: 72px minmax(0, 1fr); font-size: 15px; }
@media (min-width: 900px) {
  .cs-over { justify-content: center; align-items: center; padding: 16px; }
  .cs-away { position: absolute; inset: 0; }
  .cs { position: relative; width: 560px; max-width: 100%; border-radius: 6px; padding: 0; gap: 0; box-shadow: 0 24px 60px rgba(15, 30, 22, 0.28); max-height: calc(100dvh - 32px); }
  .cs.cs-sm { width: 520px; }
  .cs-grip { display: none; }
  .cs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 0; }
  .cs-head > div { display: flex; flex-direction: column; gap: 4px; }
  .cs-head h2 { font-size: 20px; }
  .cs-head .sub { display: block; font-size: 13px; color: var(--muted); }
  .cs-head .dlg-x { display: flex; }
  .cs-body { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; overflow-y: auto; }
  .cs-foot { flex-direction: row; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid #E2E5DF; }
  .cs-foot .btn { height: 40px; font-size: 14px; }
}
/* 배송 (C11b) */
.dv-box { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--bg); border-radius: 6px; }
.dv-box b { font-size: 16px; font-weight: 600; }
.dv-box span { font-size: 14px; color: var(--ink-2); }
.dv-box.ship { gap: 12px; }
.dv-box.done { background: #F1F6F2; }
.dv-box.done b { color: var(--brand); }
.dv-box .dl { align-items: center; }
.dv-trk { display: flex; align-items: center; gap: 8px; }
.dv-trk .mono { font-size: 16px; }
.dv-trk .btn { height: 32px; padding: 0 10px; font-size: 13px; }
.dv-go { height: 48px; font-size: 15px; }
.dv-items { display: flex; flex-direction: column; }
.dv-items div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.dv-items div:last-child { border-bottom: none; }
.dv-items .mono { white-space: nowrap; }
.dv-sec { display: flex; flex-direction: column; gap: 8px; }
.dv-sec.tight { gap: 6px; }
.dv-sec .hint2 { font-size: 13px; color: var(--muted); }
.dv-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.dv-hist li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.dv-hist .mono { font-size: 13px; color: var(--muted); }
/* 담당자 문의 (C11a) */
.cstaff { display: flex; flex-direction: column; background: var(--bg); border-radius: 6px; }
.cstaff div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-bottom: 1px solid #E2E5DF; }
.cstaff div:last-child { border-bottom: none; }
.cstaff b { font-size: 15px; font-weight: 600; }
.cstaff span { font-size: 13px; color: var(--ink-2); }
@media (min-width: 900px) { .cs-foot.rev { flex-direction: row-reverse; justify-content: flex-start; } }
/* 신청 완료 (C7) */
.cdone { min-height: 100dvh; box-sizing: border-box; padding: 72px 24px 32px; display: flex; flex-direction: column; gap: 24px; }
.cdone-ic { width: 56px; height: 56px; border-radius: 28px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.cdone h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.cdone p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cdone-act { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) {
  .cdone { min-height: auto; max-width: 560px; margin: 0 auto; padding: 56px 0 64px; }
  .cdone-act { margin-top: 8px; }
}
/* 토양 분석 신청 · 고치기 (C6 · C6a · C6w · C9a) */
.cb.cb-form { padding: 0; gap: 0; }
.cf-grid { display: block; }
.cf { padding: 20px 20px 32px; display: flex; flex-direction: column; gap: 26px; }
.cf .lbl { font-size: 15px; }
.cf .lbl span, .cf legend span, .cf-h span { font-size: 14px; font-weight: 400; color: var(--muted); }
.cf .inp { height: 48px; font-size: 15px; }
.cf .ta { font-size: 15px; }
.cf .hint { font-size: 13px; }
.cf-intro { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cf-alert { padding: 14px 16px; background: #FBEDE6; border-radius: 6px; font-size: 14px; line-height: 1.55; color: #6B2A0E; }
.cf-set { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cf-set legend { font-size: 17px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.cf-err { font-size: 14px; color: #9A3B12; }
.cf-plots { display: flex; flex-direction: column; gap: 10px; }
.pk { min-height: 64px; padding: 14px 16px; border-radius: 6px; font: inherit; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 12px; border: 1px solid var(--control); background: var(--surface); text-align: left; }
.pk.on { border: 2px solid var(--brand); background: #F1F6F2; padding: 13px 15px; }
.pk-dot { width: 20px; height: 20px; border-radius: 10px; flex-shrink: 0; box-sizing: border-box; border: 1.5px solid #7C857F; }
.pk.on .pk-dot { border: 6px solid var(--brand); }
.pk-t { display: flex; flex-direction: column; gap: 2px; }
.pk-t b { font-size: 15px; font-weight: 600; }
.pk-t span { font-size: 14px; color: var(--ink-2); }
.pk-add { min-height: 52px; border-radius: 6px; border: 1px dashed #B9C0B6; background: transparent; display: flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.pk-add:hover { border-color: var(--brand); color: var(--brand); }
.cf-syms { display: flex; flex-wrap: wrap; gap: 8px; }
.sy { min-height: 44px; padding: 0 14px; border-radius: 22px; font: inherit; font-size: 14px; cursor: pointer; border: 1px solid var(--control); background: var(--surface); color: var(--ink); }
.sy.on { border-color: var(--brand); background: var(--brand); color: #F6F8F5; font-weight: 600; }
.cf-photos { display: flex; flex-direction: column; gap: 10px; }
.cf-h { font-size: 17px; font-weight: 600; }
.cf-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cf-ph { aspect-ratio: 1; border-radius: 6px; background: #E6E9E3 center / cover no-repeat; position: relative; }
.cf-phx { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 16px; border: none; background: rgba(23, 32, 27, .72); color: #F6F8F5; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cf-padd { aspect-ratio: 1; border-radius: 6px; border: 1px dashed #B9C0B6; background: transparent; font-size: 14px; color: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cf-padd:hover, .cf-padd:focus-within { border-color: var(--brand); color: var(--brand); }
.cf-go { height: 52px; font-size: 16px; }
@media (min-width: 900px) {
  .cb.cb-form { padding: 32px 0 64px; gap: 24px; }
  .cf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  .cf { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; gap: 28px; }
  .cf-plots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pk-add { min-height: 64px; }
  .cf-pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .cf-narrow { max-width: 320px; }
  .cf-grid aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
}
/* 알림 (C12 · C12w) */
.cn { display: flex; flex-direction: column; }
.cn-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 14px; color: var(--ink-2); }
.cn-all { border: none; background: transparent; font: inherit; font-size: 14px; color: var(--brand); cursor: pointer; min-height: 44px; padding: 0; }
.cn-all:disabled { color: var(--muted); cursor: default; }
.cn-list { display: flex; flex-direction: column; background: var(--surface); border-top: 1px solid var(--line); }
.cn-list a { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.cn-list a.new { background: #F7FAF8; }
.cn-dot { display: block; width: 8px; height: 8px; border-radius: 4px; margin-top: 7px; background: transparent; }
.cn-list a.new .cn-dot { background: var(--brand); }
.cn-t { display: flex; flex-direction: column; gap: 3px; }
.cn-t b { font-size: 15px; font-weight: 500; }
.cn-list a.new .cn-t b { font-weight: 600; }
.cn-t span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cn-t small, .cn-at { font-size: 12px; color: var(--muted); }
.cn-empty { margin: 0; padding: 24px 20px; font-size: 14px; color: var(--muted); }
.cn-note { padding: 16px 20px 32px; }
@media (min-width: 900px) {
  .cn { max-width: 800px; margin: 0 auto; width: 100%; padding: 32px 0 64px; gap: 20px; box-sizing: border-box; }
  .cm .cn { margin-left: max(0px, calc((100% - 1200px) / 2)); }
  .cn-top { padding: 0; }
  .cn-list { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  .cn-list a { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; }
  .cn-list a:last-child { border-bottom: none; }
  .cn-at { font-size: 13px; white-space: nowrap; }
  .cn-empty { padding: 0; }
  .cn-note { padding: 0; }
}
/* 처방 일정 (C13 · C13w) */
.cb.cb-sched { padding: 8px 20px 96px; gap: 24px; }
.csg { display: flex; flex-direction: column; gap: 24px; }
.csg-l, .csg-r { display: contents; }
.csg-g { display: flex; flex-direction: column; gap: 10px; }
.csg-h { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.csg-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.si { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "d t r" "d f f"; column-gap: 14px; row-gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.si:last-child { border-bottom: none; }
.si-d { grid-area: d; display: flex; flex-direction: column; align-items: center; }
.si-d span { font-size: 12px; color: var(--muted); }
.si-d b { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.si-t { grid-area: t; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.si-t a { font-size: 15px; font-weight: 600; color: var(--ink); }
.si-t span { font-size: 14px; color: var(--ink-2); }
.si.skip .si-t a { color: var(--muted); } .si.skip .si-t span { color: var(--faint); }
.si-r { grid-area: r; }
.si-f { grid-area: f; margin: 0; display: flex; flex-direction: column; }
.si-f .btn { height: 44px; font-size: 14px; }
@media (min-width: 900px) {
  .cb.cb-sched { max-width: 1200px; margin: 0 auto; padding: 32px 0 64px; }
  .csg { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; align-items: start; }
  .csg-l, .csg-r { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  .csg-g { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; gap: 0; overflow: hidden; }
  .csg-h { padding: 18px 20px 12px; font-size: 17px; color: var(--ink); }
  .csg-list { border: none; border-top: 1px solid var(--line-2); border-radius: 0; }
  .si { grid-template-columns: 52px minmax(0, 1fr) auto auto; grid-template-areas: "d t r f"; column-gap: 16px; align-items: center; padding: 16px 20px; }
  .si-f .btn { height: 40px; }
}
/* 회차 상세 (C14 · C14w) */
.cr-head { display: flex; flex-direction: column; gap: 6px; }
.cr-head .top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-2); }
.cr-head h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.cr-head .line { font-size: 14px; color: var(--ink-2); }
.cr-prods { display: flex; flex-direction: column; gap: 10px; }
.cr-prod { padding: 14px; border: 1px solid #E2E5DF; border-radius: 6px; display: flex; flex-direction: column; gap: 8px; }
.cr-prod b { font-size: 15px; font-weight: 600; }
.cr-amt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cr-amt div { display: flex; flex-direction: column; gap: 2px; }
.cr-amt span:first-child { font-size: 13px; color: var(--ink-2); }
.cr-amt .mono { font-size: 22px; }
.cr-photo { height: 96px; border-radius: 6px; border: 1px dashed #B9C0B6; background: transparent; font-size: 14px; color: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cr-photo:hover, .cr-photo:focus-within { border-color: var(--brand); color: var(--brand); }
@media (min-width: 900px) {
  .cr-head .top { justify-content: flex-start; gap: 10px; }
  .cr-head h1 { font-size: 26px; }
  .cr-prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 내 농장 (C15 · C15w) */
.cb.cb-farm { gap: 20px; }
.cf2 { gap: 20px; }
.cfarm { gap: 12px; }
.cfarm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cfarm-top h2 { font-size: 19px; font-weight: 700; }
.cfarm-top .btn { height: 44px; font-size: 14px; flex-shrink: 0; }
.cplots { display: flex; flex-direction: column; gap: 10px; }
.cplots-head { display: flex; justify-content: space-between; align-items: center; }
.cplot-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.cplot-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line-2); }
.cplot-list > div:last-child { border-bottom: none; }
.cplot-list .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cplot-list .t b { font-size: 15px; font-weight: 600; }
.cplot-list .t span { font-size: 14px; color: var(--ink-2); }
.cplot-list .t small { font-size: 12px; color: var(--muted); }
.cplot-list .btn { height: 44px; font-size: 14px; flex-shrink: 0; }
.cplots .pk-add { min-height: 52px; }
.cplots-note { font-size: 13px; color: var(--muted); }
.clogin { display: flex; flex-direction: column; gap: 10px; }
.clogin-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.clogin-list a { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 0 18px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.clogin-list a:last-child { min-height: 56px; border-bottom: none; }
.cs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 899px) { .cb.cb-farm { padding: 8px 20px 96px; } .cf2 .cd-main, .cf2 .cd-side { display: contents; } .cf2 { display: flex; flex-direction: column; gap: 20px; } }
@media (min-width: 900px) {
  .cfarm-top h2 { font-size: 20px; }
  .cfarm-top .btn { height: 40px; }
  .cfarm .dl { grid-template-columns: 96px minmax(0, 1fr); }
  .cplots { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; gap: 0; overflow: hidden; }
  .cplots-head { padding: 16px 22px; }
  .cplots-note { padding: 12px 22px; }
  .clogin { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; gap: 0; overflow: hidden; }
  .clogin h2 { padding: 18px 22px 12px; }
  .clogin-list { border: none; border-radius: 0; }
  .clogin-list a { padding: 0 22px; border-bottom: none; border-top: 1px solid var(--line-2); }
}
/* 고객 가입 (C2w): 넓은 화면에서도 카드 없이 오른쪽 칸에 바로 (시안) */
@media (min-width: 900px) { .c-auth .m-form { max-width: none; margin: 0; background: transparent; border: none; padding: 12px 0 !important; } }
/* 첫 로그인 비밀번호 조건 (A2) */
.pwr { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pwr-dot { width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px #7C857F; color: transparent; }
.pwr.ok { color: var(--ink); }
.pwr.ok .pwr-dot { background: var(--brand); box-shadow: none; color: #F3F6F2; }
/* 비회원 신청 · 완료 · 신청 조회 (C6g · C6h · C6i): 휴대폰은 시안처럼 카드를 쌓고, 넓은 화면은 고객 신청(C6w)처럼 본문 + 오른쪽 요약.
   사진 추가 칸은 x-show 로 숨겼다 보이므로 display 를 class 로 준다 */
.gq { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gq-padd { height: 96px; border: 1px dashed #848D86; border-radius: 6px; background: #FCFCFA; font-size: 14px; color: #3C4540; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.gq-padd:hover, .gq-padd:focus-within { border-color: var(--brand); color: var(--brand); }
.gdone { gap: 20px; }
.hero-note a { color: #F3F6F2; }
@media (max-width: 899px) { .gdone { padding-top: 64px; } }
@media (min-width: 900px) { .gq { padding: 0; } }

/* 시안 C0 신청 방법 고르기: 홈페이지 "토양 분석 신청"이 오는 곳 (가입하고 · 로그인하고 · 가입 없이) */
.apply-body { padding: 28px 20px 0; display: flex; flex-direction: column; gap: 22px; }
.apply-opts { display: flex; flex-direction: column; gap: 12px; }
.apply-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 88px; padding: 16px 14px 16px 18px; background: var(--surface); border: 1px solid #848D86; border-radius: var(--radius); text-decoration: none; color: var(--ink); box-sizing: border-box; }
.apply-opt:hover { border-color: var(--brand); color: var(--ink); }
.apply-opt .t { display: flex; flex-direction: column; gap: 5px; }
.apply-opt b { font-size: 17px; font-weight: 600; }
.apply-opt .d { font-size: 14px; line-height: 1.55; color: #3C4540; }
.apply-opt .ic { color: #5A635D; }
.apply-look { margin: 0; font-size: 14px; color: #3C4540; display: flex; align-items: center; gap: 6px; min-height: 44px; }
@media (min-width: 900px) { .c-auth .apply-body { padding: 16px 0 0; } }
