@font-face {
  font-family: "Instrument Sans";
  src: url("/instrument-sans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper:#10111b; --surface:#191b29; --surface-raised:#222538; --line:#34374b;
  --ink:#f2f1fc; --muted:#adb0c6; --blue:#a49bff; --teal:#68d4b0; --amber:#efbb70;
  --nav-width:226px;
  font:15px/1.5 "Instrument Sans","Segoe UI",sans-serif;
  color:var(--ink); background:var(--paper); font-variant-numeric:tabular-nums;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0; min-height:100dvh; background:radial-gradient(ellipse 70% 410px at 90% -120px,#24243f 0,transparent 83%),var(--paper)}
button,input,select {font:inherit}
button,.button {display:inline-flex;align-items:center;justify-content:center;gap:.45rem;cursor:pointer;border:1px solid #40435a;padding:.62rem .95rem;background:#252739;color:var(--ink);border-radius:9px;font-weight:600;font-size:.9rem;line-height:1.3;transition:background-color .14s,border-color .14s}
button:hover,.button:hover {background:#32344d;border-color:#626582}
button:disabled {cursor:default;opacity:.48}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {outline:3px solid #b7aafa;outline-offset:3px}
.primary {background:#aaa1ff;border-color:#bcb5ff;color:#1b1633}
.primary:hover {background:#c1baff;border-color:#d2cdff}
a {color:#bbb3ff}
.icon {width:19px;height:19px;flex:none;display:inline-block;vertical-align:middle}
.mast {position:fixed;inset:0 auto 0 0;width:var(--nav-width);z-index:4;background:#141520;border-right:1px solid #2a2c3d}
.bar {height:100%;padding:30px 16px 16px;display:flex;flex-direction:column}
.brand {display:flex;align-items:center;gap:.72rem;color:#fff;text-decoration:none;font-weight:680;font-size:1.1rem;letter-spacing:-.055em;line-height:1.16;white-space:nowrap;padding-left:6px}
.mark {display:inline-flex;position:relative;align-items:center;justify-content:center;gap:2px;width:33px;height:33px;flex:none;background:linear-gradient(145deg,#a194ff,#695be1);border-radius:9px;box-shadow:inset 0 0 0 1px #c6bfff45}
.mark i {width:4px;border-radius:1px;display:block;background:white;transform:skew(-20deg);height:11px}
.mark i:nth-child(2) {height:18px}.mark i:nth-child(3){height:13px}
nav {margin-top:46px;display:grid;gap:5px}
.tab,.tab-link {display:flex;align-items:center;justify-content:flex-start;gap:.7rem;width:100%;border:1px solid transparent;border-radius:9px;background:transparent;color:#aeb0c4;text-decoration:none;font-size:.94rem;font-weight:530;padding:.78rem .8rem;line-height:1.25;text-align:left}
.tab .icon,.tab-link .icon {color:#9599b4}
.tab:hover,.tab-link:hover {color:#fff;background:#1e202e;border-color:transparent}
.tab[aria-pressed=true],.tab-link.current,.tab-link[aria-current=page] {color:#e5e2ff;background:#2c2843;border-color:#4c4569}
.tab[aria-pressed=true] .icon,.tab-link.current .icon {color:#c1b7ff}
.account-panel {margin-top:auto;border-top:1px solid #303144;padding:16px 1px 0;display:flex;align-items:center;gap:9px;min-width:0}
.avatar,.metric-icon,.rig-icon {display:grid;place-items:center;flex:none}
.avatar {width:31px;height:31px;background:#302b47;color:#bcaffc;border-radius:50%}
.identity {display:grid;flex:1;min-width:0;font-size:.81rem}
.identity-name {overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.identity-role {color:var(--muted);font-size:.71rem}
.icon-button,.close {border:0;background:transparent;padding:6px;color:var(--muted)}
.menu-toggle {display:none}
main {margin-left:var(--nav-width);padding:clamp(25px,4vw,61px) clamp(20px,4vw,65px) 65px;max-width:1590px}
h1,h2,h3,p {margin:0}
h1,h2,h3 {font-family:inherit;line-height:1.17;letter-spacing:-.045em;overflow-wrap:anywhere}
h1 {font-weight:620;font-size:clamp(2.15rem,3.7vw,3.65rem)}
h2 {font-weight:610;font-size:1.45rem}
h3 {font-weight:610;font-size:1.02rem}
.heading,.device-head,.subhead,.actions,.tagline {display:flex;align-items:center;gap:.68rem}
.heading,.device-head,.subhead {justify-content:space-between}
.heading {margin-bottom:1.7rem;align-items:center;gap:1rem}
.heading p,.hint,.muted,.intro p {color:var(--muted)}
.heading p {margin-top:.45rem;max-width:66ch;font-size:.95rem}
.actions,.subhead,.tagline {flex-wrap:wrap}
.hint {font-size:.86rem}
.fleet-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:1.5rem 0 2rem}
.metric {padding:1.14rem 1.2rem;border:1px solid #303348;background:linear-gradient(125deg,#1e2032,#191b2a);border-radius:14px}
.metric .metric-head {display:flex;align-items:center;gap:.5rem;font-size:.85rem;font-weight:540;color:#c2c0d9}
.metric-icon {width:28px;height:28px;border-radius:8px;background:#37314f;color:#bfadff}
.metric:nth-child(2) .metric-icon {background:#253b49;color:#83c5e3}
.metric:nth-child(3) .metric-icon {background:#313a34;color:#b2cd9b}
.metric .metric-icon .icon {width:16px;height:16px}
.metric strong {display:block;font-size:clamp(1.5rem,3vw,2.35rem);line-height:1.12;letter-spacing:-.055em;font-weight:580;margin-top:.7rem}
.empty {padding:clamp(1.8rem,5vw,3.45rem);border:1px dashed #43425d;border-radius:16px;background:radial-gradient(ellipse at top right,#29253c 0,transparent 55%),#181925}
.empty>.icon {color:#b6a5fb;width:37px;height:37px;margin-bottom:1.1rem}
.empty p {margin:.65rem 0 0;color:var(--muted);max-width:58ch}
.layout {display:grid;gap:1rem}
.layout>* {min-width:0}
.inventory {display:flex;align-items:stretch;gap:.5rem;flex-wrap:wrap}
.rig-row {display:flex;gap:.6rem;justify-content:flex-start;text-align:left;padding:.58rem .85rem;overflow-wrap:anywhere;border-radius:9px;background:#181927;border-color:#34364c}
.rig-row[aria-pressed=true] {border-color:#655b92;background:#29253c}
.rig-row small {color:var(--muted);font-weight:450;font-size:.72rem}
.rig-row .icon {color:#c3b4ff}
.detail,.sheet-card,.catalog-section {background:var(--surface);border:1px solid #303245;border-radius:16px;overflow:hidden}
.detail>section,.detail>header {padding:1.2rem clamp(1rem,2.1vw,1.75rem)}
.detail>section {border-top:1px solid #303244}
.device-head {background:linear-gradient(110deg,#242238,#1b1d2d)}
.device-title {display:flex;align-items:center;gap:.75rem;min-width:0}
.rig-icon {width:39px;height:39px;border-radius:10px;background:#36314e;color:#ccbeff}
.device-head h2 {font-size:clamp(1.15rem,2.1vw,1.65rem)}
.status {display:inline-flex;align-items:center;gap:.42rem;border-radius:20px;background:#2d2d38;color:#c3c0d4;padding:.26rem .66rem;font-size:.76rem;font-weight:600;white-space:nowrap}
.status:before {content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.status.online {color:#88e2be;background:#1e3833}
.facts {display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:.85rem;margin:0}
dt {color:var(--muted);font-size:.79rem}
dd {margin:.32rem 0 0;font-weight:580;overflow-wrap:anywhere;line-height:1.35}
.detail p {overflow-wrap:anywhere}
.detail h3 {margin-bottom:.4rem}
.detail .actions {margin-top:.8rem}
.detail .facts+p {margin-top:.7rem}
.gpu-wrap {overflow-x:auto;margin-top:.75rem}
table {width:100%;border-collapse:collapse;font-size:.86rem}
th,td {padding:.58rem .52rem;text-align:right;border-top:1px solid #323447;white-space:nowrap}
th {color:var(--muted);font-weight:460;font-size:.78rem}
th:first-child,td:first-child {text-align:left;padding-left:0;white-space:normal;min-width:100px}
.sheet-card,.catalog-section {padding:clamp(1rem,2vw,1.6rem)}
.sheets-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:1rem}
.sheet-card {min-width:0}
.sheet-card p {font-size:.88rem;color:var(--muted);overflow-wrap:anywhere}
.sheet-card h2 {margin-bottom:.4rem}
.sheet-card .facts {margin:1rem 0;grid-template-columns:1fr}
.sheet-card dd {font-size:.86rem}
.sheet-card>button,.sheet-card>details {margin-top:.5rem}
.sheet-card details p {margin:.55rem 0}
form {display:grid;gap:1rem}
label {display:grid;gap:.35rem;font-size:.86rem;font-weight:540}
input,select {width:100%;min-width:0;border:1px solid #44465d;background:#131521;color:var(--ink);padding:.7rem .8rem;border-radius:8px;font-weight:420}
input::placeholder {color:#9394a9}
input[type=checkbox]{width:auto;justify-self:start}
summary {cursor:pointer;font-weight:550;color:#c9c3eb;font-size:.88rem}
.advanced label {margin-top:.75rem}
dialog {width:min(490px,calc(100% - 26px));max-height:87dvh;color:var(--ink);background:#1e2030;border:1px solid #45465d;border-radius:17px;padding:1.5rem;box-shadow:0 28px 90px #0008}
dialog::backdrop {background:#060711b8;backdrop-filter:blur(5px)}
.dialog-head {display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:1.2rem}
.close {font-size:1.5rem;line-height:1}
.form-actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.65rem;margin-top:.5rem}
.pair-code {font:600 clamp(1.6rem,6vw,2.4rem)/1.4 ui-monospace,monospace;letter-spacing:.05em;color:#cec3ff;background:#302b48;padding:.7rem .85rem;border-radius:9px;margin:.8rem 0;overflow-wrap:anywhere}
.warning,.danger {color:#f2b88d}
#notice,#dialog-error {padding:.7rem .9rem;border:1px solid #3a5c52;border-radius:10px;color:#a6e3c7;background:#1b2e2a;margin-bottom:1rem;overflow-wrap:anywhere;font-size:.9rem}
#notice.error,#dialog-error {border-color:#745139;color:#efc299;background:#392a20}
#dialog-error {margin:.75rem 0 0}
.signed-out {display:grid;place-items:center;background:radial-gradient(ellipse at 16% 29%,#23223f 0,transparent 52%),#10111b}
.signed-out .mast {position:absolute;inset:0 0 auto;background:transparent;border:0;width:100%}
.signed-out .bar {padding:25px clamp(22px,6vw,90px);height:auto}
.signed-out .brand {width:max-content}
.signed-out .account-panel,.signed-out .menu-toggle {display:none}
.signed-out main {margin:62px auto 0;width:min(1190px,100%);padding:60px clamp(24px,6vw,65px)}
.login {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(285px,.85fr);align-items:center;gap:clamp(2rem,6vw,6.5rem)}
.intro h1 {font-size:clamp(3.2rem,6.9vw,6.4rem);font-weight:600;letter-spacing:-.061em;line-height:1.01}
.intro p {max-width:35ch;margin-top:1.25rem;font-size:1.02rem}
.accelerator-art {height:139px;position:relative;overflow:hidden;margin-top:1rem;pointer-events:none;mask-image:linear-gradient(to right,transparent,#000 5%,#000 90%,transparent)}
.board {position:absolute;left:2%;top:20%;width:86%;height:88px;border:2px solid #78709b;border-right:14px solid #4e4771;border-bottom:10px solid #4a4366;border-radius:15px;transform:perspective(470px) rotateX(39deg) rotateZ(-9deg) skewX(-6deg);display:flex;align-items:center;justify-content:space-around;box-shadow:0 13px 22px #07081377,inset 0 1px 0 #c1aadf;background:repeating-linear-gradient(90deg,#34304c,#34304c 3px,#251f37 4px,#251f37 7px)}
.board:after {content:"";position:absolute;bottom:-13px;left:20%;width:37%;height:5px;background:repeating-linear-gradient(90deg,#b57b4b,#b57b4b 4px,#584739 5px,#584739 6px)}
.board i {width:67px;height:67px;position:relative;border:3px solid #47415f;border-radius:50%;background:radial-gradient(circle,#787188 0 10%,#333044 12% 23%,transparent 24%),repeating-conic-gradient(from 15deg,#5f566f 0 9deg,#342e44 11deg 24deg,#211d2b 26deg 39deg,#62596e 41deg 45deg);box-shadow:0 0 0 2px #232031}
.auth-card {background:linear-gradient(145deg,#242438,#191b2a 65%);border:1px solid #3e3d55;border-radius:20px;padding:clamp(20px,3vw,35px);box-shadow:0 20px 60px #0808123a}
.auth-tabs {display:flex;gap:.3rem;border:1px solid #36374c;background:#131522;padding:.27rem;border-radius:10px;margin-bottom:1.65rem}
.auth-tabs button {flex:1;border:0;background:transparent;color:#abaac0;border-radius:7px;padding:.55rem;font-size:.86rem}
.auth-tabs button[aria-pressed=true] {background:#373449;color:#f1eaff}
.login-form h2 {font-size:1.65rem;margin-bottom:.1rem}
.login-form>.primary {margin-top:.18rem}
@media(min-width:1660px){main{margin-right:auto}}
@media(max-width:1080px){:root{--nav-width:199px}.bar{padding-left:12px;padding-right:12px}main{padding-left:28px;padding-right:28px}.facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .mast {position:sticky;top:0;width:100%;height:auto;border-right:0;border-bottom:1px solid #303144}
  .bar {height:auto;min-height:59px;padding:10px 16px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
  .brand {padding-left:0}.mark{width:29px;height:29px}
  .menu-toggle {display:inline-flex;border-color:#393c50;padding:.4rem .6rem;font-size:.8rem}
  .menu-toggle .icon {width:15px;height:15px}
  .bar nav,.account-panel {display:none}
  .bar:has(.menu-toggle[aria-expanded=true]) nav {display:grid;width:100%;margin:4px 0;grid-template-columns:1fr 1fr}
  .bar:has(.menu-toggle[aria-expanded=true]) .account-panel {display:flex;width:100%;margin:0;padding-top:9px}
  main {margin:0;padding:1.65rem 1rem 3rem}
  .heading {align-items:flex-start;flex-wrap:wrap;margin-bottom:1.25rem}
  .fleet-summary {gap:7px;margin:1rem 0 1.3rem}
  .metric {border-radius:11px;padding:.72rem .65rem}
  .metric .metric-head {font-size:.73rem;gap:.32rem}
  .metric-icon {width:23px;height:23px;border-radius:6px}
  .metric-icon .icon {width:14px!important}
  .metric strong {margin-top:.6rem}
  .facts {grid-template-columns:repeat(2,minmax(0,1fr))}
  .login {grid-template-columns:1fr;gap:1.65rem;max-width:495px;margin:auto}
  .intro h1 {font-size:clamp(2.55rem,9vw,4rem)}
  .intro h1 br {display:none}
  .intro p {margin-top:.7rem;font-size:.95rem}
  .accelerator-art {display:none}
  .signed-out {display:block}
  .signed-out main {padding:1.3rem 1.1rem 2rem}
  .signed-out .bar {padding:15px 17px}
  .detail>section,.detail>header {padding:1rem}
}
@media(max-width:430px){.metric .metric-head{display:grid;min-height:43px}.fleet-summary{gap:6px}.rig-row{font-size:.83rem}.heading .actions button{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
