@charset "UTF-8";

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #192b3a;
  background: #f2f5f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --navy: #142b3d;
  --navy-2: #1d3a50;
  --navy-3: #294a62;
  --ink: #192b3a;
  --muted: #76828c;
  --faint: #a7b0b7;
  --line: #e2e7ea;
  --paper: #ffffff;
  --canvas: #f2f5f7;
  --orange: #e47738;
  --orange-dark: #c95f25;
  --orange-pale: #fff2e9;
  --green: #318367;
  --green-pale: #e8f5ef;
  --red: #ba4b45;
  --red-pale: #fbefed;
  --blue: #427b9d;
  --blue-pale: #eaf3f8;
  --shadow: 0 12px 34px rgba(24, 44, 60, .08);
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; }

body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }

button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(228, 119, 56, .42);
  outline-offset: 2px;
}

[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;
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 246px; padding: 25px 16px 16px; color: #dce6ec; background: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: #fff; font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: 0; }
.brand-mark { position: relative; display: inline-grid; place-items: center; width: 27px; height: 27px; border: 1.5px solid #f3a16f; border-radius: 8px 8px 8px 3px; transform: rotate(-4deg); }
.brand-mark::before, .brand-mark::after, .brand-mark span { position: absolute; display: block; content: ""; border: 1.5px solid #f3a16f; border-radius: 50%; }
.brand-mark::before { width: 8px; height: 8px; top: 4px; left: 6px; }
.brand-mark::after { width: 8px; height: 8px; top: 4px; right: 5px; }
.brand-mark span { width: 11px; height: 6px; bottom: 4px; left: 7px; border-radius: 2px 2px 8px 8px; border-top-color: transparent; }
.workspace-label { margin: 46px 12px 13px; color: #8fa2af; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.main-nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; padding: 0 12px; border: 0; border-radius: 6px; color: #b8c7d0; background: transparent; font-size: 13px; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.is-active { color: #fff; background: #24445a; font-weight: 600; }
.nav-item.is-active::before { position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #ef955e; content: ""; }
.nav-icon { position: relative; display: inline-block; flex: 0 0 17px; width: 17px; height: 17px; color: currentColor; opacity: .85; }
.nav-overview { border: 1.4px solid currentColor; border-radius: 4px; }
.nav-overview::before, .nav-overview::after { position: absolute; content: ""; background: currentColor; }
.nav-overview::before { top: 5px; left: 0; width: 100%; height: 1px; }
.nav-overview::after { top: 0; left: 6px; width: 1px; height: 100%; }
.nav-clients::before, .nav-clients::after { position: absolute; top: 1px; width: 7px; height: 7px; border: 1.3px solid currentColor; border-radius: 50%; content: ""; }
.nav-clients::before { left: 0; }.nav-clients::after { right: 0; }
.nav-clients { border-bottom: 1.3px solid currentColor; border-radius: 0 0 8px 8px; }
.nav-mappings { border: 1.3px solid currentColor; border-radius: 3px; }
.nav-mappings::before { position: absolute; top: 5px; left: 3px; width: 8px; height: 5px; border: 1px solid currentColor; border-right: 0; border-radius: 2px 0 0 2px; content: ""; }
.nav-mappings::after { position: absolute; top: 5px; right: 2px; width: 3px; height: 5px; border: 1px solid currentColor; border-left: 0; border-radius: 0 2px 2px 0; content: ""; }
.nav-events { border: 1.3px solid currentColor; border-radius: 50%; }
.nav-events::before { position: absolute; top: 3px; left: 7px; width: 4px; height: 6px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; }
.nav-guide { border: 1.3px solid currentColor; border-radius: 50% 50% 4px 4px; }
.nav-guide::before { position: absolute; top: 7px; left: 2px; width: 10px; height: 1px; background: currentColor; content: ""; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.sidebar-server { display: flex; align-items: center; gap: 10px; padding: 13px 10px; border-top: 1px solid rgba(227,237,243,.13); border-bottom: 1px solid rgba(227,237,243,.13); }
.sidebar-server-icon { position: relative; width: 17px; height: 17px; border: 1.2px solid #90a8b6; border-radius: 4px; }
.sidebar-server-icon::before, .sidebar-server-icon::after { position: absolute; left: 3px; right: 3px; height: 2px; border-top: 1px solid #90a8b6; content: ""; }
.sidebar-server-icon::before { top: 4px; }.sidebar-server-icon::after { top: 9px; }
.sidebar-server-copy { display: grid; gap: 4px; flex: 1; min-width: 0; font-size: 11px; color: #91a4b0; }
.sidebar-server-copy strong { overflow: hidden; color: #dce6ec; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.service-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #9aa9b1; }
.service-dot.is-live { background: #63c39b; box-shadow: 0 0 0 3px rgba(99,195,155,.13); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 18px 5px 5px; }
.avatar { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: #fff; background: #33576c; font-size: 12px; font-weight: 700; }
.sidebar-user-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.sidebar-user-copy strong { overflow: hidden; color: #eff4f6; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy span { color: #91a4b0; font-size: 10px; }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 5px; color: inherit; background: transparent; cursor: pointer; }
.icon-button:hover { border-color: var(--line); background: #f7f9fa; }
.sidebar-logout { color: #9eb0bb; }.sidebar-logout:hover { border-color: rgba(255,255,255,.12); color: #fff; background: rgba(255,255,255,.08); }
.sidebar-password { color: #9eb0bb; }.sidebar-password:hover { border-color: rgba(255,255,255,.12); color: #fff; background: rgba(255,255,255,.08); }
.password-icon { position: relative; display: inline-block; width: 15px; height: 15px; }
.password-icon::before { position: absolute; top: 1px; left: 1px; width: 7px; height: 7px; border: 1.3px solid currentColor; border-radius: 50%; content: ""; }
.password-icon::after { position: absolute; top: 8px; left: 7px; width: 8px; height: 1.3px; border-radius: 2px; background: currentColor; box-shadow: 3px 2px 0 -0.1px currentColor; transform: rotate(-45deg); transform-origin: left center; content: ""; }
.logout-icon { position: relative; width: 16px; height: 14px; border: 1.4px solid currentColor; border-right: 0; border-radius: 3px 0 0 3px; }
.logout-icon::before { position: absolute; top: 5px; right: -5px; width: 9px; height: 1.4px; background: currentColor; content: ""; }
.logout-icon::after { position: absolute; top: 2px; right: -4px; width: 6px; height: 6px; border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor; transform: rotate(45deg); content: ""; }

.main-column { grid-column: 2; display: flex; min-width: 0; min-height: 100vh; flex-direction: column; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 40px; border-bottom: 1px solid #e6eaed; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #87929a; font-size: 12px; }
.breadcrumb strong { color: #2a3c49; font-weight: 600; }
.crumb-separator { color: #bdc5ca; }
.topbar-right { display: flex; align-items: center; gap: 14px; color: #5b6973; font-size: 11px; }
.version-label { color: #849099; }
.topbar-divider { width: 1px; height: 16px; background: #e0e5e8; }
.topbar-user { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-menu, .mobile-logout, .mobile-password { display: none; }
.menu-icon { position: relative; display: block; width: 16px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.menu-icon::after { position: absolute; top: 4px; left: 0; width: 100%; height: 1.5px; background: currentColor; content: ""; }
.content { width: min(100%, 1520px); flex: 1; margin: 0 auto; padding: 35px 40px 30px; }
.content:focus { outline: none; }
.page-footer { display: flex; justify-content: space-between; padding: 13px 40px 20px; color: #a1abb2; font-size: 10px; }
.page-footer span:first-child { font-weight: 700; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 4px 0 7px; color: #1b2d3b; font-size: 27px; line-height: 1.25; font-weight: 650; }
.page-heading p:not(.eyebrow) { margin: 0; color: #7b8790; font-size: 13px; line-height: 1.6; }
.eyebrow { margin: 0; color: #99a4aa; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 0 14px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button-primary { border-color: var(--orange); color: white; background: var(--orange); box-shadow: 0 2px 4px rgba(201,95,37,.12); }
.button-primary:hover:not(:disabled) { border-color: var(--orange-dark); background: var(--orange-dark); }
.button-secondary { border-color: #d9e0e4; color: #344b5b; background: white; }
.button-secondary:hover:not(:disabled) { border-color: #b8c5cc; background: #f8fafb; }
.button-danger { border-color: var(--red); color: white; background: var(--red); }
.button-danger:hover:not(:disabled) { border-color: #a53f39; background: #a53f39; }
.button-danger-quiet { border-color: transparent; color: var(--red); background: transparent; }
.button-danger-quiet:hover:not(:disabled) { border-color: #f1d8d5; background: var(--red-pale); }
.button-small { min-height: 29px; padding: 0 9px; font-size: 10px; font-weight: 600; }
.button-wide { width: 100%; min-height: 45px; margin-top: 8px; font-size: 13px; }
.button-arrow { margin-left: auto; font-size: 17px; line-height: 1; font-weight: 400; }
.plus-icon { position: relative; display: inline-block; width: 12px; height: 12px; }
.plus-icon::before, .plus-icon::after { position: absolute; top: 5px; left: 1px; width: 10px; height: 1.5px; border-radius: 2px; background: currentColor; content: ""; }
.plus-icon::after { transform: rotate(90deg); }
.refresh-icon { position: relative; display: inline-block; width: 13px; height: 13px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.refresh-icon::after { position: absolute; top: -2px; right: -1px; width: 4px; height: 4px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(10deg); content: ""; }

.server-strip { display: flex; align-items: center; gap: 14px; min-height: 67px; padding: 11px 17px; border: 1px solid #dfe6e9; border-radius: 6px; background: #fff; }
.server-strip-mark { position: relative; display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 6px; background: #eaf2f5; }
.server-strip-mark::before { width: 14px; height: 13px; border: 1.4px solid #4c7183; border-radius: 3px; content: ""; }
.server-strip-mark::after { position: absolute; top: 12px; width: 8px; height: 1px; background: #4c7183; box-shadow: 0 4px #4c7183; content: ""; }
.server-strip-copy { display: grid; gap: 5px; min-width: 0; }
.server-strip-copy span { color: #87939a; font-size: 10px; }
.server-strip-copy strong { overflow: hidden; max-width: 300px; color: #2c4352; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.local-access-warning { color: #aa683f; font-size: 9px; font-style: normal; }
.server-strip-copy .local-access-warning { display: block; }
.server-strip-separator { width: 1px; height: 30px; margin: 0 5px; background: #e5e9eb; }
.server-strip-spacer { flex: 1; }
.server-strip-state { display: flex; align-items: center; gap: 8px; color: #4c7b68; font-size: 10px; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.metric { min-width: 0; min-height: 125px; padding: 15px 17px 13px; border: 1px solid #e2e7e9; border-radius: 6px; background: white; }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: #7b8790; font-size: 11px; }
.metric-glyph { position: relative; display: inline-block; width: 19px; height: 19px; border-radius: 5px; background: #f4f6f7; }
.glyph-device { background: #eef4f6; }
.glyph-device::before { position: absolute; inset: 3px 5px; border: 1px solid #6d8d9c; border-radius: 2px; content: ""; }
.glyph-device::after { position: absolute; bottom: 3px; left: 7px; width: 5px; height: 1px; background: #6d8d9c; content: ""; }
.glyph-connection { background: #f2f0e9; }
.glyph-connection::before { position: absolute; top: 4px; left: 4px; width: 5px; height: 5px; border: 1px solid #8f8760; border-radius: 50%; content: ""; }
.glyph-connection::after { position: absolute; right: 3px; bottom: 4px; width: 7px; height: 1px; background: #8f8760; transform: rotate(-35deg); content: ""; }
.glyph-transfer { background: #eef4f0; }
.glyph-transfer::before, .glyph-transfer::after { position: absolute; left: 4px; width: 10px; height: 1px; background: #5e8b72; content: ""; }
.glyph-transfer::before { top: 6px; }.glyph-transfer::after { top: 11px; left: 6px; width: 8px; }
.glyph-port { background: #fff1e8; }
.glyph-port::before { position: absolute; inset: 4px; border: 1px solid #d98251; border-radius: 2px; content: ""; }
.glyph-port::after { position: absolute; top: 7px; left: 7px; width: 5px; height: 1px; background: #d98251; box-shadow: 0 3px #d98251; content: ""; }
.metric-value { display: block; overflow: hidden; margin-top: 14px; color: #1e3443; font-size: 26px; line-height: 1.05; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.metric-value small { color: #8d989f; font-size: 13px; font-weight: 500; }
.metric-value.metric-bytes { font-size: 23px; }
.metric-note { display: block; overflow: hidden; margin-top: 9px; color: #98a2a8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.overview-lower { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.section-block { min-width: 0; border-top: 1px solid #dce3e6; }
.overview-list-block { border-top: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 11px; }
.section-heading h2 { margin: 0; color: #2b3e4c; font-size: 14px; font-weight: 650; }
.section-heading p { margin: 4px 0 0; color: #929da4; font-size: 10px; }
.section-caption { color: #95a0a6; font-size: 10px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; border: 0; color: #627984; background: transparent; font-size: 10px; cursor: pointer; }
.text-button:hover { color: var(--orange-dark); }
.text-button span { font-size: 15px; }
.compact-list { overflow: hidden; border: 1px solid #e1e6e8; border-radius: 6px; background: white; }
.compact-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-bottom: 1px solid #edf0f1; }
.compact-row:last-child { border-bottom: 0; }
.client-symbol, .port-symbol { position: relative; display: inline-grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 5px; background: #eff4f6; }
.client-symbol::before { position: absolute; top: 5px; width: 7px; height: 7px; border: 1.2px solid #678391; border-radius: 50%; content: ""; }
.client-symbol::after { position: absolute; bottom: 5px; width: 13px; height: 6px; border: 1.2px solid #678391; border-radius: 7px 7px 3px 3px; content: ""; }
.client-symbol-small { flex-basis: 23px; width: 23px; height: 23px; }
.client-symbol-small::before { top: 4px; width: 5px; height: 5px; }.client-symbol-small::after { bottom: 4px; width: 11px; height: 5px; }
.port-symbol { background: #fff1e8; }
.port-symbol::before { position: absolute; inset: 6px; border: 1px solid #d98251; border-radius: 2px; content: ""; }
.port-symbol::after { position: absolute; top: 10px; left: 10px; width: 7px; height: 1px; background: #d98251; box-shadow: 0 3px #d98251; content: ""; }
.compact-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.compact-copy strong { overflow: hidden; color: #334957; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.compact-copy > span { overflow: hidden; color: #929da4; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.compact-row-end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: max-content; }
.compact-meta { color: #8a969d; font-size: 9px; }
.compact-endpoint { color: #517184; font-size: 9px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; width: max-content; max-width: 100%; padding: 4px 7px; border-radius: 3px; font-size: 9px; line-height: 1; white-space: nowrap; }
.status-badge i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-online { color: #348064; background: var(--green-pale); }
.status-offline { color: #7a858c; background: #eef1f2; }
.status-revoked { color: #a34c48; background: #f9edeb; }
.recent-errors-block { margin-top: 23px; padding-top: 17px; }
.error-list { border: 1px solid #e4e8e9; border-radius: 5px; background: white; }
.error-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #edf0f1; }
.error-row:last-child { border-bottom: 0; }
.error-indicator { flex: 0 0 6px; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #c46f61; }
.error-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.error-copy strong { color: #465967; font-size: 10px; }
.error-copy span { overflow: hidden; color: #8b969d; font-size: 10px; text-overflow: ellipsis; }
.error-row time { flex: 0 0 auto; color: #a2abb0; font-size: 9px; }
.quiet-empty { display: flex; align-items: center; gap: 8px; min-height: 41px; padding: 0 12px; border: 1px solid #e4e8e9; border-radius: 5px; color: #849189; background: #fbfcfc; font-size: 10px; }
.quiet-check { position: relative; width: 13px; height: 13px; border: 1px solid #9ac5b1; border-radius: 50%; }
.quiet-check::after { position: absolute; top: 2px; left: 3px; width: 5px; height: 3px; border-bottom: 1px solid #4b9270; border-left: 1px solid #4b9270; transform: rotate(-45deg); content: ""; }

.page-summary { display: flex; align-items: center; gap: 10px; margin: -10px 0 15px; color: #839098; font-size: 10px; }
.summary-separator { width: 3px; height: 3px; border-radius: 50%; background: #bbc4c9; }
.data-section { overflow: hidden; border: 1px solid #e1e6e8; border-radius: 6px; background: white; }
.table-scroll { width: 100%; overflow-x: auto; scrollbar-color: #c4ced3 transparent; scrollbar-width: thin; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { height: 39px; padding: 0 12px; border-bottom: 1px solid #e8edef; color: #8a969d; background: #fafbfc; font-size: 9px; font-weight: 600; white-space: nowrap; }
.data-table td { min-height: 59px; padding: 10px 12px; border-bottom: 1px solid #edf0f1; color: #53636e; font-size: 10px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdfd; }
.clients-table { min-width: 840px; }
.clients-table td { height: 60px; }
.table-primary { display: flex; align-items: center; gap: 10px; }
.table-primary > div { display: grid; gap: 4px; }
.table-primary strong { color: #334957; font-size: 11px; font-weight: 600; }
.subtle-id { color: #9aa4aa; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.numeric-cell { color: #526570; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-cell { color: #79868e; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: max-content; }
.button-small.button-secondary { color: #536a78; }
.button-small.button-secondary:hover:not(:disabled) { color: #264a60; }
.mappings-table { min-width: 1120px; }
.mappings-table th, .mappings-table td { padding-right: 10px; padding-left: 10px; }
.mapping-name-cell { display: grid; gap: 4px; min-width: 130px; }
.mapping-name-cell > strong { color: #344957; font-size: 10px; font-weight: 600; }
.mapping-name-cell > span:not(.mapping-error) { color: #a1aab0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.mapping-error { max-width: 170px; overflow: hidden; color: #a7685f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.client-cell { display: flex; align-items: center; gap: 6px; min-width: max-content; color: #64747e; font-size: 9px; }
.endpoint-cell, .target-cell { color: #4c6d7d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; white-space: nowrap; }
.endpoint-link { display: inline-block; color: #317a6a; text-decoration: underline; text-decoration-color: #c5ddd5; text-underline-offset: 2px; }
.endpoint-link:hover { color: #205e51; text-decoration-color: currentColor; }
.target-cell { color: #687680; }
.row-delete { flex-basis: 27px; width: 27px; height: 27px; color: #a56b63; font-size: 18px; }
.row-delete:hover { border-color: #efd8d5; color: var(--red); background: var(--red-pale); }
.mapping-toolbar { display: flex; align-items: center; gap: 9px; margin: -8px 0 13px; }
.search-field { position: relative; display: flex; align-items: center; width: min(350px, 100%); height: 35px; border: 1px solid #dfe5e8; border-radius: 5px; background: white; }
.search-field:focus-within { border-color: #92a9b6; box-shadow: 0 0 0 2px rgba(80,117,138,.1); }
.search-icon { position: relative; flex: 0 0 13px; width: 13px; height: 13px; margin-left: 11px; border: 1.3px solid #87969f; border-radius: 50%; }
.search-icon::after { position: absolute; right: -4px; bottom: -2px; width: 5px; height: 1px; background: #87969f; transform: rotate(45deg); content: ""; }
.search-field input { width: 100%; min-width: 0; height: 100%; padding: 0 9px; border: 0; outline: 0; color: #334955; background: transparent; font-size: 10px; }
.search-field input::placeholder { color: #a3adb2; }
.select-filter select { min-width: 120px; height: 35px; padding: 0 28px 0 10px; border: 1px solid #dfe5e8; border-radius: 5px; color: #586a75; background: #fff; font-size: 10px; }
.toolbar-count { margin-left: auto; color: #929da4; font-size: 10px; white-space: nowrap; }
.section-footnote { margin: 12px 0 0; color: #9ba5aa; font-size: 9px; line-height: 1.6; }
.events-section { margin-top: 2px; }
.events-table { min-width: 660px; }
.events-table td { height: 47px; }
.event-action { display: inline-block; padding: 4px 7px; border-radius: 3px; color: #536d7a; background: #eef3f5; font-size: 9px; white-space: nowrap; }
.event-detail { max-width: 680px; color: #6e7c85 !important; line-height: 1.5; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 250px; padding: 24px; border: 1px dashed #d4dde1; border-radius: 6px; text-align: center; background: rgba(255,255,255,.65); }
.empty-state .button { margin-top: 5px; }
.empty-state h3 { margin: 14px 0 5px; color: #334957; font-size: 14px; font-weight: 650; }
.empty-state p { max-width: 390px; margin: 0 0 15px; color: #89969e; font-size: 11px; line-height: 1.6; }
.empty-illustration { position: relative; display: inline-block; width: 42px; height: 42px; border: 1px solid #dbe4e7; border-radius: 9px; background: #f4f8f8; }
.empty-devices::before { position: absolute; inset: 8px 12px; border: 1.3px solid #7895a2; border-radius: 4px; content: ""; }
.empty-devices::after { position: absolute; bottom: 8px; left: 15px; width: 10px; height: 1px; background: #7895a2; content: ""; }
.empty-mappings::before { position: absolute; top: 10px; left: 8px; width: 22px; height: 20px; border: 1.3px solid #dc956a; border-radius: 4px; content: ""; }
.empty-mappings::after { position: absolute; top: 16px; left: 13px; width: 13px; height: 1px; background: #dc956a; box-shadow: 0 5px #dc956a; content: ""; }
.empty-search::before { position: absolute; top: 9px; left: 10px; width: 14px; height: 14px; border: 1.4px solid #7e929d; border-radius: 50%; content: ""; }
.empty-search::after { position: absolute; top: 24px; left: 24px; width: 9px; height: 1px; background: #7e929d; transform: rotate(45deg); content: ""; }
.empty-events::before { position: absolute; inset: 9px 11px; border: 1.3px solid #7e929d; border-radius: 4px; content: ""; }
.empty-events::after { position: absolute; top: 16px; left: 16px; width: 10px; height: 1px; background: #7e929d; box-shadow: 0 5px #7e929d; content: ""; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 250px; color: #849198; font-size: 11px; }
.spinner { display: inline-block; width: 17px; height: 17px; border: 2px solid #d8e1e5; border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.global-notice { position: sticky; z-index: 8; top: 62px; padding: 10px 40px; border-bottom: 1px solid #ecd0c9; color: #93483e; background: #fff3f0; font-size: 11px; }
.notice-info { border-color: #d1e1e9; color: #3d687d; background: #f0f7fa; }
.toast-root { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.toast { padding: 12px 14px; border: 1px solid #d8e8df; border-radius: 5px; color: #356f55; background: white; box-shadow: var(--shadow); font-size: 11px; line-height: 1.5; animation: toast-in .16s ease-out; }
.toast-error { border-color: #efd5d1; color: #a14b43; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.dialog { position: fixed; inset: 50% auto auto 50%; width: min(420px, calc(100vw - 32px)); max-height: min(90vh, 800px); overflow: auto; padding: 28px; border: 1px solid #e2e7e9; border-radius: 8px; color: var(--ink); background: white; box-shadow: 0 25px 80px rgba(20,43,61,.22); transform: translate(-50%, -50%); }
.dialog::backdrop { background: rgba(16,33,46,.46); backdrop-filter: blur(2px); }
.dialog h2 { margin: 7px 0 8px; color: #203645; font-size: 19px; line-height: 1.35; font-weight: 650; }
.dialog-description { margin: 0 0 19px; color: #7c8991; font-size: 11px; line-height: 1.7; }
.dialog-dismiss { position: absolute; top: 10px; right: 10px; }
.dialog-x { color: #89959c; font-size: 22px; font-weight: 300; }
.dialog-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 17px; border-radius: 50%; background: #fbefed; }
.danger-icon span { position: relative; width: 14px; height: 14px; border: 1.5px solid #bb5b52; border-radius: 50%; }
.danger-icon span::before { position: absolute; top: 2px; left: 5px; width: 1px; height: 5px; background: #bb5b52; content: ""; }
.danger-icon span::after { position: absolute; bottom: 2px; left: 5px; width: 1.5px; height: 1.5px; border-radius: 50%; background: #bb5b52; content: ""; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.dialog-actions .button { min-width: 82px; }
.profile-dialog { width: min(485px, calc(100vw - 32px)); padding: 30px; }
.setup-primary-actions { justify-content: space-between; }
.profile-advanced { margin-top: 14px; }
.profile-advanced .field-label { margin-top: 15px; }
.advanced-options { margin-top: 14px; border-top: 1px solid #e8edef; color: #506571; }
.advanced-options > summary { position: relative; padding: 12px 21px 10px 0; color: #657985; font-size: 10px; font-weight: 600; cursor: pointer; list-style: none; }
.advanced-options > summary::-webkit-details-marker { display: none; }
.advanced-options > summary::after { position: absolute; top: 11px; right: 3px; color: #87969d; content: "+"; font-size: 15px; font-weight: 400; }
.advanced-options[open] > summary::after { content: "−"; }
.advanced-options > :not(summary) { margin-top: 9px; }
.advanced-options > .field-grid { margin-top: 0; }
.advanced-options .field-hint { margin-bottom: 10px; }
.gateway-admin-details { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(128,87,61,.16); }
.gateway-admin-details summary { cursor: pointer; font-weight: 600; }
.gateway-admin-details p { margin: 7px 0 0; }
.profile-success-mark { position: relative; display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 18px; border-radius: 50%; background: #eaf5ef; }
.profile-success-mark::after { width: 13px; height: 7px; border-bottom: 2px solid #368164; border-left: 2px solid #368164; transform: translateY(-2px) rotate(-45deg); content: ""; }
.profile-dialog h2 { margin-bottom: 6px; }
.profile-download-row { display: flex; align-items: center; gap: 11px; min-height: 59px; padding: 9px 10px; border: 1px solid #e2e8ea; border-radius: 5px; background: #fbfcfc; }
.file-mark { display: grid; place-items: center; width: 34px; height: 38px; border: 1px solid #e7a27b; border-radius: 3px; color: #b45f35; background: #fff5ef; font-size: 8px; font-weight: 700; }
.profile-file-copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.profile-file-copy strong { overflow: hidden; color: #3d5361; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-file-copy span { color: #9aa4aa; font-size: 9px; }
.profile-redownload { border-color: #e2e8ea; color: #617887; background: white; }
.download-icon { position: relative; width: 13px; height: 13px; border-bottom: 1px solid currentColor; }
.download-icon::before { position: absolute; top: 0; left: 6px; height: 8px; border-left: 1.3px solid currentColor; content: ""; }
.download-icon::after { position: absolute; top: 4px; left: 3px; width: 6px; height: 6px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: rotate(45deg); content: ""; }
.field-label { display: block; margin: 15px 0 6px; color: #435966; font-size: 10px; font-weight: 600; }
.copy-command-row { display: flex; align-items: stretch; gap: 6px; }
.copy-command-row code { display: flex; align-items: center; min-width: 0; flex: 1; overflow-x: auto; padding: 0 10px; border: 1px solid #e0e6e8; border-radius: 4px; color: #405c6b; background: #f8fafb; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; white-space: nowrap; }
.copy-button { min-height: 33px; padding: 0 9px; font-size: 10px; }
.copy-icon { position: relative; width: 12px; height: 13px; border: 1.2px solid currentColor; border-radius: 2px; }
.copy-icon::after { position: absolute; top: -4px; left: 3px; width: 7px; height: 9px; border: 1px solid currentColor; border-radius: 2px; background: inherit; content: ""; }
.inline-message { min-height: 17px; margin-top: 8px; color: #688977; font-size: 9px; }
.form-dialog { width: min(470px, calc(100vw - 32px)); padding: 29px; }
.form-dialog > .eyebrow { margin-top: 4px; }
.form-dialog h2 { margin-bottom: 6px; }
.form-dialog input:not([type="checkbox"]):not([type="hidden"]), .auth-form input, .field select { display: block; width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #dce3e6; border-radius: 4px; color: #2f4654; background: white; font-size: 11px; }
.form-dialog input::placeholder, .auth-form input::placeholder { color: #adb6bb; }
.form-dialog input:focus, .auth-form input:focus, .field select:focus { border-color: #91aab7; outline: 0; box-shadow: 0 0 0 3px rgba(76,117,139,.11); }
.field-hint { display: block; margin-top: 6px; color: #96a1a7; font-size: 9px; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.field-wide { grid-column: 1 / -1; }
.advanced-grid { margin-top: 2px; }
.field { min-width: 0; }
.field select { padding-right: 28px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-top: 13px; padding: 9px 0; border-top: 1px solid #edf0f1; border-bottom: 1px solid #edf0f1; cursor: pointer; }
.switch-row > span:first-child { display: grid; gap: 4px; }
.switch-row strong { color: #455b68; font-size: 10px; font-weight: 600; }
.switch-row small { color: #929da3; font-size: 9px; }
.switch-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-control { position: relative; width: 34px; height: 19px; border-radius: 12px; background: #c7d0d4; transition: background .15s ease; }
.switch-control::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 2px rgba(0,0,0,.17); transition: transform .15s ease; content: ""; }
.switch-row input:checked + .switch-control { background: var(--green); }
.switch-row input:checked + .switch-control::after { transform: translateX(15px); }
.switch-row input:focus-visible + .switch-control { outline: 3px solid rgba(228,119,56,.42); outline-offset: 2px; }
.form-error { margin-top: 12px; padding: 9px 10px; border: 1px solid #efd9d5; border-radius: 4px; color: #9c4d44; background: #fff5f2; font-size: 10px; line-height: 1.5; }
.form-success { margin-top: 14px; padding: 9px 10px; border: 1px solid #d8e9df; border-radius: 4px; color: #397457; background: #f0f8f3; font-size: 10px; line-height: 1.5; }
.form-dialog textarea { display: block; width: 100%; min-height: 64px; resize: vertical; padding: 9px 11px; border: 1px solid #dce3e6; border-radius: 4px; color: #2f4654; background: white; font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.form-dialog textarea:focus, .backup-form input:focus { border-color: #91aab7; outline: 0; box-shadow: 0 0 0 3px rgba(76,117,139,.11); }
.policy-field { margin-top: 2px; }
.policy-note { margin-top: 13px; padding: 10px 11px; border: 1px solid #d5e4ea; border-left: 3px solid #7196a7; border-radius: 4px; color: #476574; background: #f1f7f9; font-size: 10px; line-height: 1.6; }
.policy-note-warning { border-color: #ecd8c9; border-left-color: #cf8757; color: #80573d; background: #fff8f2; }
.policy-note-success { border-color: #d2e7dc; border-left-color: #4b9876; color: #3f705b; background: #f2f9f5; }
.mapping-type { display: block; margin-top: 4px; color: #8b989f; font-size: 8px; }
.mapping-expiry { display: block; margin-top: 5px; }
.enrollment-code-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 8px 10px; border: 1px solid #e2e8ea; border-radius: 5px; background: #f8fafb; }
.mapping-dialog { max-height: min(92vh, 900px); }
.mapping-dialog .dialog-description { margin-bottom: 13px; }
.mapping-dialog .field { margin-bottom: 9px; }
.mapping-dialog .advanced-options { margin-top: 15px; }
.mapping-dialog .switch-row { margin-top: 14px; }
.enrollment-code-row code { overflow-wrap: anywhere; color: #29485b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; font-weight: 700; }
.enrollment-expiry { margin: 8px 0 2px; color: #8b969d; font-size: 9px; }
.device-assignment { min-width: 0; margin: 17px 0 0; padding: 0; border: 0; }
.device-assignment legend { margin-bottom: 6px; color: #435966; font-size: 10px; font-weight: 600; }
.assignment-option { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 8px; border-top: 1px solid #edf0f1; color: #53636e; font-size: 10px; cursor: pointer; }
.assignment-option input { accent-color: var(--green); }
.assignment-option small { margin-left: auto; color: #929da3; font-size: 9px; }
.optional-label { color: #98a2a8; font-size: 9px; font-weight: 400; }
.users-table { min-width: 760px; }
.users-table td:first-child { display: table-cell; }
.users-table td:first-child strong, .users-table td:first-child .subtle-id { display: block; }
.users-table .row-actions { justify-content: flex-start; }
.user-section, .backup-section, .history-section { margin-top: 21px; }
.backup-form { max-width: 660px; padding: 0 0 16px; }
.backup-input-row { display: flex; align-items: center; gap: 9px; }
.backup-form input { min-width: 0; min-height: 39px; flex: 1; padding: 0 11px; border: 1px solid #dce3e6; border-radius: 4px; color: #2f4654; background: white; font-size: 11px; }
.backup-form .button { flex: 0 0 auto; }
.history-table { min-width: 820px; }
.history-table td { height: 47px; }
.history-section .section-heading, .user-section .section-heading, .backup-section .section-heading { margin-bottom: 9px; }
.backup-section .section-heading { padding-bottom: 12px; border-bottom: 1px solid #edf0f1; }
.backup-section .section-heading p { max-width: 680px; }

.auth-shell { display: grid; grid-template-columns: minmax(400px, .92fr) minmax(450px, 1.08fr); min-height: 100vh; background: white; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; width: min(100%, 480px); min-height: 100vh; margin: 0 auto; padding: 45px 56px; }
.brand-auth { color: var(--navy); }
.brand-auth .brand-mark { border-color: var(--orange); }
.brand-auth .brand-mark::before, .brand-auth .brand-mark::after, .brand-auth .brand-mark span { border-color: var(--orange); }
.brand-auth .brand-mark span { border-top-color: transparent; }
.auth-copy { margin-top: 68px; }
.auth-copy .eyebrow { color: #b17451; }
.auth-copy h1 { max-width: 350px; margin: 11px 0 9px; color: #203746; font-size: 26px; line-height: 1.45; font-weight: 650; }
.auth-copy > p:last-child { margin: 0; color: #788790; font-size: 12px; line-height: 1.7; }
.auth-form-root { margin-top: 25px; }
.auth-form { display: grid; }
.auth-form .field-label { margin-top: 14px; }
.auth-form input { height: 43px; }
.auth-form .button-wide { margin-top: 23px; }
.auth-form .form-error { margin-top: 14px; }
.auth-footnote { margin: 31px 0 0; color: #a3adb2; font-size: 9px; }
.auth-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 34px 45px; overflow: hidden; color: #d7e2e7; background: #173346; }
.auth-aside::before { position: absolute; right: -100px; bottom: 70px; width: 470px; height: 470px; border: 1px solid rgba(212,229,237,.07); border-radius: 50%; content: ""; }
.auth-aside::after { position: absolute; right: -20px; bottom: 150px; width: 300px; height: 300px; border: 1px solid rgba(212,229,237,.055); border-radius: 50%; content: ""; }
.auth-aside-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: #a9bec8; font-size: 10px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #64c39b; box-shadow: 0 0 0 4px rgba(100,195,155,.12); }
.auth-aside-copy { position: relative; z-index: 1; width: min(100%, 490px); margin: auto; padding: 55px 0 80px; }
.auth-aside-copy .eyebrow { color: #e7a77f; }
.auth-aside-copy h2 { margin: 13px 0 12px; color: #f3f6f7; font-size: 30px; line-height: 1.48; font-weight: 600; }
.auth-aside-copy > p:last-child { max-width: 390px; margin: 0; color: #a7bbc5; font-size: 12px; line-height: 1.8; }
.route-visual { display: flex; align-items: center; width: min(100%, 370px); margin-bottom: 59px; }
.route-node { display: grid; justify-items: center; gap: 9px; color: #abc1cb; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.route-node i { display: block; width: 37px; height: 37px; border: 1px solid #5c8293; border-radius: 8px; background: rgba(214,233,240,.035); }
.route-node-public i { position: relative; border-color: #d18c61; }
.route-node-public i::before { position: absolute; inset: 9px; border: 1px solid #d18c61; border-radius: 50%; content: ""; }
.route-node-local i { position: relative; }
.route-node-local i::before, .route-node-local i::after { position: absolute; left: 8px; right: 8px; height: 4px; border: 1px solid #81a0ae; border-radius: 2px; content: ""; }
.route-node-local i::before { top: 9px; }.route-node-local i::after { bottom: 8px; }
.route-line { position: relative; flex: 1; height: 1px; margin: 0 10px 17px; background: #567483; }
.route-line::before, .route-line::after { position: absolute; top: -3px; width: 6px; height: 6px; border: 1px solid #e1925f; border-radius: 50%; background: #173346; content: ""; }
.route-line::before { left: 20%; }.route-line::after { right: 15%; }
.route-line span { position: absolute; top: -2px; left: 18%; width: 38%; height: 5px; border-radius: 4px; background: #e1925f; opacity: .55; }
.aside-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #7893a0; font-size: 8px; letter-spacing: .7px; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .82fr); align-items: start; gap: 25px; }
.guide-main { border-top: 1px solid #dce3e6; }
.guide-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 21px 0 22px; border-bottom: 1px solid #dce3e6; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #edd6c8; border-radius: 5px; color: #bd7348; background: #fff7f2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.guide-step-content { min-width: 0; }
.guide-step-content h2, .guide-side-block h2 { margin: 2px 0 7px; color: #334957; font-size: 14px; font-weight: 650; }
.guide-step-content p, .guide-side-block p { margin: 0 0 10px; color: #7f8d95; font-size: 10px; line-height: 1.75; }
.guide-step-content p code, .guide-side-block p code { color: #4d6978; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.code-block { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 40px; margin: 9px 0; padding: 4px 5px 4px 11px; border: 1px solid #dfe6e8; border-radius: 4px; color: #d8e4e9; background: #203b4d; }
.code-block code { overflow-x: auto; color: #e5edf0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; line-height: 1.6; white-space: nowrap; scrollbar-width: thin; }
.code-copy { flex: 0 0 29px; width: 29px; height: 29px; color: #c5d4db; }
.code-copy:hover { border-color: rgba(255,255,255,.18); color: white; background: rgba(255,255,255,.08); }
.guide-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.guide-facts > div { display: grid; gap: 5px; padding: 9px 10px; border: 1px solid #e1e7e9; border-radius: 4px; background: white; }
.guide-facts span { color: #98a2a8; font-size: 8px; }
.guide-facts strong { overflow: hidden; color: #546a77; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.guide-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px !important; padding: 9px 10px; border-left: 2px solid #d99a73; color: #7e827f !important; background: #fff8f3; }
.note-mark { display: grid; place-items: center; flex: 0 0 13px; width: 13px; height: 13px; border: 1px solid #cc906c; border-radius: 50%; color: #b47856; font-family: Georgia, serif; font-size: 9px; font-weight: 700; }
.guide-subtle { color: #9ba5aa !important; font-size: 9px !important; }
.example-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 12px; border: 1px solid #e2e8e9; border-radius: 5px; background: white; }
.example-route > div { display: grid; gap: 6px; min-width: 0; }
.example-route > div span { color: #98a2a8; font-size: 8px; }
.example-route code { overflow-wrap: anywhere; color: #47697a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.route-arrow { color: #d47b4a; font-size: 17px; }
.guide-side { display: grid; gap: 13px; }
.guide-side-block { padding: 16px; border: 1px solid #dfe6e8; border-radius: 5px; background: white; }
.guide-side-icon { position: relative; display: block; width: 23px; height: 23px; margin-bottom: 13px; border-radius: 5px; background: #eff4f6; }
.shield-icon::before { position: absolute; top: 4px; left: 6px; width: 10px; height: 13px; border: 1px solid #678696; border-radius: 5px 5px 7px 7px; transform: rotate(0deg); content: ""; }
.limits-icon { background: #f7f2e9; }
.limits-icon::before { position: absolute; top: 5px; left: 5px; width: 13px; height: 12px; border: 1px solid #a58a53; border-radius: 3px; content: ""; }
.limits-icon::after { position: absolute; top: 9px; left: 8px; width: 7px; height: 1px; background: #a58a53; box-shadow: 0 3px #a58a53; content: ""; }
.code-block-small { min-height: 50px; align-items: flex-start; }
.code-block-small code { white-space: normal; overflow-wrap: anywhere; }
.guide-limits dl { display: grid; gap: 0; margin: 13px 0 0; }
.guide-limits dl div { display: flex; justify-content: space-between; gap: 9px; padding: 9px 0; border-top: 1px solid #edf0f1; font-size: 9px; }
.guide-limits dt { color: #8a969d; }
.guide-limits dd { max-width: 65%; margin: 0; overflow-wrap: anywhere; color: #536b78; text-align: right; }

.sidebar-backdrop { display: none; }

@media (max-width: 1120px) {
  .content { padding-right: 27px; padding-left: 27px; }
  .topbar { padding-right: 27px; padding-left: 27px; }
  .page-footer { padding-right: 27px; padding-left: 27px; }
  .metric-grid { gap: 9px; }
  .metric { padding-right: 12px; padding-left: 12px; }
  .compact-meta { display: none; }
  .guide-layout { grid-template-columns: minmax(0, 1.35fr) minmax(220px, .85fr); gap: 17px; }
}

@media (max-width: 850px) {
  .app-shell { display: block; }
  .sidebar { z-index: 40; transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); box-shadow: 12px 0 35px rgba(14,33,47,.22); }
  .sidebar-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(16,33,46,.38); }
  .app-shell.sidebar-open .sidebar-backdrop { display: block; }
  .main-column { min-height: 100vh; }
  .mobile-menu { display: inline-grid; flex: 0 0 34px; margin-right: 12px; color: #526773; }
  .topbar { justify-content: flex-start; height: 58px; padding: 0 22px; }
  .breadcrumb { flex: 1; }
  .mobile-logout { display: inline-grid; color: #697c87; }
  .mobile-password { display: inline-grid; color: #697c87; }
  .topbar-right { gap: 10px; }
  .content { padding-top: 29px; }
  .global-notice { top: 58px; padding-right: 27px; padding-left: 27px; }
}

@media (max-width: 680px) {
  .content { padding: 23px 17px 25px; }
  .topbar { padding: 0 16px; }
  .topbar-right { gap: 5px; }
  .topbar-user, .topbar-divider { display: none; }
  .version-label { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-footer { padding: 12px 17px 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p:not(.eyebrow) { max-width: 420px; font-size: 11px; }
  .overview-heading { flex-direction: row; align-items: flex-end; }
  .overview-heading .heading-actions { align-self: flex-end; }
  .overview-heading .heading-actions .button-secondary { display: none; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .overview-heading .heading-actions { width: auto; }
  .overview-heading .heading-actions .button-primary { min-width: 42px; width: 42px; padding: 0; overflow: hidden; font-size: 0; }
  .overview-heading .heading-actions .plus-icon { flex: 0 0 12px; }
  .server-strip { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px 11px; padding: 11px; }
  .server-strip-mark { grid-row: span 2; }
  .server-strip-copy { min-width: 0; }
  .server-strip-copy strong { max-width: 100%; font-size: 10px; }
  .server-strip-copy:nth-of-type(2) { grid-column: 2; }
  .server-strip-separator { display: none; }
  .server-strip-spacer { display: none; }
  .server-strip-state { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 0; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
  .metric { min-height: 115px; padding: 12px; }
  .metric-value { margin-top: 11px; font-size: 23px; }
  .metric-value.metric-bytes { font-size: 20px; }
  .metric-note { font-size: 9px; }
  .overview-lower { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 21px; }
  .overview-list-block { border-top: 1px solid #dce3e6; padding-top: 14px; }
  .compact-row { padding: 9px; gap: 8px; }
  .compact-row-end { gap: 6px; }
  .compact-endpoint { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .recent-errors-block { margin-top: 20px; }
  .section-caption { max-width: 118px; text-align: right; line-height: 1.4; }
  .error-row { flex-wrap: wrap; }
  .error-row time { width: 100%; margin-left: 16px; }
  .mapping-toolbar { align-items: stretch; flex-wrap: wrap; margin-top: -5px; }
  .search-field { width: 100%; }
  .select-filter { flex: 1; }
  .select-filter select { width: 100%; }
  .toolbar-count { align-self: center; }
  .page-summary { margin-top: -8px; }
  .empty-state { min-height: 220px; padding-right: 17px; padding-left: 17px; }
  .global-notice { padding: 9px 17px; font-size: 10px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-side { grid-template-columns: minmax(0, 1fr); }
  .guide-step { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .guide-facts { grid-template-columns: minmax(0, 1fr); }
  .guide-facts > div { display: flex; justify-content: space-between; }
  .guide-facts strong { max-width: 65%; }
  .example-route { gap: 5px; padding: 9px; }
  .example-route code { font-size: 8px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-panel { width: min(100%, 480px); min-height: 100vh; padding: 34px 25px; }
  .auth-copy { margin-top: 48px; }
  .auth-copy h1 { font-size: 24px; }
  .auth-aside { display: none; }
  .dialog { padding: 24px 20px; }
  .profile-dialog { padding: 25px 20px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mapping-dialog { max-height: 92vh; }
  .dialog-actions { margin-top: 15px; }
  .copy-command-row code { font-size: 8px; }
  .backup-input-row { align-items: stretch; flex-direction: column; }
  .backup-form .button { min-height: 39px; }
  .enrollment-code-row code { font-size: 14px; }
}

@media (max-width: 390px) {
  .content { padding-right: 13px; padding-left: 13px; }
  .topbar { padding-right: 12px; padding-left: 12px; }
  .overview-heading .page-heading p { max-width: 210px; }
  .server-strip-state { padding-left: 3px; }
  .status-badge { padding: 4px 5px; font-size: 8px; }
  .compact-row-end { min-width: 0; }
  .compact-endpoint { max-width: 95px; font-size: 8px; }
  .compact-copy strong { font-size: 10px; }
  .metric { padding: 10px; }
  .metric-note { font-size: 8px; }
  .page-footer { padding-right: 13px; padding-left: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
