/* 1분공작소 공통 스타일 (정적·로컬 저장 MVP 7종 공용 사본) — 서비스 색은 맨 위 --brand 한 줄만 바꿉니다 */
:root {
  --brand: #be123c;
  --brand-ink: #fff;
  --ink: #111827;
  --sub: #4b5563;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #fff;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--brand); }
img, svg { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.site-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; }
.logo small { font-weight: 600; color: var(--sub); font-size: .75rem; }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 1rem; }
.head-nav { display: flex; gap: 8px; align-items: center; }
.head-nav a { font-size: .9rem; }

.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(1.45rem, 5vw, 2.1rem); line-height: 1.3; margin: 0 0 10px; letter-spacing: -.02em; }
.hero p.lead { color: var(--sub); margin: 0 0 14px; font-size: 1.02rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 4px; list-style: none; }
.chips li { font-size: .82rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--sub); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 16px 0; }
.card h2 { font-size: 1.15rem; margin: 0 0 12px; }
.card h3 { font-size: 1rem; margin: 14px 0 8px; }
.muted { color: var(--sub); font-size: .9rem; }
.small { font-size: .82rem; }

.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
label.field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; min-width: 0; }
label.field .hint { font-weight: 400; color: var(--sub); font-size: .8rem; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; min-width: 0; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: .92rem; min-height: 44px; padding: 8px 0; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 6px; padding: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: 1rem; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(.95); }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.plain { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn.sm { min-height: 44px; padding: 6px 12px; font-size: .9rem; }
.btn.danger { background: #fff; color: var(--bad); border-color: #fca5a5; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .actions .btn { flex: 0 0 auto; } }

.result:empty { display: none; }
.kpis { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 6px 0 12px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.kpi b { display: block; font-size: 1.25rem; line-height: 1.3; }
.kpi span { color: var(--sub); font-size: .82rem; }
.kpi.hl { background: color-mix(in srgb, var(--brand) 9%, #fff); border-color: color-mix(in srgb, var(--brand) 35%, #fff); }
.verdict { border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 8px 0 12px; border: 1px solid; }
.verdict.ok { background: #f0fdf4; border-color: #86efac; color: #14532d; }
.verdict.warn { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.verdict.bad { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; overflow-wrap: normal; word-break: keep-all; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--bg); font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; width: 0; }

.msg { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.msg pre { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font: inherit; margin: 0 0 8px; }
.msg .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; color: var(--sub); font-size: .82rem; }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: color-mix(in srgb, var(--brand) 12%, #fff); color: color-mix(in srgb, var(--brand) 80%, #000); }
.tag.gray { background: #f1f5f9; color: #334155; }
.tag.ok { background: #dcfce7; color: #14532d; }
.tag.warn { background: #fef3c7; color: #78350f; }
.tag.bad { background: #fee2e2; color: #7f1d1d; }

.list { padding-left: 1.2em; margin: 6px 0; }
.list li { margin: 4px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 12px 44px; position: relative; font-size: .92rem; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

.field-label { font-weight: 600; }
.row-item { display: grid; gap: 8px; grid-template-columns: 1fr; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 10px; margin: 8px 0; }
@media (min-width: 640px) { .row-item { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; } }
.row-item.staff-row { grid-template-columns: 1fr 1fr; align-items: end; }
.staff-row .st-days, .staff-row .st-del { grid-column: 1 / -1; }
@media (min-width: 640px) { .row-item.staff-row { grid-template-columns: 1fr 1fr 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.faq p { margin: 8px 0 0; color: var(--sub); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; }

.doc h1 { font-size: 1.5rem; margin: 24px 0 8px; }
.doc h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p, .doc li { color: #1f2937; }

.site-foot { margin-top: 40px; padding: 24px 0 40px; border-top: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: .84rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.site-foot nav a { color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.site-foot p { margin: 4px 0; }
.site-foot .family a { color: var(--sub); }

.print-only { display: none; }
@media print {
  .site-head, .site-foot, .no-print, .hero, .toast, .actions { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; padding: 0; }
}
td.wide { min-width: 10em; }
