:root {
  color-scheme: dark;
  --bg: #080d0f;
  --panel: #0d1416;
  --panel-2: #10181a;
  --line: rgba(255, 255, 255, 0.085);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: #f4f7f6;
  --muted: #8a9497;
  --dim: #616b6e;
  --green: #00ff5a;
  --green-soft: #66ff98;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; }

.boot-screen { display: grid; min-height: 100vh; place-content: center; justify-items: center; gap: 1.4rem; color: var(--dim); }
.boot-logo { color: #fff; font-size: 1.4rem; font-weight: 900; letter-spacing: .25em; }
.boot-line { width: 10rem; height: 2px; overflow: hidden; background: var(--line); }
.boot-line i { display: block; width: 45%; height: 100%; background: var(--green); animation: load 1s ease-in-out infinite alternate; }
@keyframes load { to { transform: translateX(122%); } }

.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand svg { width: 2.8rem; height: 2.35rem; flex: 0 0 auto; overflow: visible; filter: drop-shadow(0 0 12px rgba(0,255,90,.12)); }
.brand strong, .brand small { display: block; white-space: nowrap; }
.brand strong { font-size: 1.05rem; font-weight: 900; letter-spacing: .19em; line-height: 1; transform: scaleX(1.04); transform-origin: left; }
.brand small { margin-top: .48rem; color: #758083; font-size: .56rem; letter-spacing: .33em; }
.brand-large { gap: 1.05rem; }
.brand-large svg { width: 4.8rem; height: 4rem; }
.brand-large strong { font-size: clamp(1.6rem, 2.25vw, 2.35rem); letter-spacing: .22em; }
.brand-large small { margin-top: .72rem; font-size: .7rem; letter-spacing: .43em; }

.auth-shell { position: relative; display: grid; min-height: 100vh; grid-template-columns: minmax(26rem, .96fr) minmax(32rem, 1.04fr); overflow: hidden; }
.auth-shell::before, .workspace main::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 52px 52px; }
.auth-brand, .auth-workspace { position: relative; z-index: 1; }
.auth-brand { display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 5vw, 5rem); border-right: 1px solid var(--line); background: radial-gradient(circle at 14% 82%, rgba(0,255,90,.105), transparent 25rem), linear-gradient(140deg, rgba(255,255,255,.025), transparent 48%); }
.auth-copy { margin-block: auto; padding-block: 4rem; }
.eyebrow { color: #697477; font-size: .7rem; font-weight: 700; letter-spacing: .18em; }
.auth-copy h1 { margin: 1.25rem 0 0; font-size: clamp(3.15rem, 5.4vw, 6rem); font-weight: 650; letter-spacing: -.065em; line-height: .95; }
.auth-copy p { max-width: 38rem; margin: 1.8rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.22rem); line-height: 1.65; }
.trust-row { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; color: #9aa4a7; font-size: .83rem; }
.trust-row span::first-letter { color: var(--green); }
.auth-workspace { display: grid; min-height: 100vh; align-content: center; justify-items: center; padding: 2rem; }
.auth-card { width: min(100%, 31rem); padding: clamp(1.6rem, 3.6vw, 2.7rem); border: 1px solid var(--line); border-radius: 1rem; background: rgba(12,19,21,.94); box-shadow: 0 34px 100px rgba(0,0,0,.35); backdrop-filter: blur(16px); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 2.4rem; padding: .25rem; border: 1px solid var(--line-soft); border-radius: .65rem; background: rgba(0,0,0,.2); }
.tabs button { min-height: 2.65rem; border-radius: .48rem; background: transparent; color: #707b7e; font-size: .85rem; font-weight: 600; transition: .15s ease; }
.tabs button.active { background: rgba(255,255,255,.075); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.auth-symbol { display: grid; width: 3rem; height: 3rem; place-items: center; margin-bottom: 1.25rem; border: 1px solid rgba(0,255,90,.2); border-radius: .75rem; background: rgba(0,255,90,.07); color: var(--green); font-size: 1.25rem; }
.auth-card h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.3rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.08; }
.lead { margin: .9rem 0 1.5rem; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.lead strong { color: #dfe4e5; }
.field { display: block; margin-top: 1rem; }
.field > span { display: block; margin-bottom: .5rem; color: #cbd1d2; font-size: .8rem; font-weight: 600; }
.field input { width: 100%; height: 3.15rem; padding: 0 .9rem; outline: none; border: 1px solid rgba(255,255,255,.1); border-radius: .58rem; background: rgba(255,255,255,.025); color: #fff; transition: .15s ease; }
.field input::placeholder { color: #505a5d; }
.field input:focus { border-color: rgba(0,255,90,.48); box-shadow: 0 0 0 3px rgba(0,255,90,.07); }
.field input:read-only { cursor: default; color: #7b8588; background: rgba(255,255,255,.012); }
.check { display: flex; align-items: flex-start; gap: .65rem; color: #7b8689; font-size: .76rem; line-height: 1.5; cursor: pointer; }
.check input { width: 1rem; height: 1rem; flex: 0 0 auto; margin: .1rem 0 0; accent-color: var(--green); }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.login-options button, .back-link { padding: 0; background: transparent; color: #96a0a3; font-size: .76rem; }
.login-options button:hover, .back-link:hover { color: #fff; }
.back-link { margin-bottom: 2rem; }
.primary, .secondary { display: flex; width: 100%; min-height: 3.2rem; align-items: center; justify-content: center; gap: .6rem; border-radius: .6rem; text-decoration: none; font-size: .9rem; font-weight: 750; transition: .15s ease; }
form .primary { margin-top: 1.35rem; }
.primary { background: var(--green); color: #051109; }
.primary:hover { background: #39ff7c; box-shadow: 0 0 30px rgba(0,255,90,.15); }
.primary:disabled { cursor: wait; opacity: .55; }
.primary b { font-size: 1.08rem; }
.secondary { margin-top: .7rem; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #d5dbdc; }
.secondary:hover { background: rgba(255,255,255,.06); }
.security-note { margin-top: 1.35rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); color: #626d70; font-size: .72rem; text-align: center; }
.support { margin: 1.1rem 0 0; color: #5d676a; font-size: .75rem; }
.support a { color: #98a2a5; }
.form-error, .notice { margin-bottom: 1rem; padding: .75rem .85rem; border: 1px solid rgba(255,79,96,.25); border-radius: .55rem; background: rgba(255,79,96,.07); color: #ff939d; font-size: .78rem; line-height: 1.45; }
.form-error button { padding: 0; background: transparent; color: #fff; font-size: inherit; text-decoration: underline; }
.notice { border-color: rgba(0,255,90,.2); background: rgba(0,255,90,.06); color: #8affb1; }
.result-card { text-align: center; }
.result-card .eyebrow { display: block; margin-bottom: 1rem; color: var(--green); }
.result-icon { display: grid; width: 3.6rem; height: 3.6rem; place-items: center; margin: 0 auto 1.25rem; border: 1px solid rgba(0,255,90,.22); border-radius: 50%; background: rgba(0,255,90,.08); color: var(--green); font-size: 1.3rem; }
.result-icon.error { border-color: rgba(255,79,96,.25); background: rgba(255,79,96,.08); color: #ff6979; }
.result-card .primary { margin-top: 1.4rem; }
.verification-code input { height: 3.8rem; font-size: 1.65rem; font-weight: 750; letter-spacing: .42em; text-align: center; }
.verify-login { margin-top: 1.2rem; }
.dev-hint { margin: .75rem 0; color: #596366; font-size: .7rem; }
.spinner { width: 2.5rem; height: 2.5rem; margin: 0 auto 1.4rem; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dashboard { display: grid; min-height: 100vh; grid-template-columns: 17.5rem minmax(0,1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 2rem 1rem 1rem; border-right: 1px solid var(--line-soft); background: #090e10; }
.sidebar > .brand { margin: 0 .65rem; }
.sidebar nav { display: grid; gap: .35rem; margin-top: 3.2rem; }
.sidebar nav button { display: flex; min-height: 2.9rem; align-items: center; gap: .8rem; padding: 0 .8rem; border-radius: .55rem; background: transparent; color: #768083; font-size: .88rem; text-align: left; transition: .13s ease; }
.sidebar nav button svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sidebar nav button:hover { background: rgba(255,255,255,.035); color: #fff; }
.sidebar nav button.active { background: rgba(0,255,90,.08); color: #fff; box-shadow: inset 3px 0 0 var(--green); }
.sidebar nav button.active svg { color: var(--green); }
.account { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; margin-top: auto; padding: .72rem; border: 1px solid var(--line-soft); border-radius: .7rem; background: rgba(255,255,255,.022); }
.account > i, .user-row > i { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: .5rem; background: rgba(0,255,90,.09); color: var(--green); font-size: .75rem; font-style: normal; font-weight: 700; }
.account span { min-width: 0; }
.account strong, .account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account strong { font-size: .78rem; }
.account small { margin-top: .22rem; color: #596366; font-size: .65rem; }
.account button { background: transparent; color: #566063; }
.account button:hover { color: #fff; }
.workspace { min-width: 0; }
.workspace > header { position: relative; z-index: 2; display: flex; min-height: 5rem; align-items: center; justify-content: space-between; padding: 0 2.2rem; border-bottom: 1px solid var(--line-soft); background: rgba(8,13,15,.88); backdrop-filter: blur(12px); }
.workspace > header span, .workspace > header strong { display: block; }
.workspace > header span { color: #5d676a; font-size: .65rem; letter-spacing: .22em; }
.workspace > header strong { margin-top: .35rem; color: #c8ced0; font-size: .82rem; }
.add-device { min-height: 2.5rem; padding: 0 1rem; border-radius: .5rem; background: var(--green); color: #061009; font-size: .8rem; font-weight: 750; }
.workspace main { position: relative; min-height: calc(100vh - 5rem); padding: 2.25rem; background: radial-gradient(circle at 86% 4%, rgba(0,255,90,.045), transparent 23rem); }
.workspace main > * { position: relative; z-index: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: 82rem; margin: 0 auto 2rem; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 650; letter-spacing: -.05em; }
.page-head p { margin: .65rem 0 0; color: var(--muted); font-size: .95rem; }
.secure, .status { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid rgba(0,255,90,.18); border-radius: 99px; background: rgba(0,255,90,.06); color: var(--green-soft); font-size: .72rem; }
.secure { padding: .5rem .7rem; }
.status { padding: .32rem .58rem; }
.status i { width: .38rem; height: .38rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.status.offline { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); color: #899295; }
.status.offline i { background: #697275; box-shadow: none; }
.metrics { display: grid; max-width: 82rem; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 0 auto 1rem; }
.metrics article { position: relative; min-height: 8.5rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: .8rem; background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
.metrics b, .metrics span { display: block; }
.metrics b { font-size: 1.75rem; letter-spacing: -.04em; }
.metrics span { margin-top: .5rem; color: #758083; font-size: .78rem; }
.metrics i { position: absolute; right: 1.2rem; bottom: 1.1rem; color: #4cdf7e; font-size: .68rem; font-style: normal; }
.two-col { display: grid; max-width: 82rem; grid-template-columns: 1.15fr .85fr; gap: 1rem; margin: 0 auto; }
.panel, .device-card { border: 1px solid var(--line); border-radius: .85rem; background: linear-gradient(145deg, rgba(255,255,255,.027), rgba(255,255,255,.01)); box-shadow: 0 22px 70px rgba(0,0,0,.15); }
.panel { padding: 1.5rem; }
.panel h2 { margin: .6rem 0 0; font-size: 1.2rem; }
.onboarding { position: relative; overflow: hidden; }
.onboarding > * { position: relative; z-index: 1; }
.onboarding > p { max-width: 34rem; margin: .8rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.onboarding-mark { position: absolute; z-index: 0; right: 1.3rem; bottom: -1.6rem; opacity: .06; }
.onboarding-mark svg { width: 12rem; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.device-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; margin-top: 1.4rem; padding-block: 1.2rem; border-block: 1px solid var(--line-soft); }
.device-summary small, .device-summary strong, .info-grid small, .info-grid strong { display: block; }
.device-summary small, .info-grid small { color: #626d70; font-size: .68rem; }
.device-summary strong, .info-grid strong { margin-top: .45rem; color: #d8ddde; font-size: .78rem; }
.compact { width: auto; min-height: 2.6rem; margin-top: 1.2rem; padding: 0 1rem; }
.event { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.event:last-child { border: 0; padding-bottom: 0; }
.event > i { width: .45rem; height: .45rem; flex: 0 0 auto; margin-top: .25rem; border-radius: 50%; background: var(--green); }
.event strong, .event small { display: block; }
.event strong { color: #cfd5d6; font-size: .79rem; }
.event small { margin-top: .3rem; color: #596366; font-size: .68rem; }
.device-card { display: grid; max-width: 82rem; min-height: 23rem; grid-template-columns: 30% 1fr; margin: 0 auto 1rem; overflow: hidden; }
.device-art { display: grid; place-items: center; border-right: 1px solid var(--line-soft); background: radial-gradient(circle, rgba(0,255,90,.08), transparent 50%), #0b1314; }
.device-art svg { width: 7rem; filter: drop-shadow(0 0 28px rgba(0,255,90,.18)); }
.device-info { align-self: center; padding: 2rem; }
.device-id { margin-left: .6rem; color: #616b6e; font-size: .72rem; }
.device-info h2 { margin: 1.2rem 0 .4rem; font-size: 1.65rem; letter-spacing: -.04em; }
.device-info > p { margin: 0; color: var(--muted); font-size: .88rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.4rem; }
.info-grid > div { padding: 1rem; border: 1px solid var(--line-soft); border-radius: .6rem; background: rgba(255,255,255,.015); }
.toggle-row { display: flex; min-height: 4.2rem; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-soft); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { color: #d4dadb; font-size: .8rem; }
.toggle-row small { margin-top: .3rem; color: #5f696c; font-size: .7rem; }
.toggle { position: relative; width: 2.1rem; height: 1.15rem; border-radius: 99px; background: #293235; }
.toggle i { position: absolute; top: .17rem; left: .18rem; width: .8rem; height: .8rem; border-radius: 50%; background: #7f898c; transition: .15s; }
.toggle.on { background: rgba(0,255,90,.22); }
.toggle.on i { left: 1.13rem; background: var(--green); }
.user-row { display: grid; max-width: 82rem; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .8rem 1.5rem; margin: 0 auto 1rem; }
.user-row > span strong, .user-row > span small { display: block; }
.user-row > span strong { font-size: .82rem; }
.user-row > span small { margin-top: .25rem; color: #626c6f; font-size: .7rem; }
.user-row > b { color: #a7b0b2; font-size: .72rem; }
.user-row > em { padding: .35rem .55rem; border-radius: 99px; background: rgba(0,255,90,.08); color: var(--green-soft); font-size: .68rem; font-style: normal; }
.empty { max-width: 82rem; margin: 0 auto; padding: 3.5rem; text-align: center; }
.empty > div { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; margin: 0 auto; border: 1px dashed rgba(255,255,255,.15); border-radius: .65rem; color: #667174; }
.empty h3 { margin: 1rem 0 .4rem; font-size: .9rem; }
.empty p { max-width: 30rem; margin: 0 auto; color: #626c6f; font-size: .76rem; line-height: 1.6; }
.empty .primary { margin: 1.2rem auto 0; }
.log-list { max-width: 82rem; margin: 0 auto; overflow: hidden; padding: .5rem 1.2rem; }
.log-head, .log-row { display: grid; grid-template-columns: .7fr 1.3fr 1.3fr 1fr; gap: 1rem; padding: 1rem .5rem; }
.log-head { color: #596366; font-size: .68rem; }
.log-row { border-top: 1px solid var(--line-soft); color: #adb6b8; font-size: .74rem; }
.loading-row { padding: 1.3rem .5rem; border-top: 1px solid var(--line-soft); color: #697376; font-size: .75rem; }
.error-text { color: #ff8b96; }
.profile-form { margin-top: .5rem; }
.profile-form .form-error { margin-top: 1rem; margin-bottom: 0; }
.session-list { margin-top: 1rem; }
.session-row { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-soft); }
.session-row:last-child { border-bottom: 0; }
.session-row strong, .session-row small { display: block; }
.session-row strong { color: #d6dcdd; font-size: .8rem; }
.session-row small { margin-top: .3rem; color: #606a6d; font-size: .68rem; }
.session-row em { color: var(--green-soft); font-size: .68rem; font-style: normal; }
.session-row button { padding: .4rem .6rem; border: 1px solid var(--line); border-radius: .45rem; background: rgba(255,255,255,.025); color: #abb4b6; font-size: .68rem; }
.session-row button:hover { background: rgba(255,255,255,.06); color: #fff; }
.session-row button:disabled { opacity: .5; }
.profile-block { position: relative; margin-top: 1.4rem; padding: 1.1rem; border: 1px solid var(--line-soft); border-radius: .65rem; background: rgba(255,255,255,.015); }
.profile-block strong, .profile-block small { display: block; }
.profile-block strong { font-size: .9rem; }
.profile-block small { margin-top: .3rem; color: #697376; font-size: .72rem; }
.profile-block p { margin: 1rem 0 0; color: #9aa4a6; font-size: .78rem; }
.profile-block em { position: absolute; top: 1rem; right: 1rem; color: var(--green-soft); font-size: .67rem; font-style: normal; }
.toast { position: fixed; z-index: 20; right: 1.2rem; bottom: 1.2rem; max-width: 24rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .65rem; background: #11191b; color: #dce1e2; box-shadow: 0 18px 50px rgba(0,0,0,.4); font-size: .78rem; line-height: 1.45; }
.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.modal { position: relative; width: min(100%, 31rem); padding: 2rem; border: 1px solid var(--line); border-radius: .9rem; background: #0d1416; box-shadow: 0 32px 100px rgba(0,0,0,.6); }
.modal h2 { margin: .7rem 0 0; font-size: 1.7rem; letter-spacing: -.04em; }
.modal > p { margin: .75rem 0 1.2rem; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.modal-close { position: absolute; top: .8rem; right: .9rem; width: 2.2rem; height: 2.2rem; border-radius: .45rem; background: transparent; color: #6d777a; font-size: 1.5rem; }
.modal-close:hover { background: rgba(255,255,255,.05); color: #fff; }
.dev-code { width: 100%; min-height: 2.7rem; margin-top: 1rem; border: 1px dashed rgba(0,255,90,.25); border-radius: .55rem; background: rgba(0,255,90,.035); color: var(--green-soft); font-size: .77rem; }
.dev-code:disabled { opacity: .55; }
.dev-copy { display: block; margin-top: .45rem; color: #566164; font-size: .65rem; text-align: center; }
.pair-result { min-height: 1rem; margin-top: .75rem; color: #8ea0a3; font-size: .7rem; text-align: center; }
.remote-console { max-width: 82rem; margin: 0 auto; padding: 0; overflow: hidden; }
.remote-toolbar { display: flex; min-height: 3.4rem; align-items: center; gap: 1rem; padding: 0 1rem; border-bottom: 1px solid var(--line-soft); color: #717c7f; font-size: .72rem; }
.remote-toolbar > button { margin-left: auto; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .45rem; background: rgba(255,255,255,.025); color: #aeb7b9; font-size: .68rem; }
.remote-screen { position: relative; display: grid; min-height: min(68vh, 52rem); place-items: center; overflow: hidden; outline: none; background: #020303; cursor: crosshair; }
.remote-screen:focus { box-shadow: inset 0 0 0 2px rgba(0,255,90,.42); }
.remote-screen > img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; max-height: min(68vh, 52rem); object-fit: contain; }
.remote-wait { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; color: #687275; text-align: center; }
.remote-wait div svg { width: 4rem; opacity: .2; }
.remote-wait strong { margin-top: 1rem; color: #9da6a8; font-size: .9rem; }
.remote-wait small { margin-top: .45rem; font-size: .7rem; }
.remote-screen.streaming .remote-wait { display: none; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; overflow: auto; }
  .auth-brand { min-height: 29rem; padding: 2rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-copy { padding-block: 3rem; }
  .auth-copy h1 { font-size: 3.5rem; }
  .auth-workspace { min-height: 42rem; }
  .dashboard { grid-template-columns: 5rem minmax(0,1fr); }
  .sidebar { align-items: center; padding-inline: .6rem; }
  .sidebar .brand > div, .sidebar nav span, .account span, .account button { display: none; }
  .sidebar > .brand { margin: 0; }
  .sidebar nav button { justify-content: center; width: 3rem; padding: 0; }
  .account { display: block; padding: .45rem; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .brand-large svg { width: 3.8rem; }
  .brand-large strong { font-size: 1.35rem; }
  .brand-large small { font-size: .54rem; letter-spacing: .34em; }
  .auth-brand { min-height: 27rem; }
  .auth-copy h1 { font-size: 2.8rem; }
  .auth-workspace { padding: 1rem; }
  .auth-card { padding: 1.3rem; }
  .dashboard { display: block; padding-bottom: 4.4rem; }
  .sidebar { position: fixed; z-index: 10; top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: 4.4rem; flex-direction: row; padding: .45rem; border: 0; border-top: 1px solid var(--line); }
  .sidebar > .brand, .sidebar .account { display: none; }
  .sidebar nav { display: flex; width: 100%; justify-content: space-around; margin: 0; }
  .sidebar nav button { width: 2.8rem; min-height: 2.8rem; }
  .sidebar nav button.active { box-shadow: inset 0 -3px 0 var(--green); }
  .workspace > header { padding: 0 1rem; }
  .add-device { font-size: 0; }
  .add-device::after { content: "+"; font-size: 1.15rem; }
  .workspace main { padding: 1.25rem 1rem; }
  .page-head { display: block; }
  .page-head > *:last-child:not(:first-child) { margin-top: 1rem; }
  .metrics { grid-template-columns: 1fr; }
  .device-card { grid-template-columns: 1fr; }
  .device-art { min-height: 10rem; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .device-summary { grid-template-columns: 1fr; }
  .user-row { grid-template-columns: auto 1fr auto; }
  .user-row > b { display: none; }
  .log-list { overflow-x: auto; }
  .log-head, .log-row { min-width: 42rem; }
}
