#view {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
#tools {
  transform: scale(var(--ot-ui-scale, 1));
  transform-origin: left bottom;
}
aside.panel.left {
  transform: scale(var(--ot-ui-scale, 1));
  transform-origin: top left;
}
aside.panel.right {
  transform: scale(var(--ot-ui-scale, 1));
  transform-origin: top right;
}
#ot-theme-mascot {
  left: 50%;
  right: auto;
  bottom: 70px;
  transform: translateX(-50%);
}
#status { display: none !important; }
aside.panel.left {
  width: fit-content;
  min-width: 0;
  max-width: 80px;
  padding: 8px;
}
aside.panel.right {
  width: fit-content;
  min-width: 0;
  padding: 8px 12px;
}
.week-km {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.street-label {
  font: 600 11px/1.1 system-ui, sans-serif;
  color: #f4f1ea;
  text-shadow: 0 1px 2px #111, 0 0 4px #111;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.04em;
}
html[data-ot-theme="light"] .street-label {
  color: #1c1e24;
  text-shadow: 0 1px 2px #fff, 0 0 4px #fff;
}
.time-menu {
  min-width: 220px;
  padding: 10px 12px;
}
.time-menu-label {
  opacity: 0.72;
  font-size: 12px;
  margin-bottom: 6px;
}
.time-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.time-row input[type="range"] {
  flex: 1 1 auto;
  width: 140px;
  min-width: 0;
  height: 18px;
  margin: 0;
  accent-color: #7ab8ff;
  cursor: pointer;
}
#time-label {
  min-width: 5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 12px;
}
#labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.map-ping {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #111;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  cursor: pointer;
}
html[data-ot-theme="light"] .map-ping {
  background: #111111;
  border-color: #fff;
}
html[data-ot-theme="unicorn"] .map-ping {
  background: #e8c24a;
  border-color: #fff;
}
.map-ping.edit,
.map-pin.edit {
  pointer-events: auto;
  cursor: pointer;
}
#ping-time {
  position: fixed;
  z-index: 700;
  pointer-events: none;
}
.map-pin {
  width: 0;
  height: 0;
  pointer-events: auto;
  cursor: pointer;
  color: #ffffff;
}
html[data-ot-theme="light"] .map-pin {
  color: #111111;
}
html[data-ot-theme="unicorn"] .map-pin {
  color: #e8c24a;
}
.map-pin svg path {
  fill: currentColor;
  stroke: #111;
}
html[data-ot-theme="light"] .map-pin svg path {
  stroke: #fff;
}
html[data-ot-theme="unicorn"] .map-pin svg path {
  stroke: #fff;
}
.map-pin svg circle {
  fill: #111;
}
html[data-ot-theme="light"] .map-pin svg circle {
  fill: #fff;
}
html[data-ot-theme="unicorn"] .map-pin svg circle {
  fill: #fff;
}
.map-pin svg {
  position: absolute;
  left: -11px;
  bottom: 0;
  width: 22px;
  height: 34px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}
.map-pin.fresh svg {
  animation: last-pulse 1.4s ease-out infinite;
}
.ot-venue-pin {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ot-venue-pin.admin {
  pointer-events: auto;
  cursor: grab;
}
.ot-venue-pin.selected img {
  outline: 2px solid #e8c24a;
  outline-offset: 2px;
}
.ot-venue-pin img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}
.ot-venue-cluster {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(20, 22, 28, 0.94);
  border: 2px solid #e8c24a;
  color: #f2f3f6;
  font: 700 12px/26px system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.fence-label {
  font: 700 11px/1.1 system-ui, sans-serif;
  color: #f4f1ea;
  text-shadow: 0 1px 2px #111, 0 0 4px #111;
  white-space: nowrap;
  pointer-events: none;
  padding: 1px 4px;
  border-radius: 4px;
}
.fence-label.clickable,
.fence-label.edit {
  pointer-events: auto;
  cursor: pointer;
}
.fence-label.selected {
  color: #e8c24a;
  text-shadow: 0 1px 2px #111, 0 0 6px rgba(232, 194, 74, 0.85);
}
.fence-label.home { color: #7ec8ff; }
.fence-label.work { color: #ffc072; }
.fence-label.rest { color: #c084fc; }
html[data-ot-theme="light"] .fence-label {
  text-shadow: 0 1px 2px #fff, 0 0 4px #fff;
}
.map-last {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8c24a;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45), 0 0 12px rgba(232, 194, 74, 0.8);
}
.map-last.fresh {
  animation: last-pulse 1.4s ease-out infinite;
}
html[data-ot-theme="light"] .ot-venue-pin {
  background: transparent;
}
html[data-ot-theme="light"] .ot-venue-cluster {
  background: rgba(32, 34, 40, 0.92);
  color: #f3f4f6;
}
html[data-ot-theme="light"] .tool-btn,
html[data-ot-theme="light"] .theme-btn,
html[data-ot-theme="light"] .panel,
html[data-ot-theme="light"] .tool-menu,
html[data-ot-theme="light"] .time-menu {
  background: rgba(32, 34, 40, 0.92);
  color: #f3f4f6;
  border-color: rgba(0, 0, 0, 0.4);
}
html[data-ot-theme="light"] .tool-btn svg {
  color: #f3f4f6;
}
html[data-ot-theme="unicorn"] .tool-btn,
html[data-ot-theme="unicorn"] .theme-btn,
html[data-ot-theme="unicorn"] .panel,
html[data-ot-theme="unicorn"] .tool-menu,
html[data-ot-theme="unicorn"] .time-menu {
  background: rgba(18, 12, 36, 0.92);
  color: #e8fff8;
  border-color: rgba(0, 255, 220, 0.7);
}
.visit-icons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.visit-ico {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.visit-ico img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.visit-ico span {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
}
.tool-drop { position: relative; }
.tool-menu {
  position: absolute;
  left: 0;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  min-width: 110px;
  border-radius: 12px;
  background: rgba(28, 30, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 40;
}
.tool-menu[hidden] { display: none; }
html[data-ot-theme="light"] .tool-menu {
  background: rgba(250, 248, 242, 0.96);
  color: #1c1e24;
}
#attrib { display: none !important; }
