
* { 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); }
.banner {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}
.banner-success { background: var(--c-success-bg); color: var(--c-success); }
.banner-danger { background: var(--c-danger-bg); color: var(--c-danger); }
.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:hover { background: var(--c-bg-hover); }
.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; }
/* 라운드 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 { --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 { --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 { --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-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"); }
/* <<< 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; }
input[type="date"], input[type="datetime-local"], input[type="time"], input[type="number"] { max-width: 240px; }
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; }
.field > input:not([type="checkbox"]):not([type="radio"]), .field > select, .field > 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; }
.banner > p { margin: 0; }
.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; }
:is(.auth-card, .signup-form) .field > input:not([type="checkbox"]):not([type="radio"]), :is(.auth-card, .signup-form) .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; }
.btn: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; }
.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; }

/* ---- 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; }
.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 서식 시스템 ===== */
/* <<< a2a-forms */
