@import url("/assets/css/navigation.css");

:root {
  color-scheme: light;
  --ink: #19334f;
  --muted: #74849a;
  --paper: #f3f7fc;
  --line: #dce6f1;
  --accent: #198b83;
  --blue: #3568ba;
  --white: #fff;
  --occupied: #e45b58;
  --idle: #35a978;
  --unavailable: #ef8e32;
  --fault: #e4b836;
  --unknown: #b5bdc2;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #629ade;
  outline-offset: 3px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9cbce347;
  border-color: #5587bf;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 650;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.4px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 16px;
}
h4 {
  font-size: 15px;
}
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
  text-decoration: none;
}
.button:hover:not(:disabled) {
  background: #f0f5fb;
  border-color: #b0c7de;
}
.button-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.button-primary:hover:not(:disabled) {
  background: #285aab;
  border-color: #285aab;
}
.button-quiet {
  background: transparent;
  color: var(--blue);
  border-color: #ccddee;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
  line-height: 1.8;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 5px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.icon-button:hover {
  background: #eef4fa;
  color: var(--ink);
}
.notice {
  padding: 11px 14px;
  background: #eaf3ff;
  border: 1px solid #cfe0f5;
  border-radius: 7px;
  color: #456d9d;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.notice.is-error {
  background: #fff4e9;
  border-color: #f1dcc5;
  color: #97622f;
}
.empty-state {
  padding: 28px 15px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cedbea;
  background: #fff;
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 13px;
  line-height: 1.6;
  transition: border-color 0.12s;
}
.field textarea {
  resize: vertical;
  min-height: 115px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9aa9b9;
  font-size: 12px;
}
.stack-form {
  display: grid;
  gap: 0;
}
.stack-form > .button {
  justify-self: start;
}
.stack-form > .muted {
  margin-top: 13px;
}
.content-panel {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.view-intro {
  margin: 7px 0 25px;
}
.view-intro h2 {
  margin-bottom: 7px;
}
.view-intro p {
  max-width: 720px;
}
.view {
  min-width: 0;
}
.connection-dot,
.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  background: var(--unknown);
  border-radius: 50%;
  flex-shrink: 0;
}
.connection-dot.connected {
  background: var(--idle);
}
.connection-dot.offline {
  background: var(--unavailable);
}
.status-dot.occupied {
  background: var(--occupied);
}
.status-dot.idle {
  background: var(--idle);
}
.status-dot.unavailable {
  background: var(--unavailable);
}
.status-dot.fault {
  background: var(--fault);
}
.status-dot.unknown {
  background: var(--unknown);
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  width: 224px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 27px 17px;
  z-index: 1000;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  padding: 0 11px;
  line-height: 1.5;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 450;
  color: #899bb1;
  letter-spacing: 0.3px;
  margin-top: 3px;
}
.brand-mark {
  width: 35px;
  height: 39px;
  border-radius: 10px;
  background: #e0f2f0;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 35px;
  font-weight: 500;
  line-height: 1;
}
.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 42px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #75879d;
  font-size: 13px;
  padding: 13px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-item:hover {
  background: #f5f8fc;
  color: var(--ink);
}
.nav-item.active {
  background: #eaf2fc;
  color: #315f9d;
  font-weight: 600;
}
.nav-item.active:after {
  content: "";
  margin-left: auto;
  height: 6px;
  width: 6px;
  background: #5686bd;
  border-radius: 50%;
}
.sidebar-bottom {
  font-size: 11px;
  color: #8b9aab;
  margin-top: auto;
  padding: 20px 14px 0;
}
.sidebar-bottom .connection-dot {
  width: 6px;
  height: 6px;
  margin-right: 6px;
}
.sidebar-bottom p {
  font-size: 9px;
  color: #a2b0bf;
  margin-top: 7px;
}
.workspace {
  margin-left: 224px;
  padding: 0 32px 20px;
  min-width: 0;
}
.workspace-header {
  height: 101px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.section-caption {
  font-size: 11px;
  color: #98a6b7;
  margin-bottom: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.round-action {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #d5e1ef;
  border-radius: 12px;
  background: white;
  color: #497298;
}
.round-action:hover {
  background: #e9f3fd;
}
.equipment-switch {
  display: flex;
  border: 1px solid #d5e1ef;
  border-radius: 12px;
  background: white;
  padding: 4px;
  gap: 3px;
}
.equipment-switch button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  color: #95a4b5;
  padding: 8px 10px;
}
.equipment-switch button.active {
  background: #e4f1ee;
  color: #258173;
  font-weight: 600;
}
.workspace > .notice {
  margin-bottom: 16px;
}
.workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #92a2b4;
  font-size: 10px;
  padding: 17px 0 0;
}
.workspace-footer span:last-child {
  text-align: right;
}
.legend {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: #70839a;
  font-size: 10px;
}
.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend .status-dot {
  width: 7px;
  height: 7px;
}
.map-frame {
  height: calc(100dvh - 183px);
  min-height: 500px;
  position: relative;
  border: 1px solid #cfdeec;
  overflow: hidden;
  border-radius: 12px;
  background: #eaf0f5;
}
#campus-map {
  height: 100%;
  width: 100%;
  background: #eaf0f5;
  z-index: 1;
}
.map-heading {
  position: absolute;
  z-index: 500;
  top: 19px;
  left: 20px;
  background: #ffffffed;
  border: 1px solid #d8e4ee;
  padding: 11px 16px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 2px 8px #1a3d5e09;
}
.map-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.map-subtitle {
  display: block;
  font-size: 9px;
  color: #8b9cae;
  margin-top: 2px;
}
.map-north {
  position: absolute;
  z-index: 500;
  right: 19px;
  top: 18px;
  width: 34px;
  display: grid;
  justify-items: center;
  font-size: 9px;
  color: #426a90;
  font-weight: 600;
  pointer-events: none;
}
.map-north span {
  font-size: 27px;
  line-height: 1.2;
}
.map-help {
  position: absolute;
  z-index: 500;
  left: 20px;
  bottom: 23px;
  max-width: min(480px, calc(100% - 90px));
  padding: 12px 16px;
  background: #fffefa;
  border: 1px solid #dce7ee;
  border-radius: 8px;
  font-size: 11px;
  color: #6f8497;
  box-shadow: 0 3px 12px #19334f0a;
}
.map-help .text-link {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.map-bottom {
  padding: 13px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.map-bottom > span {
  font-size: 10px;
  color: #8fa1b4;
}
.leaflet-container {
  font: inherit;
}
.leaflet-control-attribution {
  font-size: 8px !important;
  background: #ffffffbd !important;
  color: #7c91a3;
}
.leaflet-control-attribution a {
  color: #6d8ba6;
}
.leaflet-touch .leaflet-bar {
  border: 1px solid #c9d9e8;
  box-shadow: 0 2px 8px #123d5b12;
  border-radius: 7px;
  overflow: hidden;
}
.leaflet-touch .leaflet-bar a {
  color: #507597;
  background: #fff;
  width: 31px;
  height: 31px;
  line-height: 31px;
  font-size: 19px;
}
.campus-label {
  border: 1px solid #d6e1ec;
  border-radius: 4px;
  box-shadow: none;
  font:
    11px "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #61788d;
}
.area-bubble-marker,
.area-grid-marker,
.area-title-marker {
  background: transparent;
  border: 0;
}
.map-area-bubble {
  width: 100px;
  min-height: 47px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 2px solid #fff;
  border-radius: 10px;
  background: var(--availability, #7e9baf);
  color: #fff;
  box-shadow: 0 2px 10px #1738492e;
  line-height: 1.45;
  font-size: 11px;
}
.map-area-bubble strong {
  font-size: 12px;
  font-weight: 600;
}
.map-area-bubble span {
  font-size: 10px;
  opacity: 0.9;
}
.map-area-bubble:hover {
  filter: brightness(1.08);
}
.map-device-grid {
  display: grid;
  gap: 1px;
  padding: 1px;
  cursor: pointer;
  background: #ffffffc9;
  overflow: visible;
}
.map-device-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  min-height: 0;
}
.map-device-grid.vertical .map-device-pair {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.map-socket {
  padding: 0;
  border: 0;
  border-radius: 1px;
  min-width: 0;
  min-height: 0;
  background: var(--unknown);
  cursor: pointer;
}
.map-socket.occupied {
  background: var(--occupied);
}
.map-socket.idle {
  background: var(--idle);
}
.map-socket.unavailable {
  background: var(--unavailable);
}
.map-socket.fault {
  background: var(--fault);
}
.map-socket.unknown {
  background: var(--unknown);
}
.map-socket:hover {
  outline: 1px solid #173e5d;
  outline-offset: 0;
  z-index: 1;
}
.map-area-name {
  font-size: 10px;
  line-height: 20px;
  color: #365d7e;
  white-space: nowrap;
  display: block;
  text-align: center;
  text-shadow:
    0 1px white,
    1px 0 white,
    0 -1px white,
    -1px 0 white;
}
.map-socket.empty-socket {
  background: #e3e9ee99;
}
.location-toolbar {
  display: flex;
  margin-bottom: 15px;
}
.location-toolbar:has(button[hidden]) {
  display: none;
}
.area-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 3px 0 21px;
}
.area-tab {
  border: 1px solid #d7e3ef;
  background: #fff;
  padding: 7px 13px;
  border-radius: 6px;
  color: #6e85a0;
  font-size: 12px;
}
.area-tab.active {
  background: #e4effd;
  border-color: #adc9e9;
  color: #315e98;
  font-weight: 600;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 3px 0 18px;
}
.list-heading h2 {
  font-size: 19px;
}
.list-heading .muted {
  font-size: 10px;
}
.location-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.location-cards.single-area {
  grid-template-columns: minmax(0, 1fr);
}
.area-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
}
.area-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
}
.area-card-header h3 {
  font-size: 15px;
}
.area-count {
  font-size: 10px;
  color: #7f96a9;
}
.map-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 20px 19px;
  scrollbar-width: thin;
  scrollbar-color: #bfcedb transparent;
}
.orientation-line {
  display: flex;
  justify-content: space-between;
  min-width: 150px;
  font-size: 9px;
  color: #93a5b7;
  margin-bottom: 8px;
}
.socket-grid {
  display: grid;
  gap: 9px;
  width: max-content;
  min-width: 100%;
  align-items: center;
}
.axis-label {
  text-align: center;
  color: #91a4b7;
  font-size: 9px;
  line-height: 1.2;
}
.row-axis {
  text-align: left;
}
.socket-pair {
  display: grid;
  grid-template-columns: repeat(2, 29px);
  gap: 2px;
  border: 1px solid #e1e8f0;
  padding: 3px;
  background: #f5f8fc;
  border-radius: 4px;
  width: max-content;
}
.socket-grid.vertical .socket-pair {
  grid-template-columns: 29px;
  grid-template-rows: repeat(2, 29px);
}
.socket {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: white;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  background: var(--unknown);
}
.socket.occupied {
  background: var(--occupied);
}
.socket.idle {
  background: var(--idle);
}
.socket.unavailable {
  background: var(--unavailable);
}
.socket.fault {
  background: var(--fault);
  color: #655018;
}
.socket.unknown {
  background: var(--unknown);
}
.socket:hover {
  filter: brightness(1.08);
  outline: 1px solid #244d70;
  outline-offset: 1px;
}
.socket.highlighted {
  box-shadow:
    inset 0 0 0 2px #19334f,
    0 0 0 2px #8dc9ee;
}
.empty-socket {
  background: repeating-linear-gradient(135deg, #edf2f7, #edf2f7 3px, #e0e8ef 3px, #e0e8ef 4px);
  pointer-events: none;
}
.area-card-footer {
  padding: 8px 20px;
  border-top: 1px solid #edf2f8;
  background: #fafcff;
  font-size: 9px;
  color: #99a9b9;
}
.single-area .socket-pair {
  grid-template-columns: repeat(2, 36px);
  padding: 4px;
  gap: 3px;
}
.single-area .socket-grid.vertical .socket-pair {
  grid-template-columns: 36px;
  grid-template-rows: repeat(2, 36px);
}
.single-area .socket {
  width: 36px;
  height: 36px;
  font-size: 10px;
}
.single-area .socket-grid {
  min-width: 0;
  gap: 12px;
}
.socket-dialog {
  width: 450px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 38px);
  border: 1px solid #d1dfec;
  border-radius: 13px;
  padding: 19px 25px 25px;
  color: var(--ink);
  box-shadow: 0 20px 80px #19334f36;
  overflow-y: auto;
}
.socket-dialog::backdrop {
  background: #16365369;
  backdrop-filter: blur(3px);
}
.dialog-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dialog-toolbar > span {
  font-size: 11px;
  color: #8399b0;
}
.dialog-toolbar .icon-button:last-child {
  margin-left: auto;
}
.socket-dialog h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.qr-link {
  font-size: 12px;
}
.detail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
}
.detail-meta {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px 10px;
  margin: 20px 0;
  font-size: 11px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.detail-meta dt {
  color: #8a9bae;
}
.detail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 18px;
}
.detail-section h3 {
  font-size: 13px;
  margin-bottom: 10px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  background: #f0f6fc;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 12px;
  margin-top: 6px;
}
.price-row strong {
  font-weight: 600;
  white-space: nowrap;
}
.detail-service {
  font-size: 12px;
  line-height: 2.2;
}
.socket-dialog .notice {
  margin-top: 16px;
}
.report-summaries .text-link {
  font-size: 12px;
  margin-top: 13px;
}
.report-summaries ul {
  font-size: 12px;
  color: #6d8296;
  padding-left: 18px;
  margin: 0;
}
.socket-qr {
  width: 240px;
  height: 240px;
  max-width: 100%;
  display: block;
  margin: 25px auto 20px;
  image-rendering: pixelated;
}
.qr-source-link {
  display: block;
  word-break: break-all;
  font-size: 11px;
  margin-top: 13px;
  line-height: 1.8;
}
.socket-dialog:has(.socket-qr) h2 {
  text-align: center;
}
.socket-dialog:has(.socket-qr) .muted {
  text-align: center;
}
.scanner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
  gap: 27px;
  align-items: start;
}
.camera-panel {
  min-width: 0;
}
.camera-preview {
  position: relative;
  background: #19334f;
  border-radius: 10px;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.camera-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-placeholder {
  display: grid;
  justify-items: center;
  gap: 15px;
  color: #a4bfd5;
  z-index: 1;
  font-size: 12px;
}
.scan-reticle {
  position: absolute;
  z-index: 2;
  width: 60%;
  height: 51%;
  border: 2px solid #82d2c9;
  border-radius: 5px;
  pointer-events: none;
  display: none;
  box-shadow: 0 0 0 999px #19334f45;
}
.camera-active .scan-reticle {
  display: block;
}
.camera-panel .button-row {
  margin-top: 16px;
}
.camera-panel > .muted {
  margin-top: 13px;
}
.camera-panel .notice {
  margin-top: 15px;
}
.scan-alternatives {
  border-left: 1px solid var(--line);
  padding-left: 27px;
  min-width: 0;
}
.scan-alternatives h3 {
  margin-bottom: 20px;
}
.scan-alternatives .stack-form {
  margin-top: 30px;
}
.report-form {
  max-width: 840px;
}
.position-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.selected-device {
  font-size: 11px;
  color: #7b91a7;
  padding: 11px 0 17px;
  border-bottom: 1px solid var(--line);
  margin: -4px 0 22px;
  overflow-wrap: anywhere;
}
.report-form > .notice {
  margin-top: 18px;
}
.login-prompt {
  max-width: 640px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 25px;
  font-size: 13px;
}
.login-prompt p {
  margin-bottom: 17px;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: start;
}
.account-panel h3 {
  margin-bottom: 21px;
}
.account-panel .notice {
  margin-top: 17px;
}
.logged-in {
  display: grid;
  gap: 17px;
  justify-items: start;
  color: #6b89a3;
}
.account-name {
  font-size: 18px;
  color: var(--ink);
}
.notices-panel {
  padding-top: 5px;
  min-width: 0;
}
.notices-panel h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.public-notice {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.public-notice h4 {
  margin-bottom: 4px;
}
.public-notice time {
  font-size: 10px;
  color: #93a4b5;
}
.notice-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.9;
  color: #637a90;
  margin-top: 12px;
}
.account-panel .field {
  margin-bottom: 17px;
}
@media (min-width: 1600px) {
  .workspace {
    max-width: 1700px;
    margin-left: 224px;
    padding-left: 44px;
    padding-right: 44px;
  }
  .map-frame {
    min-height: 650px;
  }
  .sidebar {
    width: 224px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 195px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .brand {
    font-size: 18px;
    padding: 0 8px;
    gap: 9px;
  }
  .brand-mark {
    width: 32px;
    height: 36px;
  }
  .brand small {
    font-size: 9px;
  }
  .nav-item {
    font-size: 12px;
    padding: 12px 10px;
    gap: 10px;
  }
  .workspace {
    margin-left: 195px;
    padding-left: 23px;
    padding-right: 23px;
  }
  .location-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-layout {
    gap: 23px;
    grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1fr);
  }
  .scanner-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .scan-alternatives {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
    max-width: 650px;
  }
  .scan-alternatives .stack-form {
    margin-top: 24px;
  }
  .camera-preview {
    max-height: 480px;
  }
  .workspace-footer {
    font-size: 9px;
  }
  .map-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 16px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 15px;
  }
  .brand {
    font-size: 18px;
    padding: 0 3px;
    align-self: flex-start;
  }
  .brand small {
    font-size: 9px;
  }
  .brand-mark {
    width: 30px;
    height: 33px;
    font-size: 29px;
  }
  .sidebar nav {
    margin: 0;
    display: flex;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .nav-item {
    padding: 9px 10px;
    gap: 7px;
    font-size: 11px;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .nav-item svg {
    width: 17px;
    height: 17px;
  }
  .nav-item.active:after {
    display: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .workspace {
    margin: 0;
    padding: 0 15px 17px;
  }
  .workspace-header {
    height: 88px;
    gap: 12px;
  }
  .section-caption {
    font-size: 9px;
  }
  h1 {
    font-size: 21px;
  }
  .header-actions {
    gap: 8px;
  }
  .round-action {
    height: 36px;
    width: 36px;
    border-radius: 10px;
  }
  .round-action svg {
    width: 21px;
    height: 21px;
  }
  .equipment-switch {
    padding: 3px;
    border-radius: 10px;
    gap: 0;
  }
  .equipment-switch button {
    font-size: 10px;
    padding: 6px 7px;
    border-radius: 7px;
  }
  .map-frame {
    height: calc(100dvh - 300px);
    min-height: 405px;
    border-radius: 9px;
  }
  .map-heading {
    top: 13px;
    left: 12px;
    padding: 8px 11px;
    border-radius: 6px;
  }
  .map-title {
    font-size: 11px;
  }
  .map-subtitle {
    font-size: 8px;
  }
  .map-north {
    top: 12px;
    right: 12px;
  }
  .map-help {
    left: 12px;
    bottom: 22px;
    font-size: 10px;
    padding: 10px 12px;
    max-width: calc(100% - 70px);
  }
  .map-help .text-link {
    font-size: 10px;
  }
  .map-bottom {
    gap: 7px;
    padding-top: 11px;
  }
  .legend {
    gap: 11px;
    font-size: 9px;
  }
  .legend .status-dot {
    width: 6px;
    height: 6px;
  }
  .map-bottom > span {
    font-size: 9px;
  }
  .workspace-footer {
    display: block;
    font-size: 9px;
    line-height: 1.8;
    padding-top: 14px;
  }
  .workspace-footer span {
    display: block;
  }
  .workspace-footer span:last-child {
    text-align: left;
  }
  .area-tabs {
    gap: 6px;
    margin-top: 1px;
  }
  .area-tab {
    font-size: 11px;
    padding: 6px 11px;
  }
  .list-heading {
    display: block;
    margin-bottom: 16px;
  }
  .list-heading h2 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .list-heading .muted {
    font-size: 9px;
  }
  .location-cards {
    gap: 14px;
  }
  .area-card-header {
    padding: 15px 16px;
  }
  .map-scroll {
    padding-left: 16px;
    padding-right: 16px;
  }
  .socket-grid {
    gap: 9px;
  }
  .area-card-footer {
    padding-left: 16px;
    font-size: 8px;
  }
  .single-area .socket-pair {
    grid-template-columns: repeat(2, 32px);
  }
  .single-area .socket-grid.vertical .socket-pair {
    grid-template-columns: 32px;
    grid-template-rows: repeat(2, 32px);
  }
  .single-area .socket {
    width: 32px;
    height: 32px;
  }
  .single-area .socket-grid {
    gap: 10px;
  }
  .view-intro {
    margin-top: 1px;
    margin-bottom: 20px;
  }
  .view-intro h2 {
    font-size: 19px;
  }
  .view-intro p {
    font-size: 11px;
  }
  .content-panel {
    padding: 21px;
  }
  .position-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .position-fields .field {
    margin-bottom: 15px;
  }
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
  }
  .account-panel {
    max-width: none;
  }
  .notices-panel {
    padding-top: 0;
  }
  .scanner-layout {
    gap: 23px;
  }
  .camera-preview {
    max-height: 400px;
  }
  .scan-alternatives h3 {
    font-size: 15px;
  }
  .camera-panel .muted {
    font-size: 11px;
  }
  .socket-dialog {
    padding: 17px 21px 23px;
  }
  .socket-dialog h2 {
    font-size: 21px;
  }
  .detail-meta {
    grid-template-columns: 86px minmax(0, 1fr);
    font-size: 10px;
  }
  .detail-section h3 {
    font-size: 12px;
  }
  .detail-service {
    font-size: 11px;
  }
  .price-row {
    font-size: 11px;
  }
  .socket-qr {
    width: 220px;
    height: 220px;
  }
  .report-form .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
