:root {
  color-scheme: light;
  --text: #111111;
  --page: #fff;
  --surface: #fff;
  --field: #ffffff;
  --border: #e5e7eb;
  --muted: #666666;
  --soft: #f5f5f5;
  --danger: #8e4935;
  --glow: #ffffff;
}
:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
aside {
  background: var(--surface);
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.brand-wordmark {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
}
.brand-wordmark img {
  display: block;
  width: 112px;
  height: auto;
  flex: 0 0 auto;
}
.brand .product-name {
  color: #111111;
  font-size: 18px;
  font-weight: 650;
}
.brand-wordmark sup {
  position: absolute;
  top: 0;
  right: 20%;
  margin: 0;
  font-size: 8px;
  line-height: 1;
}
.workspace {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 40px;
}
nav {
  display: flex;
  gap: 10px;
}
nav a {
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}
nav a[aria-current] {
  background: var(--soft);
  color: var(--text);
}
.aside-bottom {
  display: none;
}
main {
  padding: 0 22px;
  max-width: 1500px;
  min-width: 0;
}
#content {
  min-width: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  height: 74px;
  font-size: 12px;
  color: var(--muted);
}
.hero {
  padding: 45px 0 36px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted);
}
h1 {
  font-size: clamp(32px, 4vw, 55px);
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 18px 0;
}
p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  background: var(--soft);
  padding: 8px 12px;
  border-radius: 30px;
  color: var(--muted);
  margin-top: 10px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 27px;
  box-shadow: 0 2px 8px #00000005;
}
h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.7px;
}
form {
  max-width: 420px;
}
label {
  display: block;
  font-size: 12px;
  margin: 20px 0 8px;
}
input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  font: inherit;
  background: var(--field);
}
button {
  font: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 11px 16px;
  border-radius: 8px;
  cursor: pointer;
}
button.primary {
  background: #111111;
  color: #fff;
  width: 100%;
  margin-top: 23px;
  text-align: left;
  border: 1px solid #111111;
  font-size: 13px;
  padding: 15px;
}
.primary span {
  float: right;
}
:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
#message {
  min-height: 24px;
  color: var(--danger);
  font-size: 12px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.count {
  font-size: 11px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 36px 0;
}
.computer-icon {
  font-size: 60px;
  color: var(--muted);
}
.empty h3 {
  font-weight: 500;
}
.security {
  padding: 40px 0;
  display: grid;
  gap: 20px;
}
.security-note {
  border-left: 2px solid var(--border);
  padding-left: 22px;
  align-self: center;
}
.security-note strong {
  font-size: 13px;
}
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 900px) {
  body {
    display: grid;
    grid-template-columns: 235px 1fr;
  }
  aside {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    padding: 35px 22px;
  }
  nav {
    flex-direction: column;
  }
  .aside-bottom {
    display: block;
    position: absolute;
    bottom: 30px;
    font-size: 12px;
    line-height: 2;
  }
  .aside-bottom small {
    color: var(--muted);
  }
  .dot {
    display: inline-block;
    background: #3f7d55;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 5px;
  }
  main {
    padding: 0 55px;
  }
  .hero {
    padding-top: 65px;
  }
  #login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 36px;
  }
  .security {
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
  button:hover {
    filter: brightness(0.96);
  }
}
#content {
  padding: 45px 0;
  min-height: 70vh;
}
.workspace-local-self-view {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--text);
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
#content h1 {
  font-size: clamp(30px, 4vw, 44px);
}
.action {
  display: inline-block;
  padding: 12px 18px;
  background: #111111;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  margin: 10px 10px 20px 0;
}
.panel {
  margin: 20px 0;
}
.device-card {
  padding: 10px 0 25px;
  border-bottom: 1px solid var(--border);
}
.device-card button {
  margin-left: 12px;
}
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
#notice {
  color: var(--danger);
  font-size: 13px;
  padding-top: 18px;
}
.desktop-video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #14161a;
  border-radius: 10px;
  object-fit: contain;
  touch-action: none;
}
.workspace-stage {
  width: 100%;
  min-width: 0;
}
.workspace-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.workspace-clipboard {
  padding: 0.75rem 1rem;
  margin-block: 0.5rem;
  border: 1px solid var(--border, #303b4e);
  border-radius: 0.75rem;
}
.workspace-clipboard p { margin-block: 0 0.5rem; font-size: 0.875rem; }
.workspace-clipboard details > div { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.workspace-clipboard,
.workspace-clipboard details > div {
  min-width: 0;
  max-width: 100%;
}
.workspace-clipboard details > div > button {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
.workspace-clipboard select { max-width: 100%; }
.workspace-clipboard, .workspace-transfers {
  flex: 0 0 auto;
  max-height: 30dvh;
  overflow: auto;
}
.workspace-clipboard details > div { margin-block: 0.5rem; }
.workspace-clipboard summary, .workspace-transfers summary { cursor: pointer; }
.workspace-transfers { margin-block: 0.5rem; }
.desktop-video.file-drop-active {
  outline: 3px solid currentColor;
  outline-offset: -3px;
}

.metrics {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  white-space: pre-wrap;
}
.visual-assessment {
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  max-height: 45dvh;
  overflow: auto;
  overflow-wrap: anywhere;
}
.visual-assessment-result {
  /* Keep the reference target still when preparation/progress text changes. */
  height: 6em;
  max-height: 18dvh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-block: 8px;
}
nav {
  flex-wrap: wrap;
}
.workspace-expanded {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 12px;
  background: var(--soft);
  overflow: auto;
}
.workspace-expanded .desktop-video {
  max-height: calc(100dvh - 110px);
}
.workspace-stage.workspace-expanded {
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.workspace-stage.workspace-expanded .workspace-toolbar {
  flex: 0 0 auto;
}
.workspace-stage.workspace-expanded .desktop-video {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.workspace-stage:fullscreen,
.workspace-stage:-webkit-full-screen {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 12px;
  background: #111;
  color: #fff;
}
.workspace-stage:fullscreen::backdrop,
.workspace-stage:-webkit-full-screen {
  background: #111;
}
.workspace-stage:fullscreen .workspace-toolbar,
.workspace-stage:-webkit-full-screen .workspace-toolbar {
  flex: 0 0 auto;
  margin: 0;
}
.workspace-stage:fullscreen .desktop-video,
.workspace-stage:-webkit-full-screen .desktop-video {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}
.workspace-stage:fullscreen .metrics,
.workspace-stage:-webkit-full-screen .metrics {
  display: none;
}

.device-card p {
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --text: #f0f1f3;
    --page: #14161a;
    --surface: #1d2025;
    --field: #17191e;
    --border: #424750;
    --muted: #b9bec8;
    --soft: #2a2e36;
    --danger: #f0b19a;
    --glow: #272c35;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #f0f1f3;
  --page: #14161a;
  --surface: #1d2025;
  --field: #17191e;
  --border: #424750;
  --muted: #b9bec8;
  --soft: #2a2e36;
  --danger: #f0b19a;
  --glow: #272c35;
}
input,
select,
textarea {
  color: var(--text);
  background: var(--field);
}
/* Shared product components: neutral by default, with semantic status colours. */
body {
  -webkit-font-smoothing: antialiased;
}
h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 650;
  letter-spacing: -1.5px;
}
h2 {
  font-size: 21px;
  font-weight: 620;
  margin: 0 0 12px;
}
h3 {
  font-size: 16px;
  font-weight: 620;
}
.panel {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 14px;
  box-shadow: 0 4px 18px #00000003;
}
.panel > p:first-child {
  margin-top: 0;
}
.panel label {
  font-weight: 600;
  color: var(--text);
}
.panel input:not([type="checkbox"]),
.panel select {
  max-width: 560px;
  min-height: 46px;
}
select {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
button,
.action {
  min-height: 44px;
  font-size: 13px;
  font-weight: 550;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
button {
  color: var(--text);
  margin: 6px 8px 6px 0;
}
button:hover:not(:disabled) {
  background: var(--soft);
  border-color: var(--muted);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button.danger {
  color: var(--danger);
}
button.danger:hover:not(:disabled) {
  border-color: var(--danger);
}
a.action {
  display: inline-flex;
  align-items: center;
  margin: 6px 12px 6px 0;
}
nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 550;
}
nav a:hover {
  background: var(--soft);
}
nav a[aria-current] {
  box-shadow: inset 3px 0 #111111;
}
.device-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.device-card:first-child {
  padding-top: 0;
}
.device-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.device-card details {
  margin: 18px 0 12px;
  padding: 14px 16px;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 9px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  min-height: 28px;
}
.session-row {
  padding: 14px 0;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.session-row:last-child {
  border-bottom: 0;
}
.overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.metric {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: var(--surface);
}
.metric p {
  margin: 0 0 12px;
  font-size: 12px;
}
.metric strong {
  font-size: 30px;
  font-weight: 650;
}
progress {
  width: 100%;
  max-width: 560px;
  height: 8px;
  accent-color: #111111;
}
@media (max-width: 600px) {
  .overview-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
  }
  .metric p {
    margin: 0;
  }
  .metric strong {
    font-size: 24px;
  }
  .panel {
    padding: 20px;
  }
  nav {
    overflow-x: auto;
  }
  nav a {
    white-space: nowrap;
  }
  .session-row {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  .action {
    transition: none;
  }
}
nav a[aria-current] {
  box-shadow: none;
  background: var(--soft);
  font-weight: 700;
}
h1 {
  font-size: clamp(28px, 3vw, 38px);
}
h2 {
  font-size: 19px;
}
.panel {
  padding: 22px;
}
.overview-metrics {
  gap: 14px;
}
.metric {
  padding: 18px;
}
.device-card details input {
  display: block;
  margin: 14px 0 8px;
}
.panel > button,
.panel > .action {
  margin-top: 12px;
}
/* Numedge Access uses the shared monochrome brand across every workspace surface. */
aside {
  background: #ffffff;
  color: #111111;
  border-color: #e5e7eb;
}
aside .brand small,
aside .workspace,
aside .aside-bottom {
  color: #666666;
}
aside .brand .product-name {
  color: #111111;
}
aside nav a {
  color: #444444;
}
aside nav a:hover {
  background: #f5f5f5;
}
aside nav a[aria-current] {
  background: #f1f1f1;
  color: #111111;
  box-shadow: none;
}
aside .aside-bottom small {
  color: #666666;
}
:root[data-theme="dark"] aside {
  background: #1d2025;
  color: #f0f1f3;
  border-color: #424750;
}
:root[data-theme="dark"] aside .brand img { filter: invert(1); }
:root[data-theme="dark"] aside .brand .product-name,
:root[data-theme="dark"] aside nav a { color: #f0f1f3; }
:root[data-theme="dark"] aside .brand small,
:root[data-theme="dark"] aside .workspace,
:root[data-theme="dark"] aside .aside-bottom { color: #b9bec8; }
:root[data-theme="dark"] aside nav a:hover,
:root[data-theme="dark"] aside nav a[aria-current] { background: #2a2e36; }
/* Overview uses real inventory and account events in balanced, compact groups. */
.hero,
#content {
  padding-top: 36px;
}
h1 {
  margin: 12px 0;
  font-size: clamp(27px, 2.5vw, 34px);
  letter-spacing: -1px;
}
.overview-metrics {
  margin: 24px 0 20px;
}
.panel.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  border: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
}
.device-grid .device-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
}
.device-grid .device-card:first-child,
.device-grid .device-card:last-child {
  padding: 22px;
  border: 1px solid var(--border);
}
.device-grid .device-card h2 {
  margin-bottom: 8px;
}
.device-grid .device-card > p {
  margin: 0 0 14px;
}
.device-grid .device-card details {
  margin: 14px 0 0;
  padding: 10px 12px;
}
.device-grid .device-card .action {
  margin: 0;
}
.dashboard-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.activity-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.activity-row time,
.activity-row small {
  color: var(--muted);
  font-size: 11px;
}
.secondary-link {
  display: inline-block;
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  margin-top: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  .dashboard-detail-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  #content {
    padding-top: 26px;
  }
}
#content[data-page="security"],
#content[data-page="settings"],
#content[data-page="computers"] {
  min-width: 0;
}
#content[data-page="settings"] > .panel {
  max-width: 680px;
}
#content[data-page="security"] > .panel {
  max-width: 900px;
}
#content[data-page="security"] .session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
textarea {
  display: block;
  width: 100%;
  min-height: 90px;
  max-width: 680px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}
#notice:not(:empty) {
  padding: 12px 16px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--soft);
}
.panel:has(#device-name),
.panel:has(#host-code) {
  max-width: 680px;
}
@media (max-width: 600px) {
  main {
    padding: 0 18px;
  }
  header {
    height: 64px;
  }
  .panel {
    padding: 18px;
  }
  .workspace-toolbar {
    gap: 8px;
  }
}
.panel.device-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.device-grid .device-card {
  max-width: 480px;
}
aside nav a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  min-width: 620px;
}
th {
  background: var(--field);
  font-weight: 600;
  color: var(--muted);
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  max-width: 220px;
  overflow-wrap: anywhere;
}
.transfer-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--soft);
}
.transfer-status[data-status="completed"] {
  color: #111111;
  background: #f5f5f5;
}
.transfer-status[data-status="failed"] {
  color: var(--danger);
}
.security-methods,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.security-methods .panel,
.settings-grid .panel {
  min-width: 0;
}
.settings-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.settings-grid select {
  width: 100%;
  max-width: 320px;
}
@media (max-width: 1000px) {
  .security-methods,
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.device-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.device-actions .action,
.device-actions .secondary-link {
  margin: 0;
}
.device-actions .secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.clipboard-panel {
  border: 1px solid var(--border);
  background: var(--field);
  border-radius: 8px;
  padding: 12px;
  margin: 18px 0;
}
.clipboard-panel textarea {
  margin-top: 12px;
}
@media (max-width: 767px) {
  aside {
    padding: 20px 18px;
  }
  aside .workspace {
    margin-top: 22px;
    margin-bottom: 10px;
  }
  nav {
    gap: 4px;
  }
}
