:root {
  color-scheme: light;
  --ink: #20251f;
  --muted: #697166;
  --panel: #f8f7f2;
  --panel-raised: #eeeee6;
  --line: rgba(34, 48, 36, .16);
  --accent: #516650;
  --accent-ink: #fff;
  --pine: #233326;
  --paper: #fbf9f4;
  --brown: #785833;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}
body { background: var(--paper); color: var(--ink); }
.topbar { background: var(--paper); border-color: var(--line); box-shadow: 0 3px 14px rgba(27, 35, 26, .035); }
.brand-group { display: flex; align-items: center; gap: 25px; min-width: 0; }
.brand { color: var(--pine); }
.brand-mark { border-radius: 8px; background: var(--pine); color: #fff; }
.site-links { display: flex; align-items: center; gap: 17px; }
.site-links a { color: #60685d; font-family: "Newsreader", serif; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.site-links a:hover { color: var(--brown); text-decoration: underline; text-underline-offset: 4px; }
.topline { color: #747b70; }
.account-label { color: #697166; }
.button { border-color: rgba(35, 51, 38, .22); color: var(--pine); }
.button:hover { border-color: var(--accent); background: rgba(81, 102, 80, .06); }
.button-accent { border-color: var(--pine); background: var(--pine); color: #fff; }
.button-accent:hover { border-color: #354a38; background: #354a38; color: #fff; }
.button-quiet { color: var(--pine); }
.workspace { background: var(--line); }
.map-panel, .gallery-panel { background: var(--panel); }
.workspace.is-gallery-collapsed { grid-template-columns: minmax(0, 1fr) 0; }
.workspace.is-gallery-collapsed .gallery-panel { visibility: hidden; overflow: hidden; padding: 0; border: 0; }
.map-heading h1, .gallery-heading h2, .dialog-top h2 { color: var(--pine); font-family: "Newsreader", serif; font-weight: 500; letter-spacing: -.035em; }
.section-kicker { color: var(--brown); font-family: var(--sans); font-weight: 800; letter-spacing: .14em; }
.map-heading p, .empty-state p { color: var(--muted); }
#wallplace-map { background: #e5e7df; }
.leaflet-control-zoom a { border-color: #d3d8ce !important; background: #fbf9f4 !important; color: var(--pine) !important; }
.leaflet-control-zoom a:hover { background: #eeeee6 !important; }
.leaflet-control-attribution { background: rgba(251, 249, 244, .92) !important; color: #475347 !important; }
.leaflet-control-attribution a { color: #405a42 !important; }
.wallplace-marker { border-color: #fbf9f4; background: #516650; box-shadow: 0 2px 8px rgba(20, 35, 22, .28); }
.wallplace-marker::after { background: #fff; }
.map-hint, .map-status { border-color: rgba(255,255,255,.25); background: rgba(35, 51, 38, .92); color: #fff; }
.hint-dot { background: #dbe6d5; box-shadow: none; }
.count-pill { border-color: #cfd5ca; color: #485648; background: #f2f2ec; }
.map-video-icon { border: 0; background: transparent; overflow: visible !important; }
.map-video-tile { position: relative; width: 112px; height: 63px; overflow: hidden; border: 2px solid rgba(251,249,244,.95); border-radius: 6px; background: #182018; box-shadow: 0 2px 8px rgba(25,35,25,.3); cursor: pointer; isolation: isolate; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.map-video-tile:hover, .map-video-tile:focus-visible, .leaflet-marker-icon.is-selected .map-video-tile { z-index: 900; border-color: #785833; box-shadow: 0 0 0 3px rgba(120,88,51,.36), 0 6px 20px rgba(25,35,25,.4); transform: scale(1.08); outline: none; }
.map-video-tile video, .map-video-tile img.map-video-thumb, .map-video-tile iframe.map-video-iframe { display: block; width: 100%; height: 100%; object-fit: cover; background: #141b14; border: 0; }
.map-video-thumb { position: absolute; inset: 0; z-index: 1; transition: opacity .2s ease; }
.map-video-embed-container { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.map-video-embed-container iframe { width: 100%; height: 100%; border: 0; }
.map-video-interceptor { position: absolute; inset: 0; z-index: 3; background: transparent; }
.map-video-tile.is-playing .map-video-thumb { opacity: 0; }
.map-video-tile.needs-play::after { position: absolute; inset: 0; z-index: 3; background: rgba(35,51,38,.2); content: ""; pointer-events: none; }
.map-video-badge { position: absolute; z-index: 4; top: 3px; right: 3px; padding: 1px 4px; border-radius: 3px; font: 8px var(--mono); font-weight: 700; line-height: 1.2; text-transform: uppercase; pointer-events: none; }
.yt-badge { background: #cc0000; color: #ffffff; }
.direct-badge { background: rgba(35,51,38,.85); color: #ffffff; }
.map-video-label { position: absolute; z-index: 4; right: 3px; bottom: 3px; left: 3px; overflow: hidden; padding: 2px 4px; border-radius: 3px; background: rgba(22,30,22,.88); color: #fff; font-size: 8.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.map-video-play { position: absolute; z-index: 5; top: 50%; left: 50%; width: 26px; height: 26px; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(35,51,38,.82); color: #fff; font-size: 10px; line-height: 1; transform: translate(-50%,-50%); cursor: pointer; }
.map-video-play:hover { background: var(--pine); }
.map-video-tile.is-playing .map-video-play { display: none; }
.video-cluster-icon { border: 0; background: transparent; }
.video-cluster { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid #fbf9f4; border-radius: 50%; background: var(--pine); box-shadow: 0 2px 9px rgba(20,35,22,.32); color: #fff; font-size: 12px; font-weight: 800; }
.video-inspector { min-height: 170px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.inspector-card { display: grid; gap: 8px; }
.inspector-badge { display: inline-flex; width: max-content; padding: 2px 7px; border-radius: 4px; font: 9px var(--mono); font-weight: 700; }
.inspector-preview-frame { width: 100%; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #161f16; border: 1px solid rgba(34,48,36,.12); }
.inspector-preview-frame iframe, .inspector-preview-frame img, .inspector-preview-frame video { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.inspector-title { margin: 0; color: var(--pine); font-family: "Newsreader",serif; font-size: 1.5rem; font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
.inspector-creator, .inspector-coordinates, .inspector-id { margin: 0; color: var(--muted); font-size: .74rem; }
.inspector-id, .inspector-coordinates { font-family: var(--mono); font-size: .63rem; }
.inspector-url { display: block; max-width: 100%; color: #405a42; font-size: .7rem; line-height: 1.5; overflow-wrap: anywhere; }
.inspector-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.inspector-actions .tile-action { min-height: 34px; padding: 0 10px; border-color: #cbd1c7; background: #fff; color: var(--pine); font-size: .68rem; }
.inspector-actions .tile-action:hover { border-color: #788a76; background: #f0f2eb; }
.nearby-list-section { display: flex; min-height: 0; flex: 1; flex-direction: column; padding-top: 16px; }
.nearby-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nearby-list-heading .section-kicker { margin-bottom: 9px; }
.nearby-list-note { color: var(--muted); font-size: .62rem; }
.video-list { display: flex; min-height: 0; flex-direction: column; overflow-y: auto; }
.video-list-item { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 12px; padding: 8px 5px; border: 0; border-top: 1px solid rgba(34,48,36,.09); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.video-list-item:hover, .video-list-item.is-selected { background: rgba(81,102,80,.08); }
.video-list-number { color: #7a8777; font: 10px var(--mono); }
.video-list-copy { display: grid; min-width: 0; gap: 3px; }
.video-list-copy strong, .video-list-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-list-copy strong { color: var(--pine); font-size: .72rem; }
.video-list-copy small { color: var(--muted); font-size: .63rem; }
.nearby-empty { margin: 8px 0; color: var(--muted); font-size: .7rem; }
.inspector-empty { min-height: 145px; border: 0; background: transparent; }
.inspector-empty .empty-symbol { width: 34px; height: 34px; margin-bottom: 7px; }
.inspector-empty h3 { margin-bottom: 4px; font-family: "Newsreader",serif; font-size: 1.05rem; font-weight: 500; }
.inspector-empty p { font-size: .68rem; }
.video-list-item:focus-visible, .map-video-play:focus-visible { outline: 3px solid #8a6844; outline-offset: 2px; }
.empty-state { border-color: #cbd1c7; background: rgba(255,255,255,.38); }
.empty-symbol { border-color: #becaba; color: var(--accent); }
.gallery-footer { border-color: var(--line); color: #72796f; }
.dialog-card { border-color: #d4d8cf; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(24, 34, 25, .2); }
.dialog-card::backdrop { background: rgba(28, 37, 29, .45); backdrop-filter: blur(2px); }
.dialog-copy { color: var(--muted); }
.close-button { border-color: #cbd1c7; color: var(--pine); }
.stack-form label { color: #384338; }
.stack-form input { border-color: #c8cec4; background: #fff; color: var(--ink); }
.stack-form input:focus { border-color: #71836e; box-shadow: 0 0 0 3px rgba(81,102,80,.14); }
.stack-form small, .creator-hint, .form-message { color: #606b5f; }
.form-message[data-error="true"] { color: #9a3e2e; }
.text-button { color: #405a42; }
.button:focus-visible, .tile-action:focus-visible, .icon-button:focus-visible, .gallery-reopen:focus-visible, .close-button:focus-visible, .text-button:focus-visible, .site-links a:focus-visible { outline: 3px solid #8a6844; outline-offset: 3px; }
.gallery-heading-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .gallery-reopen { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 34px; min-height: 34px; border: 1px solid #cbd1c7; border-radius: 7px; background: #fff; color: var(--pine); font-weight: 700; }
.icon-button:hover, .gallery-reopen:hover { border-color: #788a76; background: #f0f2eb; }
.gallery-reopen { position: absolute; z-index: 600; top: 18px; right: 18px; padding: 0 12px; box-shadow: 0 3px 12px rgba(25,35,25,.14); }
[hidden] { display: none !important; }
@media (max-width: 980px) {
  .topbar { height: auto; min-height: 72px; flex-wrap: wrap; gap: 10px 18px; padding: 12px 18px; }
  .brand-group { flex: 1 1 100%; justify-content: space-between; }
  .topline, .account-label { display: none; }
  .account-area { flex: 1 1 100%; justify-content: flex-end; flex-wrap: wrap; }
  .button { white-space: nowrap; }
  .workspace.is-gallery-collapsed { grid-template-columns: minmax(0, 1fr); }
  .workspace.is-gallery-collapsed .gallery-panel { display: none; }
  .gallery-reopen { position: fixed; top: auto; right: 14px; bottom: 16px; }
  .map-video-tile { width: 108px; height: 70px; }
}
@media (max-width: 640px) {
  .topbar { align-items: center; }
  .brand-group { gap: 10px; }
  .site-links { gap: 9px; }
  .site-links a { font-size: .82rem; }
  .brand { font-size: .9rem; }
  .gallery-reopen { bottom: 12px; }
  .map-video-tile { width: 94px; height: 62px; border-radius: 6px; }
  .map-video-label { font-size: 8px; }
  .video-inspector { min-height: 150px; }
}
