:root {
  color-scheme: light;
  --ink: #18211d;
  --sub: #59655d;
  --base: #f3f4ed;
  --white: #fff;
  --line: #dce3da;
  --graphite: #121616;
  --lime: #e0fa4b;
  --ok: #236247;
  --ok-bg: #e9f6ed;
  --warn: #7b4a11;
  --warn-bg: #fff2dc;
  --bad: #983f36;
  --bad-bg: #fbeeea;
  --info: #284d73;
  --info-bg: #eaf0fa;
  font: 15px/1.45 "Noto Sans Display", "Noto Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--base);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #547427; outline-offset: 3px; }
a { color: #214c35; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 3.5vw, 43px); font-weight: 750; letter-spacing: -.047em; line-height: 1.07; }
h2 { font-size: 18px; letter-spacing: -.022em; line-height: 1.22; }
h3 { font-size: 15px; letter-spacing: -.012em; }
.startup { padding: 28px; color: var(--sub); }
.mark { position: relative; display: inline-block; width: 28px; height: 26px; flex: 0 0 28px; background: linear-gradient(140deg,transparent 43%,var(--lime) 44% 52%,transparent 53%) center/17px 13px no-repeat; }
.mark::before, .mark::after { content: ""; position: absolute; border: 2px solid; border-radius: 3px; }
.mark::before { right: 0; top: 1px; width: 17px; height: 12px; border-color: var(--lime); }
.mark::after { left: 0; bottom: 1px; width: 9px; height: 7px; border-color: #f3f4ed; }
.brand { display: flex; gap: 10px; align-items: center; min-width: 0; color: #f3f4ed; font-size: 22px; letter-spacing: -.04em; font-weight: 730; }
.shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: var(--graphite); color: #b6c3b9; padding: 21px 12px 14px; display: flex; flex-direction: column; gap: 27px; min-width: 0; }
.sidebar .brand { padding: 0 9px; }
.nav { display: grid; gap: 4px; }
.nav-group { display: grid; gap: 2px; }
.nav-group + .nav-group { margin-top: 14px; }
.nav-group > span { padding: 0 11px 4px; font-size: 11px; font-weight: 650; }
.owner-shell .nav-group > span { color: var(--sub); }
.incident-list { max-height: 480px; overflow-y: auto; }
.nav button { width: 100%; padding: 9px 11px; background: none; border: 0; border-radius: 7px; text-align: left; color: #bec9bf; min-height: 41px; font-weight: 620; font-size: 14px; }
.nav button:hover { background: #252d2a; color: #f3f4ed; }
.nav button[aria-current=page] { color: var(--lime); background: #313b2b; box-shadow: inset 2px 0 var(--lime); }
.account { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 13px 5px 0; border-top: 1px solid #354139; overflow-wrap: anywhere; }
.account .small { color: #b8c5ba; }
.account strong { display: block; color: #fff; font-size: 13px; }
.avatar { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 750; }
.account .avatar { background: #334637; color: var(--lime); }
.workspace { min-width: 0; }
.bar { background: var(--white); border-bottom: 1px solid var(--line); min-height: 58px; padding: 9px clamp(16px, 3vw, 43px); color: var(--sub); font-size: 13px; }
.roomy { width: min(100%, 1450px); margin: 0 auto; padding: clamp(16px, 3vw, 44px); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.headline { align-items: flex-end; margin-bottom: 19px; gap: 15px; }
.headline > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.sub { color: var(--sub); margin-top: 7px; font-size: 14px; }
.small { color: var(--sub); font-size: 12px; }
.quiet { color: var(--sub); font-size: 13px; }
.mono, .big { font-variant-numeric: tabular-nums; }
.big { font-size: 31px; font-weight: 730; letter-spacing: -.045em; line-height: 1.15; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 37px; padding: 7px 11px; border-radius: 7px; background: var(--white); color: var(--ink); border: 1px solid var(--line); font-size: 13px; font-weight: 660; text-align: center; text-decoration: none; }
.btn:hover:not(:disabled) { background: #edf1e9; }
.primary { color: #141a11; background: var(--lime); border-color: var(--lime); }
.primary:hover:not(:disabled) { background: #d2ed34; }
.link { display: inline-block; border: 0; background: none; padding: 3px 0; color: #244e36; text-align: left; font-weight: 665; overflow-wrap: anywhere; }
.link:hover { text-decoration: underline; }
.back { margin-bottom: 10px; }
.stack { display: grid; gap: 15px; min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }
.stat, .panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.stat { display: grid; gap: 3px; align-content: center; min-height: 96px; padding: 12px 15px; overflow-wrap: anywhere; }
.panel > header { min-height: 51px; border-bottom: 1px solid var(--line); padding: 10px 14px; }
.pad { padding: 14px; }
.empty { padding: 17px 14px; color: var(--sub); }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 4px 7px; line-height: 1.18; font-size: 12px; font-weight: 660; background: var(--base); color: var(--sub); vertical-align: middle; }
.chip::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; background: currentColor; border-radius: 50%; }
.chip.ok, .alert.ok { color: var(--ok); background: var(--ok-bg); }
.chip.warn, .alert.warn { color: var(--warn); background: var(--warn-bg); }
.chip.bad, .alert.bad { color: var(--bad); background: var(--bad-bg); }
.chip.info, .alert.info { color: var(--info); background: var(--info-bg); }
.alert { padding: 10px 12px; border-radius: 7px; font-size: 13px; overflow-wrap: anywhere; }
.table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: middle; }
.table th { font-size: 12px; color: var(--sub); background: #f6f8f3; font-weight: 650; }
.table th:first-child { width: 31%; }
.table tr:last-child td { border: 0; }
.table .small { display: block; }
.table .chip { margin: 0 3px 3px 0; }
.list { padding: 0; margin: 0; list-style: none; }
.list li { padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.list li:last-child { border-bottom: 0; }
.list strong { font-size: 14px; }
.facts { margin: 0; display: grid; gap: 6px; font-size: 13px; }
.facts > div { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 7px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--sub); }
.facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.meter { height: 5px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 7px 0; }
.meter span { display: block; background: var(--ok); height: 100%; }
.attention { border-left: 3px solid #d89c57; }
.attention.urgent { border-left-color: #cc6b57; }
.date-block { min-width: 55px; padding: 6px 10px; border-radius: 7px; text-align: center; font-variant-numeric: tabular-nums; background: var(--base); color: var(--ink); }
.date-block strong { display: block; font-size: 15px; }
.leading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.leading > div { min-width: 0; }
.field { display: grid; gap: 4px; color: var(--sub); font-size: 13px; font-weight: 650; min-width: 0; }
.field input, .field select, .search { background: #f8faf5; color: var(--ink); width: 100%; min-width: 0; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; font-weight: 440; }
.field select[multiple] { min-height: 90px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.check input { accent-color: #326748; }
.formgrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: 12px; }
.error:empty { display: none; }
.error { padding: 7px 9px; color: var(--bad); background: var(--bad-bg); font-size: 13px; border-radius: 6px; }
dialog { width: min(610px,calc(100% - 24px)); max-height: calc(100dvh - 25px); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); padding: 0; }
dialog::backdrop { background: #10231b7d; }
dialog > header { padding: 12px 15px; border-bottom: 1px solid var(--line); }
dialog form, dialog .dialog-body { padding: 15px; }
#toast { position: fixed; bottom: 15px; right: 15px; max-width: min(412px,calc(100% - 30px)); z-index: 10; padding: 10px 13px; background: #1a3527; color: white; border-radius: 8px; font-size: 14px; box-shadow: 0 4px 16px #1b281837; }
#toast.bad { background: #78352d; }
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
.login-side { background: #121616; color: #f3f4ed; padding: clamp(22px, 6vw, 90px); display: grid; align-content: space-between; gap: 18px; }
.login-side h1 { font-size: clamp(27px,4vw,56px); }
.login-side .sub { color: #bdc7bf; max-width: 28em; }
.login-form { display: grid; align-content: center; justify-items: center; padding: 24px; }
.login-form form, .login-box { width: min(100%, 365px); padding: 19px; }
.preview { display: grid; place-items: center; aspect-ratio: 16/9; background: #111914; color: #d9e4db; border-radius: 8px; overflow: hidden; }
.preview img, .preview video { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.show-controls .btn { min-height: 48px; min-width: 85px; }
.screen-row strong { font-size: 14px; }
.clip { overflow-wrap: anywhere; }
.qr { width: min(100%,225px); height: auto; display: block; }
@media(max-width: 900px) {
  .shell { grid-template-columns: 160px minmax(0, 1fr); }
  .roomy { padding: 17px; }
  .table th, .table td { padding: 8px; }
}
@media(max-width: 690px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: 10px 12px; gap: 8px; }
  .sidebar .brand { font-size: 19px; padding-inline: 4px; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-group { display: contents; }
  .nav-group > span { display: none; }
  .nav button { width: auto; padding: 6px 8px; min-height: 36px; font-size: 12px; }
  .nav button[aria-current=page] { box-shadow: inset 0 -2px var(--lime); }
  .account { display: none; }
  .two { grid-template-columns: minmax(0,1fr); }
  .bar { min-height: 46px; }
  .login { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .login-side { padding: 16px; gap: 10px; }
  .login-side h1 { font-size: 25px; }
  .login-side .sub { font-size: 13px; }
  .login-form { padding: 14px; }
}
@media(max-width: 525px) {
  .roomy { padding: 13px; }
  .stat { min-height: 74px; padding: 7px; }
  .big { font-size: 25px; }
  .stats { gap: 6px; }
  .table thead { display: none; }
  .table tbody { display: block; }
  .table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 8px; padding: 9px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: block; padding: 0; border: 0; }
  .table td:first-child { grid-column: 1 / -1; }
  .table td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; color: var(--sub); }
  .formgrid { grid-template-columns: minmax(0, 1fr); }
}
@media(pointer: coarse) {
  .btn { min-height: 44px; }
  .field input, .field select, .search { font-size: 16px; min-height: 44px; }
}
.owner-shell {
  --ink: #18222b;
  --sub: #515e69;
  --line: #dce2e7;
  --base: #f4f6f8;
  background: var(--base);
  color: var(--ink);
}
.owner-shell .sidebar { background: #fff; border-right: 1px solid var(--line); }
.owner-shell .brand, .owner-shell .account strong { color: var(--ink); }
.owner-shell .mark { --lime: #202f3c; }
.owner-shell .mark::after { border-color: #556777; }
.owner-shell .account { border-color: var(--line); }
.owner-shell .account .small { color: var(--sub); }
.owner-shell .avatar { background: #eef2f5; color: #384b5c; }
.owner-shell .nav button { color: #445464; }
.owner-shell .nav button:hover { background: #f3f5f7; }
.owner-shell .nav button[aria-current=page] { background: #e9eff4; color: #162638; box-shadow: none; }
.owner-shell h1 { font-size: clamp(25px, 2.5vw, 34px); }
.owner-shell .link { color: #344e66; }
.owner-shell .primary, .owner-shell .primary:hover:not(:disabled) { background: #223440; border-color: #223440; color: #fff; }
.owner-shell .primary:hover:not(:disabled) { background: #344e60; }
.owner-shell .table th { background: #f4f6f8; }
.owner-shell .stats { grid-template-columns: repeat(auto-fit,minmax(min(100%, 175px),1fr)); }
.owner-shell .stat { border-radius: 8px; min-height: 108px; padding: 14px 16px; }
.owner-shell .panel, .owner-shell .registry-filter { border-radius: 8px; }
.owner-desk { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.owner-desk .attention .small { margin-top: 4px; }
.hotel-feature {
  background: #17221c;
  color: #f3f4ed;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 42px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.hotel-feature h2 { font-size: clamp(24px, 3.5vw, 40px); margin: 4px 0; }
.hotel-feature .small, .hotel-feature p { color: #c3d0c7; }
.hotel-feature p { margin-top: 12px; }
.hotel-connection { padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
[data-diagnostic-result]:empty { display: none; }
@media(max-width: 1100px) {
  .owner-desk { grid-template-columns: minmax(0, 1fr); }
}
.registry-filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.registry-filter > label { flex: 1 1 155px; }
.registry-filter > label:first-child { flex-grow: 2; }
.registry-filter > .actions { flex: 0 1 auto; }
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(245px,1fr));
  gap: 14px;
  margin-top: 16px;
}
.device-steps { padding-left: 22px; margin: 0; }
.device-steps li+li { margin-top: 8px; }
.device-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
