:root {
  --blue: #076129;
  --blue-dark: #054c20;
  --blue-soft: #eaf5ee;
  --text: #1d2532;
  --muted: #667284;
  --line: #e7eaf0;
  --bg: #f8f9fb;
  --green: #168253;
  --red: #ca3941;
  --amber: #9a6718;
  --rail: 76px;
  --header: 57px;
  --panel: 860px;
  --radius: 6px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  font-size: 13px;
  font-synthesis: none;
}
.client-root { display:flex; align-items:center; gap:18px; padding:24px; margin:16px 0 28px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.portal-record { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:18px; padding:15px 0; border-bottom:1px solid var(--line); }
.portal-record:last-child { border-bottom:0; }
.portal-record strong,.portal-record small { display:block; }
.portal-record small { color:var(--muted); margin-top:4px; overflow-wrap:anywhere; }
.portal-record-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; flex:none; }
.portal-reset-form { width:100%; flex-basis:100%; padding:12px; background:#f6f9f7; border-radius:6px; }
.customer-document-editor { margin-top:20px; }
.customer-document-publish { display:flex; align-items:center; gap:8px; margin-top:20px; }
#client-portal-users { margin-bottom:30px; }
#client-portal-user-form { margin-top:20px; padding-top:20px; border-top:1px solid var(--line); }
@media (max-width:700px) { .portal-record { align-items:flex-start; flex-direction:column; } .portal-record-actions { width:100%; } }
.client-root h2 { margin:0 0 5px; font-size:20px; }
.client-root p { margin:0 0 7px; }
.client-root .edit-client-detail { margin-left:auto; }
.client-root-icon { display:grid; place-items:center; width:48px; height:48px; color:var(--blue); background:var(--blue-soft); border-radius:50%; flex:none; }
.client-root-icon svg, .client-site-head svg { width:22px; height:22px; }
.client-site-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; margin:0 0 28px 24px; padding-left:22px; border-left:2px solid #bfdcc8; }
.client-site { position:relative; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; min-width:0; }
.client-site:before { content:""; position:absolute; width:22px; border-top:2px solid #bfdcc8; left:-23px; top:31px; }
.client-site-head { display:flex; align-items:center; gap:10px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.client-site-head > span:first-child { color:var(--blue); }
.client-site-head > div { flex:1; min-width:0; }
.client-site-head strong, .client-site-head small, .client-device strong, .client-device small { display:block; overflow:hidden; text-overflow:ellipsis; }
.client-site-head small, .client-device small { color:var(--muted); margin-top:3px; }
.client-devices { padding:10px 0; }
.client-device { display:flex; width:100%; text-align:left; align-items:center; justify-content:flex-start; border-bottom:1px solid var(--line); border-radius:0; }
.client-device span:last-child { min-width:0; }
.device-secret-block, .device-revoke-block { border-top:1px solid var(--line); margin-top:22px; padding-top:16px; }
.secret-actions { display:flex; gap:8px; margin:10px 0; }
.revealed-secret { display:block; padding:12px; margin:10px 0; background:#f3f6fb; border:1px solid var(--line); overflow-wrap:anywhere; user-select:text; }
.revealed-secret[hidden] { display:none; }
.credential-result { display:grid; gap:8px; margin:10px 0; padding:12px; background:#f3f6fb; border:1px solid var(--line); }
.credential-result[hidden] { display:none; }
.credential-result strong { display:block; margin-bottom:3px; }
.credential-result code { display:block; overflow-wrap:anywhere; user-select:text; }
.ticket-pager { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:12px; }
#client-tickets { margin-bottom:28px; }
.save-secret { margin-top:15px; }
@media (max-width:700px) { .client-root { flex-wrap:wrap; } .client-root .edit-client-detail { margin-left:0; } .client-site-grid { grid-template-columns:1fr; } }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 5px;
  color: inherit;
  padding: 8px 12px;
  font-weight: 500;
  white-space: nowrap;
  min-height: 34px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:not(:disabled):hover {
  background: #eef1f5;
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
input,
select,
textarea {
  border: 1px solid #dce1e9;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  min-height: 36px;
  padding: 8px 10px;
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #07612935;
  border-color: var(--blue);
}
input[type="checkbox"] {
  min-height: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}
textarea {
  resize: vertical;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}
label small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.6px;
  line-height: 1.35;
}
h2 {
  font-size: 15px;
  font-weight: 600;
}
h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 22px 0 12px;
}
p {
  line-height: 1.6;
}
svg {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
}
span[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 11px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.primary,
.primary:not(:disabled):hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.primary:not(:disabled):hover {
  background: var(--blue-dark);
}
.secondary {
  background: white;
  border-color: #dce1e9;
}
.quiet {
  color: var(--muted);
}
.text-button {
  color: var(--blue);
  font-size: 12px;
}
.icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 6px;
  color: var(--muted);
}
.danger {
  color: var(--red);
}
.danger-solid {
  background: var(--red);
  color: #fff;
}
.error {
  color: #b72e38;
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0;
  white-space: pre-wrap;
}
.error:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
.spacer,
.scope-spacer {
  flex: 1;
}
.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;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 10px;
  padding: 10px;
  background: white;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.topbar {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 19px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 14px;
}
.brand strong {
  letter-spacing: 1.6px;
  font-size: 15px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 24px;
  font-family: Arial, sans-serif;
}
.brand-divider {
  height: 20px;
  width: 1px;
  background: var(--line);
  margin: 0 4px;
}
.top-right {
  display: flex;
  gap: 15px;
  align-items: center;
}
.version {
  font-size: 11px;
  color: #758094;
}
.environment {
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f1f4f8;
  color: #657182;
}
.account {
  border: 1px solid #e0e7f0;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  min-height: 31px;
  padding: 0;
  background: #eaf5ee;
  font-size: 11px;
  color: var(--blue);
}
.app-shell {
  display: flex;
  min-height: calc(100vh - var(--header));
}
.rail {
  width: var(--rail);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  position: fixed;
  top: var(--header);
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 25;
  padding: 13px 6px 8px;
}
.rail-main,
.rail-bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rail button {
  flex-direction: column;
  gap: 5px;
  min-height: 57px;
  font-size: 9px;
  font-weight: 500;
  padding: 8px 2px;
  color: #788295;
  border-radius: 6px;
  position: relative;
}
.rail button svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
}
.rail button.active {
  background: var(--blue-soft);
  color: var(--blue);
}
.rail button.active:before {
  content: "";
  position: absolute;
  left: -6px;
  top: 13px;
  bottom: 13px;
  width: 3px;
  background: var(--blue);
  border-radius: 0 2px 2px 0;
}
.rail-footer {
  font-size: 8px;
  letter-spacing: 1.3px;
  text-align: center;
  color: #a4acb9;
  padding: 14px 0 2px;
}
main {
  margin-left: var(--rail);
  flex: 1;
  min-width: 0;
  outline: none;
}
.scope-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 48px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  min-width: 0;
}
.scope-org {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #5c6879;
}
.scope-org svg {
  width: 15px;
}
.scope-separator {
  color: #bec5d0;
}
.scope-bar select {
  border: 0;
  background: transparent;
  max-width: 270px;
  font-weight: 500;
  min-height: 30px;
  padding: 4px 25px 4px 0;
}
.migration-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8490a1;
  font-size: 10px;
}
.notice {
  border-bottom: 1px solid #c9e3d1;
  background: #eff8f1;
  color: #185532;
  font-size: 12px;
  padding: 10px 28px;
  line-height: 1.5;
}
.release-token-warning {
  border-bottom: 1px solid #eacb86;
  background: #fff5dc;
  color: #704b0b;
  font-size: 12px;
  padding: 11px 28px;
  line-height: 1.5;
}
.release-token-warning[data-state="expired"],
.release-token-warning[data-state="error"] {
  border-bottom-color: #e7afb1;
  background: #fff0f0;
  color: #8d252b;
}
.release-token-warning a { color: inherit; font-weight: 700; text-decoration: underline; }
.token-steps { padding-left: 20px; line-height: 1.7; }
.token-steps code { overflow-wrap: anywhere; white-space: normal; }
.view,
#releases,
#campaigns {
  padding: 25px 28px 20px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.heading p {
  font-size: 12px;
  margin-top: 5px;
}
.title-count {
  display: inline-block;
  font-size: 12px;
  background: #edf0f5;
  border: 1px solid #e2e7ef;
  border-radius: 5px;
  vertical-align: middle;
  padding: 2px 7px;
  margin-left: 5px;
  color: #68758b;
  letter-spacing: 0;
  font-weight: 500;
}
.inventory-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dce1e9;
  background: #fff;
  border-radius: 6px;
  padding: 0 10px;
  width: 310px;
  max-width: 100%;
  color: #8a95a6;
}
.search-box input {
  border: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  padding: 9px 4px;
  box-shadow: none;
  outline: none;
  font-size: 12px;
}
.search-box:focus-within {
  outline: 2px solid #07612930;
  border-color: var(--blue);
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.toolbar-actions button,
.column-menu summary {
  font-size: 12px;
}
.column-menu {
  position: relative;
}
.column-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #dce1e9;
  border-radius: 5px;
  background: #fff;
  min-height: 34px;
}
.column-menu summary::-webkit-details-marker {
  display: none;
}
.column-menu .popover {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 15;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 25px #16243d18;
  border-radius: 8px;
  min-width: 190px;
  padding: 12px;
}
.popover label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  font-size: 12px;
  cursor: pointer;
}
.state-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  overflow-x: auto;
}
.state-tabs button {
  color: #6b778b;
  font-size: 12px;
  min-height: 41px;
  padding: 7px 13px;
  border-radius: 0;
  position: relative;
}
.state-tabs button.active {
  color: var(--blue);
  font-weight: 600;
}
.state-tabs button.active:after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--blue);
  bottom: 0;
  left: 10px;
  right: 10px;
}
.state-tabs button span {
  font-size: 10px;
  border-radius: 4px;
  padding: 1px 5px;
  background: #edf0f5;
  color: #7b879a;
  min-width: 18px;
}
.state-tabs button.active span {
  background: #e0f1e5;
  color: var(--blue);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b2bdcb;
  display: inline-block;
  flex: none;
}
.status-dot.good {
  background: #24ae74;
}
.status-dot.bad {
  background: #e36569;
}
.status-dot.pending {
  background: #dba337;
}
.status-dot.blue {
  background: var(--blue);
}
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.filters select {
  font-size: 11px;
  min-height: 31px;
  padding: 5px 26px 5px 10px;
  color: #536174;
  min-width: 130px;
}
.filters .text-button {
  margin-left: auto;
}
.inventory-surface,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  background: #fafbfd;
  color: #778498;
  white-space: nowrap;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1px;
  height: 39px;
  border-bottom: 1px solid var(--line);
  padding: 10px 15px;
}
td {
  padding: 13px 15px;
  border-bottom: 1px solid #edf0f5;
  white-space: nowrap;
  color: #4a576a;
  height: 59px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td strong {
  color: #2a3444;
  font-size: 12px;
  font-weight: 500;
}
td small {
  display: block;
  margin-top: 4px;
  color: #8a94a5;
  font-size: 10px;
}
.sort-button {
  padding: 0;
  min-height: 18px;
  border: 0;
  border-radius: 0;
  gap: 7px;
  font-size: 10px;
  color: inherit;
}
.sort-button svg {
  width: 11px;
  height: 11px;
}
.sort-button.sorted {
  color: #445677;
}
tr.selected td {
  background: #edf8f0;
}
tbody tr:hover td {
  background: #f8fbf8;
}
.device-table th:first-child {
  min-width: 280px;
}
.device-name {
  padding: 0;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  gap: 11px;
  max-width: 320px;
  min-height: 38px;
}
.device-name:hover {
  background: transparent !important;
}
.device-name .device-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 37px;
  flex-shrink: 0;
  color: #8a9aae;
}
.device-mini svg {
  width: 28px;
  height: 34px;
  stroke-width: 1.3;
}
.device-name .device-title {
  min-width: 0;
  display: block;
}
.device-name strong {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-name small {
  color: #91a0b2;
  display: block;
  overflow-wrap: anywhere;
}
.device-row-tags,
.device-odoo-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.device-row-tags .badge,
.device-odoo-tags .badge {
  color: #075d2a;
  background: #e7f3eb;
}
.device-odoo-tags {
  justify-content: center;
}
.device-odoo-tags[hidden] {
  display: none;
}
.state-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.state-text.good {
  color: #218759;
}
.state-text.warn {
  color: #ac792c;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f3f7;
  color: #617084;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10px;
  white-space: nowrap;
}
.badge.good {
  background: #ebf8f0;
  color: #117547;
}
.badge.warn {
  background: #fff5e4;
  color: #8a5b18;
}
.badge.bad {
  background: #fff0f0;
  color: #c14350;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  gap: 12px;
  color: #8590a2;
  min-height: 49px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.empty {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
  color: #929daf;
  gap: 10px;
}
.empty > span svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.3;
  margin-bottom: 4px;
}
.empty strong {
  font-size: 14px;
  font-weight: 500;
  color: #566479;
}
.empty p {
  max-width: 440px;
  font-size: 12px;
}
.view-note,
.footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #929bae;
  margin-top: 15px;
  line-height: 1.6;
}
.view-note svg {
  width: 13px;
  height: 13px;
}
.section-tabs {
  display: flex;
  gap: 23px;
  padding: 14px 28px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.section-tabs button {
  border-radius: 0;
  color: #768295;
  min-height: 40px;
  font-size: 12px;
  padding: 6px 0;
}
.section-tabs button.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.migration {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border: 1px solid #d5e8da;
  background: #f0f8f2;
  border-radius: 6px;
  margin: 0 0 20px;
  color: #315d3e;
}
.migration strong {
  font-size: 12px;
  font-weight: 500;
}
.migration p {
  font-size: 11px;
  margin-top: 3px;
  color: #72839c;
}
.pill {
  font-size: 10px;
  background: #e3f0e7;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: auto;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-top h2 {
  font-size: 13px;
}
.panel-top .secondary {
  font-size: 11px;
  min-height: 29px;
  padding: 5px 10px;
}
.inspector {
  width: min(var(--panel), calc(100vw - var(--rail)));
  flex-shrink: 0;
  border-left: 1px solid #e0e5ee;
  background: #fff;
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  overflow-y: auto;
  box-shadow: -3px 0 14px #152b4906;
  z-index: 20;
}
.inspector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #8a97a8;
  font-size: 9px;
  letter-spacing: 1px;
}
.device-hero {
  text-align: center;
  padding: 2px 24px 21px;
  border-bottom: 1px solid var(--line);
}
.device-art {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
  width: 88px;
  height: 87px;
  background: linear-gradient(145deg, #fafcfe, #f2f5f9);
  border-radius: 17px;
  color: #8b9eb9;
}
.device-art svg {
  width: 62px;
  height: 70px;
  stroke-width: 1.15;
}
.device-hero h2 {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  font-weight: 600;
  margin-bottom: 8px;
}
.device-hero #detail-ident {
  margin-top: 8px;
}
.device-hero #detail-commercial-sn {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.inspector-tabs {
  display: flex;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}
.inspector-tabs button {
  font-size: 11px;
  border-radius: 0;
  min-height: 44px;
  padding: 7px 9px;
  color: #7a879a;
}
.inspector-tabs button.active {
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
}
.inspector-body {
  padding: 20px;
  overflow-wrap: anywhere;
}
.inspector-body h3:first-child {
  margin-top: 0;
}
.inspector-body dl {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 1.5fr);
  gap: 14px 12px;
  margin: 12px 0 25px;
  font-size: 11px;
}
.inspector-body dt {
  color: #8390a2;
}
.inspector-body dd {
  margin: 0;
  text-align: right;
  color: #35465d;
  word-break: break-word;
}
.inspector-body .notice-inline {
  font-size: 11px;
  color: #8b7851;
  background: #fffaf1;
  padding: 12px;
  border-radius: 5px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.inspector-body .form-grid {
  grid-template-columns: 1fr;
}
.inspector-body input,
.inspector-body select {
  font-size: 12px;
}
.mini-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.mini-metrics > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mini-metrics strong {
  font-size: 18px;
  font-weight: 500;
}
.mini-metrics span {
  font-size: 10px;
  color: #8792a4;
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  gap: 10px;
}
.service-row small {
  display: block;
  color: #93a0b2;
  margin-top: 4px;
}
.inspector .block-button {
  width: 100%;
  margin-top: 15px;
}
.inspector pre,
dialog pre {
  background: #f7f9fc;
  padding: 14px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.6;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
details.raw-data {
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
}
details.raw-data summary {
  padding: 8px 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 22px;
}
.metric {
  padding: 21px 23px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric strong {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 500;
  display: block;
  margin: 10px 0 5px;
}
.metric > span {
  font-size: 11px;
  color: #718098;
  display: flex;
  align-items: center;
  gap: 7px;
}
.metric small {
  color: #8d99aa;
  font-size: 10px;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 16px 19px;
}
.card-head h2 {
  font-size: 13px;
}
.card-body {
  padding: 19px;
}
.card-body .empty {
  min-height: 135px;
  padding: 20px;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 19px;
  gap: 15px;
}
.list-row:last-child {
  border: 0;
}
.list-row strong {
  font-size: 12px;
  font-weight: 500;
}
.list-row p,
.list-row small {
  font-size: 11px;
  color: #8b98ab;
}
.list-row .text-button {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: flex-start;
  padding: 0;
  min-height: 23px;
}
.meter-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 1fr 24px;
  gap: 15px;
  align-items: center;
  margin: 15px 0;
  font-size: 11px;
}
.meter-row:first-child {
  margin-top: 0;
}
.meter-row meter {
  height: 6px;
  width: 100%;
  border: 0;
  appearance: none;
  border-radius: 5px;
  background: #edf2fa;
}
.meter-row meter::-webkit-meter-bar {
  background: #edf2fa;
  border: 0;
  height: 6px;
}
.meter-row meter::-webkit-meter-optimum-value {
  background: #5ba774;
  border-radius: 4px;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.health-item {
  padding: 14px 0;
}
.health-item strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin: 10px 0;
}
.health-item span,
.health-item p {
  font-size: 10px;
  color: #8290a5;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.health-caption {
  font-size: 10px;
  color: #8c98aa;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  line-height: 1.6;
}
.topology-canvas {
  background-color: #fff;
  background-image: radial-gradient(#d9e0eb 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 45px 25px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topology-flow {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 65px minmax(190px, 270px);
  align-items: center;
  gap: 0;
}
.topology-node {
  background: #fff;
  border: 1px solid #dce5f3;
  border-radius: 8px;
  padding: 17px;
  box-shadow: 0 3px 9px #0a285a06;
  text-align: center;
  overflow-wrap: anywhere;
}
.topology-node svg {
  width: 27px;
  height: 27px;
  color: #8da4c7;
  margin-bottom: 12px;
}
.topology-node strong {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 500;
}
.topology-node .badge {
  margin-top: 8px;
}
.topology-node small {
  display: block;
  color: #8b99ae;
  margin-top: 5px;
}
.topology-branches {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.topology-branches:before {
  content: "";
  position: absolute;
  left: -33px;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: #c9d6e8;
}
.topology-branches .topology-node {
  position: relative;
}
.topology-branches .topology-node:before {
  content: "";
  position: absolute;
  width: 33px;
  height: 1px;
  background: #c9d6e8;
  left: -34px;
  top: 50%;
}
.topology-line {
  height: 1px;
  background: #c9d6e8;
  width: 33px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
  max-width: 950px;
}
.odoo-key-form { margin-top: 16px; }
.odoo-key-form label { display: block; max-width: 560px; }
.odoo-key-form input { width: 100%; margin-top: 8px; }
.odoo-key-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.odoo-sync-summary { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.odoo-ticket-list { display: grid; gap: 10px; margin: 10px 0 18px; }
.odoo-ticket { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff; overflow-wrap: anywhere; }
.odoo-ticket a { font-weight: 600; }
.odoo-ticket small { display: block; color: var(--muted); margin-top: 5px; }
.ticket-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.ticket-filters button { border:1px solid var(--line); background:#fff; padding:9px 14px; border-radius:var(--radius); font-weight:650; color:var(--muted); }
.ticket-filters button.active { border-color:var(--blue); background:var(--blue-soft); color:var(--blue); }
.ticket-filters span { margin-left:5px; }
.ticket-search-label { display:block; max-width:510px; font-weight:650; }
.ticket-search-label input { display:block; width:100%; margin:7px 0 14px; }
.ticket-list { display:grid; gap:9px; margin:20px 0; }
.ticket-row { padding:14px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; }
.ticket-row-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.ticket-row-heading a { font-weight:700; overflow-wrap:anywhere; }
.ticket-row-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin-top:10px; color:var(--muted); }
.ticket-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ticket-pager > div { display:flex; gap:8px; }
.topology-heading { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:10px 18px; margin-bottom:18px; }
.topology-heading h3 { margin:0 0 5px; font-size:18px; letter-spacing:-.3px; }
.topology-source-key { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; white-space:nowrap; }
.topology-pip { width:8px; height:8px; flex:none; border:2px solid #71a485; border-radius:50%; background:#fff; }
.topology-map { position:relative; }
.topology-root { display:flex; align-items:center; gap:14px; padding:18px 20px; border:1px solid #bbd5c4; border-radius:12px; background:linear-gradient(110deg,#eef7f1,#fff 72%); min-width:0; }
.topology-root-mark { display:grid; place-items:center; width:43px; height:43px; flex:none; border-radius:11px; background:var(--blue); color:#fff; font-size:23px; }
.topology-root-copy { min-width:0; flex:1; }
.topology-root-copy small,.topology-root-copy strong,.topology-root-copy span { display:block; overflow-wrap:anywhere; }
.topology-root-copy small { color:var(--blue-dark); font-size:11px; font-weight:700; }
.topology-root-copy strong { margin:4px 0; font-size:17px; line-height:1.35; }
.topology-root-copy span { color:var(--muted); font-size:12px; }
.topology-branches { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding-top:31px; }
.topology-branches::before { content:""; position:absolute; top:0; left:50%; height:16px; border-left:2px solid #bfd7c7; }
.topology-branches::after { content:""; position:absolute; top:16px; left:25%; right:25%; border-top:2px solid #bfd7c7; }
.topology-panel { position:relative; min-width:0; align-self:start; padding:17px; border:1px solid var(--line); border-radius:11px; background:#fff; box-shadow:0 4px 16px #163b2510; }
.topology-panel::before { content:""; position:absolute; height:15px; top:-15px; left:50%; border-left:2px solid #bfd7c7; }
.topology-panel > header { display:flex; align-items:flex-start; gap:11px; margin-bottom:13px; }
.topology-panel-number { display:grid; place-items:center; width:28px; height:28px; flex:none; border-radius:8px; background:var(--blue-soft); color:var(--blue); font-size:11px; font-weight:700; }
.topology-panel h4 { margin:0 0 3px; font-size:14px; }
.topology-panel > header p { color:var(--muted); font-size:11px; line-height:1.45; }
.topology-group { border-top:1px solid var(--line); }
.topology-group summary { display:flex; align-items:center; gap:8px; min-height:42px; padding:10px 2px; font-size:12px; font-weight:650; list-style:none; }
.topology-group summary::-webkit-details-marker { display:none; }
.topology-group summary::before { content:"›"; font-size:18px; line-height:12px; color:var(--blue); transform:rotate(0); transition:transform .15s ease; }
.topology-group[open] summary::before { transform:rotate(90deg); }
.topology-count { margin-left:auto; padding:2px 7px; border-radius:20px; background:#f0f4f1; color:var(--muted); font-size:11px; }
.topology-group ul { margin:0 0 12px 8px; padding:0 0 0 13px; border-left:1px solid #d7e4db; list-style:none; }
.topology-group > p { padding:0 4px 14px 24px; }
.topology-entry { position:relative; display:flex; align-items:flex-start; gap:9px; min-width:0; padding:9px 0; }
.topology-entry::before { content:""; position:absolute; top:14px; left:-13px; width:10px; border-top:1px solid #d7e4db; }
.topology-entry .topology-pip { margin-top:4px; width:7px; height:7px; }
.topology-entry-copy { flex:1; min-width:0; }
.topology-entry-copy strong,.topology-entry-copy small { display:block; overflow-wrap:anywhere; }
.topology-entry-copy strong { font-size:12px; line-height:1.4; }
.topology-entry-copy small { margin-top:2px; color:var(--muted); font-size:11px; line-height:1.35; }
.topology-state { display:inline-block; flex:none; border-radius:20px; padding:4px 7px; background:#f0f2f4; color:#566575; font-size:10px; font-weight:700; line-height:1.2; white-space:nowrap; }
.topology-state.good { background:#e6f4e9; color:#076129; }
.topology-state.warn { background:#fff2d7; color:#805515; }
.topology-state.bad { background:#fce9e8; color:#9b3330; }
.topology-caveat { margin-top:15px; }
@media(max-width:700px) { .topology-branches { grid-template-columns:1fr; gap:18px; } .topology-branches::before,.topology-branches::after,.topology-panel::before { display:none; } .topology-root { align-items:flex-start; } .topology-entry { flex-wrap:wrap; } .topology-entry .topology-state { margin-left:16px; } .ticket-pager { align-items:flex-start; flex-direction:column; } }
.settings-grid .settings-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: #8a96a7;
}
.settings-nav strong {
  color: var(--blue);
  font-weight: 500;
  background: var(--blue-soft);
  padding: 12px;
  border-radius: 5px;
}
.settings-grid.settings-paginated { grid-template-columns:220px minmax(0,1fr); max-width:1220px; align-items:start; gap:24px; }
.settings-paginated .settings-nav { display:flex; position:sticky; top:18px; gap:5px; }
.settings-nav button { width:100%; text-align:left; padding:12px 14px; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--muted); font-size:13px; line-height:1.4; white-space:normal; }
.settings-nav button:hover { background:#f0f5f2; color:var(--blue); }
.settings-nav button.active { background:var(--blue-soft); border-color:#c6dfcf; color:var(--blue); font-weight:700; }
.settings-pages,.settings-pages .stack { min-width:0; }
[data-settings-page][hidden] { display:none !important; }
.settings-pagination { display:flex; align-items:center; gap:12px; border-top:1px solid var(--line); padding-top:18px; margin-top:24px; }
.settings-pagination span { flex:1; min-width:0; text-align:center; color:var(--muted); font-size:12px; }
.nginx-redirects { border:1px solid var(--line); padding:16px; border-radius:8px; margin:16px 0; min-width:0; }
.nginx-redirects legend { font-weight:700; padding:0 6px; }
.nginx-redirect-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto; align-items:end; gap:10px; margin-bottom:14px; }
.nginx-redirect-row input,.nginx-redirect-row select { width:100%; min-width:0; }
@media(max-width:760px) {
  .settings-grid.settings-paginated { grid-template-columns:minmax(0,1fr); gap:18px; }
  .settings-paginated .settings-nav { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); position:static; }
  .settings-pagination { gap:6px; flex-wrap:wrap; }
  .settings-pagination button { padding:9px; }
  .nginx-redirect-row { grid-template-columns:minmax(0,1fr); }
}
.setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.setting-line small {
  display: block;
  color: #8693a6;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.5;
}
.setting-line span:last-child {
  flex-shrink: 0;
}
.login {
  margin: 65px auto;
  width: 340px;
  max-width: calc(100% - 40px);
  text-align: center;
}
.login h1 {
  font-size: 23px;
  margin: 20px 0 8px;
}
.login-mark {
  width: 44px;
  height: 45px;
  font-size: 32px;
}
.login p {
  font-size: 12px;
}
.login form {
  text-align: left;
  margin-top: 27px;
}
.login form .primary {
  width: 100%;
  margin-top: 4px;
}
.login-error {
  font-size: 12px;
}
dialog {
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  box-shadow: 0 20px 70px #1223422b;
  width: 520px;
  max-width: calc(100% - 30px);
  max-height: 88vh;
  padding: 24px;
  color: var(--text);
}
dialog::backdrop {
  background: #14223c50;
  backdrop-filter: blur(2px);
}
.wide-dialog {
  width: 760px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 18px;
}
.dialog-head h2 {
  font-size: 17px;
}
.dialog-head .quiet {
  font-size: 20px;
  padding: 0;
  width: 30px;
}
.dialog-head + p {
  font-size: 12px;
  margin-bottom: 20px;
}
dialog form {
  margin-top: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px 15px 0;
  margin: 0 0 20px;
}
legend {
  color: #65768f;
  font-size: 11px;
  padding: 0 6px;
}
.check-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.check-row label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.compact-stats {
  display: flex;
  gap: 12px;
  margin: 15px 0;
}
.compact-stats article {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  gap: 7px;
}
.compact-stats strong {
  font-size: 22px;
  font-weight: 500;
}
.compact-stats span {
  font-size: 10px;
  color: #8592a6;
}
dialog dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
}
dialog dt {
  color: #8390a4;
}
dialog dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.preserve-space {
  white-space: pre-wrap;
}
.eyebrow {
  font-size: 9px;
  color: #8391a6;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
@media (min-width: 1600px) {
  .view,
  #releases,
  #campaigns {
    padding: 30px 38px;
  }
  .scope-bar {
    padding: 0 38px;
  }
  .device-table th:first-child {
    min-width: 325px;
  }
  .device-name {
    max-width: 365px;
  }
  .device-name strong {
    max-width: 300px;
  }
}
@media (max-width: 1180px) {
  .inspector {
    position: fixed;
    right: 0;
    box-shadow: -8px 0 35px #19365e18;
    width: 380px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .metric {
    padding: 18px;
  }
  .scope-org {
    display: none;
  }
  .device-name strong {
    max-width: 230px;
  }
  .view-note .spacer,
  .view-note .legacy-count {
    display: none;
  }
  .migration-label {
    font-size: 9px;
  }
  .scope-bar {
    gap: 8px;
  }
  .scope-separator {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --rail: 58px;
  }
  .topbar {
    padding: 0 13px;
  }
  .brand {
    gap: 8px;
    font-size: 12px;
  }
  .brand strong {
    font-size: 12px;
  }
  .brand-divider {
    margin: 0 1px;
  }
  .brand-mark {
    width: 27px;
    height: 28px;
    font-size: 21px;
  }
  .top-right {
    gap: 8px;
  }
  .top-right .version {
    display: none;
  }
  .rail {
    padding: 10px 3px;
  }
  .rail button {
    font-size: 8px;
    min-height: 55px;
  }
  .rail button svg {
    width: 20px;
  }
  .rail button.active:before {
    left: -3px;
  }
  .scope-bar {
    padding: 0 15px;
  }
  .scope-bar select {
    max-width: 200px;
    font-size: 11px;
  }
  .migration-label {
    display: none;
  }
  .view,
  #releases,
  #campaigns {
    padding: 20px 15px;
  }
  .heading {
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 13px;
  }
  .heading h1 {
    font-size: 20px;
  }
  .heading p {
    font-size: 11px;
  }
  .heading > .primary {
    font-size: 10px;
    padding: 7px 9px;
    gap: 3px;
    min-height: 32px;
  }
  .heading > .primary svg {
    width: 13px;
  }
  .inventory-toolbar {
    flex-wrap: wrap;
  }
  .search-box {
    flex: 1;
    min-width: 180px;
    width: auto;
  }
  .toolbar-actions {
    gap: 5px;
  }
  .toolbar-actions button,
  .column-menu summary {
    font-size: 10px;
    padding: 7px;
  }
  .toolbar-actions svg {
    width: 14px;
  }
  .state-tabs {
    gap: 1px;
  }
  .state-tabs button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .filters {
    gap: 7px;
  }
  .filters select {
    min-width: 0;
    flex: 1;
    max-width: 180px;
  }
  .filters .text-button {
    font-size: 11px;
  }
  .notice {
    padding: 10px 15px;
  }
  .pagination {
    padding: 9px 10px;
    font-size: 10px;
  }
  .pagination #updated {
    display: none;
  }
  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric small {
    font-size: 9px;
  }
  .overview-grid {
    gap: 15px;
  }
  .health-grid {
    gap: 8px;
  }
  .card-head,
  .card-body {
    padding: 15px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .settings-nav {
    display: none !important;
  }
  .setting-line {
    font-size: 11px;
  }
  .section-tabs {
    padding: 10px 15px 0;
  }
  .section-tabs button {
    font-size: 11px;
  }
  .migration {
    padding: 10px 12px;
  }
  .panel-top {
    padding: 10px;
  }
  .panel-top h2 {
    font-size: 12px;
  }
  .inspector {
    width: min(394px, calc(100vw - var(--rail)));
  }
  .topology-canvas {
    padding: 25px 14px;
  }
  .topology-flow {
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
  }
  .topology-line {
    display: none;
  }
  .topology-branches:before,
  .topology-branches .topology-node:before {
    display: none;
  }
  .topology-branches {
    gap: 15px;
  }
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
  .compact-stats {
    gap: 7px;
  }
  .compact-stats article {
    padding: 10px;
  }
  .check-row {
    gap: 10px;
  }
  .view-note {
    font-size: 9px;
    align-items: flex-start;
  }
  .view-note > svg {
    margin-top: 3px;
  }
  .heading > select {
    max-width: 140px;
    font-size: 10px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  dialog {
    padding: 20px;
  }
  dialog dl {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .login {
    margin-top: 40px;
  }
  #scope-note {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.12s,
      color 0.12s;
  }
  .inspector {
    animation: panel-enter 0.16s ease-out;
  }
  @keyframes panel-enter {
    from {
      transform: translateX(15px);
      opacity: 0.5;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}

/* Multi-selection stays explicit and never expands to unseen filtered devices. */
.device-table th.select-column,
.device-table td.select-column {
  width: 39px;
  min-width: 39px;
  padding: 10px 8px 10px 15px;
}
.device-table th:nth-child(2) {
  min-width: 280px;
}
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #eaf5ee;
  border: 1px solid #c8e3d0;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 14px;
  font-size: 11px;
  color: #315d3e;
}
.bulk-bar strong {
  font-weight: 500;
  color: var(--blue);
}
.bulk-bar .primary {
  margin-left: auto;
  font-size: 11px;
  min-height: 29px;
  padding: 6px 10px;
}
.selection-note {
  background: var(--blue-soft);
  border-radius: 5px;
  color: #185532;
  font-size: 12px;
  padding: 12px;
  margin-bottom: 18px;
}
@media (max-width: 760px) {
  .bulk-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .bulk-bar > span {
    display: none;
  }
  .bulk-bar .primary {
    margin-left: 0;
  }
  .bulk-bar .text-button {
    font-size: 10px;
  }
}
.operation-card {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
  min-width: 0;
}
.session-account { display: flex; align-items: center; max-width: 260px; color: var(--muted); font-size: 11px; text-align: right; }
.session-account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-search { max-width: 340px; width: 100%; }
#users > .muted { margin-top: 18px; line-height: 1.7; }
#user-confirm-summary { line-height: 1.8; overflow-wrap: anywhere; }
.check-label { display: flex; align-items: center; gap: 10px; }
.check-label input { width: auto; }
@media (max-width: 760px) { .session-account { max-width: 130px; } .top-right { gap: 5px; } #users .panel-top { gap: 10px; } }
.operation-card h3 { margin: 0 0 12px; }
.operation-card p { line-height: 1.6; }
.operation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.operation-heading h3 { margin: 0; }
.operation-label { margin-top: 14px; }
.operation-command {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface-soft, #f6f8fa);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 5px;
  font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  user-select: all;
}
.operation-job { border-bottom: 1px solid var(--line); padding: 12px 0; }
.operation-job > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.operation-job p { margin: 6px 0 0; overflow-wrap: anywhere; }
.job-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.job-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.operation-card textarea { width: 100%; max-width: 100%; }
.operation-card .notice-inline { margin: 12px 0; }
.operation-card [data-ssh-controls] > button { margin: 8px 0; }
/* Preserve readable secondary text on the pale console surfaces. */
td small,
.device-name small,
.pagination,
.view-note,
.footnote,
.health-caption,
.list-row p,
.list-row small,
.health-item span,
.health-item p,
.metric small,
.inspector-body dt,
.service-row small,
.topology-node small,
.setting-line small,
.compact-stats span,
dialog dt,
.empty,
.rail-footer {
  color: #607087;
}

.network-status {
  color: #617895;
  font-size: 10px;
}
@media (max-width: 760px) {
  .network-status {
    font-size: 9px;
  }
  .environment {
    display: none;
  }
}

.card-body dl {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr);
  gap: 14px 20px;
  margin: 0;
  font-size: 12px;
}
.card-body dt { color: #607087; }
.card-body dd { margin: 0; overflow-wrap: anywhere; }

/* Legacy management remains a visibly separate transport and trust model. */
.legacy-mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 20px 0; }
.legacy-mode-grid .card { padding: 18px; }
.legacy-mode-grid h2 { margin: 0 0 10px; font-size: 13px; }
.legacy-panel { margin-top: 20px; }
.legacy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.legacy-actions button { font-size: 11px; }
.legacy-section { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: clip; }
.legacy-section > summary { display: flex; gap: 12px; align-items: center; padding: 15px; font-size: 13px; cursor: pointer; list-style: none; }
.legacy-section > summary::-webkit-details-marker { display: none; }
.legacy-section > summary:hover { background: #f5f9f6; }
.legacy-section > summary:focus-visible { outline: 2px solid #076129; outline-offset: -3px; }
.classic-section-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; background: #edf5ef; color: #076129; border-radius: 9px; }
.classic-section-icon svg, .classic-section-chevron svg, .classic-live-header button svg { width: 18px; height: 18px; }
.classic-section-title { min-width: 0; flex: 1; }
.classic-section-title strong, .classic-section-title small { display: block; overflow-wrap: anywhere; }
.classic-section-title small { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.classic-section-count { background: #f0f3f1; color: #52645a; border-radius: 6px; padding: 3px 7px; font-size: 11px; font-weight: 600; }
.classic-section-chevron { display: flex; color: var(--muted); }
.legacy-section[open] > summary { border-bottom: 1px solid var(--line); }
.legacy-section[open] > summary .classic-section-chevron { transform: rotate(180deg); }
.classic-section-body { padding: 16px; min-width: 0; }
.classic-group { margin-top: 25px; }
.classic-group > h4 { margin: 0 0 10px 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.classic-section-body h5 { margin: 18px 0 10px; font-size: 12px; }
.classic-section-body h5:first-child { margin-top: 0; }
.classic-live-header { padding: 16px; background: #f3f8f4; border: 1px solid #d9e8dd; border-radius: 12px; }
.classic-live-header .operation-heading { align-items: center; gap: 12px; margin-bottom: 14px; }
.classic-live-header h3 { margin: 0; }
.classic-live-header button { display: inline-flex; align-items: center; gap: 6px; }
.classic-live-header p:last-child { margin-bottom: 0; }
.classic-sync { display: flex; align-items: center; gap: 7px; color: #076129; font-size: 11px; }
.classic-sync::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 6px; }
.classic-sync.stale { color: #985817; }
.classic-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.classic-metrics > div { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfa; min-width: 0; }
.classic-metrics small { display: block; font-size: 10px; color: var(--muted); }
.classic-metrics strong { display: block; margin-top: 6px; font-size: 18px; overflow-wrap: anywhere; }
.classic-item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; }
.classic-item-grid > .legacy-service { padding: 14px; border: 1px solid var(--line); border-radius: 9px; min-width: 0; background: #fafcfb; }
.classic-item-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.classic-item-heading strong { overflow-wrap: anywhere; min-width: 0; }
.classic-tunnel-result { padding:14px; border:1px solid #ead5ab; border-radius:9px; background:#fff9ec; margin-bottom:14px; font-size:12px; overflow-wrap:anywhere; }
.classic-tunnel-result[data-state="reported"] { background:#edf7ef; border-color:#c9e4d0; }
.classic-tunnel-result[data-state="failed"] { background:#fceeed; border-color:#f4cfca; }
.classic-tunnel-result p { line-height:1.6; margin:8px 0; }
.classic-tunnel-result small { display:block; color:var(--muted); margin-top:8px; }
.classic-tunnel-result .legacy-tunnel-link { display:inline-block; max-width:100%; white-space:normal; }
.classic-service-connection { display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid var(--line); padding:10px 0; font-size:11px; }
.classic-service-connection small { display:block; margin-top:4px; color:var(--muted); overflow-wrap:anywhere; }
.classic-section-body .legacy-inline-form { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f7faf8; }
.classic-section-body .legacy-actions { gap: 6px; margin-bottom: 0; }
.classic-section-body .legacy-actions button { font-size: 11px; padding: 8px 11px; }
.classic-item-grid dl { font-size: 11px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.classic-section-body dd, .classic-section-body dt { overflow-wrap: anywhere; min-width: 0; }
.event-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.event-badge { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1.5; padding: 3px 7px; border-radius: 5px; border: 1px solid transparent; overflow-wrap: anywhere; max-width: 100%; }
.event-badge-warning { color: #865006; background: #fff2d7; border-color: #f0daab; }
.event-badge-error { color: #a03732; background: #fce9e7; border-color: #f4cfca; }
.event-badge-connection { color: #076129; background: #e7f4ea; border-color: #c9e4d0; }
.event-badge-info { color: #315681; background: #edf3fc; border-color: #d5e3f4; }
.event-badge-neutral { color: #586473; background: #f0f3f6; border-color: #e1e6ec; }
@media (max-width: 600px) {
  .classic-live-header { padding: 12px; }
  .classic-live-header .operation-heading { flex-wrap: wrap; }
  .classic-section-body { padding: 12px; }
  .legacy-section > summary { padding: 12px; gap: 8px; }
  .classic-section-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .classic-item-grid { grid-template-columns: minmax(0, 1fr); }
  .classic-section-body .legacy-actions button { min-height: 44px; }
}
.legacy-section h3 { margin-top: 12px; }
.legacy-service { padding: 12px 0; border-bottom: 1px solid var(--line); }
.legacy-service > p { margin: 6px 0; overflow-wrap: anywhere; }
.legacy-inline-form { display: flex; gap: 8px; align-items: end; margin: 12px 0; flex-wrap: wrap; }
.legacy-inline-form label { flex: 1 1 140px; margin: 0; }
.legacy-state { margin-bottom: 14px; }
.legacy-history { max-height: 300px; overflow: auto; }
.legacy-history table { min-width: 520px; }
.legacy-history td { max-width: 250px; overflow-wrap: anywhere; white-space: normal; }
.legacy-tunnel-link { display: inline-block; margin: 6px 0; }
.legacy-note { border-bottom: 1px solid var(--line); padding: 10px 0; }
.legacy-note p { white-space: pre-wrap; overflow-wrap: anywhere; }
#legacy-confirm-summary { white-space: pre-line; line-height: 1.8; overflow-wrap: anywhere; }
#legacy-confirm-subject { overflow-wrap: anywhere; }
@media (max-width: 760px) { #compatibility .heading, #compatibility .panel-top { flex-wrap: wrap; gap: 14px; } .legacy-mode-grid { grid-template-columns: 1fr; } }

.inspector-tabs { overflow-x: auto; justify-content: flex-start; }
.inspector-tabs button { flex: 0 0 auto; white-space: nowrap; }
.rail { overflow-y: auto; }

@media (max-width: 760px) { #nav-compatibility span:last-child { max-width: 48px; overflow: hidden; text-overflow: ellipsis; } }

.classic-state { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.classic-state small { font-size: 10px; color: var(--muted); }

.site-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.user-access { margin-inline-start: 8px; }
/* Map and unified device state share the existing inspector and ASDT palette. */
#map .map-toolbar {display:flex;gap:14px;align-items:center;margin-bottom:12px;flex-wrap:wrap;}
#map .map-toolbar h1 {font-size:24px;margin:0;margin-right:auto;}
#map .map-toolbar label {margin:0;min-width:160px;}
#map .map-toolbar label:first-of-type {width:310px;}
#map .map-toolbar input,#map .map-toolbar select {width:100%;}
#device-map {height:calc(100dvh - 180px);min-height:430px;border:1px solid var(--line);border-radius:12px;z-index:0;}
.map-footer {display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:8px;}
.map-footer p {margin:0;}
.map-device-chooser {font-family:inherit;max-width:350px;}
.map-device-chooser h3 {margin:0 0 10px;font-size:15px;}
.map-device-choice {display:flex;align-items:center;gap:9px;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:10px 0;background:transparent;}
.map-device-choice span {min-width:0;display:grid;gap:4px;overflow-wrap:anywhere;}
.map-device-choice small {font-size:11px;color:var(--muted);font-weight:400;}
.map-chooser-pages {display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:10px;font-size:11px;}
.map-chooser-pages button {font-size:11px;padding:6px;}
.leaflet-tooltip {max-width:330px;white-space:normal;overflow-wrap:anywhere;}
.device-overview {margin-top:24px;padding-top:20px;border-top:1px solid var(--line);}
.odoo-tag-editor {margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:10px;}
.odoo-tag-options {max-height:260px;overflow:auto;margin:12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.odoo-tag-options label {display:flex;flex-direction:row;gap:9px;align-items:center;margin:0;padding:10px;background:var(--bg);border:1px solid var(--line);border-radius:7px;overflow-wrap:anywhere;cursor:pointer;}
.odoo-tag-options label[hidden] {display:none;}
.odoo-tag-options input {width:auto;flex:none;}
input[readonly] {background:var(--bg);color:var(--muted);}
@media(max-width:700px) {#device-map {height:calc(100dvh - 245px);min-height:340px;}#map .map-toolbar h1 {width:100%;}#map .map-toolbar label:first-of-type {flex:1;width:auto;}.odoo-tag-options {grid-template-columns:1fr;}.map-toolbar label {min-width:140px;}}

/* Standalone access page: the management shell is absent until authenticated. */
.auth-screen .topbar, .auth-screen .app-shell, .auth-screen .skip-link { display: none; }
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 18px; background: var(--bg); }
.login-page .login { margin: 0; width: 420px; max-width: 100%; padding: 40px 34px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 40px #1234220a; }
.login-page .login h1 { margin-top: 24px; }
.login-page .login input { font-size: 16px; }
.session-logout { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); white-space: nowrap; }
.session-logout:hover { background: var(--blue-soft); color: var(--blue); border-color: var(--blue); }
.session-logout svg { width: 19px; height: 19px; }
@media (max-width: 600px) { .login-page .login { padding: 30px 22px; } .top-right { gap: 8px; } }

.client-site-actions { display:flex; gap:8px; flex-wrap:wrap; }
#pending-authorizations { margin-bottom:20px; }
#pending-registered-title { font-size:18px; margin:20px 0 12px; }
#legacy-mode-status:empty { display:none; }

.client-root .client-site-actions { margin-left:auto; }
@media (max-width:700px) { .client-root .client-site-actions { margin-left:0; } }

.odoo-tag-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.odoo-tag-heading h3 {margin:0;flex:1;min-width:140px;}
.odoo-tag-heading button {position:static;flex:none;margin:0;}
.odoo-tag-help {margin:12px 0 0;line-height:1.6;}
.odoo-tag-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.odoo-tag-options input[type="checkbox"] {width:16px;height:16px;margin:0;}
.odoo-tag-options label:has(input:checked) {border-color:var(--blue);background:var(--blue-soft);}
#map:not([hidden]) {display:flex;flex-direction:column;height:calc(100dvh - 56px);min-height:430px;}
#map .map-toolbar, #map .map-footer {flex:none;}
#map #device-map {flex:1;height:auto;min-height:260px;}
/* Internal Odoo identities and assigned ticket owner. */
.person-profile{display:inline-flex;align-items:center;gap:9px;min-width:0}.person-profile>span:not(.person-avatar){display:flex;flex-direction:column;overflow-wrap:anywhere}.person-profile small{display:block;color:var(--muted);font-size:11px}.person-avatar{flex:none;width:32px;height:32px;border-radius:50%;object-fit:cover;background:#e8eee9}.person-initials{display:inline-flex;align-items:center;justify-content:center;color:#076129;font-weight:650;font-size:13px}.odoo-directory{margin-top:24px}.odoo-directory h2{margin:0;font-size:18px}.ticket-filters button small{display:block;font-size:11px;font-weight:400;margin-top:3px}.ticket-row-meta .person-profile{margin-left:auto}.ticket-row-meta time{white-space:nowrap}
@media(max-width:640px){.ticket-row-meta .person-profile{margin-left:0}.ticket-filters{align-items:stretch}.ticket-filters button{padding:10px}}

.brand-isotype { width:40px; height:40px; object-fit:contain; flex:none; }
.login-logo { display:block; width:min(100%,260px); height:auto; margin:0 auto 28px; }
.client-logo { width:48px; height:48px; object-fit:contain; background:#fff; border-radius:8px; }
.client-root-icon.has-logo { background:#fff; }
.client-root-icon .client-logo { width:100%; height:100%; }
#client-logo-current .client-logo { width:80px; height:80px; }
.form-disclosure summary,.customer-document-editor summary { cursor:pointer; font-weight:600; padding:16px 0; }
.form-disclosure[open] summary { margin-bottom:12px; }
.customer-document-editor summary { padding:20px; display:list-item; margin-left:20px; }
.hero > .client-logo { float:right; width:88px; height:88px; margin-left:20px; }

#clients { container-type:inline-size; }
@container (max-width:600px) { .client-root { flex-wrap:wrap; } .client-root .client-site-actions { margin-left:0; width:100%; } .client-site-grid { grid-template-columns:1fr; } }

.lifecycle-field { border: 1px solid var(--border, #dce4df); border-radius: 10px; padding: 16px; margin: 16px 0; min-width: 0; }
.lifecycle-field legend { font-weight: 600; padding: 0 6px; }
.lifecycle-field label { display: block; margin-bottom: 12px; }
.lifecycle-field small { display: block; }

/* Ticket owner filtering keeps native keyboard and mobile controls. */
.ticket-search-tools {display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;}
.ticket-search-tools .ticket-search-label {flex:1 1 280px;}
.ticket-owner-label {display:block;flex:0 1 280px;font-weight:650;min-width:180px;}
.ticket-owner-label select {display:block;width:100%;margin:7px 0 14px;}
@media(max-width:640px){.ticket-owner-label {flex:1 1 100%;}}
#user-odoo-profile {margin-bottom:16px;}

/* Classic resource history shares the portal palette and remains readable in the inspector. */
.resource-charts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.resource-chart {border:1px solid var(--line);border-radius:10px;padding:12px;min-width:0}
.resource-chart h4 {display:flex;justify-content:space-between;margin:0 0 8px;gap:8px}
.resource-chart h4 span {color:#076129;font-variant-numeric:tabular-nums;white-space:nowrap}
.resource-chart svg {width:100%;height:auto;overflow:visible}
.resource-chart svg text {font-size:16px;fill:#66756c}
.chart-axis {stroke:#dce5df}
.chart-series {stroke:#076129;fill:none;stroke-width:2;vector-effect:non-scaling-stroke}
.chart-point {fill:#076129}
.chart-threshold {stroke:#bd7334;stroke-dasharray:5 4;stroke-width:1;vector-effect:non-scaling-stroke}
.threshold-global-form {margin-top:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.threshold-global-form h3,.threshold-global-form p,.threshold-global-form button {grid-column:1/-1}
@media(max-width:700px){.resource-charts,.threshold-global-form{grid-template-columns:1fr}}
/* Authentication providers stay inside the existing standalone login. */
.microsoft-login { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:20px; text-decoration:none; }
.auth-settings-form { display:grid; gap:14px; margin:18px 0; max-width:640px; }
.auth-redirect { display:block; padding:12px; background:var(--panel-soft, #f4f7f5); overflow-wrap:anywhere; }
#auth-recovery-codes { padding:16px; line-height:1.8; user-select:all; }

.login-page { grid-template-columns:minmax(0,1fr); justify-items:center; }
.login-page .login, .login-page input { min-width:0; }

.entra-request-tools { display:flex; gap:16px; flex-wrap:wrap; align-items:end; padding:16px; }
.entra-request-tools label { flex:1; min-width:180px; }
#entra-requests-panel { margin-top:24px; }
#entra-requests-panel .error { padding:0 16px; }

/* Public customer access, alongside the internal manager sign-in. */
.login-access-panels {width:420px;max-width:100%;display:grid;gap:16px;}
.login-access-panels .login {width:100%;}
.login-customer-portal {padding:22px;border:1px solid #cddfd3;border-radius:10px;background:var(--blue-soft);text-align:left;}
.login-customer-portal h2 {margin:0;font-size:16px;color:var(--text);}
.login-customer-portal p {margin:8px 0 14px;font-size:14px;line-height:1.5;color:var(--muted);}
.login-customer-link {display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--blue);font-size:14px;font-weight:600;text-decoration:none;}
.login-customer-link:hover {text-decoration:underline;}
.login-customer-link svg {flex:none;}
.login-customer-link:focus-visible {outline:2px solid var(--blue);outline-offset:5px;border-radius:2px;}

/* Mobile uses the same records and controls in a vertical, touch-friendly layout. */
.mobile-menu-toggle, .mobile-device-order { display:none; }
@media (max-width:1023px) {
  :root { --rail:0px; }
  .topbar { padding:0 10px; gap:8px; }
  .mobile-menu-toggle { display:inline-flex; flex:none; width:44px; height:44px; }
  .brand { min-width:0; gap:6px; }
  .brand-isotype { width:28px; height:28px; }
  .brand-divider, .brand > span:last-child { display:none; }
  .top-right { min-width:0; margin-left:auto; gap:4px; }
  .session-account { min-width:0; max-width:105px; padding:6px; min-height:44px; }
  .session-logout { flex:none; min-height:44px; width:44px; padding:8px; }
  .session-logout > span:last-child { display:none; }
  .network-status { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
  #workspace { width:100%; margin-left:0; min-width:0; }
  .app-shell { min-width:0; }
  .view, #releases, #campaigns { padding:18px 12px; min-width:0; }
  .rail { display:none; top:var(--header); left:0; right:0; bottom:auto; width:100%; max-height:calc(100dvh - var(--header)); overflow-y:auto; padding:12px; border:0; border-bottom:1px solid var(--line); box-shadow:0 12px 25px #163b2526; z-index:50; }
  .mobile-nav-open .rail { display:flex; gap:12px; }
  .rail-main, .rail-bottom { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .rail button { min-width:0; min-height:52px; flex-direction:row; justify-content:flex-start; padding:12px; gap:10px; font-size:13px; white-space:normal; }
  .rail button.active::before { display:none; }
  .rail-footer { display:none; }
  .heading, .panel-top, .card-head, .operation-heading, .setting-line { flex-wrap:wrap; min-width:0; gap:12px; }
  .heading > div, .panel-top > div, .card-head > div { min-width:0; }
  .heading > .primary { font-size:13px; min-height:44px; }
  .heading h1 { font-size:22px; overflow-wrap:anywhere; }
  .heading p { font-size:13px; }
  .inventory-toolbar { gap:10px; }
  .search-box { flex:1 1 100%; width:100%; min-width:0; }
  .toolbar-actions { flex:1 1 100%; margin-left:0; justify-content:flex-end; flex-wrap:wrap; }
  .toolbar-actions button, .column-menu summary { min-height:44px; padding:10px; font-size:12px; }
  .state-tabs, .section-tabs, .inspector-tabs, .ticket-filters { flex-wrap:wrap; overflow:visible; gap:4px; }
  .state-tabs button { flex:1 1 110px; min-width:0; min-height:44px; font-size:12px; padding:9px 7px; white-space:normal; flex-wrap:wrap; }
  .state-tabs button span { flex:none; }
  .section-tabs button, .inspector-tabs button { flex:1 1 110px; min-width:0; min-height:44px; white-space:normal; }
  .filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filters select { width:100%; max-width:none; min-width:0; }
  .filters .text-button { grid-column:1/-1; margin-left:0; justify-self:end; }
  .mobile-device-order { display:flex; align-items:end; gap:10px; margin:0 0 16px; }
  .mobile-device-order label { display:grid; gap:5px; min-width:0; flex:1; font-weight:500; font-size:12px; }
  .mobile-device-order select { width:100%; }
  .mobile-device-order button { flex:none; font-size:12px; padding:10px; }
  .table-wrap, .table-scroll { overflow:visible; }
  table.responsive-table { display:block; min-width:0; width:100%; }
  .responsive-table > thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .responsive-table > tbody { display:block; width:100%; padding:10px; }
  .responsive-table > tbody > tr { display:block; min-width:0; margin-bottom:12px; border:1px solid var(--line); border-radius:8px; overflow-wrap:anywhere; background:#fff; }
  .responsive-table > tbody > tr:last-child { margin-bottom:0; }
  .responsive-table > tbody > tr > td { display:grid; grid-template-columns:minmax(85px,30%) minmax(0,1fr); align-items:start; gap:10px; width:100%; max-width:none; min-width:0; height:auto; padding:10px 12px; white-space:normal; overflow-wrap:anywhere; }
  .responsive-table td::before { content:attr(data-label); color:var(--muted); font-size:11px; font-weight:500; line-height:1.5; }
  .responsive-table td > * { min-width:0; max-width:100%; }
  .responsive-table td button { white-space:normal; }
  .responsive-table tr.table-message-row td { display:block; }
  .responsive-table tr.table-message-row td::before { display:none; }
  .device-table.responsive-table > thead { position:static; clip-path:none; width:auto; height:auto; overflow:visible; display:block; }
  .device-table thead tr { display:block; }
  .device-table thead th:not(.select-column) { display:none; }
  .device-table th.select-column { display:flex; align-items:center; gap:10px; min-width:0; width:100%; height:auto; padding:14px; }
  .device-table th.select-column::after { content:"Seleccionar página"; font-size:12px; }
  .device-table > tbody > tr { display:grid; grid-template-columns:42px minmax(0,1fr); }
  .device-table > tbody > tr > td { grid-column:1/-1; }
  .device-table > tbody > tr > td.select-column { grid-column:1; grid-row:1; display:flex; justify-content:center; align-items:start; padding:15px 0; border-bottom:0; }
  .device-table > tbody > tr > td[data-column="name"] { grid-column:2; grid-row:1; display:block; padding-left:0; border-bottom:0; }
  .device-table td.select-column::before, .device-table td[data-column="name"]::before { display:none; }
  .device-name { min-width:0; width:100%; max-width:none; white-space:normal; align-items:flex-start; min-height:44px; gap:8px; }
  .device-name strong, .device-name small { max-width:none; overflow:visible; white-space:normal; overflow-wrap:anywhere; }
  .device-mini { display:none !important; }
  .device-title { width:100%; }
  .bulk-bar { flex-wrap:wrap; }
  .bulk-bar button { min-width:0; max-width:100%; white-space:normal; }
  .pagination { flex-wrap:wrap; gap:8px; padding:12px; font-size:12px; }
  .pagination .spacer { display:none; }
  .client-root { padding:16px; gap:12px; }
  .client-root > div { min-width:0; }
  .client-site-grid { margin-left:0; padding-left:0; border-left:0; grid-template-columns:minmax(0,1fr); }
  .client-site::before { display:none; }
  .client-site-actions, .portal-record-actions { flex-wrap:wrap; }
  .client-device { white-space:normal; min-height:48px; }
  .client-device strong, .client-device small { overflow:visible; overflow-wrap:anywhere; }
  .metric-strip, .health-grid, .compact-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metric, .health-item { min-width:0; }
  .overview-grid { grid-template-columns:minmax(0,1fr); }
  .stack, .card, #overview-content { min-width:0; }
  .list-row { flex-wrap:wrap; padding:14px; }
  .list-row > div { min-width:0; flex:1 1 100%; }
  .list-row .text-button { white-space:normal; overflow-wrap:anywhere; overflow:visible; text-overflow:clip; }
  .meter-row > span { min-width:0; overflow-wrap:anywhere; }
  .inspector { position:fixed; top:var(--header); bottom:0; left:0; right:0; width:100%; max-width:none; height:calc(100vh - var(--header)); height:calc(100dvh - var(--header)); z-index:40; border-left:0; overscroll-behavior:contain; }
  body:has(.inspector:not([hidden])) { overflow-y:hidden; }
  .inspector-top { padding:10px 14px; font-size:11px; letter-spacing:0; gap:12px; }
  #detail-title { min-width:0; overflow-wrap:anywhere; }
  #close-inspector { min-width:44px; min-height:44px; }
  .inspector-tabs { padding:8px 12px; }
  .inspector-body { padding:16px 12px; min-width:0; }
  .inspector-body dl, .card-body dl, dialog dl { grid-template-columns:minmax(0,1fr); gap:5px; }
  .inspector-body dd, .card-body dd, dialog dd { margin:0 0 12px; }
  .legacy-mode-grid, .form-grid, .form-grid.three, .auth-settings-form, .threshold-global-form { grid-template-columns:minmax(0,1fr); }
  .legacy-history { max-height:400px; overflow-y:auto; }
  .legacy-history table { min-width:0; }
  .legacy-actions, .legacy-inline-form, .secret-actions, .dialog-actions { flex-wrap:wrap; }
  .legacy-actions button, .dialog-actions button { min-width:0; white-space:normal; }
  .person-profile { min-width:0; white-space:normal; }
  .badge, .topology-state { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
  .ticket-row-heading, .ticket-row-meta { flex-wrap:wrap; min-width:0; }
  .ticket-row-meta time { white-space:normal; }
  .ticket-filters button { flex:1 1 120px; min-width:0; white-space:normal; }
  .ticket-owner-label { min-width:0; width:100%; }
  .ticket-pager { flex-wrap:wrap; }
  #map .map-toolbar { flex-wrap:wrap; gap:8px; }
  #map .map-toolbar h1 { width:100%; }
  #map .map-toolbar label { min-width:0; flex:1 1 100%; width:100%; }
  #map .map-toolbar input, #map .map-toolbar select { width:100%; }
  #device-map { height:calc(100dvh - 230px); min-height:300px; width:100%; }
  #device-map .leaflet-popup-content { width:calc(100vw - 88px) !important; max-width:300px; margin:16px; }
  dialog { width:calc(100% - 20px); max-width:calc(100% - 20px); max-height:calc(100dvh - 24px); padding:18px 14px; overflow-y:auto; }
  dialog form, fieldset, label, .form-grid { min-width:0; }
  fieldset { margin-left:0; margin-right:0; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size:16px; min-width:0; min-height:44px; }
  input[type="checkbox"], input[type="radio"] { width:20px; height:20px; }
  button, summary, .text-button, .quiet, .secondary, .icon-button, .panel-top .secondary { min-height:44px; }
  .card-body, .portal-record, .operation-card, .setting-line, label, .notice, .release-token-warning { overflow-wrap:anywhere; }
  pre { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; max-width:100%; }
  .login-page { padding:20px 12px; }
  .login-access-panels { width:100%; min-width:0; }
  .login-access-panels .login { max-width:none; padding:26px 20px; }
  .login-customer-portal { padding:20px; }
}
@media (max-width:360px) {
  .session-account { max-width:75px; }
  .filters { grid-template-columns:minmax(0,1fr); }
  .mobile-device-order { flex-wrap:wrap; }
  .mobile-device-order label { flex-basis:100%; }
  .responsive-table > tbody > tr > td { grid-template-columns:minmax(0,1fr); gap:4px; }
}
/* Ticket conversation, shared by the internal manager and customer portal. */
.ticket-conversation{box-sizing:border-box;width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #d9e4df;border-radius:16px;color:#24352c;background:#f8faf9;box-shadow:0 24px 80px #0003;overflow:auto}
.ticket-conversation::backdrop{background:#15251dc2}.conversation-header{position:sticky;top:0;z-index:1;background:#fff;border-bottom:1px solid #d9e4df;display:flex;align-items:flex-start;gap:16px;padding:20px 24px}.conversation-header h2{font-size:20px;line-height:1.4;margin:0;flex:1;min-width:0;overflow-wrap:anywhere}.conversation-header button{flex:none}.conversation-content{padding:24px;overflow-wrap:anywhere;min-width:0}.conversation-meta{display:flex;gap:10px 20px;flex-wrap:wrap;font-size:13px;color:#65766d;margin-bottom:16px}.conversation-stage,.conversation-note{background:#e2eee7;color:#076129;padding:3px 8px;border-radius:6px}.conversation-description{padding:16px 20px;background:#fff;border:1px solid #d9e4df;border-radius:12px;margin-top:20px}.conversation-content h3{font-size:16px;margin:20px 0 12px}.conversation-messages{list-style:none;padding:0;display:flex;flex-direction:column;gap:16px}.conversation-message{border:1px solid #d9e4df;border-radius:12px;background:#fff;padding:18px 20px;min-width:0}.conversation-message.internal-note{background:#fffaec;border-color:#e8d9ac}.conversation-message header{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;margin-bottom:12px;font-size:13px}.conversation-message time{color:#65766d}.conversation-body{line-height:1.6;overflow-wrap:anywhere}.conversation-body img,.conversation-file img{max-width:100%;max-height:360px;width:auto;height:auto;object-fit:contain;border-radius:6px;display:block}.conversation-body pre,.conversation-body code{white-space:pre-wrap;overflow-wrap:anywhere}.conversation-body table{table-layout:fixed;width:100%;border-collapse:collapse}.conversation-body td,.conversation-body th{overflow-wrap:anywhere;padding:4px;border:1px solid #d9e4df}.conversation-body blockquote{margin:12px 0;padding-left:12px;border-left:3px solid #c6d7ce;color:#65766d}.conversation-files{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}.conversation-file{display:flex;flex-direction:column;gap:8px;max-width:100%;padding:10px;border:1px solid #d9e4df;border-radius:8px;overflow-wrap:anywhere;font-size:13px}.conversation-file img{max-height:160px}.conversation-file small{color:#65766d}.ticket-detail-link{text-align:left;border:0;background:none;color:#076129;font:inherit;font-weight:600;cursor:pointer;padding:0;overflow-wrap:anywhere;min-width:0}.ticket-detail-link:hover{text-decoration:underline}.ticket-detail-link:focus-visible{outline:2px solid #076129;outline-offset:4px}
@media(max-width:600px){.ticket-conversation{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.conversation-header{padding:16px;gap:8px}.conversation-header h2{font-size:17px}.conversation-content{padding:16px}.conversation-message,.conversation-description{padding:14px}.conversation-header button{padding:8px 10px}}

.ticket-conversation button{font:inherit;cursor:pointer;border:1px solid #cedbd3;border-radius:6px;background:#fff;color:#076129;padding:8px 14px}.ticket-conversation button:disabled{opacity:.5;cursor:default}.ticket-conversation button:focus-visible{outline:2px solid #076129;outline-offset:3px}
/* Conversation: ASDT on the right, customer on the left, newest first. */
.conversation-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:24px 0 8px}.conversation-heading h3{margin:0}.conversation-order{font-size:12px;color:#67746f}.conversation-legend{display:flex;gap:18px;align-items:center;font-size:12px;color:#57685e;margin:12px 0 20px}.conversation-key{display:inline-flex;align-items:center;gap:7px}.conversation-key::before{content:"";width:10px;height:10px;border-radius:50%;background:#e6e8eb}.conversation-key.support::before{background:#076129}
.conversation-messages{gap:22px;align-items:stretch;margin:22px 0}.conversation-message{display:flex;flex-direction:column;align-self:flex-start;width:fit-content;max-width:82%;box-sizing:border-box;padding:0;border:0;background:none;border-radius:0;min-width:0}.conversation-message.side-support{align-self:flex-end}.conversation-message header{gap:5px 10px;align-items:baseline;font-size:11px;color:#6b756f;margin:0 8px 6px;line-height:1.5}.conversation-message.side-support header{justify-content:flex-end}.conversation-message header strong{font-weight:500;overflow-wrap:anywhere}.conversation-party{font-weight:700}.conversation-message header time{font-size:10px;color:#78817d}.conversation-bubble{position:relative;border-radius:20px 20px 20px 5px;background:#e8eaed;color:#202824;padding:12px 16px;min-width:0;box-sizing:border-box;box-shadow:0 1px 2px #16271d08}.side-support .conversation-bubble{border-radius:20px 20px 5px 20px;background:#076129;color:#fff}.conversation-bubble .conversation-body{font-size:14px;line-height:1.55}.conversation-bubble .conversation-body>:first-child{margin-top:0}.conversation-bubble .conversation-body>:last-child{margin-bottom:0}.side-support .conversation-bubble a{color:#fff;text-decoration:underline}.side-support .conversation-body blockquote{color:#d6eadd;border-color:#81ad90}.side-support .conversation-file{border-color:#ffffff52;background:#ffffff14;color:#fff}.side-support .conversation-file small{color:#d6eadd}.conversation-file img{border-radius:12px}.conversation-body img{border-radius:12px}.conversation-message.side-unknown{align-self:center;max-width:88%}.side-unknown .conversation-bubble{background:#fff;border:1px dashed #b5c4ba;border-radius:16px}.conversation-message.internal-note{align-self:center;max-width:90%;border:0;background:none}.internal-note .conversation-bubble{background:#fff5d9;color:#604d24;border:1px solid #ead7a3;border-radius:14px}.internal-note .conversation-party{color:#806222}.conversation-message.internal-note header{justify-content:center}.conversation-empty{font-size:13px}.conversation-messages+.error:empty{display:none}
@media(max-width:600px){.conversation-message{max-width:92%}.conversation-message.side-unknown,.conversation-message.internal-note{max-width:96%}.conversation-bubble{padding:11px 13px}.conversation-message header{gap:3px 8px;margin-left:4px;margin-right:4px}.conversation-message header time{flex-basis:100%}.conversation-message.side-support header time{text-align:right}.conversation-message.internal-note header time{text-align:center}.conversation-order{font-size:11px}.conversation-legend{margin-bottom:14px}}

.ticket-conversation .conversation-description{padding:12px 16px;margin-top:18px}.conversation-description summary{font-weight:600;font-size:13px;cursor:pointer}.conversation-description[open] summary{margin-bottom:12px}

/* Restricted nginx management, with wrapping controls on narrow screens. */
.nginx-card { min-width: 0; }
.nginx-form { display: grid; gap: 16px; margin: 20px 0; }
.nginx-form label { display: grid; gap: 6px; }
.nginx-form input, .nginx-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.nginx-actions, .nginx-service { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.nginx-card small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.nginx-card details { margin-top: 18px; }
.nginx-card summary { cursor: pointer; font-weight: 600; }
.nginx-card pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow-y: auto; }
.nginx-cert-list { padding: 0; list-style: none; }
.nginx-cert-list li { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.nginx-preview { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
@media (max-width: 600px) { .nginx-actions button { width: 100%; white-space: normal; } }

/* Sendesgate connector: explicit mapping sections and responsive controls. */
#sg-token-form .check-label{display:flex;flex-direction:row;align-items:flex-start;gap:8px;text-align:left}
#sg-token-form input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;min-height:0;margin:2px 0 0;padding:0}
#sendesgate-settings .actions{display:flex;flex-wrap:wrap;gap:8px}
#sg-mapping form{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
#sg-mapping select{max-width:100%;min-width:0}

/* OTA availability uses responsive rows instead of a second wide inventory table. */
.update-availability-counts{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.update-availability-counts>span{font-size:13px}
.update-device-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:12px;padding:14px 0;border-bottom:1px solid var(--border,#e3e8ef);align-items:start}
.update-device-row small{display:block;color:var(--muted,#65758b);margin-top:5px;overflow-wrap:anywhere}
.update-device-row>div{min-width:0;overflow-wrap:anywhere}
.update-device-row>div:last-child{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:230px}
@media(max-width:640px){.update-device-row{grid-template-columns:22px minmax(0,1fr)}.update-device-row>div:last-child{grid-column:2;justify-content:flex-start;max-width:none}}

/* Shared device history: bounded pages, readable events and mobile controls. */
.history-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:16px 0; }
.history-filters label { flex:1 1 180px; min-width:0; margin:0; }
.history-filters input,.history-filters select { width:100%; }
.history-event { padding:16px 0; border-bottom:1px solid var(--line,#e1e6ec); overflow-wrap:anywhere; }
.history-event p { margin:7px 0; }
.history-event small { color:var(--muted,#697b88); }
.history-event pre { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; }
/* Release publishing uses the same cards, controls and responsive grid. */
.publication-record{padding:18px 0;border-bottom:1px solid var(--border,#dfe6e2);overflow-wrap:anywhere}
.publication-record:last-child{border-bottom:0}
.publication-record h3{margin:0 0 12px}
.publication-jobs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#publishing-candidate input[readonly]{background:#f5f7f6}
#publishing-candidate details{margin-top:20px}

.publication-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
#publishing > .panel + .panel { margin-top:18px; }
.project-config-dialog { max-width:760px; width:calc(100% - 32px); max-height:90dvh; overflow-y:auto; padding:24px; }
.project-config-dialog fieldset { padding:16px; border:1px solid var(--line); border-radius:10px; margin:16px 0; min-width:0; }
.project-config-dialog fieldset legend { font-weight:700; padding:0 5px; }
.project-config-dialog .auth-settings-form { max-width:none; }
@media(max-width:640px){.project-config-dialog { width:calc(100% - 16px); padding:14px; }.project-config-dialog fieldset{padding:12px;}}
.project-config-dialog .dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.project-config-dialog .dialog-heading h2 { margin:0; }
.project-config-dialog .dialog-heading button { flex:0 0 auto; width:auto; }
.project-config-dialog label:has(input[type="checkbox"]) { display:flex; align-items:center; gap:8px; }
.project-config-dialog input[type="checkbox"] { width:auto; margin:0; }

.device-reactivation-entry { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.device-reactivation-entry>div { min-width:0; flex:1 1 240px; }
.device-reactivation-entry p { margin:5px 0 0; }
#device-reactivate-dialog { max-width:620px; }
#device-reactivate-subject,#device-reactivate-confirm-value { overflow-wrap:anywhere; }
#device-reactivate-summary p { margin:8px 0; }
#device-reactivate-classic-label:not([hidden]) { display:flex; flex-direction:row; align-items:flex-start; gap:10px; }
#device-reactivate-classic-label input { width:auto; flex:0 0 auto; margin-top:2px; }
@media(max-width:600px){ .device-reactivation-entry>button { width:100%; } #device-reactivate-dialog .dialog-actions>button { flex:1; } }

.preparation-dialog { max-width: 780px; }
.preparation-dialog code { overflow-wrap: anywhere; }
.preparation-file-list { max-height: 45vh; overflow-y: auto; }
.preparation-file-list section, .preparation-history-row { border-top: 1px solid var(--line); padding: 10px 0; margin: 0; }
.preparation-file-list h3 { font-size: .95rem; overflow-wrap: anywhere; margin: 0 0 .25rem; }
.preparation-file-list section > p { margin: 0 0 .4rem; }
.preparation-change p, .preparation-change pre { margin: .35rem 0; overflow-wrap: anywhere; }
.preparation-change pre { white-space: pre-wrap; font: inherit; padding: 6px 9px; }
.preparation-history-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.preparation-history-row p { width: 100%; margin: 0; }
.preparation-field { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 12px; }
.preparation-field label { min-width: 0; }
@media (max-width: 680px) {
  .preparation-field { grid-template-columns: minmax(0, 1fr); }
  .preparation-dialog .dialog-actions { flex-wrap: wrap; }
}
