:root { --heat: #e11d48; --t0: #1d4ed8; --t1: #15803d; --t2: #111827; --line: #d1d5db; --muted: #6b7280; --bg: #ffffff; --fg: #111827; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; background: var(--bg); color: var(--fg); font: 14px/1.45 "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
#side { width: 420px; height: 100%; overflow-y: auto; padding: 0 14px 14px; border-right: 1px solid var(--line); }
#map { flex: 1; height: 100%; }
header { position: sticky; top: 0; background: var(--bg); padding: 12px 0 8px; border-bottom: 1px solid var(--line); z-index: 1; }
h1 { font-size: 17px; margin: 0 0 2px; }
h2 { font-size: 15px; margin: 16px 0 6px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 6px 0; }
label { display: flex; flex-direction: column; gap: 2px; }
input[type=number], input[type=time] { width: 125px; font: inherit; padding: 2px 4px; }
textarea { width: 100%; height: 76px; font: inherit; padding: 4px; }
button { font: inherit; padding: 5px 10px; cursor: pointer; border: 1px solid var(--line); background: #f9fafb; border-radius: 4px; }
button.primary { background: #1f2937; color: #fff; border-color: #1f2937; }
button:disabled { opacity: .5; cursor: wait; }
.muted { color: var(--muted); font-size: 12px; }
#status { min-height: 20px; margin-top: 4px; }
#status.err { color: #b91c1c; font-weight: bold; }
ol { padding: 0; margin: 0; list-style: none; }
#rank li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid #f3f4f6; }
#rank .txt { flex: 1; cursor: pointer; }
#rank button { white-space: nowrap; font-size: 12px; }
#hist { list-style: decimal; padding-left: 20px; font-size: 13px; }
table { border-collapse: collapse; width: 100%; margin-top: 8px; }
td { padding: 2px 4px; vertical-align: top; border-bottom: 1px solid #f3f4f6; }
td:first-child { color: var(--muted); width: 72px; }
.note { color: #92400e; font-size: 12px; margin-top: 4px; }
.pin { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 4px; border-radius: 10px; color: #fff;
       font-weight: bold; font-size: 12px; border: 2px solid #fff; box-shadow: 0 0 3px rgba(0,0,0,.6); white-space: nowrap; }
.pin svg { width: 12px; height: 12px; fill: #fff; }
.t0 { background: var(--t0); } .t1 { background: var(--t1); } .t2 { background: var(--t2); }
.legend span { display: inline-block; margin-right: 8px; }
footer { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
footer p { margin: 0 0 6px; }
footer strong { color: var(--fg); }
