body { font-family: system-ui, "Malgun Gothic", sans-serif; margin: 1rem auto; max-width: 900px; padding: 0 1rem; background: #f6f7f9; color: #1f2937; }
h1 { font-size: 1.35rem; margin-bottom: .2rem; }
.subtitle { color: #6b7280; font-size: .9rem; margin-top: 0; }
h2 { font-size: 1rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.stepnum { background: #2563eb; color: #fff; border-radius: 50%; width: 1.4rem; height: 1.4rem; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex: none; }
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: .9rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.preset { font: inherit; font-size: 1rem; padding: .45rem .6rem; width: 100%; max-width: 480px; border-radius: 8px; border: 1px solid #cbd5e1; }
.desc { color: #4b5563; font-size: .88rem; background: #f1f5f9; border-radius: 8px; padding: .6rem .8rem; margin: .6rem 0 0; }
details { margin-top: .7rem; }
summary { cursor: pointer; color: #2563eb; font-size: .88rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.2rem; margin-top: .7rem; }
.grid label { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .85rem; color: #374151; }
.grouphead { font-size: .85rem; color: #6b7280; margin: 1rem 0 .2rem; }
.pair { display: inline-flex; gap: .3rem; }
input, select { font: inherit; padding: .25rem .4rem; border: 1px solid #cbd5e1; border-radius: 6px; }
input[type="number"] { width: 5.5rem; }
button { font: inherit; padding: .4rem 1rem; border-radius: 8px; border: 1px solid #cbd5e1; background: #f8fafc; cursor: pointer; }
button.big { background: #2563eb; color: #fff; border-color: #2563eb; font-weight: 700; font-size: 1.05rem; padding: .55rem 1.6rem; }
button:disabled { opacity: .45; cursor: default; }
.controls { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.statuschip { font-weight: 600; font-size: .9rem; padding: .25rem .7rem; border-radius: 999px; background: #e5e7eb; }
.statuschip.good { background: #dcfce7; color: #166534; }
.statuschip.warn { background: #fef3c7; color: #92400e; }
.statuschip.bad { background: #fee2e2; color: #991b1b; }
.hint { color: #92400e; font-size: .84rem; margin: .6rem 0 0; }
.ttfa-card { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: .8rem 1.2rem; display: inline-block; margin-bottom: .8rem; }
.ttfa-label { font-size: .8rem; color: #1d4ed8; }
.ttfa-value { font-size: 2rem; font-weight: 800; color: #1e3a8a; }
.ttfa-value span { font-variant-numeric: tabular-nums; }
table { border-collapse: collapse; font-size: .84rem; width: 100%; }
td, th { border-bottom: 1px solid #f1f5f9; padding: .3rem .55rem; text-align: right; }
td:first-child, th:first-child, td.l, th.l { text-align: left; }
#latencyTable td:last-child, #latencyTable th:last-child { text-align: left; color: #6b7280; font-size: .8rem; }
#statsTable tbody { display: block; max-height: 13rem; overflow-y: auto; }
#statsTable thead, #statsTable tbody tr { display: table; width: 100%; table-layout: fixed; }
#log { max-height: 9rem; overflow-y: auto; font-size: .76rem; background: #f8fafc; padding: .5rem; border-radius: 6px; }
.ok { color: #16a34a; font-weight: 600; }
.warn-txt { color: #b45309; font-weight: 600; }
.bad-txt { color: #dc2626; font-weight: 600; }
