:root {
  --bg: #f8fafc; --card: #fff; --text: #1e293b; --muted: #64748b; --line: #e2e8f0;
  --brand: #0f766e; --brand-soft: #ccfbf1; --warn: #b45309; --warn-soft: #fef3c7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
a { color: var(--brand); }
header { background: var(--card); border-bottom: 1px solid var(--line); }
header .in, main, footer .in { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header .in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.logo { white-space: nowrap; flex-shrink: 0; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo b { color: var(--brand); }
header nav { display: flex; gap: 14px; font-size: .9rem; overflow-x: auto; white-space: nowrap; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover, header nav a[aria-current] { color: var(--brand); }
main { padding-top: 28px; padding-bottom: 48px; }
h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
input, select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--text); }
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
button { font: inherit; font-weight: 700; padding: 12px 18px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; cursor: pointer; width: 100%; }
button:hover { filter: brightness(1.08); }
.result { display: none; }
.result.show { display: block; }
.big { font-size: 1.9rem; font-weight: 800; color: var(--brand); margin: 2px 0 10px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 600; }
.scroll { max-height: 360px; overflow: auto; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-top: 12px; }
.ok { background: var(--brand-soft); color: var(--brand); }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.tools a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--text); height: 100%; }
.tools a:hover { border-color: var(--brand); }
.tools strong { display: block; margin-bottom: 4px; }
.tools span { color: var(--muted); font-size: .88rem; }
article h2 { font-size: 1.2rem; margin: 28px 0 8px; }
article p, article li { color: #334155; }
footer { border-top: 1px solid var(--line); background: var(--card); font-size: .85rem; color: var(--muted); }
footer .in { padding-top: 18px; padding-bottom: 24px; }
footer a { color: var(--muted); margin-right: 12px; }
