@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/dm-sans.woff2") format("woff2");
}
:root {
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #172740;
  background: #f4f6fa;
  font-synthesis: none;
  --blue: #3267d6;
  --muted: #738198;
  --line: #e0e6ef;
  --ink: #172740;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #98baff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.brand {
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand > span:last-child {
  font-weight: 400;
  margin-left: -8px;
  opacity: 0.6;
}
.brand-icon {
  font-size: 30px;
  font-weight: 400;
}
.primary,
.secondary,
.subtle {
  padding: 11px 19px;
  border-radius: 7px;
  font-weight: 600;
}
.primary {
  background: var(--blue);
  color: white;
}
.primary:hover {
  background: #2559c2;
}
.secondary {
  background: #edf1f8;
  color: var(--ink);
}
.subtle {
  background: transparent;
  color: #53657f;
  font-weight: 500;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.error {
  color: #b82940;
  font-size: 14px;
  line-height: 1.5;
  min-height: 4px;
}
.error:empty {
  margin: 0;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
}
input,
select {
  display: block;
  background: white;
  border: 1px solid #cdd7e5;
  border-radius: 7px;
  padding: 12px 13px;
  width: 100%;
  margin-top: 8px;
  color: var(--ink);
}
input::placeholder {
  color: #98a4b6;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #253f66;
  color: white;
  padding: 42px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.story-content {
  padding: 40px 0 70px;
  max-width: 450px;
  margin: auto;
}
.story-content h1 {
  font-size: clamp(40px, 4vw, 62px);
  font-weight: 500;
  letter-spacing: -2.6px;
  line-height: 1.12;
  margin: 35px 0 24px;
}
.story-content p {
  color: #c0d0e7;
  line-height: 1.8;
  font-size: 18px;
}
.story-foot {
  color: #a3b9d8;
  font-size: 13px;
}
.lens {
  height: 130px;
  width: 130px;
  border: 1px solid #6c89b2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 20px #304c74,
    0 0 0 21px #416087;
}
.lens div {
  height: 74px;
  width: 74px;
  border-radius: 50%;
  background: #90b5ff;
  position: relative;
  border: 16px solid #182e50;
}
.lens div:after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
}
.auth-form {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-form form {
  width: min(350px, 100%);
}
.auth-form h2 {
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 0 0 10px;
}
.auth-form form > p:first-of-type {
  color: var(--muted);
  margin-bottom: 35px;
}
.auth-form .primary {
  width: 100%;
  margin-top: 28px;
}
.auth-form .hint {
  margin-top: 24px;
}
.small-logo {
  display: none;
}
.topbar {
  height: 86px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 4vw;
  display: flex;
  align-items: center;
  gap: 65px;
}
.topbar nav {
  display: flex;
  align-self: stretch;
  gap: 25px;
}
.nav {
  background: none;
  color: #7c8aa0;
  border-bottom: 3px solid transparent;
  padding: 4px 1px 0;
  font-size: 14px;
  font-weight: 600;
}
.nav.active {
  color: var(--blue);
  border-color: var(--blue);
}
.account {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.account strong,
.account span {
  display: block;
  text-align: right;
}
.account span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.avatar {
  background: #e9effa;
  width: 38px;
  height: 38px;
  color: #355e9b;
  border-radius: 50%;
  font-weight: 600;
}
.workspace {
  max-width: 1510px;
  margin: 0 auto;
  padding: 42px 4vw 36px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.eyeline {
  font-size: 13px;
  color: #667b9b;
  display: flex;
  align-items: center;
  gap: 7px;
}
.blue-dot {
  height: 6px;
  width: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.page-heading h1 {
  font-size: 33px;
  letter-spacing: -1.25px;
  font-weight: 600;
  margin: 9px 0 9px;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 12px;
  border-radius: 7px;
  width: 250px;
  color: var(--muted);
}
.search span {
  font-size: 25px;
}
.search input {
  border: 0;
  margin: 0;
  padding: 11px 0;
  font-size: 13px;
  min-width: 0;
}
.filters {
  display: flex;
  gap: 6px;
}
.filter {
  background: none;
  border-radius: 6px;
  color: #8290a5;
  padding: 8px 12px;
  font-size: 13px;
}
.filter.active {
  background: #e6edf9;
  color: #365d9b;
  font-weight: 600;
}
.toolbar > .subtle {
  margin-left: auto;
  font-size: 13px;
  padding: 8px;
}
.camera-layout {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.camera-card {
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  margin-bottom: 12px;
  position: relative;
  transition: border-color 0.15s;
}
.camera-card.active {
  border-color: #668dde;
  box-shadow: 0 0 0 1px #668dde;
}
.camera-card:hover {
  border-color: #91acd9;
}
.camera-symbol {
  width: 40px;
  height: 35px;
  background: #edf2fa;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #7292c2;
  font-size: 25px;
  margin-bottom: 22px;
}
.camera-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: -0.2px;
  font-weight: 600;
}
.camera-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.status {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f0f3f7;
  color: #7a8798;
}
.status.online {
  background: #eaf5f0;
  color: #32816a;
}
.status i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.camera-card .status {
  position: absolute;
  right: 14px;
  top: 17px;
}
.camera-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #93a0b3;
  border-top: 1px solid #eff2f7;
  padding-top: 13px;
  margin-top: 18px;
}
.selected-check {
  color: var(--blue);
}
#viewer {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.viewer-top {
  padding: 20px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.viewer-top h2 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 600;
}
.viewer-top p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.viewer-screen {
  background: #121922;
  aspect-ratio: 16/9;
  position: relative;
  display: grid;
  place-items: center;
  color: #9aa7bb;
  overflow: hidden;
}
.viewer-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.screen-message {
  text-align: center;
  padding: 24px;
}
.screen-message h3 {
  color: #e1e9f6;
  font-weight: 500;
}
.screen-message p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 340px;
}
.viewer-bottom {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px;
  flex-wrap: wrap;
}
.viewer-bottom .subtle {
  padding: 8px 11px;
  font-size: 12px;
}
.connection-label {
  font-size: 12px;
  color: #78869b;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection-label span {
  color: #426bad;
}
.viewer-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.viewer-empty {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}
.viewer-empty h2 {
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 0;
}
.empty-lens {
  font-size: 56px;
  color: #a2b3cd;
}
.local-note {
  display: flex;
  gap: 13px;
  margin: 21px 0 0 306px;
  align-items: flex-start;
  color: #7e8ba1;
  font-size: 12px;
  line-height: 1.7;
  max-width: 760px;
}
.local-note > span {
  font-size: 26px;
  color: #90a3c0;
  line-height: 1.4;
}
.local-note p {
  margin: 0;
}
.local-note strong {
  color: #61738e;
}
.table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  color: #8491a5;
  font-size: 12px;
  font-weight: 500;
  padding: 16px 22px;
  background: #fafbfd;
  white-space: nowrap;
}
td {
  border-top: 1px solid #ecf0f6;
  padding: 18px 22px;
}
td strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
td small {
  color: var(--muted);
}
td button {
  font-size: 12px;
  background: #edf2fa;
  color: #456698;
  padding: 7px 9px;
  border-radius: 5px;
  margin: 2px;
}
.role-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 26px;
  font-size: 13px;
  color: #75849b;
}
.role-guide strong {
  color: #4d6381;
  font-weight: 500;
}
.role-guide p {
  line-height: 1.7;
  max-width: 270px;
}
footer {
  padding: 12px 4vw 22px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9aa6b8;
}
footer span:first-child {
  font-weight: 600;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(480px, calc(100% - 32px));
  padding: 26px;
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 24px 100px #14243a33;
}
dialog::backdrop {
  background: #14243a70;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-heading h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.7px;
}
.icon-button {
  background: none;
  font-size: 27px;
  color: #95a1b3;
  padding: 0 4px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 26px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
  margin-top: 10px;
  font-weight: 400;
}
.setup-link {
  font-size: 12px;
  word-break: break-all;
  padding: 14px;
  background: #eef3fc;
  border-radius: 6px;
  line-height: 1.7;
  color: #41608b;
}
.modal-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #253f66;
  color: white;
  border-radius: 7px;
  padding: 13px 22px;
  font-size: 13px;
  box-shadow: 0 5px 20px #17274022;
  z-index: 9;
}
.empty-list {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  padding: 20px;
}
.danger {
  color: #b82940 !important;
}
@media (max-width: 1000px) {
  .camera-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .local-note {
    margin-left: 254px;
  }
  .topbar {
    gap: 40px;
  }
  .viewer-actions {
    gap: 0;
  }
  .viewer-bottom {
    padding: 13px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 76px;
    padding: 16px 20px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .topbar .brand {
    font-size: 21px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    gap: 26px;
    height: 38px;
    margin-bottom: -16px;
  }
  .account strong {
    font-size: 12px;
  }
  .account span {
    font-size: 10px;
  }
  .workspace {
    padding: 30px 20px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading > .primary {
    font-size: 12px;
    white-space: nowrap;
    padding: 10px;
  }
  .toolbar {
    gap: 10px;
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  .filters {
    flex: 1;
  }
  .camera-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  #camera-list {
    width: 100%;
    display: flex;
    gap: 12px;
    overflow-x: auto;
  }
  .camera-card {
    flex: 0 0 235px;
    margin: 1px 1px 6px;
    padding: 14px;
  }
  .camera-symbol {
    margin-bottom: 14px;
  }
  .camera-meta {
    margin-top: 14px;
    padding-top: 10px;
  }
  #viewer {
    width: 100%;
  }
  .viewer-top {
    padding: 16px;
  }
  .viewer-bottom {
    gap: 10px;
  }
  .local-note {
    margin-left: 0;
  }
  .role-guide {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .role-guide p {
    max-width: none;
    margin-top: 6px;
  }
  .auth-layout {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    min-height: 100vh;
    padding: 30px;
  }
  .small-logo {
    display: block;
    font-weight: 700;
    letter-spacing: -1px;
    font-size: 22px;
    margin-bottom: 56px;
    color: #35547d;
  }
  .auth-form h2 {
    font-size: 32px;
  }
  .viewer-empty {
    min-height: 260px;
  }
  footer {
    padding: 10px 20px 22px;
  }
  footer span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
