:root{
  --bg:#f6f8fb;
  --panel:#ffffff;
  --line:#d6dde8;
  --text:#111827;
  --muted:#4b5563;
  --blue:#0b5fff;
  --blue2:#1f4fbf;
  --shadow: 0 10px 30px rgba(16,24,40,.08);
  --radius: 14px;
  --radius2: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
}

a{ color:inherit; text-decoration:none; }
a.link{ color:var(--blue2); font-weight:600; }
a.link:hover{ text-decoration:underline; }

.skip{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px; height:1px;
  overflow:hidden;
}
.skip:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  background:#111;
  color:#fff;
  border-radius:10px;
  z-index:9999;
}

.container{
  width:min(1080px, calc(100% - 40px));
  margin:0 auto;
}

.gov-header{
  background:linear-gradient(180deg, #ffffff 0%, #ffffff 55%, rgba(255,255,255,0) 100%);
  border-bottom:1px solid var(--line);
}
.gov-header.compact{ padding-bottom:4px; }

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0 12px;
  gap:12px;
}
.brand-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.logo{
  height:34px;
  width:auto;
  display:block;
}
.brand-text .org{
  font-size:12px;
  color:var(--muted);
  letter-spacing:.2px;
}
.brand-text .sys{
  font-size:18px;
  font-weight:800;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  font-size:12px;
}
.badge .dot{
  width:8px; height:8px;
  border-radius:999px;
  background:var(--blue);
}

.subbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  padding:10px 0 16px;
}
.submeta{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
}
.submeta .k{ font-weight:700; color:#334155; }
.submeta .v{ color:#475569; }

.page{ padding:20px 0 42px; }

.hero{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:26px;
}
.h1{
  margin:0 0 10px;
  font-size:28px;
  letter-spacing:-.4px;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.55;
  font-size:15px;
}
.lead.small{ font-size:14px; margin-bottom:0; }

.cta-row{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:14px;
}

.summary{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}
.sum-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#fff;
}
.sum-card .t{ font-size:12px; color:var(--muted); margin-bottom:8px; }
.sum-card .v{ font-size:14px; font-weight:800; color:#111827; }

.panel{
  margin-top:16px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:20px;
}
.panel.subtle{
  background:#f9fbff;
}
.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.h2{
  margin:0 0 10px;
  font-size:16px;
  font-weight:900;
  letter-spacing:-.2px;
}
.list{
  margin:0;
  padding-left:18px;
  color:#374151;
}
.list li{ margin:6px 0; }

.form .q{
  padding:18px 0;
  border-top:1px dashed var(--line);
}
.form .q:first-child{ border-top:0; padding-top:0; }
.req{ color:#dc2626; font-weight:900; }

.grid2{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.label{
  font-size:12px;
  color:#334155;
  font-weight:800;
}

input, select, textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  outline:none;
  background:#fff;
  font-size:14px;
}
textarea{ resize:vertical; min-height:120px; }
input:focus, select:focus, textarea:focus{
  border-color:rgba(11,95,255,.55);
  box-shadow:0 0 0 4px rgba(11,95,255,.12);
}

.soft{
  background:#fbfcff;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:999px;
  font-size:13px;
  color:#111827;
  cursor:pointer;
  user-select:none;
}
.chip input{ width:auto; }

.radios{
  display:grid;
  gap:10px;
  margin-top:8px;
}
.radio{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  background:#fff;
  padding:12px 12px;
  border-radius:14px;
  cursor:pointer;
}
.radio input{ width:auto; }

.progress{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  min-width:160px;
}
.track{
  width:160px;
  height:10px;
  border-radius:999px;
  background:#eaf0ff;
  border:1px solid rgba(11,95,255,.20);
  overflow:hidden;
}
.bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, var(--blue) 0%, #6d28d9 70%, #7c3aed 100%);
}

.actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:900;
  font-size:14px;
  cursor:pointer;
}
.btn.primary{
  background:linear-gradient(90deg, var(--blue) 0%, #6d28d9 100%);
  color:#fff;
  box-shadow:0 10px 24px rgba(11,95,255,.20);
}
.btn.primary:hover{ filter:brightness(1.02); }
.btn.primary:disabled{ opacity:.55; cursor:not-allowed; }
.btn.ghost{
  background:#fff;
  border-color:var(--line);
  color:#111827;
}
.btn.ghost:hover{ background:#f7f9ff; }

.muted{ color:var(--muted); }
.mini{ font-size:12px; }

.receipt{
  margin-top:14px;
}
.receipt-box{
  border:1px solid rgba(11,95,255,.25);
  background:#f4f8ff;
  border-radius:16px;
  padding:16px;
}
.receipt-title{ font-weight:1000; margin-bottom:8px; }
.receipt-id{ font-weight:900; margin-bottom:12px; }
.receipt-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.gov-footer{
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:16px 0;
  flex-wrap:wrap;
}
.fine{ font-size:12px; color:#64748b; }

@media (max-width: 820px){
  .summary{ grid-template-columns:1fr; }
  .grid2{ grid-template-columns:1fr; }
  .progress{ align-items:flex-start; }
  .track{ width:100%; }
}
