:root {
  --bg: #f6f8ff;
  --card: #ffffff;
  --ink: #0b1220;
  --muted: #5a6b87;
  --line: #e6ecff;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --shadow: 0 10px 30px rgba(12, 24, 60, .10);
  --radius: 16px;
  --radius2: 12px;
  --focus: 0 0 0 4px rgba(37, 99, 235, .18);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(1200px 600px at 30% -20%, rgba(37, 99, 235, .20), transparent 60%),
    radial-gradient(1200px 600px at 80% 0%, rgba(59, 130, 246, .12), transparent 60%),
    var(--bg);
}

.top {
  padding: 16px 0 10px
}

.brand {
  max-width: 100%;
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: center
}

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(59, 130, 246, .18));
  border: 1px solid rgba(37, 99, 235, .18);
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45
}

.wrap {
  max-width: 100%;
  padding: 0 0 60px
}

.nav {
  max-width: 100%;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 12px;
}

.nav a:hover {
  border-color: rgba(37, 99, 235, .35)
}

.nav a.is-on {
  border-color: rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .08)
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 14px 0;
}

.card-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px
}

.card-h h2 {
  margin: 0;
  font-size: 16px
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr
  }
}

.field {
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 12px;
  background: rgba(246, 248, 255, .45);
}

.lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  margin-bottom: 10px
}

.lbl2 {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.row input[type="text"],
.row input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px;
  outline: none;
  background: #fff;
  font-family: inherit;
}

.row input:focus {
  box-shadow: var(--focus);
  border-color: rgba(37, 99, 235, .35)
}

.row .mono {
  font-family: var(--mono)
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap
}

.btn {
  border: 1px solid rgba(37, 99, 235, .25);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 650;
}

.btn:hover {
  border-color: rgba(37, 99, 235, .45)
}

.btn:focus {
  outline: none;
  box-shadow: var(--focus)
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border-color: transparent
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed
}

.btn2 {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.btn2:hover {
  border-color: rgba(37, 99, 235, .35)
}

.btn2:focus {
  outline: none;
  box-shadow: var(--focus)
}

.muted {
  color: var(--muted)
}

.small {
  font-size: 12px
}

.code {
  font-family: var(--mono);
  background: #fff;
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 8px
}

.tip {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .28);
  color: var(--blue2);
  font-weight: 900;
  font-size: 12px;
  background: #fff;
  cursor: help;
  position: relative;
}

.tip:focus {
  outline: none;
  box-shadow: var(--focus)
}

.tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 10px);
  width: min(360px, 78vw);
  background: #0b1220;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  transform: translateX(-50%) translateY(6px);
  z-index: 10;
}

.tip::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 4px);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #0b1220;
  opacity: 0;
  transition: opacity .15s ease;
}

.tip:hover::after,
.tip:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.tip:hover::before,
.tip:focus::before {
  opacity: 1
}

.notice {
  margin-top: 12px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, .25);
  padding: 12px 14px;
  border-radius: 14px;
  color: #1e40af;
  line-height: 1.55;
}

hr.sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 14px 0
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.table th {
  background: rgba(246, 248, 255, .7);
  font-weight: 800
}

.table tr:last-child td {
  border-bottom: none
}

.foot {
  padding: 10px 6px
}

/* ✅ Form Controls (통일된 입력 UI) */
input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: var(--focus);
  border-color: rgba(37, 99, 235, .35);
}

/* 체크박스/라디오 간격 + 가독성 */
label {
  line-height: 1.35;
}

input[type="checkbox"],
input[type="radio"] {
  transform: scale(1.05);
}