:root { color-scheme: light; --c: #3b5bdb; --line: #e5e7eb; --sub: #6b7280; --bg: #f4f6fb; --ok: #2f9e44; --warn: #e8590c }
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: #1f2430;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif }
main { max-width: 960px; margin: 0 auto; padding: 16px 16px 60px }
h1 { font-size: 22px; margin: 6px 0 12px }
h2 { font-size: 18px; margin: 0 0 10px }
h3 { font-size: 16px; margin: 14px 0 6px }
.muted { color: var(--sub) }
.card { background: #fff; border-radius: 14px; padding: 16px; margin: 12px 0; box-shadow: 0 1px 3px rgba(0,0,0,.06) }
button { font: inherit; font-weight: 650; border: 0; border-radius: 10px; min-height: 40px; padding: 8px 14px;
  background: var(--c); color: #fff; cursor: pointer }
button.ghost { background: #fff; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--line) }
button.sm { min-height: 32px; padding: 4px 10px; font-size: 14px }
button:disabled { opacity: .5 }
input, select, textarea { font: inherit; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; min-width: 0 }
textarea { width: 100%; resize: vertical }
label.f { display: block; margin: 10px 0 }
label.f > span { display: block; font-size: 14px; color: var(--sub); margin-bottom: 4px }
label.f > input, label.f > select { width: 100% }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px }
nav.tabs button { border-radius: 999px }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 10px 0 }
.stat { background: var(--bg); border-radius: 10px; padding: 10px 12px }
.stat b { display: block; font-size: 20px }
.stat small { color: var(--sub) }
.conn { display: flex; gap: 6px; align-items: center }
.conn code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--bg); padding: 6px 8px; border-radius: 8px; font-size: 13px }
.g { display: inline-block; min-width: 2.6em; padding: 1px 8px; border-radius: 999px; background: var(--bg); font-weight: 700; text-align: center }
.g.hi { background: #e6fcf5; color: var(--ok) } .g.mid { background: #fff4e6; color: var(--warn) }
.list { list-style: none; padding: 0; margin: 0 }
.item { padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer }
.item:first-child { border-top: 0 }
.item .t { font-weight: 650; overflow-wrap: anywhere }
.item .m { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; font-size: 14px; color: var(--sub) }
.item.sel { background: #f0f4ff; border-radius: 10px }
.badge { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--bg) }
.badge.open { background: #fff4e6; color: var(--warn) } .badge.up { background: #e6fcf5; color: var(--ok) }
pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 6px 0;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace }
.draft { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px }
.steps li { margin: 6px 0 }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f2430; color: #fff; padding: 10px 16px;
  border-radius: 12px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px) }
#toast.on { opacity: 1 }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: start }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr } }
