:root { --bg: #0b0f17; --card: rgba(255,255,255,.045); --line: rgba(255,255,255,.09); --text: #e8eef8; --silver: #cfd8e6; --muted: #8b97ab; --green: #57f2ab; --amber: #ffcf6b; --red: #ff727d; }
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1200px 600px at 20% -10%, #18233a 0%, var(--bg) 60%) fixed, var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100%; }
.top { display: flex; gap: 8px; align-items: center; padding: 14px 18px; color: var(--muted); font-size: .9rem; }
.top .brand { color: var(--text); font-weight: 700; letter-spacing: .01em; }
#root { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 14px; min-width: 0; }
h1, h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.note { color: var(--muted); font-size: .86rem; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.head > div { display: grid; gap: 2px; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .86rem; padding: 4px 6px; border-radius: 8px; justify-self: start; }
.link:hover { color: var(--text); background: rgba(255,255,255,.06); }
.status { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.status strong { display: block; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.15; }
.status .icon { width: 46px; height: 46px; flex: none; border-radius: 999px; display: grid; place-items: center; font-size: 1.25rem; font-weight: 800; }
.status.idle .icon { background: rgba(87,242,171,.14); color: var(--green); } .status.idle strong { color: #8dffc9; }
.status.busy .icon { background: rgba(255,207,107,.1); }
.pulse { width: 12px; height: 12px; border-radius: 999px; background: var(--amber); animation: p 1.6s ease-out infinite; }
@keyframes p { 0% { box-shadow: 0 0 0 0 rgba(255,207,107,.45); } 100% { box-shadow: 0 0 0 14px rgba(255,207,107,0); } }
.machines { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--silver); font-size: .86rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; } .dot.on { background: var(--green); box-shadow: 0 0 8px rgba(87,242,171,.45); } .dot.off { background: var(--muted); }
.muted { color: var(--muted); }
.machine { display: grid; gap: 8px; min-width: 0; } .mhead { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.main { display: grid; gap: 3px; min-width: 0; } .main strong { color: var(--silver); overflow-wrap: anywhere; } .meta { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.times { display: grid; gap: 2px; justify-items: end; font-size: .84rem; color: var(--silver); white-space: nowrap; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.chip-working { background: rgba(255,207,107,.14); color: #ffd47a; } .chip-needs { background: rgba(255,114,125,.18); color: #ff9aa3; }
.chip-done { background: rgba(77,255,169,.14); color: #7dffc2; } .chip-stopped { background: rgba(255,207,107,.12); color: #ffd47a; } .chip-closed { background: rgba(160,180,210,.14); color: #c6d3ea; }
.empty { color: var(--muted); font-size: .9rem; }
.lock { max-width: 420px; justify-self: center; margin-top: 8vh; }
form { display: flex; gap: 8px; } input { flex: 1; min-width: 0; background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; outline: none; }
input:focus { border-color: rgba(255,255,255,.3); }
button[type=submit] { background: #e8eef8; color: #0b0f17; border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.bad { color: var(--red); font-size: .86rem; min-height: 1.2em; }
@media (max-width: 560px) { .row { grid-template-columns: auto minmax(0,1fr); } .times { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 12px; white-space: normal; } .status strong { font-size: 1.22rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
