/* PV 에뮬레이션 페이지 — CDN 비의존 최소 스타일(인트라넷 배포 호환). */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.5;
}

.topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.brand { font-weight: 700; color: #2563eb; text-decoration: none; font-size: 1.1rem; }

.tag {
  display: inline-block;
  padding: .1rem .5rem;
  font-size: .8rem;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: .375rem;
}

.content { max-width: 880px; margin: 0 auto; padding: 1.5rem; }

h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.1rem; margin: 0 0 1rem; }

.muted { color: #64748b; font-size: .9rem; }

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem 1rem;
}

.field { display: flex; flex-direction: column; gap: .25rem; }
.field.wide { grid-column: span 2; }
.field label { font-size: .82rem; color: #475569; }

input, select {
  padding: .45rem .6rem;
  border: 1px solid #cbd5e1;
  border-radius: .375rem;
  font: inherit;
  background: #fff;
  width: 100%;
}
input:focus, select:focus { outline: 2px solid #93c5fd; outline-offset: -1px; }

.block {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  padding: .75rem 1rem 1rem;
}
.block legend { padding: 0 .4rem; font-size: .85rem; color: #475569; }

.actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }

button {
  padding: .5rem 1.1rem;
  border: none;
  border-radius: .375rem;
  background: #2563eb;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
button:hover { background: #1d4ed8; }

button.secondary { background: #fff; color: #2563eb; border: 1px solid #cbd5e1; }
button.secondary:hover { background: #f1f5f9; }

.req-preview { margin-top: 1rem; }
.req-preview summary { cursor: pointer; font-size: .85rem; color: #475569; }
.req-preview pre {
  margin: .5rem 0 0;
  padding: .75rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: .375rem;
  font-size: .8rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.output { font-size: 1.1rem; margin: .5rem 0 1rem; }
.output strong { font-size: 1.6rem; color: #16a34a; }

table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .9rem; }
th, td { padding: .4rem .6rem; border-bottom: 1px solid #e2e8f0; text-align: left; }
th { color: #475569; font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
