/* 견적한장 공통 — 디자인 토큰·기본 요소·버튼·입력. 앱(app.css)·공개 문서(public.css)·로그인(auth.css)이 함께 쓴다. */
:root {
  --brand: #3157F5; --brand-600: #2447DB; --brand-700: #1C39B0; --brand-100: #DDE5FF; --brand-50: #EEF2FF;
  --ink: #0F1B33; --ink-2: #3B4A66; --ink-3: #6B7A93; --ink-4: #9AA7BC;
  --line: #E3E8F0; --line-2: #EEF1F6; --bg: #F5F7FB; --card: #FFFFFF;
  --ok: #12A66A; --ok-bg: #E6F7EF; --warn: #E58A00; --warn-bg: #FFF3DD; --bad: #E5484D; --bad-bg: #FDECEC; --amber: #FFB938;
  --r: 16px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 51, .05), 0 8px 24px rgba(15, 27, 51, .06);
  --shadow-lg: 0 12px 40px rgba(15, 27, 51, .18);
  --font: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(49, 87, 245, .45); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; transition: transform .08s, background .15s, box-shadow .15s, opacity .15s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(49, 87, 245, .28); }
.btn-primary:hover { background: var(--brand-600); }
.btn-soft { background: var(--brand-50); color: var(--brand-600); }
.btn-line { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-danger { background: var(--bad-bg); color: var(--bad); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; font-size: 17px; border-radius: 16px; }

/* 입력 */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field > small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 16px; outline: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(49, 87, 245, .14); }
.input::placeholder { color: var(--ink-4); }
textarea.input { padding: 12px 14px; min-height: 88px; resize: vertical; line-height: 1.5; }
select.input { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236B7A93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 칩·뱃지 */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: all .15s; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: #B76A00; }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.brand { background: var(--brand-50); color: var(--brand-600); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
