/* Hallmark-inspired | custom modern-minimal operations console | signature: availability and action on each server row */
/* Critique: real status only; no gradients, decorative metrics or nested cards. */
:root{--bg:#0b0f17;--panel:#141b28;--line:#29354a;--ink:#f4f7fc;--muted:#a1aec4;--green:#76d8ac;--green-bg:#192d2e;--warn:#f3c986;--red:#ffb8ad;--red-bg:#37232e;--focus:#87b6ff;--font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--mono:ui-monospace,SFMono-Regular,Consolas,monospace;--radius:14px}
*{box-sizing:border-box}html,body{margin:0;overflow-x:clip;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.45}body{min-height:100dvh}main{max-width:740px;margin:auto;padding:20px 18px calc(24px + env(safe-area-inset-bottom))}header,.brand,.actions,.serverhead,.details,.settings{display:flex;align-items:center;gap:12px}header{justify-content:space-between;padding-bottom:20px;border-bottom:1px solid var(--line)}.mark{display:grid;place-items:center;width:38px;height:38px;background:var(--green);color:var(--bg);border-radius:10px;font-weight:800;font-size:24px}.brand strong,.brand small{display:block}.brand small,small,footer,.empty{color:var(--muted);font-size:12px}h1,h2,h3,p{margin:0;overflow-wrap:break-word;min-width:0}h1{font-size:36px;letter-spacing:-1.4px;line-height:1.15}h2{font-size:20px;letter-spacing:-.35px}h3{font-size:16px}.intro{padding:26px 0 18px}.intro p{color:var(--muted);margin-top:6px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--radius);margin-bottom:24px}.metrics div{padding:14px 10px}.metrics div+div{border-left:1px solid var(--line)}.metrics span{display:block;color:var(--muted);font-size:12px;min-height:35px}.metrics strong{font-size:30px;line-height:1;font-variant-numeric:tabular-nums}.metrics div:nth-child(2) strong{color:var(--green)}.metrics div:nth-child(3) strong{color:var(--warn)}button,select,input{font:inherit;border-radius:9px;min-height:44px;border:1px solid var(--line);background:var(--panel);color:var(--ink);padding:9px 12px}button{cursor:pointer;font-weight:650}button:disabled,select:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.quiet{background:transparent}.danger{color:var(--red);background:var(--red-bg);border-color:var(--red)}.server{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin:0 0 14px}.serverhead{justify-content:space-between;align-items:flex-start}.identity{min-width:0}.place{color:var(--muted);font-size:12px;margin-top:3px}.flag{font-size:17px;margin-right:5px}.status{flex:none;font-size:12px;color:var(--warn);max-width:115px;text-align:right;overflow-wrap:break-word}.status.ok{color:var(--green)}.status.bad{color:var(--red)}.details{margin:16px 0;flex-wrap:wrap;gap:6px 20px;color:var(--muted);font-size:12px}.ip{font-family:var(--mono);color:var(--ink);font-size:14px}.detail{color:var(--muted);font-size:13px;margin-bottom:14px}.track{height:5px;background:var(--line);border-radius:5px;margin:8px 0 16px;overflow:clip}.track progress{width:100%;height:5px;appearance:none;border:0;display:block;background:var(--line)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--warn)}progress::-moz-progress-bar{background:var(--warn)}.settings{border-top:1px solid var(--line);padding-top:14px;align-items:end;justify-content:space-between;flex-wrap:wrap}.settings label{display:grid;gap:5px;color:var(--muted);font-size:12px;flex:1}.settings select{width:100%;min-width:100px}.history{margin-top:30px}.history h2{margin-bottom:10px}.event{padding:12px 0;border-bottom:1px solid var(--line)}.event strong{display:block;font-size:13px}.event p{font-size:12px;color:var(--muted);margin-top:4px}.notice{padding:12px;border:1px solid var(--line);border-radius:9px;color:var(--warn);margin:12px 0}footer{padding-top:24px;text-align:center}dialog{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);width:calc(100% - 36px);max-width:440px;padding:20px}dialog::backdrop{background:var(--bg);opacity:.85}dialog p{margin:12px 0;color:var(--muted)}dialog label{display:grid;gap:5px;margin:14px 0}dialog .actions{justify-content:flex-end}dialog input,dialog select{width:100%}@media(max-width:370px){main{padding-inline:12px}.metrics div{padding-inline:7px}.settings .danger{width:100%}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto;animation:none;transition:none}}

.primary{background:var(--green);color:var(--bg);border-color:var(--green)}.place{display:flex;align-items:center;gap:6px}.countryflag{width:25px;height:17px;object-fit:cover;border-radius:2px;border:1px solid var(--line)}.country-code{font-family:var(--mono);color:var(--ink)}[hidden]{display:none!important}.server>button{margin-bottom:12px}

.mark{background:none;border-radius:50%;width:46px;height:46px;object-fit:contain}.primary{background:#81b2ff;border-color:#81b2ff;color:#10192b}.modebar{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);gap:10px}.modebar strong,.modebar small{display:block}.modebar strong{font-size:13px}.server{box-shadow:0 8px 24px #0002}.intro h1{font-size:32px}.install-stage{padding:13px;background:#0e1521;border:1px solid var(--line);border-radius:11px;margin:10px 0 16px}.stage-line{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px}.stage-line span{color:#a6c9ff;font-variant-numeric:tabular-nums}.install-stage progress{appearance:none;display:block;width:100%;height:8px;border:0;border-radius:99px;overflow:hidden;margin:12px 0;background:var(--line)}.install-stage progress::-webkit-progress-value{background:#81b2ff}.install-stage progress::-moz-progress-bar{background:#81b2ff}.install-stage .detail{margin:5px 0}.error-text{color:var(--red);font-size:13px;margin:8px 0}.server-log{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.server-log summary{cursor:pointer;font-weight:650;color:#bcd5ff;font-size:13px}.log-entry{border-left:2px solid var(--line);padding:8px 10px;margin:5px 0 0;font-size:12px}.log-entry strong,.log-entry small{display:block}.log-entry p{color:var(--muted);margin:4px 0}.checkline{display:flex!important;align-items:center;gap:8px!important;font-size:13px}.checkline input{width:20px!important;min-height:20px;accent-color:#81b2ff;flex-shrink:0}.notice{background:#131d2b}.settings select{background:#0e1521}button:not(:disabled):active{transform:translateY(1px)}
.resources{margin:0 0 18px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#0e1521}.resource-top,.resource-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.resource-top{margin-bottom:12px}.resource-top strong{font-size:13px}.resource-top small{text-align:right;font-size:10px}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.resource-tile{background:#182233;border-radius:8px;padding:9px;min-width:0}.resource-tile small,.resource-tile strong{display:block}.resource-tile strong{font-size:14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.resource-meter{margin-top:12px}.resource-line{font-size:12px;color:var(--muted)}.resource-line strong{color:var(--ink);font-variant-numeric:tabular-nums}.usage{appearance:none;display:block;width:100%;height:7px;border:0;border-radius:6px;overflow:hidden;margin:5px 0;background:var(--line);--usage:#6eafff}.usage.medium{--usage:#f2be68}.usage.high{--usage:#ff647d}.usage::-webkit-progress-bar{background:var(--line);border-radius:6px}.usage::-webkit-progress-value{background:var(--usage);border-radius:6px;transform-origin:left center}.usage::-moz-progress-bar{background:var(--usage);border-radius:6px;transform-origin:left center}.usage.animate::-webkit-progress-value{animation:fill-in .65s cubic-bezier(.2,.8,.2,1)}.usage.animate::-moz-progress-bar{animation:fill-in .65s cubic-bezier(.2,.8,.2,1)}@keyframes fill-in{from{transform:scaleX(0)}to{transform:scaleX(1)}}.resource-unavailable{margin-top:10px;color:var(--muted);font-size:12px}.remove-link{display:block;margin:12px 0 0 auto!important;background:transparent;border-color:transparent;color:var(--red);font-size:12px;min-height:32px;padding:5px 8px}.remove-link:hover{border-color:var(--line)}@media(prefers-reduced-motion:reduce){.usage.animate::-webkit-progress-value{animation:none}.usage.animate::-moz-progress-bar{animation:none}}

.node-mode{display:grid;gap:7px;margin-top:12px;color:var(--muted,#a4b3c9);font-size:13px}.node-mode select{width:100%}

.refresh-icon{border-radius:50%;width:46px;height:46px;min-width:46px;padding:0;display:grid;place-items:center;color:#91baff;flex-shrink:0}.refresh-icon:active{transform:scale(.94)}.refresh-icon.is-loading svg{animation:nova-spin .9s linear infinite}@keyframes nova-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.refresh-icon.is-loading svg{animation:none}}

.refresh-icon{border:1px solid #34445c;background:#172235;color:#dbe9ff;width:44px;height:44px;min-width:44px;transition:background .18s,border-color .18s,transform .18s}.refresh-icon:hover{background:#22344d;border-color:#628dce}.refresh-icon svg{display:block;flex-shrink:0}.auth-reopen{margin:0 0 18px;width:100%;color:#bcd5ff}.auth-reopen[hidden]{display:none}
