@charset "UTF-8";
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(
      1200px 600px at 10% -10%,
      #ffffff 0%,
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(160deg, #e7f1ff 0%, #f7fbff 55%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #0c1220;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      800px 400px at 90% 10%,
      rgba(255, 183, 71, 0.25),
      rgba(255, 183, 71, 0)
    ),
    radial-gradient(
      700px 400px at 15% 80%,
      rgba(33, 101, 255, 0.18),
      rgba(33, 101, 255, 0)
    );
  z-index: 0;
}

/* loading overlay */
#loadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px) saturate(1.05);
}

#loadingOverlay.is-visible {
  display: flex;
}

.loading-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 40px rgba(12, 18, 32, 0.18);
  color: #0c1220;
  font-weight: 600;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(13, 64, 180, 0.2);
  border-top-color: #1d5cff;
  animation: spin 900ms linear infinite;
}

.loading-text {
  font-size: 13px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* マップ全画面 */
#map {
  width: 100%;
  height: 100%;
  position: relative;
  background: #9ebdff;
}

.leaflet-container {
  background: #9ebdff;
}

/* 設定ボタン */
#settingsBtn {
  position: absolute;
  left: 18px;
  top: 80px;
  z-index: 1400;
  background: linear-gradient(180deg, #ffffff, #f2f6ff);
  border: 1px solid rgba(12, 18, 32, 0.08);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.14);
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
  font-size: 18px;
}

#settingsBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(12, 18, 32, 0.18);
}

/* インフォボタン */
#infoBtn {
  position: absolute;
  right: 18px;
  top: 60px;
  z-index: 1400;
  background: linear-gradient(180deg, #ffffff, #f2f6ff);
  border: 1px solid rgba(12, 18, 32, 0.08);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.14);
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
  font-size: 18px;
}

#infoBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(12, 18, 32, 0.18);
}

/* 更新情報ボタン */
#updatesBtn {
  position: absolute;
  right: 18px;
  top: 110px;
  z-index: 1400;
  background: linear-gradient(180deg, #ffffff, #f2f6ff);
  border: 1px solid rgba(12, 18, 32, 0.08);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.14);
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
  font-size: 18px;
}

#updatesBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(12, 18, 32, 0.18);
}

/* パネル */
.panel {
  position: absolute;
  left: 18px;
  top: 120px;
  z-index: 1350;
  min-width: 340px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px) saturate(1.05);
  box-shadow: 0 16px 40px rgba(12, 18, 32, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition:
    transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 180ms ease;
  transform-origin: top left;
}

#infoPanel {
  left: 50%;
  top: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  min-width: min(720px, 92vw);
  max-width: min(820px, 92vw);
  padding: 20px 22px;
}

#updatesPanel {
  top: 168px;
  right: 18px;
  left: auto;
}

.panel.hidden {
  opacity: 0;
  transform: scale(0.985) translateY(-6px);
  pointer-events: none;
}

.panel strong {
  font-family: "Space Grotesk", "Manrope", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.02em;
}

.info-section {
  margin-top: 14px;
}

.info-section p {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #0c1220;
  font-family: "Space Grotesk", "Manrope", "Segoe UI", Arial, sans-serif;
}

.info-section h4 {
  margin: 0 0 6px 0;
  font-size: 18px;
  color: #0c1220;
  font-family: "Space Grotesk", "Manrope", "Segoe UI", Arial, sans-serif;
}

.info-section ul {
  margin: 0;
  padding-left: 16px;
  color: #222;
  font-size: 13px;
}

.credits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.credit-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
}

.credit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  background: rgba(12, 18, 32, 0.06);
  border: 1px solid rgba(12, 18, 32, 0.1);
  box-shadow: 0 8px 14px rgba(12, 18, 32, 0.14);
}

.credit-body {
  display: grid;
  gap: 2px;
}

.credit-name {
  font-weight: 700;
  color: #0c1220;
}

.credit-title {
  font-size: 11px;
  color: rgba(74, 85, 104, 0.75);
}

.credit-role {
  font-size: 11px;
  color: #4a5568;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 18, 32, 0.12);
  box-shadow: 0 8px 18px rgba(12, 18, 32, 0.08);
  color: #0c1220;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 22px rgba(12, 18, 32, 0.14);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.update-entry {
  margin-top: 10px;
}

.update-version {
  font-weight: 700;
  font-size: 14px;
  color: #0c1220;
  font-family: "Space Grotesk", "Manrope", "Segoe UI", Arial, sans-serif;
}

.update-list {
  margin: 6px 0 0 0;
  padding-left: 16px;
  color: #4a5568;
  font-size: 12px;
}

/* pill */
.pill {
  background: rgba(12, 18, 32, 0.06);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #4a5568;
}

/* 入力等 */
.panel label {
  display: block;
  font-size: 13px;
  color: #4a5568;
  margin-top: 6px;
}

.panel input[type="number"],
.panel input[type="text"],
.panel select,
.panel input[type="date"] {
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(12, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

/* 行 */
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ボタン */
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background: linear-gradient(180deg, #1d5cff, #0637b3);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(13, 64, 180, 0.25);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

#applyBtn[data-dirty="1"] {
  background: linear-gradient(180deg, #ff5a5a, #b81414);
  box-shadow: 0 8px 16px rgba(184, 20, 20, 0.28);
}

button.small-btn {
  background: linear-gradient(180deg, #ffffff, #f2f6ff);
  color: #0c1220;
  border: 1px solid rgba(12, 18, 32, 0.08);
  padding: 6px 8px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(12, 18, 32, 0.12);
}

button:active {
  transform: translateY(1px);
}

/* ヒント */
.hint {
  color: #4a5568;
  font-size: 12px;
  margin-top: 8px;
}

/* Date bar: 画面下中央 - 少し上に配置 */
#dateBar {
  position: absolute;
  left: 50%;
  bottom: 80px; /* 少し上に移動 */
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

#dateBar select,
#dateBar input[type="date"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(12, 18, 32, 0.08);
  background: white;
}

#preloadBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* time label */
.time-label {
  font-weight: 600;
  color: #0c1220;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(12, 18, 32, 0.06);
  font-size: 13px;
}

/* date buttons */
.date-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  padding: 6px 8px;
  cursor: pointer;
  color: #0c1220;
}

/* ピクセル情報ボックス（ダイアログ外） */
#pixelOutput {
  position: absolute;
  left: 50%;
  bottom: 152px; /* dateBar より上に表示するが重ならないよう少し上へ */
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

#pixelOutput .pixel-text {
  font-size: 13px;
  color: #0c1220;
  white-space: pre-line;
}

/* zoom / coords boxes */
.zoom-info {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.14);
  font-size: 13px;
}

.coords {
  position: absolute;
  left: 18px;
  bottom: 80px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.14);
  font-size: 13px;
}

/* custom attribution (bottom-right) */
.custom-attribution {
  position: fixed;
  right: 6px;
  bottom: 14px;
  z-index: 2001;
  font-size: 11px;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
  color: blue;
}

.custom-attribution a {
  color: inherit;
  text-decoration: none;
}

.custom-attribution a:hover {
  text-decoration: underline;
}

/* color swatch */
.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

/* canvas & marker */
#pixelGridCanvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.pixel-marker {
  position: absolute;
  border: 2px solid #ff7a00;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}

.pixel-effects-root {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

/* tile pixelated helper (still available) */
.tile-pixelated .leaflet-tile {
  image-rendering: pixelated;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

/* スライダー周りのスタイル - dateBar の下に表示するため bottom を低く */
#dateSliderBar {
  position: fixed;
  left: 50%;
  bottom: calc(
    18px + env(safe-area-inset-bottom, 0px)
  ); /* dateBar より下に表示 */
  transform: translateX(-50%);
  z-index: 1200;
  width: min(720px, 86%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

#dateSlider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #c7d2fe, #93c5fd);
  outline: none;
}

#dateSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1d5cff;
  box-shadow: 0 4px 10px rgba(29, 92, 255, 0.3);
  border: 2px solid white;
  cursor: pointer;
}

#dateSliderInfo {
  min-width: 72px;
  text-align: center;
  font-size: 13px;
  color: #0c1220;
}

/* Shared collaboration pins */
#collabBtn {
  position: absolute; left: 18px; top: 132px; z-index: 1400;
  padding: 10px 12px; border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 12px; background: linear-gradient(180deg, #ffffff, #f2f6ff);
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.14); font-size: 18px; cursor: pointer;
}
#collabBtn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(12, 18, 32, 0.18); }
#pinVisibilityBtn {
  position: absolute; right: 18px; bottom: 42px; z-index: 1400;
  min-width: 102px; cursor: pointer; font-weight: 700;
}
#pinVisibilityBtn.is-off { opacity: 0.7; filter: grayscale(0.75); }
.collab-panel {
  position: fixed; z-index: 1500; top: 18px; right: 18px;
  width: min(400px, calc(100vw - 36px)); max-height: calc(100vh - 36px);
  overflow-y: auto; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px; background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(12, 18, 32, 0.18);
  backdrop-filter: blur(10px) saturate(1.08);
  transition: opacity 160ms ease, transform 180ms ease;
}
.collab-panel.hidden { opacity: 0; transform: translateX(18px); pointer-events: none; }
.collab-view.hidden, #collabBrowseView.hidden, .collab-panel .hidden { display: none !important; }
.collab-header, .collab-view-title, .collab-auth, .collab-actions,
.comment-header, .comment-actions { display: flex; align-items: center; }
.collab-header, .collab-view-title { justify-content: space-between; gap: 12px; }
.collab-header-actions { display: flex; align-items: center; gap: 7px; }
.notification-btn { position: relative; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(29, 92, 255, 0.1); font-size: 17px; cursor: pointer; }
.notification-badge { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: #d92d20; color: #fff; font: 700 10px/14px "Manrope", "Segoe UI", Arial, sans-serif; }
.collab-header strong { font: 700 19px "Space Grotesk", "Manrope", "Segoe UI", Arial, sans-serif; }
.collab-muted, .collab-hint, .collab-coordinate, .pin-list-meta,
.pin-detail-byline { color: #4a5568; font-size: 12px; }
.icon-btn {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(12, 18, 32, 0.06); font-size: 22px; line-height: 1; cursor: pointer;
}
.collab-auth {
  justify-content: space-between; gap: 8px; margin: 14px 0; padding: 10px;
  border-radius: 10px; background: rgba(29, 92, 255, 0.07); font-size: 13px;
}
.collab-auth button { padding: 7px 10px; font-size: 12px; }
.collab-toolbar, .collab-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.collab-panel label { display: block; color: #4a5568; font-size: 12px; font-weight: 600; }
.collab-panel input, .collab-panel select, .collab-panel textarea {
  width: 100%; margin-top: 4px; padding: 9px 10px;
  border: 1px solid rgba(12, 18, 32, 0.14); border-radius: 9px;
  background: rgba(255, 255, 255, 0.94); color: #0c1220; font: inherit;
}
.collab-panel textarea { resize: vertical; }
.favorite-filter { display: flex !important; align-items: center; gap: 7px; width: fit-content; margin-top: 9px; cursor: pointer; }
.collab-panel .favorite-filter input { width: auto; margin: 0; accent-color: #e6a700; }
.collab-view > label { margin-top: 12px; }
.collab-primary, .collab-panel .secondary, .collab-panel .danger {
  padding: 9px 12px; border: 0; border-radius: 9px; font-weight: 700; cursor: pointer;
}
.collab-primary { background: #1d5cff; color: #fff; }
.collab-primary:hover { background: #164bd4; }
.collab-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.collab-primary.is-active { background: #d65d00; }
.collab-panel .secondary { background: rgba(12, 18, 32, 0.08); color: #0c1220; }
.collab-panel .danger { background: #c62828; color: #fff; }
#startPinBtn { width: 100%; margin-top: 12px; }
.collab-hint { margin-top: 10px; padding: 9px; border-radius: 8px; background: rgba(255, 122, 0, 0.12); }
.link-btn {
  padding: 2px 4px; border: 0; background: transparent; color: #174dcc;
  font-size: 12px; cursor: pointer; text-decoration: underline;
}
.danger-text { color: #b42318; }
.pin-list { display: grid; gap: 8px; margin-top: 12px; }
.pin-list-row { position: relative; display: grid; }
.pin-list-item {
  display: grid; gap: 5px; width: 100%; padding: 10px;
  border: 1px solid rgba(12, 18, 32, 0.09); border-radius: 10px;
  background: rgba(255, 255, 255, 0.72); color: #0c1220; text-align: left; cursor: pointer;
}
.pin-list-item:hover { border-color: rgba(29, 92, 255, 0.35); background: #fff; }
.pin-list-row .pin-list-item { padding-right: 43px; }
.favorite-list-btn { position: absolute; top: 7px; right: 7px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(12, 18, 32, 0.06); color: #6b7280; font-size: 21px; cursor: pointer; }
.favorite-list-btn.is-favorite, .favorite-detail-btn.is-favorite { color: #ad7400; background: #fff4bf; }
.favorite-list-btn:disabled { opacity: 0.5; }
.pin-list-top, .pin-detail-meta { display: flex; align-items: center; gap: 6px; }
.pin-list-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-badge, .status-chip {
  display: inline-flex; align-items: center; width: fit-content; padding: 3px 7px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
}
.pin-badge.kind-plan { background: #fff0df; color: #a64800; }
.pin-badge.kind-working { background: #fff8c5; color: #765b00; }
.pin-badge.kind-report { background: #e7f0ff; color: #174dcc; }
.pin-badge.kind-question { background: #f3e8ff; color: #7431a8; }
.status-chip { background: rgba(12, 18, 32, 0.08); color: #4a5568; }
.status-chip.status-in_progress { background: #e7f0ff; color: #174dcc; }
.status-chip.status-review { background: #fff0df; color: #a64800; }
.status-chip.status-done { background: #e1f6e8; color: #18743b; }
.status-chip.status-on_hold { background: #eceff3; color: #596273; }
.collab-view { padding-top: 4px; }
.collab-view-title { margin-bottom: 12px; }
.collab-coordinate { margin: 8px 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.collab-actions { gap: 8px; margin-top: 14px; }
.collab-error { min-height: 18px; margin-top: 7px; color: #b42318; font-size: 12px; }
.collab-empty { margin: 12px 0; color: #4a5568; font-size: 13px; text-align: center; }
.pin-detail-title {
  margin: 12px 0 6px; font: 700 21px "Space Grotesk", "Manrope", "Segoe UI", Arial, sans-serif;
  overflow-wrap: anywhere;
}
.pin-detail-body, .comment-body { margin: 8px 0; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.pin-related-link { display: inline-block; margin-top: 5px; color: #174dcc; font-size: 13px; }
.comments-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(12, 18, 32, 0.08); }
.comments-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.comments-section h3 { margin: 0; font: 700 15px "Space Grotesk", "Manrope", "Segoe UI", Arial, sans-serif; }
.comment-list {
  display: grid; gap: 8px; max-height: min(44vh, 460px);
  overflow-y: auto; padding-right: 3px;
}
.comment-item { padding: 9px 10px; border-radius: 9px; background: rgba(12, 18, 32, 0.045); }
.comment-item.is-own-comment { border-left: 3px solid #1d5cff; background: rgba(29, 92, 255, 0.09); }
.own-comment-label { color: #174dcc; }
.comment-header { justify-content: space-between; gap: 8px; font-size: 12px; }
.comment-header time { color: #4a5568; font-size: 11px; }
.comment-body { font-size: 13px; }
.comment-details summary { width: fit-content; color: #174dcc; font-size: 12px; cursor: pointer; }
.comment-details[open] summary { margin-bottom: 5px; }
.comment-actions { justify-content: flex-end; gap: 5px; }
.comment-form { margin-top: 10px; }
.comment-form .collab-primary { margin-top: 7px; }
.leaflet-collab-pane { z-index: 1170 !important; }
.collab-marker-wrap { background: transparent; border: 0; }
.collab-marker-title {
  position: absolute; left: 39px; top: 7px; width: max-content; max-width: 240px;
  overflow: hidden; padding: 3px 7px; border: 1px solid rgba(12, 18, 32, 0.14);
  border-radius: 7px; background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 7px rgba(12, 18, 32, 0.18); color: #0c1220;
  font-size: 12px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis;
  white-space: nowrap; pointer-events: none;
}
.collab-marker {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 3px solid #fff; border-radius: 50% 50% 50% 7px;
  box-shadow: 0 3px 10px rgba(12, 18, 32, 0.36); transform: rotate(-45deg);
  background: #ff7a00; font-size: 17px;
}
.collab-marker > span { transform: rotate(45deg); }
.collab-marker.kind-working { background: #f1c40f; }
.collab-marker.kind-report { background: #3b82f6; }
.collab-marker.kind-question { background: #9b59b6; }
.collab-marker.status-done { filter: grayscale(0.65); opacity: 0.72; }
.collab-tooltip { display: -webkit-box; width: 100%; overflow: hidden; white-space: normal; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.collab-content-tooltip {
  width: min(280px, calc(100vw - 48px));
  min-width: min(180px, calc(100vw - 48px));
  padding: 7px 9px;
  white-space: normal;
  line-height: 1.5;
}
.collab-cluster-wrap { background: transparent; border: 0; }
.collab-cluster { display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid #fff; border-radius: 50%; background: #1d5cff; box-shadow: 0 3px 12px rgba(12, 18, 32, 0.4); color: #fff; font: 800 14px "Space Grotesk", "Manrope", "Segoe UI", Arial, sans-serif; }
.collab-cluster-list { margin: 7px 0 0; padding-left: 18px; }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notification-list { display: grid; gap: 8px; margin-top: 10px; }
.notification-item { display: grid; gap: 3px; width: 100%; padding: 10px; border: 1px solid rgba(12, 18, 32, 0.09); border-radius: 10px; background: rgba(255, 255, 255, 0.72); color: #0c1220; text-align: left; cursor: pointer; }
.notification-item.is-unread { border-color: rgba(29, 92, 255, 0.3); background: rgba(29, 92, 255, 0.09); }
.notification-item.is-unread::before { content: "未読"; color: #174dcc; font-size: 10px; font-weight: 800; }
.notification-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-message { font-size: 12px; }
.notification-preview, .notification-time { color: #4a5568; font-size: 11px; }
.pin-placement-mode, .pin-placement-mode .leaflet-grab { cursor: crosshair; }
.mobile-only-btn {
  display: none;
}

/* Mobile optimizations */
@media (max-width: 720px) {
  .mobile-only-btn {
    display: inline-block;
    margin-left: 8px;
  }
  #settingsBtn,
  #infoBtn,
  #updatesBtn,
  #collabBtn {
    padding: 8px 10px;
    font-size: 16px;
    border-radius: 10px;
  }
  #settingsBtn {
    left: 12px;
    top: 90px;
  }
  #infoBtn {
    right: 12px;
    top: 90px;
  }
  #updatesBtn {
    right: 12px;
    top: 135px;
  }
  #collabBtn { left: 12px; top: 135px; }
  #pinVisibilityBtn { right: 12px; bottom: 42px; min-width: 94px; }
  .collab-panel {
    inset: 8px 8px auto 8px;
    width: auto;
    max-height: calc(100vh - 16px);
    padding: 14px;
  }
  .panel {
    left: 10px;
    right: 10px;
    top: 110px;
    min-width: unset;
    max-width: calc(100vw - 20px);
    padding: 14px;
  }
  #infoPanel,
  #updatesPanel {
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: min(92vw, 540px);
    max-height: 80vh;
    overflow: auto;
  }
  #dateSliderBar {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: min(560px, 92%);
    padding: 6px 10px;
  }
  #pixelOutput {
    bottom: 140px;
    padding: 6px 10px;
    gap: 8px;
    max-width: 92vw;
  }
  .zoom-info {
    right: 10px;
    top: 12px;
  }
  .coords {
    right: 10px;
    left: auto;
    top: 50px;
    bottom: auto;
  }
  .credits {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  #preloadBtn {
    padding: 6px;
    font-size: 12px;
  }
  #preloadBtn .preload-text {
    display: none;
  }
  #pixelOutput {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  #pixelOutput .pixel-text {
    text-align: left;
  }
}
#dateBar {
  gap: 8px;
  padding: 6px 10px;
}

#preloadBtn {
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1;
}
