:root {
  --bg: #07110f;
  --panel: rgba(17, 34, 30, .78);
  --panel-solid: #10221e;
  --line: rgba(181, 232, 215, .14);
  --text: #f4fbf8;
  --muted: #91aaa2;
  --brand: #4ee0b0;
  --brand-dark: #071e18;
  --danger: #ff877e;
  --success: #6fe3a7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 50% -15%, #163b31 0, var(--bg) 48%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.ambient { position: fixed; width: 36rem; height: 36rem; border-radius: 999px; filter: blur(110px); opacity: .13; pointer-events: none; }
.ambient-one { background: #43e7b0; top: -22rem; right: -12rem; }
.ambient-two { background: #218a76; bottom: -28rem; left: -18rem; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; }
.login-card { width: min(100%, 440px); padding: 44px; border: 1px solid var(--line); border-radius: 32px; background: rgba(11, 25, 21, .83); box-shadow: 0 30px 100px rgba(0, 0, 0, .42); backdrop-filter: blur(24px); }
.brand-mark { width: 70px; height: 70px; display: flex; align-items: baseline; justify-content: center; border-radius: 22px; color: #062019; background: linear-gradient(145deg, #77f0c9, #28bd91); box-shadow: 0 14px 35px rgba(44, 207, 157, .2); font-weight: 850; letter-spacing: -4px; }
.brand-mark span { font-size: 38px; }.brand-mark small { font-size: 16px; }
.brand-mark.small { width: 46px; height: 46px; border-radius: 14px; }.brand-mark.small span { font-size: 26px; }.brand-mark.small small { font-size: 11px; }
.eyebrow { margin: 26px 0 10px; color: var(--brand); font-size: 12px; font-weight: 780; letter-spacing: 2px; }
h1, h2, h3, p { margin-top: 0; }
.login-card h1 { margin-bottom: 12px; font-size: clamp(32px, 8vw, 45px); letter-spacing: -2px; }
.subhead { color: var(--muted); line-height: 1.65; }
.login-form { display: grid; gap: 14px; margin-top: 30px; }.login-form label, .upload-form label span { color: #b7c9c3; font-size: 13px; font-weight: 650; }
.password-field { position: relative; }.password-field input { width: 100%; padding-right: 72px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 15px; outline: 0; color: var(--text); background: rgba(255,255,255,.045); padding: 15px 16px; transition: border-color .2s, background .2s; }
input:focus, select:focus, textarea:focus { border-color: rgba(78,224,176,.64); background: rgba(255,255,255,.065); }
textarea { resize: vertical; }
.reveal { position: absolute; right: 9px; top: 8px; bottom: 8px; border: 0; color: var(--brand); background: transparent; cursor: pointer; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 54px; border: 0; border-radius: 16px; padding: 0 20px; color: #062019; background: var(--brand); font-weight: 780; cursor: pointer; transition: transform .2s, filter .2s; }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }.primary-button span { font-size: 22px; }
.primary-button.compact { align-self: flex-end; min-width: 180px; }
.security-note { margin: 22px 0 0; color: #58736a; text-align: center; font-size: 12px; }
.error-banner, .success-banner { margin: 0; padding: 14px 16px; border-radius: 14px; font-size: 14px; }
.error-banner { color: #ffd4d0; border: 1px solid rgba(255,135,126,.22); background: rgba(255,89,78,.1); }
.success-banner { color: #bdf5d4; border: 1px solid rgba(111,227,167,.2); background: rgba(46,181,111,.1); }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px max(24px, calc((100vw - 1180px)/2)); border-bottom: 1px solid var(--line); background: rgba(7,17,15,.76); backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 13px; }.brand strong, .brand small { display: block; }.brand strong { font-size: 16px; }.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.ghost-button { border: 1px solid var(--line); border-radius: 13px; padding: 10px 16px; color: var(--muted); background: rgba(255,255,255,.03); cursor: pointer; }
.portal-shell { width: min(calc(100% - 40px), 1180px); margin: 0 auto; }
.hero { min-height: 430px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 62px 4px; }
.hero h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(45px, 7vw, 82px); line-height: .98; letter-spacing: -5px; }.hero h1 em { color: var(--brand); font-style: normal; }.hero > div > p:last-child { max-width: 670px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 14px var(--brand); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 42px 0 20px; }.section-heading .eyebrow, .upload-copy .eyebrow { margin: 0 0 8px; }.section-heading h2, .upload-copy h2 { margin: 0; font-size: 30px; letter-spacing: -1px; }.count { color: var(--muted); font-size: 13px; }
.apps-grid { display: grid; gap: 20px; }.app-card { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); backdrop-filter: blur(16px); }
.app-card-header { display: flex; align-items: center; gap: 15px; padding: 24px; border-bottom: 1px solid var(--line); }.app-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: var(--brand); background: rgba(78,224,176,.1); font-size: 24px; font-weight: 800; }.app-card-header h3 { margin: 0 0 5px; font-size: 20px; }.app-card-header p { margin: 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; }
.release-row { display: flex; justify-content: space-between; gap: 25px; padding: 24px; }.release-row + .release-row { border-top: 1px solid var(--line); }.release-main { min-width: 0; }.release-title { display: flex; align-items: center; gap: 10px; }.release-title strong { font-size: 19px; }.release-title span { border-radius: 99px; padding: 5px 9px; color: var(--muted); background: rgba(255,255,255,.05); font-size: 11px; }.release-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--muted); font-size: 12px; }.notes { max-width: 650px; margin: 14px 0 0; color: #bdccc7; line-height: 1.55; white-space: pre-line; }.checksum { overflow: hidden; margin: 12px 0 0; color: #567269; font-family: ui-monospace, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.release-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }.install-button, .text-button { border-radius: 13px; padding: 11px 15px; font-size: 13px; font-weight: 700; }.install-button { color: var(--brand-dark); background: var(--brand); }.text-button { color: var(--brand); border: 1px solid var(--line); }.ota-only { max-width: 220px; color: #87a199; font-size: 12px; line-height: 1.45; text-align: right; }.ota-history { border-top: 1px solid var(--line); padding: 18px 24px; color: var(--muted); }.ota-history summary { cursor: pointer; color: #87a199; font-size: 12px; font-weight: 700; }.ota-history-row { display: grid; grid-template-columns: auto auto 1fr; gap: 8px 14px; margin-top: 16px; font-size: 12px; }.ota-history-row strong { color: var(--text); }.ota-history-row p { grid-column: 1 / -1; margin: 0; color: #87a199; line-height: 1.5; }
.current-ota-row { background: linear-gradient(115deg, rgba(78,224,176,.13), rgba(78,224,176,.025)); border-bottom: 1px solid rgba(78,224,176,.24); }.current-ota-row .eyebrow { margin: 0 0 10px; }.current-ota-row .release-title strong { color: var(--brand); font-size: 25px; }.current-ota-row .release-title span { color: var(--brand); background: rgba(78,224,176,.12); }.ota-help { max-width: 650px; margin: 14px 0 0; color: #94b7aa; font-size: 12px; line-height: 1.6; }
.empty-state { padding: 70px 20px; border: 1px dashed rgba(78,224,176,.24); border-radius: 26px; text-align: center; background: rgba(255,255,255,.018); }.empty-state div { color: var(--brand); font-size: 40px; }.empty-state h3 { margin: 15px 0 6px; }.empty-state p { color: var(--muted); }
.device-enrollment { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 44px; margin: 28px 0 34px; padding: 34px; border: 1px solid rgba(78,224,176,.24); border-radius: 28px; background: linear-gradient(135deg, rgba(29,67,56,.82), rgba(10,27,22,.9)); box-shadow: 0 22px 70px rgba(0,0,0,.18); }.device-enrollment h2 { margin-bottom: 12px; font-size: 32px; letter-spacing: -1px; }.device-enrollment .eyebrow { margin: 0 0 8px; }.device-enrollment p { max-width: 680px; color: #b8ccc5; line-height: 1.65; }.enrollment-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }.enrollment-steps span { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 8px 11px; color: #a9c2b9; background: rgba(255,255,255,.045); font-size: 12px; }.enrollment-steps b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--brand-dark); background: var(--brand); font-size: 11px; }.enrollment-action { display: grid; gap: 12px; }.enrollment-action small { color: #6d8d83; text-align: center; font-size: 11px; }.device-history { margin: 0 0 34px; border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; color: var(--muted); background: rgba(255,255,255,.022); }.device-history summary { cursor: pointer; font-size: 13px; font-weight: 700; }.device-history-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: center; padding: 15px 2px 0; font-size: 12px; }.device-history-row strong { color: var(--text); }.device-state { border-radius: 999px; padding: 5px 9px; background: rgba(255,255,255,.05); }.state-ready { color: var(--success); }.state-failed { color: var(--danger); }
.status-shell { min-height: calc(100vh - 84px); display: grid; place-items: center; padding: 38px 20px 70px; }.status-card { width: min(100%, 620px); padding: 42px; border: 1px solid var(--line); border-radius: 32px; background: rgba(13,29,24,.88); box-shadow: 0 30px 100px rgba(0,0,0,.35); }.status-card h1 { margin-bottom: 14px; font-size: clamp(32px, 8vw, 46px); letter-spacing: -2px; }.status-symbol { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 23px; font-size: 37px; font-weight: 800; }.status-symbol.success { color: #062019; background: var(--brand); }.status-symbol.working { color: var(--brand); background: rgba(78,224,176,.1); }.status-symbol.failed { color: var(--danger); background: rgba(255,135,126,.1); }.status-install-list { display: grid; gap: 18px; margin-top: 22px; }.status-install { width: 100%; margin-top: 0; }.status-note { margin: 10px 0 0; color: #648077; text-align: center; font-size: 11px; }.status-refresh { display: inline-block; margin-top: 18px; }.device-build-grid { display: grid; gap: 9px; margin-top: 28px; }.device-build-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }.device-build-item span { color: var(--muted); font-size: 13px; }.device-build-item.ready span { color: var(--brand); }.device-build-item.failed span { color: var(--danger); }.partial-install-list { display: grid; gap: 9px; margin-top: 20px; }.partial-install { text-align: center; }.device-facts { margin: 32px 0 0; border-top: 1px solid var(--line); }.device-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }.device-facts dt { color: var(--muted); }.device-facts dd { margin: 0; text-align: right; }.privacy-copy { margin: 22px 0 0; color: #638078; font-size: 12px; line-height: 1.65; }
.upload-card { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; margin: 100px 0 80px; padding: 38px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg, rgba(26,57,49,.75), rgba(10,24,20,.82)); }.upload-copy p:last-child { margin-top: 18px; color: var(--muted); line-height: 1.7; }.upload-form { display: grid; gap: 15px; }.upload-form label { display: grid; gap: 8px; }.field-grid { display: grid; gap: 14px; }.field-grid.two { grid-template-columns: 1fr 1fr; }.field-grid.three { grid-template-columns: 1.2fr .9fr .9fr; }
.file-drop { position: relative; min-height: 95px; display: flex !important; align-items: center; justify-content: center; border: 1px dashed rgba(78,224,176,.35); border-radius: 17px; text-align: center; cursor: pointer; }.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }.file-drop span, .file-drop strong { display: block; }.file-drop span { color: var(--muted) !important; font-size: 11px !important; }.file-drop strong { margin-top: 7px; color: var(--brand); }
footer { display: flex; justify-content: space-between; padding: 26px max(24px, calc((100vw - 1180px)/2)); border-top: 1px solid var(--line); color: #4b655d; font-size: 11px; letter-spacing: 1px; }
@media (max-width: 760px) {
  .login-card { padding: 30px 24px; }
  .portal-shell { width: min(calc(100% - 28px), 1180px); }
  .hero { min-height: 420px; display: block; padding: 52px 2px; }.hero h1 { letter-spacing: -3px; }.primary-button.compact { margin-top: 20px; }
  .release-row { display: block; }.release-actions { margin-top: 20px; flex-wrap: wrap; }.install-button, .text-button { text-align: center; flex: 1 1 140px; }.ota-only { max-width: none; text-align: left; }
  .device-enrollment { grid-template-columns: 1fr; gap: 25px; padding: 26px 20px; }.device-enrollment h2 { font-size: 28px; }.enrollment-steps { display: grid; }.device-history-row { grid-template-columns: 1fr auto; }.device-history-row .device-state { grid-column: 1 / -1; justify-self: start; }.status-card { padding: 30px 22px; }
  .upload-card { grid-template-columns: 1fr; gap: 25px; margin-top: 70px; padding: 24px 18px; }.field-grid.two, .field-grid.three { grid-template-columns: 1fr; }
  footer { display: block; line-height: 2; }
}
