:root {
  --remote-navy-950: #071827;
  --remote-navy-900: #0b2033;
  --remote-navy-800: #12314a;
  --remote-navy-700: #1a435e;
  --remote-page: #e9eff4;
  --remote-panel: #ffffff;
  --remote-panel-soft: #f7f9fb;
  --remote-panel-tint: #f1f5f8;
  --remote-line: #d4dee7;
  --remote-line-strong: #bdcbd7;
  --remote-text: #10263a;
  --remote-secondary: #50677b;
  --remote-muted: #7890a3;
  --remote-blue: #2469d8;
  --remote-blue-hover: #1958bd;
  --remote-blue-soft: #e8f1ff;
  --remote-green: #319b4b;
  --remote-green-bright: #52bf2b;
  --remote-green-soft: #e7f6eb;
  --remote-teal: #188f88;
  --remote-teal-soft: #e3f5f3;
  --remote-amber: #bd7411;
  --remote-amber-soft: #fff2dd;
  --remote-red: #c43d4d;
  --remote-red-soft: #fbeaed;
  --remote-violet: #6f58c9;
  --remote-violet-soft: #f0edfb;
  --remote-radius: 7px;
  --remote-shadow: 0 2px 8px rgba(20, 46, 68, .07);
  --remote-focus: 0 0 0 3px rgba(36, 105, 216, .2);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
body {
  margin: 0;
  color: var(--remote-text);
  background: var(--remote-page);
  font: 400 13px/1.4 Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a, input, select, textarea { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  box-shadow: var(--remote-focus);
}
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Product shell */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 84px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #d8e5ef;
  background: var(--remote-navy-950);
  border-right: 1px solid #061421;
  box-shadow: 3px 0 14px rgba(4, 17, 28, .18);
}
.brand {
  width: 84px;
  height: 76px;
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #061623;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-app-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
}
.brand-copy { display: none; }
.brand-copy strong, .brand-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.brand-copy strong { color: #fff; font-size: 15px; font-weight: 650; }
.brand-copy small { margin-top: 2px; color: #8eabc0; font-size: 10.5px; }
.side-nav {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 11px 7px;
}
.nav-button {
  position: relative;
  width: 70px;
  min-width: 70px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 3px;
  border: 0;
  border-radius: 8px;
  color: #b7cad9;
  background: transparent;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 550;
}
.nav-button svg { width: 19px; height: 19px; color: #85a5bb; }
.nav-button::after {
  content: "";
  position: absolute;
  inset: 8px auto 8px -7px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: transparent;
}
.nav-button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-button:hover svg { color: #c5dae8; }
.nav-button.active { color: #fff; background: #15344a; }
.nav-button.active svg { color: var(--remote-green-bright); }
.nav-button.active::after { background: var(--remote-green-bright); }
.nav-button.pro-locked { color: #91a7b9; }
.nav-button.pro-locked .nav-plan { color: #d7e2ea; background: #344b5e; border-color: #4d6577; }
.nav-plan {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 1px 4px;
  color: #d8fff6;
  background: #176b5d;
  border: 1px solid #2d8d7d;
  border-radius: 4px;
  font-size: 7.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-count {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 9px;
  color: #fff;
  background: var(--remote-red);
  font-size: 10px;
  font-weight: 700;
}
.workspace { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(320px, 540px) auto;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--remote-line);
  box-shadow: 0 2px 8px rgba(18, 45, 67, .05);
}
.mobile-menu { display: none !important; }
.page-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--remote-muted);
  font-size: 11.5px;
}
.workspace-product {
  color: var(--remote-navy-800);
  font-size: 12px;
  font-weight: 750;
}
.workspace-product::after { content: ""; display: inline-block; width: 1px; height: 15px; margin-left: 9px; vertical-align: middle; background: var(--remote-line); }
.page-context strong {
  color: var(--remote-text);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-context strong::after { content: "/"; margin-left: 8px; color: #b1bfca; font-weight: 400; }
.global-search, .filter-search, .site-search {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
}
.global-search > svg, .filter-search > svg, .site-search > svg {
  position: absolute;
  left: 11px;
  z-index: 1;
  width: 15px;
  color: var(--remote-muted);
  pointer-events: none;
}
.global-search input, .filter-search input, .site-search input {
  width: 100%;
  height: 34px;
  padding: 0 58px 0 34px;
  color: var(--remote-text);
  background: #f8fafc;
  border: 1px solid var(--remote-line);
  border-radius: 6px;
}
.global-search input:hover, .filter-search input:hover, .site-search input:hover { border-color: var(--remote-line-strong); }
.global-search input:focus, .filter-search input:focus, .site-search input:focus {
  background: #fff;
  border-color: var(--remote-blue);
}
.global-search kbd {
  position: absolute;
  right: 7px;
  padding: 1px 6px;
  color: #6b8092;
  background: #fff;
  border: 1px solid var(--remote-line);
  border-radius: 4px;
  font: 10px/18px Consolas, monospace;
}
.top-actions { display: flex; align-items: center; gap: 9px; }
.profile-menu-wrap { position: relative; }
.user-menu {
  min-width: 178px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px;
  color: var(--remote-text);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
}
.user-menu:hover, .user-menu[aria-expanded="true"] {
  background: #f5f8fa;
  border-color: var(--remote-line);
}
.profile-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #164f70;
  background: #e5f1f7;
  border: 1px solid #b7d2e1;
}
.profile-avatar > svg { width: 17px; height: 17px; stroke-width: 1.9; }
.profile-avatar i {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2daf71;
}
.profile-avatar.large {
  width: 40px;
  height: 40px;
}
.profile-avatar.large > svg { width: 21px; height: 21px; }
.profile-avatar.large i { width: 10px; height: 10px; }
.profile-copy { min-width: 0; flex: 1; }
.user-menu strong, .user-menu span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.user-menu strong { max-width: 150px; color: var(--remote-text); font-size: 11.5px; font-weight: 650; }
.profile-copy > span { max-width: 150px; color: var(--remote-muted); font-size: 10px; }
.profile-chevron { width: 13px; height: 13px; flex: 0 0 auto; color: var(--remote-muted); transition: transform .15s ease; }
.user-menu[aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }
.profile-dropdown {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  width: 286px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--remote-line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(16, 42, 60, .18);
}
.profile-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--remote-line);
}
.profile-summary > span:last-child { min-width: 0; }
.profile-summary strong, .profile-summary small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-summary strong { color: var(--remote-text); font-size: 12px; font-weight: 650; }
.profile-summary small { margin-top: 2px; color: var(--remote-muted); font-size: 9.5px; }
.profile-dropdown > a, .profile-dropdown > button {
  width: 100%;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px;
  color: var(--remote-text);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.profile-dropdown > a:hover, .profile-dropdown > button:hover { background: #f2f6f8; }
.profile-dropdown > a > svg, .profile-dropdown > button > svg { width: 16px; height: 16px; color: var(--remote-blue); }
.profile-dropdown > a span, .profile-dropdown > button span { min-width: 0; font-size: 11px; font-weight: 650; }
.profile-dropdown > a small, .profile-dropdown > button small { display: block; margin-top: 2px; color: var(--remote-muted); font-size: 9px; font-weight: 400; }

/* Shared controls */
.button, .icon-button, .text-button, .row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--remote-line-strong);
  border-radius: 6px;
  color: var(--remote-text);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}
.button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11.5px;
  white-space: nowrap;
}
.button svg { width: 15px; height: 15px; }
.button:hover, .icon-button:hover, .row-action:hover { border-color: #9cafbf; background: #f5f8fa; }
.button.primary {
  color: #fff;
  background: var(--remote-blue);
  border-color: var(--remote-blue);
}
.button.primary:hover { background: var(--remote-blue-hover); border-color: var(--remote-blue-hover); }
.button.danger-subtle { color: var(--remote-red); border-color: #ebbbc2; background: var(--remote-red-soft); }
.button:disabled, .icon-button:disabled {
  color: #9aabba;
  background: #f3f6f8;
  border-color: #dce4ea;
  cursor: not-allowed;
  opacity: .75;
}
.icon-button, .row-action {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
}
.icon-button svg, .row-action svg { width: 15px; height: 15px; }
.text-button {
  height: 27px;
  padding: 0 8px;
  color: var(--remote-blue);
  border-color: transparent;
  background: transparent;
  font-size: 11px;
}
.text-button:hover { background: var(--remote-blue-soft); }
.text-button svg { width: 13px; height: 13px; }
.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Main views */
.main-content {
  height: calc(100vh - 64px);
  min-height: 560px;
  padding: 16px;
}
.view { display: none; min-height: 100%; }
.view.active { display: block; }
#accessView.active {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 11px;
}
.console-commandbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 15px;
  background: var(--remote-panel);
  border: 1px solid var(--remote-line);
  border-left: 4px solid var(--remote-green);
  border-radius: var(--remote-radius);
  box-shadow: 0 3px 12px rgba(23, 50, 72, .06);
}
.commandbar-title { min-width: 0; }
.commandbar-title small {
  display: block;
  margin-bottom: 2px;
  color: var(--remote-green);
  font-size: 9px;
  font-weight: 750;
}
.commandbar-title strong {
  display: block;
  color: var(--remote-text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 650;
}
.commandbar-title span {
  display: block;
  margin-top: 3px;
  color: var(--remote-secondary);
  font-size: 11px;
}
.commandbar-actions { display: flex; align-items: center; gap: 7px; }
.download-menu { position: relative; }
.download-menu summary { list-style: none; }
.download-menu summary::-webkit-details-marker { display: none; }
.download-popover {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 218px;
  padding: 8px;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}
.download-popover span {
  padding: 5px 8px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.download-popover a {
  padding: 7px 8px;
  border-radius: 5px;
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
}
.download-popover a:hover,
.download-popover a:focus-visible { background: #edf4ff; color: var(--accent); }
.metrics.console-status {
  min-height: 44px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--remote-panel-tint);
  border: 1px solid var(--remote-line);
  border-radius: 7px;
}
.metric-card {
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--remote-secondary);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--remote-line);
  cursor: pointer;
  font-size: 10.5px;
}
.metric-card:hover { color: var(--remote-blue); background: #f7faff; }
.metric-card:last-child { border-right: 0; }
.metric-card strong { margin-left: auto; color: var(--remote-text); font-size: 11px; }
.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 50%;
  background: #9babb9;
}
.status-dot.online { background: #2eab70; box-shadow: 0 0 0 3px rgba(46, 171, 112, .12); }
.status-dot.ready { background: var(--remote-violet); box-shadow: 0 0 0 3px rgba(111, 88, 201, .12); }

/* Three-pane access workspace */
.access-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 270px minmax(560px, 1fr) 400px;
  gap: 12px;
}
.site-panel, .data-panel, .detail-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--remote-panel);
  border: 1px solid var(--remote-line);
  border-radius: var(--remote-radius);
  box-shadow: var(--remote-shadow);
}
.site-panel {
  display: grid;
  grid-template-rows: 58px 48px minmax(0, 1fr);
  color: #d6e4ed;
  background: #112a3c;
  border-color: #0a2131;
  box-shadow: 0 6px 20px rgba(6, 24, 37, .16);
}
.data-panel { display: grid; grid-template-rows: 58px 48px minmax(0, 1fr) 34px; }
.pane-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--remote-line);
}
.pane-heading > div { min-width: 0; }
.pane-heading h2 {
  margin: 0;
  color: var(--remote-text);
  font-size: 13px;
  font-weight: 700;
}
.pane-heading p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--remote-muted);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.site-panel .pane-heading {
  background: #102638;
  border-bottom-color: rgba(255, 255, 255, .09);
}
.site-panel .pane-heading h2 { color: #f5f9fb; }
.site-panel .pane-heading p { color: #88a4b7; }
.pane-count {
  min-width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 5px;
  color: #4a6275;
  background: #edf2f5;
  font-size: 10px;
  font-weight: 700;
}
.site-panel .pane-count { color: #b7ded2; background: rgba(61, 174, 137, .16); }
.site-search { margin: 8px 10px 6px; }
.site-search input {
  height: 34px;
  padding-right: 10px;
  color: #edf6fa;
  background: #0c2232;
  border-color: #29475b;
}
.site-search input::placeholder { color: #7795a8; }
.site-panel .site-search > svg { color: #7795a8; }
.site-search input:hover { border-color: #40657c; }
.site-search input:focus { background: #102b3e; border-color: #4f9ea1; }
.site-list { min-height: 0; overflow-y: auto; padding: 7px 8px 12px; }
.tree-label {
  margin: 10px 7px 5px;
  color: #6f91a6;
  font-size: 9px;
  font-weight: 750;
}
.tree-label:first-child { margin-top: 2px; }
.site-tree-label { padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .09); }
.site-row {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
  padding: 4px 7px;
  color: #c8d8e3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
}
.site-row:hover { color: #fff; background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .07); }
.site-row.active {
  color: #fff;
  background: #18475a;
  border-color: #2c6d78;
}
.site-row.active::before {
  content: "";
  position: absolute;
  inset: 6px auto 6px -1px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--remote-green-bright);
}
.site-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #8eb5c7;
  background: #1d3b4e;
}
.site-row.active .site-icon { color: #b9efb2; background: #225a57; }
.site-icon svg { width: 14px; height: 14px; }
.site-copy { min-width: 0; }
.site-copy strong, .site-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.site-copy strong { font-size: 11px; font-weight: 650; }
.site-copy span { margin-top: 1px; color: #7897aa; font-size: 9.5px; }
.site-online {
  min-width: 22px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 5px;
  color: #b6e8c6;
  background: rgba(49, 155, 75, .18);
  font-size: 9.5px;
  font-weight: 700;
}
.table-toolbar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 118px 126px 154px 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  background: var(--remote-panel-soft);
  border-bottom: 1px solid var(--remote-line);
}
.table-toolbar select, .field select, .field input, .field textarea {
  width: 100%;
  color: var(--remote-text);
  background: #fff;
  border: 1px solid var(--remote-line);
  border-radius: 6px;
}
.table-toolbar select { height: 34px; padding: 0 28px 0 9px; font-size: 11px; }
.filter-search input { height: 34px; padding-right: 10px; background: #fff; }
.table-wrap { position: relative; min-height: 0; overflow: auto; }
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 10.5px;
}
.data-table thead { position: sticky; top: 0; z-index: 2; }
.data-table th {
  height: 35px;
  padding: 0 10px;
  color: #526b80;
  background: #edf3f7;
  border-bottom: 1px solid var(--remote-line);
  border-right: 1px solid #dfe7ed;
  text-align: left;
  font-size: 9px;
  font-weight: 750;
}
.data-table td {
  height: 52px;
  padding: 6px 10px;
  overflow: hidden;
  color: #243d51;
  background: #fff;
  border-bottom: 1px solid #e3e9ee;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table tbody tr { cursor: default; }
.computer-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover td { background: #f6f9fb; }
.data-table tbody tr.selected td { background: #e8f1fe; border-bottom-color: #c9ddf7; }
.data-table tbody tr.selected td:first-child { box-shadow: inset 3px 0 var(--remote-blue); }
.computer-table th:nth-child(1) { width: 30%; }
.computer-table th:nth-child(2) { width: 17%; }
.computer-table th:nth-child(3) { width: 18%; }
.computer-table th:nth-child(4) { width: 24%; }
.computer-table th:nth-child(5) { width: 11%; }
.computer-table th:last-child { width: 62px; }
.endpoint-cell { min-width: 0; display: flex; align-items: center; gap: 9px; }
.endpoint-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #6d8395;
  background: #edf2f5;
}
.endpoint-icon.online { color: #22863a; background: #e2f4e7; }
.endpoint-icon svg { width: 14px; height: 14px; }
.endpoint-cell > span:last-child { min-width: 0; }
.endpoint-cell strong, .endpoint-cell > span:last-child > span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.endpoint-cell strong { color: #132e45; font-size: 11px; font-weight: 650; }
.endpoint-cell > span:last-child > span { margin-top: 2px; color: var(--remote-muted); font-size: 9.5px; }
.status { display: inline-flex; align-items: center; gap: 7px; }
.host-presence {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #173349;
}
.host-presence.empty { color: var(--remote-muted); font-size: 9.5px; }
.host-presence-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #aab8c2;
}
.host-avatar {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  color: #1a5f87;
  background: #e5f2f7;
  border: 1px solid #bad7e4;
  border-radius: 50%;
}
.host-avatar svg { width: 13px; height: 13px; stroke-width: 2; }
.host-presence-copy { min-width: 0; }
.host-presence-copy strong, .host-presence-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.host-presence-copy strong { font-size: 9.5px; font-weight: 650; }
.host-presence-copy small { margin-top: 2px; color: #17816f; font-size: 8.5px; }
.remote-access-cell { min-width: 0; }
.remote-access-cell .badge { margin-bottom: 2px; }
.remote-access-cell small { display: block; overflow: hidden; color: var(--remote-muted); font-size: 9px; text-overflow: ellipsis; }
.badge, .inline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.good, .inline-status.success { color: #176b46; background: var(--remote-green-soft); border: 1px solid #bae4c7; }
.badge.warn, .inline-status.warning { color: #8b5710; background: var(--remote-amber-soft); border: 1px solid #f0d196; }
.badge.bad { color: #9e2e3c; background: var(--remote-red-soft); border: 1px solid #efbcc3; }
.badge.neutral, .inline-status.neutral { color: #5d7182; background: #edf2f5; border: 1px solid #d5dfe7; }
.badge.violet { color: #5741a7; background: var(--remote-violet-soft); border: 1px solid #d8cff4; }
.row-action { width: 27px; height: 27px; color: var(--remote-blue); background: transparent; border-color: transparent; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1px; }
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 11px;
  color: var(--remote-muted);
  background: #fafcfd;
  border-top: 1px solid var(--remote-line);
  font-size: 9.5px;
}
.table-state {
  position: absolute;
  inset: 36px 0 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: #fff;
}
.table-state.visible { display: flex; }
.table-state-content, .detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  color: var(--remote-secondary);
  text-align: center;
}
.table-state-content strong, .detail-empty strong { margin-top: 12px; color: var(--remote-text); font-size: 13px; }
.table-state-content > span:not(.empty-icon), .detail-empty p { margin: 5px 0 0; color: var(--remote-muted); font-size: 11px; }
.table-state-content .button { margin-top: 14px; }
.empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--remote-blue);
  background: var(--remote-blue-soft);
}
.empty-icon svg { width: 21px; height: 21px; }

/* Device inspector */
.detail-panel {
  position: relative;
  background: #fff;
  border-top: 3px solid var(--remote-teal);
}
.detail-empty { position: absolute; inset: 0; margin: auto; padding: 24px; }
.detail-content { height: 100%; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); }
.detail-hero {
  min-height: 88px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 11px;
  padding: 13px 12px;
  color: #fff;
  background: var(--remote-navy-800);
  border-bottom: 1px solid var(--remote-navy-900);
}
.detail-device-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #b9efb2;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .12);
}
.detail-device-icon svg { width: 20px; height: 20px; }
.detail-identity { min-width: 0; }
.detail-name-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.detail-name-row h2 { min-width: 0; }
.detail-name-edit {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: #b7cbd9;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}
.detail-name-edit:hover, .detail-name-edit:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); outline: none; }
.detail-name-edit svg { width: 14px; height: 14px; }
.status-line { display: flex; align-items: center; gap: 7px; }
.status-line small { color: #b7cbd9; font-size: 9.5px; }
.detail-header h2, .detail-hero h2 {
  margin: 4px 0 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.detail-hero p {
  margin: 2px 0 0;
  overflow: hidden;
  color: #a7bdcc;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.detail-close { width: 29px; height: 29px; color: #c6ddd6; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.detail-close:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.friendly-name-modal { max-width: 470px; }
.field-help { margin: -2px 0 0; color: var(--remote-muted); font-size: 10.5px; line-height: 1.55; }
.detail-quickfacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-bottom: 1px solid var(--remote-line);
}
.detail-quickfacts > div {
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid var(--remote-line);
}
.detail-quickfacts > div:last-child { border-right: 0; }
.detail-quickfacts small, .detail-quickfacts strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.detail-quickfacts small { color: var(--remote-muted); font-size: 8.5px; }
.detail-quickfacts strong { margin-top: 3px; color: #173349; font-size: 10.5px; font-weight: 650; }
.detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) minmax(0, .72fr);
  gap: 7px;
  padding: 9px 10px;
  background: #fff;
  border-bottom: 1px solid var(--remote-line);
}
.detail-actions .button { min-width: 0; padding-inline: 7px; }
.detail-actions .button.wake:not(:disabled) {
  color: #086a55;
  border-color: #8bd6c6;
  background: #effbf8;
}
.detail-actions .button.wake:not(:disabled):hover { background: #def7f0; border-color: #55bca5; }
.detail-scroll { min-height: 0; overflow-y: auto; padding: 0; background: #fff; }
.inspector-section {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--remote-line);
  border-radius: 0;
}
.inspector-section summary {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #264257;
  background: #fff;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  list-style: none;
  font-size: 10.5px;
  font-weight: 700;
}
.inspector-section summary::-webkit-details-marker { display: none; }
.inspector-section[open] summary { background: #f8fafc; border-bottom-color: var(--remote-line); }
.inspector-section summary > span { display: flex; align-items: center; gap: 8px; }
.inspector-section summary > span svg { width: 14px; height: 14px; color: var(--remote-blue); }
.section-chevron { width: 13px; height: 13px; color: var(--remote-muted); transition: transform .15s ease; }
.inspector-section[open] .section-chevron { transform: rotate(180deg); }
.detail-host-list { padding: 4px 12px; }
.detail-host {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e8eef2;
}
.detail-host:last-child { border-bottom: 0; }
.detail-host .host-avatar { width: 28px; height: 28px; flex-basis: 28px; }
.detail-host-copy { min-width: 0; }
.detail-host strong, .detail-host small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.detail-host strong { color: #173349; font-size: 10px; font-weight: 650; }
.detail-host small { margin-top: 2px; color: var(--remote-muted); font-size: 8.5px; }
.host-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.live-label { display: inline-flex; align-items: center; gap: 4px; color: #167563; font-size: 8.5px; font-weight: 700; }
.live-label i { width: 6px; height: 6px; border-radius: 50%; background: #20a487; box-shadow: 0 0 0 3px #def3ed; }
.host-disconnect {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #a43442;
  background: #fff;
  border: 1px solid #e3c7cc;
  border-radius: 5px;
  cursor: pointer;
}
.host-disconnect:hover { color: #fff; background: var(--remote-red); border-color: var(--remote-red); }
.host-disconnect svg { width: 13px; height: 13px; }
.detail-host-empty {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--remote-muted);
}
.detail-host-empty > svg { width: 19px; height: 19px; color: #8194a3; }
.detail-host-empty > span { min-width: 0; }
.detail-host-empty strong, .detail-host-empty small { display: block; }
.detail-host-empty strong { color: #365268; font-size: 10px; }
.detail-host-empty small { margin-top: 3px; font-size: 8.5px; line-height: 1.35; }
.endpoint-screenshot { padding: 11px 12px 7px; text-align: center; }
.endpoint-screenshot > img {
  width: 176px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  display: inline-block;
  object-fit: cover;
  object-position: center;
  background: #08111d;
  border: 1px solid #cfd9e0;
  border-radius: 5px;
  image-rendering: pixelated;
}
.screenshot-empty {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--remote-muted);
  background: #f4f7f9;
  border: 1px dashed #cbd7df;
  border-radius: 5px;
  text-align: center;
}
.screenshot-empty svg { width: 22px; height: 22px; color: #8194a3; }
.screenshot-empty strong { margin-top: 8px; color: var(--remote-secondary); font-size: 10.5px; }
.screenshot-empty span { margin-top: 3px; font-size: 9px; }
.endpoint-screenshot footer {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--remote-muted);
  font-size: 9px;
  text-align: left;
}
.detail-list {
  display: grid;
  grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 6px 12px 10px;
}
.detail-list dt, .detail-list dd {
  min-width: 0;
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid #edf1f4;
  font-size: 9.5px;
}
.detail-list dt { color: var(--remote-muted); }
.detail-list dd {
  overflow-wrap: anywhere;
  color: #203b51;
  font-weight: 550;
}
.detail-list dt:nth-last-of-type(1), .detail-list dd:nth-last-of-type(1) { border-bottom: 0; }
.resource-grid { display: grid; gap: 6px; padding: 0 12px 12px; }
.resource-card {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 8px;
  background: #f6f9fb;
  border: 1px solid #e0e7ec;
  border-radius: 6px;
}
.resource-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  color: var(--remote-teal);
  background: #e3f3f1;
  border-radius: 6px;
}
.resource-icon svg { width: 14px; height: 14px; }
.resource-copy { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px; }
.resource-copy small { color: var(--remote-secondary); font-size: 9px; }
.resource-copy strong { color: var(--remote-text); font-size: 10px; }
.resource-copy span { grid-column: 1 / -1; color: var(--remote-muted); font-size: 8.5px; }
.resource-meter {
  grid-column: 2;
  height: 3px;
  overflow: hidden;
  background: #dde6ec;
  border-radius: 2px;
}
.resource-meter i { display: block; height: 100%; background: var(--remote-teal); border-radius: inherit; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 4px 9px 0;
  color: var(--remote-muted);
  font-size: 9px;
}
.policy-summary { padding: 4px 10px 9px; }
.policy-summary-row {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf1f4;
  color: var(--remote-muted);
  font-size: 9.5px;
}
.policy-summary-row:last-child { border-bottom: 0; }
.policy-summary-row strong { color: var(--remote-text); font-weight: 600; }

/* Secondary views */
.secondary-view.active {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}
.security-view.active {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 42px minmax(0, 1fr);
}
.page-heading {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--remote-line);
  border-radius: var(--remote-radius);
}
.security-view > .page-heading { margin-bottom: 10px; }
.page-title-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-title-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  color: #1c5f89;
  background: #e8f2f8;
  border: 1px solid #c5dce8;
  border-radius: 7px;
}
.page-title-icon svg { width: 19px; height: 19px; }
.page-title-icon.support { color: #6b4eaf; background: #f0edfa; border-color: #d8d0ec; }
.page-title-icon.active-session { color: #1d795e; background: #e7f5ef; border-color: #c5e2d5; }
.page-title-icon.history { color: #8c5d18; background: #fff4e3; border-color: #ecd8b6; }
.page-title-icon.security { color: #285da6; background: #eaf1fb; border-color: #c9d9ee; }
.page-heading .eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--remote-muted);
  font-size: 8.5px;
  font-weight: 750;
}
.page-heading h1 { margin: 0; color: var(--remote-text); font-size: 19px; font-weight: 650; }
.page-heading p { margin: 3px 0 0; color: var(--remote-secondary); font-size: 11px; }
.page-table {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}
.page-table.has-toolbar { grid-template-rows: 48px minmax(0, 1fr); }
.support-table-panel.has-toolbar { grid-template-rows: 58px 48px minmax(0, 1fr); }
.secondary-toolbar { grid-template-columns: minmax(260px, 1fr) 160px; }
.history-toolbar { grid-template-columns: minmax(280px, 1fr) 150px 150px; }
.secondary-toolbar .toolbar-note {
  padding-right: 4px;
  color: var(--remote-secondary);
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}
.policy-tabs {
  height: 42px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--remote-line);
  border-bottom: 0;
  border-radius: var(--remote-radius) var(--remote-radius) 0 0;
}
.policy-tab {
  height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--remote-secondary);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.policy-tab.active { color: var(--remote-blue); border-bottom-color: var(--remote-blue); }
.policy-panel {
  height: 100%;
  min-height: 0;
  grid-template-rows: 48px minmax(0, 1fr);
  border-radius: 0 0 var(--remote-radius) var(--remote-radius);
}
.policy-toolbar { grid-template-columns: minmax(280px, 520px) 1fr; }
.toolbar-note { color: var(--remote-muted); font-size: 10px; text-align: right; }
.site-policy-name { display: flex; align-items: center; gap: 8px; }
.site-policy-name svg { color: var(--remote-teal); }
.site-policy-name strong, .site-policy-name small { display: block; }
.site-policy-name small { color: var(--remote-muted); font-size: 9px; }
.muted-cell { color: var(--remote-muted); }
.permission-panel {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--remote-line);
  border-radius: 0 0 var(--remote-radius) var(--remote-radius);
  box-shadow: var(--remote-shadow);
}
.permission-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--remote-line);
}
.permission-header h2 { margin: 2px 0 0; font-size: 18px; font-weight: 650; }
.permission-header p { margin: 5px 0 0; color: var(--remote-secondary); font-size: 11px; }
.permission-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 17px 0;
  overflow: hidden;
  background: var(--remote-panel-soft);
  border: 1px solid var(--remote-line);
  border-radius: 7px;
}
.permission-summary > div { min-width: 0; padding: 13px 15px; border-right: 1px solid var(--remote-line); }
.permission-summary > div:last-child { border-right: 0; }
.permission-summary small, .permission-summary strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.permission-summary small { color: var(--remote-muted); font-size: 9px; }
.permission-summary strong { margin-top: 4px; color: var(--remote-text); font-size: 11px; font-weight: 650; }
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.permission-item {
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--remote-line);
  border-radius: 7px;
}
.permission-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.permission-item.allowed .permission-mark { color: #22863a; background: var(--remote-green-soft); }
.permission-item.restricted .permission-mark { color: #7f91a0; background: #edf2f5; }
.permission-mark svg { width: 16px; height: 16px; }
.permission-item strong, .permission-item small { display: block; }
.permission-item strong { color: var(--remote-text); font-size: 11px; font-weight: 650; }
.permission-item small { margin-top: 2px; color: var(--remote-muted); font-size: 9.5px; }
.permission-item b {
  min-width: 62px;
  padding: 4px 7px;
  border-radius: 5px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
}
.permission-item.allowed b { color: #176b46; background: var(--remote-green-soft); }
.permission-item.restricted b { color: #657989; background: #edf2f5; }
.permission-footnote {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 13px;
  color: #39586b;
  background: #eef7f5;
  border: 1px solid #c9e4de;
  border-radius: 7px;
  font-size: 10px;
}
.permission-footnote svg { flex: 0 0 auto; color: var(--remote-teal); }

/* Dialogs and notifications */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 20, 32, .68);
}
.modal {
  width: min(600px, 100%);
  max-height: calc(100vh - 44px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  border: 1px solid #b9c8d4;
  border-radius: 9px;
  box-shadow: 0 25px 70px rgba(4, 18, 30, .28);
}
.modal.compact { width: min(520px, 100%); }
.modal-header {
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  background: #f8fafc;
  border-bottom: 1px solid var(--remote-line);
}
.eyebrow {
  color: var(--remote-green);
  font-size: 9px;
  font-weight: 750;
}
.modal-header h2 { margin: 3px 0 0; color: var(--remote-text); font-size: 18px; font-weight: 650; }
.modal-header p { margin: 3px 0 0; color: var(--remote-secondary); font-size: 10.5px; }
.modal-body { min-height: 0; overflow-y: auto; display: grid; gap: 12px; padding: 16px 17px; }
.modal-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 17px;
  background: #f8fafc;
  border-top: 1px solid var(--remote-line);
}
.field { display: grid; gap: 5px; color: var(--remote-secondary); font-size: 10.5px; }
.field > span { font-weight: 600; }
.field input, .field select { height: 37px; padding: 0 10px; }
.field textarea { min-height: 85px; resize: vertical; padding: 9px 10px; }
.rescue-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rescue-form-wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .rescue-form-grid { grid-template-columns: 1fr; }
  .rescue-form-wide { grid-column: auto; }
}
.mode-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.mode-control legend { grid-column: 1 / -1; margin-bottom: 5px; color: var(--remote-secondary); font-size: 10.5px; font-weight: 600; }
.mode-control label { position: relative; }
.mode-control input { position: absolute; opacity: 0; }
.mode-control label > span {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid var(--remote-line);
  border-radius: 7px;
  cursor: pointer;
  font-weight: 650;
}
.mode-control label > span small { margin-top: 3px; color: var(--remote-muted); font-size: 9.5px; font-weight: 400; }
.mode-control input:checked + span { color: var(--remote-blue); background: var(--remote-blue-soft); border-color: #9ec0f2; }
.join-policy-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: #38566c;
  background: #edf5fa;
  border: 1px solid #cee1ed;
  border-radius: 7px;
  font-size: 10px;
}
.join-policy-note > svg {
  width: 17px;
  height: 17px;
  justify-self: center;
  color: var(--remote-blue);
}
.join-policy-note span { display: block; }
.join-policy-note strong { display: block; margin-bottom: 2px; color: var(--remote-text); font-size: 10.5px; }
.join-policy-note.unattended { color: #245f4e; background: var(--remote-green-soft); border-color: #bfe2cb; }
.join-policy-note.unattended > svg { color: var(--remote-green); }
.join-policy-note.attended { color: #73501e; background: var(--remote-amber-soft); border-color: #efd29d; }
.join-policy-note.attended > svg { color: #b17617; }
.security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  color: #476275;
  background: #edf5fa;
  border: 1px solid #cee1ed;
  border-radius: 7px;
  font-size: 10px;
}
.security-note svg { flex: 0 0 auto; color: var(--remote-blue); }
.security-note p { margin: 0; }
.policy-form { gap: 8px; }
.policy-scope-note { padding: 9px 10px; color: var(--remote-secondary); background: #f4f7f9; border-radius: 6px; font-size: 10px; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 47px;
  padding: 7px 0;
  border-bottom: 1px solid #e8edf1;
}
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: 10.5px; }
.toggle-row small { margin-top: 2px; color: var(--remote-muted); font-size: 9px; }
.toggle-row input { width: 17px; height: 17px; accent-color: var(--remote-blue); }
.support-code-result { padding: 22px 24px 24px; text-align: center; }
.support-code-result h3 { margin: 7px 0 5px; font-size: 19px; font-weight: 650; }
.support-code-result p { margin: 0 auto; max-width: 440px; color: var(--remote-secondary); font-size: 10.5px; }
.support-code-result > strong {
  display: block;
  margin: 18px 0 12px;
  color: var(--remote-navy-900);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 5px;
}
.support-customer-link {
  width: min(430px, 100%);
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 6px;
  margin: 0 auto 12px;
  padding: 0 3px 0 11px;
  color: var(--remote-blue);
  background: #f5f8fb;
  border: 1px solid var(--remote-line);
  border-radius: 6px;
  font-size: 10.5px;
  text-align: left;
}
.support-customer-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-code {
  color: var(--remote-navy-700);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.support-code-result .button-row { justify-content: center; }
.support-expiry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--remote-secondary);
  font-size: 10px;
  font-weight: 600;
}
.support-expiry svg { width: 14px; height: 14px; color: var(--remote-blue); }
.support-live-progress {
  margin-top: 18px;
  padding: 14px 16px;
  text-align: left;
  background: #f6faff;
  border: 1px solid #b9d3f4;
  border-radius: 7px;
}
.support-live-progress h4 { margin: 0 0 12px; color: var(--remote-navy-800); font-size: 11px; }
.support-live-progress ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.support-live-progress li {
  position: relative;
  min-height: 34px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--remote-muted);
}
.support-live-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: -2px;
  left: 11px;
  border-left: 1px dashed #a9bac9;
}
.support-live-progress li > span {
  position: relative;
  z-index: 1;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #63788a;
  background: #fff;
  border: 1px solid #a9bac9;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
}
.support-live-progress li strong { padding-top: 4px; font-size: 10.5px; font-weight: 500; }
.support-live-progress li.complete { color: #276a55; }
.support-live-progress li.complete > span {
  color: #fff;
  background: var(--remote-green);
  border-color: var(--remote-green);
}
.support-live-progress li.complete:not(:last-child)::after { border-color: #76bea4; }
.support-live-progress li.current { color: var(--remote-navy-800); }
.support-live-progress li.current > span {
  color: #fff;
  background: var(--remote-blue);
  border-color: var(--remote-blue);
  box-shadow: 0 0 0 3px #dceafa;
}
.support-ready-modal { width: min(480px, 100%); }
.support-ready-body {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.support-ready-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--remote-green);
  border-radius: 8px;
}
.support-ready-mark svg { width: 22px; height: 22px; }
.support-ready-body > div > strong,
.support-ready-body > div > span { display: block; }
.support-ready-body > div > strong { color: var(--remote-text); font-size: 13px; }
.support-ready-body > div > span { margin-top: 3px; color: var(--remote-secondary); font-size: 10px; }
.support-ready-body dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 4px 0 0;
  border: 1px solid var(--remote-line);
  border-radius: 7px;
}
.support-ready-body dl div { padding: 9px 11px; }
.support-ready-body dl div + div { border-left: 1px solid var(--remote-line); }
.support-ready-body dt { color: var(--remote-muted); font-size: 8.5px; text-transform: uppercase; }
.support-ready-body dd { margin: 3px 0 0; color: var(--remote-navy-800); font-size: 10.5px; font-weight: 650; }
.support-session-table { min-width: 1120px; }
.support-session-table th:nth-child(1) { width: 17%; }
.support-session-table th:nth-child(2) { width: 14%; }
.support-session-table th:nth-child(3) { width: 16%; }
.support-session-table th:nth-child(4) { width: 10%; }
.support-session-table th:nth-child(5) { width: 7%; }
.support-session-table th:nth-child(6) { width: 10%; }
.support-session-table th:nth-child(7) { width: 13%; }
.support-session-table th:nth-child(8) { width: 13%; }
.support-progress {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 132px;
}
.support-progress > i {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #8b9aae;
  box-shadow: 0 0 0 3px #edf1f5;
}
.support-progress > span { display: grid; gap: 2px; }
.support-progress strong { color: var(--remote-text); font-size: 10.5px; font-weight: 600; }
.support-progress small { max-width: 170px; color: var(--remote-muted); font-size: 9px; line-height: 1.3; }
.support-progress.info > i { background: #3979cf; box-shadow: 0 0 0 3px #e7f0fc; }
.support-progress.warning > i { background: #d28a18; box-shadow: 0 0 0 3px #fff2d9; }
.support-progress.success > i { background: #1f9a70; box-shadow: 0 0 0 3px #e2f5ed; }
.support-progress.danger > i { background: #d64d5c; box-shadow: 0 0 0 3px #fde9ec; }
.support-row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.viewer-install-body { grid-template-columns: 78px 1fr; align-items: center; }
.viewer-install-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--remote-line);
}
.viewer-install-mark img { width: 100%; height: 100%; object-fit: cover; }
.viewer-install-body h3 { margin: 0 0 4px; }
.viewer-install-body p { margin: 0; color: var(--remote-secondary); font-size: 10.5px; }
.viewer-install-body small { color: var(--remote-muted); }
.viewer-install-body .security-note { grid-column: 1 / -1; }
.endpoint-chat-modal {
  width: min(376px, 100%);
  height: min(456px, calc(100vh - 44px));
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.endpoint-chat-header {
  min-height: 60px;
  align-items: center;
  padding: 11px 13px;
  background: #f7fafb;
}
.endpoint-chat-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.endpoint-chat-identity > span:last-child { min-width: 0; }
.endpoint-chat-identity h2 {
  overflow: hidden;
  max-width: 275px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
}
.endpoint-chat-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--remote-teal);
  border-radius: 6px;
}
.endpoint-chat-mark svg { width: 16px; height: 16px; }
.endpoint-chat-conversation {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  background: #f2f6f8;
}
.endpoint-chat-empty {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  padding: 20px;
  color: var(--remote-muted);
  text-align: center;
  font-size: 9.5px;
}
.endpoint-chat-empty svg {
  width: 26px;
  height: 26px;
  margin-bottom: 3px;
  color: #7d9bad;
}
.endpoint-chat-empty strong { color: var(--remote-secondary); font-size: 10.5px; }
.endpoint-chat-message {
  align-self: flex-start;
  max-width: 82%;
  padding: 7px 9px;
  color: #173349;
  background: #fff;
  border: 1px solid #d7e1e7;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(18, 47, 67, .04);
}
.endpoint-chat-message.outgoing {
  align-self: flex-end;
  color: #fff;
  background: var(--remote-blue);
  border-color: var(--remote-blue);
}
.endpoint-chat-message strong,
.endpoint-chat-message small { display: block; }
.endpoint-chat-message strong { margin-bottom: 3px; font-size: 9px; font-weight: 650; opacity: .86; }
.endpoint-chat-message p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 10.5px; line-height: 1.4; }
.endpoint-chat-message small { margin-top: 4px; font-size: 8.5px; opacity: .7; }
.endpoint-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: end;
  gap: 7px;
  padding: 9px 10px;
  background: #fff;
  border-top: 1px solid var(--remote-line);
}
.endpoint-chat-composer textarea {
  min-height: 34px;
  max-height: 86px;
  resize: none;
  padding: 8px 9px;
  line-height: 1.35;
}
.endpoint-chat-composer .icon-button.primary {
  color: #fff;
  background: var(--remote-blue);
  border-color: var(--remote-blue);
}
.endpoint-chat-composer .icon-button.primary:hover {
  background: var(--remote-blue-hover);
  border-color: var(--remote-blue-hover);
}
.toast-region { position: fixed; z-index: 120; right: 16px; bottom: 16px; display: grid; gap: 8px; }
.toast {
  max-width: 380px;
  padding: 11px 13px;
  color: #fff;
  background: var(--remote-navy-800);
  border-left: 3px solid var(--remote-green-bright);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(5, 21, 33, .22);
  font-size: 10.5px;
}
.toast.error { border-left-color: #ef6372; }

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #fff;
  background: var(--remote-navy-950);
}
.login-shell {
  width: min(980px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  background: var(--remote-navy-900);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.login-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  background: var(--remote-navy-800);
}
.login-logo { display: flex; align-items: center; gap: 12px; }
.login-brand-logo { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: #fff; }
.login-logo strong, .login-logo span { display: block; }
.login-logo strong { font-size: 17px; }
.login-logo span { margin-top: 2px; color: #a8bfce; font-size: 10.5px; }
.login-copy { max-width: 480px; }
.login-kicker { color: #8ed77b; font-size: 10px; font-weight: 750; }
.login-copy h1 { margin: 10px 0 12px; font-size: 31px; line-height: 1.18; font-weight: 600; }
.login-copy p { margin: 0; color: #bbccd8; font-size: 12.5px; line-height: 1.65; }
.login-status { display: flex; align-items: center; gap: 9px; color: #b8cad7; font-size: 10.5px; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--remote-green-bright); }
.login-panel { display: grid; grid-template-rows: 1fr auto; color: var(--remote-text); background: #fff; }
.login-form { align-self: center; padding: 44px; }
.login-form h2 { margin: 5px 0 7px; font-size: 23px; font-weight: 650; }
.login-form > p { margin: 0 0 20px; color: var(--remote-secondary); font-size: 11.5px; }
.login-button { width: 100%; min-height: 40px; }
.login-message { margin-bottom: 12px; padding: 9px 10px; color: #8f3440; background: var(--remote-red-soft); border-radius: 6px; font-size: 10px; }
.login-assurance { display: grid; gap: 12px; margin-top: 24px; }
.login-assurance span { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 8px; color: var(--remote-secondary); font-size: 10px; }
.login-assurance b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--remote-blue);
  background: var(--remote-blue-soft);
  border-radius: 5px;
  font-size: 9px;
}
.login-panel footer { display: flex; justify-content: space-between; gap: 10px; padding: 16px 22px; color: var(--remote-muted); background: #f8fafc; border-top: 1px solid var(--remote-line); font-size: 9.5px; }

@media (max-width: 1500px) {
  .console-commandbar { grid-template-columns: minmax(210px, 1fr) auto auto; gap: 9px; }
  .commandbar-title span { display: none; }
  .metric-card { min-width: 72px; padding-inline: 8px; }
  .access-layout { grid-template-columns: 238px minmax(500px, 1fr) 370px; }
  .table-toolbar { grid-template-columns: minmax(180px, 1fr) 112px 118px 136px 34px; }
  .secondary-toolbar { grid-template-columns: minmax(180px, 1fr) 150px; }
  .history-toolbar { grid-template-columns: minmax(220px, 1fr) 135px 135px; }
  .computer-table th:nth-child(1) { width: 32%; }
  .computer-table th:nth-child(2) { width: 17%; }
  .computer-table th:nth-child(3) { width: 18%; }
  .computer-table th:nth-child(4) { width: 22%; }
  .computer-table th:nth-child(5) { width: 11%; }
}

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 1fr minmax(260px, 430px) auto; }
  .profile-copy, .profile-chevron { display: none; }
  .user-menu { min-width: auto; padding-left: 7px; }
  .console-commandbar { grid-template-columns: 1fr auto; }
  .metrics.console-status { display: none; }
  .access-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .detail-panel {
    position: fixed;
    z-index: 50;
    top: 64px;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    border-radius: 8px 0 0 0;
    transform: translateX(105%);
    transition: transform .18s ease;
  }
  .detail-panel.open { transform: translateX(0); }
}

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 68px minmax(0, 1fr); }
  .sidebar, .brand { width: 68px; }
  .brand { height: 64px; flex-basis: 64px; }
  .brand-app-icon { width: 40px; height: 40px; }
  .nav-button { width: 52px; min-width: 52px; }
  .nav-button > span:not(.nav-count) { display: none; }
  .topbar { height: 56px; grid-template-columns: minmax(0, 1fr) auto; padding: 0 9px; }
  .mobile-menu { display: none !important; }
  .page-context { display: none; }
  .global-search kbd { display: none; }
  .global-search input { padding-right: 10px; }
  .main-content { height: auto; min-height: calc(100vh - 56px); padding: 9px; }
  #accessView.active { min-height: calc(100vh - 74px); }
  .console-commandbar { align-items: flex-start; grid-template-columns: 1fr; }
  .commandbar-actions { width: 100%; overflow-x: auto; }
  .access-layout { grid-template-columns: 1fr; min-height: 700px; }
  .site-panel {
    position: fixed;
    z-index: 45;
    inset: 56px auto 0 68px;
    width: min(280px, 88vw);
    transform: translateX(-105%);
    transition: transform .18s ease;
  }
  .mobile-open .site-panel { transform: translateX(0); }
  .table-toolbar { grid-template-columns: minmax(180px, 1fr) 112px 34px; }
  .table-toolbar #platformFilter, .table-toolbar #hostFilter { display: none; }
  .secondary-toolbar, .history-toolbar { grid-template-columns: 1fr; }
  .page-table.has-toolbar { grid-template-rows: auto minmax(0, 1fr); }
  .support-table-panel.has-toolbar { grid-template-rows: 58px auto minmax(0, 1fr); }
  .secondary-toolbar .toolbar-note { text-align: left; }
  .computer-table th:nth-child(2), .computer-table td:nth-child(2),
  .computer-table th:nth-child(3), .computer-table td:nth-child(3) { display: none; }
  .computer-table th:nth-child(1) { width: 45%; }
  .computer-table th:nth-child(4) { width: 36%; }
  .computer-table th:nth-child(5) { width: 19%; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .policy-toolbar { grid-template-columns: 1fr; }
  .toolbar-note { text-align: left; }
  .permission-header { align-items: stretch; flex-direction: column; }
  .permission-summary, .permission-grid { grid-template-columns: 1fr; }
  .permission-summary > div { border-right: 0; border-bottom: 1px solid var(--remote-line); }
  .permission-summary > div:last-child { border-bottom: 0; }
  .login-page { padding: 0; }
  .login-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .login-brand { min-height: 300px; padding: 25px; }
  .login-copy h1 { font-size: 25px; }
  .login-form { padding: 30px 24px; }
  .endpoint-chat-modal {
    width: min(376px, 100%);
    height: min(456px, calc(100vh - 20px));
  }
}
