:root { color-scheme: dark; }
body { font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; background: #0b0d11; color: #eef1f5; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(79, 140, 255, .3); }

.container-ns { width: min(100% - 32px, 1200px); margin-inline: auto; }

.brand-mark { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #0b0d11; background: #eef1f5; letter-spacing: -.02em; }
.brand-mark-sm { width: 32px; height: 32px; border-radius: 8px; font-size: 14px; }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #4f8cff; }

.card { border: 1px solid #1f242d; background: #12151b; border-radius: 12px; }
.stat-label { font-size: 12px; color: #6b7482; font-weight: 500; }
.stat-value { margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-family: "JetBrains Mono", monospace; }

.field-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #a3acb9; }
.input { width: 100%; min-height: 38px; border: 1px solid #2b323d; background: #08090c; color: #eef1f5; border-radius: 8px; padding: 8px 12px; font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: #4f8cff; box-shadow: 0 0 0 3px rgba(79, 140, 255, .18); }
.input::placeholder { color: #6b7482; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: #eef1f5; color: #0b0d11; }
.btn-primary:hover:not(:disabled) { background: #ffffff; }
.btn-ghost { border: 1px solid #1f242d; background: transparent; color: #a3acb9; }
.btn-ghost:hover { border-color: #2b323d; color: #eef1f5; background: #12151b; }
.btn-xs { min-height: 28px; padding: 0 9px; font-size: 11px; border-radius: 6px; }
.btn-danger:hover { border-color: rgba(240, 68, 56, .5); color: #f04438; }

.ns-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.ns-table th { padding: 11px 14px; font-size: 11px; font-weight: 600; color: #6b7482; background: #08090c; border-bottom: 1px solid #1f242d; white-space: nowrap; position: sticky; top: 0; }
.ns-table td { padding: 12px 14px; border-bottom: 1px solid #1f242d; vertical-align: middle; }
.ns-table tbody tr:last-child td { border-bottom: 0; }
.ns-table tbody tr:hover { background: rgba(255, 255, 255, .015); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; border: 1px solid; }
.badge-ok { color: #22c55e; border-color: rgba(34, 197, 94, .25); background: rgba(34, 197, 94, .06); }
.badge-warn { color: #f5a524; border-color: rgba(245, 165, 36, .25); background: rgba(245, 165, 36, .06); }
.badge-alert { color: #f04438; border-color: rgba(240, 68, 56, .25); background: rgba(240, 68, 56, .06); }
.badge-mute { color: #6b7482; border-color: #2b323d; background: transparent; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.modal.hidden { display: none; }
.modal-panel { width: 100%; border: 1px solid #1f242d; background: #12151b; border-radius: 12px; padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #1f242d; }
.modal-head h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.modal-x { color: #6b7482; padding: 4px 6px; border-radius: 6px; }
.modal-x:hover { color: #eef1f5; background: #1f242d; }

.tabs { display: flex; gap: 4px; }
.tab { border: 1px solid #2b323d; color: #a3acb9; border-radius: 8px; padding: 5px 11px; font-size: 12px; font-weight: 600; }
.tab.active { background: #eef1f5; color: #0b0d11; border-color: #eef1f5; }

.code { margin-top: 4px; padding: 12px; border: 1px solid #1f242d; background: #08090c; border-radius: 8px; font-family: "JetBrains Mono", monospace; font-size: 11px; color: #a3acb9; overflow-x: auto; white-space: pre; }

.ns-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.ns-scroll::-webkit-scrollbar-thumb { background: #2b323d; border-radius: 999px; }

#toast.show { display: flex; }
.toast-in { animation: toastIn .22s cubic-bezier(.16, 1, .3, 1); }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toast-in { animation: none; } }
