:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #101713; color: #f5f7f3; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -20%, #314b36, #101713 55%); }
button, input { font: inherit; }
.app { width: min(1100px, 100%); margin: auto; padding: 30px 22px 60px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
h1 { margin: 2px 0 0; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .95; letter-spacing: -.055em; }
.eyebrow { margin: 0; color: #9fb3a4; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 9px; color: #b7c6ba; font-size: .85rem; }
.status span { width: 9px; height: 9px; border-radius: 50%; background: #e7b75c; box-shadow: 0 0 14px currentColor; }
.status.online span { background: #62d47d; }
.status.error span { background: #f06e64; }
.controls { display: flex; align-items: end; flex-wrap: wrap; gap: 14px 22px; padding: 16px; margin-bottom: 14px; background: #1b251ebd; border: 1px solid #ffffff12; border-radius: 16px; backdrop-filter: blur(12px); }
.controls label:not(.toggle) { display: grid; gap: 6px; color: #aab8ad; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.field { display: flex; align-items: center; overflow: hidden; background: #0e1510; border: 1px solid #ffffff1c; border-radius: 9px; }
.field input { width: 100px; padding: 9px 4px 9px 11px; color: white; background: transparent; border: 0; outline: 0; }
.field b { padding-right: 11px; color: #77897b; font-size: .72rem; }
.toggle { display: flex; align-items: center; gap: 9px; padding-bottom: 9px; cursor: pointer; color: #cad4cc; font-size: .85rem; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { width: 34px; height: 20px; padding: 3px; background: #3a453d; border-radius: 20px; transition: .2s; }
.toggle span::after { content: ''; display: block; width: 14px; height: 14px; background: white; border-radius: 50%; transition: .2s; }
.toggle input:checked + span { background: #4fbd69; }
.toggle input:checked + span::after { transform: translateX(14px); }
.stop { margin-left: auto; padding: 10px 15px; color: #ffb4ad; background: #47201f; border: 1px solid #8d3e39; border-radius: 9px; cursor: pointer; font-weight: 750; }
.stop:hover { background: #5b2926; }
.map-card { overflow: hidden; background: #1a221c; border: 1px solid #ffffff12; border-radius: 20px; box-shadow: 0 28px 70px #0008; }
.map { position: relative; line-height: 0; overflow: hidden; background: #283029; }
.map > img { display: block; width: 100%; height: auto; filter: saturate(.78) contrast(1.05) brightness(.76); }
.zone { position: absolute; translate: -50% -50%; display: grid; place-items: center; width: clamp(34px, var(--size), 94px); aspect-ratio: 1; padding: 5px; color: white; background: #4b9b5ec7; border: 2px solid #d9ffe1cc; border-radius: 50%; box-shadow: 0 5px 18px #0008, inset 0 0 20px #ffffff12; cursor: pointer; font-weight: 800; font-size: clamp(.55rem, 1.2vw, .78rem); line-height: 1.05; text-align: center; text-shadow: 0 1px 3px #000; transition: transform .15s, background .15s; }
.zone:hover { transform: scale(1.12); background: #5fbf75e8; }
.zone small { display: block; margin-bottom: 2px; font-size: .7em; line-height: 1; opacity: .8; }
.zone.active { background: #38c85be8; border-color: white; box-shadow: 0 0 0 5px #72e38b55, 0 5px 22px #000a; animation: active-zone 1.5s ease-in-out infinite; }
.zone:disabled { opacity: .45; cursor: not-allowed; }
.run-state { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; }
.run-state strong { display: block; margin-top: 4px; }
.countdown { font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 800; color: #9ee3ae; }
.run-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; }
.run-actions button { padding: 8px 12px; color: #dce6de; background: #27342a; border: 1px solid #ffffff1c; border-radius: 8px; cursor: pointer; font-weight: 700; }
.run-actions button:hover:not(:disabled) { background: #35473a; }
.run-actions button:disabled { opacity: .35; cursor: not-allowed; }
.queue-list { padding: 0 20px 18px; color: #aebbb1; font-size: .82rem; }
.message { min-height: 1.4em; margin: 12px 5px; color: #aebbb1; font-size: .85rem; }
.message.error { color: #ffaaa2; }
@media (max-width: 600px) { .app { padding: 22px 12px 40px; } header { align-items: end; } .controls { gap: 12px; } .stop { margin-left: 0; } .zone { border-width: 1px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@keyframes active-zone { 50% { box-shadow: 0 0 0 10px #72e38b18, 0 5px 22px #000a; } }
