
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }   /* round102 LS4: 세로 스크롤 유무에 따라 상단바·본문이 좌우로 15px 움직이지 않게 자리를 항상 비워 둔다 */
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg-subtle);
}
.topbar {
  height: var(--h-topbar);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-5);
  background: var(--c-bg);
  color: var(--c-primary);
  border-bottom: 3px solid var(--c-primary);
}
.topbar strong { color: var(--c-primary); font-size: var(--fs-lg); letter-spacing: 0.01em; }
.topbar .logout-form { margin-left: auto; }
.topbar .brand { display: inline-flex; align-items: center; gap: 8px; color: #2B3038; font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.topbar .brand:hover { text-decoration: none; opacity: .9; }
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 8px; color: #2B3038; }
.auth-brand .brand-mark { width: 30px; height: 30px; }
.auth-card { max-width: 420px; }
.auth-card form {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.auth-brand { font-size: 24px; font-weight: 800; letter-spacing: 0.01em; margin: var(--sp-5) 0 var(--sp-1); }
.page-title { font-size: var(--fs-xl); margin: 0 0 var(--sp-4); }
.steps {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.step.is-active { color: var(--c-primary); font-weight: 600; }
.step.is-done { color: var(--c-text); }
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-5);
}
.content-wide { max-width: 1100px; }
.detail-head { margin-bottom: var(--sp-2); }
fieldset {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-bg);
  padding: var(--sp-4) var(--sp-5);
  margin: 0 0 var(--sp-5);
}
legend { font-size: var(--fs-lg); font-weight: 600; padding: 0 var(--sp-2); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; margin-bottom: var(--sp-1); font-size: var(--fs-sm); color: var(--c-text-muted); }
.req { color: var(--c-danger); }
input, select {
  width: 100%;
  min-width: 0;
  height: var(--h-control);
  padding: 0 var(--sp-2);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-md);
  background: var(--c-bg);
  color: var(--c-text);
}
input:focus, select:focus, button:focus, a:focus, textarea:focus {
  outline: 2px solid var(--c-focus);   
  outline-offset: 1px;
}
textarea {
  width: 100%;
  padding: var(--sp-2);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  background: var(--c-bg);
  color: var(--c-text);
  resize: vertical;
}
.field-error { margin: var(--sp-1) 0 0; font-size: var(--fs-xs); color: var(--c-danger); }
.field-hint { display: block; margin-top: var(--sp-1); font-size: var(--fs-xs); }
.hint-danger { color: var(--c-danger); }
.hint-success { color: var(--c-success); }
.row-actions { display: flex; gap: var(--sp-1); align-items: center; }
.inline-form { display: inline; margin: 0; }
.savebar {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: var(--h-control);
  padding: 0 var(--sp-4);
  min-width: 64px;
  justify-content: center;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-md);
  cursor: pointer;
  text-decoration: none;
}
.btn:where(:hover) { background: var(--c-bg-hover); }   /* round146: 서식 원본과 같은 (0,1,0) — 색 버튼을 덮지 않는다 */
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); }
/* 파괴적 동작(삭제) — .btn 뒤에 두어야 배경이 이긴다(라운드 35 정정) */
.btn:disabled { opacity: .6; cursor: default; }
.empty-state {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  text-align: center;
  color: var(--c-text-muted);
}
.page-desc { color: var(--c-text-muted); font-size: var(--fs-sm); margin: 0 0 var(--sp-4); }
.doc-list {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.doc-row { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border); }
.doc-row:last-child { border-bottom: none; }
.doc-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.doc-name { font-weight: 600; }
.doc-body { display: flex; align-items: center; gap: var(--sp-2); }
.doc-body input[type="file"] { height: auto; border: none; padding: 0; width: auto; flex: 1; }
.doc-file { font-family: var(--font-mono); font-size: var(--fs-sm); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--sp-2);
  height: 20px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
}
.badge-neutral { background: var(--c-info-bg); color: var(--c-info); }
.badge-empty { background: var(--c-neutral-bg); color: var(--c-neutral); }
.badge-info { background: var(--c-info-bg); color: var(--c-info); }
.badge-success { background: var(--c-success-bg); color: var(--c-success); }
.badge-warning { background: var(--c-warning-bg); color: var(--c-warning); }
.badge-danger { background: var(--c-danger-bg); color: var(--c-danger); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.return-form { display: flex; gap: var(--sp-1); align-items: center; margin-top: var(--sp-1); }
.return-form input { width: 140px; }
.ship-form { display: flex; gap: var(--sp-1); align-items: center; }
.ship-form input { width: 110px; }
.section-title { font-size: var(--fs-lg); margin: var(--sp-5) 0 var(--sp-2); }
.verdict-note { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); color: var(--c-danger); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.data-table th, .data-table td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: middle;
}
.data-table thead th { background: var(--c-bg-subtle); color: var(--c-text-muted); font-weight: 600; }
.data-table tbody tr:hover { background: var(--c-bg-hover); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .empty-cell { text-align: center; color: var(--c-text-muted); padding: var(--sp-6); }
.kv-table th { width: 180px; background: var(--c-bg-subtle); color: var(--c-text-muted); font-weight: 600; }
.btn-sm { height: var(--h-control-sm); padding: 0 var(--sp-3); min-width: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.site-footer { margin-top: 32px; padding: 16px 0; border-top: 1px solid var(--border, #ddd); font-size: 0.85em; line-height: 1.6; }
.site-footer .footer-links a { margin-right: 4px; }
.legal-page h2 { margin-top: 24px; font-size: 1.05em; }
.legal-page p, .legal-page td, .legal-page th { line-height: 1.7; }
.auth-card { max-width: 400px; margin-left: auto; margin-right: auto; }
.auth-card .auth-brand { text-align: center; font-size: 26px; margin: var(--sp-5) 0 var(--sp-1); }
.auth-card .page-title { text-align: center; font-size: var(--fs-md); color: var(--c-text-muted); font-weight: 600; }
.auth-card form { border-radius: 10px; padding: var(--sp-5); box-shadow: 0 1px 3px rgba(17, 17, 17, 0.05); }
.auth-card input:not([type="checkbox"]):not([type="radio"]) { height: 44px; box-sizing: border-box; }
.auth-card .savebar { display: flex; }
/* 2026-09-16 지시 2: [로그인]은 간편 로그인 버튼과 같은 크기(높이 44·라운드 8·굵게) */
.auth-card .savebar .btn { flex: 1; height: 44px; padding: 0; border-radius: 8px; font-size: var(--fs-md); font-weight: 700; }
/* 지시 1·3: 회원가입·아이디 찾기·비밀번호 찾기 = 버튼 3개(구분자 없음), 좁으면 세로로 */
.auth-card .auth-links { display: flex; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-4); }
.auth-card .auth-btn { flex: 1 1 auto; height: 40px; padding: 0 var(--sp-3); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--c-border-strong); border-radius: 8px; background: var(--c-bg); color: var(--c-text); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; text-decoration: none; }
.auth-card .auth-btn:hover { background: var(--c-surface-2, #F5F6F8); text-decoration: none; }
@media (max-width: 420px) { .auth-card .auth-links { flex-direction: column; } }
.auth-card .banner { border-radius: 8px; }

/* 라운드 79(buyer-id-login BL4): 간편 로그인 버튼 — 제공자 브랜드 색은 각사 가이드 값(토큰 예외, 다른 곳에 재사용 금지) */
.auth-card .social-login, .signup2 .social-login { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.auth-card .social-login .social-t, .signup2 .social-login .social-t { margin: 0 0 var(--sp-1); text-align: center; font-size: var(--fs-xs); color: var(--c-text-muted); }
.auth-card .social, .signup2 .social { height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.auth-card .social .social-ic, .signup2 .social .social-ic { display: inline-flex; width: 20px; height: 20px; }
.auth-card .social .social-ic svg, .signup2 .social .social-ic svg { width: 20px; height: 20px; }
.auth-card .welcome-card { text-align: center; padding: var(--sp-5) var(--sp-4); border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-bg); margin-bottom: var(--sp-4); }
.auth-card .welcome-check { margin: 0 0 var(--sp-2); color: var(--c-success); }
.auth-card .welcome-check svg { width: 48px; height: 48px; }
.auth-card .welcome-t { font-size: var(--fs-lg); font-weight: 800; margin: 0 0 var(--sp-2); }
.auth-card .welcome-d { margin: 0 0 var(--sp-1); font-size: var(--fs-sm); }
.auth-card .social-naver, .signup2 .social-naver { background: #03C75A; color: #FFFFFF; border-color: #03C75A; }
.auth-card .social-kakao, .signup2 .social-kakao { background: #FEE500; color: #191919; border-color: #FEE500; }
.auth-card .social-google, .signup2 .social-google { background: #FFFFFF; color: #1F1F1F; border: 1px solid var(--c-border-strong); }
.auth-card .social:hover, .signup2 .social:hover { filter: brightness(0.96); text-decoration: none; }
/* round206: [카카오톡 앱으로 로그인]은 900px 이하에서만 — 그때 웹 카카오 링크는 숨긴다(카카오톡이 없으면 SDK가 웹 로그인으로 이어 간다) */
.auth-card .social-kakao-app { display: none; border: 0; width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) {
  .auth-card .social-kakao-app { display: flex; }
  .auth-card .social-login:has(.social-kakao-app) a.social-kakao { display: none; }
}
/* 라운드 81(buyer-social-ops S5): 최근 로그인 말풍선 — 마지막에 쓴 수단 버튼 위 오른쪽 */
.auth-card .social, .auth-card .recent-wrap { position: relative; }
.auth-card .recent-wrap { overflow: visible; }
.auth-card .recent-login { position: absolute; right: 8px; top: -13px; padding: 3px 9px; border-radius: 999px; background: var(--c-text); color: var(--c-bg); font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; pointer-events: none; z-index: 1; }
.auth-card .recent-login::after { content: ""; position: absolute; left: 14px; bottom: -5px; border: 5px solid transparent; border-top-color: var(--c-text); border-bottom: 0; }
.auth-card .recent-wrap .recent-login { top: 0; }
/* 라운드 81-b: 가입 페이지 간편가입 카드 */
.signup2 .social-signup .social-login { margin-top: var(--sp-2); }
.signup2 .social-signup .muted { text-align: center; margin: var(--sp-3) 0 0; font-size: var(--fs-sm); }

/* screen-states-a11y SA2·SA3(라운드 83): 로딩 상태 — HTMX 요청 중(.htmx-request)·일반 폼 제출 중(.is-submitting/.btn-busy) */
.htmx-request { opacity: 0.65; cursor: progress; }
form.is-submitting { cursor: progress; }
.btn.htmx-request::after, .btn-busy::after {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: a2a-spin 0.7s linear infinite;
}
@keyframes a2a-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.htmx-request::after, .btn-busy::after { animation: none; } }

/* round 92 (buyer-social-link): link-confirm page + profile link status */
.auth-card .link-box { border: 1px solid var(--c-border); border-radius: 10px; padding: var(--sp-4); background: var(--c-bg-subtle); margin-bottom: var(--sp-4); }
.auth-card .link-lead { margin: 0 0 var(--sp-2); font-weight: 700; }
.auth-card .link-kv { margin: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.auth-card .link-kv div { display: flex; gap: var(--sp-3); }
.auth-card .link-kv dt { width: 64px; color: var(--c-text-muted); }
.auth-card .link-kv dd { margin: 0; font-weight: 600; word-break: break-all; }
.auth-card .link-ask { font-size: var(--fs-md, 16px); font-weight: 700; margin: 0 0 var(--sp-2); line-height: 1.5; }
.auth-card .link-note { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); }
.auth-card .link-cancel { margin-top: var(--sp-3); display: flex; }
.auth-card .link-cancel .auth-btn { width: 100%; cursor: pointer; }
.sl { margin: var(--sp-5) 0; }
.sl-t { font-size: var(--fs-md, 16px); margin: 0 0 var(--sp-2); }
.sl-hint { font-size: var(--fs-sm); margin: 0 0 var(--sp-3); }
.sl-list { list-style: none; margin: 0 0 var(--sp-2); padding: 0; border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; }
.sl-row { display: flex; align-items: center; gap: var(--sp-3); padding: 12px var(--sp-4); border-top: 1px solid var(--c-border); background: var(--c-bg); }
.sl-row:first-child { border-top: 0; }
.sl-row form { margin: 0; }
.sl-mark { flex: 0 0 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.sl-mark.sl-naver { background: #03C75A; color: #fff; }
.sl-mark.sl-kakao { background: #FEE500; color: #191919; }
.sl-mark.sl-google { background: #fff; color: #1F1F1F; border: 1px solid #747775; }
.sl-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sl-name .muted { font-size: var(--fs-xs, 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-state { flex: 0 0 auto; font-size: var(--fs-xs, 12px); font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sl-state.on { background: #E6F4EA; color: #14602F; }
.sl-state.off { background: var(--c-bg-subtle); color: var(--c-text-muted); }
.sl-lock { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs, 12px); color: var(--c-text-muted); }
.sl-mark svg { width: 20px; height: 20px; }
@media (max-width: 480px) { .sl-row { flex-wrap: wrap; } .sl-name { flex-basis: calc(100% - 48px); } }
/* round95-a: social-duplicate guidance on signup + credentials creation on profile */
.social-dup { margin: 0 0 var(--sp-4); padding: var(--sp-4); border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-bg-subtle); display: grid; gap: 10px; }
.social-dup .sc-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.social-dup .sc-naver { background: #03C75A; color: #fff; }
.social-dup .sc-kakao { background: #FEE500; color: #191919; }
.social-dup .sc-google { background: #fff; color: #1F1F1F; border: 1px solid #747775; }
.cred { margin: var(--sp-5) 0; padding: var(--sp-4); border: 1px solid var(--c-border); border-radius: 10px; }
.cred .field { margin-bottom: var(--sp-3); }

/* round102 LS5: 페이지를 옮길 때 상단바·사이드 메뉴는 그대로 있고 본문만 짧게 바뀐다(문서 간 View Transitions — 지원 브라우저만, 나머지는 지금과 같다).
   서버가 페이지를 통째로 다시 주는 구조라 고정 영역이 "다시 뿌려지는" 느낌이 났다. 움직임 줄이기 설정이면 끈다 */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .07s; }   /* round103: .12s → .07s — 이동마다 더해지는 시간을 줄인다 */
  header.topbar { view-transition-name: a2a-topbar; }
  .sidenav { view-transition-name: a2a-sidenav; }
  ::view-transition-group(a2a-topbar), ::view-transition-group(a2a-sidenav) { animation: none; }
  ::view-transition-old(a2a-topbar), ::view-transition-old(a2a-sidenav) { display: none; }
  ::view-transition-new(a2a-topbar), ::view-transition-new(a2a-sidenav) { animation: none; }
}
/* >>> a2a-icons (generated — edit scripts/form-system/a2a-icons.css, then run scripts/form-system/sync.py) */
/* ===== 국산24 아이콘 세트 — 단일 원본. sync.py가 세 app.css와 store-v2.css에 같은 내용을 넣는다(스토어 전용 화면은 app.css를 부르지 않는다) ===== */
/* round95-b: icon set — feather line icons as CSS masks (inherit text color). No emoji / text-symbol icons in UI. */
.ic { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; background-color: currentColor; flex: none;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-lock { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
.ic-x { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); }
.ic-check, .btn-save { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.ic-heart { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }
.ic-arrow-up { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='19' x2='12' y2='5'/%3E%3Cpolyline points='5 12 12 5 19 12'/%3E%3C/svg%3E"); }
.ic-arrow-down { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cpolyline points='19 12 12 19 5 12'/%3E%3C/svg%3E"); }
.ic-chevron-right, .lnk-go, .btn-next { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E"); }
.ic-chevron-down { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
.ic-chevron-up { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E"); }
.ic-corner { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 10 20 15 15 20'/%3E%3Cpath d='M4 4v7a4 4 0 0 0 4 4h12'/%3E%3C/svg%3E"); }
.ic-external, .btn-external { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E"); }
.ic-trend-up { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'/%3E%3Cpolyline points='17 6 23 6 23 12'/%3E%3C/svg%3E"); }
.ic-trend-down { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 18 13.5 8.5 8.5 13.5 1 6'/%3E%3Cpolyline points='17 18 23 18 23 12'/%3E%3C/svg%3E"); }
.ic-star { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); }
.ic-heart-fill { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }
.ic-user { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.ic-chevron-left, .lnk-back, .btn-back { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E"); }
.ic-home { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h5v-6h4v6h5V9.5'/%3E%3C/svg%3E"); }
.ic-check-circle, .btn-approve { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='8 12 11 15 16 9'/%3E%3C/svg%3E"); }
.ic-alert-circle { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E"); }
.ic-alert-triangle { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E"); }
.ic-info { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E"); }
.ic-x-circle, .btn-reject { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E"); }
.ic-thumbs-up { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E"); }
.ic-thumbs-down { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17'/%3E%3C/svg%3E"); }
.ic-lg { width: 1.25em; height: 1.25em; }
.ic-zap-arrow { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h9l-3.5 9H20'/%3E%3Cpolyline points='16 12 20 16 16 20'/%3E%3C/svg%3E"); }
/* round117 GA1: 글자 화살표 대신 — 되돌아가기 링크는 .lnk-back(문구 앞 꺾쇠), 나아가기 링크·버튼은 .lnk-go(문구 뒤 꺾쇠).
   th:text를 쓰는 요소에 클래스만 붙인다. 장식이라 읽기 도구에는 읽히지 않는다. 검사: scripts/glyph-arrow-scan.py */
.lnk-back::before, .lnk-go::after { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; background-color: currentColor; flex: none;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.lnk-back::before { margin-right: .2em; margin-left: -.2em; }
.lnk-go::after { margin-left: .2em; margin-right: -.2em; }
/* 제출 중에는 같은 자리(::after)가 스피너다(.btn-busy·.htmx-request) — 꺾쇠 마스크를 걷고 스피너 크기로 */
.lnk-go.btn-busy::after, .lnk-go.htmx-request::after { -webkit-mask: none; mask: none; background-color: transparent; width: 12px; height: 12px; margin: 0 0 0 8px; vertical-align: -2px; }
/* round166(계약 round166-button-purpose): 용도별 버튼(.btn-*)이 같은 마스크를 쓴다 — 아이콘 원본은 여기 한 곳 */
.ic-download, .btn-download { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }
.ic-upload, .btn-upload { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E"); }
.ic-sheet, .btn-excel { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='3' y1='15' x2='21' y2='15'/%3E%3Cline x1='9' y1='3' x2='9' y2='21'/%3E%3C/svg%3E"); }
.ic-print, .btn-print { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 6 2 18 2 18 9'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E"); }
.ic-trash, .btn-delete { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E"); }
.ic-plus, .btn-add { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E"); }
.ic-search, .btn-search { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); }
.ic-edit, .btn-edit { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E"); }
.ic-eye, .btn-view { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.ic-logout, .btn-logout { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E"); }
.crumb-sep { margin: 0 .25em; opacity: .6; }
/* <<< a2a-icons */
/* >>> a2a-forms (generated — edit scripts/form-system/a2a-forms.css, then run scripts/form-system/sync.py) */
/* ===== 국산24 서식 시스템(form system) — 단일 원본. 고친 뒤 `python scripts/form-system/sync.py`로 세 앱 app.css에 반영한다 =====
   정부 서식형: 위쪽 굵은 선 + 왼쪽 라벨 칸(옅은 바탕) + 오른쪽 입력 칸. 입력·선택·체크·버튼·검색 조건 상자·표 안 처리 폼의 크기와 자리를 세 앱에서 같게 한다.
   색·치수는 tokens.css의 --f-* 토큰만 쓴다(docs/design/tokens.md "서식 시스템"). 마크업 규칙은 docs/design/ui-checklist.md "서식 규칙". */

/* ---- 1. 입력 컨트롤 ---- */
input:where(:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"], [type="hidden"])), select, textarea {
  height: var(--f-h); padding: 0 12px; border: 1px solid var(--f-ctrl-line); border-radius: var(--f-radius);
  background: var(--c-bg); color: var(--c-text); font-family: inherit; font-size: var(--f-fs); box-sizing: border-box; min-width: 0;
  transition: border-color .12s ease, box-shadow .12s ease;
}
textarea { height: auto; min-height: 112px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
input:where(:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"], [type="hidden"])):hover:where(:not(:disabled)), select:hover:where(:not(:disabled)), textarea:hover:where(:not(:disabled)) { border-color: var(--f-ink); }
input:where(:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"], [type="hidden"])):focus, select:focus, textarea:focus { outline: 2px solid transparent; outline-offset: 1px; border-color: var(--c-focus); box-shadow: 0 0 0 3px var(--f-focus-ring); }
input::placeholder, textarea::placeholder { color: var(--f-placeholder); opacity: 1; }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: var(--f-label-bg); color: var(--c-text-muted); cursor: not-allowed; border-color: var(--f-line); }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: var(--f-chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
/* round131 BD5: 값 길이 등급 — type이 정하는 기본 폭(xs = 전화번호 폭이 최소). 문맥 규칙(.filter-bar·.dc-row 등)이 더 높아 그쪽이 이긴다 */
input[type="date"], input[type="time"], input[type="number"], input[type="tel"] { width: var(--f-w-xs); max-width: 100%; }
input[type="datetime-local"] { width: var(--f-w-sm); max-width: 100%; }
input[type="email"], input[type="password"] { width: var(--f-w-md); max-width: 100%; }
input.w-xs, select.w-xs { width: var(--f-w-xs); max-width: 100%; }
input.w-sm, select.w-sm { width: var(--f-w-sm); max-width: 100%; }
input.w-md, select.w-md { width: var(--f-w-md); max-width: 100%; }
input.w-lg, select.w-lg { width: 100%; max-width: var(--f-w-lg); }
input[type="file"] { height: auto; width: 100%; max-width: 560px; padding: 5px; border: 1px solid var(--f-ctrl-line); border-radius: var(--f-radius); background: var(--c-bg); box-sizing: border-box; font-size: var(--fs-sm); color: var(--c-text); }
input[type="file"]::file-selector-button { height: var(--f-h-sm); margin-right: 10px; padding: 0 12px; border: 1px solid var(--f-ink); border-radius: var(--f-radius); background: var(--c-bg); color: var(--f-ink); font: inherit; font-weight: 600; cursor: pointer; }

/* ---- 2. 체크박스·라디오(네이티브 입력을 그대로 두고 모양만) ---- */
input[type="checkbox"], input[type="radio"], label.chk input[type="checkbox"], label.chk input[type="radio"], .field .chk input {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; min-width: 0; aspect-ratio: 1 / 1; margin: 0; padding: 0;
  border: 1.5px solid var(--f-ctrl-line); background: var(--c-bg) center / 70% no-repeat; border-radius: 4px; vertical-align: -4px; cursor: pointer; box-shadow: none;
  transition: background-color .12s ease, border-color .12s ease;
}
input[type="radio"], label.chk input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--f-ink); }
input[type="checkbox"]:checked, label.chk input[type="checkbox"]:checked, .field .chk input[type="checkbox"]:checked { background-color: var(--c-primary); border-color: var(--c-primary); background-image: var(--f-check); }
/* 선택 표시는 크기와 무관한 가운데 점(테두리 두께로 그리면 작은 라디오에서 점이 사라진다) */
input[type="radio"]:checked, label.chk input[type="radio"]:checked { border-color: var(--c-primary); background-image: radial-gradient(circle, var(--c-primary) 0 44%, transparent 50%); background-size: 100%; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid transparent; outline-offset: 1px; box-shadow: 0 0 0 3px var(--f-focus-ring); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .5; cursor: not-allowed; }
label.chk, .chk { display: inline-flex; align-items: center; gap: 8px; font-size: var(--f-fs); color: var(--c-text); cursor: pointer; line-height: 1.4; }
.chk-list { display: grid; gap: 10px; }
.chk-list .chk { align-items: flex-start; }
.chk-list .chk > span { display: grid; gap: 2px; }
.chk-list .chk small { font-size: var(--fs-xs); color: var(--c-text-muted); font-weight: 400; }
.radio-line, .check-line { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }

/* ---- 3. 서식 행: 라벨 칸 + 입력 칸 ---- */
.field { display: grid; grid-template-columns: var(--f-label-w) minmax(0, 1fr); margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--f-line); background: var(--c-bg); }
.field:first-child, :not(.field) + .field { border-top: 2px solid var(--f-ink); }
.field.field, .v2 .field.consent { gap: 0; }
.field > label:first-child, .field > .lbl:first-child {
  grid-column: 1; grid-row: 1 / span 12; display: block; margin: 0; padding: 14px 16px; background: var(--f-label-bg); border-right: 1px solid var(--f-line);
  font-size: var(--fs-md); font-weight: 600; color: var(--f-ink); line-height: 1.5; word-break: keep-all;
}
.field > :not(label:first-child):not(.lbl:first-child) { grid-column: 2; margin: 10px 16px 0; min-width: 0; }
.field > :last-child:not(label:first-child):not(.lbl:first-child) { margin-bottom: 10px; }
/* round131 BD5: 기본 폭은 :where()로 낮춰 type·w-* 등급 규칙이 이기게 한다(예전엔 여기가 (0,3,1)로 전부 덮었다) */
.field > :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { width: calc(100% - 32px); max-width: 560px; }
.field > .seg, .field > .btn, .field > .chk, .field > .badge, .field > .radio-line, .field > .check-line { justify-self: start; }
.field > .krds-dp { width: calc(100% - 32px); }
.field > label:first-child .btn, .field > .lbl:first-child .btn { display: flex; width: max-content; height: 28px; min-width: 0; margin: 8px 0 0; padding: 0 10px; font-size: var(--fs-xs); }
.field .req, label .req { color: var(--c-danger); font-weight: 700; margin-left: 2px; }
.field .opt, label .opt { color: var(--c-text-muted); font-weight: 400; margin-left: 4px; font-size: .92em; }   /* (선택) */
.field-hint, .field .field-hint { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.55; }
/* 인증번호 입력(로그인 2차 인증·내 정보) */
input.otp-code, .otp-enable .code-row input { letter-spacing: .4em; font-size: 20px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.otp-enable { margin: 12px 0 0; display: grid; gap: 6px; }
.otp-enable label { font-size: var(--fs-sm); font-weight: 600; }
.otp-enable .code-row { display: flex; align-items: center; gap: 8px; }
.otp-enable .code-row input { width: 180px; flex: none; }
.otp-enable .code-row .btn { height: var(--f-h); flex: none; }
.otp-note { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
/* 자동으로 채운 칸(사업자번호 [검증] 등) — 사람이 확인해야 하는 값 */
input.is-autofilled { background: var(--c-warning-bg); border-color: var(--c-warning); }
.autofill-note { display: block; margin-top: 4px; }
/* 확인 버튼 줄(중복 확인·검증·인증번호 받기)과 결과 문구 */
.inline-check { display: flex; align-items: center; gap: 8px; max-width: 560px; }
.inline-check > input { flex: 1 1 auto; width: auto; min-width: 0; }
.inline-check > .btn { flex: none; height: var(--f-h); }
.check-box:empty { display: none; }
.check-msg { display: block; margin: 6px 0 0; font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; }
.check-msg.ok { color: var(--c-success); }
.check-msg.bad { color: var(--c-danger); }
.email-code .code-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.email-code .code-row input { width: 160px; flex: none; letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; }
.email-code .code-row .btn { height: var(--f-h); flex: none; }
.error-list { margin: 6px 0 0; padding-left: 18px; font-size: var(--fs-sm); line-height: 1.6; }
/* ===== 알림 배너(round123-b N1) — 흰 카드 + 왼쪽 색 띠 + 선 아이콘. 마크업은 class="banner banner-{success|danger|warning|info}" 그대로(세 앱 공통).
   본문은 본문색(톤 색은 띠·아이콘·강조에만) — 문장이 길어도 읽힌다. 스토어 전용 배너(.banner-carted·.banner-main …)는 다른 부품이라 손대지 않는다. ===== */
.banner { margin: 0 0 16px; padding: 12px 14px; border-radius: 6px; font-size: var(--fs-md); line-height: 1.55; }
.banner-success, .banner-danger, .banner-warning, .banner-info { position: relative; padding: 12px 16px 12px 44px; border: 1px solid var(--c-border); border-left: 4px solid var(--bn-c); border-radius: 6px; background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-sm); }
.banner-success::before, .banner-danger::before, .banner-warning::before, .banner-info::before { content: ""; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; background-color: var(--bn-c);
  -webkit-mask: var(--bn-ic) center / contain no-repeat; mask: var(--bn-ic) center / contain no-repeat; }
.banner-success { --bn-c: var(--c-success); --bn-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='8 12 11 15 16 9'/%3E%3C/svg%3E"); }
.banner-danger { --bn-c: var(--c-danger); --bn-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E"); }
.banner-warning { --bn-c: var(--c-warning); --bn-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E"); }
.banner-info { --bn-c: var(--c-info); --bn-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E"); }
.banner > p { margin: 0; }
.banner > p + p { margin-top: 4px; }
.banner a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.banner b, .banner strong { color: var(--bn-c, inherit); font-weight: 700; }
.banner + .banner { margin-top: -8px; }
/* 표·목록 안처럼 좁은 자리: .banner-sm */
.banner-sm { padding: 8px 12px 8px 38px; font-size: var(--fs-sm); }
.banner-sm::before { left: 12px; top: 9px; width: 18px; height: 18px; }
/* round126: [hidden]은 display 규칙(.savebar flex 등)에 지므로 — 자동 제출 폼의 예비 버튼·숨김 요소는 확실히 감춘다 */
[hidden], .autosubmit-fallback[hidden] { display: none !important; }
.ihint { margin: 6px 0 12px; font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.55; }
.field-error, .field .field-error { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--c-danger); font-weight: 600; }
.field.has-error { border-left: 0; padding-left: 0; }
.field.has-error > label:first-child, .field.has-error > .lbl:first-child { box-shadow: inset 3px 0 0 var(--c-danger); }
.field-row { display: block; margin: 0; }
.field-row + .field, .field + .field-row > .field:first-child, .field-row + .field-row > .field:first-child { border-top: 0; }
.field > label:first-child:has(> input[type="checkbox"], > input[type="radio"]) { grid-column: 1 / -1; grid-row: auto; display: flex; align-items: center; gap: 8px; background: var(--c-bg); border-right: 0; font-weight: 400; cursor: pointer; }
@media (max-width: 720px) {
  .field { grid-template-columns: minmax(0, 1fr); }
  .field > label:first-child, .field > .lbl:first-child { grid-row: auto; border-right: 0; padding: 10px 12px 8px; }
  .field > :not(label:first-child):not(.lbl:first-child) { grid-column: 1; margin: 8px 12px 0; }
  .field > input:not([type="checkbox"]):not([type="radio"]), .field > select, .field > textarea { width: calc(100% - 24px); }
}
/* 좁은 카드(로그인·가입·연동 확인)는 라벨을 위에 두는 세로형 — 컨트롤 모양은 같다 */
:is(.auth-card, .signup-form) .field { display: block; border: 0; background: none; margin: 0 0 16px; }
:is(.auth-card, .signup-form) .field:first-child, :is(.auth-card, .signup-form) :not(.field) + .field { border-top: 0; }
:is(.auth-card, .signup-form) .field > label:first-child, :is(.auth-card, .signup-form) .field > .lbl:first-child { display: block; padding: 0 0 6px; background: none; border: 0; }
:is(.auth-card, .signup-form) .field > :not(label:first-child):not(.lbl:first-child) { margin: 0; }
/* round131 BD5: 가입 폼(.signup-form)은 폭 등급을 따른다(예전엔 100% 고정). 로그인·재설정 카드(.auth-card)만 100% */
.auth-card .field > input:not([type="checkbox"]):not([type="radio"]), .auth-card .field > select { width: 100%; max-width: none; }
:is(.auth-card, .signup-form) .field-hint { margin-top: 6px; }
/* 카드 아래 링크 줄의 버튼 폼(인증번호 다시 받기·다른 계정으로 로그인)은 카드가 아니다 — `.auth-card form`의 테두리·여백을 걷는다 */
.auth-card .auth-links form { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }

/* 2-up ledger: many short fields (spec / disclosure grids) - label | input | label | input */
.attrs .attr-grid, .attrs.disc .disc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--f-ink); --f-label-w: 168px; }
.attrs .attr-grid > .field, .attrs .attr-grid > .field:first-child, .attrs .attr-grid > :not(.field) + .field { border-top: 0; }
.attrs .attr-grid > .field:nth-child(odd) { border-right: 1px solid var(--f-line); }
@media (max-width: 900px) { .attrs .attr-grid, .attrs.disc .disc-grid { grid-template-columns: minmax(0, 1fr); } .attrs .attr-grid > .field:nth-child(odd) { border-right: 0; } }

/* ---- 4. 구역(fieldset) = 제목 + 서식 표 ---- */
fieldset { border: 0; border-radius: 0; background: none; padding: 0; margin: 28px 0 0; min-width: 0; }
fieldset:first-child { margin-top: 0; }
legend { float: left; width: 100%; box-sizing: border-box; margin: 0; padding: 0 0 10px; font-size: var(--fs-lg); font-weight: 700; color: var(--f-ink); }
legend + * { clear: both; }
fieldset > .field-hint, fieldset > p.muted { margin: 0 0 10px; }

/* ---- 5. 버튼 ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--f-h); min-width: 72px; padding: 0 16px; box-sizing: border-box;
  border: 1px solid var(--f-ink); border-radius: var(--f-radius); background: var(--c-bg); color: var(--f-ink); font-family: inherit; font-size: var(--f-fs); font-weight: 600; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .12s ease, border-color .12s ease; }
/* round146: :where로 (0,1,0) — 색 버튼(.btn-primary·.btn-danger·.social-*·화면별 전용)이 순서와 무관하게 이긴다. 흰 바탕 기본 버튼만 연회색 */
.btn:where(:hover) { background: var(--f-label-bg); text-decoration: none; }
.btn:focus-visible { outline: 2px solid transparent; outline-offset: 1px; box-shadow: 0 0 0 3px var(--f-focus-ring); }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
.btn-danger { background: var(--c-bg); border-color: var(--c-danger); color: var(--c-danger); }
.btn-danger:hover { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; }
/* round209 D6: 판매자 상품 폼 옵션 행 — 이름 · 가격 · 재고 · [삭제] 한 줄 */
.opt-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.opt-group { border: 1px solid var(--f-line); border-radius: 6px; padding: 10px; margin-bottom: 8px; }
.og-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.og-head .og-name { flex: 1 1 160px; min-width: 0; }
.opt-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.opt-img { display: inline-flex; align-items: center; gap: 6px; }
.opt-img-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; border: 1px solid var(--f-line); }
.opt-group:not([data-kind="IMAGE"]) .opt-img { display: none; }
.opt-val-add { margin-top: 6px; }
.opt-row input { min-width: 0; }
@media (max-width: 560px) { .opt-row { grid-template-columns: 1fr 1fr; } .opt-row .opt-name { grid-column: 1 / -1; } }
.btn-sm { height: var(--f-h-sm); min-width: 0; padding: 0 12px; font-size: var(--fs-md); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.savebar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 20px 0 0; margin: 0; border: 0; }
.savebar .btn { min-width: 96px; }
/* round166(계약 round166-button-purpose, 대표자 고도화 4-4): 용도별 버튼 = 아이콘(마스크는 a2a-icons.css의 .btn-* 선택자) + 용도 색.
   앞 아이콘: 내려받기·올리기·엑셀·인쇄·삭제·추가·검색·수정·보기·저장·승인·반려·돌아가기·로그아웃 / 뒤 아이콘: 외부 링크·다음. 색: 엑셀 초록, 삭제·반려 빨강(=btn-danger), 승인 초록. */
.btn-download::before, .btn-upload::before, .btn-excel::before, .btn-print::before, .btn-delete::before, .btn-add::before, .btn-search::before, .btn-edit::before, .btn-view::before,
.btn-save::before, .btn-approve::before, .btn-reject::before, .btn-back::before, .btn-logout::before, .btn-external::after, .btn-next::after {
  content: ""; display: inline-block; width: 1em; height: 1em; flex: none; background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.btn-external::after, .btn-next::after { width: .9em; height: .9em; }
.btn-excel { border-color: var(--c-excel, #1d6f42); color: var(--c-excel, #1d6f42); }
.btn-excel:hover { background: var(--c-excel, #1d6f42); border-color: var(--c-excel, #1d6f42); color: #fff; }
.btn-delete, .btn-reject { background: var(--c-bg); border-color: var(--c-danger); color: var(--c-danger); }
.btn-delete:hover, .btn-reject:hover { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
.btn-approve { border-color: var(--c-success); color: var(--c-success); }
.btn-approve:hover { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.btn-primary.btn-approve, .btn-primary.btn-save, .btn-primary.btn-add, .btn-primary.btn-search, .btn-primary.btn-edit, .btn-primary.btn-upload { border-color: var(--c-primary); color: #fff; }
.btn-primary.btn-approve:hover, .btn-primary.btn-save:hover, .btn-primary.btn-add:hover, .btn-primary.btn-search:hover, .btn-primary.btn-edit:hover, .btn-primary.btn-upload:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
/* 제출 중 스피너(.btn-busy·.htmx-request ::after)와 겹치지 않게 — 뒤 아이콘 두 종만 걷는다 */
.btn-external.btn-busy::after, .btn-external.htmx-request::after, .btn-next.btn-busy::after, .btn-next.htmx-request::after { -webkit-mask: none; mask: none; background-color: transparent; }

/* ---- 6. 검색 조건 상자 ---- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; padding: 12px 16px; background: var(--f-label-bg); border: 1px solid var(--f-line); border-top: 2px solid var(--f-ink); }
.filter-bar input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .filter-bar select { height: var(--f-h-sm); width: auto; flex: 0 1 220px; font-size: var(--fs-md); }
.filter-bar input[type="search"], .filter-bar input[type="text"] { flex: 1 1 260px; max-width: 420px; }
/* round168(C168-1): 검색 조건 상자 안 파일 입력 — 작은 한 줄 높이, 안의 [파일 선택]은 그보다 작게(전에는 버튼이 상자를 넘쳤다) */
.filter-bar input[type="file"] { height: var(--f-h-sm); flex: 0 1 360px; padding: 0 8px 0 0; line-height: calc(var(--f-h-sm) - 2px); }
.filter-bar input[type="file"]::file-selector-button { height: calc(var(--f-h-sm) - 8px); margin: 3px 10px 0 3px; padding: 0 10px; font-size: var(--fs-sm); vertical-align: top; }
/* round170(대표자: 표 안 필터의 드롭다운 크기): TOAST UI Grid 필터 층 안 컨트롤은 그리드 자체 크기(29px)로 — 위 서식 규칙(40px·꺾쇠 배경·안쪽 여백)이 새지 않게. 남색 머리글 위 필터·정렬 아이콘은 흰색으로 */
.tui-grid-filter-container select, .tui-grid-filter-container input { height: 29px; min-height: 0; padding: 0 7px; font-size: 13px; line-height: 27px; border-radius: 3px; box-shadow: none; }
.tui-grid-filter-dropdown { height: 29px; width: 190px; margin: 2px 7px; border: 1px solid var(--f-ctrl-line); border-radius: 3px; }
.tui-grid-filter-dropdown select { height: 100%; width: 100%; padding: 0 28px 0 7px; border: none; background-size: 12px; background-position: right 8px center; }
.tui-grid-filter-container .tui-grid-filter-input { width: 190px; margin: 2px 7px; }
.tui-grid-filter-btn { height: 29px; padding: 0; font-size: 13px; font-family: inherit; }
.tui-grid-cell-header .tui-grid-btn-filter, .tui-grid-cell-header .tui-grid-btn-sorting { filter: brightness(0) invert(1); }
.tui-grid-cell-header .tui-grid-btn-filter-active { filter: none; background-color: #fff; border-radius: 3px; }
.filter-bar .search-field { flex: 1 1 260px; max-width: 420px; }
.filter-bar .search-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { width: 100%; max-width: none; flex: none; padding-left: 34px; }
.filter-bar .chk { font-size: var(--fs-md); margin: 0 6px; }
.filter-bar .krds-dp { width: auto; flex: 0 1 200px; }
.filter-bar .krds-dp .krds-dp-input, .filter-bar .krds-dp-btn { height: var(--f-h-sm); }
.filter-bar .krds-dp-btn { width: var(--f-h-sm); }
.filter-bar .btn { height: var(--f-h-sm); padding: 0 14px; font-size: var(--fs-md); min-width: 0; }
.filter-bar .count, .filter-bar .spacer { margin-left: auto; }

/* ---- 7. 표 안 처리 폼(사유 입력 + 버튼 한 줄) ---- */
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form { display: inline-flex; margin: 0; }
td.row-actions { display: table-cell; }
td.row-actions > .btn, td.row-actions > .inline-form, td.row-actions > .badge { display: inline-flex; vertical-align: middle; margin: 2px 4px 2px 0; }
.field .btn-sm { height: var(--f-h); padding: 0 14px; }
.ship-form, .confirm-form, .return-form { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; margin: 0; }
.ship-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .return-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.ship-form select, .return-form select, .confirm-form select, .confirm-form input:not([type="hidden"]) { height: var(--f-h-sm); font-size: var(--fs-md); }
.ship-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { flex: 1 1 180px; width: auto; min-width: 140px; }
.data-table .btn { height: 30px; padding: 0 10px; font-size: var(--fs-sm); min-width: 0; flex: none; }
.ship-form .btn, .confirm-form .btn, .return-form .btn { height: var(--f-h-sm); padding: 0 12px; font-size: var(--fs-md); min-width: 0; flex: none; }
.data-table td.row-actions { white-space: nowrap; }
.data-table .krds-dp .krds-dp-input, .data-table .krds-dp-btn, .confirm-form .krds-dp .krds-dp-input, .confirm-form .krds-dp-btn { height: var(--f-h-sm); font-size: var(--fs-md); padding: 0 8px; }
.data-table .krds-dp-btn, .confirm-form .krds-dp-btn { width: var(--f-h-sm); padding: 0; }
.confirm-form input:not([type="hidden"]), .confirm-form select { padding-left: 8px; }
.return-form { flex-wrap: wrap; }
.return-form select { width: auto; flex: 0 1 180px; }
.return-form input[type="text"] { flex: 1 1 220px; width: auto; }
@media (max-width: 720px) { .ship-form { flex-wrap: wrap; } }
.row-link { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: var(--fs-sm); white-space: nowrap; }
/* ===== /국산24 서식 시스템 ===== */
/* round123 AS3: 주소 검색 조각 — 검색 입력 + [주소 검색] + 결과 목록. 화면별 CSS 금지 → 단일 원본 */
.juso { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.juso .juso-q { flex: 1 1 220px; min-width: 0; }
.juso .juso-list { flex-basis: 100%; list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; border: 1px solid var(--c-border, #d9dee5); border-radius: 6px; background: var(--c-surface, #fff); }
.juso .juso-list li + li { border-top: 1px solid var(--c-border, #d9dee5); }
.juso .juso-hit { display: grid; grid-template-columns: 4.5em 1fr; gap: 0 10px; width: 100%; padding: 8px 10px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; color: inherit; word-break: keep-all; }
.juso .juso-hit:hover, .juso .juso-hit:focus-visible { background: var(--c-bg, #f4f6f9); outline: none; }
.juso .juso-zip { font-weight: 700; color: var(--c-primary, #1F2F52); }
.juso .juso-road { font-weight: 700; }
.juso .juso-jibun { grid-column: 2; font-size: 12px; color: var(--c-text-muted, #666); }
.juso .juso-note { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--c-text-muted, #666); }

/* ---- 배지(round131 BD1·BD2, ADR-0025 조합 B): 바탕 회색 한 가지 + 의미별 글자색, danger만 빨강 채움 + 흰 글자.
   세 앱 app.css의 옛 .badge-* 규칙은 그대로 두고 이 블록(파일 끝)이 같은 우선순위로 이긴다. 조합 A로 바꾸려면 tokens.css의 --c-badge-* 여섯 값만 ---- */
.badge, .badge-neutral, .badge-empty, .badge-info, .badge-success, .badge-warning { background: var(--c-badge-bg); }
.badge-neutral, .badge-info { color: var(--c-badge-info); }
.badge-empty { color: var(--c-badge-empty); }
.badge-success { color: var(--c-badge-success); }
.badge-warning { color: var(--c-badge-warning); }
.badge-danger { background: var(--c-badge-danger-bg); color: #FFFFFF; }
a.badge-danger:hover { color: #FFFFFF; }
.badge-event { background: var(--c-badge-info); color: #FFFFFF; }   /* round135(사용자 지시): 이번달 행사 배지 = 남색 바탕 + 흰 글자 */

/* ---- 오류 화면(round142 S3): common/error :: page 조각의 .err-* — 세 앱 error/403·4xx·5xx와 A2AException 화면이 같은 뼈대(인라인 style 6벌 제거).
   web의 오류 화면은 store-v2.css만 부르고 거기 .v2 .err-*가 따로 있다(우선순위가 더 높아 v2 화면에선 그쪽이 이긴다). ---- */
.err-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; box-sizing: border-box; }
.err-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; text-decoration: none; color: inherit; }
.err-logo img { width: 28px; height: 28px; }
.err-code { font-size: 64px; font-weight: 800; line-height: 1; color: var(--c-border-strong, #C9CED6); margin: 8px 0 0; }
.err-title { font-size: 22px; font-weight: 800; margin: 0; }
.err-desc { margin: 0; color: var(--c-text-muted, #6B7280); line-height: 1.6; }
.err-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.err-actions form { display: inline; margin: 0; }

/* ---- 알림 채널 표(mobile-M6 R-C 2차, 계약 mobile-M3-notifier §4): 이벤트 행 × 채널 열의 체크 표 — 판매자 /notify-email·/m/settings, 구매자 /my/profile 공용 ---- */
.pref-table { width: auto; min-width: 320px; max-width: 100%; margin: 6px 0 0; }
.pref-table thead th, .pref-table td { text-align: center; }
.pref-table thead th:first-child, .pref-table tbody th { text-align: left; font-weight: 500; white-space: normal; min-width: 140px; }
.pref-table td .chk-cell { display: inline-flex; gap: 0; margin: 0; vertical-align: middle; }
.pref-table td .muted { font-size: var(--fs-xs); }
/* <<< a2a-forms */
