:root {
  color-scheme: light;
  --ink: #202722;
  --muted: #687269;
  --line: #e0e5df;
  --soft: #f4f6f3;
  --surface: #fff;
  --green: #bbee85;
  --green-dark: #3d652d;
  --accent: #b9ed83;
  --side: 234px;
  font:
    15px/1.45 'Segoe UI',
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
}
.catalog-toolbar {padding:16px;margin-bottom:16px;display:grid;gap:12px}
.catalog-type {margin-bottom:12px;padding:0 18px 12px}
.catalog-type>summary,.catalog-branch>summary {cursor:pointer;padding:16px 0;font-weight:600;list-style-position:inside}
.catalog-type summary small {float:right;color:var(--muted);font-weight:400}
.catalog-type summary span {display:inline-flex;gap:8px;align-items:center}
.catalog-branch {margin-left:24px;border-top:1px solid var(--line);padding-left:12px}
.catalog-branch-actions {display:flex;justify-content:flex-end;gap:8px;margin-bottom:8px}
.catalog-branch .catalog-row {padding:12px 8px}
.visit-components {display:grid;gap:12px;margin:16px 0}
.visit-component {border:1px solid var(--line);border-radius:10px;padding:16px}
.visit-form>.field,.visit-form [data-details]>.field {margin-bottom:16px}
.visit-form [data-pool] {display:grid;gap:12px;margin-bottom:20px}
.visit-form [data-pool]>.btn {justify-self:start}
.visit-component strong {display:block;margin-bottom:12px}
.visit-component .form-grid {margin-bottom:12px}
@media(max-width:600px){.catalog-branch{margin-left:8px;padding-left:8px}.catalog-row{flex-wrap:wrap}.catalog-toolbar .row-actions{flex-wrap:wrap}.catalog-type{padding:0 12px 10px}}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.16;
}
h1 {
  font-size: clamp(28px, 2.7vw, 40px);
  letter-spacing: -1.6px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.65px;
}
h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.28px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #739f49;
  outline-offset: 2px;
}
button {
  border: 0;
}
button,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
select,
input[type='checkbox'] {
  accent-color: #487335;
}
.ico {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
.mono,
code {
  font-family: Consolas, 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}
.muted,
small {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  z-index: 15;
  inset: 0 auto 0 0;
  width: var(--side);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
}
.brand-row {
  height: 79px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.brand img {
  flex: none;
}
.brand strong {
  font-size: 23px;
  font-weight: 760;
  letter-spacing: 1.05px;
  display: block;
}
.brand small {
  font-size: 11px;
  display: block;
  margin-top: 5px;
  letter-spacing: 0.08px;
}
.nav-group {
  padding: 25px 14px 0;
}
.nav-group + .nav-group {
  margin-top: 15px;
  padding-top: 17px;
}
.nav-caption {
  padding: 0 13px 10px;
  text-transform: uppercase;
  text-align: left;
  color: #778077;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 1.04px;
}
.nav-link {
  min-height: 41px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  margin: 3px 0;
  border-radius: 7px;
  color: #546055;
  font-size: 14px;
  font-weight: 500;
}
.nav-link:hover,
.option-row:hover {
  background: #f3f6f1;
}
.nav-link.current {
  background: #e9f5db;
  color: #31472a;
  font-weight: 620;
}
.sidebar-foot {
  margin: auto 16px 17px;
  padding: 14px 5px 2px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
}
.sidebar-foot strong {
  font-size: 12px;
  display: block;
  font-weight: 600;
}
.sidebar-foot small {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.sidebar-foot i,
.hero-kicker i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #8cc55d;
}
.local-symbol,
.heading-icon,
.device-icon,
.empty-icon,
.metric-symbol,
.auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.local-symbol {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7f4;
}
.workspace {
  margin-left: var(--side);
  min-width: 0;
}
.topbar {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(24px, 3vw, 46px);
}
.crumb,
.top-actions,
.scope,
.top-divider,
.section-title {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 10px;
  color: #72796f;
  font-size: 12px;
}
.crumb b {
  font-weight: 600;
  color: #354034;
}
.top-actions {
  margin-left: auto;
  gap: 17px;
}
.scope {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  min-height: 34px;
  max-width: min(380px, 36vw);
}
.scope > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scope:hover {
  background: var(--soft);
}
.top-divider {
  height: 22px;
  width: 1px;
  background: var(--line);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5ecdc;
  color: #405339;
  font-weight: 650;
  font-size: 12px;
  display: inline-grid;
  place-items: center;
}
.avatar.large {
  width: 46px;
  height: 46px;
  font-size: 17px;
}
.profile,
.profile-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-meta {
  margin: 22px 0;
  color: var(--muted);
}
.profile p {
  color: var(--muted);
  margin-top: 4px;
}
.profile h3 {
  margin: 0;
}
.logout {
  width: 100%;
}
.option-list {
  display: grid;
  gap: 3px;
}
.option-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: white;
  text-align: left;
  border-radius: 6px;
  width: 100%;
}
.option-row > span {
  flex: 1;
}
.option-row .ico:last-child {
  color: var(--green-dark);
}
main {
  max-width: 1720px;
  margin: 0 auto;
  padding: clamp(25px, 2.65vw, 43px) clamp(24px, 3vw, 46px) 42px;
  outline: 0;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.page-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}
.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 590;
  text-align: center;
}
.btn:hover,
.icon-btn:hover {
  background: #f0f3ed;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #23311c;
}
.btn.primary:hover {
  background: #abe473;
  border-color: #abe473;
}
.btn.secondary {
  background: #fff;
  border-color: #d9dfd7;
}
.btn.secondary:hover {
  background: #f4f7f1;
}
.btn.ghost,
.btn.text-link {
  background: transparent;
  border-color: transparent;
}
.btn.text-link {
  font-size: 12px;
}
.btn.ghost:hover,
.btn.text-link:hover {
  background: #f0f4eb;
}
.icon-btn {
  border: 0;
  background: transparent;
  min-width: 34px;
  min-height: 34px;
  flex: none;
}
.btn.danger {
  color: #9d4136;
  border-color: #e9b5af;
}
.row-actions,
.form-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.form-actions {
  justify-content: flex-end;
  margin-top: 18px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 19px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  gap: 10px;
}
.heading-icon {
  color: #515f53;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar .search {
  flex: 1;
  min-width: 160px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #72806e;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
}
.search:focus-within {
  border-color: #91b56c;
}
.search input:focus-visible {
  outline: none;
}
.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
  min-width: 0;
}
.field small {
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid .wide,
.form-grid .full {
  grid-column: 1/-1;
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
  border: 1px solid #d7dfd5;
  border-radius: 7px;
  background: #fff;
  padding: 9px 11px;
  color: var(--ink);
  max-width: 100%;
  min-height: 39px;
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: #899087;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f3f5f2;
  color: #778075;
}
.search input:not([type='checkbox']) {
  border: 0;
  padding: 8px 0;
}
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox-line input {
  margin: 4px 0 0;
}
.checkbox-line b,
.checkbox-line small {
  display: block;
}
.checkbox-line b {
  font-weight: 600;
}
.checkbox-line small {
  margin-top: 3px;
  line-height: 1.4;
}
.form-error {
  padding: 10px 12px;
  border-radius: 7px;
  color: #a03f35;
  background: #fbebe8;
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 17px 15px;
  min-height: 107px;
}
.metric:hover {
  border-color: #b9caae;
  background: #fdfefc;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #606c5f;
  font-weight: 500;
}
.metric-symbol {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: #f0f3ee;
  color: #566651;
}
.metric strong {
  line-height: 1.06;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 630;
  letter-spacing: -1.4px;
}
.overview-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.scanner-card {
  background: #202c26;
  color: #f9fcf7;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  min-width: 0;
  min-height: 230px;
  display: flex;
  align-items: center;
}
.scan-visual {
  position: absolute;
  z-index: -1;
  right: -1%;
  inset-block: 6px 3px;
  width: 48%;
  background: url(/equipment.svg) center / contain no-repeat;
}
.scanner-copy {
  padding: 23px clamp(16px, 2.1vw, 32px);
  position: relative;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ccedac;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.hero-kicker i {
  width: 6px;
  height: 6px;
  background: #bbee85;
}
.scanner-copy h2 {
  margin: 13px 0 7px;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -1.15px;
}
.scanner-copy p {
  color: #c0cdc3;
  font-size: 13px;
  line-height: 1.5;
}
.scanner-copy .btn {
  margin-top: 18px;
  min-height: 34px;
  font-size: 12px;
  padding: 7px 10px;
}
.status-panel {
  padding: 22px 20px;
}
.status-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.status-title > .ico {
  color: #768176;
}
.segments {
  display: flex;
  height: 10px;
  border-radius: 4px;
  overflow: hidden;
  gap: 3px;
  margin: 20px 0 12px;
  background: #eef1eb;
}
.status-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 5px;
}
.status-key button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  padding: 3px 0;
  min-height: 25px;
  text-align: left;
  font-size: 11px;
  line-height: 1.3;
  min-width: 0;
}
.status-key button:hover span {
  text-decoration: underline;
}
.status-key b {
  font-size: 12px;
  font-weight: 650;
  margin-left: auto;
}
.status-key i,
.badge i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.tone-green,
.badge.green i {
  background: #85ba64;
}
.tone-red,
.badge.red i {
  background: #df938d;
}
.tone-amber,
.badge.amber i {
  background: #e8bd71;
}
.tone-violet,
.badge.violet i {
  background: #b7a3cd;
}
.tone-gray,
.badge.gray i {
  background: #a4afa6;
}
.tone-slate,
.badge.slate i {
  background: #71847c;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.table-wrap th {
  font-weight: 500;
  color: #747d73;
  background: #f9faf8;
  font-size: 11px;
  white-space: nowrap;
}
.table-wrap th,
.table-wrap td {
  padding: 11px 16px;
  border-bottom: 1px solid #e9ede7;
}
.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}
.recent {
  overflow: hidden;
}
.recent .panel-head {
  min-height: 59px;
}
.recent .table-wrap td:first-child,
.recent .table-wrap th:first-child {
  padding-left: 19px;
}
.recent tr[data-route] {
  cursor: pointer;
}
.recent tr[data-route]:hover {
  background: #fafcf8;
}
.device {
  display: flex;
  gap: 11px;
  align-items: center;
}
.device b {
  display: block;
  font-weight: 600;
  font-size: 13px;
}
.device small,
.location-cell small {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}
.device small {
  font-family: Consolas, monospace;
  color: #707a70;
}
.device-icon {
  height: 35px;
  width: 35px;
  border-radius: 7px;
  background: #f3f5f1;
  border: 1px solid #e5e9e2;
  color: #59675a;
}
.recent .mono {
  font-size: 12px;
  white-space: nowrap;
}
.location-cell {
  font-size: 12px;
}
.location-cell small {
  max-width: 205px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.row-chevron {
  color: #99a194;
  width: 16px;
  padding-left: 0 !important;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.25;
  max-width: 100%;
  background: #edf0ec;
  color: #566056;
}
.badge i {
  width: 6px;
  height: 6px;
}
.badge.green {
  background: #eaf4e3;
  color: #426d34;
}
.badge.red {
  background: #faeae7;
  color: #964c44;
}
.badge.amber {
  background: #faf1dc;
  color: #866328;
}
.badge.violet {
  background: #f0ecf6;
  color: #76608e;
}
.badge.slate {
  background: #e9eeea;
  color: #536058;
}
.empty,
.loading {
  text-align: center;
  padding: 36px 18px;
  color: var(--muted);
}
.empty h3,
.empty h2,
.loading h2 {
  margin: 10px 0 6px;
  color: var(--ink);
}
.empty p {
  font-size: 14px;
}
.empty .btn,
.loading .btn {
  margin-top: 15px;
}
.empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff4ea;
  color: #62765a;
}
dialog {
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  color: var(--ink);
  width: min(620px, calc(100vw - 26px));
  max-height: 90dvh;
  box-shadow: 0 18px 90px #19271924;
  overflow: hidden;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog::backdrop {
  background: #15201970;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.dialog-body {
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog-head h2 {
  font-size: 20px;
}
#notice {
  position: fixed;
  z-index: 40;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 8px);
  max-width: min(90vw, 620px);
  border-radius: 9px;
  background: #253328;
  color: #fff;
  padding: 11px 17px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  box-shadow: 0 5px 20px #19271921;
}
#notice.shown {
  opacity: 1;
  transform: translate(-50%, 0);
}
.print-frame {
  position: fixed;
  width: 1px;
  height: 1px;
  border: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
}
.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(350px, 0.95fr) 1.05fr;
}
.auth-info {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4.8vw, 76px);
  background: #202c26;
  color: white;
  overflow: hidden;
}
.auth-info .brand small {
  color: #bdcabb;
}
.auth-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 120px;
}
.auth-visual img {
  height: clamp(140px, 30vh, 285px);
  max-width: 100%;
}
.auth-intro h1 {
  font-size: clamp(32px, 3.8vw, 56px);
  margin: 13px 0;
}
.auth-intro p {
  color: #c5d0c5;
  max-width: 410px;
  font-size: 16px;
}
.auth-foot {
  margin-top: 45px;
  font-size: 12px;
  color: #b0c2b0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-box {
  display: grid;
  place-items: center;
  background: #fafbf9;
  padding: 28px;
}
.auth-panel {
  width: min(100%, 400px);
}
.auth-panel h2 {
  font-size: 29px;
  letter-spacing: -0.9px;
}
.auth-panel > .muted {
  font-size: 14px;
  margin: 8px 0 22px;
}
.auth-panel form {
  display: grid;
  gap: 15px;
}
.auth-panel form > .btn {
  margin-top: 6px;
  justify-content: space-between;
}
.auth-icon {
  width: 45px;
  height: 45px;
  background: #e7f3db;
  border-radius: 11px;
  margin-bottom: 18px;
  color: #47623b;
}
.auth-mobile-brand,
.bottom-nav,
.mobile-hide-menu,
.menu-trigger,
.scrim {
  display: none;
}
@media (min-width: 1550px) {
  .overview-panels {
    grid-template-columns: 1.45fr 1fr;
  }
  .scanner-card {
    min-height: 238px;
  }
  .scan-visual {
    width: 47%;
  }
  .status-key {
    column-gap: 28px;
  }
  .status-key button {
    font-size: 13px;
  }
}
@media (max-width: 1190px) {
  :root {
    --side: 206px;
  }
  .brand-row {
    padding: 0 18px;
  }
  .nav-group {
    padding-left: 10px;
    padding-right: 10px;
  }
  .status-panel {
    padding: 18px 16px;
  }
  .status-key {
    column-gap: 10px;
  }
  .scanner-copy p {
    max-width: 220px;
  }
  .scan-visual {
    right: -3%;
    width: 45%;
  }
  .overview-panels {
    grid-template-columns: 1.15fr 1fr;
  }
  .recent th,
  .recent td {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 990px) {
  :root {
    --side: 185px;
  }
  .nav-link {
    gap: 9px;
    font-size: 13px;
  }
  .topbar {
    padding-inline: 20px;
  }
  main {
    padding-inline: 20px;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 12px 13px;
    min-height: 98px;
  }
  .overview-panels {
    grid-template-columns: 1.06fr 1fr;
    gap: 12px;
  }
  .scanner-copy {
    padding-inline: 16px;
  }
  .scan-visual {
    opacity: 0.6;
    right: -8%;
    width: 45%;
  }
  .scanner-copy p {
    font-size: 12px;
    max-width: 180px;
  }
  .status-panel {
    padding: 18px 14px;
  }
  .status-key button {
    font-size: 10.5px;
  }
  .row-chevron {
    display: none;
  }
  .recent .location-cell small {
    max-width: 120px;
  }
  .recent .device-icon {
    display: none;
  }
  .brand-row {
    height: 68px;
  }
  .recent .table-wrap th,
  .recent .table-wrap td {
    padding-inline: 9px;
  }
}
@media (max-width: 760px) {
  :root {
    --side: 235px;
  }
  .workspace {
    margin-left: 0;
  }
  .sidebar {
    transform: translateX(-101%);
    transition: transform 0.16s;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open .scrim {
    display: block;
    position: fixed;
    z-index: 14;
    inset: 0;
    background: #18221d62;
  }
  .mobile-hide-menu,
  .menu-trigger {
    display: inline-flex;
  }
  .mobile-hide-menu {
    margin-left: auto;
  }
  .brand-row {
    padding: 0 14px;
  }
  .topbar {
    height: 56px;
    padding: 0 15px;
    gap: 9px;
  }
  .crumb > span,
  .crumb > .ico {
    display: none;
  }
  .crumb b {
    font-size: 14px;
  }
  .top-actions {
    gap: 9px;
  }
  .scope {
    max-width: 40vw;
    padding: 5px 8px;
    font-size: 11px;
    min-height: 32px;
  }
  .scope > .ico:first-child {
    display: none;
  }
  .top-divider {
    display: none;
  }
  .avatar {
    width: 31px;
    height: 31px;
  }
  main {
    padding: 22px 15px 90px;
  }
  .page-head {
    margin-bottom: 17px;
  }
  .page-head p {
    font-size: 13px;
    margin-top: 5px;
  }
  .page-head .btn {
    font-size: 12px;
    min-height: 37px;
    padding-inline: 10px;
  }
  .metrics {
    gap: 8px;
    margin-bottom: 12px;
  }
  .metric {
    min-height: 88px;
  }
  .metric-top {
    font-size: 12px;
  }
  .metric strong {
    font-size: 28px;
  }
  .metric-symbol {
    height: 25px;
    width: 25px;
  }
  .overview-panels {
    margin-bottom: 13px;
  }
  .bottom-nav {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 5px 5px max(5px, env(safe-area-inset-bottom));
    min-height: 61px;
  }
  .bottom-nav button {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 48px;
    min-height: 44px;
    justify-content: center;
    color: #6c796c;
  }
  .bottom-nav button small {
    font-size: 10px;
    color: inherit;
  }
  .bottom-nav button span {
    height: 26px;
    min-width: 32px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
  }
  .bottom-nav .selected {
    color: #375e2e;
    font-weight: 650;
  }
  .bottom-nav .selected span {
    background: #eaf5df;
  }
  .bottom-nav .scan-tab span {
    background: var(--green);
    color: #2e4b28;
    padding-inline: 8px;
  }
  .panel-head {
    padding: 13px;
  }
  .recent .panel-head {
    min-height: 50px;
  }
  .recent .device-icon {
    display: inline-flex;
  }
  .recent .table-wrap th,
  .recent .table-wrap td {
    padding: 10px;
  }
  .recent .table-wrap td:first-child,
  .recent .table-wrap th:first-child {
    padding-left: 13px;
  }
  .recent td:nth-child(3),
  .recent th:nth-child(3) {
    display: none;
  }
  #notice {
    bottom: 78px;
  }
  .auth-layout {
    grid-template-columns: minmax(245px, 0.72fr) 1fr;
  }
  .auth-info {
    padding: 24px;
  }
  .auth-intro h1 {
    font-size: 31px;
  }
  .auth-intro p {
    font-size: 14px;
  }
  .auth-box {
    padding: 22px;
  }
}
@media (max-width: 580px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .metric {
    min-height: 84px;
    padding: 11px 13px;
  }
  .metric-symbol {
    width: 24px;
    height: 24px;
  }
  .overview-panels {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .scanner-card {
    min-height: 179px;
  }
  .scanner-copy {
    padding: 17px;
  }
  .scanner-copy h2 {
    font-size: 25px;
    margin: 8px 0 6px;
  }
  .scanner-copy .btn {
    margin-top: 12px;
  }
  .scan-visual {
    width: 43%;
    right: -1%;
    opacity: 1;
  }
  .scanner-copy p {
    max-width: 210px;
  }
  .status-panel {
    padding: 15px;
  }
  .status-title h2,
  .panel-head h2 {
    font-size: 16px;
  }
  .status-key {
    column-gap: 18px;
    row-gap: 2px;
  }
  .status-key button {
    font-size: 11px;
    min-height: 23px;
  }
  .segments {
    margin: 13px 0 7px;
    height: 8px;
  }
  .recent .device-icon {
    height: 28px;
    width: 28px;
  }
  .device {
    gap: 6px;
  }
  .device b {
    font-size: 12px;
  }
  .device small {
    font-size: 10px;
  }
  .recent .table-wrap table {
    width: 100%;
  }
  .recent td:nth-child(2),
  .recent th:nth-child(2) {
    display: none;
  }
  .recent .table-wrap td,
  .recent .table-wrap th {
    padding: 10px 6px;
  }
  .recent td:last-child {
    display: none;
  }
  .recent td:nth-child(4) {
    padding-right: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 30px;
  }
  .section-title {
    gap: 7px;
  }
  .recent .text-link {
    padding: 4px 2px;
  }
  .auth-layout {
    display: block;
  }
  .auth-info {
    display: none;
  }
  .auth-box {
    min-height: 100dvh;
    padding: 24px;
  }
  .auth-mobile-brand {
    display: block;
    margin-bottom: 30px;
  }
  .auth-icon {
    display: none;
  }
  .auth-panel h2 {
    font-size: 25px;
  }
  dialog {
    max-height: 90dvh;
  }
  .dialog-body {
    padding: 15px;
  }
  .dialog-head {
    padding: 12px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 760px) {
  .topbar .crumb {
    min-width: 0;
    flex: 1;
  }
  .topbar .crumb b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar .top-actions {
    flex: none;
  }
}
.batch-history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  min-width: 0;
  font-size: 13px;
}
.batch-history-row + .batch-history-row {
  border-top: 1px solid var(--line);
}
a.batch-history-row:hover {
  background: var(--soft);
}
.batch-history-text {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.batch-history-text small {
  display: block;
  margin-top: 3px;
}
.batch-history-text a:hover,
.batch-inventory a:hover {
  text-decoration: underline;
}
.batch-history-count,
.batch-inventory {
  font-size: 12px;
  color: var(--muted);
}
.batch-inventory {
  max-width: 45%;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .batch-history-row {
    padding: 10px 12px;
    gap: 8px;
  }
  .batch-history-count {
    font-size: 11px;
  }
}
.serial-pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: #f6faef;
}
.serial-pending h2 {
  font-size: 17px;
}
.serial-pending p,
.installation-form > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.installation-form {
  display: grid;
  gap: 13px;
}
.installation-form > .read-serial {
  justify-self: start;
}
@media (max-width: 580px) {
  .serial-pending {
    flex-direction: column;
    align-items: flex-start;
  }
}

.batch-missing-filter {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

small.observation-preview {
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
