:root {
  --border: #d0d0d0;
  --ink: #1a1a1a;
  --muted: #666;
  --bg: #fff;
  --accent: #2166ac;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
#error-banner {
  background: #b3261e;
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
#error-banner[hidden] {
  display: none;
}
#basemap-notice {
  background: #fff3cd;
  color: #664d03;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #ffe69c;
  font-size: 0.9rem;
}
#basemap-notice[hidden] {
  display: none;
}
#map-error-notice {
  background: #f8d7da;
  color: #58151c;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #f1aeb5;
  font-size: 0.9rem;
}
#map-error-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
#map-error-notice > span {
  flex: 1;
}
#map-error-notice[hidden] {
  display: none;
}
.map-error-close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  margin: -0.5rem -0.75rem -0.5rem 0;
  background: none;
  border: 0;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}
#basemap-key-notice {
  background: #fff3cd;
  color: #664d03;
  padding: 0.35rem 1rem;
  border-bottom: 1px solid #ffe69c;
  font-size: 0.85rem;
}
#basemap-key-notice[hidden] {
  display: none;
}
#map-status {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  max-width: calc(100% - 64px);
}
.status-line {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  color: #1d2b3a;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.status-line[hidden] {
  display: none;
}
.status-line-retry {
  font: inherit;
  padding: 0 0.4rem;
  border: 1px solid #2a5d9f;
  border-radius: 3px;
  background: #fff;
  color: #2a5d9f;
  cursor: pointer;
}
.status-line .inline-disclosure {
  margin: 0;
}
.status-line .inline-disclosure-summary {
  cursor: pointer;
  color: #2a5d9f;
  text-decoration: underline;
}
#map-status[data-place=right] .status-line .inline-disclosure-body {
  left: auto;
  right: 0;
}
.status-line .inline-disclosure-body {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: min(300px, 80vw);
  white-space: normal;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 4;
}
.status-line .inline-disclosure-body p {
  margin: 0 0 0.3rem;
}
#error-banner-detail-host .inline-disclosure {
  margin: 0.4rem 0;
}
#error-banner-detail-host .inline-disclosure-summary {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}
#error-banner-detail-host .inline-disclosure-body {
  color: #fff;
  font-size: 0.85rem;
}
#disclaimer {
  background: #eef2f6;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
html,
body {
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
#layout {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}
#map {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
#sidebar {
  width: 380px;
  flex: 0 0 380px;
  font-size: 0.875rem;
  line-height: 1.4;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  padding: 0 1rem 2rem;
}
#sidebar section {
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
#sidebar details {
  margin: 0.35rem 0;
}
#sidebar details > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.8125rem;
}
#sidebar details p,
#sidebar details li {
  font-size: 0.8125rem;
  color: #444;
}
#sidebar details h3 {
  font-size: 0.8125rem;
  margin: 0.5rem 0 0.2rem;
}
#sidebar h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
#control-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
#cutoff-input {
  width: 100%;
}
#cutoff-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
#counts-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.5rem;
  margin: 0;
  font-size: 0.85rem;
}
#counts-list dt {
  color: var(--muted);
}
#counts-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
#density-rail {
  display: flex;
  align-items: flex-end;
  height: 90px;
  gap: 1px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.rail-mark {
  flex: 1 1 0;
  min-width: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  cursor: default;
}
.rail-mark-bar {
  background: var(--accent);
  min-height: 1px;
}
.rail-mark--zero .rail-mark-bar {
  background: #eee;
  min-height: 2px;
}
.rail-mark-label {
  font-size: 0.55rem;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  max-height: 0;
}
#rail-caption,
#rail-counting-unit {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.5rem 0 0.15rem;
}
.legend-swatch-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  list-style: none;
  margin: 0.15rem 0;
}
#legend-era-swatches {
  padding: 0;
  margin: 0 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  column-gap: 0.75rem;
}
#color-scheme-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.82rem;
  margin: 0 0 0.4rem;
}
#color-scheme-label {
  font-weight: 600;
}
#legend-photo-decades-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.15rem 0 0.4rem;
}
#legend-gray-note {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.6rem 0 0.2rem;
}
#legend-photo-decades h3 {
  font-size: 0.82rem;
  margin: 0.3rem 0 0.2rem;
}
#legend-photo-decade-swatches {
  font-size: 0.8125rem;
}
.photo-date-direction,
.photo-date-extents {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
}
.photo-date-direction {
  margin: 0.35rem 0 0.4rem;
}
.photo-date-extents > :last-child {
  text-align: right;
}
.photo-date-ribbon {
  display: grid;
  list-style: none;
  padding: 0;
  margin: 0 0 1.65rem;
}
.photo-date-ribbon > li {
  position: relative;
  min-width: 0;
}
.photo-date-ribbon .legend-swatch {
  display: block;
  width: 100%;
  height: 14px;
  border: 0;
  border-radius: 0;
}
.photo-date-boundary {
  position: absolute;
  top: 14px;
  left: 0;
  transform: translateX(-50%);
  padding-top: 0.4rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.photo-date-boundary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 0.3rem;
  background: var(--muted);
}
.photo-date-undated {
  margin: 0.45rem 0 0.3rem;
}
.legend-swatch.is-round {
  border-radius: 50%;
}
.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
#legend-unfilled-classes {
  font-size: 0.78rem;
  color: var(--muted);
  padding-left: 1.1rem;
  margin: 0.3rem 0 0;
}
#panel-content p {
  font-size: 0.85rem;
  margin: 0.3rem 0;
}
.panel-status-note {
  color: #8a5a00;
  font-style: italic;
}
.panel-multi-record {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}
.panel-multi-record-row {
  padding-left: 0.6rem;
  border-left: 2px solid var(--border);
}
#layer-clauses {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.5rem;
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
}
#layer-clauses dt {
  font-weight: 600;
  opacity: 0.75;
}
#layer-clauses dd {
  margin: 0;
  font-weight: 600;
}
#clause-atlas[data-atlas-state=carried_forward] {
  font-style: italic;
}
#atlas-section[data-atlas-state=carried_forward] {
  border-left: 3px solid #b8860b;
  padding-left: 0.6rem;
}
#atlas-section[data-atlas-state=error] {
  border-left: 3px solid #b00020;
  padding-left: 0.6rem;
}
#atlas-state-label {
  margin: 0.3rem 0;
}
#atlas-state-label .short-line-text {
  font-weight: 600;
  margin: 0 0 0.1rem;
}
#atlas-error {
  background: #fdecef;
  border: 1px solid #b00020;
  padding: 0.5rem;
  margin: 0.4rem 0;
}
#atlas-empty-state {
  margin: 0.4rem 0;
}
.atlas-sheet {
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.atlas-sheet p {
  margin: 0.15rem 0;
}
.atlas-registration-error {
  font-variant-numeric: tabular-nums;
}
.atlas-correction-caveat,
.atlas-rights {
  opacity: 0.8;
}
.atlas-viewport-status[data-in-view=false] {
  font-style: italic;
  opacity: 0.75;
}
#atlas-carry-forward-label,
#atlas-opacity-label {
  display: block;
  margin: 0.45rem 0;
  font-size: 0.85rem;
}
#atlas-opacity {
  width: 100%;
}
#atlas-comparison-buttons {
  display: flex;
  gap: 0.4rem;
  margin: 0.3rem 0;
}
.atlas-comparison-button[data-active=true] {
  outline: 2px solid #333;
  font-weight: 700;
}
#atlas-rail-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
#atlas-rail-axis-label {
  font-size: 0.75rem;
  opacity: 0.75;
  white-space: nowrap;
  padding-bottom: 0.25rem;
}
#atlas-rail {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 3rem;
  border-bottom: 2px solid #666;
  overflow: visible;
}
.atlas-rail-mark {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.75rem;
  padding: 0.1rem 0.3rem;
  cursor: pointer;
  background: #fff;
  border: 1px solid #666;
  white-space: nowrap;
}
.atlas-rail-mark:nth-child(odd) {
  bottom: 1.6rem;
}
.atlas-rail-mark:nth-child(even) {
  bottom: 0.1rem;
}
.atlas-rail-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 1.6rem;
  background: #666;
}
.atlas-rail-mark:nth-child(even)::after {
  height: 0.1rem;
}
.atlas-rail-mark[data-active=true] {
  background: #333;
  color: #fff;
  font-weight: 700;
}
#control-section {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  padding-top: 0.75rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}
#sidebar > section {
  scroll-margin-top: 8rem;
}
#photos-section p,
#photo-panel-section p {
  margin: 0.4rem 0;
  font-size: 0.85rem;
}
#photos-scope-disclosure {
  font-weight: 700;
  background: #eef2f6;
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0.5rem;
}
#photos-error {
  background: #b3261e;
  color: #fff;
  padding: 0.5rem;
  font-size: 0.85rem;
}
#photos-error[hidden] {
  display: none;
}
#photos-empty[hidden] {
  display: none;
}
#photos-counts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 0.5rem;
  font-size: 0.8rem;
}
#photos-counts dt {
  color: var(--muted);
}
#photos-counts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
#photos-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.photo-row {
  border: 1px solid var(--border);
  border-left-width: 4px;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  background: #fff;
}
.photo-row[data-selected=true] {
  outline: 2px solid #333;
}
.photo-row[data-temporal=exact] {
  border-left-color: #1a1a1a;
}
.photo-row[data-temporal=range] {
  border-left-color: #2166ac;
}
.photo-row[data-temporal=lower_bounded],
.photo-row[data-temporal=upper_bounded] {
  border-left-color: #b8860b;
}
.photo-row[data-temporal=unknown],
.photo-row[data-temporal=non_capture] {
  border-left-color: #999;
  border-left-style: dashed;
}
.photo-row-title {
  font-weight: 600;
}
.photo-row-meta {
  color: var(--muted);
}
#photo-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  overflow-y: auto;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 1rem 1.25rem 2rem;
  font-size: 0.85rem;
}
#photo-viewer h2 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}
#photo-viewer h3 {
  font-size: 0.85rem;
  margin: 0.7rem 0 0.2rem;
}
#photo-viewer p {
  margin: 0.25rem 0;
}
#photo-viewer-close {
  float: right;
  position: sticky;
  top: 0;
  z-index: 5;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  background: #fff;
  border: 1px solid #999;
  border-radius: 0.3rem;
}
#photo-viewer[hidden] {
  display: none;
}
#photo-viewer-frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 1rem;
  align-items: start;
}
#photo-viewer {
  font-size: 0.9rem;
}
.photo-frame figcaption {
  font-size: 0.8125rem;
}
.photo-frame-details > summary {
  cursor: pointer;
  color: var(--accent);
}
.photo-frame-details p {
  margin: 0.2rem 0;
}
#photo-viewer[data-mode=single] #photo-viewer-frames {
  grid-template-columns: minmax(0, 720px);
}
#photo-viewer[data-mode=stack] #photo-viewer-frames {
  grid-template-columns: minmax(0, 900px);
  gap: 2rem;
  justify-content: center;
}
#photo-viewer-body {
  max-width: 1500px;
  margin: 0 auto;
}
.photo-frame {
  border: 1px solid var(--border);
  padding: 0.5rem;
}
.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  background: #f2f2f2;
}
.photo-frame figcaption {
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.photo-frame figcaption p {
  margin: 0.25rem 0;
}
.photo-frame-missing {
  background: #fff3cd;
  color: #664d03;
  padding: 0.5rem;
  font-size: 0.85rem;
}
#photo-viewer-class {
  font-weight: 700;
}
#photo-viewer-class[data-pair-class=site_continuity] {
  color: #8a5300;
}
#photo-viewer-class .inline-disclosure {
  font-weight: 400;
}
#photo-viewer-evidence {
  font-size: 0.85rem;
  margin-top: 0.75rem;
}
#photo-viewer-evidence ul {
  margin: 0.3rem 0 0.6rem;
}
.photo-anchor-unchecked {
  color: #8a5300;
}
#photo-viewer-back {
  margin: 0 2.4rem 0.3rem 0;
}
#photo-viewer-back[hidden] {
  display: none;
}
#photo-viewer-back-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
}
#photo-viewer-grid[hidden] {
  display: none;
}
#photo-viewer-grid-note {
  margin-bottom: 0.75rem;
}
#photo-viewer-grid-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.photo-grid-tile {
  border: 1px solid var(--border);
  padding: 0.4rem;
  cursor: pointer;
  background: none;
  text-align: left;
}
.photo-grid-tile:hover,
.photo-grid-tile:focus {
  outline: 2px solid var(--accent);
}
.photo-grid-tile[data-matches-year=false] {
  border-style: dashed;
}
.photo-grid-tile[data-matches-year=false] .photo-grid-tile-title {
  color: var(--muted);
  font-weight: 500;
}
.photo-grid-tile-image {
  width: 100%;
  height: 150px;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-grid-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-grid-tile-missing,
.photo-grid-tile-loading {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  padding: 0 0.5rem;
}
.photo-grid-tile-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.4rem 0 0.1rem;
}
.photo-grid-tile-year {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
#photo-census {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
#sidebar > #photo-census {
  padding: 0.5rem 0 0;
}
#photo-census summary {
  cursor: pointer;
  font-weight: 600;
}
.photo-feedback {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}
#photo-census-sources {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
}
.photo-row-d1 {
  margin-top: 0.2rem;
}
.photo-row[data-d1=false] .photo-row-d1 {
  color: #8a5300;
}
.photo-panel-d1[data-d1=false] {
  color: #8a5300;
}
.photo-panel-extent {
  margin: 0.2rem 0;
  font-size: 0.85rem;
}
.photo-panel-extent > summary {
  cursor: pointer;
  color: var(--accent);
}
.photo-panel-extent p {
  margin: 0.2rem 0;
}
#photo-viewer-basis[data-facing-reviewed=false] #photo-viewer-basis-list li:nth-child(2) {
  color: #8a5300;
  font-weight: 600;
}
#photo-viewer-counting {
  font-size: 0.85rem;
}
#photos-tally {
  color: var(--muted);
}
#photos-browse,
#photos-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0;
}
.photo-row {
  border: 1px solid var(--border);
  border-left: 4px solid #7b3294;
  padding: 0.3rem 0.4rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
  font-size: 0.78rem;
}
.photo-browse-row[data-in-pair=false] {
  border-left-color: #bbb;
}
.photo-browse-row[data-selected=true] {
  outline: 2px solid #333;
}
.photo-browse-title {
  font-weight: 600;
}
.photo-browse-meta {
  color: var(--muted);
}
#photos-matching-heading {
  font-weight: 600;
  margin-top: 0.6rem;
}
#photos-counting-summary {
  color: var(--muted);
}
#photos-counts {
  font-size: 0.8125rem;
}
#photos-browse {
  max-height: 13rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  padding: 0.25rem;
}
#photos-list {
  max-height: 11rem;
  overflow-y: auto;
}
@media (max-width: 1200px) {
  #sidebar {
    width: 330px;
    flex: 0 0 330px;
  }
}
#photos-include-undated-label {
  display: block;
  margin: 0.4rem 0;
}
#photos-include-undated-label[hidden] {
  display: none;
}
#photos-nearest-jump {
  display: block;
  margin: 0.3rem 0;
  cursor: pointer;
  font-size: 0.8125rem;
}
#photos-nearest-jump[hidden] {
  display: none;
}
.photo-hover-popup .maplibregl-popup-content {
  padding: 0.5rem;
  font-size: 0.8125rem;
}
.photo-hover-thumb {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.3rem;
}
.photo-hover-popup p {
  margin: 0.15rem 0;
}
.photo-hover-title {
  font-weight: 600;
}
.photo-hover-date,
.photo-hover-status,
.photo-hover-hint {
  color: var(--muted);
}
.photo-hover-suffix {
  color: #8a5300;
}
.photo-panel-streetview {
  margin-top: 0.6rem;
}
.photo-streetview-caveat {
  color: var(--muted);
  font-size: 0.8125rem;
}
.photo-streetview {
  margin: 0.3rem 0 0.2rem;
}
.photo-streetview p {
  margin: 0.1rem 0;
}
.photo-streetview-link {
  font-weight: 600;
}
.photo-streetview-destination,
.photo-streetview-qualifier,
.photo-streetview-about {
  color: var(--muted);
}
.photo-streetview-qualifier {
  font-size: 0.8125rem;
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  align-items: center;
  margin: 0.35rem 0 0.25rem;
}
.photo-actions .photo-seemap-block {
  order: 1;
}
.photo-actions .photo-streetview {
  display: contents;
  margin: 0;
}
.photo-actions .photo-streetview-line {
  order: 2;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.photo-actions .photo-streetview-destination {
  font-size: 0.8125rem;
}
#photo-viewer .photo-actions .photo-streetview-qualifier,
.photo-actions .photo-streetview-qualifier {
  order: 3;
  flex: 0 0 calc(100% - 0.9rem);
  min-width: 0;
  box-sizing: border-box;
  margin: 0.1rem 0 0 0.9rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--border);
}
#photo-viewer .photo-seemap,
.photo-actions .photo-streetview-link {
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  min-height: 1.9rem;
  padding: 0.2rem 0.65rem;
  text-decoration: none;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  cursor: pointer;
}
#photo-viewer .photo-seemap:hover,
.photo-actions .photo-streetview-link:hover {
  background: #eef4fa;
}
#legend-photo-decades-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
#photo-switch-badge {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  visibility: hidden;
}
#photo-switch-badge[data-off=true] {
  visibility: visible;
}
:root[data-photos-hidden=true] #legend-photo-decade-swatches {
  opacity: 0.4;
}
.photo-switch-map[hidden] {
  display: none;
}
.photo-switch-map:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-sizing: border-box;
  float: left;
  clear: both;
  margin: 0 0 10px 10px;
  min-height: 1.75rem;
  padding: 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.photo-switch-map > input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}
#atlas-comparison-active:empty {
  display: none;
}
#atlas-go-list {
  list-style: none;
  margin: 0.3rem 0;
  padding: 0;
}
#atlas-go-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.75rem;
  padding: 0.15rem 0;
}
.atlas-go-label {
  font-size: 0.9rem;
}
.atlas-go-button {
  font: inherit;
  font-size: 0.875rem;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  padding: 0.25rem 0.7rem;
  min-height: 2.25rem;
  cursor: pointer;
}
#atlas-options {
  margin: 0.1rem 0;
}
#atlas-options[hidden] {
  display: none;
}
#atlas-options > summary {
  cursor: pointer;
  color: var(--accent);
  min-height: 1.4rem;
}
#share-section {
  padding: 0.35rem 0 0;
}
#copy-view-link,
.photo-share-button {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  padding: 0.2rem 0.65rem;
  min-height: 1.9rem;
  cursor: pointer;
}
.photo-share-button {
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.photo-frame .photo-frame-credit {
  color: var(--accent);
}
#share-note,
.photo-share-note {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
#share-note:empty,
.photo-share-note:empty {
  display: none;
}
#share-fallback-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
}
#share-fallback-label[hidden],
#share-fallback[hidden],
.photo-share-fallback[hidden] {
  display: none;
}
#share-fallback,
.photo-share-fallback {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.8125rem;
  min-height: 2.75rem;
  padding: 0 0.5rem;
}
.photo-share-line {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}
.place-search {
  position: relative;
  z-index: 9;
  width: min(18rem, calc(100vw - 7rem));
  font-size: 1rem;
}
.maplibregl-ctrl-top-right .place-search.maplibregl-ctrl {
  pointer-events: auto;
}
.place-search input[type=search] {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #aaa;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}
.place-search input[type=search]:focus {
  outline: 3px solid var(--accent);
  outline-offset: 0;
}
.place-search-field {
  position: relative;
}
.place-search .place-search-field input[type=search] {
  padding-right: 2.5rem;
}
.place-search input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.place-search-clear {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}
.place-search-clear:hover {
  color: var(--ink);
}
.place-search-clear:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.place-search-clear[hidden] {
  display: none;
}
.place-search-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 100%;
  z-index: 8;
  max-height: 55vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid #aaa;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  text-align: left;
}
.place-search-panel[hidden] {
  display: none;
}
.place-search-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.place-search-panel li {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.place-search-panel li:hover,
.place-search-panel li[aria-selected=true] {
  background: #eef4fa;
}
.place-search-panel li.place-search-opt--two {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
}
.place-search-opt-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.place-search-opt-detail {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.25;
}
.place-search-note {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink);
}
.place-search-note[hidden],
.place-search-retry[hidden],
.place-search-about[hidden] {
  display: none;
}
.place-search-retry {
  margin: 0 0.75rem 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  font: inherit;
  color: var(--accent);
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
}
.place-search-about {
  padding: 0.25rem 0.75rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.place-search-about summary {
  cursor: pointer;
  color: var(--accent);
  min-height: 1.5rem;
}
.place-search-about p {
  margin: 0.3rem 0 0;
}
#photo-back-chip {
  position: absolute;
  left: 0.75rem;
  bottom: 3.4rem;
  z-index: 6;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 1.4rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
#photo-back-chip[hidden] {
  display: none;
}
#photos-browse-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0.4rem 0 0.3rem;
}
#photos-filter-label {
  flex-basis: 100%;
  font-weight: 600;
}
#photos-filter-text {
  flex: 1 1 12rem;
  min-width: 8rem;
  padding: 0.25rem 0.4rem;
  font: inherit;
}
#photos-filter-viewport-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
#photos-filter-clear {
  font: inherit;
  padding: 0.25rem 0.5rem;
}
#photos-browse-status {
  margin: 0 0 0.4rem;
}
.photo-id-line {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #555;
}
.photo-id-value {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.72rem;
  user-select: all;
}
.photo-id-copy {
  margin-left: 0.4rem;
  font-size: 0.68rem;
  padding: 0.05rem 0.35rem;
  cursor: pointer;
}
#photo-viewer-pair-id .photo-id-line {
  margin: 0 0 0.35rem;
}
#photo-viewer-pair-id[hidden] {
  display: none;
}
.inline-disclosure {
  margin: 0.15rem 0 0.35rem;
}
.inline-disclosure > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.78rem;
  display: list-item;
}
.inline-disclosure > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.inline-disclosure-body {
  margin: 0.2rem 0 0 0.85rem;
  border-left: 2px solid #dcdcdc;
  padding-left: 0.6rem;
}
.inline-disclosure-body p,
.inline-disclosure-body li {
  font-size: 0.8125rem;
  color: #444;
  margin: 0.25rem 0;
}
.short-line {
  margin: 0.35rem 0;
}
.short-line > .short-line-text {
  margin: 0 0 0.1rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#atlas-carry-forward-label[hidden],
#atlas-opacity-label[hidden],
#atlas-comparison[hidden] {
  display: none !important;
}
.atlas-registration-scope {
  opacity: 0.8;
}
#atlas-rail-section {
  margin: 0.4rem 0 0;
}
#expand-all-details {
  display: block;
  width: 100%;
  margin: 0 0 0.6rem;
  padding: 0.3rem 0.5rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  background: #f4f4f4;
  border: 1px solid var(--border);
  border-radius: 3px;
}
#expand-all-details:focus-visible {
  outline: 2px solid #333;
  outline-offset: 1px;
}
#buildings-numbers > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
#counts-line {
  margin: 0.35rem 0;
}
.photo-badge--status {
  color: #666;
}
.photo-frame-title {
  font-weight: 700;
}
.photo-frame-description {
  margin: 2px 0 0;
  font-size: 0.9em;
  color: var(--muted, #555);
}
.photo-frame-description-label {
  font-weight: 600;
}
.photo-frame-correction {
  margin: 2px 0 0;
  font-size: 0.9em;
}
.photo-frame-correction > p {
  margin: 0;
}
.photo-frame-correction-label {
  font-weight: 600;
}
.photo-panel-camera-absent .short-line-text {
  margin: 0.25rem 0;
}
.route-control {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  padding: 0.4rem 0.5rem;
  max-width: 15rem;
  font-size: 0.8rem;
}
.route-control p {
  margin: 0.3rem 0;
}
.route-control button,
.route-control #copy-view-link {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 0.3rem;
  padding: 0.2rem 0.65rem;
  min-height: 1.9rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  cursor: pointer;
}
.route-control button[hidden],
.route-control #copy-view-link[hidden] {
  display: none;
}
.route-control button:hover,
.route-control #copy-view-link:hover {
  background: #eef4fa;
}
.route-control #share-section {
  padding: 0;
}
#route-summary {
  font-weight: 600;
}
#route-summary::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 0.3em;
  margin-right: 0.35em;
  vertical-align: middle;
  background: #00a651;
  border-radius: 2px;
}
#route-privacy-note {
  color: #555;
}
#route-error {
  color: #b2182b;
}
#panel-handle,
#year-minus,
#year-plus,
#sheet-open,
#phone-extras-host {
  display: none;
}
@media (max-width: 700px), (max-height: 500px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
  body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
  }
  #disclaimer {
    padding: 0.3rem 0.75rem;
    font-size: 0.8125rem;
    flex: 0 0 auto;
  }
  #disclaimer p {
    margin: 0;
  }
  #layout {
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  #map {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }
  #sidebar {
    width: auto;
    flex: 0 0 auto;
    max-height: 62%;
    border-left: none;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
    padding: 0 0.75rem 0.4rem;
    overscroll-behavior: contain;
  }
  #sidebar[data-panel=expanded] {
    flex: 0 0 85%;
    max-height: 85%;
  }
  #sidebar[data-panel=collapsed] > :not(#panel-handle):not(#control-section):not(#photos-section) {
    display: none;
  }
  #sidebar[data-panel=collapsed] #photos-section > :not(#photos-error) {
    display: none;
  }
  #sidebar[data-panel=collapsed] #atlas-rail-section {
    display: none;
  }
  #sidebar[data-panel=collapsed] #photos-section {
    border-bottom: none;
    margin: 0;
    padding: 0;
  }
  #sidebar[data-panel=collapsed] #control-section {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  #panel-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 0.75rem;
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
    touch-action: none;
    background: var(--bg);
  }
  .panel-grip {
    width: 2.5rem;
    height: 0.25rem;
    border-radius: 0.15rem;
    background: #bbb;
    margin: 0.25rem 0;
  }
  #panel-handle-year,
  #sheet-close {
    display: none;
  }
  #sidebar[data-panel=expanded] #panel-handle {
    position: sticky;
    top: 0;
    z-index: 4;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
  }
  #sidebar[data-panel=expanded] .panel-grip {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
  #sidebar[data-panel=expanded] #panel-handle-year {
    display: block;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  #sidebar[data-panel=expanded] #sheet-close {
    display: block;
  }
  #sidebar[data-panel=expanded] #sheet-open {
    display: none;
  }
  #sidebar > section {
    scroll-margin-top: 3.25rem;
  }
  #control-section {
    position: static;
    box-shadow: none;
    padding-top: 0;
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem auto;
    align-items: center;
    column-gap: 0.4rem;
  }
  #control-section > * {
    grid-column: 1 / -1;
  }
  #year-minus,
  #year-plus {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0;
  }
  #year-minus {
    grid-column: 1;
  }
  #cutoff-input {
    grid-column: 2;
    height: 2.75rem;
    margin: 0;
  }
  #year-plus {
    grid-column: 3;
  }
  #cutoff-value {
    grid-column: 4;
    font-size: 1rem;
    min-width: 2.6rem;
    text-align: center;
  }
  #layer-clauses {
    font-size: 0.8125rem;
    margin-top: 0.1rem;
  }
  #sidebar #control-explainer {
    grid-column: 1 / 4;
    margin: 0;
  }
  #sheet-open {
    display: block;
    grid-column: 4;
  }
  #photos-section #photos-scope-disclosure {
    font-size: 0.8125rem;
    margin: 0.1rem 0 0;
    padding: 0.25rem 0.5rem;
  }
  #photos-list {
    max-height: none;
    overflow: visible;
  }
  #sidebar button,
  #sidebar summary,
  #photo-viewer button,
  #photo-viewer summary,
  .photo-row,
  #photos-include-undated-label,
  #photos-filter-viewport-label,
  #atlas-carry-forward-label,
  #atlas-comparison-toggle-label {
    min-height: 2.75rem;
    min-width: 2.75rem;
  }
  #sidebar summary,
  #photo-viewer summary {
    padding: 0.65rem 0;
  }
  #photos-include-undated-label,
  #photos-filter-viewport-label,
  #atlas-carry-forward-label,
  #atlas-comparison-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  #photos-include-undated-label[hidden],
  #atlas-carry-forward-label[hidden],
  #atlas-comparison-toggle-label[hidden] {
    display: none;
  }
  .photo-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #sidebar button,
  #photo-viewer button {
    padding: 0.4rem 0.7rem;
    font-size: 0.875rem;
  }
  .maplibregl-ctrl-group button {
    width: 2.75rem;
    height: 2.75rem;
  }
  #photos-filter-text {
    font-size: 16px;
    min-height: 2.75rem;
  }
  .photo-streetview-link,
  .photo-actions .photo-streetview-link,
  #photo-viewer .photo-seemap {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .photo-switch-map:not([hidden]) {
    min-height: 2.75rem;
    padding: 0 0.75rem;
    margin-bottom: 42px;
  }
  #photo-back-chip {
    bottom: 7.5rem;
  }
  #copy-view-link,
  .route-control button,
  .route-control #copy-view-link {
    min-height: 2.75rem;
  }
  .photo-share-button {
    min-height: 2.75rem;
    padding: 0 0.25rem;
  }
  #phone-extras-host {
    display: block;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
  }
  #phone-extras-host .route-control {
    max-width: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0.5rem;
  }
  #phone-extras-host #photo-census {
    padding: 0.4rem 0;
  }
  #photo-viewer {
    padding: 0 0.75rem 2rem;
    border-right: none;
  }
  #photo-viewer-close {
    position: fixed;
    top: 0.4rem;
    right: 0.6rem;
    z-index: 30;
    float: none;
    background: #fff;
    border: 1px solid #999;
    border-radius: 0.3rem;
  }
  #photo-viewer h2 {
    padding: 0.9rem 6rem 0.4rem 0;
    margin: 0;
  }
  #photo-viewer-back {
    margin-top: 0.6rem;
  }
  #photo-viewer #photo-viewer-frames,
  #photo-viewer[data-mode] #photo-viewer-frames {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .photo-frame {
    margin: 0;
    padding: 0.4rem;
  }
  .photo-frame img {
    max-height: 45vh;
    max-height: 45dvh;
    object-fit: contain;
  }
  .photo-hover-popup {
    display: none;
  }
}
@media (max-width: 700px) and (orientation: landscape), (max-height: 500px) and (orientation: landscape) {
  #layout:has(#sidebar[data-panel=expanded]) {
    flex-direction: row;
  }
  #sidebar[data-panel=expanded] {
    flex: 0 0 20rem;
    width: 20rem;
    max-height: none;
    border-top: none;
    border-left: 1px solid var(--border);
    box-shadow: none;
  }
}
@media (max-width: 700px), (max-height: 500px) {
  .inline-disclosure {
    margin: 0;
  }
}
@media (max-width: 700px), (max-height: 500px) {
  #atlas-rail {
    height: 6.4rem;
  }
  .atlas-rail-mark:nth-child(odd) {
    bottom: 3.3rem;
  }
  .atlas-rail-mark:nth-child(odd)::after {
    height: 3.3rem;
  }
  .atlas-rail-mark {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
#app-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
#app-title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
#howto-toggle {
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  min-height: 2.25rem;
  border: 1px solid #9aa7b4;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
#howto-toggle:focus-visible,
#howto-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.howto-short {
  display: none;
}
#disclaimer-app-level {
  margin: 0.2rem 0 0;
  color: #333;
  font-size: 0.9rem;
}
#howto-panel {
  position: fixed;
  left: 1rem;
  width: min(32rem, calc(100vw - 2rem));
  max-height: 75vh;
  overflow-y: auto;
  z-index: 25;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  padding: 0.9rem 1.1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
#howto-panel[hidden] {
  display: none;
}
#howto-heading {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
#howto-close {
  float: right;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  background: #fff;
  border: 1px solid #999;
  border-radius: 0.3rem;
}
#howto-steps {
  margin: 0 0 0.75rem;
  padding-left: 1.3rem;
}
#howto-steps li {
  margin: 0.45rem 0;
}
#howto-more {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0.6rem 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: #444;
}
#howto-more li {
  margin: 0.35rem 0;
}
#howto-panel #disclaimer-more {
  font-size: 0.85rem;
}
#howto-credit {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 700px), (max-height: 500px) {
  #app-title {
    font-size: 1.25rem;
  }
  .howto-short {
    display: inline;
  }
  .howto-long {
    display: none;
  }
  #howto-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
  }
  #disclaimer-app-level {
    font-size: 0.8125rem;
    margin-top: 0.1rem;
  }
  #howto-panel {
    inset: 0;
    width: auto;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0.75rem 1rem 2rem;
    z-index: 30;
  }
  #howto-close {
    min-height: 2.75rem;
    min-width: 2.75rem;
  }
}
#disclaimer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.6rem;
  align-items: center;
}
#app-title-row {
  display: contents;
}
#app-title {
  grid-column: 1;
  grid-row: 1;
}
#howto-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
}
#disclaimer-app-level {
  grid-column: 1;
  grid-row: 2;
}
@media (max-width: 700px), (max-height: 500px) {
  #disclaimer {
    padding: 0.35rem 0.6rem 0.35rem 0.75rem;
  }
  #disclaimer-app-level {
    line-height: 1.3;
  }
}
