/* The map and the drive, in a window over the survey's last page (js/townmap.js).
   Full screen on phones; on larger screens a large rounded window over the page. The
   same glass, type and colours as the survey: ink for the controls, the logo red for
   hazards and for you. */
html.tm-open { overflow: hidden; }

.tm {
  --tm-bar: 3.75rem;
  --tm-land: #eef3f6;
  --tm-navy: #1b2b3a;
  --tm-glass: linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.8));
  --tm-edge: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px rgb(35 31 32 / 0.1), 0 10px 30px -16px rgb(20 40 60 / 0.45);
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--tm-land);
}
.tm[open] { display: flex; flex-direction: column; animation: tm-in 0.32s var(--ease); }
.tm::backdrop { background: rgb(16 24 32 / 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: tm-fade 0.3s ease; }
@keyframes tm-in { from { opacity: 0; translate: 0 14px; } }
@keyframes tm-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tm[open], .tm::backdrop { animation: none; } }
@media (min-width: 48rem) {
  .tm {
    inset: 0;
    margin: auto;
    width: min(100vw - 3rem, 92rem);
    height: min(100dvh - 3rem, 62rem);
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgb(35 31 32 / 0.08), 0 40px 90px -30px rgb(10 20 30 / 0.6);
  }
}
.tm button { font: inherit; color: inherit; }
.tm svg { flex: none; }

/* ---------- The bar: title, Map / Drive, close ---------- */
.tm-bar {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  height: var(--tm-bar);
  padding: 0 0.7rem 0 1.4rem;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 1px 0 rgb(35 31 32 / 0.08);
  position: relative;
  z-index: 5;
}
.tm-title { margin: 0; font-size: 1rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-tabs, .tm-seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 999px;
  background: rgb(35 31 32 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(35 31 32 / 0.06);
}
.tm-tabs button, .tm-seg button {
  min-height: 36px;
  min-width: 5.5rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.tm-tabs [aria-selected='true'], .tm-seg [aria-pressed='true'] { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px rgb(35 31 32 / 0.06), 0 6px 16px -10px rgb(20 40 60 / 0.55); }
@media (hover: hover) { .tm-tabs button:hover, .tm-seg button:hover { color: var(--ink); } }
.tm-x {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgb(35 31 32 / 0.06);
  cursor: pointer;
  transition: background-color 0.2s;
}
.tm-x svg, .tm-near-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (hover: hover) { .tm-x:hover { background: rgb(35 31 32 / 0.12); } }
.tm :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 34rem) {
  .tm-bar { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0 0.6rem; padding-top: env(safe-area-inset-top); height: calc(var(--tm-bar) + env(safe-area-inset-top)); }
  .tm-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tm-tabs { grid-column: 1; }
  .tm-x { grid-column: 3; }
}

.tm-pane { position: relative; flex: 1; min-height: 0; }
.tm-pane[hidden] { display: none; }

/* ---------- The map ---------- */
.tm-stage { position: absolute; inset: 0; }
.tm .tm-map { position: absolute; inset: 0; background: var(--tm-land); } /* over mapbox-gl.css's .mapboxgl-map */
.tm-find { position: absolute; z-index: 3; top: 14px; left: 14px; width: min(24rem, calc(100% - 28px)); }
.tm-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 50px;
  padding: 0 0.5rem 0 1.05rem;
  border-radius: 999px;
  background: var(--tm-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--tm-edge);
}
.tm-search:focus-within { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(27 43 58 / 0.14), 0 0 0 4px rgb(58 127 176 / 0.16), 0 12px 30px -16px rgb(20 40 60 / 0.5); }
.tm .tm-search input:focus, .tm .tm-search input:focus-visible { outline: none; }
.tm-search svg { width: 18px; height: 18px; color: var(--muted); }
.tm-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); }
.tm-search input::placeholder { color: #7b848b; }
.tm-search input::-webkit-search-cancel-button { display: none; }
.tm-clear { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgb(35 31 32 / 0.07); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.tm-clear[hidden] { display: none; }
.tm-sugg {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  max-height: min(22rem, 50vh);
  overflow-y: auto;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: var(--tm-edge);
}
.tm-sugg[hidden] { display: none; }
.tm-sugg li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.7rem 0.9rem; border-radius: 14px; font-size: 0.98rem; cursor: pointer; }
.tm-sugg li small { font-size: 0.78rem; color: var(--muted); }
.tm-sugg li[aria-selected='true'], .tm-sugg li:not([aria-disabled]):hover { background: rgb(35 31 32 / 0.06); }
.tm-sugg li[aria-disabled] { color: var(--muted); cursor: default; }

.tm-style { position: absolute; z-index: 2; top: 14px; right: 14px; background: var(--tm-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--tm-edge); }
.tm-style button { min-width: 0; min-height: 40px; }

.tm-legend {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  max-width: calc(100% - 28px - 3.5rem);
  padding: 0.5rem 0.55rem 0.5rem 1rem;
  border-radius: 22px;
  background: var(--tm-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--tm-edge);
  font-size: 0.8rem;
}
.tm-legend span { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; }
.tm-legend i { width: 18px; height: 5px; border-radius: 3px; background: var(--c); }
.tm-legend i.dash { background: repeating-linear-gradient(90deg, #8b9196 0 4px, transparent 4px 7px); }
.tm-minor { min-height: 32px; padding: 0 0.85rem; border: 0; border-radius: 999px; background: rgb(35 31 32 / 0.06); font-size: 0.8rem !important; cursor: pointer; }
.tm-minor[aria-pressed='true'] { background: var(--ink); color: #fff !important; }

.tm-status {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  margin: 0;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--tm-glass);
  box-shadow: var(--tm-edge);
  font-size: 0.92rem;
  white-space: nowrap;
}
.tm-status[hidden] { display: none; }
.tm-status.is-error { white-space: normal; text-align: center; max-width: calc(100% - 2rem); border-radius: 18px; color: var(--alert); }

/* What is near the address: a panel on the left; a sheet from the bottom on phones */
.tm-near {
  position: absolute;
  z-index: 3;
  top: 76px;
  left: 14px;
  bottom: 70px;
  width: min(24rem, calc(100% - 28px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--tm-edge);
}
.tm-near[hidden] { display: none; }
.tm-near-head { position: relative; flex: none; padding: 1.1rem 1.15rem 1rem; box-shadow: 0 1px 0 rgb(35 31 32 / 0.08); }
.tm-near-x { position: absolute; top: 0.7rem; right: 0.7rem; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgb(35 31 32 / 0.06); cursor: pointer; }
.tm-near .where { margin: 0; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tm-near h3 { margin: 0.25rem 2.5rem 0 0; font-size: 1.3rem; font-weight: 400; letter-spacing: -0.015em; }
.tm-near .tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin: 0.9rem 0 0; }
.tm-near .tally > div { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.55rem 0.7rem; border-radius: 14px; background: rgb(35 31 32 / 0.045); }
.tm-near .tally b { font-size: 1.5rem; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.tm-near .tally span { font-size: 0.74rem; color: var(--muted); }
.tm-near .tally .t3 b { color: var(--accent-ink); }
.tm-radius { display: grid; margin-top: 0.8rem; background: rgb(35 31 32 / 0.06); }
.tm-radius button { min-width: 0; min-height: 34px; font-size: 0.85rem; }
.tm-nlist { list-style: none; flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 0.4rem; }
.tm-nlist button {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.45rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: start;
  cursor: pointer;
}
.tm-nlist button:hover, .tm-nlist button:focus-visible { background: rgb(35 31 32 / 0.05); }
.tm-nlist img { width: 4.2rem; height: 3.15rem; object-fit: cover; border-radius: 9px; background: #d5dde3; }
.tm-nlist .t { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; font-size: 0.9rem; font-weight: 500; }
.tm-nlist .t small { font-weight: 400; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-nlist .d { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-more { flex: none; margin: 0 0.8rem 0.8rem; min-height: 40px; border: 0; border-radius: 999px; background: rgb(35 31 32 / 0.06); font-size: 0.88rem !important; cursor: pointer; }
.tm-near .none { margin: 0; padding: 1rem 1.15rem; font-size: 0.9rem; color: var(--muted); }
.tm-peek-open { display: none; }
.tm-near.is-peek :is(.tally, .tm-radius, .tm-nlist, .tm-more, .none) { display: none; }
.tm-near.is-peek .tm-near-head { box-shadow: none; }
.tm-near.is-peek .tm-peek-open { display: inline-flex; align-items: center; min-height: 34px; margin-top: 0.6rem; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: 0.85rem !important; font-weight: 500; cursor: pointer; }
@media (max-width: 47.99rem) {
  .tm-near { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 46%; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .tm-near-head { padding: 0.95rem 1rem 0.85rem; }
  .tm-near h3 { font-size: 1.15rem; }
  .tm-near .tally { margin-top: 0.7rem; }
  .tm-near .tally b { font-size: 1.25rem; }
  .tm-style { top: 72px; right: 14px; }
  .tm-legend { bottom: 12px; left: 12px; font-size: 0.74rem; gap: 0.3rem 0.6rem; padding-left: 0.85rem; }
}

/* severity chips, grades and the home pin */
.tm-sev { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tm-sev i { width: 8px; height: 8px; border-radius: 50%; background: var(--tm-navy); }
.tm-sev.s3 { color: var(--accent-ink); }
.tm-sev.s3 i { background: #ff3b44; }
.tm-sev.s2 { color: var(--ink); }
.tm-sev.s1 i { background: none; box-shadow: inset 0 0 0 1.5px var(--tm-navy); }
.tm-grade { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-inline-end: 0.45rem; border-radius: 6px; background: var(--c); color: #fff; font-size: 0.8rem; font-weight: 600; vertical-align: 0.1em; }
.tm-home { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3.5px #fff, 0 0 0 9px rgb(163 11 63 / 0.28), 0 6px 14px rgb(0 0 0 / 0.35); }

/* Mapbox's own popups and controls, in the site's style */
.tm .mapboxgl-popup-content { padding: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgb(35 31 32 / 0.08), 0 18px 40px -16px rgb(10 20 30 / 0.5); font-family: var(--sans); }
.tm .mapboxgl-popup-close-button { top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / 0.9); font-size: 18px; line-height: 1; color: var(--ink); }
.tm .mapboxgl-popup-tip { display: none; }
.tm-pop { width: 17.5rem; max-width: 100%; }
.tm-pop img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #d5dde3; }
/* a popup's picture is a frame of the drive: it opens the drive there */
.tm-pop-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.tm-pop-img::after { content: ''; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgb(27 43 58 / 0.86) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E") center / 16px no-repeat; transition: background-color 0.2s; }
@media (hover: hover) { .tm-pop-img:hover::after { background-color: var(--accent); } }
.tm .tm-pop-img:focus-visible { outline-offset: -3px; }
.tm-pop .b { padding: 0.8rem 1rem 1rem; }
.tm-pop h3 { display: flex; align-items: center; margin: 0; padding-right: 1.5rem; font-size: 1rem; font-weight: 500; }
.tm-pop p { margin: 0.4rem 0 0; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.tm-pop p.o { font-size: 0.78rem; }
.tm-link { display: inline-flex; align-items: center; min-height: 36px; margin-top: 0.75rem; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: 0.85rem !important; font-weight: 500; cursor: pointer; }
@media (hover: hover) { .tm-link:hover { background: var(--accent); } }
.tm .mapboxgl-ctrl-group { border-radius: 14px; box-shadow: var(--tm-edge); }
@media (max-width: 34rem) {
  .tm-pop { width: 15.5rem; }
  .tm-pop img { aspect-ratio: 16 / 10; }
  .tm-pop .b { padding: 0.7rem 0.9rem 0.85rem; }
}
.tm .mapboxgl-ctrl-bottom-right { margin: 0 6px 6px 0; }
@media (max-width: 47.99rem) { .tm .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-group { display: none; } }

/* ---------- The drive ---------- */
.tm-drive { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 21rem; grid-template-rows: auto minmax(0, 1fr); }
/* the address box, moved here from the map while the drive is showing (js/townmap.js) */
.tm-dfind { grid-column: 2; grid-row: 1; position: relative; z-index: 6; padding: 1rem 1rem 0 0; }
.tm-dfind .tm-find { position: relative; top: auto; left: auto; width: 100%; }
.tm-dfind .tm-search { height: 46px; }
.tm-dfind .tm-sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; }
.tm-drive > .tm-main { grid-column: 1; grid-row: 1 / span 2; }
.tm-drive > .tm-rail { grid-column: 2; grid-row: 2; }
/* the photo as large as fits, its controls exactly as wide as it is */
.tm-main { display: flex; flex-direction: column; justify-content: center; gap: 0.8rem; min-width: 0; min-height: 0; padding: 1rem 1.25rem 1.1rem; container-type: size; }
.tm-main > * { flex: none; width: min(100cqw, (100cqh - 7rem) * 4 / 3); margin-inline: auto; }
.tm-view {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: #c9d6df;
  box-shadow: 0 0 0 1px rgb(35 31 32 / 0.08), 0 24px 50px -30px rgb(20 40 60 / 0.55);
}
.tm-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-view .hit { cursor: pointer; }
.tm-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 80px);
  padding: 0.45rem 0.5rem 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 0 0 1px rgb(35 31 32 / 0.08);
  font-size: 0.92rem;
  font-weight: 500;
}
.tm-tag:empty { display: none; }
.tm-tag .g { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.35rem; border-radius: 999px; background: var(--c); color: #fff; font-size: 0.78rem; font-weight: 600; }
.tm-tag .g.none { background: rgb(35 31 32 / 0.08); color: var(--muted); font-weight: 500; }
.tm-compass { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 0.9); box-shadow: 0 0 0 1px rgb(35 31 32 / 0.08); }
.tm-compass i { width: 0; height: 0; border-inline: 6px solid transparent; border-bottom: 18px solid var(--accent); transform-origin: 50% 60%; transition: transform 0.35s var(--ease); translate: 0 -2px; }

.tm-controls { display: flex; align-items: center; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-block: -2px; }
.tm-controls::-webkit-scrollbar { display: none; }
.tm-controls > * { flex: none; }
.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.85);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(35 31 32 / 0.1);
  font-size: 0.92rem !important;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.tm-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tm-btn.is-go { background: var(--ink); color: #fff !important; box-shadow: none; }
.tm-btn[aria-pressed='true'] { background: var(--ink); color: #fff !important; }
.tm-btn:disabled { opacity: 0.4; cursor: default; }
@media (hover: hover) { .tm-btn:not(:disabled):hover { background: #fff; } .tm-btn.is-go:not(:disabled):hover { background: var(--accent); } }
.tm-turns { display: contents; }
.tm-btn.is-turn { background: rgb(255 255 255 / 0.55); font-weight: 400; }
.tm-scrub { margin: 0; accent-color: var(--ink); }

.tm-rail { display: flex; flex-direction: column; gap: 1rem; min-height: 0; overflow-y: auto; padding: 0.9rem 1rem 1.1rem 0; }
.tm-mini { position: relative; flex: none; height: 15rem; overflow: hidden; border-radius: 20px; box-shadow: 0 0 0 1px rgb(35 31 32 / 0.1); }
.tm-mini canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.tm-zoom { position: absolute; top: 8px; right: 8px; display: grid; overflow: hidden; border-radius: 12px; background: rgb(255 255 255 / 0.92); box-shadow: 0 0 0 1px rgb(35 31 32 / 0.1); }
.tm-zoom button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.1rem !important; cursor: pointer; }
.tm-zoom button + button { box-shadow: 0 -1px 0 rgb(35 31 32 / 0.1); }
.tm-here h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.tm-sub { margin: 0.25rem 0 0; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.tm-dlist { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.tm-dlist button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.7);
  box-shadow: 0 0 0 1px rgb(35 31 32 / 0.07);
  text-align: start;
  cursor: pointer;
}
.tm-dlist button[aria-current='true'], .tm-dlist button:hover { background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.tm-dlist .sw { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 2.5px var(--c), 0 0 0 1px rgb(0 0 0 / 0.25); }
.tm-dlist .t { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; font-size: 0.88rem; font-weight: 500; }
.tm-dlist .t small { font-size: 0.76rem; font-weight: 400; line-height: 1.3; color: var(--muted); }
.tm-fine { margin: auto 0 0; font-size: 0.76rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 47.99rem) {
  .tm-drive { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .tm-dfind { padding: 0.75rem 0.75rem 0; }
  .tm-main { padding: 0.75rem 0.75rem 0.9rem; container-type: normal; }
  .tm-main > * { width: 100%; margin-inline: 0; }
  .tm-view { border-radius: 18px; }
  .tm-controls { flex-wrap: wrap; gap: 0.4rem; overflow: visible; }
  .tm-btn { min-height: 42px; padding: 0 0.95rem; }
  .tm-rail { overflow: visible; padding: 0 0.75rem calc(1.2rem + env(safe-area-inset-bottom)); }
  .tm-mini { height: 12rem; }
  .tm-compass { width: 38px; height: 38px; top: 8px; right: 8px; }
  .tm-tag { top: 8px; left: 8px; font-size: 0.84rem; }
}
